@vkontakte/videoplayer 1.1.68 → 1.1.69-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2018.cjs.js CHANGED
@@ -1,59 +1,59 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.68
3
- * Tue, 05 Aug 2025 13:56:33 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-68/doc/
2
+ * @vkontakte/videoplayer v1.1.69-beta.0
3
+ * Thu, 14 Aug 2025 12:58:18 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-69/doc/
5
5
  */
6
- "use strict";var P0=Object.create;var Ol=Object.defineProperty;var A0=Object.getOwnPropertyDescriptor;var M0=Object.getOwnPropertyNames;var L0=Object.getPrototypeOf,V0=Object.prototype.hasOwnProperty;var Dv=t=>{throw TypeError(t)};var R0=(t,e,i)=>e in t?Ol(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var N0=(t,e)=>{for(var i in e)Ol(t,i,{get:e[i],enumerable:!0})},Hv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of M0(e))!V0.call(t,n)&&n!==i&&Ol(t,n,{get:()=>e[n],enumerable:!(o=A0(e,n))||o.enumerable});return t};var Fv=(t,e,i)=>(i=t!=null?P0(L0(t)):{},Hv(e||!t||!t.__esModule?Ol(i,"default",{value:t,enumerable:!0}):i,t)),B0=t=>Hv(Ol({},"__esModule",{value:!0}),t);var qn=(t,e,i)=>R0(t,typeof e!="symbol"?e+"":e,i),ap=(t,e,i)=>e.has(t)||Dv("Cannot "+i);var Ai=(t,e,i)=>(ap(t,e,"read from private field"),i?i.call(t):e.get(t)),xs=(t,e,i)=>e.has(t)?Dv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ua=(t,e,i,o)=>(ap(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Uv=(t,e,i)=>(ap(t,e,"access private method"),i);var jx={};N0(jx,{ControlButtonType:()=>Hd,GridTypes:()=>Rr,InterfaceLanguage:()=>Rl.InterfaceLanguage,MenuItemType:()=>_l,PlayerPhase:()=>ns,VERSION:()=>ca,VKNumericLanguage:()=>Rl.VKNumericLanguage,VideoFormat:()=>Ju.VideoFormat,VideoQuality:()=>Ju.VideoQuality,loadVKLangPack:()=>Rl.loadVKLangPack,registerPlayerWebComponent:()=>Yx});module.exports=B0(jx);var ws="[",Cs="[!",Ks="]",Yr={};var Yi=Symbol(),En=Symbol("filename"),zv=Symbol("hmr"),Wv="http://www.w3.org/1999/xhtml",wc="http://www.w3.org/2000/svg";var lp="@attach";var Cc=!0;var Kv,Qv,qv=(Qv=(Kv=globalThis.process)==null?void 0:Kv.env)==null?void 0:Qv.NODE_ENV,Pe=qv&&!qv.toLowerCase().startsWith("prod");var Kn=Array.isArray,Gv=Array.prototype.indexOf,Dl=Array.from,dp=Object.keys,lo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,Sc=Object.getOwnPropertyDescriptors,cp=Object.prototype,Yv=Array.prototype,Qs=Object.getPrototypeOf,up=Object.isExtensible;function Ss(t){return typeof t=="function"}var oe=()=>{};function jv(t){return t()}function Ts(t){for(var e=0;e<t.length;e++)t[e]()}var Ao=Symbol("$state"),za=Symbol("legacy props"),Zv=Symbol(""),Tc=Symbol("proxy path"),Ec=1,Wa=3,Qn=8;function Ic(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 Xv(t,e){return t!==e}function Ka(t){return!qa(t,this.v)}function Jv(){if(Pe){let t=new Error(`derived_references_self
6
+ "use strict";var B0=Object.create;var Hl=Object.defineProperty;var O0=Object.getOwnPropertyDescriptor;var D0=Object.getOwnPropertyNames;var H0=Object.getPrototypeOf,F0=Object.prototype.hasOwnProperty;var zv=t=>{throw TypeError(t)};var U0=(t,e,i)=>e in t?Hl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var z0=(t,e)=>{for(var i in e)Hl(t,i,{get:e[i],enumerable:!0})},Wv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of D0(e))!F0.call(t,n)&&n!==i&&Hl(t,n,{get:()=>e[n],enumerable:!(o=O0(e,n))||o.enumerable});return t};var qv=(t,e,i)=>(i=t!=null?B0(H0(t)):{},Wv(e||!t||!t.__esModule?Hl(i,"default",{value:t,enumerable:!0}):i,t)),W0=t=>Wv(Hl({},"__esModule",{value:!0}),t);var Yn=(t,e,i)=>U0(t,typeof e!="symbol"?e+"":e,i),cp=(t,e,i)=>e.has(t)||zv("Cannot "+i);var Mi=(t,e,i)=>(cp(t,e,"read from private field"),i?i.call(t):e.get(t)),Ss=(t,e,i)=>e.has(t)?zv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),za=(t,e,i,o)=>(cp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Kv=(t,e,i)=>(cp(t,e,"access private method"),i);var a5={};z0(a5,{ControlButtonType:()=>Ud,GridTypes:()=>Mr,InterfaceLanguage:()=>Bl.InterfaceLanguage,MenuItemType:()=>$l,PlayerPhase:()=>os,VERSION:()=>pa,VKNumericLanguage:()=>Bl.VKNumericLanguage,VideoFormat:()=>np.VideoFormat,VideoQuality:()=>np.VideoQuality,loadVKLangPack:()=>Bl.loadVKLangPack,registerPlayerWebComponent:()=>s5});module.exports=W0(a5);var Ts="[",Es="[!",Gs="]",Gr={};var Zi=Symbol(),kn=Symbol("filename"),Qv=Symbol("hmr"),Gv="http://www.w3.org/1999/xhtml",Ec="http://www.w3.org/2000/svg";var up="@attach";var Ic=!0;var Yv,Zv,jv=(Zv=(Yv=globalThis.process)==null?void 0:Yv.env)==null?void 0:Zv.NODE_ENV,Ae=jv&&!jv.toLowerCase().startsWith("prod");var Zn=Array.isArray,Xv=Array.prototype.indexOf,Fl=Array.from,pp=Object.keys,ao=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,kc=Object.getOwnPropertyDescriptors,fp=Object.prototype,Jv=Array.prototype,js=Object.getPrototypeOf,mp=Object.isExtensible;function Is(t){return typeof t=="function"}var se=()=>{};function eg(t){return t()}function ks(t){for(var e=0;e<t.length;e++)t[e]()}var Oo=Symbol("$state"),Wa=Symbol("legacy props"),tg=Symbol(""),Pc=Symbol("proxy path"),Ac=1,qa=3,Xn=8;function Mc(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 ig(t,e){return t!==e}function Qa(t){return!Ka(t,this.v)}function og(){if(Ae){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 eg(t){if(Pe){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 ng(t){if(Ae){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 tg(){if(Pe){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 ig(t){if(Pe){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 rg(){if(Ae){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function sg(t){if(Ae){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 og(){if(Pe){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 ag(){if(Ae){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 ng(){if(Pe){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 lg(){if(Ae){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 rg(){if(Pe){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 sg(t){if(Pe){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 dg(){if(Ae){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 cg(t){if(Ae){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 ag(t){if(Pe){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 ug(t){if(Ae){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 lg(t){if(Pe){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 pg(t){if(Ae){let e=new Error(`rune_outside_svelte
21
21
  The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
22
- https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function dg(){if(Pe){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(Pe){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 ug(){if(Pe){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,Zr=!1;function pg(){jr=!0}var Hl=null;function ls(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 fg(){if(Ae){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function mg(){if(Ae){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function vg(){if(Ae){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var jr=!1,Yr=!1;function gg(){jr=!0}var Ul=null;function ds(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
- `];for(let r=0;r<o.length;r++){let l=o[r];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 Ir(t,e){return t.label=e,kc(t.v,e),t}function kc(t,e){var i;return(i=t==null?void 0:t[Tc])==null||i.call(t,e),t}function Qa(t){if(Pe){let e=new Error(`lifecycle_outside_component
24
+ `];for(let r=0;r<o.length;r++){let l=o[r];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;ao(e,"stack",{value:n.join(`
25
+ `)}),ao(e,"name",{value:`${t}Error`})}return e}function Sr(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(Ae){let e=new Error(`lifecycle_outside_component
26
26
  \`${t}(...)\` can only be used during component initialisation
27
- https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Rt=null;function Fl(t){Rt=t}var Gn=null;function Ul(t){Gn=t}function Ga(t){return mp("getContext").get(t)}function Ya(t,e){return mp("setContext").set(t,e),e}function zl(){return mp("getAllContexts")}function D(t,e=!1,i){var o=Rt={p:Rt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};jr&&!e&&(Rt.l={s:null,u:null,r1:[],r2:fr(!1)}),Mo(()=>{o.d=!0}),Pe&&(Rt.function=i,Gn=i)}function H(t){var l,d;let e=Rt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=gt,o=kt;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];co(r.effect),Oi(r.reaction),xo(r.fn)}}finally{co(i),Oi(o)}}Rt=e.p,Pe&&(Gn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Xr(){return!jr||Rt!==null&&Rt.l===null}function mp(t){var e;return Rt===null&&Qa(t),(e=Rt.c)!=null?e:Rt.c=new Map(D0(Rt)||void 0)}function D0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var H0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function oi(t){if(typeof t!="object"||t===null||Ao in t)return t;let e=Qs(t);if(e!==cp&&e!==Yv)return t;var i=new Map,o=Kn(t),n=j(0),r=Pe&&Zr?ls("CreatedAt"):null,l=kt,d=f=>{var v=kt;Oi(l);var u=f();return Oi(v),u};o&&i.set("length",j(t.length,r));var a="";function p(f){a=f,Ir(n,`${a} version`);for(let[v,u]of i)Ir(u,Gs(a,v))}return new Proxy(t,{defineProperty(f,v,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&dg();var $=i.get(v);return $===void 0?$=d(()=>{var w=j(u.value,r);return i.set(v,w),Pe&&typeof v=="string"&&Ir(w,Gs(a,v)),w}):B($,u.value,!0),!0},deleteProperty(f,v){var u=i.get(v);if(u===void 0){if(v in f){let y=d(()=>j(Yi,r));i.set(v,y),vp(n),Pe&&Ir(y,Gs(a,v))}}else{if(o&&typeof v=="string"){var $=i.get("length"),w=Number(v);Number.isInteger(w)&&w<$.v&&B($,w)}B(u,Yi),vp(n)}return!0},get(f,v,u){var S;if(v===Ao)return t;if(Pe&&v===Tc)return p;var $=i.get(v),w=v in f;if($===void 0&&(!w||(S=Qo(f,v))!=null&&S.writable)&&($=d(()=>{var T=oi(w?f[v]:Yi),k=j(T,r);return Pe&&Ir(k,Gs(a,v)),k}),i.set(v,$)),$!==void 0){var y=s($);return y===Yi?void 0:y}return Reflect.get(f,v,u)},getOwnPropertyDescriptor(f,v){var u=Reflect.getOwnPropertyDescriptor(f,v);if(u&&"value"in u){var $=i.get(v);$&&(u.value=s($))}else if(u===void 0){var w=i.get(v),y=w==null?void 0:w.v;if(w!==void 0&&y!==Yi)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return u},has(f,v){var y;if(v===Ao)return!0;var u=i.get(v),$=u!==void 0&&u.v!==Yi||Reflect.has(f,v);if(u!==void 0||gt!==null&&(!$||(y=Qo(f,v))!=null&&y.writable)){u===void 0&&(u=d(()=>{var S=$?oi(f[v]):Yi,T=j(S,r);return Pe&&Ir(T,Gs(a,v)),T}),i.set(v,u));var w=s(u);if(w===Yi)return!1}return $},set(f,v,u,$){var V;var w=i.get(v),y=v in f;if(o&&v==="length")for(var S=u;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?B(T,Yi):S in f&&(T=d(()=>j(Yi,r)),i.set(S+"",T),Pe&&Ir(T,Gs(a,S)))}if(w===void 0)(!y||(V=Qo(f,v))!=null&&V.writable)&&(w=d(()=>j(void 0,r)),B(w,oi(u)),i.set(v,w),Pe&&Ir(w,Gs(a,v)));else{y=w.v!==Yi;var k=d(()=>oi(u));B(w,k)}var A=Reflect.getOwnPropertyDescriptor(f,v);if(A!=null&&A.set&&A.set.call($,u),!y){if(o&&typeof v=="string"){var I=i.get("length"),E=Number(v);Number.isInteger(E)&&E>=I.v&&B(I,E+1)}vp(n)}return!0},ownKeys(f){s(n);var v=Reflect.ownKeys(f).filter(w=>{var y=i.get(w);return y===void 0||y.v!==Yi});for(var[u,$]of i)$.v!==Yi&&!(u in f)&&v.push(u);return v},setPrototypeOf(){cg()}})}function Gs(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:H0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function vp(t,e=1){B(t,t.v+e)}function ja(t){try{if(t!==null&&typeof t=="object"&&Ao in t)return t[Ao]}catch(e){}return t}function gp(t,e){return Object.is(ja(t),ja(e))}function kr(t){var e=2050,i=kt!==null&&(kt.f&2)!==0?kt:null;gt===null||i!==null&&(i.f&256)!==0?e|=256:gt.f|=1048576;let o={ctx:Rt,deps:null,effects:null,equals:Ic,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:gt};return Pe&&Zr&&(o.created=ls("CreatedAt")),o}function h(t){let e=kr(t);return Mc(e),e}function Pr(t){let e=kr(t);return e.equals=Ka,e}function Pc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Di(e[i])}}var hp=[];function F0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function $p(t){var e,i=gt;if(co(F0(t)),Pe){let o=Ys;_p(new Set);try{hp.includes(t)&&Jv(),hp.push(t),Pc(t),e=Ac(t)}finally{co(i),_p(o),hp.pop()}}else try{Pc(t),e=Ac(t)}finally{co(i)}return e}function yp(t){var e=$p(t);if(t.equals(e)||(t.v=e,t.wv=Wl()),!ds){var i=(cs||(t.f&256)!==0)&&t.deps!==null?4096:1024;dn(t,i)}}var Ys=new Set,Za=new Map;function _p(t){Ys=t}function fr(t,e){var i={f:0,v:t,reactions:null,equals:Ic,rv:0,wv:0};return Pe&&Zr&&(i.created=e!=null?e:ls("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function j(t,e){let i=fr(t,e);return Mc(i),i}function Jr(t,e=!1,i=!0){var n,r;let o=fr(t);return e||(o.equals=Ka),jr&&i&&Rt!==null&&Rt.l!==null&&((r=(n=Rt.l).s)!=null?r:n.s=[]).push(o),o}function B(t,e,i=!1){var n;kt!==null&&(!Zn||(kt.f&262144)!==0)&&Xr()&&(kt.f&262162)!==0&&!((n=Vo)!=null&&n[1].includes(t)&&Vo[0]===kt)&&ug();let o=i?oi(e):e;return Pe&&kc(o,t.label),Xa(t,o)}function Xa(t,e){if(!t.equals(e)){var i=t.v;if(ds?Za.set(t,e):Za.set(t,i),t.v=e,Pe&&Zr&&(t.updated=ls("UpdatedAt"),gt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&$p(t),dn(t,(t.f&256)===0?1024:4096)),t.wv=Wl(),mg(t,2048),Xr()&&gt!==null&&(gt.f&1024)!==0&&(gt.f&96)===0&&(jn===null?vg([t]):jn.push(t)),Pe&&Ys.size>0){let o=Array.from(Ys);for(let n of o)(n.f&1024)!==0&&dn(n,4096),Zs(n)&&Ja(n);Ys.clear()}}return e}function mg(t,e){var i=t.reactions;if(i!==null)for(var o=Xr(),n=i.length,r=0;r<n;r++){var l=i[r],d=l.f;if((d&2048)===0&&!(!o&&l===gt)){if(Pe&&(d&262144)!==0){Ys.add(l);continue}dn(l,e),(d&1280)!==0&&((d&2)!==0?mg(l,4096):Kl(l))}}}var el="font-weight: bold",tl="font-weight: normal";function gg(t,e,i){Pe?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 Vt=null;function zl(t){Vt=t}var Jn=null;function Wl(t){Jn=t}function ja(t){return hp("getContext").get(t)}function Ya(t,e){return hp("setContext").set(t,e),e}function ql(){return hp("getAllContexts")}function D(t,e=!1,i){var o=Vt={p:Vt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};jr&&!e&&(Vt.l={s:null,u:null,r1:[],r2:ur(!1)}),Do(()=>{o.d=!0}),Ae&&(Vt.function=i,Jn=i)}function H(t){var l,d;let e=Vt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=ht,o=It;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];lo(r.effect),Hi(r.reaction),So(r.fn)}}finally{lo(i),Hi(o)}}Vt=e.p,Ae&&(Jn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Zr(){return!jr||Vt!==null&&Vt.l===null}function hp(t){var e;return Vt===null&&Ga(t),(e=Vt.c)!=null?e:Vt.c=new Map(K0(Vt)||void 0)}function K0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var Q0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ii(t){if(typeof t!="object"||t===null||Oo in t)return t;let e=js(t);if(e!==fp&&e!==Jv)return t;var i=new Map,o=Zn(t),n=Y(0),r=Ae&&Yr?ds("CreatedAt"):null,l=It,d=f=>{var v=It;Hi(l);var u=f();return Hi(v),u};o&&i.set("length",Y(t.length,r));var a="";function p(f){a=f,Sr(n,`${a} version`);for(let[v,u]of i)Sr(u,Ys(a,v))}return new Proxy(t,{defineProperty(f,v,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&fg();var $=i.get(v);return $===void 0?$=d(()=>{var w=Y(u.value,r);return i.set(v,w),Ae&&typeof v=="string"&&Sr(w,Ys(a,v)),w}):B($,u.value,!0),!0},deleteProperty(f,v){var u=i.get(v);if(u===void 0){if(v in f){let y=d(()=>Y(Zi,r));i.set(v,y),_p(n),Ae&&Sr(y,Ys(a,v))}}else{if(o&&typeof v=="string"){var $=i.get("length"),w=Number(v);Number.isInteger(w)&&w<$.v&&B($,w)}B(u,Zi),_p(n)}return!0},get(f,v,u){var S;if(v===Oo)return t;if(Ae&&v===Pc)return p;var $=i.get(v),w=v in f;if($===void 0&&(!w||(S=Zo(f,v))!=null&&S.writable)&&($=d(()=>{var T=ii(w?f[v]:Zi),k=Y(T,r);return Ae&&Sr(k,Ys(a,v)),k}),i.set(v,$)),$!==void 0){var y=s($);return y===Zi?void 0:y}return Reflect.get(f,v,u)},getOwnPropertyDescriptor(f,v){var u=Reflect.getOwnPropertyDescriptor(f,v);if(u&&"value"in u){var $=i.get(v);$&&(u.value=s($))}else if(u===void 0){var w=i.get(v),y=w==null?void 0:w.v;if(w!==void 0&&y!==Zi)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return u},has(f,v){var y;if(v===Oo)return!0;var u=i.get(v),$=u!==void 0&&u.v!==Zi||Reflect.has(f,v);if(u!==void 0||ht!==null&&(!$||(y=Zo(f,v))!=null&&y.writable)){u===void 0&&(u=d(()=>{var S=$?ii(f[v]):Zi,T=Y(S,r);return Ae&&Sr(T,Ys(a,v)),T}),i.set(v,u));var w=s(u);if(w===Zi)return!1}return $},set(f,v,u,$){var R;var w=i.get(v),y=v in f;if(o&&v==="length")for(var S=u;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?B(T,Zi):S in f&&(T=d(()=>Y(Zi,r)),i.set(S+"",T),Ae&&Sr(T,Ys(a,S)))}if(w===void 0)(!y||(R=Zo(f,v))!=null&&R.writable)&&(w=d(()=>Y(void 0,r)),B(w,ii(u)),i.set(v,w),Ae&&Sr(w,Ys(a,v)));else{y=w.v!==Zi;var k=d(()=>ii(u));B(w,k)}var A=Reflect.getOwnPropertyDescriptor(f,v);if(A!=null&&A.set&&A.set.call($,u),!y){if(o&&typeof v=="string"){var I=i.get("length"),E=Number(v);Number.isInteger(E)&&E>=I.v&&B(I,E+1)}_p(n)}return!0},ownKeys(f){s(n);var v=Reflect.ownKeys(f).filter(w=>{var y=i.get(w);return y===void 0||y.v!==Zi});for(var[u,$]of i)$.v!==Zi&&!(u in f)&&v.push(u);return v},setPrototypeOf(){mg()}})}function Ys(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:Q0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function _p(t,e=1){B(t,t.v+e)}function Za(t){try{if(t!==null&&typeof t=="object"&&Oo in t)return t[Oo]}catch(e){}return t}function bp(t,e){return Object.is(Za(t),Za(e))}function Tr(t){var e=2050,i=It!==null&&(It.f&2)!==0?It:null;ht===null||i!==null&&(i.f&256)!==0?e|=256:ht.f|=1048576;let o={ctx:Vt,deps:null,effects:null,equals:Mc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:ht};return Ae&&Yr&&(o.created=ds("CreatedAt")),o}function g(t){let e=Tr(t);return Nc(e),e}function Er(t){let e=Tr(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 $p=[];function G0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function wp(t){var e,i=ht;if(lo(G0(t)),Ae){let o=Zs;yp(new Set);try{$p.includes(t)&&og(),$p.push(t),Vc(t),e=Rc(t)}finally{lo(i),yp(o),$p.pop()}}else try{Vc(t),e=Rc(t)}finally{lo(i)}return e}function Cp(t){var e=wp(t);if(t.equals(e)||(t.v=e,t.wv=Kl()),!cs){var i=(us||(t.f&256)!==0)&&t.deps!==null?4096:1024;pn(t,i)}}var Zs=new Set,Xa=new Map;function yp(t){Zs=t}function ur(t,e){var i={f:0,v:t,reactions:null,equals:Mc,rv:0,wv:0};return Ae&&Yr&&(i.created=e!=null?e:ds("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Y(t,e){let i=ur(t,e);return Nc(i),i}function Xr(t,e=!1,i=!0){var n,r;let o=ur(t);return e||(o.equals=Qa),jr&&i&&Vt!==null&&Vt.l!==null&&((r=(n=Vt.l).s)!=null?r:n.s=[]).push(o),o}function B(t,e,i=!1){var n;It!==null&&(!ir||(It.f&262144)!==0)&&Zr()&&(It.f&262162)!==0&&!((n=Fo)!=null&&n[1].includes(t)&&Fo[0]===It)&&vg();let o=i?ii(e):e;return Ae&&Lc(o,t.label),Ja(t,o)}function Ja(t,e){if(!t.equals(e)){var i=t.v;if(cs?Xa.set(t,e):Xa.set(t,i),t.v=e,Ae&&Yr&&(t.updated=ds("UpdatedAt"),ht!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&wp(t),pn(t,(t.f&256)===0?1024:4096)),t.wv=Kl(),_g(t,2048),Zr()&&ht!==null&&(ht.f&1024)!==0&&(ht.f&96)===0&&(tr===null?bg([t]):tr.push(t)),Ae&&Zs.size>0){let o=Array.from(Zs);for(let n of o)(n.f&1024)!==0&&pn(n,4096),Js(n)&&el(n);Zs.clear()}}return e}function _g(t,e){var i=t.reactions;if(i!==null)for(var o=Zr(),n=i.length,r=0;r<n;r++){var l=i[r],d=l.f;if((d&2048)===0&&!(!o&&l===ht)){if(Ae&&(d&262144)!==0){Zs.add(l);continue}pn(l,e),(d&1280)!==0&&((d&2)!==0?_g(l,4096):Gl(l))}}}var tl="font-weight: bold",il="font-weight: normal";function $g(t,e,i){Ae?console.warn(`%c[svelte] hydration_attribute_changed
28
28
  %cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
29
- https://svelte.dev/e/hydration_attribute_changed`,el,tl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function hg(t){Pe?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 yg(t){Ae?console.warn(`%c[svelte] hydration_html_changed
30
30
  %c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
31
- https://svelte.dev/e/hydration_html_changed`,el,tl):console.warn("https://svelte.dev/e/hydration_html_changed")}function Es(t){Pe?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 Ps(t){Ae?console.warn(`%c[svelte] hydration_mismatch
32
32
  %c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
33
- https://svelte.dev/e/hydration_mismatch`,el,tl):console.warn("https://svelte.dev/e/hydration_mismatch")}function _g(){Pe?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 xg(){Ae?console.warn(`%c[svelte] lifecycle_double_unmount
34
34
  %cTried to unmount a component that was not mounted
35
- https://svelte.dev/e/lifecycle_double_unmount`,el,tl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function bg(){Pe?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 Lc(t){Pe?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 wg(){Ae?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",tl,il):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Bc(t){Ae?console.warn(`%c[svelte] state_proxy_equality_mismatch
36
36
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
37
- https://svelte.dev/e/state_proxy_equality_mismatch`,el,tl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Xe=!1;function uo(t){Xe=t}var ht;function pi(t){if(t===null)throw Es(),Yr;return ht=t}function Hi(){return pi(Ro(ht))}function g(t){if(Xe){if(Ro(ht)!==null)throw Es(),Yr;ht=t}}function Ce(t=1){if(Xe){for(var e=t,i=ht;e--;)i=Ro(i);ht=i}}function Xs(){for(var t=0,e=ht;;){if(e.nodeType===Qn){var i=e.data;if(i===Ks){if(t===0)return e;t-=1}else(i===ws||i===Cs)&&(t+=1)}var o=Ro(e);e.remove(),e=o}}function Vc(t){if(!t||t.nodeType!==Qn)throw Es(),Yr;return t.data}function $g(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(ja(this[a])===r){Lc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(ja(this[a])===r){Lc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(ja(this[a])===r){Lc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Js,yg,Ql,xg,wg;function Rc(){if(Js===void 0){Js=window,yg=document,Ql=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;xg=Qo(e,"firstChild").get,wg=Qo(e,"nextSibling").get,up(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),up(i)&&(i.__t=void 0),Pe&&(t.__svelte_meta=null,$g())}}function cn(t=""){return document.createTextNode(t)}function mi(t){return xg.call(t)}function Ro(t){return wg.call(t)}function _(t,e){if(!Xe)return mi(t);var i=mi(ht);if(i===null)i=ht.appendChild(cn());else if(e&&i.nodeType!==Wa){var o=cn();return i==null||i.before(o),pi(o),o}return pi(i),i}function fe(t,e){var n,r;if(!Xe){var i=mi(t);return i.nodeType===8&&i.data===""?Ro(i):i}if(e&&((n=ht)==null?void 0:n.nodeType)!==Wa){var o=cn();return(r=ht)==null||r.before(o),pi(o),o}return ht}function P(t,e=1,i=!1){let o=Xe?ht:t;for(var n;e--;)n=o,o=Ro(o);if(!Xe)return o;if(i&&(o==null?void 0:o.nodeType)!==Wa){var r=cn();return o===null?n==null||n.after(r):o.before(r),pi(r),r}return pi(o),o}function Gl(t){t.textContent=""}function Cp(t){gt===null&&kt===null&&ig(t),kt!==null&&(kt.f&256)!==0&&gt===null&&tg(),ds&&eg(t)}function U0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ea(t,e,i,o=!0){var a;var n=gt;if(Pe)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var r={ctx:Rt,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(Pe&&(r.component_function=Gn),i)try{Ja(r),r.f|=32768}catch(p){throw Di(r),p}else e!==null&&Kl(r);var l=i&&r.deps===null&&r.first===null&&r.nodes_start===null&&r.teardown===null&&(r.f&1048704)===0;if(!l&&o&&(n!==null&&U0(r,n),kt!==null&&(kt.f&2)!==0)){var d=kt;((a=d.effects)!=null?a:d.effects=[]).push(r)}return r}function Mo(t){let e=ea(8,null,!1);return dn(e,1024),e.teardown=t,e}function We(t){var n;Cp("$effect");var e=gt!==null&&(gt.f&32)!==0&&Rt!==null&&!Rt.m;if(Pe&&lo(t,"name",{value:"$effect"}),e){var i=Rt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:gt,reaction:kt})}else{var o=xo(t);return o}}function Zl(t){return Cp("$effect.pre"),Pe&&lo(t,"name",{value:"$effect.pre"}),No(t)}function Oc(t){let e=ea(64,t,!0);return()=>{Di(e)}}function Sg(t){let e=ea(64,t,!0);return(i={})=>new Promise(o=>{i.outro?An(e,()=>{Di(e),o(void 0)}):(Di(e),o(void 0))})}function xo(t){return ea(4,t,!1)}function No(t){return ea(8,t,!0)}function O(t,e=[],i=kr){if(Pe)return No(()=>{var n=gt,r=()=>t(...l.map(s));lo(n.fn,"name",{value:"{expression}"}),lo(r,"name",{value:"{expression}"});let l=e.map(i);Fi(r)});let o=e.map(i);return Fi(()=>t(...o.map(s)))}function Fi(t,e=0){return ea(24|e,t,!0)}function Mi(t,e=!0){return ea(40,t,!0,e)}function Sp(t){var e=t.teardown;if(e!==null){let i=ds,o=kt;xp(!0),Oi(null);try{e.call(null)}finally{xp(i),Oi(o)}}}function Tp(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:Di(i,e),i=o}}function Tg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Di(e),e=i}}function Di(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Ep(t.nodes_start,t.nodes_end),i=!0),Tp(t,e&&!i),Xl(t,0),dn(t,16384);var o=t.transitions;if(o!==null)for(let r of o)r.stop();Sp(t);var n=t.parent;n!==null&&n.first!==null&&Ip(t),Pe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Ep(t,e){for(;t!==null;){var i=t===e?null:Ro(t);t.remove(),t=i}}function Ip(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 An(t,e){var i=[];Dc(t,i,!0),kp(i,()=>{Di(t),e&&e()})}function kp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Dc(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,r=(o.f&65536)!==0||(o.f&32)!==0;Dc(o,e,r?i:!1),o=n}}}function ps(t){Eg(t,!0)}function Eg(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;Eg(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}var Jl=[],Pp=[];function Ig(){var t=Jl;Jl=[],Ts(t)}function z0(){var t=Pp;Pp=[],Ts(t)}function un(t){Jl.length===0&&queueMicrotask(Ig),Jl.push(t)}function kg(){Jl.length>0&&Ig(),Pp.length>0&&z0()}function Ag(t){var e=gt;if(Pe&&t instanceof Error&&W0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else ed(t,e)}function ed(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var Pg=new WeakSet;function W0(t,e){var l,d;if(Pg.has(t))return;Pg.add(t);let i=Qo(t,"message");if(!(i&&!i.configurable)){for(var o=Ql?" ":" ",n=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,tl,il):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Xe=!1;function co(t){Xe=t}var _t;function vi(t){if(t===null)throw Ps(),Gr;return _t=t}function Ui(){return vi(Uo(_t))}function h(t){if(Xe){if(Uo(_t)!==null)throw Ps(),Gr;_t=t}}function Ce(t=1){if(Xe){for(var e=t,i=_t;e--;)i=Uo(i);_t=i}}function ea(){for(var t=0,e=_t;;){if(e.nodeType===Xn){var i=e.data;if(i===Gs){if(t===0)return e;t-=1}else(i===Ts||i===Es)&&(t+=1)}var o=Uo(e);e.remove(),e=o}}function Oc(t){if(!t||t.nodeType!==Xn)throw Ps(),Gr;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(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Za(this[a])===r){Bc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,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])===r){Bc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Za(this[a])===r){Bc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ta,Sg,jl,Tg,Eg;function Dc(){if(ta===void 0){ta=window,Sg=document,jl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Tg=Zo(e,"firstChild").get,Eg=Zo(e,"nextSibling").get,mp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),mp(i)&&(i.__t=void 0),Ae&&(t.__svelte_meta=null,Cg())}}function fn(t=""){return document.createTextNode(t)}function hi(t){return Tg.call(t)}function Uo(t){return Eg.call(t)}function _(t,e){if(!Xe)return hi(t);var i=hi(_t);if(i===null)i=_t.appendChild(fn());else if(e&&i.nodeType!==qa){var o=fn();return i==null||i.before(o),vi(o),o}return vi(i),i}function fe(t,e){var n,r;if(!Xe){var i=hi(t);return i.nodeType===8&&i.data===""?Uo(i):i}if(e&&((n=_t)==null?void 0:n.nodeType)!==qa){var o=fn();return(r=_t)==null||r.before(o),vi(o),o}return _t}function P(t,e=1,i=!1){let o=Xe?_t:t;for(var n;e--;)n=o,o=Uo(o);if(!Xe)return o;if(i&&(o==null?void 0:o.nodeType)!==qa){var r=fn();return o===null?n==null||n.after(r):o.before(r),vi(r),r}return vi(o),o}function Yl(t){t.textContent=""}function Ep(t){ht===null&&It===null&&sg(t),It!==null&&(It.f&256)!==0&&ht===null&&rg(),cs&&ng(t)}function j0(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=ht;if(Ae)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var r={ctx:Vt,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(Ae&&(r.component_function=Jn),i)try{el(r),r.f|=32768}catch(p){throw Fi(r),p}else e!==null&&Gl(r);var l=i&&r.deps===null&&r.first===null&&r.nodes_start===null&&r.teardown===null&&(r.f&1048704)===0;if(!l&&o&&(n!==null&&j0(r,n),It!==null&&(It.f&2)!==0)){var d=It;((a=d.effects)!=null?a:d.effects=[]).push(r)}return r}function Do(t){let e=ia(8,null,!1);return pn(e,1024),e.teardown=t,e}function Ue(t){var n;Ep("$effect");var e=ht!==null&&(ht.f&32)!==0&&Vt!==null&&!Vt.m;if(Ae&&ao(t,"name",{value:"$effect"}),e){var i=Vt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:ht,reaction:It})}else{var o=So(t);return o}}function Jl(t){return Ep("$effect.pre"),Ae&&ao(t,"name",{value:"$effect.pre"}),zo(t)}function Uc(t){let e=ia(64,t,!0);return()=>{Fi(e)}}function kg(t){let e=ia(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Ln(e,()=>{Fi(e),o(void 0)}):(Fi(e),o(void 0))})}function So(t){return ia(4,t,!1)}function zo(t){return ia(8,t,!0)}function O(t,e=[],i=Tr){if(Ae)return zo(()=>{var n=ht,r=()=>t(...l.map(s));ao(n.fn,"name",{value:"{expression}"}),ao(r,"name",{value:"{expression}"});let l=e.map(i);zi(r)});let o=e.map(i);return zi(()=>t(...o.map(s)))}function zi(t,e=0){return ia(24|e,t,!0)}function Li(t,e=!0){return ia(40,t,!0,e)}function Ip(t){var e=t.teardown;if(e!==null){let i=cs,o=It;Sp(!0),Hi(null);try{e.call(null)}finally{Sp(i),Hi(o)}}}function kp(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 Pg(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&&(Pp(t.nodes_start,t.nodes_end),i=!0),kp(t,e&&!i),ed(t,0),pn(t,16384);var o=t.transitions;if(o!==null)for(let r of o)r.stop();Ip(t);var n=t.parent;n!==null&&n.first!==null&&Ap(t),Ae&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pp(t,e){for(;t!==null;){var i=t===e?null:Uo(t);t.remove(),t=i}}function Ap(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 Ln(t,e){var i=[];zc(t,i,!0),Mp(i,()=>{Fi(t),e&&e()})}function Mp(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,r=(o.f&65536)!==0||(o.f&32)!==0;zc(o,e,r?i:!1),o=n}}}function fs(t){Ag(t,!0)}function Ag(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;Ag(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}var td=[],Lp=[];function Mg(){var t=td;td=[],ks(t)}function Y0(){var t=Lp;Lp=[],ks(t)}function mn(t){td.length===0&&queueMicrotask(Mg),td.push(t)}function Lg(){td.length>0&&Mg(),Lp.length>0&&Y0()}function Rg(t){var e=ht;if(Ae&&t instanceof Error&&Z0(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 Vg=new WeakSet;function Z0(t,e){var l,d;if(Vg.has(t))return;Vg.add(t);let i=Zo(t,"message");if(!(i&&!i.configurable)){for(var o=jl?" ":" ",n=`
38
38
  ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,r=e.ctx;r!==null;)n+=`
39
- ${o}in ${(d=r.function)==null?void 0:d[En].split("/").pop()}`,r=r.p;lo(t,"message",{value:t.message+`
39
+ ${o}in ${(d=r.function)==null?void 0:d[kn].split("/").pop()}`,r=r.p;ao(t,"message",{value:t.message+`
40
40
  ${n}
41
- `}),t.stack&&lo(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&ao(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var ta=!1,il=null,ia=!1,ds=!1;function xp(t){ds=t}var td=[],id=[],kt=null,Zn=!1;function Oi(t){kt=t}var gt=null;function co(t){gt=t}var Vo=null;function Mc(t){kt!==null&&kt.f&2097152&&(Vo===null?Vo=[kt,[t]]:Vo[1].push(t))}var pn=null,Xn=0,jn=null;function vg(t){jn=t}var Vg=1,Fc=0,cs=!1,Uc=null;function Wl(){return++Vg}function Zs(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,r,l=(e&512)!==0,d=o&&gt!==null&&!cs,a=i.length;if(l||d){var p=t,f=p.parent;for(n=0;n<a;n++)r=i[n],(l||!((v=r==null?void 0:r.reactions)!=null&&v.includes(p)))&&((u=r.reactions)!=null?u:r.reactions=[]).push(p);l&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<a;n++)if(r=i[n],Zs(r)&&yp(r),r.wv>t.wv)return!0}(!o||gt!==null&&!cs)&&dn(t,1024)}return!1}function Rg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];Vo!=null&&Vo[1].includes(t)&&Vo[0]===kt||((r.f&2)!==0?Rg(r,e,!1):e===r&&(i?dn(r,2048):(r.f&1024)!==0&&dn(r,4096),Kl(r)))}}function Ac(t){var $,w;var e=pn,i=Xn,o=jn,n=kt,r=cs,l=Vo,d=Rt,a=Zn,p=t.f;pn=null,Xn=0,jn=null,cs=(p&256)!==0&&(Zn||!ia||kt===null),kt=(p&96)===0?t:null,Vo=null,Fl(t.ctx),Zn=!1,Fc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(pn!==null){var u;if(Xl(t,Xn),v!==null&&Xn>0)for(v.length=Xn+pn.length,u=0;u<pn.length;u++)v[Xn+u]=pn[u];else t.deps=v=pn;if(!cs||(p&2)!==0&&t.reactions!==null)for(u=Xn;u<v.length;u++)((w=($=v[u]).reactions)!=null?w:$.reactions=[]).push(t)}else v!==null&&Xn<v.length&&(Xl(t,Xn),v.length=Xn);if(Xr()&&jn!==null&&!Zn&&v!==null&&(t.f&6146)===0)for(u=0;u<jn.length;u++)Rg(jn[u],t);return n!==null&&n!==t&&(Fc++,jn!==null&&(o===null?o=jn:o.push(...jn))),f}catch(y){Ag(y)}finally{pn=e,Xn=i,jn=o,kt=n,cs=r,Vo=l,Fl(d),Zn=a,t.f^=2097152}}function q0(t,e){let i=e.reactions;if(i!==null){var o=Gv.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&&(pn===null||!pn.includes(e))&&(dn(e,4096),(e.f&768)===0&&(e.f^=512),Pc(e),Xl(e,0))}function Xl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)q0(t,i[o])}function Ja(t){var e=t.f;if((e&16384)===0){dn(t,1024);var i=gt,o=ia;if(gt=t,ia=!0,Pe){var n=Gn;Ul(t.component_function)}try{(e&16)!==0?Tg(t):Tp(t),Sp(t);var r=Ac(t);if(t.teardown=typeof r=="function"?r:null,t.wv=Vg,Pe&&Zr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Wl(),l.set_during_effect=!1);Pe&&id.push(t)}finally{ia=o,gt=i,Pe&&Ul(n)}}}function Mg(){console.error("Last ten effects were: ",id.slice(-10).map(t=>t.fn)),id=[]}function K0(){try{og()}catch(t){if(Pe&&lo(t,"stack",{value:""}),il!==null)if(Pe)try{ed(t,il)}catch(e){throw Mg(),e}else ed(t,il);else throw Pe&&Mg(),t}}function Mp(){var t=ia;try{var e=0;for(ia=!0;td.length>0;){e++>1e3&&K0();var i=td,o=i.length;td=[];for(var n=0;n<o;n++){var r=G0(i[n]);Q0(r)}Za.clear()}}finally{ta=!1,ia=t,il=null,Pe&&(id=[])}}function Q0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Zs(o)&&(Ja(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Ip(o):o.fn=null))}}function Kl(t){ta||(ta=!0,queueMicrotask(Mp));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}}td.push(e)}function G0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,r=n&&(o&1024)!==0;if(!r&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:Zs(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&&(ta=!0,Mp(),ta=!0,e=t());;){if(kg(),td.length===0)return ta=!1,il=null,Pe&&(id=[]),e;ta=!0,Mp()}}async function wo(){await Promise.resolve(),ol()}function s(t){var e=t.f,i=(e&2)!==0;if(Uc!==null&&Uc.add(t),kt!==null&&!Zn){if(!(Vo!=null&&Vo[1].includes(t))||Vo[0]!==kt){var o=kt.deps;t.rv<Fc&&(t.rv=Fc,pn===null&&o!==null&&o[Xn]===t?Xn++:pn===null?pn=[t]:(!cs||!pn.includes(t))&&pn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&(r.f&256)===0&&(n.f^=256)}if(i&&(n=t,Zs(n)&&yp(n)),Pe&&Zr&&!Zn&&Hl!==null&&kt!==null&&Hl.reaction===kt)if(t.trace)t.trace();else{var l=ls("TracedAt");if(l){var d=Hl.entries.get(t);d===void 0&&(d={traces:[]},Hl.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 ds&&Za.has(t)?Za.get(t):t.v}function Tt(t){var e=Zn;try{return Zn=!0,t()}finally{Zn=e}}var Y0=-7169;function dn(t,e){t.f=t.f&Y0|e}function Wc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ao in t)zc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ao in i&&zc(i)}}}function zc(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{zc(t[o],e)}catch(n){}let i=Qs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Sc(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}function Lp(t,e){if(e){let i=document.body;t.autofocus=!0,un(()=>{document.activeElement===i&&t.focus()})}}function od(t){var e=kt,i=gt;Oi(null),co(null);try{return t()}finally{Oi(e),co(i)}}var Vp=new Set,qc=new Set;function oa(t){if(!Xe)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Rp(t,e,i,o={}){function n(r){if(o.capture||nl.call(e,r),!r.cancelBubble)return od(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?un(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function St(t,e,i,o,n){var r={capture:o,passive:n},l=Rp(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Mo(()=>{e.removeEventListener(t,l,r)})}function dt(t){for(var e=0;e<t.length;e++)Vp.add(t[e]);for(var i of qc)i(t)}function nl(t){var k;var e=this,i=e.ownerDocument,o=t.type,n=((k=t.composedPath)==null?void 0:k.call(t))||[],r=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(r=n[l]||t.target,r!==e){lo(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=kt,v=gt;Oi(null),co(null);try{for(var u,$=[];r!==null;){var w=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!=null&&(!r.disabled||t.target===r))if(Kn(y)){var[S,...T]=y;S.apply(r,[t,...T])}else y.call(r,t)}catch(A){u?$.push(A):u=A}if(t.cancelBubble||w===e||w===null)break;r=w}if(u){for(let A of $)queueMicrotask(()=>{throw A});throw u}}finally{t.__root=e,delete t.currentTarget,Oi(f),co(v)}}}var Z0;function Ng(){Z0=void 0}function rl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Co(t,e){var i=gt;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,r=!t.startsWith("<!>");return()=>{if(Xe)return Co(ht,null),ht;n===void 0&&(n=rl(r?t:"<!>"+t),i||(n=mi(n)));var l=o||Ql?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=mi(l),a=l.lastChild;Co(d,a)}else Co(l,l);return l}}function e_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Xe)return Co(ht,null),ht;if(!l){var d=rl(r),a=mi(d);if(n)for(l=document.createDocumentFragment();mi(a);)l.appendChild(mi(a));else l=mi(a)}var p=l.cloneNode(!0);if(n){var f=mi(p),v=p.lastChild;Co(f,v)}else Co(p,p);return p}}function Se(t,e){return e_(t,e,"svg")}function es(t=""){if(!Xe){var e=cn(t+"");return Co(e,e),e}var i=ht;return i.nodeType!==Wa&&(i.before(i=cn()),pi(i)),Co(i,i),i}function Ue(){if(Xe)return Co(ht,null),ht;var t=document.createDocumentFragment(),e=document.createComment(""),i=cn();return t.append(e,i),Co(e,i),t}function b(t,e){if(Xe){gt.nodes_end=ht,Hi();return}t!==null&&t.before(e)}var t_=/\r/g;function Og(t){t=t.replace(t_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Dg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var i_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Hg(t){return i_.includes(t)}var o_=["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 n_={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 Fg(t){var e;return t=t.toLowerCase(),(e=n_[t])!=null?e:t}var O6=[...o_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var r_=["touchstart","touchmove"];function Ug(t){return r_.includes(t)}var s_=["$state","$state.raw","$derived","$derived.by"],D6=[...s_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var a_=["textarea","script","style","title"];function zg(t){return a_.includes(t)}function Kc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var nd=!0;function Qc(t){nd=t}function he(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function ts(t,e){return Wg(t,e)}function Bp(t,e){var l;Rc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Xe,n=ht;try{for(var r=mi(i);r&&(r.nodeType!==Qn||r.data!==ws);)r=Ro(r);if(!r)throw Yr;uo(!0),pi(r),Hi();let d=Wg(t,{...e,anchor:r});if(ht===null||ht.nodeType!==Qn||ht.data!==Ks)throw Es(),Yr;return uo(!1),d}catch(d){if(d===Yr)return e.recover===!1&&ng(),Rc(),Gl(i),uo(!1),ts(t,e);throw d}finally{uo(o),pi(n),Ng()}}var sl=new Map;function Wg(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){Rc();var d=new Set,a=v=>{for(var u=0;u<v.length;u++){var $=v[u];if(!d.has($)){d.add($);var w=Ug($);e.addEventListener($,nl,{passive:w});var y=sl.get($);y===void 0?(document.addEventListener($,nl,{passive:w}),sl.set($,1)):sl.set($,y+1)}}};a(Dl(Vp)),qc.add(a);var p=void 0,f=Sg(()=>{var v=i!=null?i:e.appendChild(cn());return Mi(()=>{if(r){D({});var u=Rt;u.c=r}n&&(o.$$events=n),Xe&&Co(v,null),nd=l,p=t(v,o)||{},nd=!0,Xe&&(gt.nodes_end=ht),r&&H()}),()=>{var w;for(var u of d){e.removeEventListener(u,nl);var $=sl.get(u);--$===0?(document.removeEventListener(u,nl),sl.delete(u)):sl.set(u,$)}qc.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return Np.set(p,f),p}var Np=new WeakMap;function na(t,e){let i=Np.get(t);return i?(Np.delete(t),i(e)):(Pe&&_g(),Promise.resolve())}function be(t,e,...i){var o=t,n=oe,r;Fi(()=>{n!==(n=e())&&(r&&(Di(r),r=null),Pe&&n==null&&rg(),r=Mi(()=>n(o,...i)))},65536),Xe&&(o=ht)}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;lg(e)},set:o=>{i=o}})}};u_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var u_;function Bt(t){Rt===null&&Qa("onMount"),jr&&Rt.l!==null?c_(Rt).m.push(t):We(()=>{let e=Tt(t);if(typeof e=="function")return e})}function Mn(t){Rt===null&&Qa("onDestroy"),Bt(()=>()=>Tt(t))}function c_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var qg=new Map;function Kg(t,e){var i=qg.get(t);i||(i=new Set,qg.set(t,i)),i.add(e)}function L(t,e,[i,o]=[0,0]){Xe&&i===0&&Hi();var n=t,r=null,l=null,d=Yi,a=i>0?65536:0,p=!1;let f=(u,$=!0)=>{p=!0,v($,u)},v=(u,$)=>{if(d===(d=u))return;let w=!1;if(Xe&&o!==-1){if(i===0){let S=Vc(n);S===ws?o=0:S===Cs?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Xs(),pi(n),uo(!1),w=!0,o=-1)}d?(r?ps(r):$&&(r=Mi(()=>$(n))),l&&An(l,()=>{l=null})):(l?ps(l):$&&(l=Mi(()=>$(n,[i+1,o]))),r&&An(r,()=>{r=null})),w&&uo(!0)};Fi(()=>{p=!1,e(f),p||v(null,null)},a),Xe&&(n=ht)}function ra(t,e,i){Xe&&Hi();var o=t,n=Yi,r,l=Xr()?Xv:qa;Fi(()=>{l(n,n=e())&&(r&&An(r),r=Mi(()=>i(o)))}),Xe&&(o=ht)}var ks=null;function Hp(t){ks=t}function rd(t,e){return e}function m_(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)Dc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Gl(a),a.append(i),o.clear(),Is(t,e[0].prev,e[r-1].next)}kp(n,()=>{for(var p=0;p<r;p++){var f=e[p];d||(o.delete(f.k),Is(t,f.prev,f.next)),Di(f.e,!d)}})}function xi(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var p=t;l=Xe?pi(mi(p)):p.appendChild(cn())}Xe&&Hi();var f=null,v=!1,u=Pr(()=>{var $=i();return Kn($)?$:$==null?[]:Dl($)});Fi(()=>{var $=s(u),w=$.length;if(v&&w===0)return;v=w===0;let y=!1;if(Xe){var S=Vc(l)===Cs;S!==(w===0)&&(l=Xs(),pi(l),uo(!1),y=!0)}if(Xe){for(var T=null,k,A=0;A<w;A++){if(ht.nodeType===Qn&&ht.data===Ks){l=ht,y=!0,uo(!1);break}var I=$[A],E=o(I,A);k=Yg(ht,d,T,null,I,E,A,n,e,i),d.items.set(E,k),T=k}w>0&&pi(Xs())}Xe||v_($,d,l,n,e,o,i),r!==null&&(w===0?f?ps(f):f=Mi(()=>r(l)):f!==null&&An(f,()=>{f=null})),y&&uo(!0),s(u)}),Xe&&(l=ht)}function v_(t,e,i,o,n,r,l){var le,we,Ve,ve;var d=(n&8)!==0,a=(n&3)!==0,p=t.length,f=e.items,v=e.first,u=v,$,w=null,y,S=[],T=[],k,A,I,E;if(d)for(E=0;E<p;E+=1)k=t[E],A=r(k,E),I=f.get(A),I!==void 0&&((le=I.a)==null||le.measure(),(y!=null?y:y=new Set).add(I));for(E=0;E<p;E+=1){if(k=t[E],A=r(k,E),I=f.get(A),I===void 0){var V=u?u.e.nodes_start:i;w=Yg(V,e,w,w===null?e.first:w.next,k,A,E,o,n,l),f.set(A,w),S=[],T=[],u=w.next;continue}if(a&&g_(I,k,E,n),(I.e.f&8192)!==0&&(ps(I.e),d&&((we=I.a)==null||we.unfix(),(y!=null?y:y=new Set).delete(I))),I!==u){if($!==void 0&&$.has(I)){if(S.length<T.length){var K=T[0],W;w=K.prev;var U=S[0],Y=S[S.length-1];for(W=0;W<S.length;W+=1)Qg(S[W],K,i);for(W=0;W<T.length;W+=1)$.delete(T[W]);Is(e,U.prev,Y.next),Is(e,w,U),Is(e,Y,K),u=K,w=Y,E-=1,S=[],T=[]}else $.delete(I),Qg(I,u,i),Is(e,I.prev,I.next),Is(e,I,w===null?e.first:w.next),Is(e,w,I),w=I;continue}for(S=[],T=[];u!==null&&u.k!==A;)(u.e.f&8192)===0&&($!=null?$:$=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||$!==void 0){for(var ne=$===void 0?[]:Dl($);u!==null;)(u.e.f&8192)===0&&ne.push(u),u=u.next;var G=ne.length;if(G>0){var ce=(n&4)!==0&&p===0?i:null;if(d){for(E=0;E<G;E+=1)(Ve=ne[E].a)==null||Ve.measure();for(E=0;E<G;E+=1)(ve=ne[E].a)==null||ve.fix()}m_(e,ne,ce,f)}}d&&un(()=>{var ae;if(y!==void 0)for(I of y)(ae=I.a)==null||ae.apply()}),gt.first=e.first&&e.first.e,gt.last=w&&w.e}function g_(t,e,i,o){(o&1)!==0&&Xa(t.v,e),(o&2)!==0?Xa(t.i,i):t.i=i}function Yg(t,e,i,o,n,r,l,d,a,p){var f=ks,v=(a&1)!==0,u=(a&16)===0,$=v?u?Jr(n,!1,!1):fr(n):n,w=(a&2)===0?l:fr(l);Pe&&v&&($.trace=()=>{var S=typeof w=="number"?l:w.v;p()[S]});var y={i:w,v:$,k:r,a:null,e:null,prev:i,next:o};ks=y;try{return y.e=Mi(()=>d(t,$,w,p),Xe),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{ks=f}}function Qg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Ro(r);n.before(r),r=l}}function Is(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 h_(t,e,i){var r,l;if(!e||e===Og(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Gn)!=null&&l[En]&&(o=`in ${Gn[En]}`),hg(Kc(o))}function sd(t,e,i=!1,o=!1,n=!1){var r=t,l="";O(()=>{var $;var d=gt;if(l===(l=($=e())!=null?$:"")){Xe&&Hi();return}if(d.nodes_start!==null&&(Ep(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Xe){for(var a=ht.data,p=Hi(),f=p;p!==null&&(p.nodeType!==Qn||p.data!=="");)f=p,p=Ro(p);if(p===null)throw Es(),Yr;Pe&&!n&&h_(p.parentNode,a,l),Co(ht,f),r=pi(p);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var u=rl(v);if((i||o)&&(u=mi(u)),Co(mi(u),u.lastChild),i||o)for(;mi(u);)r.before(mi(u));else r.before(u)}})}function wi(t,e,i){Xe&&Hi();var o=t,n,r;Fi(()=>{n!==(n=e())&&(r&&(An(r),r=null),n&&(r=Mi(()=>i(o,n))))},65536),Xe&&(o=ht)}function sa(t,e,i,o,n,r){var w;let l=Xe;Xe&&Hi();var d=Pe&&r&&((w=Rt)==null?void 0:w.function[En]),a,p,f=null;Xe&&ht.nodeType===Ec&&(f=ht,Hi());var v=Xe?ht:t,u,$=ks;Fi(()=>{let y=e()||null;var S=n?n():i||y==="svg"?wc:null;if(y!==a){var T=ks;Hp($),u&&(y===null?An(u,()=>{u=null,p=null}):y===p?ps(u):(Di(u),Qc(!1))),y&&y!==p&&(u=Mi(()=>{if(f=Xe?f:S?document.createElementNS(S,y):document.createElement(y),Pe&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),Co(f,f),o){Xe&&zg(y)&&f.append(document.createComment(""));var k=Xe?mi(f):f.appendChild(cn());Xe&&(k===null?uo(!1):pi(k)),o(f,k)}gt.nodes_end=f,v.before(f)})),a=y,a&&(p=a),Qc(!0),Hp(T)}},65536),l&&(uo(!0),pi(v))}var Up;function jg(t){return Up=t.target,new Fp(t)}var fs,mr,Fp=class{constructor(e){xs(this,fs);xs(this,mr);var r,l;var i=new Map,o=(d,a)=>{var p=Jr(a,!1,!1);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var p;return s((p=i.get(a))!=null?p:o(a,Reflect.get(d,a)))},has(d,a){var p;return a===za?!0:(s((p=i.get(a))!=null?p:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,p){var f;return B((f=i.get(a))!=null?f:o(a,p),p),Reflect.set(d,a,p)}});Ua(this,mr,(e.hydrate?Bp:ts)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&ol(),Ua(this,fs,n.$$events);for(let d of Object.keys(Ai(this,mr)))d==="$set"||d==="$destroy"||d==="$on"||lo(this,d,{get(){return Ai(this,mr)[d]},set(a){Ai(this,mr)[d]=a},enumerable:!0});Ai(this,mr).$set=d=>{Object.assign(n,d)},Ai(this,mr).$destroy=()=>{na(Ai(this,mr))}}$set(e){Ai(this,mr).$set(e)}$on(e,i){Ai(this,fs)[e]=Ai(this,fs)[e]||[];let o=(...n)=>i.call(this,...n);return Ai(this,fs)[e].push(o),()=>{Ai(this,fs)[e]=Ai(this,fs)[e].filter(n=>n!==o)}}$destroy(){Ai(this,mr).$destroy()}};fs=new WeakMap,mr=new WeakMap;function z(t,e){un(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=Up)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Pe&&Kg(e.hash,d)}})}function zp(t,e){var i=void 0,o;Fi(()=>{i!==(i=e())&&(o&&(Di(o),o=null),i&&(o=Mi(()=>{xo(()=>i(t))})))})}function Zg(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=Zg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Xg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Zg(t))&&(o&&(o+=" "),o+=e);return o}function ad(t){return typeof t=="object"?Xg(t):t!=null?t:""}var Jg=[...`
44
- \r\f\xA0\v\uFEFF`];function th(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 r=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+r;(l===0||Jg.includes(o[l-1]))&&(d===o.length||Jg.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function eh(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var r=t[n];r!=null&&r!==""&&(o+=" "+n+": "+r+i)}return o}function Wp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function ih(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 r=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(Wp)),n&&a.push(...Object.keys(n).map(Wp));var p=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var u=t[v];if(d?u==="/"&&t[v-1]==="*"&&(d=!1):r?r===u&&(r=!1):u==="/"&&t[v+1]==="*"?d=!0:u==='"'||u==="'"?r=u:u==="("?l++:u===")"&&l--,!d&&r===!1&&l===0){if(u===":"&&f===-1)f=v;else if(u===";"||v===y-1){if(f!==-1){var $=Wp(t.substring(p,f).trim());if(!a.includes($)){u!==";"&&v++;var w=t.substring(p,v).trim();i+=" "+w+";"}}p=v+1,f=-1}}}}return o&&(i+=eh(o)),n&&(i+=eh(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,r){var l=t.__className;if(Xe||l!==i||l===void 0){var d=th(i,o,r);(!Xe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(r&&n!==r)for(var a in r){var p=!!r[a];(n==null||p!==!!n[a])&&t.classList.toggle(a,p)}return r}function qp(t,e={},i,o){for(var n in i){var r=i[n];e[n]!==r&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,r,o))}}function at(t,e,i,o){var n=t.__style;if(Xe||n!==e){var r=ih(e,o);(!Xe||r!==t.getAttribute("style"))&&(r==null?t.removeAttribute("style"):t.style.cssText=r),t.__style=e}else o&&(Array.isArray(o)?(qp(t,i==null?void 0:i[0],o[0]),qp(t,i==null?void 0:i[1],o[1],"important")):qp(t,i,o));return o}function ld(t,e,i){if(t.multiple){if(e==null)return;if(!Kn(e))return bg();for(var o of t.options)o.selected=e.includes(oh(o));return}for(o of t.options){var n=oh(o);if(gp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Kp(t){var e=new MutationObserver(()=>{ld(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Mo(()=>{e.disconnect()})}function oh(t){return"__value"in t?t.__value:t.value}var al=Symbol("class"),ll=Symbol("style"),sh=Symbol("is custom element"),ah=Symbol("is html");function lh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ne(t,e,i,o){var n=ch(t);if(Xe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||S_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Zv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&uh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function dh(t,e,i,o,n=!1){var I;var r=ch(t),l=r[sh],d=!r[ah];let a=Xe&&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=ad(i.class):(o||i[al])&&(i.class=null),i[ll]&&((I=i.style)!=null||(i.style=null));var u=uh(t);for(let E in i){let V=i[E];if(f&&E==="value"&&V==null){t.value=t.__value="",p[E]=V;continue}if(E==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,$,V,o,e==null?void 0:e[al],i[al]),p[E]=V,p[al]=i[al];continue}if(E==="style"){at(t,V,e==null?void 0:e[ll],i[ll]),p[E]=V,p[ll]=i[ll];continue}var w=p[E];if(!(V===w&&!(V===void 0&&t.hasAttribute(E)))){p[E]=V;var y=E[0]+E[1];if(y!=="$$")if(y==="on"){let K={},W="$$"+E,U=E.slice(2);var S=Hg(U);if(Dg(U)&&(U=U.slice(0,-7),K.capture=!0),!S&&w){if(V!=null)continue;t.removeEventListener(U,p[W],K),p[W]=null}if(V!=null)if(S)t[`__${U}`]=V,dt([U]);else{let Y=function(ne){p[E].call(this,ne)};var A=Y;p[W]=Rp(U,t,Y,K)}else S&&(t[`__${U}`]=void 0)}else if(E==="style")Ne(t,E,V);else if(E==="autofocus")Lp(t,!!V);else if(!l&&(E==="__value"||E==="value"&&V!=null))t.value=t.__value=V;else if(E==="selected"&&f)lh(t,V);else{var T=E;d||(T=Fg(T));var k=T==="defaultValue"||T==="defaultChecked";if(V==null&&!l&&!k)if(r[E]=null,T==="value"||T==="checked"){let K=t,W=e===void 0;if(T==="value"){let U=K.defaultValue;K.removeAttribute(T),K.defaultValue=U,K.value=K.__value=W?U:null}else{let U=K.defaultChecked;K.removeAttribute(T),K.defaultChecked=U,K.checked=W?U:!1}}else t.removeAttribute(E);else k||u.includes(T)&&(l||typeof V!="string")?t[T]=V:typeof V!="function"&&Ne(t,T,V,n)}}}return a&&uo(!0),p}function Ie(t,e,i=[],o,n=!1,r=kr){let l=i.map(r);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(Fi(()=>{var u=e(...l.map(s)),$=dh(t,d,u,o,n);f&&p&&"value"in u&&ld(t,u.value,!1);for(let y of Object.getOwnPropertySymbols(a))u[y]||Di(a[y]);for(let y of Object.getOwnPropertySymbols(u)){var w=u[y];y.description===lp&&(!d||w!==d[y])&&(a[y]&&Di(a[y]),a[y]=Mi(()=>zp(t,()=>w))),$[y]=w}d=$}),p){var v=t;xo(()=>{ld(v,d.value),Kp(v)})}f=!0}function ch(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[sh]:t.nodeName.includes("-"),[ah]:t.namespaceURI===Wv}}var nh=new Map;function uh(t){var e=nh.get(t.nodeName);if(e)return e;nh.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Sc(o);for(var r in i)i[r].set&&e.push(r);o=Qs(o)}return e}function S_(t,e,i){var o;Pe&&(e==="srcset"&&T_(t,i)||Qp((o=t.getAttribute(e))!=null?o:"",i)||gg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Qp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function rh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function T_(t,e){var i=rh(t.srcset),o=rh(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(Qp(i[l][0],n)||Qp(n,i[l][0])))}var E_=Cc?()=>performance.now():()=>Date.now(),Lr={tick:t=>(Cc?requestAnimationFrame:oe)(t),now:()=>E_(),tasks:new Set};function ph(){let t=Lr.now();Lr.tasks.forEach(e=>{e.c(t)||(Lr.tasks.delete(e),e.f())}),Lr.tasks.size!==0&&Lr.tick(ph)}function fh(t){let e;return Lr.tasks.size===0&&Lr.tick(ph),{promise:new Promise(i=>{Lr.tasks.add(e={c:t,f:i})}),abort(){Lr.tasks.delete(e)}}}function Gc(t,e){od(()=>{t.dispatchEvent(new CustomEvent(e))})}function A_(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 mh(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=A_(n.trim());e[l]=r.trim()}return e}var M_=t=>t;function Yp(t,e,i,o){var A;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",p,f=e.inert,v=e.style.overflow,u,$;function w(){var V;var I=kt,E=gt;Oi(null),co(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:a})}finally{Oi(I),co(E)}}var y={is_global:d,in(){var I;if(e.inert=f,!n){$==null||$.abort(),(I=$==null?void 0:$.reset)==null||I.call($);return}r||u==null||u.abort(),Gc(e,"introstart"),u=Gp(e,w(),$,1,()=>{Gc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=v})},out(I){if(!r){I==null||I(),p=void 0;return}e.inert=!0,Gc(e,"outrostart"),$=Gp(e,w(),u,0,()=>{Gc(e,"outroend"),I==null||I()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},S=gt;if(((A=S.transitions)!=null?A:S.transitions=[]).push(y),n&&nd){var T=d;if(!T){for(var k=S.parent;k&&(k.f&65536)!==0;)for(;(k=k.parent)&&(k.f&16)===0;);T=!k||(k.f&32768)!==0}T&&xo(()=>{Tt(()=>y.in())})}}function Gp(t,e,i,o,n){var r=o===1;if(Ss(e)){var l,d=!1;return un(()=>{if(!d){var S=e({direction:r?"in":"out"});l=Gp(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:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:a=0,css:p,tick:f,easing:v=M_}=e;var u=[];if(r&&i===void 0&&(f&&f(0,1),p)){var $=mh(p(0,1));u.push($,$)}var w=()=>1-o,y=t.animate(u,{duration:a,fill:"forwards"});return y.onfinish=()=>{var U;y.cancel();var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var T=o-S,k=e.duration*Math.abs(T),A=[];if(k>0){var I=!1;if(p)for(var E=Math.ceil(k/16.666666666666668),V=0;V<=E;V+=1){var K=S+T*v(V/E),W=mh(p(K,1-K));A.push(W),I||(I=W.overflow==="hidden")}I&&(t.style.overflow="hidden"),w=()=>{var Y=y.currentTime;return S+T*v(Y/k)},f&&fh(()=>{if(y.playState!=="running")return!1;var Y=w();return f(Y,1-Y),!0})}y=t.animate(A,{duration:k,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Ps,dl,dd,jc,vh,Zc=class Zc{constructor(e){xs(this,jc);xs(this,Ps,new WeakMap);xs(this,dl);xs(this,dd);Ua(this,dd,e)}observe(e,i){var o=Ai(this,Ps).get(e)||new Set;return o.add(i),Ai(this,Ps).set(e,o),Uv(this,jc,vh).call(this).observe(e,Ai(this,dd)),()=>{var n=Ai(this,Ps).get(e);n.delete(i),n.size===0&&(Ai(this,Ps).delete(e),Ai(this,dl).unobserve(e))}}};Ps=new WeakMap,dl=new WeakMap,dd=new WeakMap,jc=new WeakSet,vh=function(){var e;return(e=Ai(this,dl))!=null?e:Ua(this,dl,new ResizeObserver(i=>{for(var o of i){Zc.entries.set(o.target,o);for(var n of Ai(this,Ps).get(o.target)||[])n(o)}}))},qn(Zc,"entries",new WeakMap);var jp=Zc;var L_=new jp({box:"border-box"});function is(t,e,i){var o=L_.observe(t,()=>i(t[e]));xo(()=>(Tt(()=>i(t[e])),o))}function gh(t,e){return t===e||(t==null?void 0:t[Ao])===e}function nt(t={},e,i,o){return xo(()=>{var n,r;return No(()=>{n=r,r=(o==null?void 0:o())||[],Tt(()=>{t!==i(...r)&&(e(t,...r),n&&gh(i(...n),t)&&e(null,...n))})}),()=>{un(()=>{r&&gh(i(...r),t)&&e(null,...r)})}}),t}function Vr(t=!1){let e=Rt,i=e.l.u;if(!i)return;let o=()=>Wc(e.s);if(t){let n=0,r={},l=kr(()=>{let d=!1,a=e.s;for(let p in a)a[p]!==r[p]&&(r[p]=a[p],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Zl(()=>{hh(e,o),Ts(i.b)}),We(()=>{let n=Tt(()=>i.m.map(jv));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&We(()=>{hh(e,o),Ts(i.a)})}function hh(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function cd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=Tt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var cl=[];function vr(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=oe){let i=null,o=new Set;function n(d){if(qa(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 r(d){n(d(t))}function l(d,a=oe){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,r)||oe),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function vi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return vr(i,(l,d)=>{let a=!1,p=[],f=0,v=oe,u=()=>{if(f)return;v();let w=e(o?p[0]:p,l,d);r?l(w):v=typeof w=="function"?w:oe},$=n.map((w,y)=>cd(w,S=>{p[y]=S,f&=~(1<<y),a&&u()},()=>{f|=1<<y}));return a=!0,u(),function(){Ts($),v(),a=!1}})}function $e(t){let e;return cd(t,i=>e=i)(),e}var Xc=!1,Zp=Symbol();function C(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:Jr(void 0),unsubscribe:oe};if(o.store!==t&&!(Zp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=cd(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&Zp in i?$e(t):s(o.source)}function De(){let t={};function e(){Mo(()=>{for(var i in t)t[i].unsubscribe();lo(t,Zp,{enumerable:!1,value:!0})})}return[t,e]}function Xp(t){var e=Xc;try{return Xc=!1,[t(),Xc]}finally{Xc=e}}var H_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&ag(`${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 Me(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},H_)}var F_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ss(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];Ss(n)&&(n=n());let r=Qo(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ss(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Qo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ao||e===za)return!1;for(let i of t.props)if(Ss(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ss(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 ms(...t){return new Proxy({props:t},F_)}function _h(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var K,W;var n=(i&1)!==0,r=!jr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=Xp(()=>t[e]):p=t[e];var f=Ao in t||za in t,v=l&&((W=(K=Qo(t,e))==null?void 0:K.set)!=null?W:f&&e in t&&(U=>t[e]=U))||void 0,u=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?u=Tt(o):u=o),u);p===void 0&&o!==void 0&&(v&&r&&sg(e),p=y(),v&&v(p));var S;if(r)S=()=>{var U=t[e];return U===void 0?y():($=!0,w=!1,U)};else{var T=(n?kr:Pr)(()=>t[e]);T.f|=131072,S=()=>{var U=s(T);return U!==void 0&&(u=void 0),U===void 0?u:U}}if((i&4)===0&&r)return S;if(v){var k=t.$$legacy;return function(U,Y){return arguments.length>0?((!r||!Y||k||a)&&v(Y?S():U),U):S()}}var A=!1,I=!1,E=Jr(p),V=kr(()=>{var U=S(),Y=s(E);return A?(A=!1,I=!0,Y):(I=!1,E.v=U)});return l&&s(V),n||(V.equals=Ka),function(U,Y){if(Uc!==null&&(A=I,S(),s(E)),arguments.length>0){let ne=Y?s(V):r&&l?oi(U):U;if(!V.equals(ne)){if(A=!0,B(E,ne),w&&u!==void 0&&(u=ne),_h(V))return U;Tt(()=>s(V))}return U}return _h(V)?V.v:s(V)}}var U_;typeof HTMLElement=="function"&&(U_=class extends HTMLElement{constructor(e,i,o){super();qn(this,"$$ctor");qn(this,"$$s");qn(this,"$$c");qn(this,"$$cn",!1);qn(this,"$$d",{});qn(this,"$$r",!1);qn(this,"$$p_d",{});qn(this,"$$l",{});qn(this,"$$l_u",new Map);qn(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(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),b(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=z_(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Jp(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=jg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Oc(()=>{No(()=>{var r;this.$$r=!0;for(let l of dp(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Jp(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 r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,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]=Jp(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 dp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Jp(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.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 z_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var bh="5";var $h,yh,xh;typeof window!="undefined"&&((xh=(yh=($h=window.__svelte)!=null?$h:window.__svelte={}).v)!=null?xh:yh.v=new Set).add(bh);var Il=require("@vkontakte/videoplayer-core/es2018"),nY=require("@vkontakte/videoplayer-core/es2018"),Ba=require("@vkontakte/videoplayer-shared/es2018"),_0=require("@vkontakte/videoplayer-statistics/es2018");var aa=require("@vkontakte/videoplayer-shared/es2018");var W_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:aa.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:aa.VideoQuality.Q_480P,highQualityLimit:aa.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,skipInitialPlaybackRateValue:!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},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null}},wh=t=>(0,aa.fillWithDefault)(t,W_),Ch=t=>Ya("ui-config",t),zt=()=>Ga("ui-config");var ud="vk_player_debug_panel_opened";var Sh="videoplayer",Th="videoplayer";var os={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Eh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ih=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),kh=new Set(["ShiftRight","ShiftLeft"]);var Ph=["TIMELINE"],pd=[...Ph,"GRAPH_BUTTON"],ef=[...Ph,"PLAY_BUTTON"],fd=[...pd,"PLAY_BUTTON"];var Rr=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Rr||{}),da={xs:0,s:1,m:2,l:3,xl:4};var md=require("@vkontakte/videoplayer-shared/es2018"),Ah=require("@vkontakte/videoplayer-core/es2018"),Mh=require("@vkontakte/videoplayer-statistics/es2018");var Jc="prod",ca="1.1.68";var ua=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Lh=Symbol("storeContext"),Vh=Symbol("microStoresContext"),Rh=(t,e)=>{Ya(Lh,t),Ya(Vh,e),Jc==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=Ga(Lh);return(0,md.assertNonNullable)(t,"Store context is empty!"),t},fo=()=>{let t=Ga(Vh);return(0,md.assertNonNullable)(t,"MicroStores context is empty!"),t},ti=(t,e)=>tu(t,t.getValue(),e),tu=(t,e,i)=>vr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),Nh=(t,e,i,o)=>{var V,K,W,U,Y,ne,G,ce;let n=t.info,{width:r,height:l}=$e(i.ui.playerSize),d=(K=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?K:0,a=(U=(W=n.rttEstimation$.getValue())==null?void 0:W.toFixed(0))!=null?U:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${ca} (core: ${Ah.VERSION}, stat: ${Mh.VERSION}, shared: ${md.VERSION})`,v=$e(i.state.errorLog$),u=v.length?`
45
- `+v.map((le,we)=>{var Le;let Ve=`${we}) Type: ${le.id}
46
- `,ve=`Message: ${le.message} (${le.thrown})
47
- `,ae=`Trace: ${(Le=le.thrown)==null?void 0:Le.stack}
48
- `;return Ve+ve+ae}).join(`
49
- `):void 0,$=i.state.isAudioDisabled?"disabled":$e(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(Y=w==null?void 0:w.codec)!=null?Y:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&S.push(`Audio: ${(ne=y==null?void 0:y.codec)!=null?ne:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=n.currentQuality$.getValue(),k="";if(T){let le=n.availableQualitiesFps$.getValue()[T];k=le?`${le}fps`:""}let A=(ce=(G=n.currentBuffer$.getValue())==null?void 0:G.end)!=null?ce:0,I=Math.max(A-$e(i.state.positionExact$),0),E={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:$e(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} ${k}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:$,Position:`${$e(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${$e(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${r}x${l}`,URL:window.location.href,Errors:u};return Object.entries(E).filter(([le,we])=>we!==void 0).map(([le,we])=>`${le}: ${we}`).join(`
50
- `)},Bh=(t,e,i)=>{var K,W,U,Y;let o=t.info,{width:n,height:r}=$e(i.ui.playerSize),l={version:ca,viewport:`${n}x${r}`,volume:Math.round($e(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let 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-$e(i.state.positionExact$),0)),l.position=$e(i.state.positionExact$);let $=o.throughputEstimation$.getValue();$&&(l.speed=$);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let k=$e(i.vsid);typeof k=="string"&&(l.vsid=k);let A=(K=t.info.currentVideoStream$.getValue())==null?void 0:K.codec;A&&(l.videoCodec=A);let I=(W=t.info.currentAudioStream$.getValue())==null?void 0:W.codec;I&&(l.audioCodec=I),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(l.hdr=!0);let V=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.language;return V&&(l.audioLanguage=V),l},Oh=(t,e)=>ua(t,e,"mp4"),Dh=t=>!t.type,Hh=t=>!!t.type,Fh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},eu=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"),nA=require("@vkontakte/videoplayer-core/es2018"),Uh="vk_player_prefer_traffic_saving_enabled",zh="vk_player_preferred_volume",Wh="vk_player_prefer_volume_mute",rf="vk_player_preferred_quality",tf="vk_player_preferred_default_quality_settings",of="vk_player_preferred_quality_settings_by_video",qh="vk_player_preferred_stream_language",Kh="vk_player_preferred_rate",Qh="vk_player_preferred_autoplay_next",nf="vk_player_preferred_subtitles_language",Gh=t=>t>1?1:t<0?0:t,sf=t=>gi.safeStorage.set(zh,Gh(t).toString(10)),iu=()=>{let t=gi.safeStorage.get(zh);return(0,gi.isNullable)(t)?void 0:Gh(parseFloat(t))},af=(t,e)=>gi.safeStorage.set(rf,JSON.stringify({videoId:t,value:e})),gd=()=>gi.safeStorage.remove(rf),lf=t=>{let e=gi.safeStorage.get(rf);if((0,gi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){gd();return}return o},df=(t,e)=>{e?gi.safeStorage.set(t,"true"):gi.safeStorage.remove(t)},cf=t=>gi.safeStorage.get(t)==="true",uf=t=>df(Wh,t),Yh=()=>cf(Wh),vd=t=>df(Uh,t),pf=()=>cf(Uh),jh=()=>gi.safeStorage.get(qh),ff=t=>gi.safeStorage.set(qh,t),mf=()=>gi.safeStorage.get(nf),vf=t=>{t?gi.safeStorage.set(nf,t):gi.safeStorage.remove(nf)},Zh=t=>gi.safeStorage.set(Kh,JSON.stringify({rate:t})),Xh=()=>{let t=gi.safeStorage.get(Kh);if((0,gi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Jh=t=>df(Qh,t),e1=()=>cf(Qh),q_=()=>{let t=f=>{gi.safeStorage.set(tf,JSON.stringify(f))},e=()=>{try{let f=gi.safeStorage.get(tf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=gi.safeStorage.get(of);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{gi.safeStorage.set(of,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&&r();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},r=()=>{gi.safeStorage.remove(of)},l=()=>{gi.safeStorage.remove(tf)},d=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":vd(!0);break;case"exact_quality":af(f,v.quality)}r(),l()}},p=f=>{let v=lf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}pf()&&t({type:"traffic_saving",videoId:f}),vd(!1),gd()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:r,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:mf,savePreferredSubtitlesLanguage:vf}},{getPreferredQualitySettings:t1,migrateSettingsToLegacyWay:i1,savePreferredQualitySettings:ou,savePreferredDefaultQualitySettings:rA,removePreferredQualitySettingsByVideo:sA,getPreferredDefaultQualitySettings:nu}=q_();var xv=require("@vkontakte/videoplayer-core/es2018");var K_=Se('<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 hd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=K_();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var ul=require("@vkontakte/videoplayer-shared/es2018");var Q_={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",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",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,cs=!1;function Sp(t){cs=t}var od=[],nd=[],It=null,ir=!1;function Hi(t){It=t}var ht=null;function lo(t){ht=t}var Fo=null;function Nc(t){It!==null&&It.f&2097152&&(Fo===null?Fo=[It,[t]]:Fo[1].push(t))}var vn=null,or=0,tr=null;function bg(t){tr=t}var Og=1,qc=0,us=!1,Kc=null;function Kl(){return++Og}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,r,l=(e&512)!==0,d=o&&ht!==null&&!us,a=i.length;if(l||d){var p=t,f=p.parent;for(n=0;n<a;n++)r=i[n],(l||!((v=r==null?void 0:r.reactions)!=null&&v.includes(p)))&&((u=r.reactions)!=null?u:r.reactions=[]).push(p);l&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<a;n++)if(r=i[n],Js(r)&&Cp(r),r.wv>t.wv)return!0}(!o||ht!==null&&!us)&&pn(t,1024)}return!1}function Dg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];Fo!=null&&Fo[1].includes(t)&&Fo[0]===It||((r.f&2)!==0?Dg(r,e,!1):e===r&&(i?pn(r,2048):(r.f&1024)!==0&&pn(r,4096),Gl(r)))}}function Rc(t){var $,w;var e=vn,i=or,o=tr,n=It,r=us,l=Fo,d=Vt,a=ir,p=t.f;vn=null,or=0,tr=null,us=(p&256)!==0&&(ir||!na||It===null),It=(p&96)===0?t:null,Fo=null,zl(t.ctx),ir=!1,qc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(vn!==null){var u;if(ed(t,or),v!==null&&or>0)for(v.length=or+vn.length,u=0;u<vn.length;u++)v[or+u]=vn[u];else t.deps=v=vn;if(!us||(p&2)!==0&&t.reactions!==null)for(u=or;u<v.length;u++)((w=($=v[u]).reactions)!=null?w:$.reactions=[]).push(t)}else v!==null&&or<v.length&&(ed(t,or),v.length=or);if(Zr()&&tr!==null&&!ir&&v!==null&&(t.f&6146)===0)for(u=0;u<tr.length;u++)Dg(tr[u],t);return n!==null&&n!==t&&(qc++,tr!==null&&(o===null?o=tr:o.push(...tr))),f}catch(y){Rg(y)}finally{vn=e,or=i,tr=o,It=n,us=r,Fo=l,zl(d),ir=a,t.f^=2097152}}function X0(t,e){let i=e.reactions;if(i!==null){var o=Xv.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&&(vn===null||!vn.includes(e))&&(pn(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++)X0(t,i[o])}function el(t){var e=t.f;if((e&16384)===0){pn(t,1024);var i=ht,o=na;if(ht=t,na=!0,Ae){var n=Jn;Wl(t.component_function)}try{(e&16)!==0?Pg(t):kp(t),Ip(t);var r=Rc(t);if(t.teardown=typeof r=="function"?r:null,t.wv=Og,Ae&&Yr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Kl(),l.set_during_effect=!1);Ae&&nd.push(t)}finally{na=o,ht=i,Ae&&Wl(n)}}}function Ng(){console.error("Last ten effects were: ",nd.slice(-10).map(t=>t.fn)),nd=[]}function J0(){try{ag()}catch(t){if(Ae&&ao(t,"stack",{value:""}),ol!==null)if(Ae)try{id(t,ol)}catch(e){throw Ng(),e}else id(t,ol);else throw Ae&&Ng(),t}}function Rp(){var t=na;try{var e=0;for(na=!0;od.length>0;){e++>1e3&&J0();var i=od,o=i.length;od=[];for(var n=0;n<o;n++){var r=t_(i[n]);e_(r)}Xa.clear()}}finally{oa=!1,na=t,ol=null,Ae&&(nd=[])}}function e_(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?Ap(o):o.fn=null))}}function Gl(t){oa||(oa=!0,queueMicrotask(Rp));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 t_(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,r=n&&(o&1024)!==0;if(!r&&(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,Rp(),oa=!0,e=t());;){if(Lg(),od.length===0)return oa=!1,ol=null,Ae&&(nd=[]),e;oa=!0,Rp()}}async function To(){await Promise.resolve(),nl()}function s(t){var e=t.f,i=(e&2)!==0;if(Kc!==null&&Kc.add(t),It!==null&&!ir){if(!(Fo!=null&&Fo[1].includes(t))||Fo[0]!==It){var o=It.deps;t.rv<qc&&(t.rv=qc,vn===null&&o!==null&&o[or]===t?or++:vn===null?vn=[t]:(!us||!vn.includes(t))&&vn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&(r.f&256)===0&&(n.f^=256)}if(i&&(n=t,Js(n)&&Cp(n)),Ae&&Yr&&!ir&&Ul!==null&&It!==null&&Ul.reaction===It)if(t.trace)t.trace();else{var l=ds("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 cs&&Xa.has(t)?Xa.get(t):t.v}function St(t){var e=ir;try{return ir=!0,t()}finally{ir=e}}var i_=-7169;function pn(t,e){t.f=t.f&i_|e}function Gc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Oo in t)Qc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Oo 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 r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}function Np(t,e){if(e){let i=document.body;t.autofocus=!0,mn(()=>{document.activeElement===i&&t.focus()})}}function rd(t){var e=It,i=ht;Hi(null),lo(null);try{return t()}finally{Hi(e),lo(i)}}var Bp=new Set,jc=new Set;function ra(t){if(!Xe)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Op(t,e,i,o={}){function n(r){if(o.capture||rl.call(e,r),!r.cancelBubble)return rd(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?mn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Et(t,e,i,o,n){var r={capture:o,passive:n},l=Op(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Do(()=>{e.removeEventListener(t,l,r)})}function dt(t){for(var e=0;e<t.length;e++)Bp.add(t[e]);for(var i of jc)i(t)}function rl(t){var k;var e=this,i=e.ownerDocument,o=t.type,n=((k=t.composedPath)==null?void 0:k.call(t))||[],r=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(r=n[l]||t.target,r!==e){ao(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=It,v=ht;Hi(null),lo(null);try{for(var u,$=[];r!==null;){var w=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!=null&&(!r.disabled||t.target===r))if(Zn(y)){var[S,...T]=y;S.apply(r,[t,...T])}else y.call(r,t)}catch(A){u?$.push(A):u=A}if(t.cancelBubble||w===e||w===null)break;r=w}if(u){for(let A of $)queueMicrotask(()=>{throw A});throw u}}finally{t.__root=e,delete t.currentTarget,Hi(f),lo(v)}}}var n_;function Hg(){n_=void 0}function sl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Eo(t,e){var i=ht;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,r=!t.startsWith("<!>");return()=>{if(Xe)return Eo(_t,null),_t;n===void 0&&(n=sl(r?t:"<!>"+t),i||(n=hi(n)));var l=o||jl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=hi(l),a=l.lastChild;Eo(d,a)}else Eo(l,l);return l}}function a_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Xe)return Eo(_t,null),_t;if(!l){var d=sl(r),a=hi(d);if(n)for(l=document.createDocumentFragment();hi(a);)l.appendChild(hi(a));else l=hi(a)}var p=l.cloneNode(!0);if(n){var f=hi(p),v=p.lastChild;Eo(f,v)}else Eo(p,p);return p}}function Se(t,e){return a_(t,e,"svg")}function Jr(t=""){if(!Xe){var e=fn(t+"");return Eo(e,e),e}var i=_t;return i.nodeType!==qa&&(i.before(i=fn()),vi(i)),Eo(i,i),i}function Fe(){if(Xe)return Eo(_t,null),_t;var t=document.createDocumentFragment(),e=document.createComment(""),i=fn();return t.append(e,i),Eo(e,i),t}function b(t,e){if(Xe){ht.nodes_end=_t,Ui();return}t!==null&&t.before(e)}var l_=/\r/g;function Ug(t){t=t.replace(l_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function zg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var d_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Wg(t){return d_.includes(t)}var c_=["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 u_={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=u_[t])!=null?e:t}var j6=[...c_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var p_=["touchstart","touchmove"];function Kg(t){return p_.includes(t)}var f_=["$state","$state.raw","$derived","$derived.by"],Y6=[...f_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var m_=["textarea","script","style","title"];function Qg(t){return m_.includes(t)}function Yc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var sd=!0;function Zc(t){sd=t}function he(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function es(t,e){return Gg(t,e)}function Hp(t,e){var l;Dc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Xe,n=_t;try{for(var r=hi(i);r&&(r.nodeType!==Xn||r.data!==Ts);)r=Uo(r);if(!r)throw Gr;co(!0),vi(r),Ui();let d=Gg(t,{...e,anchor:r});if(_t===null||_t.nodeType!==Xn||_t.data!==Gs)throw Ps(),Gr;return co(!1),d}catch(d){if(d===Gr)return e.recover===!1&&lg(),Dc(),Yl(i),co(!1),es(t,e);throw d}finally{co(o),vi(n),Hg()}}var al=new Map;function Gg(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){Dc();var d=new Set,a=v=>{for(var u=0;u<v.length;u++){var $=v[u];if(!d.has($)){d.add($);var w=Kg($);e.addEventListener($,rl,{passive:w});var y=al.get($);y===void 0?(document.addEventListener($,rl,{passive:w}),al.set($,1)):al.set($,y+1)}}};a(Fl(Bp)),jc.add(a);var p=void 0,f=kg(()=>{var v=i!=null?i:e.appendChild(fn());return Li(()=>{if(r){D({});var u=Vt;u.c=r}n&&(o.$$events=n),Xe&&Eo(v,null),sd=l,p=t(v,o)||{},sd=!0,Xe&&(ht.nodes_end=_t),r&&H()}),()=>{var w;for(var u of d){e.removeEventListener(u,rl);var $=al.get(u);--$===0?(document.removeEventListener(u,rl),al.delete(u)):al.set(u,$)}jc.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return Dp.set(p,f),p}var Dp=new WeakMap;function sa(t,e){let i=Dp.get(t);return i?(Dp.delete(t),i(e)):(Ae&&xg(),Promise.resolve())}function be(t,e,...i){var o=t,n=se,r;zi(()=>{n!==(n=e())&&(r&&(Fi(r),r=null),Ae&&n==null&&dg(),r=Li(()=>n(o,...i)))},65536),Xe&&(o=_t)}if(Ae){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;pg(e)},set:o=>{i=o}})}};__=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var __;function Ot(t){Vt===null&&Ga("onMount"),jr&&Vt.l!==null?h_(Vt).m.push(t):Ue(()=>{let e=St(t);if(typeof e=="function")return e})}function Vn(t){Vt===null&&Ga("onDestroy"),Ot(()=>()=>St(t))}function h_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var jg=new Map;function Yg(t,e){var i=jg.get(t);i||(i=new Set,jg.set(t,i)),i.add(e)}function L(t,e,[i,o]=[0,0]){Xe&&i===0&&Ui();var n=t,r=null,l=null,d=Zi,a=i>0?65536:0,p=!1;let f=(u,$=!0)=>{p=!0,v($,u)},v=(u,$)=>{if(d===(d=u))return;let w=!1;if(Xe&&o!==-1){if(i===0){let S=Oc(n);S===Ts?o=0:S===Es?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=ea(),vi(n),co(!1),w=!0,o=-1)}d?(r?fs(r):$&&(r=Li(()=>$(n))),l&&Ln(l,()=>{l=null})):(l?fs(l):$&&(l=Li(()=>$(n,[i+1,o]))),r&&Ln(r,()=>{r=null})),w&&co(!0)};zi(()=>{p=!1,e(f),p||v(null,null)},a),Xe&&(n=_t)}function aa(t,e,i){Xe&&Ui();var o=t,n=Zi,r,l=Zr()?ig:Ka;zi(()=>{l(n,n=e())&&(r&&Ln(r),r=Li(()=>i(o)))}),Xe&&(o=_t)}var Ms=null;function zp(t){Ms=t}function ad(t,e){return e}function y_(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)zc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Yl(a),a.append(i),o.clear(),As(t,e[0].prev,e[r-1].next)}Mp(n,()=>{for(var p=0;p<r;p++){var f=e[p];d||(o.delete(f.k),As(t,f.prev,f.next)),Fi(f.e,!d)}})}function Si(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var p=t;l=Xe?vi(hi(p)):p.appendChild(fn())}Xe&&Ui();var f=null,v=!1,u=Er(()=>{var $=i();return Zn($)?$:$==null?[]:Fl($)});zi(()=>{var $=s(u),w=$.length;if(v&&w===0)return;v=w===0;let y=!1;if(Xe){var S=Oc(l)===Es;S!==(w===0)&&(l=ea(),vi(l),co(!1),y=!0)}if(Xe){for(var T=null,k,A=0;A<w;A++){if(_t.nodeType===Xn&&_t.data===Gs){l=_t,y=!0,co(!1);break}var I=$[A],E=o(I,A);k=Jg(_t,d,T,null,I,E,A,n,e,i),d.items.set(E,k),T=k}w>0&&vi(ea())}Xe||x_($,d,l,n,e,o,i),r!==null&&(w===0?f?fs(f):f=Li(()=>r(l)):f!==null&&Ln(f,()=>{f=null})),y&&co(!0),s(u)}),Xe&&(l=_t)}function x_(t,e,i,o,n,r,l){var le,ye,ke,me;var d=(n&8)!==0,a=(n&3)!==0,p=t.length,f=e.items,v=e.first,u=v,$,w=null,y,S=[],T=[],k,A,I,E;if(d)for(E=0;E<p;E+=1)k=t[E],A=r(k,E),I=f.get(A),I!==void 0&&((le=I.a)==null||le.measure(),(y!=null?y:y=new Set).add(I));for(E=0;E<p;E+=1){if(k=t[E],A=r(k,E),I=f.get(A),I===void 0){var R=u?u.e.nodes_start:i;w=Jg(R,e,w,w===null?e.first:w.next,k,A,E,o,n,l),f.set(A,w),S=[],T=[],u=w.next;continue}if(a&&w_(I,k,E,n),(I.e.f&8192)!==0&&(fs(I.e),d&&((ye=I.a)==null||ye.unfix(),(y!=null?y:y=new Set).delete(I))),I!==u){if($!==void 0&&$.has(I)){if(S.length<T.length){var G=T[0],q;w=G.prev;var U=S[0],Q=S[S.length-1];for(q=0;q<S.length;q+=1)Zg(S[q],G,i);for(q=0;q<T.length;q+=1)$.delete(T[q]);As(e,U.prev,Q.next),As(e,w,U),As(e,Q,G),u=G,w=Q,E-=1,S=[],T=[]}else $.delete(I),Zg(I,u,i),As(e,I.prev,I.next),As(e,I,w===null?e.first:w.next),As(e,w,I),w=I;continue}for(S=[],T=[];u!==null&&u.k!==A;)(u.e.f&8192)===0&&($!=null?$:$=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||$!==void 0){for(var J=$===void 0?[]:Fl($);u!==null;)(u.e.f&8192)===0&&J.push(u),u=u.next;var j=J.length;if(j>0){var ce=(n&4)!==0&&p===0?i:null;if(d){for(E=0;E<j;E+=1)(ke=J[E].a)==null||ke.measure();for(E=0;E<j;E+=1)(me=J[E].a)==null||me.fix()}y_(e,J,ce,f)}}d&&mn(()=>{var ae;if(y!==void 0)for(I of y)(ae=I.a)==null||ae.apply()}),ht.first=e.first&&e.first.e,ht.last=w&&w.e}function w_(t,e,i,o){(o&1)!==0&&Ja(t.v,e),(o&2)!==0?Ja(t.i,i):t.i=i}function Jg(t,e,i,o,n,r,l,d,a,p){var f=Ms,v=(a&1)!==0,u=(a&16)===0,$=v?u?Xr(n,!1,!1):ur(n):n,w=(a&2)===0?l:ur(l);Ae&&v&&($.trace=()=>{var S=typeof w=="number"?l:w.v;p()[S]});var y={i:w,v:$,k:r,a:null,e:null,prev:i,next:o};Ms=y;try{return y.e=Li(()=>d(t,$,w,p),Xe),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Ms=f}}function Zg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Uo(r);n.before(r),r=l}}function As(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 C_(t,e,i){var r,l;if(!e||e===Ug(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Jn)!=null&&l[kn]&&(o=`in ${Jn[kn]}`),yg(Yc(o))}function ld(t,e,i=!1,o=!1,n=!1){var r=t,l="";O(()=>{var $;var d=ht;if(l===(l=($=e())!=null?$:"")){Xe&&Ui();return}if(d.nodes_start!==null&&(Pp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Xe){for(var a=_t.data,p=Ui(),f=p;p!==null&&(p.nodeType!==Xn||p.data!=="");)f=p,p=Uo(p);if(p===null)throw Ps(),Gr;Ae&&!n&&C_(p.parentNode,a,l),Eo(_t,f),r=vi(p);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var u=sl(v);if((i||o)&&(u=hi(u)),Eo(hi(u),u.lastChild),i||o)for(;hi(u);)r.before(hi(u));else r.before(u)}})}function Ti(t,e,i){Xe&&Ui();var o=t,n,r;zi(()=>{n!==(n=e())&&(r&&(Ln(r),r=null),n&&(r=Li(()=>i(o,n))))},65536),Xe&&(o=_t)}function la(t,e,i,o,n,r){var w;let l=Xe;Xe&&Ui();var d=Ae&&r&&((w=Vt)==null?void 0:w.function[kn]),a,p,f=null;Xe&&_t.nodeType===Ac&&(f=_t,Ui());var v=Xe?_t:t,u,$=Ms;zi(()=>{let y=e()||null;var S=n?n():i||y==="svg"?Ec:null;if(y!==a){var T=Ms;zp($),u&&(y===null?Ln(u,()=>{u=null,p=null}):y===p?fs(u):(Fi(u),Zc(!1))),y&&y!==p&&(u=Li(()=>{if(f=Xe?f:S?document.createElementNS(S,y):document.createElement(y),Ae&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),Eo(f,f),o){Xe&&Qg(y)&&f.append(document.createComment(""));var k=Xe?hi(f):f.appendChild(fn());Xe&&(k===null?co(!1):vi(k)),o(f,k)}ht.nodes_end=f,v.before(f)})),a=y,a&&(p=a),Zc(!0),zp(T)}},65536),l&&(co(!0),vi(v))}var qp;function eh(t){return qp=t.target,new Wp(t)}var ms,pr,Wp=class{constructor(e){Ss(this,ms);Ss(this,pr);var r,l;var i=new Map,o=(d,a)=>{var p=Xr(a,!1,!1);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var p;return s((p=i.get(a))!=null?p:o(a,Reflect.get(d,a)))},has(d,a){var p;return a===Wa?!0:(s((p=i.get(a))!=null?p:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,p){var f;return B((f=i.get(a))!=null?f:o(a,p),p),Reflect.set(d,a,p)}});za(this,pr,(e.hydrate?Hp:es)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&nl(),za(this,ms,n.$$events);for(let d of Object.keys(Mi(this,pr)))d==="$set"||d==="$destroy"||d==="$on"||ao(this,d,{get(){return Mi(this,pr)[d]},set(a){Mi(this,pr)[d]=a},enumerable:!0});Mi(this,pr).$set=d=>{Object.assign(n,d)},Mi(this,pr).$destroy=()=>{sa(Mi(this,pr))}}$set(e){Mi(this,pr).$set(e)}$on(e,i){Mi(this,ms)[e]=Mi(this,ms)[e]||[];let o=(...n)=>i.call(this,...n);return Mi(this,ms)[e].push(o),()=>{Mi(this,ms)[e]=Mi(this,ms)[e].filter(n=>n!==o)}}$destroy(){Mi(this,pr).$destroy()}};ms=new WeakMap,pr=new WeakMap;function W(t,e){mn(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=qp)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ae&&Yg(e.hash,d)}})}function vs(t,e){var i=void 0,o;zi(()=>{i!==(i=e())&&(o&&(Fi(o),o=null),i&&(o=Li(()=>{So(()=>i(t))})))})}function th(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=th(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ih(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=th(t))&&(o&&(o+=" "),o+=e);return o}function dd(t){return typeof t=="object"?ih(t):t!=null?t:""}var oh=[...`
44
+ \r\f\xA0\v\uFEFF`];function rh(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 r=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+r;(l===0||oh.includes(o[l-1]))&&(d===o.length||oh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function nh(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var r=t[n];r!=null&&r!==""&&(o+=" "+n+": "+r+i)}return o}function Kp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function sh(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 r=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(Kp)),n&&a.push(...Object.keys(n).map(Kp));var p=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var u=t[v];if(d?u==="/"&&t[v-1]==="*"&&(d=!1):r?r===u&&(r=!1):u==="/"&&t[v+1]==="*"?d=!0:u==='"'||u==="'"?r=u:u==="("?l++:u===")"&&l--,!d&&r===!1&&l===0){if(u===":"&&f===-1)f=v;else if(u===";"||v===y-1){if(f!==-1){var $=Kp(t.substring(p,f).trim());if(!a.includes($)){u!==";"&&v++;var w=t.substring(p,v).trim();i+=" "+w+";"}}p=v+1,f=-1}}}}return o&&(i+=nh(o)),n&&(i+=nh(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,r){var l=t.__className;if(Xe||l!==i||l===void 0){var d=rh(i,o,r);(!Xe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(r&&n!==r)for(var a in r){var p=!!r[a];(n==null||p!==!!n[a])&&t.classList.toggle(a,p)}return r}function Qp(t,e={},i,o){for(var n in i){var r=i[n];e[n]!==r&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,r,o))}}function at(t,e,i,o){var n=t.__style;if(Xe||n!==e){var r=sh(e,o);(!Xe||r!==t.getAttribute("style"))&&(r==null?t.removeAttribute("style"):t.style.cssText=r),t.__style=e}else o&&(Array.isArray(o)?(Qp(t,i==null?void 0:i[0],o[0]),Qp(t,i==null?void 0:i[1],o[1],"important")):Qp(t,i,o));return o}function cd(t,e,i){if(t.multiple){if(e==null)return;if(!Zn(e))return wg();for(var o of t.options)o.selected=e.includes(ah(o));return}for(o of t.options){var n=ah(o);if(bp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Gp(t){var e=new MutationObserver(()=>{cd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Do(()=>{e.disconnect()})}function ah(t){return"__value"in t?t.__value:t.value}var ll=Symbol("class"),dl=Symbol("style"),ch=Symbol("is custom element"),uh=Symbol("is html");function ph(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=mh(t);if(Xe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||M_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[tg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&vh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function fh(t,e,i,o,n=!1){var I;var r=mh(t),l=r[ch],d=!r[uh];let a=Xe&&l;a&&co(!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]&&((I=i.style)!=null||(i.style=null));var u=vh(t);for(let E in i){let R=i[E];if(f&&E==="value"&&R==null){t.value=t.__value="",p[E]=R;continue}if(E==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,$,R,o,e==null?void 0:e[ll],i[ll]),p[E]=R,p[ll]=i[ll];continue}if(E==="style"){at(t,R,e==null?void 0:e[dl],i[dl]),p[E]=R,p[dl]=i[dl];continue}var w=p[E];if(!(R===w&&!(R===void 0&&t.hasAttribute(E)))){p[E]=R;var y=E[0]+E[1];if(y!=="$$")if(y==="on"){let G={},q="$$"+E,U=E.slice(2);var S=Wg(U);if(zg(U)&&(U=U.slice(0,-7),G.capture=!0),!S&&w){if(R!=null)continue;t.removeEventListener(U,p[q],G),p[q]=null}if(R!=null)if(S)t[`__${U}`]=R,dt([U]);else{let Q=function(J){p[E].call(this,J)};var A=Q;p[q]=Op(U,t,Q,G)}else S&&(t[`__${U}`]=void 0)}else if(E==="style")De(t,E,R);else if(E==="autofocus")Np(t,!!R);else if(!l&&(E==="__value"||E==="value"&&R!=null))t.value=t.__value=R;else if(E==="selected"&&f)ph(t,R);else{var T=E;d||(T=qg(T));var k=T==="defaultValue"||T==="defaultChecked";if(R==null&&!l&&!k)if(r[E]=null,T==="value"||T==="checked"){let G=t,q=e===void 0;if(T==="value"){let U=G.defaultValue;G.removeAttribute(T),G.defaultValue=U,G.value=G.__value=q?U:null}else{let U=G.defaultChecked;G.removeAttribute(T),G.defaultChecked=U,G.checked=q?U:!1}}else t.removeAttribute(E);else k||u.includes(T)&&(l||typeof R!="string")?t[T]=R:typeof R!="function"&&De(t,T,R,n)}}}return a&&co(!0),p}function Ie(t,e,i=[],o,n=!1,r=Tr){let l=i.map(r);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(zi(()=>{var u=e(...l.map(s)),$=fh(t,d,u,o,n);f&&p&&"value"in u&&cd(t,u.value,!1);for(let y of Object.getOwnPropertySymbols(a))u[y]||Fi(a[y]);for(let y of Object.getOwnPropertySymbols(u)){var w=u[y];y.description===up&&(!d||w!==d[y])&&(a[y]&&Fi(a[y]),a[y]=Li(()=>vs(t,()=>w))),$[y]=w}d=$}),p){var v=t;So(()=>{cd(v,d.value),Gp(v)})}f=!0}function mh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[ch]:t.nodeName.includes("-"),[uh]:t.namespaceURI===Gv}}var lh=new Map;function vh(t){var e=lh.get(t.nodeName);if(e)return e;lh.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=kc(o);for(var r in i)i[r].set&&e.push(r);o=js(o)}return e}function M_(t,e,i){var o;Ae&&(e==="srcset"&&L_(t,i)||jp((o=t.getAttribute(e))!=null?o:"",i)||$g(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function jp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function dh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function L_(t,e){var i=dh(t.srcset),o=dh(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(jp(i[l][0],n)||jp(n,i[l][0])))}var V_=Ic?()=>performance.now():()=>Date.now(),Pr={tick:t=>(Ic?requestAnimationFrame:se)(t),now:()=>V_(),tasks:new Set};function gh(){let t=Pr.now();Pr.tasks.forEach(e=>{e.c(t)||(Pr.tasks.delete(e),e.f())}),Pr.tasks.size!==0&&Pr.tick(gh)}function hh(t){let e;return Pr.tasks.size===0&&Pr.tick(gh),{promise:new Promise(i=>{Pr.tasks.add(e={c:t,f:i})}),abort(){Pr.tasks.delete(e)}}}function Xc(t,e){rd(()=>{t.dispatchEvent(new CustomEvent(e))})}function O_(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 _h(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=O_(n.trim());e[l]=r.trim()}return e}var D_=t=>t;function Zp(t,e,i,o){var A;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",p,f=e.inert,v=e.style.overflow,u,$;function w(){var R;var I=It,E=ht;Hi(null),lo(null);try{return p!=null?p:p=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:a})}finally{Hi(I),lo(E)}}var y={is_global:d,in(){var I;if(e.inert=f,!n){$==null||$.abort(),(I=$==null?void 0:$.reset)==null||I.call($);return}r||u==null||u.abort(),Xc(e,"introstart"),u=Yp(e,w(),$,1,()=>{Xc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=v})},out(I){if(!r){I==null||I(),p=void 0;return}e.inert=!0,Xc(e,"outrostart"),$=Yp(e,w(),u,0,()=>{Xc(e,"outroend"),I==null||I()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},S=ht;if(((A=S.transitions)!=null?A:S.transitions=[]).push(y),n&&sd){var T=d;if(!T){for(var k=S.parent;k&&(k.f&65536)!==0;)for(;(k=k.parent)&&(k.f&16)===0;);T=!k||(k.f&32768)!==0}T&&So(()=>{St(()=>y.in())})}}function Yp(t,e,i,o,n){var r=o===1;if(Is(e)){var l,d=!1;return mn(()=>{if(!d){var S=e({direction:r?"in":"out"});l=Yp(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:se,deactivate:se,reset:se,t:()=>o};let{delay:a=0,css:p,tick:f,easing:v=D_}=e;var u=[];if(r&&i===void 0&&(f&&f(0,1),p)){var $=_h(p(0,1));u.push($,$)}var w=()=>1-o,y=t.animate(u,{duration:a,fill:"forwards"});return y.onfinish=()=>{var U;y.cancel();var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var T=o-S,k=e.duration*Math.abs(T),A=[];if(k>0){var I=!1;if(p)for(var E=Math.ceil(k/16.666666666666668),R=0;R<=E;R+=1){var G=S+T*v(R/E),q=_h(p(G,1-G));A.push(q),I||(I=q.overflow==="hidden")}I&&(t.style.overflow="hidden"),w=()=>{var Q=y.currentTime;return S+T*v(Q/k)},f&&hh(()=>{if(y.playState!=="running")return!1;var Q=w();return f(Q,1-Q),!0})}y=t.animate(A,{duration:k,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=se)},deactivate:()=>{n=se},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Ls,cl,ud,eu,bh,tu=class tu{constructor(e){Ss(this,eu);Ss(this,Ls,new WeakMap);Ss(this,cl);Ss(this,ud);za(this,ud,e)}observe(e,i){var o=Mi(this,Ls).get(e)||new Set;return o.add(i),Mi(this,Ls).set(e,o),Kv(this,eu,bh).call(this).observe(e,Mi(this,ud)),()=>{var n=Mi(this,Ls).get(e);n.delete(i),n.size===0&&(Mi(this,Ls).delete(e),Mi(this,cl).unobserve(e))}}};Ls=new WeakMap,cl=new WeakMap,ud=new WeakMap,eu=new WeakSet,bh=function(){var e;return(e=Mi(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 Mi(this,Ls).get(o.target)||[])n(o)}}))},Yn(tu,"entries",new WeakMap);var Xp=tu;var H_=new Xp({box:"border-box"});function ts(t,e,i){var o=H_.observe(t,()=>i(t[e]));So(()=>(St(()=>i(t[e])),o))}function $h(t,e){return t===e||(t==null?void 0:t[Oo])===e}function it(t={},e,i,o){return So(()=>{var n,r;return zo(()=>{n=r,r=(o==null?void 0:o())||[],St(()=>{t!==i(...r)&&(e(t,...r),n&&$h(i(...n),t)&&e(null,...n))})}),()=>{mn(()=>{r&&$h(i(...r),t)&&e(null,...r)})}}),t}function Ar(t=!1){let e=Vt,i=e.l.u;if(!i)return;let o=()=>Gc(e.s);if(t){let n=0,r={},l=Tr(()=>{let d=!1,a=e.s;for(let p in a)a[p]!==r[p]&&(r[p]=a[p],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Jl(()=>{yh(e,o),ks(i.b)}),Ue(()=>{let n=St(()=>i.m.map(eg));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&Ue(()=>{yh(e,o),ks(i.a)})}function yh(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function pd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),se;let o=St(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var ul=[];function fr(t,e){return{subscribe:oe(t,e).subscribe}}function oe(t,e=se){let i=null,o=new Set;function n(d){if(Ka(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 r(d){n(d(t))}function l(d,a=se){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,r)||se),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function _i(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return fr(i,(l,d)=>{let a=!1,p=[],f=0,v=se,u=()=>{if(f)return;v();let w=e(o?p[0]:p,l,d);r?l(w):v=typeof w=="function"?w:se},$=n.map((w,y)=>pd(w,S=>{p[y]=S,f&=~(1<<y),a&&u()},()=>{f|=1<<y}));return a=!0,u(),function(){ks($),v(),a=!1}})}function $e(t){let e;return pd(t,i=>e=i)(),e}var iu=!1,Jp=Symbol();function C(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:Xr(void 0),unsubscribe:se};if(o.store!==t&&!(Jp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=se;else{var n=!0;o.unsubscribe=pd(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&Jp in i?$e(t):s(o.source)}function Oe(){let t={};function e(){Do(()=>{for(var i in t)t[i].unsubscribe();ao(t,Jp,{enumerable:!1,value:!0})})}return[t,e]}function ef(t){var e=iu;try{return iu=!1,[t(),iu]}finally{iu=e}}var Q_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ae&&ug(`${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 Le(t,e,i){return new Proxy(Ae?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},Q_)}var G_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Is(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];Is(n)&&(n=n());let r=Zo(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Is(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Zo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Oo||e===Wa)return!1;for(let i of t.props)if(Is(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Is(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 gs(...t){return new Proxy({props:t},G_)}function xh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var G,q;var n=(i&1)!==0,r=!jr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=ef(()=>t[e]):p=t[e];var f=Oo in t||Wa in t,v=l&&((q=(G=Zo(t,e))==null?void 0:G.set)!=null?q:f&&e in t&&(U=>t[e]=U))||void 0,u=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?u=St(o):u=o),u);p===void 0&&o!==void 0&&(v&&r&&cg(e),p=y(),v&&v(p));var S;if(r)S=()=>{var U=t[e];return U===void 0?y():($=!0,w=!1,U)};else{var T=(n?Tr:Er)(()=>t[e]);T.f|=131072,S=()=>{var U=s(T);return U!==void 0&&(u=void 0),U===void 0?u:U}}if((i&4)===0&&r)return S;if(v){var k=t.$$legacy;return function(U,Q){return arguments.length>0?((!r||!Q||k||a)&&v(Q?S():U),U):S()}}var A=!1,I=!1,E=Xr(p),R=Tr(()=>{var U=S(),Q=s(E);return A?(A=!1,I=!0,Q):(I=!1,E.v=U)});return l&&s(R),n||(R.equals=Qa),function(U,Q){if(Kc!==null&&(A=I,S(),s(E)),arguments.length>0){let J=Q?s(R):r&&l?ii(U):U;if(!R.equals(J)){if(A=!0,B(E,J),w&&u!==void 0&&(u=J),xh(R))return U;St(()=>s(R))}return U}return xh(R)?R.v:s(R)}}var j_;typeof HTMLElement=="function"&&(j_=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(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),b(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=Y_(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=tf(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=eh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Uc(()=>{zo(()=>{var r;this.$$r=!0;for(let l of pp(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=tf(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 r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,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]=tf(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 pp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function tf(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.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 Y_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var wh="5";var Ch,Sh,Th;typeof window!="undefined"&&((Th=(Sh=(Ch=window.__svelte)!=null?Ch:window.__svelte={}).v)!=null?Th:Sh.v=new Set).add(wh);var Pl=require("@vkontakte/videoplayer-core/es2018"),Sj=require("@vkontakte/videoplayer-core/es2018"),Da=require("@vkontakte/videoplayer-shared/es2018"),C0=require("@vkontakte/videoplayer-statistics/es2018");var da=require("@vkontakte/videoplayer-shared/es2018");var Z_={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,skipInitialPlaybackRateValue:!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},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0"},Eh=t=>(0,da.fillWithDefault)(t,Z_),Ih=t=>Ya("ui-config",t),kt=()=>ja("ui-config");var fd="vk_player_debug_panel_opened";var kh="videoplayer",Ph="videoplayer";var is={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Ah=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Mh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Lh=new Set(["ShiftRight","ShiftLeft"]);var Vh=["TIMELINE"],md=[...Vh,"GRAPH_BUTTON"],of=[...Vh,"PLAY_BUTTON"],vd=[...md,"PLAY_BUTTON"];var Mr=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Mr||{}),ua={xs:0,s:1,m:2,l:3,xl:4};var gd=require("@vkontakte/videoplayer-shared/es2018"),Rh=require("@vkontakte/videoplayer-core/es2018"),Nh=require("@vkontakte/videoplayer-statistics/es2018");var ou="prod",pa="1.1.69-beta.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"),Oh=Symbol("microStoresContext"),Dh=(t,e)=>{Ya(Bh,t),Ya(Oh,e),ou==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=ja(Bh);return(0,gd.assertNonNullable)(t,"Store context is empty!"),t},vo=()=>{let t=ja(Oh);return(0,gd.assertNonNullable)(t,"MicroStores context is empty!"),t},ei=(t,e)=>ru(t,t.getValue(),e),ru=(t,e,i)=>fr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),Hh=(t,e,i,o)=>{var R,G,q,U,Q,J,j,ce;let n=t.info,{width:r,height:l}=$e(i.ui.playerSize),d=(G=(R=n.throughputEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?G:0,a=(U=(q=n.rttEstimation$.getValue())==null?void 0:q.toFixed(0))!=null?U:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${pa} (core: ${Rh.VERSION}, stat: ${Nh.VERSION}, shared: ${gd.VERSION})`,v=$e(i.state.errorLog$),u=v.length?`
45
+ `+v.map((le,ye)=>{var Ve;let ke=`${ye}) Type: ${le.id}
46
+ `,me=`Message: ${le.message} (${le.thrown})
47
+ `,ae=`Trace: ${(Ve=le.thrown)==null?void 0:Ve.stack}
48
+ `;return ke+me+ae}).join(`
49
+ `):void 0,$=i.state.isAudioDisabled?"disabled":$e(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(Q=w==null?void 0:w.codec)!=null?Q:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&S.push(`Audio: ${(J=y==null?void 0:y.codec)!=null?J:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=n.currentQuality$.getValue(),k="";if(T){let le=n.availableQualitiesFps$.getValue()[T];k=le?`${le}fps`:""}let A=(ce=(j=n.currentBuffer$.getValue())==null?void 0:j.end)!=null?ce:0,I=Math.max(A-$e(i.state.positionExact$),0),E={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:$e(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} ${k}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:$,Position:`${$e(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${$e(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${r}x${l}`,URL:window.location.href,Errors:u};return Object.entries(E).filter(([le,ye])=>ye!==void 0).map(([le,ye])=>`${le}: ${ye}`).join(`
50
+ `)},Fh=(t,e,i)=>{var G,q,U,Q;let o=t.info,{width:n,height:r}=$e(i.ui.playerSize),l={version:pa,viewport:`${n}x${r}`,volume:Math.round($e(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let 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-$e(i.state.positionExact$),0)),l.position=$e(i.state.positionExact$);let $=o.throughputEstimation$.getValue();$&&(l.speed=$);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let k=$e(i.vsid);typeof k=="string"&&(l.vsid=k);let A=(G=t.info.currentVideoStream$.getValue())==null?void 0:G.codec;A&&(l.videoCodec=A);let I=(q=t.info.currentAudioStream$.getValue())==null?void 0:q.codec;I&&(l.audioCodec=I),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(l.hdr=!0);let R=(Q=t.info.currentAudioStream$.getValue())==null?void 0:Q.language;return R&&(l.audioLanguage=R),l},Uh=(t,e)=>fa(t,e,"mp4"),zh=t=>!t.type,Wh=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 fi=require("@vkontakte/videoplayer-shared/es2018"),vA=require("@vkontakte/videoplayer-core/es2018"),Kh="vk_player_prefer_traffic_saving_enabled",Qh="vk_player_preferred_volume",Gh="vk_player_prefer_volume_mute",af="vk_player_preferred_quality",nf="vk_player_preferred_default_quality_settings",rf="vk_player_preferred_quality_settings_by_video",jh="vk_player_preferred_stream_language",Yh="vk_player_preferred_rate",Zh="vk_player_preferred_autoplay_next",sf="vk_player_preferred_subtitles_language",Xh="vk_player_user_video_prefs",Jh=t=>t>1?1:t<0?0:t,lf=t=>fi.safeStorage.set(Qh,Jh(t).toString(10)),su=()=>{let t=fi.safeStorage.get(Qh);return(0,fi.isNullable)(t)?void 0:Jh(parseFloat(t))},df=(t,e)=>fi.safeStorage.set(af,JSON.stringify({videoId:t,value:e})),_d=()=>fi.safeStorage.remove(af),cf=t=>{let e=fi.safeStorage.get(af);if((0,fi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){_d();return}return o},uf=(t,e)=>{e?fi.safeStorage.set(t,"true"):fi.safeStorage.remove(t)},pf=t=>fi.safeStorage.get(t)==="true",ff=t=>uf(Gh,t),e1=()=>pf(Gh),hd=t=>uf(Kh,t),mf=()=>pf(Kh),t1=()=>fi.safeStorage.get(jh),vf=t=>fi.safeStorage.set(jh,t),gf=()=>fi.safeStorage.get(sf),hf=t=>{t?fi.safeStorage.set(sf,t):fi.safeStorage.remove(sf)},i1=t=>fi.safeStorage.set(Yh,JSON.stringify({rate:t})),o1=()=>{let t=fi.safeStorage.get(Yh);if((0,fi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},n1=t=>uf(Zh,t),r1=()=>pf(Zh),X_=()=>{let t=f=>{fi.safeStorage.set(nf,JSON.stringify(f))},e=()=>{try{let f=fi.safeStorage.get(nf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=fi.safeStorage.get(rf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{fi.safeStorage.set(rf,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&&r();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},r=()=>{fi.safeStorage.remove(rf)},l=()=>{fi.safeStorage.remove(nf)},d=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":hd(!0);break;case"exact_quality":df(f,v.quality)}r(),l()}},p=f=>{let v=cf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}mf()&&t({type:"traffic_saving",videoId:f}),hd(!1),_d()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:r,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:gf,savePreferredSubtitlesLanguage:hf}},{getPreferredQualitySettings:s1,migrateSettingsToLegacyWay:a1,savePreferredQualitySettings:au,savePreferredDefaultQualitySettings:gA,removePreferredQualitySettingsByVideo:hA,getPreferredDefaultQualitySettings:lu}=X_(),J_=3,eb=3,l1=()=>{let t=fi.safeStorage.get(Xh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},du=(t,e)=>{var n,r;let i=l1();return(r=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?r:null},_f=(t,e,i)=>{var l,d,a;let o=(l=l1())!=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 r=tb(o);fi.safeStorage.set(Xh,JSON.stringify(r))};function tb(t){let e=Object.entries(t).reduce((o,[n,r])=>{let l=0;return Object.values(r).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([n,l]),o},[]);return e.sort(([,o],[,n])=>o>n?-1:1),e.splice(eb),e.reduce((o,[n])=>(o[n]=ib(t[n]),o),{})}function ib(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(J_),Object.fromEntries(e)}var Sv=require("@vkontakte/videoplayer-core/es2018");var ob=Se('<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 bd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ob();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}var pl=require("@vkontakte/videoplayer-shared/es2018");var nb={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",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",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`},o1=Q_;var G_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_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`},d1=nb;var rb={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_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.`},n1=G_;var vs=new Map;vs.set(ul.InterfaceLanguage.EN,n1);vs.set(ul.InterfaceLanguage.RU,o1);var r1=new Map,gf=({language:t,pack:e,fallback:i})=>{if(vs.has(t)){let o=vs.get(t);vs.set(t,{...o,...e})}else vs.set(t,e);r1.set(t,i)},hf=t=>vs.has(t),_f=(t,e,i,o)=>{var l;let n=vs.get(t),r=n==null?void 0:n[e];if((0,ul.isNullable)(r)){let d=(l=r1.get(t))!=null?l:o,a=d?vs.get(d):void 0;r=a==null?void 0:a[e]}return(0,ul.isNullable)(r)?e+Object.values(i!=null?i:{}).join(" "):i?r.replaceAll(/{(\w+?)}/g,(d,a)=>{var p;return(p=i[a])!=null?p:""}):r},F=(t,e)=>{let{interfaceLanguage$:i}=Ee(),o=$e(i),n=zt();return _f(o,t,e,n.defaultLanguage)};var SA=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 Y_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,j_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Z_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ru="?",X_="X-Sentry-Auth",J_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function eb(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
- `),o,n;for(let r=0;r<i.length;++r){if(o=Y_.exec(i[r]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||ru,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=Z_.exec(i[r]))n={filename:o[2],function:o[1]||ru,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=j_.exec(i[r]))r===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||ru,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=ru),e.push(n)}return e.length?{value:s1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function s1(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function tb(t){try{let e=eb(t);if(e)return e}catch(e){}return{value:s1(t),type:t&&t.name,stacktrace:{frames:[]}}}function ib(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var su=class{constructor(e){if(e&&e.dsn){let i=J_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),r=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(r?"/"+r:"")+"/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:[tb(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(X_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:ib(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function a1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function ob(){return window}var au=class t extends su{constructor(e,i=ob()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:r=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=r,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=>a1(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>a1(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],r=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:r||d?[...r||[],...d||[]]:{...typeof n!="string"?n:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var pa=require("@vkontakte/videoplayer-shared/es2018");var lu=null,fa=class{constructor(e,i,o={}){!lu&&e.dsn&&(this.sentryClient=new au({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new pa.Subscription,this.options=e,this.context=o,lu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),lu=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:r,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:u,category:$}=i;if((0,pa.isNonNullable)($)&&v.includes($)||(0,pa.isNonNullable)(u)&&f.includes(u))return;if(Math.random()<=d||(0,pa.isNonNullable)($)&&p.includes($)||(0,pa.isNonNullable)(u)&&a.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(r).length||Object.keys(o).length)&&n.setExtras({...r,...o});try{u&&n.captureMessage(u,i.fatal?pl.fatal:pl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return lu}};var ns=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ns||{});var du=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},cu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),l1=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},_d=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},As=()=>!!_d(),uu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},pu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},d1=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 bf=require("@vkontakte/videoplayer-core/es2018"),c1=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:bf.clientChecker.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:bf.clientChecker.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});var fl=require("@vkontakte/videoplayer-shared/es2018");var ma=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,r;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).enterpictureinpicture)==null||r.call(n,e))}onLeavePictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).leavepictureinpicture)==null||r.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 va(t){return t instanceof ma}var ml=require("@vkontakte/videoplayer-shared/es2018");pg();function xf(t,e){D(e,!1);let i=Ee();Bt(()=>{i.getAdmanWrapper().startPostroll()}),Vr(),H()}var u1=require("@vkontakte/videoplayer-shared/es2018");var nb=(t,e)=>{t.stopPropagation(),e()()},rb=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>'),sb=M("<div><!></div>"),ab={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 wf(t,e){D(e,!0),z(t,ab);let[i,o]=De(),n=()=>C(p,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,u1.noop),p=Ee().ui.isMobile,f=h(()=>r()>0&&r()>=l());var v=sb();let u;var $=_(v);{var w=S=>{var T=rb();T.__click=[nb,d];var k=_(T);Ce(),g(T),O(A=>he(k,`${A!=null?A:""} `),[()=>F("skip_ads_now")]),b(S,T)},y=S=>{var T=es();O(k=>he(T,k),[()=>F("skip_ads_after",{time:Math.ceil(l()-r()).toFixed(0)})]),b(S,T)};L($,S=>{s(f)?S(w):S(y,!1)})}g(v),O(S=>u=J(v,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:s(f)})]),b(t,v),H(),o()}dt(["click"]);var lb=M('<button class="svelte-1wy3dql"> </button>'),db={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 Cf(t,e){D(e,!1),z(t,db),Vr();var i=lb(),o=_(i,!0);g(i),O(n=>he(o,n),[()=>F("visit_advertiser")],Pr),b(t,i),H()}var cb=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),ub=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),pb={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.`},c1=rb;var hs=new Map;hs.set(pl.InterfaceLanguage.EN,c1);hs.set(pl.InterfaceLanguage.RU,d1);var u1=new Map,bf=({language:t,pack:e,fallback:i})=>{if(hs.has(t)){let o=hs.get(t);hs.set(t,{...o,...e})}else hs.set(t,e);u1.set(t,i)},$f=t=>hs.has(t),yf=(t,e,i,o)=>{var l;let n=hs.get(t),r=n==null?void 0:n[e];if((0,pl.isNullable)(r)){let d=(l=u1.get(t))!=null?l:o,a=d?hs.get(d):void 0;r=a==null?void 0:a[e]}return(0,pl.isNullable)(r)?e+Object.values(i!=null?i:{}).join(" "):i?r.replaceAll(/{(\w+?)}/g,(d,a)=>{var p;return(p=i[a])!=null?p:""}):r},F=(t,e)=>{let{interfaceLanguage$:i}=Ee(),o=$e(i),n=kt();return yf(o,t,e,n.defaultLanguage)};var NA=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 sb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ab=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,lb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,cu="?",db="X-Sentry-Auth",cb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ub(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,n;for(let r=0;r<i.length;++r){if(o=sb.exec(i[r]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||cu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=lb.exec(i[r]))n={filename:o[2],function:o[1]||cu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=ab.exec(i[r]))r===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||cu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=cu),e.push(n)}return e.length?{value:p1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function p1(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function pb(t){try{let e=ub(t);if(e)return e}catch(e){}return{value:p1(t),type:t&&t.name,stacktrace:{frames:[]}}}function fb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var uu=class{constructor(e){if(e&&e.dsn){let i=cb.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),r=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(r?"/"+r:"")+"/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:[pb(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(db,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:fb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function f1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function mb(){return window}var pu=class t extends uu{constructor(e,i=mb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:r=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=r,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=>f1(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=>f1(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],r=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:r||d?[...r||[],...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 fu=null,va=class{constructor(e,i,o={}){!fu&&e.dsn&&(this.sentryClient=new pu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ma.Subscription,this.options=e,this.context=o,fu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),fu=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:r,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:u,category:$}=i;if((0,ma.isNonNullable)($)&&v.includes($)||(0,ma.isNonNullable)(u)&&f.includes(u))return;if(Math.random()<=d||(0,ma.isNonNullable)($)&&p.includes($)||(0,ma.isNonNullable)(u)&&a.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(r).length||Object.keys(o).length)&&n.setExtras({...r,...o});try{u&&n.captureMessage(u,i.fatal?fl.fatal:fl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return fu}};var os=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(os||{});var mu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},vu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),m1=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},$d=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Vs=()=>!!$d(),gu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},hu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},v1=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 xf=require("@vkontakte/videoplayer-core/es2018"),g1=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:xf.clientChecker.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:xf.clientChecker.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});var ml=require("@vkontakte/videoplayer-shared/es2018");var 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,r;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).enterpictureinpicture)==null||r.call(n,e))}onLeavePictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).leavepictureinpicture)==null||r.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");gg();function Sf(t,e){D(e,!1);let i=Ee();Ot(()=>{i.getAdmanWrapper().startPostroll()}),Ar(),H()}var h1=require("@vkontakte/videoplayer-shared/es2018");var vb=(t,e)=>{t.stopPropagation(),e()()},gb=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>'),hb=M("<div><!></div>"),_b={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 Tf(t,e){D(e,!0),W(t,_b);let[i,o]=Oe(),n=()=>C(p,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,h1.noop),p=Ee().ui.isMobile,f=g(()=>r()>0&&r()>=l());var v=hb();let u;var $=_(v);{var w=S=>{var T=gb();T.__click=[vb,d];var k=_(T);Ce(),h(T),O(A=>he(k,`${A!=null?A:""} `),[()=>F("skip_ads_now")]),b(S,T)},y=S=>{var T=Jr();O(k=>he(T,k),[()=>F("skip_ads_after",{time:Math.ceil(l()-r()).toFixed(0)})]),b(S,T)};L($,S=>{s(f)?S(w):S(y,!1)})}h(v),O(S=>u=te(v,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:s(f)})]),b(t,v),H(),o()}dt(["click"]);var bb=M('<button class="svelte-1wy3dql"> </button>'),$b={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 Ef(t,e){D(e,!1),W(t,$b),Ar();var i=bb(),o=_(i,!0);h(i),O(n=>he(o,n),[()=>F("visit_advertiser")],Er),b(t,i),H()}var yb=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),xb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),wb={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.`},n1=G_;var vs=new Map;vs.set(ul.Interf
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 bd(t,e){D(e,!0),z(t,pb);let[i,o]=De(),n=()=>C(W,"$canSkipAd",i),r=()=>C(K,"$adPlaybackState",i),l=()=>C(k,"$isMobile",i),d=()=>C(U,"$adPosition",i),a=()=>C(Y,"$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),$=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),y=Ee(),S=zt(),T=y.state.isEnded$,k=y.ui.isMobile,A=S.ads.isMobileGoToSiteButton,I=j(void 0),E=j(void 0),V=!1,K=y.ads.playbackState,W=y.ads.canSkip,U=y.ads.position,Y=y.ads.secondsToWatchBeforeSkip,ne=h(()=>n()&&r()!=="inactive"),G=h(()=>l()&&r()!=="inactive"&&A);Bt(()=>{var X;let ye=y.getAdmanWrapper();if(ml.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,ml.now)(),f()]}),!f()){ye.onAdmanLoadingError();return}let ge=Te=>{ye.initAdman(Te),V=!0},de=new AbortController,ue=()=>{de.abort()},{width:xe,height:Z}=$e(y.ui.playerSize),qe=$e(y.ui.isFullscreen),Je=(X=$())!=null?X:$e(y.ui.isAutoplay),ke={width:xe,height:Z,isFullscreen:qe,isAutoplay:Je,adsContainer:s(I),adsVideoElement:s(E),slotId:f(),params:v(),previewParam:u(),duration:w()};return window.AdmanHTML?ge(ke):ye.loadAdman(de.signal).then(()=>{ge(ke)}).catch(()=>{ye.onAdmanLoadingError()}),()=>{ml.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,ml.now)(),f()]}),!V&&ue()}});var ce=ub(),le=_(ce);{var we=ye=>{var ge=cb();b(ye,ge)};L(le,ye=>{l()&&ye(we)})}var Ve=P(le,2);nt(Ve,ye=>B(E,ye),()=>s(E));var ve=P(Ve,2);{var ae=ye=>{wf(ye,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};L(ve,ye=>{s(ne)&&ye(ae)})}var Le=P(ve,2);{var te=ye=>{xf(ye,{})};L(Le,ye=>{p()&&ye(te)})}var N=P(Le,2);{var Be=ye=>{Cf(ye,{})};L(N,ye=>{s(G)&&ye(Be)})}g(ce),nt(ce,ye=>B(I,ye),()=>s(I)),b(t,ce),H(),o()}var fn=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(r=>String(r).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var fb=Se('<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 Sf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=fb();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var mb=Se('<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 Tf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=mb();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function $d(t,e){let i=m(e,"isActive",3,!1);var o=Ue(),n=fe(o);{var r=d=>{Tf(d,{})},l=d=>{Sf(d,{})};L(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var vb=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>'),gb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),hb=M('<span class="text svelte-1s15d2i"> </span>'),_b=M("<div><!> <!></div>"),bb={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){D(e,!0),W(t,wb);let[i,o]=Oe(),n=()=>C(q,"$canSkipAd",i),r=()=>C(G,"$adPlaybackState",i),l=()=>C(k,"$isMobile",i),d=()=>C(U,"$adPosition",i),a=()=>C(Q,"$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),$=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),y=Ee(),S=kt(),T=y.state.isEnded$,k=y.ui.isMobile,A=S.ads.isMobileGoToSiteButton,I=Y(void 0),E=Y(void 0),R=!1,G=y.ads.playbackState,q=y.ads.canSkip,U=y.ads.position,Q=y.ads.secondsToWatchBeforeSkip,J=g(()=>n()&&r()!=="inactive"),j=g(()=>l()&&r()!=="inactive"&&A);Ot(()=>{var X;let _e=y.getAdmanWrapper();if(vl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,vl.now)(),f()]}),!f()){_e.onAdmanLoadingError();return}let ge=Te=>{_e.initAdman(Te),R=!0},de=new AbortController,ue=()=>{de.abort()},{width:xe,height:Z}=$e(y.ui.playerSize),qe=$e(y.ui.isFullscreen),Je=(X=$())!=null?X:$e(y.ui.isAutoplay),Pe={width:xe,height:Z,isFullscreen:qe,isAutoplay:Je,adsContainer:s(I),adsVideoElement:s(E),slotId:f(),params:v(),previewParam:u(),duration:w()};return window.AdmanHTML?ge(Pe):_e.loadAdman(de.signal).then(()=>{ge(Pe)}).catch(()=>{_e.onAdmanLoadingError()}),()=>{vl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,vl.now)(),f()]}),!R&&ue()}});var ce=xb(),le=_(ce);{var ye=_e=>{var ge=yb();b(_e,ge)};L(le,_e=>{l()&&_e(ye)})}var ke=P(le,2);it(ke,_e=>B(E,_e),()=>s(E));var me=P(ke,2);{var ae=_e=>{Tf(_e,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};L(me,_e=>{s(J)&&_e(ae)})}var Ve=P(me,2);{var re=_e=>{Sf(_e,{})};L(Ve,_e=>{p()&&_e(re)})}var N=P(Ve,2);{var He=_e=>{Ef(_e,{})};L(N,_e=>{s(j)&&_e(He)})}h(ce),it(ce,_e=>B(I,_e),()=>s(I)),b(t,ce),H(),o()}var gn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(r=>String(r).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var Cb=Se('<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 If(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Cb();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}var Sb=Se('<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 kf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Sb();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}function xd(t,e){let i=m(e,"isActive",3,!1);var o=Fe(),n=fe(o);{var r=d=>{kf(d,{})},l=d=>{If(d,{})};L(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var Tb=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>'),Eb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),Ib=M('<span class="text svelte-1s15d2i"> </span>'),kb=M("<div><!> <!></div>"),Pb={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.`},n1=G_;var vs=new Map;vs.set(ul.Interf
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 yd(t,e){z(t,bb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var r=_b();let l;var d=_(r);{var a=u=>{var $=vb();b(u,$)};L(d,u=>{i()&&u(a)})}var p=P(d,2);{var f=u=>{var $=gb(),w=_($);$d(w,{isActive:!0}),g($),b(u,$)},v=u=>{var $=hb(),w=_($,!0);g($),O(()=>he(w,e.time)),b(u,$)};L(p,u=>{o()?u(f):u(v,!1)})}g(r),O(u=>l=J(r,1,"wrapper svelte-1s15d2i",null,l,u),[()=>({live:o(),playing:n()})]),b(t,r)}var $b=M('<div role="timer" data-testid="thumb-timer"><!></div>'),yb={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
- opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function xd(t,e){D(e,!0),z(t,yb);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),r=h(()=>fn(e.duration-e.position));var l=$b();let d;var a=_(l);yd(a,{get time(){return s(r)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(l),O(p=>d=J(l,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),b(t,l),H()}var vl=t=>{if(!navigator.clipboard){p1(t);return}navigator.clipboard.writeText(t).catch(()=>p1(t))};function p1(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 y1=require("@vkontakte/videoplayer-core/es2018");var If=require("@vkontakte/videoplayer-core/es2018");var Ef="focus-hidden";var gr=t=>{t.stopPropagation(),t.preventDefault()},kf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Ef)},wb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Cb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Sb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Tb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},f1=t=>t.code==="Escape",Eb=t=>t.code==="ArrowLeft",wd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},m1=t=>{Sb(t)?(gr(t),Cb(t.target)):Tb(t)&&(gr(t),wb(t.target))},Vs=t=>!If.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||If.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",gl=async(t,e,i)=>{await wo(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(await wo(),i.set(!1),t.focus())},v1=async(t,e,i)=>{await wo(),t&&!e&&$e(i)&&(i.set(!1),t.focus())},Cd=async(t,e,i,o=!1)=>{if(await wo(),!!t&&e&&!o){let r=t.children[0];r==null||r.classList.toggle(Ef,!i),r==null||r.focus()}},g1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},fu=(t,e)=>{m1(t),kf(t.target),f1(t)&&(gr(t),e())},mu=async(t,e)=>{wd(t,["ArrowRight"])&&(gr(t),e())},h1=async(t,e,i)=>{if(m1(t),Eb(t)){gr(t),e();return}f1(t)&&(gr(t),i())},hl=(t,e)=>{wd(t)&&(gr(t),e())},_1=(t,e,i)=>{if(wd(t))gr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),gr(t);return}o==="ArrowRight"&&!e&&(i(!0),gr(t))}},b1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},$1=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 Nr={"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 Pf=require("@vkontakte/videoplayer-shared/es2018");var kb=(t,e)=>{hl(t,()=>e())},Pb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Ab={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 Af(t,e){D(e,!0),z(t,Ab);let i=m(e,"onClick",3,Pf.noop),o=m(e,"closeContextMenu",3,Pf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var r=Pb();r.__click=n,r.__keydown=[kb,n];var l=_(r,!0);g(r),O(()=>{var d;Ne(r,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ne(r,"data-testid",e.id),he(l,e.label)}),b(t,r),H()}dt(["click","keydown"]);var ha=(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 Mb=(t,e)=>{fu(t,e)},Lb=t=>{t.preventDefault()},Vb=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Rb={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 Mf(t,e){D(e,!0),z(t,Rb);let[i,o]=De(),n=()=>C(ne,"$isLive$",i),r=()=>C(we,"$isPiPEnabled$",i),l=()=>C(Y,"$chromecastState$",i),d=()=>C(Ve,"$pictureInPictureApiIsActive$",i),a=()=>C(le,"$isLooped$",i),p=()=>C(G,"$positionExact$",i),f=()=>C(K,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),u=m(e,"position",19,()=>({top:0,left:0})),$=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),y=m(e,"menuElementRef",15,void 0),S=j(0),T=j(0),k=Ee(),{pictureInPicture$:A}=fo(),I=zt(),E=k.ui.contextMenu.visible$,V=k.ui.debugPanelVisible,K=k.ui.additionalContextMenuItems$,W=k.ui.t,U=k.actions.internal.togglePictureInPicture,Y=k.state.chromecastState$,ne=k.state.isLive$,G=k.state.positionExact$,ce=k.state.isInteractive,le=k.state.looped$,{isEnabled$:we,isActive$:Ve}=A,ve=h(()=>{var Ae;return I.features.copyVideoLink&&((Ae=k.callbacks)==null?void 0:Ae.onCopyVideoLink)}),ae=h(()=>s(ve)&&!n()&&!ce),Le=h(()=>{var Ae;return!!((Ae=k.callbacks)!=null&&Ae.onCopyEmbedCodeClicked)}),te=h(()=>r()&&l()!==y1.ChromecastState.CONNECTED&&!ce),N=h(()=>!ce),Be=h(()=>I.features.videoRotate&&!ce),ye=h(()=>I.showSupport&&!d()),ge=h(()=>I.features.saveTraceInfoToFile),de=()=>{var Ae;E.set(!1),(Ae=e.returnFocus)==null||Ae.call(e)},ue=(Ae,je)=>{if(!y()||!$()||!w())return;let Re=y().getBoundingClientRect(),it=$().getBoundingClientRect();B(S,Ae-it.left),B(T,je-it.top),s(S)+Re.width>it.width&&B(S,it.width-Re.width),s(T)+Re.height>it.height&&B(T,it.height-Re.height),B(S,Math.max(s(S),0),!0),B(T,Math.max(s(T),0),!0)};We(()=>{(async()=>{if(y()&&$()&&w()){await wo();let{top:je,left:Re,bottom:it,right:At}=u(),Vt=Re!=null?Re:0,et=je!=null?je:0,ni=y().getBoundingClientRect();(0,_a.isNullable)(Re)&&!(0,_a.isNullable)(At)&&(Vt=At-ni.width),(0,_a.isNullable)(je)&&!(0,_a.isNullable)(it)&&(et=it-ni.height),Vt=Math.max(Vt,0),et=Math.max(et,0),ue(Vt,et)}})()});let xe=()=>{k.actions.internal.videoRotate()},Z=()=>{(0,_a.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),k.actions.internal.reportProblem(),k.actions.internal.pause()},qe=()=>{let Ae=k.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let je=new Blob([...Ae],{type:"plain/text"}),Re=window.URL.createObjectURL(je);ua(Re,"vk_player_debug_info","txt")}else vl(k.actions.internal.getDebugTextData())},Je=()=>{let Ae=k.actions.internal.getTraceTextData(),je=new Blob([...Ae],{type:"application/json"}),Re=window.URL.createObjectURL(je);ua(Re,"vk_player_trace_info","json")},ke=()=>{V.set(!0)},X=async()=>{var Ae;try{U()}finally{(Ae=e.returnFocus)==null||Ae.call(e)}},Te=()=>{k.actions.internal.setLooped(!a())},Ke=()=>{var Ae,je;if(s(Le)){let Re=(je=(Ae=k.callbacks)==null?void 0:Ae.onCopyEmbedCodeClicked)==null?void 0:je.call(Ae);Re&&vl(Re)}},st=(Ae=!1)=>{var je,Re;if((je=k.callbacks)!=null&&je.onCopyVideoLink){let it=(Re=k.callbacks)==null?void 0:Re.onCopyVideoLink(Ae,p());it&&vl(it)}},pt=h(()=>I.features.saveDebugInfoToFile?W("menu_save_debug"):W("menu_copy_debug")),bt=h(()=>s(ve)?{id:"copy-link",weight:Nr["copy-link"],label:W("menu_copy_video_link"),onClick:()=>st()}:void 0),Ct=h(()=>s(ae)?{id:"copy-link-timestamp",weight:Nr["copy-link-timestamp"],label:W("menu_copy_video_link_with_timestamp"),onClick:()=>st(!0)}:void 0),Qe=h(()=>s(Le)?{id:"copy-embed-code",weight:Nr["copy-embed-code"],label:W("menu_copy_embed_code"),onClick:Ke}:void 0),Qt=h(()=>s(te)?{id:"pip",weight:Nr.pip,label:d()?W("menu_pip_close"):W("menu_pip"),onClick:X}:void 0),Zt=h(()=>s(N)?{id:"video-loop",weight:Nr["video-loop"],label:a()?W("menu_video_loop_off"):W("menu_video_loop_on"),ariaLabel:W("aria_label_menu_loop"),onClick:Te}:void 0),Yt=h(()=>s(Be)?{id:"rotate",weight:Nr.rotate,label:W("menu_video_rotate"),ariaLabel:W("aria_label_menu_rotate"),onClick:xe}:void 0),Ot=h(()=>s(ye)?{id:"report",weight:Nr.report,label:W("menu_report"),ariaLabel:`${W("menu_report")}. ${W("aria_label_new_tab_alert")}`,onClick:Z}:void 0),ee=h(()=>({id:"save-debug",weight:Nr["save-debug"],label:s(pt),onClick:qe})),Lt=h(()=>s(ge)?{id:"save-trace",weight:Nr["save-trace"],label:W("menu_save_debug"),onClick:Je}:void 0),me=h(()=>({id:"debug-info",weight:Nr["debug-info"],label:W("menu_debug_overlay"),ariaLabel:W("aria_label_menu_debug_overlay"),onClick:ke})),_e=h(()=>[s(bt),s(Ct),s(Qe),s(Qt),s(Zt),s(Yt),s(Ot),s(ee),s(Lt),s(me),...f()].filter(Ae=>!!Ae).sort(ha));var se=Ue(),Oe=fe(se);{var ze=Ae=>{var je=Vb();je.__contextmenu=[Lb],je.__keydown=[Mb,de],xi(je,21,()=>s(_e),Re=>Re.id,(Re,it)=>{Af(Re,{get id(){return s(it).id},get label(){return s(it).label},get ariaLabel(){return s(it).ariaLabel},get onClick(){return s(it).onClick},closeContextMenu:de})}),g(je),nt(je,Re=>y(Re),()=>y()),O(()=>{var Re,it;return at(je,`top: ${(Re=s(T))!=null?Re:""}px; left: ${(it=s(S))!=null?it:""}px;`)}),b(Ae,je)};L(Oe,Ae=>{v()&&Ae(ze)})}b(t,se),H(),o()}dt(["contextmenu","keydown"]);var vu=class{constructor(e){this.value=e,this.next=null}};var bl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new vu(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 Nb=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Bb={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 Sd(t,e){D(e,!0),z(t,Bb);let i=m(e,"values",19,()=>[]),o=j(void 0),n=j(null),r=16,l=120,d=60,a=l/d;Bt(()=>{s(o).width=l,s(o).height=r,B(n,s(o).getContext("2d"),!0)});function p(u,$,w,y,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect($,w,y,S)}We(()=>{let u="";if(s(n)){let $=i()[0];for(let y=1;y<i().length;y++)i()[y]>$&&($=i()[y]);s(n).clearRect(0,0,l,r);let w=d-1;for(let y=i().length-1;y>=0;y--){let S=w*a,T=$>0?r*(i()[y]/$):0;p(s(n),S,0,a,T),u=T+" "+u,w--}}});var f=Nb(),v=_(f);nt(v,u=>B(o,u),()=>s(o)),g(f),b(t,f),H()}var Lf=require("@vkontakte/videoplayer-shared/es2018");var Ob=(t,e)=>{t.stopPropagation(),Lf.safeStorage.remove(ud),e.set(!1)},Db=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Hb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Fb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Ub=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),zb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Wb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),qb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Kb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Qb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Gb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Yb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),jb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Zb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Xb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Jb=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>'),e$={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Td(t,e){D(e,!0),z(t,e$);let[i,o]=De(),n=()=>C(d,"$isMobile",i),r=Ee(),l=r.ui.debugPanelVisible,d=r.ui.isMobile,a=j(oi(r.actions.internal.getDebugPanelData())),p=r.actions.internal.getVideoElement(),f=j(0),v=j(0),u=j(0),$=new bl(60),w=new bl(60),y=new bl(60),S=j(oi([])),T=j(oi([])),k=j(oi([])),A=F("aria_label_debug_panel");Bt(()=>{Lf.safeStorage.set(ud,"true"),r.actions.internal.startLogging(),p&&(B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0),B(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let me=window.setInterval(()=>{B(a,r.actions.internal.getDebugPanelData(),!0)},500),_e;return p&&(_e=window.setInterval(()=>{if(p){B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let se=p.getVideoPlaybackQuality().totalVideoFrames;B(u,se-s(f)),B(f,se,!0),$.push(s(u)),s(a).speed&&w.push(s(a).speed),s(a).bitrate&&y.push(s(a).bitrate),B(S,$.getValuesFromBottom(),!0),B(T,w.getValuesFromBottom(),!0),B(k,y.getValuesFromBottom(),!0)}},1e3)),()=>{r.actions.internal.stopLogging(),clearInterval(me),_e&&clearInterval(_e)}});var I=Jb();let E;var V=_(I);V.__click=[Ob,l];var K=P(V,2),W=_(K),U=P(_(W),2),Y=_(U,!0);g(U),g(W);var ne=P(W,2);{var G=me=>{var _e=Db(),se=P(_(_e),2),Oe=_(se,!0);g(se),g(_e),O(()=>he(Oe,s(a).id)),b(me,_e)};L(ne,me=>{s(a).id&&me(G)})}var ce=P(ne,2);{var le=me=>{var _e=Hb(),se=P(_(_e),2),Oe=_(se,!0);g(se),g(_e),O(()=>he(Oe,s(a).vsid)),b(me,_e)};L(ce,me=>{s(a).vsid&&me(le)})}var we=P(ce,2);{var Ve=me=>{var _e=Fb(),se=P(_(_e),2),Oe=_(se,!0);g(se),g(_e),O(()=>he(Oe,s(a).provider)),b(me,_e)};L(we,me=>{s(a).provider&&me(Ve)})}var ve=P(we,2);{var ae=me=>{var _e=Ub(),se=P(_(_e),2),Oe=_(se);g(se),g(_e),O(()=>{var ze,Ae;return he(Oe,`Video: ${(ze=s(a).videoCodec||"")!=null?ze:""} ${s(a).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function wd(t,e){W(t,Pb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var r=kb();let l;var d=_(r);{var a=u=>{var $=Tb();b(u,$)};L(d,u=>{i()&&u(a)})}var p=P(d,2);{var f=u=>{var $=Eb(),w=_($);xd(w,{isActive:!0}),h($),b(u,$)},v=u=>{var $=Ib(),w=_($,!0);h($),O(()=>he(w,e.time)),b(u,$)};L(p,u=>{o()?u(f):u(v,!1)})}h(r),O(u=>l=te(r,1,"wrapper svelte-1s15d2i",null,l,u),[()=>({live:o(),playing:n()})]),b(t,r)}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 Ab=M('<div role="timer" data-testid="thumb-timer"><!></div>'),Mb={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 Cd(t,e){D(e,!0),W(t,Mb);let[i,o]=Oe(),n=()=>C(f,"$disabled",i),r=m(e,"isHidden",3,!1),l=m(e,"isLive",3,!1),d=m(e,"isPlaying",3,!1),a=kt(),p=g(()=>gn(e.duration-e.position)),f=oe(!1);var v=Ab();let u;var $=_(v);wd($,{get time(){return s(p)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(v),vs(v,()=>gl(r()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),O(w=>u=te(v,1,"thumb-timer svelte-c6gowj",null,u,w),[()=>({"out-of-flow":n(),hidden:r()})]),b(t,v),H(),o()}var hl=t=>{if(!navigator.clipboard){_1(t);return}navigator.clipboard.writeText(t).catch(()=>_1(t))};function _1(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 E1=require("@vkontakte/videoplayer-core/es2018");var Af=require("@vkontakte/videoplayer-core/es2018");var Pf="focus-hidden";var mr=t=>{t.stopPropagation(),t.preventDefault()},Mf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Pf)},Vb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Rb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Nb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Bb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},b1=t=>t.code==="Escape",Ob=t=>t.code==="ArrowLeft",Sd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},$1=t=>{Nb(t)?(mr(t),Rb(t.target)):Bb(t)&&(mr(t),Vb(t.target))},Bs=t=>!Af.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Af.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",_l=async(t,e,i)=>{await To(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(await To(),i.set(!1),t.focus())},y1=async(t,e,i)=>{await To(),t&&!e&&$e(i)&&(i.set(!1),t.focus())},Td=async(t,e,i,o=!1)=>{if(await To(),!!t&&e&&!o){let r=t.children[0];r==null||r.classList.toggle(Pf,!i),r==null||r.focus()}},x1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},_u=(t,e)=>{$1(t),Mf(t.target),b1(t)&&(mr(t),e())},bu=async(t,e)=>{Sd(t,["ArrowRight"])&&(mr(t),e())},w1=async(t,e,i)=>{if($1(t),Ob(t)){mr(t),e();return}b1(t)&&(mr(t),i())},bl=(t,e)=>{Sd(t)&&(mr(t),e())},C1=(t,e,i)=>{if(Sd(t))mr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),mr(t);return}o==="ArrowRight"&&!e&&(i(!0),mr(t))}},S1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},T1=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 Lr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var Lf=require("@vkontakte/videoplayer-shared/es2018");var Hb=(t,e)=>{bl(t,()=>e())},Fb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Ub={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 Vf(t,e){D(e,!0),W(t,Ub);let i=m(e,"onClick",3,Lf.noop),o=m(e,"closeContextMenu",3,Lf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var r=Fb();r.__click=n,r.__keydown=[Hb,n];var l=_(r,!0);h(r),O(()=>{var d;De(r,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(r,"data-testid",e.id),he(l,e.label)}),b(t,r),H()}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 zb=(t,e)=>{_u(t,e)},Wb=t=>{t.preventDefault()},qb=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Kb={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 Rf(t,e){D(e,!0),W(t,Kb);let[i,o]=Oe(),n=()=>C(J,"$isLive$",i),r=()=>C(ye,"$isPiPEnabled$",i),l=()=>C(Q,"$chromecastState$",i),d=()=>C(ke,"$pictureInPictureApiIsActive$",i),a=()=>C(le,"$isLooped$",i),p=()=>C(j,"$positionExact$",i),f=()=>C(G,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),u=m(e,"position",19,()=>({top:0,left:0})),$=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),y=m(e,"menuElementRef",15,void 0),S=Y(0),T=Y(0),k=Ee(),{pictureInPicture$:A}=vo(),I=kt(),E=k.ui.contextMenu.visible$,R=k.ui.debugPanelVisible,G=k.ui.additionalContextMenuItems$,q=k.ui.t,U=k.actions.internal.togglePictureInPicture,Q=k.state.chromecastState$,J=k.state.isLive$,j=k.state.positionExact$,ce=k.state.isInteractive,le=k.state.looped$,{isEnabled$:ye,isActive$:ke}=A,me=g(()=>{var Me;return I.features.copyVideoLink&&((Me=k.callbacks)==null?void 0:Me.onCopyVideoLink)}),ae=g(()=>s(me)&&!n()&&!ce),Ve=g(()=>{var Me;return!!((Me=k.callbacks)!=null&&Me.onCopyEmbedCodeClicked)}),re=g(()=>r()&&l()!==E1.ChromecastState.CONNECTED&&!ce),N=g(()=>!ce),He=g(()=>I.features.videoRotate&&!ce),_e=g(()=>I.showSupport&&!d()),ge=g(()=>I.features.saveTraceInfoToFile),de=()=>{var Me;E.set(!1),(Me=e.returnFocus)==null||Me.call(e)},ue=(Me,We)=>{if(!y()||!$()||!w())return;let Re=y().getBoundingClientRect(),tt=$().getBoundingClientRect();B(S,Me-tt.left),B(T,We-tt.top),s(S)+Re.width>tt.width&&B(S,tt.width-Re.width),s(T)+Re.height>tt.height&&B(T,tt.height-Re.height),B(S,Math.max(s(S),0),!0),B(T,Math.max(s(T),0),!0)};Ue(()=>{(async()=>{if(y()&&$()&&w()){await To();let{top:We,left:Re,bottom:tt,right:Mt}=u(),Qt=Re!=null?Re:0,et=We!=null?We:0,pi=y().getBoundingClientRect();(0,$a.isNullable)(Re)&&!(0,$a.isNullable)(Mt)&&(Qt=Mt-pi.width),(0,$a.isNullable)(We)&&!(0,$a.isNullable)(tt)&&(et=tt-pi.height),Qt=Math.max(Qt,0),et=Math.max(et,0),ue(Qt,et)}})()});let xe=()=>{k.actions.internal.videoRotate()},Z=()=>{(0,$a.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),k.actions.internal.reportProblem(),k.actions.internal.pause()},qe=()=>{let Me=k.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let We=new Blob([...Me],{type:"plain/text"}),Re=window.URL.createObjectURL(We);fa(Re,"vk_player_debug_info","txt")}else hl(k.actions.internal.getDebugTextData())},Je=()=>{let Me=k.actions.internal.getTraceTextData(),We=new Blob([...Me],{type:"application/json"}),Re=window.URL.createObjectURL(We);fa(Re,"vk_player_trace_info","json")},Pe=()=>{R.set(!0)},X=async()=>{var Me;try{U()}finally{(Me=e.returnFocus)==null||Me.call(e)}},Te=()=>{k.actions.internal.setLooped(!a())},Ke=()=>{var Me,We;if(s(Ve)){let Re=(We=(Me=k.callbacks)==null?void 0:Me.onCopyEmbedCodeClicked)==null?void 0:We.call(Me);Re&&hl(Re)}},nt=(Me=!1)=>{var We,Re;if((We=k.callbacks)!=null&&We.onCopyVideoLink){let tt=(Re=k.callbacks)==null?void 0:Re.onCopyVideoLink(Me,p());tt&&hl(tt)}},mt=g(()=>I.features.saveDebugInfoToFile?q("menu_save_debug"):q("menu_copy_debug")),vt=g(()=>s(me)?{id:"copy-link",weight:Lr["copy-link"],label:q("menu_copy_video_link"),onClick:()=>nt()}:void 0),Tt=g(()=>s(ae)?{id:"copy-link-timestamp",weight:Lr["copy-link-timestamp"],label:q("menu_copy_video_link_with_timestamp"),onClick:()=>nt(!0)}:void 0),Qe=g(()=>s(Ve)?{id:"copy-embed-code",weight:Lr["copy-embed-code"],label:q("menu_copy_embed_code"),onClick:Ke}:void 0),zt=g(()=>s(re)?{id:"pip",weight:Lr.pip,label:d()?q("menu_pip_close"):q("menu_pip"),onClick:X}:void 0),Jt=g(()=>s(N)?{id:"video-loop",weight:Lr["video-loop"],label:a()?q("menu_video_loop_off"):q("menu_video_loop_on"),ariaLabel:q("aria_label_menu_loop"),onClick:Te}:void 0),Zt=g(()=>s(He)?{id:"rotate",weight:Lr.rotate,label:q("menu_video_rotate"),ariaLabel:q("aria_label_menu_rotate"),onClick:xe}:void 0),Wt=g(()=>s(_e)?{id:"report",weight:Lr.report,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,onClick:Z}:void 0),ie=g(()=>({id:"save-debug",weight:Lr["save-debug"],label:s(mt),onClick:qe})),Nt=g(()=>s(ge)?{id:"save-trace",weight:Lr["save-trace"],label:q("menu_save_debug"),onClick:Je}:void 0),we=g(()=>({id:"debug-info",weight:Lr["debug-info"],label:q("menu_debug_overlay"),ariaLabel:q("aria_label_menu_debug_overlay"),onClick:Pe})),ve=g(()=>[s(vt),s(Tt),s(Qe),s(zt),s(Jt),s(Zt),s(Wt),s(ie),s(Nt),s(we),...f()].filter(Me=>!!Me).sort(ba));var ne=Fe(),Be=fe(ne);{var ze=Me=>{var We=qb();We.__contextmenu=[Wb],We.__keydown=[zb,de],Si(We,21,()=>s(ve),Re=>Re.id,(Re,tt)=>{Vf(Re,{get id(){return s(tt).id},get label(){return s(tt).label},get ariaLabel(){return s(tt).ariaLabel},get onClick(){return s(tt).onClick},closeContextMenu:de})}),h(We),it(We,Re=>y(Re),()=>y()),O(()=>{var Re,tt;return at(We,`top: ${(Re=s(T))!=null?Re:""}px; left: ${(tt=s(S))!=null?tt:""}px;`)}),b(Me,We)};L(Be,Me=>{v()&&Me(ze)})}b(t,ne),H(),o()}dt(["contextmenu","keydown"]);var $u=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 $u(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 Qb=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Gb={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){D(e,!0),W(t,Gb);let i=m(e,"values",19,()=>[]),o=Y(void 0),n=Y(null),r=16,l=120,d=60,a=l/d;Ot(()=>{s(o).width=l,s(o).height=r,B(n,s(o).getContext("2d"),!0)});function p(u,$,w,y,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect($,w,y,S)}Ue(()=>{let u="";if(s(n)){let $=i()[0];for(let y=1;y<i().length;y++)i()[y]>$&&($=i()[y]);s(n).clearRect(0,0,l,r);let w=d-1;for(let y=i().length-1;y>=0;y--){let S=w*a,T=$>0?r*(i()[y]/$):0;p(s(n),S,0,a,T),u=T+" "+u,w--}}});var f=Qb(),v=_(f);it(v,u=>B(o,u),()=>s(o)),h(f),b(t,f),H()}var Nf=require("@vkontakte/videoplayer-shared/es2018");var jb=(t,e)=>{t.stopPropagation(),Nf.safeStorage.remove(fd),e.set(!1)},Yb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Zb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Xb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Jb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),e$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),t$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),i$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),o$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),n$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),r$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),s$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),a$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),l$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),d$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),c$=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>'),u$={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){D(e,!0),W(t,u$);let[i,o]=Oe(),n=()=>C(d,"$isMobile",i),r=Ee(),l=r.ui.debugPanelVisible,d=r.ui.isMobile,a=Y(ii(r.actions.internal.getDebugPanelData())),p=r.actions.internal.getVideoElement(),f=Y(0),v=Y(0),u=Y(0),$=new yl(60),w=new yl(60),y=new yl(60),S=Y(ii([])),T=Y(ii([])),k=Y(ii([])),A=F("aria_label_debug_panel");Ot(()=>{Nf.safeStorage.set(fd,"true"),r.actions.internal.startLogging(),p&&(B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0),B(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let we=window.setInterval(()=>{B(a,r.actions.internal.getDebugPanelData(),!0)},500),ve;return p&&(ve=window.setInterval(()=>{if(p){B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let ne=p.getVideoPlaybackQuality().totalVideoFrames;B(u,ne-s(f)),B(f,ne,!0),$.push(s(u)),s(a).speed&&w.push(s(a).speed),s(a).bitrate&&y.push(s(a).bitrate),B(S,$.getValuesFromBottom(),!0),B(T,w.getValuesFromBottom(),!0),B(k,y.getValuesFromBottom(),!0)}},1e3)),()=>{r.actions.internal.stopLogging(),clearInterval(we),ve&&clearInterval(ve)}});var I=c$();let E;var R=_(I);R.__click=[jb,l];var G=P(R,2),q=_(G),U=P(_(q),2),Q=_(U,!0);h(U),h(q);var J=P(q,2);{var j=we=>{var ve=Yb(),ne=P(_(ve),2),Be=_(ne,!0);h(ne),h(ve),O(()=>he(Be,s(a).id)),b(we,ve)};L(J,we=>{s(a).id&&we(j)})}var ce=P(J,2);{var le=we=>{var ve=Zb(),ne=P(_(ve),2),Be=_(ne,!0);h(ne),h(ve),O(()=>he(Be,s(a).vsid)),b(we,ve)};L(ce,we=>{s(a).vsid&&we(le)})}var ye=P(ce,2);{var ke=we=>{var ve=Xb(),ne=P(_(ve),2),Be=_(ne,!0);h(ne),h(ve),O(()=>he(Be,s(a).provider)),b(we,ve)};L(ye,we=>{s(a).provider&&we(ke)})}var me=P(ye,2);{var ae=we=>{var ve=Jb(),ne=P(_(ve),2),Be=_(ne);h(ne),h(ve),O(()=>{var ze,Me;return he(Be,`Video: ${(ze=s(a).videoCodec||"")!=null?ze:""} ${s(a).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(Ae=s(a).audioCodec||"")!=null?Ae:""} ${s(a).audioLanguage?`(${s(a).audioLanguage})`:""}`)}),b(me,_e)};L(ve,me=>{(s(a).videoCodec||s(a).audioCodec)&&me(ae)})}var Le=P(ve,2);{var te=me=>{var _e=zb(),se=P(_(_e),2),Oe=_(se,!0);g(se),g(_e),O(()=>he(Oe,s(a).viewport)),b(me,_e)};L(Le,me=>{s(a).viewport&&me(te)})}var N=P(Le,2);{var Be=me=>{var _e=Wb(),se=P(_(_e),2),Oe=_(se,!0);g(se),g(_e),O(()=>he(Oe,s(a).videoSize)),b(me,_e)};L(N,me=>{s(a).videoSize&&me(Be)})}var ye=P(N,2);{var ge=me=>{var _e=qb(),se=P(_(_e),2),Oe=_(se,!0);g(se),g(_e),O(()=>he(Oe,s(a).cdn)),b(me,_e)};L(ye,me=>{s(a).cdn&&me(ge)})}var de=P(ye,2);{var ue=me=>{var _e=Kb(),se=P(_(_e),2),Oe=_(se);g(se),g(_e),O(()=>{var ze;return he(Oe,`${(ze=s(a).volume)!=null?ze:""} %`)}),b(me,_e)};L(de,me=>{s(a).volume&&me(ue)})}var xe=P(de,2);{var Z=me=>{var _e=Qb(),se=P(_(_e),2),Oe=_(se);g(se),g(_e),O(ze=>he(Oe,`${ze!=null?ze:""} s`),[()=>s(a).position.toFixed(2)]),b(me,_e)};L(xe,me=>{s(a).position&&me(Z)})}var qe=P(xe,2);{var Je=me=>{var _e=Gb(),se=P(_(_e),2),Oe=_(se);g(se),g(_e),O(ze=>he(Oe,`${ze!=null?ze:""} s`),[()=>s(a).buffer.toFixed(2)]),b(me,_e)};L(qe,me=>{s(a).buffer&&me(Je)})}var ke=P(qe,2);{var X=me=>{var _e=Yb(),se=P(_(_e),2),Oe=_(se);g(se),g(_e),O(ze=>he(Oe,`${ze!=null?ze:""} s`),[()=>s(a).liveLatency.toFixed(2)]),b(me,_e)};L(ke,me=>{s(a).liveLatency&&me(X)})}var Te=P(ke,2);{var Ke=me=>{var _e=jb(),se=P(_(_e),2),Oe=_(se,!0);g(se),g(_e),O(ze=>he(Oe,ze),[()=>[{value:s(a).currentVideoSegmentLength,title:"Video:"},{value:s(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ze})=>ze).map(({value:ze,title:Ae})=>`${Ae} ${((ze!=null?ze:0)/1e3).toFixed(2)} s`).join(" & ")]),b(me,_e)};L(Te,me=>{(s(a).currentVideoSegmentLength||s(a).currentAudioSegmentLength)&&me(Ke)})}var st=P(Te,2),pt=P(_(st),2),bt=_(pt);g(pt),g(st);var Ct=P(st,2);{var Qe=me=>{var _e=Zb(),se=P(_(_e),2);Sd(se,{get values(){return s(T)}});var Oe=P(se,2),ze=_(Oe);g(Oe),g(_e),O(Ae=>he(ze,`${Ae!=null?Ae:""} Kbps`),[()=>s(a).speed.toFixed(2)]),b(me,_e)};L(Ct,me=>{s(a).speed&&me(Qe)})}var Qt=P(Ct,2);{var Zt=me=>{var _e=Xb(),se=P(_(_e),2);Sd(se,{get values(){return s(k)}});var Oe=P(se,2),ze=_(Oe);g(Oe),g(_e),O(Ae=>he(ze,`${Ae!=null?Ae:""} Kbps`),[()=>s(a).bitrate.toFixed(2)]),b(me,_e)};L(Qt,me=>{s(a).bitrate&&me(Zt)})}var Yt=P(Qt,2),Ot=P(_(Yt),2);Sd(Ot,{get values(){return s(S)}});var ee=P(Ot,2),Lt=_(ee,!0);g(ee),g(Yt),g(K),g(I),O(me=>{var _e,se;E=J(I,1,"container svelte-4deykz",null,E,me),Ne(I,"aria-label",A),he(Y,s(a).version),he(bt,`${(_e=s(v))!=null?_e:""} / ${(se=s(f))!=null?se:""} frames`),he(Lt,s(u))},[()=>({"container-mobile":n()})]),b(t,I),H(),o()}dt(["click"]);var x1=require("@vkontakte/videoplayer-shared/es2018"),t$=(t,e)=>{t.stopPropagation(),e()()},i$=M('<div class="close svelte-1ome55p"></div>'),o$={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 ba(t,e){D(e,!0),z(t,o$);let i=m(e,"onClick",3,x1.noop);var o=i$();o.__click=[t$,i],b(t,o),H()}dt(["click"]);var w1=require("@vkontakte/videoplayer-shared/es2018"),n$=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>'),r$={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 Ed(t,e){D(e,!0),z(t,r$);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,w1.noop),n=5e3,r=j(void 0),l,d,a=j(0),p;We(()=>{i()&&(d=Date.now(),B(a,requestAnimationFrame(v),!0))});let f=()=>{s(a)&&(cancelAnimationFrame(s(a)),B(a,0))},v=()=>{if(!i()){f();return}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(),B(a,requestAnimationFrame(v),!0)):o()()};Bt(()=>{if(l=s(r).getContext("2d"),!!l)return l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff",()=>{f()}}),Mn(()=>{f()});var u=n$(),$=_(u);nt($,w=>B(r,w),()=>s(r)),Ce(2),g(u),b(t,u),H()}var s$=(t,e,i)=>{e(!1),i()},a$=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),l$={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 Vf(t,e){D(e,!0),z(t,l$);let[i,o]=De(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>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,$=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),$()};Bt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Ue(),T=fe(S);{var k=A=>{var I=a$(),E=P(fe(I),2),V=_(E),K=_(V),W=_(K,!0);g(K);var U=P(K,2);ba(U,{onClick:y}),g(V);var Y=P(V,2);Y.__click=[s$,p,v];var ne=_(Y),G=_(ne),ce=_(G);let le;var we=P(ce,2);{var Ve=te=>{let N=h(()=>r()&&n());Ed(te,{get isRunning(){return s(N)},onTimerEnded:w})};L(we,te=>{n()&&te(Ve)})}g(G),g(ne);var ve=P(ne,2),ae=_(ve),Le=_(ae,!0);g(ae),g(ve),g(Y),g(E),O((te,N)=>{he(W,te),at(G,`background-image: url('${e.thumb}')`),le=J(ce,1,"thumb-overlay svelte-jfbaax",null,le,N),he(Le,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(A,I)};L(T,A=>{e.isHide||A(k)})}b(t,S),H(),o()}dt(["click"]);var Ns=require("@vkontakte/videoplayer-core/es2018"),C1=require("@vkontakte/videoplayer-shared/es2018"),mn=require("@vkontakte/videoplayer-statistics/es2018");var Rf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Nf=(t,e)=>Math.max(+(t-e).toFixed(2),0),gu=(t,e,i)=>{let o=Rf(e,i);e<1?t.actions.internal.setVolume(o):$e(t.state.muted$)&&t.actions.external.setMuted(!1)},hu=(t,e,i)=>{let o=Nf(e,i);e>0&&t.actions.internal.setVolume(o)};var Rs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var c$=(t,e)=>{e(t)},u$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),p$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Bf(t,e){var Yt,Ot;D(e,!0),z(t,p$);let[i,o]=De(),n=()=>C(W,"$playbackState$",i),r=()=>C(U,"$adPlaybackState",i),l=()=>C(ce,"$disabledControls$",i),d=()=>C(Y,"$positionExact$",i),a=()=>C(ne,"$duration$",i),p=()=>C(ue,"$isAudioAvailable$",i),f=()=>C(G,"$volume$",i),v=()=>C(ve,"$availablePlaybackRates$",i),u=()=>C(Ve,"$currentPlaybackRate$",i),$=()=>C(Z,"$isInteractiveTime$",i),w=()=>C(qe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(Be,"$isEnded$",i),S=()=>C(le,"$muted$",i),T=()=>C(we,"$currentSubtitle$",i),k=()=>C(ye,"$overlayContainer$",i),A=m(e,"nextButtonActive",3,!1),I=m(e,"prevButtonActive",3,!1),E=Ee(),V=zt(),K=E.getLogger().createComponentLog("KeyboardControls component"),W=E.state.playbackState$,U=E.ads.playbackState,Y=E.state.positionExact$,ne=E.state.duration$,G=E.state.volume$,ce=E.ui.controls.disabledControls$,le=E.state.muted$,we=E.state.currentSubtitle$,Ve=E.state.currentPlaybackRate$,ve=E.state.availablePlaybackRates$,ae=E.ui.contextMenu.openedByHotKey$,Le=E.ui.contextMenu.lastActiveElem$,te=E.ui.contextMenu.visible$,N=E.ui.contextMenu.position$,Be=E.state.isEnded$,ye=E.ui.overlayContainer$,ge=(Yt=E.callbacks)==null?void 0:Yt.onAudioDoesNotExistHint,de=(Ot=E.callbacks)==null?void 0:Ot.onAudioDisabledHint,ue=E.state.isAudioAvailable$,xe=E.state.isAudioDisabled,Z=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:qe}=fo(),Je=0,ke=!0,X=j(void 0),Te=ee=>(ee!==ke&&(ke=ee,Je=0),Je+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*Je)/1e3),Ke=(ee,Lt=!1)=>{var ni,fi;let me=ee.target,_e=(ni=me==null?void 0:me.getAttribute("role"))==null?void 0:ni.includes("menuitem"),se=me.classList.contains("btn"),Oe=ee.code;if(se&&Oe==="Space")return!1;let ze=Ih.has(Oe);if(_e&&ze)return!1;let Ae=!Eh.has(Oe);if(ee.ctrlKey&&Ae||ee.altKey&&Ae||ee.metaKey)return!1;let je=_e&&Oe==="Escape";kh.has(Oe)||je||e.hideContextMenu();let Re=n()===Ns.PlaybackState.PLAYING||n()===Ns.PlaybackState.PAUSED,it=e.isAds&&(r()==="paused"||r()==="playing"),At=!it&&!l().has("TIMELINE");if(!(Re||it))return!1;K({message:`key down, code: ${Oe}, isExternal = ${Lt}`});let Vt=!1,et=()=>{Vt=!0,Lt||ee.preventDefault()};switch(Oe){case"KeyJ":case"ArrowLeft":{if(!At)break;if(ee.ctrlKey||ee.altKey){let lt=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(lt),lt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:lt.text}),et()}else{let lt=ee.shiftKey?Te(!1):V.controls.seekStepKeyboard/1e3,ei=Math.max(d()-lt,0);d()>0&&(E.actions.internal.seekTime(ei,mn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:lt.toString()}),et())}break}case"KeyL":case"ArrowRight":{if(!At)break;if(ee.ctrlKey||ee.altKey){let lt=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(lt),lt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:lt.text}),et()}else{let lt=ee.shiftKey?Te(!0):V.controls.seekStepKeyboard/1e3,ei=Math.min(d()+lt,a());Math.round(d())<Math.round(a())&&(E.actions.internal.seekTime(ei,mn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:lt.toString()}),et())}break}case"ArrowUp":{if(Rs({isAudioDisabled:xe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})){let lt=f(),ei=V.controls.volumeStepKeyboard,ii=lt<=1;if(gu(E,lt,ei),ii){let ui=Math.round(Rf(lt,ei)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ui}})}}et();break}case"ArrowDown":{if(Rs({isAudioDisabled:xe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})){let lt=f(),ei=V.controls.volumeStepKeyboard,ii=lt>=0;if(hu(E,lt,ei),ii){let ui=Math.round(Nf(lt,ei)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ui}})}}et();break}case"Comma":{if(ee.shiftKey){E.actions.internal.decrementPlaybackRate();let lt=v().find(ei=>ei.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:lt==null?void 0:lt.displayValue}),et()}else{if(it||n()!==Ns.PlaybackState.PAUSED)break;let lt=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(lt,mn.SeekAction.DOUBLE_TAP),et())}break}case"Period":{if(ee.shiftKey){E.actions.internal.incrementPlaybackRate();let lt=v().find(ei=>ei.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:lt==null?void 0:lt.displayValue}),et()}else{if(it||n()!==Ns.PlaybackState.PAUSED)break;let lt=Math.min(d()+V.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(lt,mn.SeekAction.DOUBLE_TAP),et())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if($()&&w()&&qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let lt="PLAY";n()===Ns.PlaybackState.PAUSED?lt="PAUSE":y()&&(lt="REPLAY"),e.showHotKeyHelpers({type:lt})}et();break;case"KeyM":{Rs({isAudioDisabled:xe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),et();break}case"KeyF":e.toggleFullscreen(),et();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(fi=T())==null?void 0:fi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),et();break;case"KeyI":E.actions.internal.togglePictureInPicture(),et();break;case"Digit1":case"Numpad1":if(ee.shiftKey){let lt=$1(k());N.set(lt),Le.set(me),ae.set(!0),te.set(!0),et();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,mn.SeekAction.DOUBLE_TAP),et();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,mn.SeekAction.DOUBLE_TAP),et();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,mn.SeekAction.DOUBLE_TAP),et();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,mn.SeekAction.DOUBLE_TAP),et();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,mn.SeekAction.DOUBLE_TAP),et();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,mn.SeekAction.DOUBLE_TAP),et();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,mn.SeekAction.DOUBLE_TAP),et();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,mn.SeekAction.DOUBLE_TAP),et();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,mn.SeekAction.DOUBLE_TAP),et();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,mn.SeekAction.DOUBLE_TAP),et();break;case"Slash":{ee.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),et());break}case"KeyN":ee.shiftKey&&A()&&(E.actions.internal.nextVideoClick(),et());break;case"KeyP":ee.shiftKey&&I()&&(E.actions.internal.prevVideoClick(),et());break;case"ShiftLeft":case"ShiftRight":et();break;case"Tab":case"Escape":case"Enter":break;default:(0,C1.checkNever)(Oe);break}return Vt},st=ee=>{let Lt=ee.code;if(ee.ctrlKey||ee.altKey||ee.metaKey)return;let me=n()===Ns.PlaybackState.PLAYING||n()===Ns.PlaybackState.PAUSED,_e=e.isAds&&(r()==="paused"||r()==="playing");if(me||_e)switch(Lt){case"ShiftLeft":case"ShiftRight":Je=0;break}},pt=F("aria_label_video_player"),bt=()=>{var ee;return(ee=s(X))==null?void 0:ee.focus()},Ct=ee=>ee.type==="keydown"?Ke(ee,!0):(ee.type==="keyup"&&st(ee),!1);var Qe=u$();Qe.__keyup=st,Qe.__keydown=[c$,Ke];var Qt=_(Qe);be(Qt,()=>{var ee;return(ee=e.children)!=null?ee:oe}),g(Qe),nt(Qe,ee=>B(X,ee),()=>s(X)),O(()=>Ne(Qe,"aria-label",pt)),b(t,Qe);var Zt=H({focus:bt,handleExternalKeyboardEvent:Ct});return o(),Zt}dt(["keyup","keydown"]);var f$=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>'),m$={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: ${(Me=s(a).audioCodec||"")!=null?Me:""} ${s(a).audioLanguage?`(${s(a).audioLanguage})`:""}`)}),b(we,ve)};L(me,we=>{(s(a).videoCodec||s(a).audioCodec)&&we(ae)})}var Ve=P(me,2);{var re=we=>{var ve=e$(),ne=P(_(ve),2),Be=_(ne,!0);h(ne),h(ve),O(()=>he(Be,s(a).viewport)),b(we,ve)};L(Ve,we=>{s(a).viewport&&we(re)})}var N=P(Ve,2);{var He=we=>{var ve=t$(),ne=P(_(ve),2),Be=_(ne,!0);h(ne),h(ve),O(()=>he(Be,s(a).videoSize)),b(we,ve)};L(N,we=>{s(a).videoSize&&we(He)})}var _e=P(N,2);{var ge=we=>{var ve=i$(),ne=P(_(ve),2),Be=_(ne,!0);h(ne),h(ve),O(()=>he(Be,s(a).cdn)),b(we,ve)};L(_e,we=>{s(a).cdn&&we(ge)})}var de=P(_e,2);{var ue=we=>{var ve=o$(),ne=P(_(ve),2),Be=_(ne);h(ne),h(ve),O(()=>{var ze;return he(Be,`${(ze=s(a).volume)!=null?ze:""} %`)}),b(we,ve)};L(de,we=>{s(a).volume&&we(ue)})}var xe=P(de,2);{var Z=we=>{var ve=n$(),ne=P(_(ve),2),Be=_(ne);h(ne),h(ve),O(ze=>he(Be,`${ze!=null?ze:""} s`),[()=>s(a).position.toFixed(2)]),b(we,ve)};L(xe,we=>{s(a).position&&we(Z)})}var qe=P(xe,2);{var Je=we=>{var ve=r$(),ne=P(_(ve),2),Be=_(ne);h(ne),h(ve),O(ze=>he(Be,`${ze!=null?ze:""} s`),[()=>s(a).buffer.toFixed(2)]),b(we,ve)};L(qe,we=>{s(a).buffer&&we(Je)})}var Pe=P(qe,2);{var X=we=>{var ve=s$(),ne=P(_(ve),2),Be=_(ne);h(ne),h(ve),O(ze=>he(Be,`${ze!=null?ze:""} s`),[()=>s(a).liveLatency.toFixed(2)]),b(we,ve)};L(Pe,we=>{s(a).liveLatency&&we(X)})}var Te=P(Pe,2);{var Ke=we=>{var ve=a$(),ne=P(_(ve),2),Be=_(ne,!0);h(ne),h(ve),O(ze=>he(Be,ze),[()=>[{value:s(a).currentVideoSegmentLength,title:"Video:"},{value:s(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ze})=>ze).map(({value:ze,title:Me})=>`${Me} ${((ze!=null?ze:0)/1e3).toFixed(2)} s`).join(" & ")]),b(we,ve)};L(Te,we=>{(s(a).currentVideoSegmentLength||s(a).currentAudioSegmentLength)&&we(Ke)})}var nt=P(Te,2),mt=P(_(nt),2),vt=_(mt);h(mt),h(nt);var Tt=P(nt,2);{var Qe=we=>{var ve=l$(),ne=P(_(ve),2);Ed(ne,{get values(){return s(T)}});var Be=P(ne,2),ze=_(Be);h(Be),h(ve),O(Me=>he(ze,`${Me!=null?Me:""} Kbps`),[()=>s(a).speed.toFixed(2)]),b(we,ve)};L(Tt,we=>{s(a).speed&&we(Qe)})}var zt=P(Tt,2);{var Jt=we=>{var ve=d$(),ne=P(_(ve),2);Ed(ne,{get values(){return s(k)}});var Be=P(ne,2),ze=_(Be);h(Be),h(ve),O(Me=>he(ze,`${Me!=null?Me:""} Kbps`),[()=>s(a).bitrate.toFixed(2)]),b(we,ve)};L(zt,we=>{s(a).bitrate&&we(Jt)})}var Zt=P(zt,2),Wt=P(_(Zt),2);Ed(Wt,{get values(){return s(S)}});var ie=P(Wt,2),Nt=_(ie,!0);h(ie),h(Zt),h(G),h(I),O(we=>{var ve,ne;E=te(I,1,"container svelte-4deykz",null,E,we),De(I,"aria-label",A),he(Q,s(a).version),he(vt,`${(ve=s(v))!=null?ve:""} / ${(ne=s(f))!=null?ne:""} frames`),he(Nt,s(u))},[()=>({"container-mobile":n()})]),b(t,I),H(),o()}dt(["click"]);var I1=require("@vkontakte/videoplayer-shared/es2018"),p$=(t,e)=>{t.stopPropagation(),e()()},f$=M('<div class="close svelte-1ome55p"></div>'),m$={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){D(e,!0),W(t,m$);let i=m(e,"onClick",3,I1.noop);var o=f$();o.__click=[p$,i],b(t,o),H()}dt(["click"]);var k1=require("@vkontakte/videoplayer-shared/es2018"),v$=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>'),g$={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){D(e,!0),W(t,g$);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,k1.noop),n=5e3,r=Y(void 0),l,d,a=0,p;Ue(()=>{i()&&St(()=>{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()())};Ot(()=>{l=s(r).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),Vn(()=>{f()});var u=v$(),$=_(u);it($,w=>B(r,w),()=>s(r)),Ce(2),h(u),b(t,u),H()}var h$=(t,e,i)=>{e(!1),i()},_$=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),b$={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 Bf(t,e){D(e,!0),W(t,b$);let[i,o]=Oe(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>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,$=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),$()};Ot(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Fe(),T=fe(S);{var k=A=>{var I=_$(),E=P(fe(I),2),R=_(E),G=_(R),q=_(G,!0);h(G);var U=P(G,2);ya(U,{onClick:y}),h(R);var Q=P(R,2);Q.__click=[h$,p,v];var J=_(Q),j=_(J),ce=_(j);let le;var ye=P(ce,2);{var ke=re=>{let N=g(()=>r()&&n());kd(re,{get isRunning(){return s(N)},onTimerEnded:w})};L(ye,re=>{n()&&re(ke)})}h(j),h(J);var me=P(J,2),ae=_(me),Ve=_(ae,!0);h(ae),h(me),h(Q),h(E),O((re,N)=>{he(q,re),at(j,`background-image: url('${e.thumb}')`),le=te(ce,1,"thumb-overlay svelte-jfbaax",null,le,N),he(Ve,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(A,I)};L(T,A=>{e.isHide||A(k)})}b(t,S),H(),o()}dt(["click"]);var Ds=require("@vkontakte/videoplayer-core/es2018"),P1=require("@vkontakte/videoplayer-shared/es2018"),hn=require("@vkontakte/videoplayer-statistics/es2018");var Of=(t,e)=>Math.min(+(t+e).toFixed(2),1),Df=(t,e)=>Math.max(+(t-e).toFixed(2),0),yu=(t,e,i)=>{let o=Of(e,i);e<1?t.actions.internal.setVolume(o):$e(t.state.muted$)&&t.actions.external.setMuted(!1)},xu=(t,e,i)=>{let o=Df(e,i);e>0&&t.actions.internal.setVolume(o)};var Os=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var y$=(t,e)=>{e(t)},x$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),w$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Hf(t,e){var Zt,Wt;D(e,!0),W(t,w$);let[i,o]=Oe(),n=()=>C(q,"$playbackState$",i),r=()=>C(U,"$adPlaybackState",i),l=()=>C(ce,"$disabledControls$",i),d=()=>C(Q,"$positionExact$",i),a=()=>C(J,"$duration$",i),p=()=>C(ue,"$isAudioAvailable$",i),f=()=>C(j,"$volume$",i),v=()=>C(me,"$availablePlaybackRates$",i),u=()=>C(ke,"$currentPlaybackRate$",i),$=()=>C(Z,"$isInteractiveTime$",i),w=()=>C(qe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(He,"$isEnded$",i),S=()=>C(le,"$muted$",i),T=()=>C(ye,"$currentSubtitle$",i),k=()=>C(_e,"$overlayContainer$",i),A=m(e,"nextButtonActive",3,!1),I=m(e,"prevButtonActive",3,!1),E=Ee(),R=kt(),G=E.getLogger().createComponentLog("KeyboardControls component"),q=E.state.playbackState$,U=E.ads.playbackState,Q=E.state.positionExact$,J=E.state.duration$,j=E.state.volume$,ce=E.ui.controls.disabledControls$,le=E.state.muted$,ye=E.state.currentSubtitle$,ke=E.state.currentPlaybackRate$,me=E.state.availablePlaybackRates$,ae=E.ui.contextMenu.openedByHotKey$,Ve=E.ui.contextMenu.lastActiveElem$,re=E.ui.contextMenu.visible$,N=E.ui.contextMenu.position$,He=E.state.isEnded$,_e=E.ui.overlayContainer$,ge=(Zt=E.callbacks)==null?void 0:Zt.onAudioDoesNotExistHint,de=(Wt=E.callbacks)==null?void 0:Wt.onAudioDisabledHint,ue=E.state.isAudioAvailable$,xe=E.state.isAudioDisabled,Z=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:qe}=vo(),Je=0,Pe=!0,X=Y(void 0),Te=ie=>(ie!==Pe&&(Pe=ie,Je=0),Je+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*Je)/1e3),Ke=(ie,Nt=!1)=>{var pi,oi;let we=ie.target,ve=(pi=we==null?void 0:we.getAttribute("role"))==null?void 0:pi.includes("menuitem"),ne=we.classList.contains("btn"),Be=ie.code;if(ne&&Be==="Space")return!1;let ze=Mh.has(Be);if(ve&&ze)return!1;let Me=!Ah.has(Be);if(ie.ctrlKey&&Me||ie.altKey&&Me||ie.metaKey)return!1;let We=ve&&Be==="Escape";Lh.has(Be)||We||e.hideContextMenu();let Re=n()===Ds.PlaybackState.PLAYING||n()===Ds.PlaybackState.PAUSED,tt=e.isAds&&(r()==="paused"||r()==="playing"),Mt=!tt&&!l().has("TIMELINE");if(!(Re||tt))return!1;G({message:`key down, code: ${Be}, isExternal = ${Nt}`});let Qt=!1,et=()=>{Qt=!0,Nt||ie.preventDefault()};switch(Be){case"KeyJ":case"ArrowLeft":{if(!Mt)break;if(ie.ctrlKey||ie.altKey){let st=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(st),st&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:st.text}),et()}else{let st=ie.shiftKey?Te(!1):R.controls.seekStepKeyboard/1e3,Gt=Math.max(d()-st,0);d()>0&&(E.actions.internal.seekTime(Gt,hn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:st.toString()}),et())}break}case"KeyL":case"ArrowRight":{if(!Mt)break;if(ie.ctrlKey||ie.altKey){let st=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(st),st&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:st.text}),et()}else{let st=ie.shiftKey?Te(!0):R.controls.seekStepKeyboard/1e3,Gt=Math.min(d()+st,a());Math.round(d())<Math.round(a())&&(E.actions.internal.seekTime(Gt,hn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:st.toString()}),et())}break}case"ArrowUp":{if(Os({isAudioDisabled:xe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})){let st=f(),Gt=R.controls.volumeStepKeyboard,ni=st<=1;if(yu(E,st,Gt),ni){let mi=Math.round(Of(st,Gt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:mi}})}}et();break}case"ArrowDown":{if(Os({isAudioDisabled:xe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})){let st=f(),Gt=R.controls.volumeStepKeyboard,ni=st>=0;if(xu(E,st,Gt),ni){let mi=Math.round(Df(st,Gt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:mi}})}}et();break}case"Comma":{if(ie.shiftKey){E.actions.internal.decrementPlaybackRate();let st=v().find(Gt=>Gt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:st==null?void 0:st.displayValue}),et()}else{if(tt||n()!==Ds.PlaybackState.PAUSED)break;let st=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(st,hn.SeekAction.DOUBLE_TAP),et())}break}case"Period":{if(ie.shiftKey){E.actions.internal.incrementPlaybackRate();let st=v().find(Gt=>Gt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:st==null?void 0:st.displayValue}),et()}else{if(tt||n()!==Ds.PlaybackState.PAUSED)break;let st=Math.min(d()+R.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(st,hn.SeekAction.DOUBLE_TAP),et())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if($()&&w()&&qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let st="PLAY";n()===Ds.PlaybackState.PAUSED?st="PAUSE":y()&&(st="REPLAY"),e.showHotKeyHelpers({type:st})}et();break;case"KeyM":{Os({isAudioDisabled:xe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),et();break}case"KeyF":e.toggleFullscreen(),et();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(oi=T())==null?void 0:oi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),et();break;case"KeyI":E.actions.internal.togglePictureInPicture(),et();break;case"Digit1":case"Numpad1":if(ie.shiftKey){let st=T1(k());N.set(st),Ve.set(we),ae.set(!0),re.set(!0),et();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,hn.SeekAction.DOUBLE_TAP),et();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,hn.SeekAction.DOUBLE_TAP),et();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,hn.SeekAction.DOUBLE_TAP),et();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,hn.SeekAction.DOUBLE_TAP),et();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,hn.SeekAction.DOUBLE_TAP),et();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,hn.SeekAction.DOUBLE_TAP),et();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,hn.SeekAction.DOUBLE_TAP),et();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,hn.SeekAction.DOUBLE_TAP),et();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,hn.SeekAction.DOUBLE_TAP),et();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,hn.SeekAction.DOUBLE_TAP),et();break;case"Slash":{ie.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),et());break}case"KeyN":ie.shiftKey&&A()&&(E.actions.internal.nextVideoClick(),et());break;case"KeyP":ie.shiftKey&&I()&&(E.actions.internal.prevVideoClick(),et());break;case"ShiftLeft":case"ShiftRight":et();break;case"Tab":case"Escape":case"Enter":break;default:(0,P1.checkNever)(Be);break}return Qt},nt=ie=>{let Nt=ie.code;if(ie.ctrlKey||ie.altKey||ie.metaKey)return;let we=n()===Ds.PlaybackState.PLAYING||n()===Ds.PlaybackState.PAUSED,ve=e.isAds&&(r()==="paused"||r()==="playing");if(we||ve)switch(Nt){case"ShiftLeft":case"ShiftRight":Je=0;break}},mt=F("aria_label_video_player"),vt=()=>{var ie;return(ie=s(X))==null?void 0:ie.focus()},Tt=ie=>ie.type==="keydown"?Ke(ie,!0):(ie.type==="keyup"&&nt(ie),!1);var Qe=x$();Qe.__keyup=nt,Qe.__keydown=[y$,Ke];var zt=_(Qe);be(zt,()=>{var ie;return(ie=e.children)!=null?ie:se}),h(Qe),it(Qe,ie=>B(X,ie),()=>s(X)),O(()=>De(Qe,"aria-label",mt)),b(t,Qe);var Jt=H({focus:vt,handleExternalKeyboardEvent:Tt});return o(),Jt}dt(["keyup","keydown"]);var C$=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>'),S$={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,7 +150,7 @@ Try switching the\xA0quality to\xA0Auto.`},n1=G_;var vs=new Map;vs.set(ul.Interf
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 $a(t,e){z(t,m$);let i=m(e,"style",3,"");var o=f$();O(()=>at(o,i())),b(t,o)}var v$=Se('<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 Of(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=v$();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var ya=require("@vkontakte/videoplayer-shared/es2018"),g$=t=>{t.stopPropagation()},h$=M("<button><!></button>"),_$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
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){W(t,S$);let i=m(e,"style",3,"");var o=C$();O(()=>at(o,i())),b(t,o)}var T$=Se('<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 Ff(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=T$();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}var wa=require("@vkontakte/videoplayer-shared/es2018"),E$=t=>{t.stopPropagation()},I$=M("<button><!></button>"),k$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
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-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
156
156
 
@@ -158,22 +158,22 @@ Try switching the\xA0quality to\xA0Auto.`},n1=G_;var vs=new Map;vs.set(ul.Interf
158
158
  /* mobile */
159
159
  /* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
160
160
  .btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
161
- /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Nt(t,e){D(e,!0),z(t,_$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),r=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,ya.noop),$=m(e,"focus",3,ya.noop),w=m(e,"blur",3,ya.noop),y=h(()=>u()===ya.noop?null:I=>{I.stopPropagation(),u()(I)}),S=h(()=>$()===ya.noop?null:I=>{I.preventDefault(),$()()}),T=h(()=>w()===ya.noop?null:I=>{I.preventDefault(),w()()});var k=h$();k.__pointerdown=[g$],k.__click=function(...I){var E;(E=s(y))==null||E.apply(this,I)};var A=_(k);be(A,()=>{var I;return(I=e.children)!=null?I:oe}),g(k),nt(k,I=>a(I),()=>a()),O(()=>{var I,E,V,K,W,U,Y,ne;J(k,1,`btn ${(I=i())!=null?I:""}`,"svelte-wr0kwr"),at(k,o()||null),k.disabled=(E=n())!=null?E:null,Ne(k,"aria-hidden",(V=l())!=null?V:null),Ne(k,"aria-label",(K=d())!=null?K:null),Ne(k,"aria-keyshortcuts",(W=p())!=null?W:null),Ne(k,"aria-expanded",(U=f())!=null?U:null),Ne(k,"data-testid",(Y=r())!=null?Y:null),Ne(k,"tabindex",v()),Ne(k,"role",e.role),Ne(k,"aria-checked",(ne=e.areaChecked)!=null?ne:null)}),St("focus",k,function(...I){var E;(E=s(S))==null||E.apply(this,I)}),St("blur",k,function(...I){var E;(E=s(T))==null||E.apply(this,I)}),b(t,k),H()}dt(["pointerdown","click"]);var b$=M('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),$$=M('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),y$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function Df(t,e){D(e,!0),z(t,y$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var r=$$(),l=_(r),d=_(l);{var a=u=>{var $=b$(),w=_($),y=_(w,!0);g(w);var S=P(w,2);{var T=k=>{Nt(k,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(A,I)=>{Of(A,{})},$$slots:{default:!0}})};L(S,k=>{o()&&k(T)})}g($),O(()=>he(y,e.title)),b(u,$)};L(d,u=>{i()&&u(a)})}var p=P(d,2),f=_(p),v=_(f);be(v,()=>{var u;return(u=e.children)!=null?u:oe}),g(f),g(p),g(l),g(r),b(t,r),H()}var x$=new Set(["BR"]),S1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],l=r.tagName;x$.has(l)||(n=r.parentElement)==null||n.removeChild(r)}return e.innerHTML};var w$=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>'),C$=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>'),S$=M('<div class="hot-key-map svelte-quklnq"></div>'),T$={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
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Rt(t,e){D(e,!0),W(t,k$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),r=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),$=m(e,"focus",3,wa.noop),w=m(e,"blur",3,wa.noop),y=g(()=>u()===wa.noop?null:I=>{I.stopPropagation(),u()(I)}),S=g(()=>$()===wa.noop?null:I=>{I.preventDefault(),$()()}),T=g(()=>w()===wa.noop?null:I=>{I.preventDefault(),w()()});var k=I$();k.__pointerdown=[E$],k.__click=function(...I){var E;(E=s(y))==null||E.apply(this,I)};var A=_(k);be(A,()=>{var I;return(I=e.children)!=null?I:se}),h(k),it(k,I=>a(I),()=>a()),O(()=>{var I,E,R,G,q,U,Q,J;te(k,1,`btn ${(I=i())!=null?I:""}`,"svelte-wr0kwr"),at(k,o()||null),k.disabled=(E=n())!=null?E:null,De(k,"aria-hidden",(R=l())!=null?R:null),De(k,"aria-label",(G=d())!=null?G:null),De(k,"aria-keyshortcuts",(q=p())!=null?q:null),De(k,"aria-expanded",(U=f())!=null?U:null),De(k,"data-testid",(Q=r())!=null?Q:null),De(k,"tabindex",v()),De(k,"role",e.role),De(k,"aria-checked",(J=e.areaChecked)!=null?J:null)}),Et("focus",k,function(...I){var E;(E=s(S))==null||E.apply(this,I)}),Et("blur",k,function(...I){var E;(E=s(T))==null||E.apply(this,I)}),b(t,k),H()}dt(["pointerdown","click"]);var P$=M('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),A$=M('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),M$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function Uf(t,e){D(e,!0),W(t,M$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var r=A$(),l=_(r),d=_(l);{var a=u=>{var $=P$(),w=_($),y=_(w,!0);h(w);var S=P(w,2);{var T=k=>{Rt(k,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(A,I)=>{Ff(A,{})},$$slots:{default:!0}})};L(S,k=>{o()&&k(T)})}h($),O(()=>he(y,e.title)),b(u,$)};L(d,u=>{i()&&u(a)})}var p=P(d,2),f=_(p),v=_(f);be(v,()=>{var u;return(u=e.children)!=null?u:se}),h(f),h(p),h(l),h(r),b(t,r),H()}var L$=new Set(["BR"]),A1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],l=r.tagName;L$.has(l)||(n=r.parentElement)==null||n.removeChild(r)}return e.innerHTML};var V$=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>'),R$=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>'),N$=M('<div class="hot-key-map svelte-quklnq"></div>'),B$={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,
162
162
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
163
- .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Hf(t,e){D(e,!1),z(t,T$);let[i,o]=De(),n=()=>C(l,"$data",i),r=Ee(),{data:l,show:d}=r.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Vr(),Df(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var v=S$();xi(v,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>s($).title,y=()=>s($).items;var S=C$(),T=_(S),k=_(T,!0);g(T);var A=P(T,2);xi(A,5,y,({description:I,value:E})=>E,(I,E)=>{let V=()=>s(E).description,K=()=>s(E).value;var W=w$(),U=_(W),Y=_(U);sd(Y,()=>S1(V())),g(U);var ne=P(U,2),G=_(ne,!0);g(ne),g(W),O(()=>he(G,K())),b(I,W)}),g(A),g(S),O(()=>he(k,w())),b(u,S)}),g(v),b(p,v)},$$slots:{default:!0}}),H(),o()}var Rm=require("@vkontakte/videoplayer-shared/es2018");var Ia=require("@vkontakte/videoplayer-core/es2018");var EV=require("@vkontakte/videoplayer-shared/es2018");var E$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),I$={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 Ff(t,e){z(t,I$);var i=E$(),o=_(i);be(o,()=>{var n;return(n=e.children)!=null?n:oe}),g(i),b(t,i)}var $l=require("@vkontakte/videoplayer-shared/es2018");var k$=Se('<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 Uf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=k$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var P$=Se('<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 zf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=P$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var A$=Se('<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 Wf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=A$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var M$=Se('<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 Id(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=M$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var L$=Se('<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 kd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=L$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var _u=t=>{switch(t){case $l.VideoQuality.Q_720P:return Wf;case $l.VideoQuality.Q_1080P:return Id;case $l.VideoQuality.Q_1440P:return kd;case $l.VideoQuality.Q_2160P:return Uf;case $l.VideoQuality.Q_4320P:return zf}};var V$=Se('<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 qf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=V$();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var R$=Se('<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 Kf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=R$();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var N$=M('<div aria-hidden="true"><!> <!></div>'),B$={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 Pd(t,e){D(e,!0),z(t,B$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=h(()=>_u(o())),r=h(()=>!!s(n)&&[Id,kd].includes(s(n)));var l=Ue(),d=fe(l);{var a=f=>{qf(f,{})},p=f=>{var v=N$();let u;var $=_(v);{var w=T=>{Ff(T,{children:(k,A)=>{var I=Ue(),E=fe(I);wi(E,()=>s(n),(V,K)=>{K(V,{})}),b(k,I)},$$slots:{default:!0}})};L($,T=>{s(n)&&T(w)})}var y=P($,2);let S=h(()=>s(n)?"settings-icon--labeled":"settings-icon");Kf(y,{get"data-testid"(){return s(S)},fill:"var(--btn-color, #fff)"}),g(v),O(T=>u=J(v,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:s(r)})]),b(f,v)};L(d,f=>{i()?f(a):f(p,!1)})}b(t,l),H()}var O$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),D$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function yl(t,e){D(e,!0),z(t,D$);let[i,o]=De(),n=()=>C(p,"$settingsMenuVisible",i),r=()=>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,$=d.ui.t,w=j(void 0);We(()=>{s(w)&&Tt(()=>{e.ref$.set(s(w))})});let y=$("aria_label_settings");async function S(k){let A=Vs(k);n()?v():f(A,wo)}let T=h(()=>n()?"opened":"");Nt(t,{get className(){return s(T)},testId:"btn-settings",click:S,get ariaLabel(){return y},get ariaExpanded(){return n()},get ref(){return s(w)},set ref(k){B(w,k,!0)},children:(k,A)=>{var I=O$(),E=_(I);Pd(E,{get isMobile(){return r()},get currentQuality(){return l()}}),g(I),b(k,I)},$$slots:{default:!0}}),H(),o()}var H$=Se('<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 Qf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=H$();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var F$=Se('<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 Ad(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=F$();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function Gf(t,e){D(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ee().ui.t,r=h(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Nt(t,{testId:"btn-Subtitles",get ariaLabel(){return s(r)},get click(){return e.click},get ariaKeyShortCut(){return os.KeyC},role:"button",children:(l,d)=>{var a=Ue(),p=fe(a);{var f=u=>{Qf(u,{})},v=u=>{Ad(u,{})};L(p,u=>{i()?u(f):u(v,!1)})}b(l,a)},$$slots:{default:!0}}),H()}var U$=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),z$=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),W$={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function Md(t,e){D(e,!0),z(t,W$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),r=h(()=>fn(e.duration)),l=h(()=>fn(e.position));var d=z$();let a;var p=_(d),f=_(p,!0);g(p);var v=P(p,2);{var u=$=>{var w=U$(),y=_(w,!0);g(w),O(()=>he(y,s(r))),b($,w)};L(v,$=>{o()&&$(u)})}g(d),nt(d,$=>n($),()=>n()),O($=>{a=J(d,1,"time svelte-sz9er7",null,a,$),he(f,s(l))},[()=>({mobile:i()})]),b(t,d),H()}var Vd=require("@vkontakte/videoplayer-shared/es2018");var q$=Se('<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>'),K$={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
+ .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 zf(t,e){D(e,!1),W(t,B$);let[i,o]=Oe(),n=()=>C(l,"$data",i),r=Ee(),{data:l,show:d}=r.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Ar(),Uf(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var v=N$();Si(v,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>s($).title,y=()=>s($).items;var S=R$(),T=_(S),k=_(T,!0);h(T);var A=P(T,2);Si(A,5,y,({description:I,value:E})=>E,(I,E)=>{let R=()=>s(E).description,G=()=>s(E).value;var q=V$(),U=_(q),Q=_(U);ld(Q,()=>A1(R())),h(U);var J=P(U,2),j=_(J,!0);h(J),h(q),O(()=>he(j,G())),b(I,q)}),h(A),h(S),O(()=>he(k,w())),b(u,S)}),h(v),b(p,v)},$$slots:{default:!0}}),H(),o()}var Om=require("@vkontakte/videoplayer-shared/es2018");var Pa=require("@vkontakte/videoplayer-core/es2018");var UV=require("@vkontakte/videoplayer-shared/es2018");var O$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),D$={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 Wf(t,e){W(t,D$);var i=O$(),o=_(i);be(o,()=>{var n;return(n=e.children)!=null?n:se}),h(i),b(t,i)}var xl=require("@vkontakte/videoplayer-shared/es2018");var H$=Se('<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=Le(e,["$$slots","$$events","$$legacy","children"]);var o=H$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}var F$=Se('<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 Kf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=F$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}var U$=Se('<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 Qf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=U$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var z$=Se('<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=Le(e,["$$slots","$$events","$$legacy","children"]);var o=z$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var W$=Se('<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=Le(e,["$$slots","$$events","$$legacy","children"]);var o=W$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}var wu=t=>{switch(t){case xl.VideoQuality.Q_720P:return Qf;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 Kf}};var q$=Se('<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 Gf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=q$();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var K$=Se('<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 jf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=K$();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}var Q$=M('<div aria-hidden="true"><!> <!></div>'),G$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function Md(t,e){D(e,!0),W(t,G$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>wu(o())),r=g(()=>!!s(n)&&[Pd,Ad].includes(s(n)));var l=Fe(),d=fe(l);{var a=f=>{Gf(f,{})},p=f=>{var v=Q$();let u;var $=_(v);{var w=T=>{Wf(T,{children:(k,A)=>{var I=Fe(),E=fe(I);Ti(E,()=>s(n),(R,G)=>{G(R,{})}),b(k,I)},$$slots:{default:!0}})};L($,T=>{s(n)&&T(w)})}var y=P($,2);let S=g(()=>s(n)?"settings-icon--labeled":"settings-icon");jf(y,{get"data-testid"(){return s(S)},fill:"var(--btn-color, #fff)"}),h(v),O(T=>u=te(v,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:s(r)})]),b(f,v)};L(d,f=>{i()?f(a):f(p,!1)})}b(t,l),H()}var j$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Y$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function wl(t,e){D(e,!0),W(t,Y$);let[i,o]=Oe(),n=()=>C(p,"$settingsMenuVisible",i),r=()=>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,$=d.ui.t,w=Y(void 0);Ue(()=>{s(w)&&St(()=>{e.ref$.set(s(w))})});let y=$("aria_label_settings");async function S(k){let A=Bs(k);n()?v():f(A,To)}let T=g(()=>n()?"opened":"");Rt(t,{get className(){return s(T)},testId:"btn-settings",click:S,get ariaLabel(){return y},get ariaExpanded(){return n()},get ref(){return s(w)},set ref(k){B(w,k,!0)},children:(k,A)=>{var I=j$(),E=_(I);Md(E,{get isMobile(){return r()},get currentQuality(){return l()}}),h(I),b(k,I)},$$slots:{default:!0}}),H(),o()}var Z$=Se('<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 Yf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Z$();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var X$=Se('<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=Le(e,["$$slots","$$events","$$legacy","children"]);var o=X$();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}function Zf(t,e){D(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ee().ui.t,r=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Rt(t,{testId:"btn-Subtitles",get ariaLabel(){return s(r)},get click(){return e.click},get ariaKeyShortCut(){return is.KeyC},role:"button",children:(l,d)=>{var a=Fe(),p=fe(a);{var f=u=>{Yf(u,{})},v=u=>{Ld(u,{})};L(p,u=>{i()?u(f):u(v,!1)})}b(l,a)},$$slots:{default:!0}}),H()}var J$=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),e2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),t2={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function Vd(t,e){D(e,!0),W(t,t2);let i=m(e,"isMobile",3,!1),o=m(e,"isHidden",3,!1),n=m(e,"showDuration",3,!0),r=m(e,"ref",15),l=kt(),d=oe(!1),a=g(()=>gn(e.duration)),p=g(()=>gn(e.position));var f=e2();let v;var u=_(f),$=_(u,!0);h(u);var w=P(u,2);{var y=S=>{var T=J$(),k=_(T,!0);h(T),O(()=>he(k,s(a))),b(S,T)};L(w,S=>{n()&&S(y)})}h(f),vs(f,()=>gl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),it(f,S=>r(S),()=>r()),O(S=>{v=te(f,1,"time svelte-sz9er7",null,v,S),he($,s(p))},[()=>({mobile:i()})]),b(t,f),H()}var Nd=require("@vkontakte/videoplayer-shared/es2018");var i2=Se('<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>'),o2={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),
164
164
  .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),
165
- .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Bs(t,e){z(t,K$);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",r=h(()=>n(i(),o()));var l=q$();O(()=>{var d;Ne(l,"data-value",s(r)),Ne(l,"data-testid",`volume-${(d=s(r))!=null?d:""}-icon`)}),b(t,l)}var So=require("@vkontakte/videoplayer-shared/es2018");var bu=require("@vkontakte/videoplayer-shared/es2018");var T1=require("@vkontakte/videoplayer-shared/es2018");var Q$=M('<div class="overlay"><!></div>');function Yf(t,e){D(e,!0);let[i,o]=De(),n=()=>C(l,"$overlayContainer$",i),l=Ee().ui.overlayContainer$,d=j(void 0),a=u=>{!u||!s(d)||!u.contains(s(d))||u.removeChild(s(d))},p=u=>{!u||!s(d)||u.contains(s(d))||u.appendChild(s(d))};We(()=>{p(n())}),Bt(()=>(p(n()),()=>a(n())));var f=Q$(),v=_(f);be(v,()=>{var u;return(u=e.children)!=null?u:oe}),g(f),nt(f,u=>B(d,u),()=>s(d)),b(t,f),H(),o()}var G$=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),Y$=M("<div><!></div> <!>",1),j$={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 xa(t,e){D(e,!0),z(t,j$);let[i,o]=De(),n=()=>C(Y,"$overlayContainer$",i),r=()=>C(U,"$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),$=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,T1.noop),y=5,S=j(void 0),T=j(void 0),k,A=j(0),I=j(0),E=j(0),V=j(0),K=zt(),W=Ee(),U=W.ui.playerSize,Y=W.ui.overlayContainer$;We(()=>{Tt(()=>{w()(a())})});let ne=W.getLogger().createComponentLog("Tooltip component"),G=()=>{if(!n()||!s(T)||!s(S))return;B(I,y);let ke=n().getBoundingClientRect(),X=s(S).getBoundingClientRect(),Te=X.width,Ke=s(T).clientWidth,st=r().width,pt=(Te-Ke)/2,bt=X.left+p()-ke.left,Ct=bt+pt,Qe=X.top+f()-ke.top,Qt=Ke/2-y,Zt=Ct<8,Yt=Ct+Ke>st-8;Zt&&(Ct=8,Qt=bt+X.width/2-2.5*y),Yt&&(Ct=st-8-Ke,Qt=X.left-ke.left+X.width/2-Ct-y),B(E,Ct,!0),B(V,Qe),B(A,Qt,!0)},ce=()=>{!n()||!s(T)||!s(S)||B(I,-y)},le=()=>{if(!n()||!s(T)||!s(S))return;B(A,y);let ke=n().getBoundingClientRect(),X=s(S).getBoundingClientRect(),Te=X.height,Ke=s(T).clientHeight,st=(Te-Ke)/2+Ke,pt=X.left+p()-ke.left-s(T).clientWidth,bt=2,Ct=pt-y;Ct<8&&(Ct=8);let Qt=X.top+f()-ke.top+st,Zt=bt-st/2,Yt=bt-y;B(E,Ct,!0),B(V,Qt),B(I,Zt),B(A,Yt)},we=()=>{!n()||!s(T)||!s(S)||B(A,-y)},Ve=()=>{switch($()){case"top":G();break;case"bottom":ce();break;case"left":le();break;default:we()}},ve=()=>{try{if(!n()||!s(S))return;Ve(),a(!0)}catch(ke){ne({message:String(ke)})}},ae=()=>{a(!1)},Le=()=>{s(T)&&(k||(k=window.setTimeout(ve,K.controls.hideTimeoutTooltips)),a()&&ve())},te=()=>{ae(),window.clearTimeout(k),k=void 0},N=(ke,X,Te)=>{let Ke="";switch($()){case"top":Ke=`transform: translate(${ke}px, ${X}px);`;break;case"bottom":Ke=`transform: translate(${ke}px, ${X}px); top: auto; bottom: 100%;`;break;case"left":Ke=`transform: translate(${ke}px, ${X}px); left: 0; right: auto;`;break;default:Ke=`transform: translate(${ke}px, ${X}px);`}return Ke+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ke+=` opacity: ${Te?1:0}; visibility: ${Te?"visible":"hidden"}`,Ke},Be=(ke,X)=>{let Te="";switch($()){case"top":Te=`transform: translate(${ke}px, ${X}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Te=`transform: translate(${ke}px, ${X}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Te=`transform: translate(${ke}px, ${X}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Te=`transform: translate(${ke}px, ${X}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Te},ye=h(()=>N(s(E),s(V),a())),ge=h(()=>Be(s(A),s(I)));Bt(Ve),Mn(()=>window.clearTimeout(k));var de=Y$(),ue=fe(de);let xe;ue.__mousemove=Le,ue.__mousedown=te,ue.__mouseup=function(...ke){var X;(X=e.disableMouseupTooltipShow?void 0:Le)==null||X.apply(this,ke)};var Z=_(ue);be(Z,()=>{var ke;return(ke=e.children)!=null?ke:oe}),g(ue),nt(ue,ke=>B(S,ke),()=>s(S));var qe=P(ue,2);{var Je=ke=>{Yf(ke,{children:(X,Te)=>{var Ke=G$(),st=_(Ke),pt=_(st,!0);g(st);var bt=P(st,2);g(Ke),nt(Ke,Ct=>B(T,Ct),()=>s(T)),O(()=>{at(Ke,s(ye)),he(pt,d()),at(bt,s(ge))}),b(X,Ke)},$$slots:{default:!0}})};L(qe,ke=>{d()&&!l()&&ke(Je)})}O(ke=>xe=J(ue,1,"tooltip-wrapper svelte-hxlyne",null,xe,ke),[()=>({"full-width":v()})]),St("mouseenter",ue,Le),St("mouseleave",ue,te),b(t,de),H(),o()}dt(["mousemove","mousedown","mouseup"]);var E1=t=>{t.stopPropagation()},Z$=M("<div><!></div>"),X$={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 Bo(t,e){D(e,!0),z(t,X$);let[i,o]=De(),n=()=>C(p,"$isGraphOpened$",i),r=()=>C(a,"$isMobile",i),l=Ee(),d=fo(),a=l.ui.isMobile,p=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),u=m(e,"disabled",3,!1),$=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),y=m(e,"width",15,void 0),S=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),k=m(e,"tooltipActive",3,!1),A=m(e,"tooltipPlacement",3,"top"),I=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),V=m(e,"onTooltipVisibilityChange",3,bu.noop),K=m(e,"initialTranslateXPx",3,0),W=m(e,"initialTranslateYPx",19,()=>-18),U=m(e,"mouseEnter",3,bu.noop),Y=m(e,"mouseLeave",3,bu.noop),ne=h(()=>u()?n()?f("tooltip_disabled_when_graph_on"):I():T());var G=Z$();G.__pointerdown=[E1],G.__click=[E1];var ce=_(G);{var le=Ve=>{xa(Ve,{get content(){return s(ne)},get translateX(){return K()},get translateY(){return W()},get isFullWidthWrapper(){return S()},get active(){return k()},get placement(){return A()},get onVisibilityChange(){return V()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(ve,ae)=>{var Le=Ue(),te=fe(Le);be(te,()=>{var N;return(N=e.children)!=null?N:oe}),b(ve,Le)},$$slots:{default:!0}})},we=Ve=>{var ve=Ue(),ae=fe(ve);be(ae,()=>{var Le;return(Le=e.children)!=null?Le:oe}),b(Ve,ve)};L(ce,Ve=>{$()&&s(ne)&&!r()?Ve(le):Ve(we,!1)})}g(G),nt(G,Ve=>w(Ve),()=>w()),O(()=>{var Ve;J(G,1,`btn-container ${(Ve=v())!=null?Ve:""}`,"svelte-p9r045"),Ne(G,"aria-hidden",E()||null)}),St("mouseenter",G,function(...Ve){var ve;(ve=U())==null||ve.apply(this,Ve)}),St("mouseleave",G,function(...Ve){var ve;(ve=Y())==null||ve.apply(this,Ve)}),is(G,"clientWidth",y),b(t,G),H(),o()}dt(["pointerdown","click"]);var J$=Se('<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 Ld(t,e){"use strict";var i=J$(),o=_(i),n=P(o);g(i),O(()=>{Ne(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ne(o,"fill-opacity",e.completed?1:.24),Ne(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var e2=M("<div><!></div>"),t2={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 jf(t,e){D(e,!0),z(t,t2);let o=Ee().ui.t,n=j(0),r=h(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Bo(t,{get tooltipContent(){return s(r)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return s(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=e2();let p;var f=_(a);let v=h(()=>!!e.videoEpisode.completed);Ld(f,{get completed(){return s(v)}}),g(a),O(u=>{p=J(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),at(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),is(a,"clientWidth",u=>B(n,u)),b(l,a)},$$slots:{default:!0}}),H()}var i2=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),o2=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),n2={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
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Hs(t,e){W(t,o2);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",r=g(()=>n(i(),o()));var l=i2();O(()=>{var d;De(l,"data-value",s(r)),De(l,"data-testid",`volume-${(d=s(r))!=null?d:""}-icon`)}),b(t,l)}var Io=require("@vkontakte/videoplayer-shared/es2018");var Cu=require("@vkontakte/videoplayer-shared/es2018");var M1=require("@vkontakte/videoplayer-shared/es2018");var n2=M('<div class="overlay"><!></div>');function Xf(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C(l,"$overlayContainer$",i),l=Ee().ui.overlayContainer$,d=Y(void 0),a=u=>{!u||!s(d)||!u.contains(s(d))||u.removeChild(s(d))},p=u=>{!u||!s(d)||u.contains(s(d))||u.appendChild(s(d))};Ue(()=>{p(n())}),Ot(()=>(p(n()),()=>a(n())));var f=n2(),v=_(f);be(v,()=>{var u;return(u=e.children)!=null?u:se}),h(f),it(f,u=>B(d,u),()=>s(d)),b(t,f),H(),o()}var r2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),s2=M("<div><!></div> <!>",1),a2={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 Ca(t,e){D(e,!0),W(t,a2);let[i,o]=Oe(),n=()=>C(Q,"$overlayContainer$",i),r=()=>C(U,"$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),$=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,M1.noop),y=5,S=Y(void 0),T=Y(void 0),k,A=Y(0),I=Y(0),E=Y(0),R=Y(0),G=kt(),q=Ee(),U=q.ui.playerSize,Q=q.ui.overlayContainer$;Ue(()=>{St(()=>{w()(a())})});let J=q.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!s(T)||!s(S))return;B(I,y);let Pe=n().getBoundingClientRect(),X=s(S).getBoundingClientRect(),Te=X.width,Ke=s(T).clientWidth,nt=r().width,mt=(Te-Ke)/2,vt=X.left+p()-Pe.left,Tt=vt+mt,Qe=X.top+f()-Pe.top,zt=Ke/2-y,Jt=Tt<8,Zt=Tt+Ke>nt-8;Jt&&(Tt=8,zt=vt+X.width/2-2.5*y),Zt&&(Tt=nt-8-Ke,zt=X.left-Pe.left+X.width/2-Tt-y),B(E,Tt,!0),B(R,Qe),B(A,zt,!0)},ce=()=>{!n()||!s(T)||!s(S)||B(I,-y)},le=()=>{if(!n()||!s(T)||!s(S))return;B(A,y);let Pe=n().getBoundingClientRect(),X=s(S).getBoundingClientRect(),Te=X.height,Ke=s(T).clientHeight,nt=(Te-Ke)/2+Ke,mt=X.left+p()-Pe.left-s(T).clientWidth,vt=2,Tt=mt-y;Tt<8&&(Tt=8);let zt=X.top+f()-Pe.top+nt,Jt=vt-nt/2,Zt=vt-y;B(E,Tt,!0),B(R,zt),B(I,Jt),B(A,Zt)},ye=()=>{!n()||!s(T)||!s(S)||B(A,-y)},ke=()=>{switch($()){case"top":j();break;case"bottom":ce();break;case"left":le();break;default:ye()}},me=()=>{try{if(!n()||!s(S))return;ke(),a(!0)}catch(Pe){J({message:String(Pe)})}},ae=()=>{a(!1)},Ve=()=>{s(T)&&(k||(k=window.setTimeout(me,G.controls.hideTimeoutTooltips)),a()&&me())},re=()=>{ae(),window.clearTimeout(k),k=void 0},N=(Pe,X,Te)=>{let Ke="";switch($()){case"top":Ke=`transform: translate(${Pe}px, ${X}px);`;break;case"bottom":Ke=`transform: translate(${Pe}px, ${X}px); top: auto; bottom: 100%;`;break;case"left":Ke=`transform: translate(${Pe}px, ${X}px); left: 0; right: auto;`;break;default:Ke=`transform: translate(${Pe}px, ${X}px);`}return Ke+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ke+=` opacity: ${Te?1:0}; visibility: ${Te?"visible":"hidden"}`,Ke},He=(Pe,X)=>{let Te="";switch($()){case"top":Te=`transform: translate(${Pe}px, ${X}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Te=`transform: translate(${Pe}px, ${X}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Te=`transform: translate(${Pe}px, ${X}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Te=`transform: translate(${Pe}px, ${X}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Te},_e=g(()=>N(s(E),s(R),a())),ge=g(()=>He(s(A),s(I)));Ot(ke),Vn(()=>window.clearTimeout(k));var de=s2(),ue=fe(de);let xe;ue.__mousemove=Ve,ue.__mousedown=re,ue.__mouseup=function(...Pe){var X;(X=e.disableMouseupTooltipShow?void 0:Ve)==null||X.apply(this,Pe)};var Z=_(ue);be(Z,()=>{var Pe;return(Pe=e.children)!=null?Pe:se}),h(ue),it(ue,Pe=>B(S,Pe),()=>s(S));var qe=P(ue,2);{var Je=Pe=>{Xf(Pe,{children:(X,Te)=>{var Ke=r2(),nt=_(Ke),mt=_(nt,!0);h(nt);var vt=P(nt,2);h(Ke),it(Ke,Tt=>B(T,Tt),()=>s(T)),O(()=>{at(Ke,s(_e)),he(mt,d()),at(vt,s(ge))}),b(X,Ke)},$$slots:{default:!0}})};L(qe,Pe=>{d()&&!l()&&Pe(Je)})}O(Pe=>xe=te(ue,1,"tooltip-wrapper svelte-hxlyne",null,xe,Pe),[()=>({"full-width":v()})]),Et("mouseenter",ue,Ve),Et("mouseleave",ue,re),b(t,de),H(),o()}dt(["mousemove","mousedown","mouseup"]);var L1=t=>{t.stopPropagation()},l2=M("<div><!></div>"),d2={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 Wo(t,e){D(e,!0),W(t,d2);let[i,o]=Oe(),n=()=>C(p,"$isGraphOpened$",i),r=()=>C(a,"$isMobile",i),l=Ee(),d=vo(),a=l.ui.isMobile,p=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),u=m(e,"disabled",3,!1),$=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),y=m(e,"width",15,void 0),S=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),k=m(e,"tooltipActive",3,!1),A=m(e,"tooltipPlacement",3,"top"),I=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),R=m(e,"onTooltipVisibilityChange",3,Cu.noop),G=m(e,"initialTranslateXPx",3,0),q=m(e,"initialTranslateYPx",19,()=>-18),U=m(e,"mouseEnter",3,Cu.noop),Q=m(e,"mouseLeave",3,Cu.noop),J=g(()=>u()?n()?f("tooltip_disabled_when_graph_on"):I():T());var j=l2();j.__pointerdown=[L1],j.__click=[L1];var ce=_(j);{var le=ke=>{Ca(ke,{get content(){return s(J)},get translateX(){return G()},get translateY(){return q()},get isFullWidthWrapper(){return S()},get active(){return k()},get placement(){return A()},get onVisibilityChange(){return R()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(me,ae)=>{var Ve=Fe(),re=fe(Ve);be(re,()=>{var N;return(N=e.children)!=null?N:se}),b(me,Ve)},$$slots:{default:!0}})},ye=ke=>{var me=Fe(),ae=fe(me);be(ae,()=>{var Ve;return(Ve=e.children)!=null?Ve:se}),b(ke,me)};L(ce,ke=>{$()&&s(J)&&!r()?ke(le):ke(ye,!1)})}h(j),it(j,ke=>w(ke),()=>w()),O(()=>{var ke;te(j,1,`btn-container ${(ke=v())!=null?ke:""}`,"svelte-p9r045"),De(j,"aria-hidden",E()||null)}),Et("mouseenter",j,function(...ke){var me;(me=U())==null||me.apply(this,ke)}),Et("mouseleave",j,function(...ke){var me;(me=Q())==null||me.apply(this,ke)}),ts(j,"clientWidth",y),b(t,j),H(),o()}dt(["pointerdown","click"]);var c2=Se('<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=c2(),o=_(i),n=P(o);h(i),O(()=>{De(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),De(o,"fill-opacity",e.completed?1:.24),De(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var u2=M("<div><!></div>"),p2={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 Jf(t,e){D(e,!0),W(t,p2);let o=Ee().ui.t,n=Y(0),r=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Wo(t,{get tooltipContent(){return s(r)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return s(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=u2();let p;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);Rd(f,{get completed(){return s(v)}}),h(a),O(u=>{p=te(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),at(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),ts(a,"clientWidth",u=>B(n,u)),b(l,a)},$$slots:{default:!0}}),H()}var f2=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),m2=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),v2={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,
166
166
  .video-episode-loaded.svelte-1u6kv8l,
167
- .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Zf(t,e){z(t,n2);let i=m(e,"videoEpisodes",19,()=>[]);var o=o2();xi(o,21,i,n=>n.from,(n,r)=>{var l=i2();let d;var a=_(l),p=_(a),f=P(p,2);let v;g(a),g(l),O((u,$)=>{d=J(l,1,"video-episode svelte-1u6kv8l",null,d,u),at(l,`left: ${s(r).from}%; width: ${s(r).width}%`),at(p,`transform: translateX(${s(r).loadedWidth/s(r).width*100}%)`),v=J(f,1,"video-episode-filled svelte-1u6kv8l",null,v,$),at(f,`transform: translateX(${s(r).filledWidth/s(r).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,l)}),g(o),b(t,o)}function r2(t,e,i,o,n,r,l){if(t.preventDefault(),e()&&B(i,e().getBoundingClientRect(),!0),o()||s(n)||!e())return;B(n,!0);let d=r(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function s2(t,e,i,o,n,r,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),p=o(t.clientX);n()(a,p,s(r).width),s(l)&&d()(a)}function a2(t,e,i,o,n){if(t.preventDefault(),e()||!s(i))return;B(i,!1);let r=o(t.clientX,t.clientY);n()(r)}function l2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function d2(t,e,i,o,n,r){let l=e(t.clientX,t.clientY);i()&&o()(l),B(n,!1),r()(l)}var c2=M("<div></div>"),u2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),p2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),f2={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
+ .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 em(t,e){W(t,v2);let i=m(e,"videoEpisodes",19,()=>[]);var o=m2();Si(o,21,i,n=>n.from,(n,r)=>{var l=f2();let d;var a=_(l),p=_(a),f=P(p,2);let v;h(a),h(l),O((u,$)=>{d=te(l,1,"video-episode svelte-1u6kv8l",null,d,u),at(l,`left: ${s(r).from}%; width: ${s(r).width}%`),at(p,`transform: translateX(${s(r).loadedWidth/s(r).width*100}%)`),v=te(f,1,"video-episode-filled svelte-1u6kv8l",null,v,$),at(f,`transform: translateX(${s(r).filledWidth/s(r).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,l)}),h(o),b(t,o)}function g2(t,e,i,o,n,r,l){if(t.preventDefault(),e()&&B(i,e().getBoundingClientRect(),!0),o()||s(n)||!e())return;B(n,!0);let d=r(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function h2(t,e,i,o,n,r,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),p=o(t.clientX);n()(a,p,s(r).width),s(l)&&d()(a)}function _2(t,e,i,o,n){if(t.preventDefault(),e()||!s(i))return;B(i,!1);let r=o(t.clientX,t.clientY);n()(r)}function b2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function $2(t,e,i,o,n,r){let l=e(t.clientX,t.clientY);i()&&o()(l),B(n,!1),r()(l)}var y2=M("<div></div>"),x2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),w2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),C2={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 {
168
168
  /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
169
169
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
170
170
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
171
171
  .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
172
- .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function wa(t,e){D(e,!0),z(t,f2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),r=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),$=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,So.noop),S=m(e,"onHandleMove",3,So.noop),T=m(e,"onPointerUp",3,So.noop),k=m(e,"onPointerEnter",3,So.noop),A=m(e,"onPointerMove",3,So.noop),I=m(e,"onPointerLeave",3,So.noop),E=m(e,"onMouseEnter",3,So.noop),V=m(e,"onMouseLeave",3,So.noop),K=m(e,"onWheelUp",3,So.noop),W=m(e,"onWheelDown",3,So.noop),U=m(e,"onWheelLeft",3,So.noop),Y=m(e,"onWheelRight",3,So.noop),ne=m(e,"onDisabledClick",3,So.noop),G=m(e,"loadedProgress",3,0),ce=m(e,"filledProgress",3,0),le=m(e,"handleProgress",3,0),we=m(e,"ariaLabel",3,""),Ve=m(e,"ariaValueMin",3,void 0),ve=m(e,"ariaValueMax",3,void 0),ae=m(e,"ariaValueNow",3,void 0),Le=m(e,"ariaValueText",3,""),te=m(e,"onContextMenu",3,So.noop),N=zt(),Be=j(void 0),ye=j(!1),ge=h(()=>{var se;return(se=ve())!=null?se:0}),de=h(()=>{var se;return(0,So.isNonNullable)(f())&&((se=f()[f().length-1])==null?void 0:se.time)<s(ge)}),ue=h(()=>(0,So.isNonNullable)(f())&&f().length&&s(de)&&s(ge)?Ke(G()*100,ce()*100):[]);function xe(se){if(se.preventDefault(),i()&&B(Be,i().getBoundingClientRect(),!0),$())return;let Oe=X(se.clientX,se.clientY),ze=Te(se.clientX);k()(Oe,ze,s(Be).width)}function Z(se){se.preventDefault(),!$()&&I()()}function qe(){E()()}function Je(){V()()}function ke(se){$()||v()&&(se.preventDefault(),se.deltaY<0?K()():se.deltaY>0?W()():se.deltaX>0?Y()():U()())}function X(se,Oe){return l()?Math.max(0,Math.min(1,(s(Be).height-(Oe-s(Be).top))/s(Be).height)):Math.min(Math.max(se-s(Be).x,0),s(Be).width)/s(Be).width}function Te(se){return Math.min(Math.max(se-s(Be).x,0),s(Be).width)}function Ke(se,Oe){let ze=N.features.episodesClustering&&!u()?N.episodeMinWidthPc:0,Ae=[],je=f()[0].time/s(ge)*100,Re=0,it=0;for(let et=1;et<f().length;et++)Re=f()[et].time/s(ge)*100,Re-je>ze&&(Ae.push({from:je,width:Math.max(0,Re-je),loadedWidth:Math.max(0,Math.min(Re,se)-je),filledWidth:Math.max(0,Math.min(Re,Oe)-je),interactive:f()[et-1].interactive,completed:f()[et-1].completed}),je=f()[et].time/s(ge)*100,it++);let At={from:je,width:Math.max(0,100-je),loadedWidth:Math.max(0,Math.min(se,100)-je),filledWidth:Math.max(0,Math.min(Oe,100)-je),interactive:f()[it].interactive,completed:f()[it].completed};100-je<ze?(it-=1,Ae[it].width+=100-je,Ae[it].loadedWidth+=Math.max(0,Math.min(se,100)-je),Ae[it].filledWidth+=Math.max(0,Math.min(Oe,100)-je)):Ae[it]=At;let Vt=f()[0].time;if(Vt!==0){let et=Vt/s(ge)*100;Ae.unshift({from:0,width:et,loadedWidth:Math.min(et,se),filledWidth:Math.min(et,Oe)})}return Ae}function st(se){return Math.max(0,Math.min(100,se*100))}var pt=p2(),bt=fe(pt);{var Ct=se=>{var Oe=c2();let ze;xi(Oe,21,()=>s(ue),Ae=>Ae.from,(Ae,je)=>{var Re=Ue(),it=fe(Re);{var At=Vt=>{jf(Vt,{get videoEpisode(){return s(je)},get disabled(){return $()}})};L(it,Vt=>{s(je).interactive&&Vt(At)})}b(Ae,Re)}),g(Oe),O(Ae=>ze=J(Oe,1,"interactive-icons svelte-1tpemng",null,ze,Ae),[()=>({mobile:a(),hidden:a()&&!s(ye)})]),b(se,Oe)};L(bt,se=>{u()&&se(Ct)})}var Qe=P(bt,2);let Qt;Qe.__pointerdown=[r2,i,Be,$,ye,X,y],Qe.__pointermove=[s2,$,X,Te,A,Be,ye,S],Qe.__pointerup=[a2,$,ye,X,T],Qe.__click=[l2,$,ne,X],Qe.__contextmenu=[d2,X,$,ne,ye,te];var Zt=_(Qe);{var Yt=se=>{Zf(se,{get videoEpisodes(){return s(ue)},get disabled(){return $()},get isMobile(){return a()}})},Ot=se=>{var Oe=u2(),ze=_(Oe),Ae=P(ze,2);let je;g(Oe),O((Re,it,At)=>{at(ze,Re),je=J(Ae,1,"filled svelte-1tpemng",null,je,it),at(Ae,At)},[()=>`transform: translateX(${st(G())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${st(ce())}%);`]),b(se,Oe)};L(Zt,se=>{s(ue).length?se(Yt):se(Ot,!1)})}var ee=P(Zt,2);let Lt;var me=_(ee);let _e;g(ee),g(Qe),nt(Qe,se=>i(se),()=>i()),O((se,Oe,ze,Ae)=>{var je,Re;Qt=J(Qe,1,`slider ${(je=o())!=null?je:""}`,"svelte-1tpemng",Qt,se),Ne(Qe,"aria-label",we()),Ne(Qe,"aria-valuemin",Ve()),Ne(Qe,"aria-valuemax",ve()),Ne(Qe,"aria-valuenow",ae()),Ne(Qe,"aria-valuetext",Le()),Ne(Qe,"data-testid",(Re=n())!=null?Re:null),Lt=J(ee,1,"handleWrap svelte-1tpemng",null,Lt,Oe),at(ee,ze),_e=J(me,1,"handle svelte-1tpemng",null,_e,Ae)},[()=>({disabled:$(),"slider-dragging":s(ye),hidden:r(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${st(le())}%);`,()=>({"active-live":d()})]),St("pointerenter",Qe,xe),St("pointerleave",Qe,Z),St("mouseenter",Qe,qe),St("mouseleave",Qe,Je),St("wheel",Qe,ke),b(t,pt),H()}dt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var ji=(t,e)=>da[t]>=da[e],I1=(t,e)=>da[t]<da[e],Os=(t,e)=>da[t]<=da[e],k1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var m2=M("<div><!></div>"),v2=M("<div><!> <!></div>"),g2={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 Xf(t,e){var ke,X;D(e,!0),z(t,g2);let[i,o]=De(),n=()=>C(k,"$isAudioAvailable$",i),r=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),a=Ee(),p=zt(),f=a.state.volume$,v=a.state.muted$,{setVolume:u,startVolumeChanging:$,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,S=(ke=a.callbacks)==null?void 0:ke.onAudioDoesNotExistHint,T=(X=a.callbacks)==null?void 0:X.onAudioDisabledHint,k=a.state.isAudioAvailable$,A=a.state.isAudioDisabled,I=a.ui.t,E=j(!1),V,K=h(()=>e.isAds||n()),W=h(()=>!s(K)||r()||l()===0),U=h(()=>Os(d(),"s")),Y=h(()=>s(U)?"":s(W)?!n()||A?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),ne=h(()=>s(W)?I("tooltip_volume"):I("tooltip_volume_muted")),G=h(()=>s(W)?0:l()),ce=!1,le=h(()=>e.isAds?!1:A?!T:n()?!1:!S);function we(Te){$(),u(Te)}function Ve(){gu(a,l(),p.controls.volumeStepWheel)}function ve(){hu(a,l(),p.controls.volumeStepWheel)}function ae(Te){u(Te)}function Le(Te){u(Te),w()}function te(){ce=!0}function N(){ce=!1,ge()}function Be(){clearTimeout(V),B(E,!0)}function ye(){ge()}function ge(){V=window.setTimeout(()=>{ce||B(E,!1)},p.controls.volumeBarTimeout)}function de(Te){Te.preventDefault(),Te.deltaY<0?Ve():Te.deltaY>0&&ve()}var ue=v2();let xe;var Z=_(ue);xa(Z,{get content(){return s(Y)},translateY:-18,children:(Te,Ke)=>{let st=h(()=>s(U)?"btn-volume-vertical":"btn-volume-horizontal");Nt(Te,{className:"btn-full-opacity",get disabled(){return s(le)},get testId(){return s(st)},get ariaLabel(){return s(ne)},get click(){return e.click},get ariaKeyShortCut(){return os.KeyM},role:"button",children:(pt,bt)=>{Bs(pt,{get volume(){return l()},get muted(){return s(W)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var qe=P(Z,2);{var Je=Te=>{var Ke=m2();let st;var pt=_(Ke);let bt=h(()=>s(U)?"volumeBar-slider-vertical":""),Ct=h(()=>s(U)&&!s(E)),Qe=h(()=>s(U)?te:Vd.noop),Qt=h(()=>s(U)?N:Vd.noop),Zt=h(()=>Math.round(s(G)*100)),Yt=h(()=>`${Math.round(s(G)*100)}%`),Ot=h(()=>s(U)?"volume-slider-vertical":"volume-slider");wa(pt,{get className(){return s(bt)},get isHidden(){return s(Ct)},get isVertical(){return s(U)},withWheelHandler:!0,onWheelUp:Ve,onWheelDown:ve,onPointerDown:we,onHandleMove:ae,onPointerUp:Le,get onPointerEnter(){return s(Qe)},get onPointerLeave(){return s(Qt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return s(Zt)},get ariaValueText(){return s(Yt)},get filledProgress(){return s(G)},get handleProgress(){return s(G)},get testId(){return s(Ot)}}),g(Ke),O(ee=>st=J(Ke,1,"volumeBar svelte-1auih1j",null,st,ee),[()=>({"volumeBar-vertical":s(U)})]),b(Te,Ke)};L(qe,Te=>{s(K)&&Te(Je)})}g(ue),O(Te=>xe=J(ue,1,"volumeBar-container svelte-1auih1j",null,xe,Te),[()=>({vertical:s(U)})]),St("mouseenter",ue,function(...Te){var Ke;(Ke=s(U)?Be:Vd.noop)==null||Ke.apply(this,Te)}),St("mouseleave",ue,function(...Te){var Ke;(Ke=s(U)?ye:Vd.noop)==null||Ke.apply(this,Te)}),St("wheel",ue,de),b(t,ue),H(),o()}var P1=require("@vkontakte/videoplayer-shared/es2018");var h2=Se('<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 Jf(t,e){let i=Me(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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var _2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function em(t,e){z(t,_2);let i=m(e,"isFullscreen",8,!1),o=Pr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Jf(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function Rd(t,e){D(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,P1.noop),n=Ee(),r=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=h(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Nt(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:p=>{let f=Vs(p);r.set(f),o()()},get ariaKeyShortCut(){return os.KeyF},role:"button",children:(p,f)=>{em(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var b2=Se('<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 tm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=b2();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var $2=Se('<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 im(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=$2();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(4),g(o),b(t,o)}var y2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
172
+ .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function Sa(t,e){D(e,!0),W(t,C2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),r=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),$=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,Io.noop),S=m(e,"onHandleMove",3,Io.noop),T=m(e,"onPointerUp",3,Io.noop),k=m(e,"onPointerEnter",3,Io.noop),A=m(e,"onPointerMove",3,Io.noop),I=m(e,"onPointerLeave",3,Io.noop),E=m(e,"onMouseEnter",3,Io.noop),R=m(e,"onMouseLeave",3,Io.noop),G=m(e,"onWheelUp",3,Io.noop),q=m(e,"onWheelDown",3,Io.noop),U=m(e,"onWheelLeft",3,Io.noop),Q=m(e,"onWheelRight",3,Io.noop),J=m(e,"onDisabledClick",3,Io.noop),j=m(e,"loadedProgress",3,0),ce=m(e,"filledProgress",3,0),le=m(e,"handleProgress",3,0),ye=m(e,"ariaLabel",3,""),ke=m(e,"ariaValueMin",3,void 0),me=m(e,"ariaValueMax",3,void 0),ae=m(e,"ariaValueNow",3,void 0),Ve=m(e,"ariaValueText",3,""),re=m(e,"onContextMenu",3,Io.noop),N=kt(),He=Y(void 0),_e=Y(!1),ge=g(()=>{var ne;return(ne=me())!=null?ne:0}),de=g(()=>{var ne;return(0,Io.isNonNullable)(f())&&((ne=f()[f().length-1])==null?void 0:ne.time)<s(ge)}),ue=g(()=>(0,Io.isNonNullable)(f())&&f().length&&s(de)&&s(ge)?Ke(j()*100,ce()*100):[]);function xe(ne){if(ne.preventDefault(),i()&&B(He,i().getBoundingClientRect(),!0),$())return;let Be=X(ne.clientX,ne.clientY),ze=Te(ne.clientX);k()(Be,ze,s(He).width)}function Z(ne){ne.preventDefault(),!$()&&I()()}function qe(){E()()}function Je(){R()()}function Pe(ne){$()||v()&&(ne.preventDefault(),ne.deltaY<0?G()():ne.deltaY>0?q()():ne.deltaX>0?Q()():U()())}function X(ne,Be){return l()?Math.max(0,Math.min(1,(s(He).height-(Be-s(He).top))/s(He).height)):Math.min(Math.max(ne-s(He).x,0),s(He).width)/s(He).width}function Te(ne){return Math.min(Math.max(ne-s(He).x,0),s(He).width)}function Ke(ne,Be){let ze=N.features.episodesClustering&&!u()?N.episodeMinWidthPc:0,Me=[],We=f()[0].time/s(ge)*100,Re=0,tt=0;for(let et=1;et<f().length;et++)Re=f()[et].time/s(ge)*100,Re-We>ze&&(Me.push({from:We,width:Math.max(0,Re-We),loadedWidth:Math.max(0,Math.min(Re,ne)-We),filledWidth:Math.max(0,Math.min(Re,Be)-We),interactive:f()[et-1].interactive,completed:f()[et-1].completed}),We=f()[et].time/s(ge)*100,tt++);let Mt={from:We,width:Math.max(0,100-We),loadedWidth:Math.max(0,Math.min(ne,100)-We),filledWidth:Math.max(0,Math.min(Be,100)-We),interactive:f()[tt].interactive,completed:f()[tt].completed};100-We<ze?(tt-=1,Me[tt].width+=100-We,Me[tt].loadedWidth+=Math.max(0,Math.min(ne,100)-We),Me[tt].filledWidth+=Math.max(0,Math.min(Be,100)-We)):Me[tt]=Mt;let Qt=f()[0].time;if(Qt!==0){let et=Qt/s(ge)*100;Me.unshift({from:0,width:et,loadedWidth:Math.min(et,ne),filledWidth:Math.min(et,Be)})}return Me}function nt(ne){return Math.max(0,Math.min(100,ne*100))}var mt=w2(),vt=fe(mt);{var Tt=ne=>{var Be=y2();let ze;Si(Be,21,()=>s(ue),Me=>Me.from,(Me,We)=>{var Re=Fe(),tt=fe(Re);{var Mt=Qt=>{Jf(Qt,{get videoEpisode(){return s(We)},get disabled(){return $()}})};L(tt,Qt=>{s(We).interactive&&Qt(Mt)})}b(Me,Re)}),h(Be),O(Me=>ze=te(Be,1,"interactive-icons svelte-1tpemng",null,ze,Me),[()=>({mobile:a(),hidden:a()&&!s(_e)})]),b(ne,Be)};L(vt,ne=>{u()&&ne(Tt)})}var Qe=P(vt,2);let zt;Qe.__pointerdown=[g2,i,He,$,_e,X,y],Qe.__pointermove=[h2,$,X,Te,A,He,_e,S],Qe.__pointerup=[_2,$,_e,X,T],Qe.__click=[b2,$,J,X],Qe.__contextmenu=[$2,X,$,J,_e,re];var Jt=_(Qe);{var Zt=ne=>{em(ne,{get videoEpisodes(){return s(ue)},get disabled(){return $()},get isMobile(){return a()}})},Wt=ne=>{var Be=x2(),ze=_(Be),Me=P(ze,2);let We;h(Be),O((Re,tt,Mt)=>{at(ze,Re),We=te(Me,1,"filled svelte-1tpemng",null,We,tt),at(Me,Mt)},[()=>`transform: translateX(${nt(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${nt(ce())}%);`]),b(ne,Be)};L(Jt,ne=>{s(ue).length?ne(Zt):ne(Wt,!1)})}var ie=P(Jt,2);let Nt;var we=_(ie);let ve;h(ie),h(Qe),it(Qe,ne=>i(ne),()=>i()),O((ne,Be,ze,Me)=>{var We,Re;zt=te(Qe,1,`slider ${(We=o())!=null?We:""}`,"svelte-1tpemng",zt,ne),De(Qe,"aria-label",ye()),De(Qe,"aria-valuemin",ke()),De(Qe,"aria-valuemax",me()),De(Qe,"aria-valuenow",ae()),De(Qe,"aria-valuetext",Ve()),De(Qe,"data-testid",(Re=n())!=null?Re:null),Nt=te(ie,1,"handleWrap svelte-1tpemng",null,Nt,Be),at(ie,ze),ve=te(we,1,"handle svelte-1tpemng",null,ve,Me)},[()=>({disabled:$(),"slider-dragging":s(_e),hidden:r(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${nt(le())}%);`,()=>({"active-live":d()})]),Et("pointerenter",Qe,xe),Et("pointerleave",Qe,Z),Et("mouseenter",Qe,qe),Et("mouseleave",Qe,Je),Et("wheel",Qe,Pe),b(t,mt),H()}dt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Xi=(t,e)=>ua[t]>=ua[e],V1=(t,e)=>ua[t]<ua[e],Fs=(t,e)=>ua[t]<=ua[e],R1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var S2=M("<div><!></div>"),T2=M("<div><!> <!></div>"),E2={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 tm(t,e){var Pe,X;D(e,!0),W(t,E2);let[i,o]=Oe(),n=()=>C(k,"$isAudioAvailable$",i),r=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),a=Ee(),p=kt(),f=a.state.volume$,v=a.state.muted$,{setVolume:u,startVolumeChanging:$,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,S=(Pe=a.callbacks)==null?void 0:Pe.onAudioDoesNotExistHint,T=(X=a.callbacks)==null?void 0:X.onAudioDisabledHint,k=a.state.isAudioAvailable$,A=a.state.isAudioDisabled,I=a.ui.t,E=Y(!1),R,G=g(()=>e.isAds||n()),q=g(()=>!s(G)||r()||l()===0),U=g(()=>Fs(d(),"s")),Q=g(()=>s(U)?"":s(q)?!n()||A?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),J=g(()=>s(q)?I("tooltip_volume"):I("tooltip_volume_muted")),j=g(()=>s(q)?0:l()),ce=!1,le=g(()=>e.isAds?!1:A?!T:n()?!1:!S);function ye(Te){$(),u(Te)}function ke(){yu(a,l(),p.controls.volumeStepWheel)}function me(){xu(a,l(),p.controls.volumeStepWheel)}function ae(Te){u(Te)}function Ve(Te){u(Te),w()}function re(){ce=!0}function N(){ce=!1,ge()}function He(){clearTimeout(R),B(E,!0)}function _e(){ge()}function ge(){R=window.setTimeout(()=>{ce||B(E,!1)},p.controls.volumeBarTimeout)}function de(Te){Te.preventDefault(),Te.deltaY<0?ke():Te.deltaY>0&&me()}var ue=T2();let xe;var Z=_(ue);Ca(Z,{get content(){return s(Q)},translateY:-18,children:(Te,Ke)=>{let nt=g(()=>s(U)?"btn-volume-vertical":"btn-volume-horizontal");Rt(Te,{className:"btn-full-opacity",get disabled(){return s(le)},get testId(){return s(nt)},get ariaLabel(){return s(J)},get click(){return e.click},get ariaKeyShortCut(){return is.KeyM},role:"button",children:(mt,vt)=>{Hs(mt,{get volume(){return l()},get muted(){return s(q)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var qe=P(Z,2);{var Je=Te=>{var Ke=S2();let nt;var mt=_(Ke);let vt=g(()=>s(U)?"volumeBar-slider-vertical":""),Tt=g(()=>s(U)&&!s(E)),Qe=g(()=>s(U)?re:Nd.noop),zt=g(()=>s(U)?N:Nd.noop),Jt=g(()=>Math.round(s(j)*100)),Zt=g(()=>`${Math.round(s(j)*100)}%`),Wt=g(()=>s(U)?"volume-slider-vertical":"volume-slider");Sa(mt,{get className(){return s(vt)},get isHidden(){return s(Tt)},get isVertical(){return s(U)},withWheelHandler:!0,onWheelUp:ke,onWheelDown:me,onPointerDown:ye,onHandleMove:ae,onPointerUp:Ve,get onPointerEnter(){return s(Qe)},get onPointerLeave(){return s(zt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return s(Jt)},get ariaValueText(){return s(Zt)},get filledProgress(){return s(j)},get handleProgress(){return s(j)},get testId(){return s(Wt)}}),h(Ke),O(ie=>nt=te(Ke,1,"volumeBar svelte-1auih1j",null,nt,ie),[()=>({"volumeBar-vertical":s(U)})]),b(Te,Ke)};L(qe,Te=>{s(G)&&Te(Je)})}h(ue),O(Te=>xe=te(ue,1,"volumeBar-container svelte-1auih1j",null,xe,Te),[()=>({vertical:s(U)})]),Et("mouseenter",ue,function(...Te){var Ke;(Ke=s(U)?He:Nd.noop)==null||Ke.apply(this,Te)}),Et("mouseleave",ue,function(...Te){var Ke;(Ke=s(U)?_e:Nd.noop)==null||Ke.apply(this,Te)}),Et("wheel",ue,de),b(t,ue),H(),o()}var N1=require("@vkontakte/videoplayer-shared/es2018");var I2=Se('<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 im(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=I2();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var k2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function om(t,e){W(t,k2);let i=m(e,"isFullscreen",8,!1),o=Er(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");im(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function Bd(t,e){D(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,N1.noop),n=Ee(),r=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Rt(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:p=>{let f=Bs(p);r.set(f),o()()},get ariaKeyShortCut(){return is.KeyF},role:"button",children:(p,f)=>{om(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var P2=Se('<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 nm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=P2();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var A2=Se('<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 rm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=A2();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(4),h(o),b(t,o)}var M2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
174
174
  svg[data-testid="vk-video-logo-icon--short"] ._en,
175
175
  svg[data-testid="vk-video-logo-icon"] ._en,
176
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function om(t,e){z(t,y2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",r=21,l=h(()=>!o()&&!i()?91:i()?r:95),d=h(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=h(()=>`0 0 ${s(l)+1} 24`);im(t,{get width(){return s(l)},height:"24",get viewBox(){return s(a)},get"data-testid"(){return s(d)}})}function Nd(t,e){D(e,!0);let[i,o]=De(),n=()=>C($,"$isMobile",i),r=()=>C(u,"$currentGridType$",i),l=()=>C(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),p=m(e,"targetUrl",3,""),f=zt(),v=Ee(),u=v.ui.currentGridType$,$=v.ui.isMobile,w=v.ui.t,y=v.isCyrillicRelatedInterface$,S=h(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=h(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),k=h(()=>(n()||Os(r(),"l"))&&s(T)),A=()=>{var V,K;e.click(),(V=v.callbacks)!=null&&V.onLogoClicked?(K=v.callbacks)==null||K.onLogoClicked():p()&&window.open(p(),"_blank")},I=h(()=>!a()),E=h(()=>s(T)?"btn-vk-video-logo":"btn-vk-logo");Nt(t,{className:"btn-full-opacity",get disabled(){return s(I)},click:A,get testId(){return s(E)},get ariaLabel(){return s(S)},get ref(){return d()},set ref(V){d(V)},children:(V,K)=>{var W=Ue(),U=fe(W);{var Y=G=>{om(G,{get short(){return s(k)},get isCyrillic(){return l()}})},ne=G=>{tm(G,{})};L(U,G=>{s(T)?G(Y):G(ne,!1)})}b(V,W)},$$slots:{default:!0}}),H(),o()}var A1=require("@vkontakte/videoplayer-core/es2018");var nm=require("@vkontakte/videoplayer-core/es2018"),w2=Se('<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>'),C2=Se('<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>'),S2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
176
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function sm(t,e){W(t,M2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",r=21,l=g(()=>!o()&&!i()?91:i()?r:95),d=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=g(()=>`0 0 ${s(l)+1} 24`);rm(t,{get width(){return s(l)},height:"24",get viewBox(){return s(a)},get"data-testid"(){return s(d)}})}function Od(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C($,"$isMobile",i),r=()=>C(u,"$currentGridType$",i),l=()=>C(y,"$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$,$=v.ui.isMobile,w=v.ui.t,y=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"),k=g(()=>(n()||Fs(r(),"l"))&&s(T)),A=()=>{var R,G;e.click(),(R=v.callbacks)!=null&&R.onLogoClicked?(G=v.callbacks)==null||G.onLogoClicked():p()&&window.open(p(),"_blank")},I=g(()=>!a()),E=g(()=>s(T)?"btn-vk-video-logo":"btn-vk-logo");Rt(t,{className:"btn-full-opacity",get disabled(){return s(I)},click:A,get testId(){return s(E)},get ariaLabel(){return s(S)},get ref(){return d()},set ref(R){d(R)},children:(R,G)=>{var q=Fe(),U=fe(q);{var Q=j=>{sm(j,{get short(){return s(k)},get isCyrillic(){return l()}})},J=j=>{nm(j,{})};L(U,j=>{s(T)?j(Q):j(J,!1)})}b(R,q)},$$slots:{default:!0}}),H(),o()}var B1=require("@vkontakte/videoplayer-core/es2018");var am=require("@vkontakte/videoplayer-core/es2018"),V2=Se('<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>'),R2=Se('<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>'),N2={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) {
177
177
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
178
178
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
179
179
  animation-name: svelte-8z1bf5-wave3;}
@@ -221,9 +221,9 @@ Try switching the\xA0quality to\xA0Auto.`},n1=G_;var vs=new Map;vs.set(ul.Interf
221
221
  100% {
222
222
  opacity: 1;
223
223
  }
224
- }`};function rm(t,e){D(e,!0),z(t,S2);let i=m(e,"isMobile",3,!1),o=h(()=>e.iconState===nm.ChromecastState.CONNECTED),n=h(()=>e.iconState===nm.ChromecastState.CONNECTING);var r=Ue(),l=fe(r);{var d=p=>{var f=w2(),v=_(f),u=_(v),$=_(u);Ce(),g(u);var w=P(u);Ce(),g(v);var y=P(v),S=_(y),T=_(S);g(S),Ce(),g(y),g(f),O(()=>{Ne($,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(w,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(T,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)")}),b(p,f)},a=p=>{var f=C2();let v;var u=_(f),$=P(_(u),5);let w;g(u),g(f),O((y,S)=>{v=J(f,0,"svelte-8z1bf5",null,v,y),w=J($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:s(n)}),()=>({hidden:!s(o)})]),b(p,f)};L(l,p=>{i()?p(d):p(a,!1)})}b(t,r),H()}var M1=require("@vkontakte/videoplayer-shared/es2018");function Bd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,M1.noop),l=Ee().ui.t,d=h(()=>e.state===A1.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Nt(t,{get ariaLabel(){return s(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,p)=>{rm(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var T2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),E2={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 sm(t,e){z(t,E2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),r=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(!s(p))return 0;let{width:T}=s(p).getBoundingClientRect(),k=T/2;return S<k?k+l():S>e.containerWidth-k?e.containerWidth-k-d():S}let v=h(()=>f(n()));var u=T2(),$=_(u);let w;var y=_($);be(y,()=>{var S;return(S=e.children)!=null?S:oe}),g($),nt($,S=>B(p,S),()=>s(p)),g(u),nt(u,S=>B(a,S),()=>s(a)),O(S=>{at(u,`transform: translate(${s(v)}px, ${r()}px);`),w=J($,1,"tooltip svelte-5ygsa2",null,w,S),at($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,u)}var $u=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var L1=t=>!!(Math.round(Math.abs(t)/90)%2),V1=t=>Math.abs(t)/90%4===1;var I2=M('<div class="preview svelte-1wqg760"></div>'),k2=M('<div class="time svelte-1wqg760"> </div>'),P2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),A2={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 am(t,e){D(e,!0),z(t,A2);let[i,o]=De(),n=()=>C(w,"$rotateAlpha",i),r=()=>C(y,"$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),$=Ee(),w=$.ui.rotateAlpha,y=$.ui.playerSize,S=j(0),T=j(0),k=j(""),A=j(0),I=j(0),E=j(0),V=j(0),K=h(()=>$u(f(),v(),p())),W=h(()=>L1(n())),U=h(()=>V1(n())),Y=h(ce),ne=h(()=>(s(U)?1:-1)*(s(S)/2-s(T)/2)),G=h(()=>s(ne)*-1);We(()=>{(ue=>{B(S,ue.width,!0),B(T,ue.height,!0)})(we())}),We(()=>{(ue=>{B(k,ue.imgSrc,!0),B(A,ue.imgWidth,!0),B(I,ue.imgHeight,!0),B(E,ue.imgOffsetX,!0),B(V,ue.imgOffsetY,!0)})(Ve(f()))});function ce(){var qe;let ue=a()?l.MOBILE:l.DESKTOP,{isVertical:xe}=le(),Z=30;return(qe=s(K))!=null&&qe.text&&(Z+=16),(xe||s(W))&&(Z+=18,Z+=50),Math.min(Math.max(r().height-Z,0),ue)}function le(){let ue=e.previewThumbsData.frameWidth,xe=e.previewThumbsData.frameHeight,Z=xe>ue;return{width:ue,height:xe,isHorizontal:!Z,isVertical:Z}}function we(){let{height:ue,isHorizontal:xe,isVertical:Z,width:qe}=le();return xe&&(ue=ue/qe*s(Y),qe=s(Y)),Z&&(qe=qe/ue*s(Y),ue=s(Y)),{width:qe,height:ue}}function Ve(ue){let xe;e.previewThumbsData.isUV?xe=Math.floor(v()*ue/e.previewThumbsData.frequency):xe=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ue)));let Z=Math.floor(xe/e.previewThumbsData.countPerImage),qe=Math.floor(xe%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Je=xe%e.previewThumbsData.countPerRow,ke=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ke=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ke++);let X=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(X=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Te=s(S)*X,Ke=s(T)*ke,st=-Je*s(S),pt=-qe*s(T);return{imgSrc:e.previewThumbsData.links[Z],imgWidth:Te,imgHeight:Ke,imgOffsetX:st,imgOffsetY:pt}}var ve=P2();let ae;var Le=_(ve);{var te=ue=>{var xe=I2();O(()=>at(xe,`width: ${s(S)}px; height: ${s(T)}px; background-image: url(${s(k)}); background-size: ${s(A)}px ${s(I)}px; background-position: ${s(E)}px ${s(V)}px;
225
- transform: rotate(${n()}deg) ${s(W)?`translate(${s(ne)}px, ${s(G)}px)`:""};
226
- `)),b(ue,xe)};L(Le,ue=>{s(k)&&ue(te)})}var N=P(Le,2),Be=_(N);{var ye=ue=>{var xe=Ue(),Z=fe(xe);{var qe=ke=>{var X=es();O(Te=>he(X,Te),[()=>F("tooltip_episode_unfinished")]),b(ke,X)},Je=ke=>{var X=es();O(()=>he(X,s(K).text||"")),b(ke,X)};L(Z,ke=>{u()&&s(K).completed===!1?ke(qe):ke(Je,!1)})}b(ue,xe)};L(Be,ue=>{s(K)&&ue(ye)})}g(N);var ge=P(N,2);{var de=ue=>{var xe=k2(),Z=_(xe,!0);g(xe),O(()=>he(Z,d())),b(ue,xe)};L(ge,ue=>{u()||ue(de)})}g(ve),O(ue=>{ae=J(ve,1,"timeline-preview svelte-1wqg760",null,ae,ue),at(ve,`width: ${s(W)?s(T):s(S)}px;`)},[()=>({mobile:a()})]),b(t,ve),H(),o()}var M2=M('<span class="time svelte-1jr6obn"> </span>'),L2=M("<!> <!>",1),V2={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 lm(t,e){var se,Oe,ze,Ae,je;D(e,!0),z(t,V2);let[i,o]=De(),n=()=>C(ne,"$interactiveEpisodes$",i),r=()=>C(E,"$duration$",i),l=()=>C(I,"$position$",i),d=()=>C(le,"$isInteractiveExpectation$",i),a=()=>C(ce,"$isInteractiveTime$",i),p=()=>C(V,"$isLive$",i),f=()=>C(W,"$isMobile",i),v=()=>C(K,"$isActiveLive$",i),u=()=>C(A,"$bufferedProgress$",i),$=()=>C(ve,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=Ee(),k=zt(),A=T.state.bufferedProgress$,I=T.state.positionWithScrubbing$,E=T.state.duration$,V=T.state.isLive$,K=T.state.isActiveLive$,W=T.ui.isMobile,U=k.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,Y=T.actions.internal.getPreviewThumbsData(),ne=T.state.interactiveEpisodes$,G=T.state.isInteractive,ce=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,we=T.actions.internal.correctSeekTimeToInteractive,Ve=(se=T.callbacks)==null?void 0:se.onDisabledTimelineClick,ve=T.ui.controls.disabledControls$,ae=(ze=(Oe=T.callbacks)==null?void 0:Oe.uiInfo)==null?void 0:ze.onTimelineMouseEnter,Le=(je=(Ae=T.callbacks)==null?void 0:Ae.uiInfo)==null?void 0:je.onTimelineMouseLeave,te=T.ui.t,N=k.features.interactiveResponsiveUi,Be=h(()=>G?n():U),ye=h(()=>fn(r())),ge=h(()=>fn(l())),de=h(()=>l()/r()),ue=h(()=>d()||a()),xe=j(!1),Z=j(""),qe=j(0),Je=j(0),ke=j(0),X=h(()=>({containerWidth:s(Je),translateXPx:s(qe),translateYPx:G&&Y?-36:-16,active:s(xe)&&w()&&!s(ue)&&!N,pointer:!k.features.timelinePreview||!Y||p()})),Te=te("aria_timeline"),Ke=h(()=>te("aria_timeline_value",{position:s(ge),duration:s(ye)}));function st(Re){return!we||!G?Re:we(Re*r())/r()}function pt(Re){T.actions.internal.startScrubbing(st(Re))}function bt(Re){a()||T.actions.internal.progressScrubbing(st(Re))}function Ct(Re){T.actions.internal.completeScrubbing(st(Re)),B(xe,!1)}function Qe(Re,it,At){Yt(Re,it,At),B(xe,!0)}function Qt(Re,it,At){Yt(Re,it,At),B(xe,!0)}function Zt(){B(xe,!1)}function Yt(Re,it,At){B(ke,st(Re),!0),B(qe,it,!0),At&&B(Je,At,!0),B(Z,Ot(Re),!0)}function Ot(Re){let it=fn((p()?1-Re:Re)*r());return p()?`-${it}`:it}var ee=L2(),Lt=fe(ee);sm(Lt,ms(()=>s(X),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Re,it)=>{var At=Ue(),Vt=fe(At);{var et=fi=>{am(fi,{get time(){return s(Z)},get isMobile(){return f()},get videoEpisodes(){return s(Be)},get previewThumbsData(){return Y},get progress(){return s(ke)},get duration(){return r()},get isInteractive(){return G}})},ni=fi=>{var lt=M2(),ei=_(lt,!0);g(lt),O(()=>he(ei,s(Z))),b(fi,lt)};L(Vt,fi=>{k.features.timelinePreview&&Y&&!p()?fi(et):fi(ni,!1)})}b(Re,At)},$$slots:{default:!0}}));var me=P(Lt,2);let _e=h(()=>$().has("TIMELINE"));wa(me,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Te},ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return l()},get ariaValueText(){return s(Ke)},get loadedProgress(){return u()},get filledProgress(){return s(de)},get handleProgress(){return s(de)},get videoEpisodes(){return s(Be)},onPointerDown:pt,onHandleMove:bt,onPointerMove:Qt,onPointerUp:Ct,onPointerEnter:Qe,onPointerLeave:Zt,get onMouseEnter(){return ae},get onMouseLeave(){return Le},get onDisabledClick(){return Ve},get isInteractive(){return G},get disabled(){return s(_e)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:Ct,get ref(){return S()},set ref(Re){S(Re)}}),b(t,ee),H(),o()}var R2={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 Od(t,e){D(e,!0),z(t,R2);let[i,o]=De(),n=()=>C(a,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ee(),a=d.ui.isMobile,p=d.ui.t,f=h(()=>fn(l())),v=h(()=>fn(r())),u=h(()=>r()/l()),$=h(()=>p("aria_timeline_value",{position:s(v),duration:s(f)})),w=h(()=>Math.round(s(u)*100));wa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return s(w)},get ariaValueText(){return s($)},get filledProgress(){return s(u)},hideHandel:!0,get squareBorders(){return n()}}),H(),o()}var N2=M("<div><!></div>"),B2=M("<div></div>"),O2={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 Ca(t,e){D(e,!0),z(t,O2);let[i,o]=De(),n=()=>C($,"$isLive$",i),r=()=>C(S,"$isMobile",i),l=()=>C(y,"$adPosition",i),d=()=>C(w,"$adDuration",i),a=m(e,"isAds",3,!1),p=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),v=m(e,"ref",15,void 0),u=Ee(),$=u.state.isLive$,w=u.ads.duration,y=u.ads.position,S=u.ui.isMobile,T=h(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||a()));var k=Ue(),A=fe(k);{var I=V=>{var K=N2();let W;var U=_(K);{var Y=G=>{Od(G,{get position(){return l()},get duration(){return d()}})},ne=G=>{lm(G,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return s(T)},get withEpisodes(){return e.withEpisodes},get ref(){return v()},set ref(ce){v(ce)}})};L(U,G=>{a()?G(Y):G(ne,!1)})}g(K),O(G=>W=J(K,1,"timeline svelte-41cp6d",null,W,G),[()=>({withoutPadding:!f(),mobile:r()})]),b(V,K)},E=V=>{var K=B2();let W;O(U=>W=J(K,1,"timeline-stub svelte-41cp6d",null,W,U),[()=>({mobile:r()})]),b(V,K)};L(A,V=>{s(T)?V(I):V(E,!1)})}b(t,k),H(),o()}var R1=require("@vkontakte/videoplayer-shared/es2018");var D2=Se('<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 dm(t,e){let i=Me(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":"episodes-icon",style:"flex-shrink:0",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(3),g(o),b(t,o)}var H2=Se('<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 cm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=H2();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var F2=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),U2=M('<span class="text svelte-1yhs2ga"> </span>'),z2=M('<span class="text count svelte-1yhs2ga"> </span>'),W2=M("<!> <!>",1),q2={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Dd(t,e){var le,we,Ve;D(e,!0),z(t,q2);let[i,o]=De(),n=()=>C(w,"$currentGridType$",i),r=()=>C(y,"$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=(we=(le=v.callbacks)==null?void 0:le.onEpisodeChanged)!=null?we:R1.noop,$=!!((Ve=v.callbacks)!=null&&Ve.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,T=v.ui.isMobile,k=v.ui.t,A=j(void 0),I=ve=>{var Le,te,N;if(!!((Le=v.callbacks)!=null&&Le.onEpisodeClicked)){let Be=Vs(ve);y.set(Be),S.set(!0),(N=(te=v.callbacks)==null?void 0:te.onEpisodeClicked)==null||N.call(te,Be)}},E=j(null),V=h(()=>a()/p());We(()=>{var ae;let ve=$u(s(V),p(),f());ve?((ae=s(E))==null?void 0:ae.time)!==ve.time&&(u(ve),B(E,ve,!0)):B(E,null)});let K=h(()=>{var ve;return((ve=s(E))==null?void 0:ve.text)||""}),W=h(()=>ji(n(),"xl")?"FULL":ji(n(),"m")&&I1(n(),"xl")?"COUNT":"SHORT"),U=h(()=>`${k("tooltip_episodes")}: ${s(K)}`),Y=async(ve,ae,Le)=>{await wo(),(ve==null?void 0:ve.getAttribute("aria-expanded"))==="false"&&ae&&!Le&&Tt(()=>{y.set(!1),ve.focus()})};We(()=>{Y(s(A),r(),l())});var ne=Ue(),G=fe(ne);{var ce=ve=>{let ae=h(()=>d()?"px-0":""),Le=h(()=>!$);Nt(ve,{get className(){var te;return`w-max btn-full-opacity btn-jc-l ${(te=s(ae))!=null?te:""}`},testId:"btn-episodes",click:I,get disabled(){return s(Le)},get ariaExpanded(){return l()},get ariaLabel(){return s(U)},get ref(){return s(A)},set ref(te){B(A,te,!0)},children:(te,N)=>{var Be=Ue(),ye=fe(Be);{var ge=ue=>{var xe=F2(),Z=fe(xe),qe=_(Z,!0);g(Z);var Je=P(Z,2),ke=_(Je);cm(ke,{}),g(Je),O(()=>he(qe,s(K))),b(ue,xe)},de=ue=>{var xe=W2(),Z=fe(xe);dm(Z,{});var qe=P(Z,2);{var Je=X=>{var Te=U2(),Ke=_(Te,!0);g(Te),O(()=>he(Ke,s(K))),b(X,Te)},ke=(X,Te)=>{{var Ke=st=>{var pt=z2(),bt=_(pt,!0);g(pt),O(()=>he(bt,f().length)),b(st,pt)};L(X,st=>{s(W)==="COUNT"&&st(Ke)},Te)}};L(qe,X=>{s(W)==="FULL"?X(Je):X(ke,!1)})}b(ue,xe)};L(ye,ue=>{d()?ue(ge):ue(de,!1)})}b(te,Be)},$$slots:{default:!0}})};L(G,ve=>{s(E)&&ve(ce)})}b(t,ne),H(),o()}var Sm=require("@vkontakte/videoplayer-shared/es2018");var di=require("@vkontakte/videoplayer-core/es2018"),ut=require("@vkontakte/videoplayer-shared/es2018"),ss=require("@vkontakte/videoplayer-statistics/es2018");var Ye=require("@vkontakte/videoplayer-shared/es2018"),Zi=require("@vkontakte/videoplayer-shared/es2018");var N1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var K2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",yu=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 Zi.Subject,loadStarted$:new Zi.Subject,loadEnded$:new Zi.Subject,loadError$:new Zi.Subject,ready$:new Zi.Subject,slotRequested$:new Zi.Subject,started$:new Zi.Subject,timeRemained$:new Zi.Subject,paused$:new Zi.Subject,resumed$:new Zi.Subject,ended$:new Zi.Subject,empty$:new Zi.Subject,skipped$:new Zi.Subject,clicked$:new Zi.Subject,closed$:new Zi.Subject,error$:new Zi.Subject};this.loadAdman=e=>(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ye.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ye.now)()]}),o())};(0,Zi.addScript)(K2,e,this.loadTimeout).then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ye.now)()]}),window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout))}).catch(l=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ye.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ye.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ye.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ye.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ye.now)()]}),!d&&(window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ye.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ye.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"}),$e(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ye.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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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")=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ye.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ye.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var A;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ye.now)(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:r,adsContainer:l,adsVideoElement:d,slotId:a,params:p={},duration:f,previewParam:v}=e,u,$=this.playerState&&$e(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=(0,Ye.detectEmbed)(),S=(A=w?y:window.location.href)!=null?A:window.location.href,T={...p,dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o,preview:v,...u?{request_id:u}:{},duration:f,puid10:N1(i,o),puid11:n?0:1};v||delete T.preview;let k={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(k),this.adman=I,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}catch(I){Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[(0,Ye.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,r;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ye.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.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(r=(n=this.actions).switchFromAdsToVideo)==null||r.call(n,!i)}}togglePlay(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adsState){this.log({message:"toggle play"});let i=$e(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(){var i;this.watchDogTimeout&&this.stopWatchDog(),((i=this.adsState)!=null&&i.playbackState?$e(this.adsState.playbackState):void 0)!=="inactive"&&(this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout))}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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,r,l,d,a,p,f,v,u;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ye.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),(r=this.adman)==null||r.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,Zi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var B1=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 um=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 r of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=r.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let p=new xu,{startTime:f,endTime:v}=p.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let p=new pm,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},xu=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 r=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return r+l+d+a}},pm=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}}),r=new xu;for(let l of n)r.isTime(l)?i.texts.push({type:"timestamp",value:r.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},O1=um;var Cu=require("@vkontakte/videoplayer-shared/es2018"),Sa,Ci,fm=0,mm=!1,D1="",H1=(t,e=0,i=0)=>t<e&&t<i,wu=(t,e=0,i=0)=>t>=e&&t<=i,Q2=(t,e=0,i=0)=>t>e&&t>i,F1=(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})=>wu(t,p,f));let r=t>=fm,l=t<fm;if(fm=t,l&&(mm=!1),(0,Cu.isNonNullable)(Sa)&&wu(t,Sa.startTime,Sa.endTime)&&D1===e.value)return Sa;if(!(0,Cu.isNonNullable)(Ci)&&(n!=null&&n.length)&&!mm){Ci=n.find(({startTime:p,endTime:f})=>wu(t,p,f)||r&&H1(t,p,f)),Sa=void 0,!(0,Cu.isNonNullable)(Ci)&&n[n.length-1].endTime<t&&(mm=!0);return}else{if(wu(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime))return Sa=Ci,Ci=void 0,D1=e.value,Sa;(r&&Q2(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime)||l&&H1(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime))&&(Ci=void 0)}};var Su={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"},G2={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"},Tu=t=>{var e,i;return(i=(e=Su[t])!=null?e:Su[G2[t]])!=null?i:void 0};var U1=require("@vkontakte/videoplayer-shared/es2018"),MB=require("@vkontakte/videoplayer-statistics/es2018"),Eu=class{constructor(e,i,o,n=new U1.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 Hd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Hd||{});var rs=t=>t!=null?t:0,gs=(t,e)=>{var n,r;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(rs(i==null?void 0:i.top)-rs(o==null?void 0:o.top)),left:Math.round(rs(i==null?void 0:i.left)-rs(o==null?void 0:o.left)),bottom:Math.round(rs(i==null?void 0:i.bottom)-rs(o==null?void 0:o.top)),right:Math.round(rs(i==null?void 0:i.right)-rs(o==null?void 0:o.left))}},xl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:rs(e==null?void 0:e.width),height:rs(e==null?void 0:e.height)}};var Iu="off";var z1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:p,videoEpisodes:f,previewThumbsData:v,uiConfig:u,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:k,replayInteractive:A,stopPlayer:I,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:V,additionalButtons:K,additionalSettingsMenuItems:W,additionalContextMenuItems:U,playPrevVideo:Y,playNextVideo:ne,looped:G=!1,statistics:ce,saveRate:le,internalsExposure:we,playerView:Ve})=>{var Nv,Bv,Ov;let ve={...$,configName:[...(Nv=$.configName)!=null?Nv:[],"ui"],isAudioDisabled:l,live:{...(Bv=$.live)!=null?Bv:{},isLiveCatchUpMode:!!n}},ae=u,Le=ut.TracerFactory.createRootTracer(ae.features.tracer),te=Le.createComponentTracer("Store"),N=w||new di.Player(ve,Le);we==null||we.expose({corePlayer:N});let Be=new ut.Logger,ye=new yu(Be,{loadTimeout:ae.ads.loadTimeout,initTimeout:ae.ads.initTimeout,runtimeTimeout:ae.ads.runtimeTimeout,useAdmanFromNPM:ae.ads.useAdmanFromNPM,volumeMultiplier:ae.ads.volumeMultiplier,isVsidOriginal:ae.ads.isVsidOriginal}),ge=fa.getInstance(),de=p==null?void 0:p.pictureInPictureApi,ue=p==null?void 0:p.annotationsApi,xe=p==null?void 0:p.slotsApi,Z=Be.createComponentLog("Store"),qe,Je,ke={},X=new eu,Te=new ut.Subscription,Ke=ce&&ce.oneStat?ti(ce.oneStat.vsid$):vr(void 0),st=re(As()),pt=re(!1),bt=(Ov=de==null?void 0:de.info.isActive$)!=null?Ov:new ut.ValueSubject(!1),Ct=re(0),Qe=re([]),Qt=(0,ut.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>Qe.update(x=>[...x,c])),Zt=vr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Yt=async c=>{var ie;let x=Object.values(ut.InterfaceLanguage).includes(c);if(ae.downloadVKLanguages&&(x&&ae.updateBuiltinLanguages||!hf(c))){let He;try{He=await(0,ut.loadVKLangPack)(c,Sh,Th)}catch(mt){(ie=ce==null?void 0:ce.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),ge==null||ge.report(mt,{errorType:"VKLangPack",fatal:!1})}He&&(gf({language:c,pack:He,fallback:ae.defaultLanguage}),Ot.set(c))}hf(c)&&Ot.set(c)},Ot=re(t),ee=re(e);Yt(t);let Lt=(c,x)=>{let R=$e(Ot);return _f(R,c,x,ae.defaultLanguage)},me=re("thumb");me.subscribe(c=>{c==="ads"&&Oe()});let _e=(()=>{let c=vi([Zt,me],([x,R])=>x?"crashed":R);return{...c,is:x=>$e(c)===x}})(),se=re(),Oe=()=>{se.set({muted:N.info.muted$.getValue()})},ze=(()=>{let c=re(new Set(y));return{...c,add:x=>{c.update(R=>new Set([...R].concat(x)))},remove:x=>{c.update(R=>{let ie=[...R];return new Set(Array.isArray(x)?ie.filter(He=>!x.includes(He)):ie.filter(He=>He!==x))})},includes:x=>{let R=$e(c);return Array.isArray(x)?x.every(ie=>R.has(ie)):R.has(x)}}})();te.log("create store"),Z({message:"create store"});let Ae=c=>{let x=c.container,R=()=>{ni=new MutationObserver(He=>{let{removedNodes:mt}=He[0];mt.length&&x.append(N.experimental.element$.getValue())}),ni.observe(x,{childList:!0})},ie=N.experimental.element$.getValue();if(ie)x.append(ie),R();else{let He=N.experimental.element$.pipe((0,ut.filter)(mt=>!!mt),(0,ut.once)()).subscribe(mt=>{x.append(mt),R()});Te.add(He)}},je=c=>{Z({message:`init video, config: ${JSON.stringify(c)}`}),S?Ae(c):(ut.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ut.now)()]}),N.initVideo(c)),te.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),qe=c},Re=new ut.Subject,it=c=>Re.next(c),At=new ut.Subject,Vt=new ut.Subject,et=new ut.Subject,ni=null,fi={actionRewind$:At,actionSeek$:Vt,inPiP$:bt,inFullscreen$:new ut.Observable(c=>st.subscribe(x=>c.next(x))),actionSetSubtitle$:et,nextMovie$:Re},lt={actionSeek$:Vt,playerSize$:new ut.Observable(c=>yi.subscribe(x=>c.next(x)))};if(ce){let{oneStat:c,thinOneStat:x,mediascopePixel:R,statSubscription:ie}=ce;c&&(S||ie.add(c.attachTo(N)),ie.add(c.attachToUi(fi)),ie.add(c.attachToAds(ye.events)),c.authorize(r).catch(He=>{Z({message:`onestat auth error ${String(He)}`})}),R&&R.attachTo(N)),x&&(ie.add(x.attachTo(N)),ie.add(x.attachToUi(lt)),x.authorize(r))}if(ge){let c=new ut.Subscription,x=(R,ie)=>c.add(R.subscribe(ie));if(x(N.events.managedError$,R=>{ge.logIError(R)}),x(N.events.fatalError$,R=>{ge.logIError(R,!0)}),ce){let{oneStat:R}=ce;R&&x(R.experimental.error$,ie=>{ge.logIError(ie)})}ge.sentrySubscription.add(c)}let ei=()=>{di.clientChecker.device.isIOS&&Je&&l1(Je).catch(c=>{Z({message:`exitIosSafariFullscreen failed: ${c}`})})};Te.add(N.experimental.element$.subscribe(c=>{c&&(Je=c,c.classList.add("player-media"),va(de)&&de.updateVideoElement(),S&&c.setAttribute("pip","false"),Ve==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;ei(),(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 x,R;va(de)&&await(de==null?void 0:de.revealPictureInPicture());let c=N.info.muted$.getValue();(x=a==null?void 0:a.onStarted)==null||x.call(a),(R=ke.onStarted)==null||R.call(ke,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var R;(R=a==null?void 0:a.onSeek)==null||R.call(a,c,x)})).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 R;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((R=a==null?void 0:a.onTimeupdate)==null||R.call(a,x,c),ye.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=a==null?void 0:a.onCrashed)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=a==null?void 0:a.onRecoverableError)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{Pt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{Pt.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(k!=null&&k.getValue()&&ze.add(fd),ze.add("PLAY_BUTTON")):ze.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=a==null?void 0:a.onLiveTime)==null||x.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=a==null?void 0:a.onStalledChanged)==null||x.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=a==null?void 0:a.onLiveEnded)==null?void 0:x.call(a))})).add(ye.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(ye.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(ye.events.loadError$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(ye.events.init$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(ye.events.ready$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(ye.events.started$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onStarted)==null?void 0:R.call(x,c)})).add(ye.events.timeRemained$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:R.call(x,c)})).add(ye.events.ended$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onCompleted)==null?void 0:R.call(x,c)})).add(ye.events.empty$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(ye.events.clicked$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClicked)==null?void 0:R.call(x,c)})).add(ye.events.closed$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClosed)==null?void 0:R.call(x,c)})).add(ye.events.error$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onError)==null?void 0:R.call(x,c)})).add(ye.events.paused$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(ye.events.resumed$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let ii=new ut.Subscription,ui=()=>{var mt,Ft,Kt;let{debugLog:c}=ae,x,R="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:Ut}=c;x=c.tag,R=(mt=Ut==null?void 0:Ut[0])!=null?mt:R,ie=(Kt=(Ft=Ut==null?void 0:Ut[1])!=null?Ft:Ut==null?void 0:Ut[0])!=null?Kt:ie}let He=x?`: ${x}`:"";ii.add(N.events.log$.subscribe(Ut=>{console.debug(`%c sdk${He} `,`background:${R};`,`sdk component: ${Ut.component}`,Ut.message)})).add(Be.log$.subscribe(Ut=>{console.debug(`%c ui${He} `,`background:${ie};`,`ui component: ${Ut.component}.`,Ut.message)}))},To=()=>{ii.unsubscribe()},mo=(c,x)=>{te.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Xt=(c=!1)=>{te.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Si=(c,x,R)=>{te.log("move camera focus px",{xpx:c,ypx:x,dt:R}),N.moveCameraFocusPX(c,x,R)},eo=()=>{N.holdCamera()},xt=()=>{N.releaseCamera()},_t=vr(N.info.position$.getValue(),c=>{let x,R,ie=()=>{let He=N.info.playbackState$.getValue(),mt=N.info.isLive$.getValue(),Ft=N.info.duration$.getValue(),Kt=N.info.position$.getValue();if(He&&[di.PlaybackState.PLAYING,di.PlaybackState.PAUSED].includes(He)){let Ut=mt?Kt-Ft:N.getExactTime();Ut!==R&&c(Ut),R=Ut}x=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame(x)}),Ti=ti(N.info.playbackState$),Oo=ti(N.info.currentBuffer$),q=ti(N.info.isEnded$),Dt=ti(N.info.isLive$),ci=ae.features.playbackRate?ti(N.info.canChangePlaybackSpeed$):vr(!1),Gt=ti(N.info.liveBufferTime$),vt=ti(N.info.volume$),rt=ti(N.info.muted$),ft=tu(N.info.predefinedQualityLimitType$.pipe((0,ut.map)(c=>c===di.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===di.PredefinedQualityLimits.TRAFFIC_SAVING),hi=tu(N.info.predefinedQualityLimitType$.pipe((0,ut.map)(c=>c===di.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===di.PredefinedQualityLimits.HIGH_QUALITY),Ht=ti(N.info.autoQualityLimitingAvailable$),Jn=ti(N.info.availableQualities$),Ei=ti(N.info.availableQualitiesFps$),vo=ti(N.info.chromecastState$),Li=ti(N.info.chromecastDeviceName$),yt=ti(N.info.currentFormat$),Vi=ti(N.info.throughputEstimation$),Zo=ti(N.info.videoBitrate$),vn=ti(N.info.intrinsicVideoSize$),Ii=ti(N.info.duration$),to=ti(N.info.isAudioAvailable$),ki=null,Xo=N.info.isBuffering$,Vn=vr(Xo.getValue(),c=>{let x=Xo.subscribe(R=>{R&&ki===null?ki=window.setTimeout(()=>{c(Xo.getValue()),ki=null},ae.loaderDelay):c(R)});return()=>{x.unsubscribe(),ki&&clearTimeout(ki)}}),Eo=()=>{ki&&clearTimeout(ki),ki=null},Do=vi([Ii,Dt],([c,x])=>x?-c:c),go=vi([Ti],([c])=>c===di.PlaybackState.PLAYING),ho=ti(N.info.atLiveEdge$),Jo=ti(N.info.atLiveDurationEdge$),Rn=ti(N.info.position$),er=vi([Rn,Ii],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),tr=vi([vo],([c])=>c===di.ChromecastState.CONNECTED),ir=ti(N.info.availableVideoStreams$),Hr=ae.features.audioLanguages?ti(N.info.availableAudioStreams$):vr([]),Nn=ti(N.info.currentVideoStream$),as=ti(N.info.currentAudioStream$),Fr=c=>{c.language&&ff(c.language),N.setVideoStream(c)},Ui=c=>{c.language&&ff(c.language),N.setAudioStream(c)},gn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ie=>"isDefault"in ie&&ie.isDefault)),x)return x;let R=jh();return R&&(x=c.find(({language:ie})=>R===ie)),x!=null||(x=c.at(0)),x},en=!1;Te.add(N.info.availableAudioStreams$.subscribe(c=>{if(!en&&c.length){let x=gn(c);x&&(N.setAudioStream(x),en=!0)}}));let hn=!1;Te.add(N.info.availableVideoStreams$.subscribe(c=>{if(!hn&&c.length){let x=gn(c);x&&(N.setVideoStream(x),hn=!0)}}));let _o=re(void 0),_n=ti(N.info.isAutoQualityEnabled$,c=>c&&_o.set(void 0)),Bn=ti(N.info.currentQuality$,()=>_o.set(void 0)),Ur=vi([_o,Bn],([c,x])=>c!=null?c:x),hr=vi(yt,c=>c!==di.VideoFormat.MPEG),zr=vi([Jn,Ei,_n,Ur,hr],([c,x,R,ie,He])=>{let mt=[];He&&mt.push({value:"auto",displayValue:Lt("auto_quality_option"),selected:R});let Ft=c.filter(Kt=>!(0,ut.isInvariantQuality)(Kt));for(let Kt of Ft){let Ut=x[Kt];mt.push({value:Kt,displayValue:`${Kt}${Ut?B1(Ut):""}`,selected:R?!1:Kt===ie})}return mt}),bn=ti(N.info.currentPlaybackRate$),On=vi([bn,ho,Jo],([c,x,R])=>{let ie=R||S?1:ae.controls.playbackRateMin,He=x?1:ae.controls.playbackRateMax,mt=ae.controls.playbackRateStep,Ft=[];for(let Kt=ie;Kt<=He;Kt+=mt)Ft.push({value:Kt,displayValue:Kt===1?Lt("playback_rate_1"):Lt("playback_rate",{multiplier:Kt.toString(10)}),selected:c===Kt});return Ft}),ot={displayValue:Lt("subtitles_off"),value:Iu,language:""},Wt=re({...ot}),Dn=ae.features.subtitles?ti(N.info.availableTextTracks$):vr([]),zi=Fh(),or=vi([Dn,Wt],([c,x],R)=>{var mt;let ie=[],He=c.find(({id:Ft})=>Ft===x.value);if(He!=null&&He.url){let[,Ft]=(mt=zi.find(He.url))!=null?mt:[];if(Ft){R(Ft);return}X.download(He.url).then(Kt=>{if(!Kt||X.isDestroyed())return;let Ut=new O1,ys=He.language;if(ys){let I0=!!He.isAuto,k0=Ut.parse(Kt,ys);ie.push({lang:ys,subtitles:k0,isAuto:I0,id:He.id})}zi.add(He.url,ie),$e(Wt).value===x.value&&R(ie)}).catch(Kt=>{var Ut;(Ut=ce==null?void 0:ce.oneStat)==null||Ut.logError({errorType:"Subtitles download",fatal:!1}),ge==null||ge.report(Kt,{errorType:"Subtitles download",fatal:!1})})}R(ie)}),Hn=vi([bn,go,Wt],([c,x,R],ie)=>{let Ft;if(N.info.isLive$.getValue()&&x&&R.value!==ot.value){let Ut=()=>{let ys=1e3/(3*c);Ft=setTimeout(Ut,ys),ie(Date.now())};return Ut(),()=>clearTimeout(Ft)}}),$n=vi([Dn,Wt],([c,x])=>{if(!c.length)return[];let R=[];for(let{language:ie,isAuto:He,id:mt}of c){let Ft=ie&&Tu(ie);ie&&Ft&&R.push({displayValue:He?Lt("subtitles_auto",{language:Ft}):Ft,value:mt,selected:(x==null?void 0:x.value)===mt,isAuto:He,language:ie})}return R.length?(R.unshift({...ot,selected:(x==null?void 0:x.value)===ot.value}),R):[]}),Wi={available:[],prev:[]},tn=()=>{var x,R;let c=N.experimental.getCurrentTime$.getValue();return(R=(x=c==null?void 0:c())!=null?x:Je==null?void 0:Je.currentTime)!=null?R:0},Ho=vi([_t,Wt,or,Hn],([c,x,R,ie])=>{var mt;let He=N.info.isLive$.getValue();if(He&&Wi.prev!==R){let Ft=R.find(({id:Ut})=>Ut===x.value),Kt=Wi.prev.find(({id:Ut})=>Ut===x.value);if(Ft){let Ut={...Ft,subtitles:[...(mt=Kt==null?void 0:Kt.subtitles)!=null?mt:[],...Ft.subtitles]};Wi.available=[Ut],Wi.prev=R}}if(x&&x.value!==ot.value){let Ft=He?tn():c,Kt=He?Wi.available:R;return F1(Ft,x,Kt,He)}}),yn=vi([Ho],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(Wt.subscribe(c=>{var x,R;if(c.value===ot.value)(x=a==null?void 0:a.onSubtitleOff)==null||x.call(a);else{let ie=Object.entries(Su).find(([He,mt])=>mt===c.displayValue);(R=a==null?void 0:a.onSubtitleOn)==null||R.call(a,ie?ie[0]:"")}}));let _r=re(!0),br=vi([Oo,Do,Rn,Gt],([c,x,R,ie])=>{var Kt;let He=(Kt=c==null?void 0:c.end)!=null?Kt:0;if(!ie)return He/x;let Ft=-R+ie-x;return(He-Ft)/x}),xn=ti(N.info.availableSources$),Wr=vi([xn],([c])=>Object.keys((c==null?void 0:c[di.VideoFormat.MPEG])||{}).length>0),wn=()=>{var R,ie,He;let c=Object.keys(((ie=(R=N.info.availableSources$)==null?void 0:R.getValue())==null?void 0:ie[di.VideoFormat.MPEG])||{}),x=(0,ut.getHighestQuality)(c)||ut.VideoQuality.Q_144P;return(He=qe.sources[di.VideoFormat.MPEG])==null?void 0:He[x]},qr=()=>{var x;let c=wn();if(c)te.log("download video",{url:c}),Oh(c,((x=qe==null?void 0:qe.meta)==null?void 0:x.title)||"video");else{let R="There is no URL for download video";te.log("download video",{message:R}),Z({message:R})}},nr=()=>{Z({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Fn(rr()):sr(!c)},$r=()=>{var c;if(Pt.ui.settingsMenu.visible$.set(!1),!$e(Pt.ui.settingsSubMenu.visible$)){let x=$e(Pt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&x){let ie=xl(x),He={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ie,position:He,name:"settings"})}}te.log("close settings menu")},on=async(c,x=()=>Promise.resolve())=>{var He;Pt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Pt.ui.settingsMenu.visible$.set(!0),await x();let R=$e(Pt.ui.settingsMenu.ref$),ie=Ws();if((He=a==null?void 0:a.uiInfo)!=null&&He.onSettingsMenu&&R&&ie){let Ft=xl(R),Kt=gs(R,ie);a.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:Kt,name:"settings"})}te.log("open settings menu",{wasOpenedByKeyboard:c})},qt=(c,x=!1)=>{var mt;Pt.ui.settingsSubMenu.visible$.set(!1);let R=$e(Pt.ui.settingsMenu.ref$),ie=Ws(),He=$e(Pt.ui.settingsMenu.visible$);if((mt=a==null?void 0:a.uiInfo)!=null&&mt.onSettingsMenu&&R&&ie)if(He&&!x){let Kt=xl(R),Ut=gs(R,ie);a.uiInfo.onSettingsMenu({visible:!0,size:Kt,position:Ut,name:"settings"})}else{let Kt=xl(c),Ut={top:0,left:0,bottom:0,right:0},ys=$e(Pt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Kt,position:Ut,name:ys})}te.log("close settings sub menu")},Io=(c,x)=>{var ie;Pt.ui.settingsSubMenu.visible$.set(!0),Pt.ui.settingsSubMenu.ref$.set(x),Pt.ui.settingsSubMenu.name$.set(c);let R=Ws();if((ie=a==null?void 0:a.uiInfo)!=null&&ie.onSettingsMenu&&x&&R){let mt=xl(x),Ft=gs(x,R);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:mt,position:Ft})}te.log("open settings sub menu",{name:c})},rr=()=>{var x;let c=Math.max(ae.volumeMinRestore,(x=iu())!=null?x:0);return c===0?ae.volumeDefault:c},Fn=c=>{let x=c===0?rr():c,R=N.info.muted$.getValue();Z({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let ie=!l||_e.is("ads");R&&c>0&&ie&&(R=!1,uf(!1)),N.setVolume(c,R),ye.setVolume(c),sf(x)},sr=c=>{let x=N.info.volume$.getValue();Z({message:`set muted, currentVolume: ${x}, mute: ${c}`});let R=_e.is("ads");if(N.setMuted(c,R),ye.setVolume(c?0:x),(!R||!c)&&uf(c),!c&&x===0){let ie=rr();N.setVolume(ie),sf(ie),ye.setVolume(ie)}},$i=re(!1),yr=c=>{var x,R;te.log("set looped",{isLooped:c}),$i.set(c),N.setLooped(c),(R=(x=a==null?void 0:a.uiInfo)==null?void 0:x.onLoopedChanged)==null||R.call(x,c)};yr(G);let Et=()=>{var c,x;(x=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},ai=(c,x=!1)=>{var R;Z({message:`set autoplayNextEnabled, value: ${c}`}),te.log("set autoplay next enabled",{autoplayNextEnabled:c}),Pt.ui.autoplayNextEnabled$.set(c),Jh(c),x&&((R=a==null?void 0:a.onSetAutoplayNextEnabled)==null||R.call(a,c))},nn=c=>{Z({message:`set timerNextVideoRunning, value: ${c}`}),te.log("set timer next video running",{timerNextVideoRunning:c}),Pt.ui.timerNextVideoRunning$.set(c)},rn=(c=!0)=>{var ie;let x=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{x=(ie=a==null?void 0:a.onPrevVideoClick)==null?void 0:ie.call(a)}catch(He){Z({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Fo("prev")||Y()},Cn=(c=!0)=>{var ie;let x=!0;if(c&&(a!=null&&a.onNextVideoClick))try{x=(ie=a==null?void 0:a.onNextVideoClick)==null?void 0:ie.call(a)}catch(He){Z({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Fo("next")||ne()},Fo=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:R,playbackStatusShow:ie}}=ae;return R&&ie&&!x?(Pt.ui.aboutToGoNextVideo.set(c),Pt.ui.userActionsDisabled.set(!0),!0):!1},po=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},io=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},Un=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},xr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},wr=()=>{N.prepare()},Kr=()=>{(0,ut.assertNonNullable)(Pt);let c=$e(Pt.ui.controls.disabledControls$),x=$e(Pt.playerPhase),R={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(Z({message:"toggle play"}),x==="ads"){R.action="play",te.log("toggle adman play",R),ye.togglePlay();return}let ie=()=>{var mt;Z({message:"toggle play, call player.play"}),R.action="play",N.play(),(mt=a==null?void 0:a.onPlay)==null||mt.call(a)},He=()=>{var mt;Z({message:"toggle play, call player.pause"}),R.action="pause",N.pause(),(mt=a==null?void 0:a.onPause)==null||mt.call(a)};if(N.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),At.next(),Vt.next(ss.SeekAction.REWIND),S){A==null||A();return}N.seekTime(0),ie()}else N.info.playbackState$.getValue()!==di.PlaybackState.PLAYING?ie():He();te.log("toggle play",R)},tt=(c,{changeReason:x="default",appliesTo:R="to-video"}={})=>{Z({message:`set quality, quality: ${c}`}),te.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ae.features.qualityDetailsSubMenuEnabled?(ou({type:"exact_quality",quality:c,videoId:i},R),gd(),N.setPredefinedQualityLimits(di.PredefinedQualityLimits.UNKNOWN)):af(i,c),_o.set(c),N.setQuality(c)):ae.features.qualityDetailsSubMenuEnabled?x==="default"&&(oo("auto_quality",R),$e(ft)&&Mt(!1),$e(hi)&&_i(!1)):gd()},Mt=(c,x="as-default")=>{Z({message:`set trafficSavingEnabled, value: ${c}`}),te.log("set traffic saving enabled",{trafficSavingEnabled:c});let R=c?di.PredefinedQualityLimits.TRAFFIC_SAVING:di.PredefinedQualityLimits.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?(ko(R,x),vd(!1)):(N.setPredefinedQualityLimits(R),vd(c))},_i=(c,x="as-default")=>{Z({message:`set highQualityEnabled, value: ${c}`}),te.log("set high quality enabled",{highQualityEnabled:c}),ko(c?di.PredefinedQualityLimits.HIGH_QUALITY:di.PredefinedQualityLimits.UNKNOWN,x)},ko=(c,x)=>{c!==di.PredefinedQualityLimits.UNKNOWN&&($e(Ht)&&!$e(_n)&&tt("auto",{appliesTo:x,changeReason:"limit-changed"}),oo(c,x)),N.setPredefinedQualityLimits(c)},oo=(c,x)=>{ou({type:c,videoId:i},x),x==="as-default"&&ou({type:c,videoId:i},"to-video")},bo=c=>{te.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ae.features.saveRate&&le&&!N.info.isLive$.getValue()&&Zh(c)},$o=()=>{let c=$e(On),x=c.findIndex(({selected:ie})=>ie);if(x===c.length-1)return;let R=c[x+1];bo(R.value)},sn=()=>{let c=$e(On),x=c.findIndex(({selected:ie})=>ie);if(x===0)return;let R=c[x-1];bo(R.value)},yo=(c={...ot,selected:!1})=>{te.log("set subtitles",{...c}),c.value!==ot.value&&et.next(c.isAuto?c.value+"_auto":c.value),Wt.set(c),vf(c.value===ot.value?void 0:c.language)},qi=()=>{te.log("toggle subtitles");let c=$e($n),x=$e(Wt),R=$e(Ot);if((x==null?void 0:x.value)===ot.value){let ie=c.filter(He=>He.value!==ot.value).find(He=>He.value===R)||c[1];yo(ie)}else yo()},Ki=re(!0),Uo=c=>{Ki.set(c)},no=(c,x,R=!0)=>{var ie;if(Z({message:`seek to time, time: ${c}`}),te.log("seek to time",{time:c,action:x,forcePrecise:R}),Vt.next(x),N.info.isLive$.getValue()){let He=N.info.duration$.getValue(),mt=Math.min(0,He+c);N.seekTime(mt,R)}else{if(k!=null&&k.getValue())return;N.info.isEnded$.getValue()&&(Z({message:"seek after ended, call callbacks.onPlay"}),(ie=a==null?void 0:a.onPlay)==null||ie.call(a)),N.seekTime(Ko(c),R)}},zo=c=>{Z({message:`seek to episode start time: ${c}`}),te.log("seek to episode start time",{time:c}),no(c,ss.SeekAction.EPISODE,!0)},Sn=(c,x)=>{Z({message:`seek to percent, percent: ${c}`}),te.log("seek to percent",{percent:c,action:x});let R=$e(Do)*c;no(R,x,!1)},Cr=c=>{Z({message:`seek external, time: ${c}`}),te.log("seek external",{time:c}),Vt.next(ss.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Qr=c=>{var ie,He;let x=(ie=c.max)!=null?ie:"none",R=(He=c.min)!=null?He:"none";Z({message:`set auto quality limitation. Max: ${x}. Min: ${R}`}),te.log("set auto quality limits",{max:x,min:R}),N.setAutoQualityLimits(c)},Gr=c=>{Z({message:`seek external to episode start time: ${c}`}),te.log("seek external to episode start time",{time:c}),no(c,ss.SeekAction.EPISODE,!0)},ar=c=>{Z({message:`set playback rate to: ${c}`}),te.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Sr=re(void 0),Tn=re(!1),Qi=c=>{Z({message:`start scrubbing, progress: ${c}`}),te.log("start scrubbing",{progress:c}),Tn.set(!0),zn(c)},zn=c=>{Sr.set(c)},lr,Tr,dr=()=>{Sr.set(void 0),Tn.set(!1)},Ze=()=>{clearTimeout(Tr),clearTimeout(lr),lr=window.setTimeout(()=>{dr()},500),Je==null||Je.removeEventListener("seeked",Ze)},Jt=c=>{Z({message:`complete scrubbing, progress: ${c}`}),te.log("complete scrubbing",{progress:c}),Sn(c,ss.SeekAction.SLIDER),$e(Pt.ui.isMobile)&&$e(Pt.state.currentFormat$)===di.VideoFormat.HLS?(Je==null||Je.addEventListener("seeked",Ze),Tr=window.setTimeout(()=>{Ze()},300)):dr()},pe=vi([_t,Do,Sr],([c,x,R],ie)=>{ie((0,ut.isNonNullable)(R)?R*x:c)}),wt=re(!1),ri=()=>{wt.set(!0)},Ri=()=>{wt.set(!1)},yi=re({width:0,height:0}),Fe=vi([yi],([{width:c}],x)=>{let R=k1(c);x(R)}),It=re(!1),bi=K.filter(c=>Dh(c)),Wo=vi([Fe,It],([c,x])=>x?bi.filter(R=>!R.hideOnMobile):bi.filter(R=>{var ie;return!((ie=R.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),Ni=re(K.filter(c=>Hh(c))),Wn=vi([Ni,Fe],([c,x])=>c.filter(R=>{var ie;return!((ie=R.hideOnDesktopGridTypes)!=null&&ie.includes(x))})),Er=vi([Wn,Wo],([c,x])=>[...ae.features.additionalButtonsDesktopControlPanelRight?c.filter(R=>R.type==="desktop-control-panel-right"):[],...ae.features.additionalButtons?x.map((R,ie)=>{var He;return{id:ie,weight:ie,type:"desktop-control-panel-right",testId:R.testId,icon:R.iconUrl,onClick:R.onClick,ariaLabel:(He=R.ariaLabel)!=null?He:R.tooltip,tooltipText:R.tooltip}}):[]]),qo=re(W),Gi=vi([qo],([c])=>ae.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Bi=(c,x)=>{let R=$e(Ni).map(ie=>ie.id!==c?ie:{...ie,...x});Ni.set(R)},an=c=>{let x=$e(Ni);if(x.some(R=>R.id===c.id)){Z({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Ni.set(x)},cr=c=>{let x=$e(Ni);if(!x.some(R=>R.id===c)){Z({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),Ni.set(x)},ur=c=>{Vt.next(ss.SeekAction.LIVE),Z({message:"live switch to low latency "+c}),te.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Po=(c,x)=>{let R=$e(qo).map(ie=>ie.id!==c?ie:{...ie,...x});qo.set(R)},Us=c=>{let x=$e(qo);if(x.some(R=>R.id===c.id)){Z({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),qo.set(x)},Da=c=>{let x=$e(qo);if(!x.some(R=>R.id===c)){Z({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),qo.set(x)},ct=re(U),$t=vi([ct],([c])=>ae.features.additionalContextMenuItems?c:[]),ro=(c,x)=>{let R=$e(ct).map(ie=>ie.id!==c?ie:{...ie,...x});ct.set(R)},ln=c=>{let x=$e(ct);if(x.some(R=>R.id===c.id)){Z({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ct.set(x)},so=c=>{let x=$e(ct);if(!x.some(R=>R.id===c)){Z({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),ct.set(x)},li=vi([It,Zt],([c,x],R)=>{R(c&&x)}),Pi=()=>{Vt.next(ss.SeekAction.LIVE),Z({message:"switch to active live"}),te.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==di.PlaybackState.PLAYING&&Pt.actions.internal.togglePlay()},zs=()=>{te.log("skip adman"),ye.skip()},Ha=(c=!0)=>{var ie;(0,ut.assertNonNullable)(Pt),Z({message:`switch from ads to video, callPlay: ${c}`}),te.log("switch from ads to video",{callPlay:c}),me.set("video"),c&&N.play(),l&&sr(!0);let x=(ie=$e(se))==null?void 0:ie.muted,R=!N.info.muted$.getValue();x!==void 0&&!R&&sr(x),se.set(void 0)},ep=()=>{(0,ut.assertNonNullable)(Pt),Z({message:"switch from video to ads"}),te.log("switch from video to ads"),Pt.actions.internal.pause(),ei(),me.set("ads")},vc=c=>{(0,ut.assertNonNullable)(Pt);let x=c?"LiveWaitingStart":"thumb";te.log("set live waiting start",{state:c,playerPhase:x}),me.set(x)},tp=c=>{(0,ut.assertNonNullable)(Pt);let x=c?"LiveWaitingRecover":"thumb";te.log("set live waiting recover",{state:c,playerPhase:x}),me.set(x)},gc=c=>{(0,ut.assertNonNullable)(Pt);let x=c?"LiveWaitingRecord":"thumb";te.log("set live waiting record",{state:c,playerPhase:x}),me.set(x)},ip=()=>((0,ut.assertNonNullable)(Pt),te.log("get debug text data"),Nh(N,qe,Pt,Le.getTraceId())),hc=()=>((0,ut.assertNonNullable)(Pt),JSON.stringify(Le.getFinishedSpans())),op=()=>((0,ut.assertNonNullable)(Pt),Bh(N,qe,Pt)),Ws=()=>Je,np=()=>{Z({message:"toggle chromecast"}),te.log("toggle chromecast"),N.toggleChromecast()},Nl=c=>{var R;if((0,ut.assertNonNullable)(Pt),N.info.isEnded$.getValue())return;let x=!c;if($e(Pt.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${x}`}),te.log("pause ads",{internalCall:x}),ye.pause();return}Z({message:`pause video, internalCall: ${x}`}),te.log("pause video",{internalCall:x}),x&&((R=a==null?void 0:a.onPause)==null||R.call(a)),N.pause()},Bl=c=>{var R;(0,ut.assertNonNullable)(Pt);let x=!c;if($e(Pt.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${x}`}),te.log("play ads",{internalCall:x}),ye.play();return}Z({message:`play video, internalCall: ${x}`}),te.log("play video",{internalCall:x}),x&&((R=a==null?void 0:a.onPlay)==null||R.call(a)),N.play()},_c=c=>{(0,ut.assertNonNullable)(Pt);let x=!c;if($e(Pt.playerPhase)==="ads"){Z({message:"player cannot be stopped during ads via external method"});return}Z({message:`player will be stopped, internalCall: ${x}`}),I==null||I()},bc=(c,x)=>{(0,ut.assertNonNullable)(Pt),Z({message:`first start, show ads: ${c}, internalCall: ${!x}`}),te.log("first start",{showAds:c,external:x}),c?me.set("ads"):(me.set("video"),x?N.play():Pt.actions.internal.togglePlay())},Fa=()=>(Z({message:"getting time codes"}),f),$c=()=>{let c=Fa();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(R=>R.time>x)},yc=c=>{let x=c;x||(x=$c());let R=N.info.position$.getValue();te.log("seek to next episode",{currentTime:R,...x}),x&&(Z({message:"seek to next episode"}),no(x.time,ss.SeekAction.EPISODE,!0))},xc=()=>{let c=Fa();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),R=c.findIndex(He=>He.time>x),ie=R===-1?c.length-2:R-2;if(!(ie<0))return c[ie]},rp=c=>{let x=c;x||(x=xc());let R=N.info.position$.getValue();te.log("seek to prev episode",{currentTime:R,...x}),x&&(Z({message:"seek to prev episode"}),no(x.time,ss.SeekAction.EPISODE,!0))},sp=()=>(Z({message:"getting preview thumbs data"}),te.log("get preview thumbs data",{...v}),v),Ge=async()=>{let c=de==null?void 0:de.isActive(),x="none";de!=null&&de.isActive()?(x="exit",await(de==null?void 0:de.exit())):(x="request",await(de==null?void 0:de.request())),te.log("toggle picture in picture",{isActive:c,action:x})},si=(c=-90)=>{te.log("rotate video",{alphaDiff:c}),Ct.update(x=>x+c)},ao=re([]);T==null||T.subscribe(c=>{let x=[];for(let R=0;R<c.length;R++){let{range:[ie,He],subjects:mt}=c[R];R===0&&ie!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ie/1e3,text:"",interactive:!0,completed:ae.features.interactiveTimeOpenUri?!mt.length||mt.every(Ft=>Ft.isRemoved):!mt.length}),He!==1/0&&x.push({time:He/1e3,text:"",interactive:!1,completed:!0})}ao.set(x)});let qs=re(!1);k==null||k.subscribe(c=>{c&&$e(Tn)&&dr()});let Ko=c=>{if(!S)return c;let x=$e(ao),R=$e(Do),He=$e(Rn)/R,mt=x.find(Ft=>Ft.interactive&&!Ft.completed&&Ft.time>He);return typeof(mt==null?void 0:mt.time)=="number"?Math.min(c,mt.time-.05):c},T0=()=>{Pt.ui.episodes.panelOpened$.set(!1)},E0=()=>{te.log("destroy store"),clearTimeout(Tr),clearTimeout(lr),Te.unsubscribe(),ii.unsubscribe(),N.destroy(),ye.destroy(),ce==null||ce.destroy(),ge==null||ge.destroy(),Qt.unsubscribe(),ni==null||ni.disconnect(),ni=null,X.destroy()},Pt={interfaceLanguage$:Ot,isCyrillicRelatedInterface$:ee,initVideo:je,videoId:i,isClip:o,playerPhase:_e,vsid:Ke,state:{positionExact$:_t,positionWithScrubbing$:pe,duration$:Do,playbackState$:Ti,isPlaying$:go,isLoaderVisible:Vn,bufferedProgress$:br,isLive$:Dt,canChangePlaybackSpeed$:ci,isActiveLive$:ho,isOldestAvailableLive$:Jo,isRewindableLive$:er,isEnded$:q,muted$:rt,volume$:vt,trafficSavingEnabled$:ft,highQualityEnabled$:hi,autoQualityLimitingAvailable$:Ht,availableVideoStreams$:ir,availableAudioStreams$:Hr,videoStream$:Nn,audioStream$:as,currentQuality$:Ur,isAutoQualityEnabled$:_n,availableQualities$:zr,currentPlaybackRate$:bn,availablePlaybackRates$:On,currentSubtitle$:Wt,availableTextTracks$:Dn,availableSubtitlesList$:$n,currentSubtitleCaptions$:yn,isAutoSubtitleCaptionVisible$:_r,chromecastState$:vo,chromecastDeviceName$:Li,chromecastConnected$:tr,currentFormat$:yt,throughputEstimation$:Vi,videoBitrate$:Zo,videoSize$:vn,errorLog$:Qe,crashed$:Zt,isAudioAvailable$:to,isAudioDisabled:!!l,canDownload:ae.features.download&&!!d,availableSources$:xn,hasMpegSources$:Wr,isInteractive:S,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!$e(ao).length,interactiveEpisodes$:ao,isInteractiveTime$:k?ti(k):re(!1),isInteractiveExpectation$:qs,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:V,looped$:$i,loadedMetadata$:re(!1),isAutoQualityAvailable$:hr},ui:{t:Lt,controlsVisible:re(!1),touched:re(!1),controls:{prevButton:re(void 0),playButton:re(void 0),replayButton:re(void 0),nextButton:re(void 0),playPrevChapterButton:re(void 0),seekToInteractiveButton:re(void 0),interactiveGraphButton:re(void 0),liveButton:re(void 0),time:re(void 0),episodes:re(void 0),volume:re(void 0),subtitles:re(void 0),settings:re(void 0),context:re(void 0),chromecast:re(void 0),pip:re(void 0),fullscreen:re(void 0),vkLogo:re(void 0),interactiveTimeIndicator:re(void 0),timeline:re(void 0),autoplayNextToggle:re(void 0),additionalButtons:K.length?K.reduce(c=>[...c,re(void 0)],[]):[],disabledControls$:ze},modals:{hotKeyMap:{show:re(!1),data:re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:st,isFullscreenOpenedByKeyboard:pt,rotateAlpha:Ct,isAutoplay:re(!1),debugPanelVisible:re(!1),episodes:{panelOpened$:re(!1),openedByKeyboard$:re(!1)},contextMenu:{visible$:re(!1),btnRef$:re(void 0),openedByBtnKeyboard$:re(!1),openedByHotKey$:re(!1),lastActiveElem$:re(void 0),showContextMenuBtn$:re(!1),position$:re({top:0,left:0})},playerSize:yi,isMobile:It,mobileNotReportControlHidden$:li,mobileUnmuteButtonExpanded:re(!1),mobileUnmuteButtonVisible:re(!1),icon3DVideoVisible:re(!1),scrubbingInProgress:Tn,volumeChangingInProgress:wt,is3DVideo:re(!1),currentGridType$:Fe,additionalButtonsDeprecated$:Wo,additionalDesktopControlPanelRightButtons$:Er,additionalSettingsMenuItems$:Gi,additionalContextMenuItems$:$t,interactiveHideMobileControls:re(!1),overlayContainer$:re(void 0),startedByKeyboard$:re(!1),autoplayNextEnabled$:re(!1),timerNextVideoRunning$:re(!0),settingsMenu:{visible$:re(!1),ref$:re(void 0),openedByBtnKeyboard$:re(!1)},settingsSubMenu:{visible$:re(!1),ref$:re(void 0),name$:re(void 0)},aboutToGoNextVideo:re(void 0),userActionsDisabled:re(!1),hiddenControls:{volume:re(!1),vkLogo:re(!1),pip:re(!1),chromecast:re(!1),settings:re(!1)},isControlsAvailable:Ki,controlBlocks:{topLeft:re(void 0),topRight:re(void 0),middle:re(void 0),bottom:re(void 0),bottomLeft:re(void 0),bottomRight:re(void 0)},videoTitleInfo:re(void 0)},ads:{position:re(0),duration:re(0),playbackState:re("inactive"),canSkip:re(!1),secondsToWatchBeforeSkip:re(0),postrollPassed:re(!1)},webApi:{pictureInPictureApi:de,annotationsApi:ue,slotsApi:xe},actions:{internal:{preload:wr,firstStart:c=>bc(c,!1),play:()=>Bl(!1),pause:()=>Nl(!1),togglePlay:Kr,toggleMuted:nr,openSettingsMenu:on,closeSettingsMenu:$r,openSettingsSubMenu:Io,closeSettingsSubMenu:qt,setVolume:Fn,startVolumeChanging:ri,stopVolumeChanging:Ri,setVideoStream:Fr,setAudioStream:Ui,setQuality:tt,setTrafficSavingEnabled:Mt,setHighQualityEnabled:_i,setPlaybackRate:bo,incrementPlaybackRate:$o,decrementPlaybackRate:sn,setSubtitle:yo,toggleSubtitle:qi,togglePictureInPicture:Ge,startScrubbing:Qi,progressScrubbing:zn,completeScrubbing:Jt,toggleChromecast:np,switchToActiveLive:Pi,switchFromAdsToVideo:Ha,switchFromVideoToAds:ep,skipAd:zs,setLiveWaitingStart:vc,setLiveWaitingRecover:tp,setLiveWaitingRecord:gc,getDebugTextData:ip,getTraceTextData:hc,getDebugPanelData:op,getVideoElement:Ws,seekTime:(c,x,R)=>no(c,x,R),clearDelayedBufferingCheckTimeout:Eo,seekEpisodeStartTime:zo,seekToPercent:Sn,getNextEpisode:$c,seekToNextEpisode:yc,getPrevEpisode:xc,seekToPrevEpisode:rp,startLogging:ui,stopLogging:To,startCameraManualRotation:mo,stopCameraManualRotation:Xt,moveCameraFocusPX:Si,holdCamera:eo,releaseCamera:xt,getVideoEpisodes:Fa,getPreviewThumbsData:sp,downloadVideo:qr,addLanguage:gf,setLanguage:Yt,nextMovie:it,videoRotate:si,correctSeekTimeToInteractive:Ko,replayInteractive:A,setLooped:yr,reportProblem:Et,setAutoplayNextEnabled:ai,setTimerNextVideoRunning:nn,prevVideoClick:rn,nextVideoClick:Cn,nextVideoAnnouncementShow:po,nextVideoAnnouncementClick:io,nextVideoAnnouncementAuto:Un,nextVideoAnnouncementCancel:xr},external:{firstStart:c=>bc(c,!0),play:()=>Bl(!0),pause:()=>Nl(!0),stop:()=>_c(!0),seekTime:c=>Cr(c),seekEpisodeStartTime:c=>Gr(c),setPlaybackRate:c=>ar(c),setAutoQualityLimits:c=>Qr(c),setMuted:sr,toggleSubtitle:qi,setVolume:Fn,returnFocusToEpisodes:T0,updateAdditionalSettingsItem:Po,addAdditionalSettingsItem:Us,removeAdditionalSettingsItem:Da,updateAdditionalContextItem:ro,addAdditionalContextItem:ln,removeAdditionalContextItem:so,updateAdditionalButton:Bi,addAdditionalButton:an,removeAdditionalButton:cr,setLiveLowLatency:ur,hideControls:()=>Uo(!1),showControls:()=>Uo(!0)}},callbacks:a,setUiCallbacks:c=>{ke={...c}},getAdmanWrapper:()=>ye,getLogger:()=>Be,getPlayer:()=>N,destroy:E0};return Pt};function Br(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),r=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:p}=gs(e[i],t||void 0);return{left:r?d:0,right:r?p:0,top:r?l:0,bottom:r?a:0,isDisplayed:r}}var Y2=["disabledControls$","additionalButtons"],j2=["interactiveTimeIndicator"],wl=(t,e,i,o)=>{if(t){for(let[n,r]of Object.entries(e))if(!Y2.includes(n)){let l=o||j2.includes(n);r.set(Br(t,i,n,l))}}};var ku=async(t,e,i)=>{await wo(),e&&i&&(i.focus(),t.set(!1))};var Z2=Se('<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 vm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function gm(t,e){D(e,!0);let[i,o]=De(),n=()=>C(a,"$contextMenuVisible$",i),r=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$,$=j(void 0);We(()=>{s($)&&Tt(()=>{u.set(s($))})});let w=k=>{let A=Vs(k),I=b1(s($));v.set(I),p.set(A),a.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},T=h(()=>n()?"opened":"");Nt(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return r()},get ariaLabel(){return l()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return s($)},set ref(k){B($,k,!0)},children:(k,A)=>{vm(k,{})},$$slots:{default:!0}}),H(),o()}var X2=t=>{t.stopPropagation()},J2=M("<div><!> <div></div> <div></div></div>"),ey={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
224
+ }`};function lm(t,e){D(e,!0),W(t,N2);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===am.ChromecastState.CONNECTED),n=g(()=>e.iconState===am.ChromecastState.CONNECTING);var r=Fe(),l=fe(r);{var d=p=>{var f=V2(),v=_(f),u=_(v),$=_(u);Ce(),h(u);var w=P(u);Ce(),h(v);var y=P(v),S=_(y),T=_(S);h(S),Ce(),h(y),h(f),O(()=>{De($,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),De(w,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),De(T,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)")}),b(p,f)},a=p=>{var f=R2();let v;var u=_(f),$=P(_(u),5);let w;h(u),h(f),O((y,S)=>{v=te(f,0,"svelte-8z1bf5",null,v,y),w=te($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:s(n)}),()=>({hidden:!s(o)})]),b(p,f)};L(l,p=>{i()?p(d):p(a,!1)})}b(t,r),H()}var O1=require("@vkontakte/videoplayer-shared/es2018");function Dd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,O1.noop),l=Ee().ui.t,d=g(()=>e.state===B1.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Rt(t,{get ariaLabel(){return s(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,p)=>{lm(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var B2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),O2={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 dm(t,e){W(t,O2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),r=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=Y(void 0),p=Y(void 0);function f(S){if(!s(p))return 0;let{width:T}=s(p).getBoundingClientRect(),k=T/2;return S<k?k+l():S>e.containerWidth-k?e.containerWidth-k-d():S}let v=g(()=>f(n()));var u=B2(),$=_(u);let w;var y=_($);be(y,()=>{var S;return(S=e.children)!=null?S:se}),h($),it($,S=>B(p,S),()=>s(p)),h(u),it(u,S=>B(a,S),()=>s(a)),O(S=>{at(u,`transform: translate(${s(v)}px, ${r()}px);`),w=te($,1,"tooltip svelte-5ygsa2",null,w,S),at($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,u)}var Su=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var D1=t=>!!(Math.round(Math.abs(t)/90)%2),H1=t=>Math.abs(t)/90%4===1;var D2=M('<div class="preview svelte-1wqg760"></div>'),H2=M('<div class="time svelte-1wqg760"> </div>'),F2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),U2={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 cm(t,e){D(e,!0),W(t,U2);let[i,o]=Oe(),n=()=>C(w,"$rotateAlpha",i),r=()=>C(y,"$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),$=Ee(),w=$.ui.rotateAlpha,y=$.ui.playerSize,S=Y(0),T=Y(0),k=Y(""),A=Y(0),I=Y(0),E=Y(0),R=Y(0),G=g(()=>Su(f(),v(),p())),q=g(()=>D1(n())),U=g(()=>H1(n())),Q=g(ce),J=g(()=>(s(U)?1:-1)*(s(S)/2-s(T)/2)),j=g(()=>s(J)*-1);Ue(()=>{(ue=>{B(S,ue.width,!0),B(T,ue.height,!0)})(ye())}),Ue(()=>{(ue=>{B(k,ue.imgSrc,!0),B(A,ue.imgWidth,!0),B(I,ue.imgHeight,!0),B(E,ue.imgOffsetX,!0),B(R,ue.imgOffsetY,!0)})(ke(f()))});function ce(){var qe;let ue=a()?l.MOBILE:l.DESKTOP,{isVertical:xe}=le(),Z=30;return(qe=s(G))!=null&&qe.text&&(Z+=16),(xe||s(q))&&(Z+=18,Z+=50),Math.min(Math.max(r().height-Z,0),ue)}function le(){let ue=e.previewThumbsData.frameWidth,xe=e.previewThumbsData.frameHeight,Z=xe>ue;return{width:ue,height:xe,isHorizontal:!Z,isVertical:Z}}function ye(){let{height:ue,isHorizontal:xe,isVertical:Z,width:qe}=le();return xe&&(ue=ue/qe*s(Q),qe=s(Q)),Z&&(qe=qe/ue*s(Q),ue=s(Q)),{width:qe,height:ue}}function ke(ue){let xe;e.previewThumbsData.isUV?xe=Math.floor(v()*ue/e.previewThumbsData.frequency):xe=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ue)));let Z=Math.floor(xe/e.previewThumbsData.countPerImage),qe=Math.floor(xe%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Je=xe%e.previewThumbsData.countPerRow,Pe=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Pe=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Pe++);let X=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(X=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Te=s(S)*X,Ke=s(T)*Pe,nt=-Je*s(S),mt=-qe*s(T);return{imgSrc:e.previewThumbsData.links[Z],imgWidth:Te,imgHeight:Ke,imgOffsetX:nt,imgOffsetY:mt}}var me=F2();let ae;var Ve=_(me);{var re=ue=>{var xe=D2();O(()=>at(xe,`width: ${s(S)}px; height: ${s(T)}px; background-image: url(${s(k)}); background-size: ${s(A)}px ${s(I)}px; background-position: ${s(E)}px ${s(R)}px;
225
+ transform: rotate(${n()}deg) ${s(q)?`translate(${s(J)}px, ${s(j)}px)`:""};
226
+ `)),b(ue,xe)};L(Ve,ue=>{s(k)&&ue(re)})}var N=P(Ve,2),He=_(N);{var _e=ue=>{var xe=Fe(),Z=fe(xe);{var qe=Pe=>{var X=Jr();O(Te=>he(X,Te),[()=>F("tooltip_episode_unfinished")]),b(Pe,X)},Je=Pe=>{var X=Jr();O(()=>he(X,s(G).text||"")),b(Pe,X)};L(Z,Pe=>{u()&&s(G).completed===!1?Pe(qe):Pe(Je,!1)})}b(ue,xe)};L(He,ue=>{s(G)&&ue(_e)})}h(N);var ge=P(N,2);{var de=ue=>{var xe=H2(),Z=_(xe,!0);h(xe),O(()=>he(Z,d())),b(ue,xe)};L(ge,ue=>{u()||ue(de)})}h(me),O(ue=>{ae=te(me,1,"timeline-preview svelte-1wqg760",null,ae,ue),at(me,`width: ${s(q)?s(T):s(S)}px;`)},[()=>({mobile:a()})]),b(t,me),H(),o()}var z2=M('<span class="time svelte-1jr6obn"> </span>'),W2=M("<!> <!>",1),q2={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 um(t,e){var ne,Be,ze,Me,We;D(e,!0),W(t,q2);let[i,o]=Oe(),n=()=>C(J,"$interactiveEpisodes$",i),r=()=>C(E,"$duration$",i),l=()=>C(I,"$position$",i),d=()=>C(le,"$isInteractiveExpectation$",i),a=()=>C(ce,"$isInteractiveTime$",i),p=()=>C(R,"$isLive$",i),f=()=>C(q,"$isMobile",i),v=()=>C(G,"$isActiveLive$",i),u=()=>C(A,"$bufferedProgress$",i),$=()=>C(me,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=Ee(),k=kt(),A=T.state.bufferedProgress$,I=T.state.positionWithScrubbing$,E=T.state.duration$,R=T.state.isLive$,G=T.state.isActiveLive$,q=T.ui.isMobile,U=k.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,Q=T.actions.internal.getPreviewThumbsData(),J=T.state.interactiveEpisodes$,j=T.state.isInteractive,ce=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,ye=T.actions.internal.correctSeekTimeToInteractive,ke=(ne=T.callbacks)==null?void 0:ne.onDisabledTimelineClick,me=T.ui.controls.disabledControls$,ae=(ze=(Be=T.callbacks)==null?void 0:Be.uiInfo)==null?void 0:ze.onTimelineMouseEnter,Ve=(We=(Me=T.callbacks)==null?void 0:Me.uiInfo)==null?void 0:We.onTimelineMouseLeave,re=T.ui.t,N=k.features.interactiveResponsiveUi,He=g(()=>j?n():U),_e=g(()=>gn(r())),ge=g(()=>gn(l())),de=g(()=>l()/r()),ue=g(()=>d()||a()),xe=Y(!1),Z=Y(""),qe=Y(0),Je=Y(0),Pe=Y(0),X=g(()=>({containerWidth:s(Je),translateXPx:s(qe),translateYPx:j&&Q?-36:-16,active:s(xe)&&w()&&!s(ue)&&!N,pointer:!k.features.timelinePreview||!Q||p()})),Te=re("aria_timeline"),Ke=g(()=>re("aria_timeline_value",{position:s(ge),duration:s(_e)}));function nt(Re){return!ye||!j?Re:ye(Re*r())/r()}function mt(Re){T.actions.internal.startScrubbing(nt(Re))}function vt(Re){a()||T.actions.internal.progressScrubbing(nt(Re))}function Tt(Re){T.actions.internal.completeScrubbing(nt(Re)),B(xe,!1)}function Qe(Re,tt,Mt){Zt(Re,tt,Mt),B(xe,!0)}function zt(Re,tt,Mt){Zt(Re,tt,Mt),B(xe,!0)}function Jt(){B(xe,!1)}function Zt(Re,tt,Mt){B(Pe,nt(Re),!0),B(qe,tt,!0),Mt&&B(Je,Mt,!0),B(Z,Wt(Re),!0)}function Wt(Re){let tt=gn((p()?1-Re:Re)*r());return p()?`-${tt}`:tt}var ie=W2(),Nt=fe(ie);dm(Nt,gs(()=>s(X),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Re,tt)=>{var Mt=Fe(),Qt=fe(Mt);{var et=oi=>{cm(oi,{get time(){return s(Z)},get isMobile(){return f()},get videoEpisodes(){return s(He)},get previewThumbsData(){return Q},get progress(){return s(Pe)},get duration(){return r()},get isInteractive(){return j}})},pi=oi=>{var st=z2(),Gt=_(st,!0);h(st),O(()=>he(Gt,s(Z))),b(oi,st)};L(Qt,oi=>{k.features.timelinePreview&&Q&&!p()?oi(et):oi(pi,!1)})}b(Re,Mt)},$$slots:{default:!0}}));var we=P(Nt,2);let ve=g(()=>$().has("TIMELINE"));Sa(we,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Te},ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return l()},get ariaValueText(){return s(Ke)},get loadedProgress(){return u()},get filledProgress(){return s(de)},get handleProgress(){return s(de)},get videoEpisodes(){return s(He)},onPointerDown:mt,onHandleMove:vt,onPointerMove:zt,onPointerUp:Tt,onPointerEnter:Qe,onPointerLeave:Jt,get onMouseEnter(){return ae},get onMouseLeave(){return Ve},get onDisabledClick(){return ke},get isInteractive(){return j},get disabled(){return s(ve)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:Tt,get ref(){return S()},set ref(Re){S(Re)}}),b(t,ie),H(),o()}var K2={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){D(e,!0),W(t,K2);let[i,o]=Oe(),n=()=>C(a,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ee(),a=d.ui.isMobile,p=d.ui.t,f=g(()=>gn(l())),v=g(()=>gn(r())),u=g(()=>r()/l()),$=g(()=>p("aria_timeline_value",{position:s(v),duration:s(f)})),w=g(()=>Math.round(s(u)*100));Sa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return s(w)},get ariaValueText(){return s($)},get filledProgress(){return s(u)},hideHandel:!0,get squareBorders(){return n()}}),H(),o()}var Q2=M("<div><!></div>"),G2=M("<div></div>"),j2={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){D(e,!0),W(t,j2);let[i,o]=Oe(),n=()=>C(S,"$isLive$",i),r=()=>C(A,"$isMobile",i),l=()=>C(I,"$disabled",i),d=()=>C(k,"$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),$=m(e,"ref",15,void 0),w=Ee(),y=kt(),S=w.state.isLive$,T=w.ads.duration,k=w.ads.position,A=w.ui.isMobile,I=oe(!1),E=g(()=>!v()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||p()));var R=Fe(),G=fe(R);{var q=Q=>{var J=Q2();let j;var ce=_(J);{var le=ke=>{Hd(ke,{get position(){return d()},get duration(){return a()}})},ye=ke=>{um(ke,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return s(E)},get withEpisodes(){return e.withEpisodes},get ref(){return $()},set ref(me){$(me)}})};L(ce,ke=>{p()?ke(le):ke(ye,!1)})}h(J),vs(J,()=>gl(f()&&y.features.usePerformanceFix,I,y.disableInvisibleComponentsTimeout)),O(ke=>j=te(J,1,"timeline svelte-41cp6d",null,j,ke),[()=>({withoutPadding:!u(),mobile:r(),"out-of-flow":l()})]),b(Q,J)},U=Q=>{var J=G2();let j;O(ce=>j=te(J,1,"timeline-stub svelte-41cp6d",null,j,ce),[()=>({mobile:r()})]),b(Q,J)};L(G,Q=>{s(E)?Q(q):Q(U,!1)})}b(t,R),H(),o()}var F1=require("@vkontakte/videoplayer-shared/es2018");var Y2=Se('<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 pm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(3),h(o),b(t,o)}var Z2=Se('<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 fm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var X2=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),J2=M('<span class="text svelte-1yhs2ga"> </span>'),ey=M('<span class="text count svelte-1yhs2ga"> </span>'),ty=M("<!> <!>",1),iy={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 le,ye,ke;D(e,!0),W(t,iy);let[i,o]=Oe(),n=()=>C(w,"$currentGridType$",i),r=()=>C(y,"$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=(ye=(le=v.callbacks)==null?void 0:le.onEpisodeChanged)!=null?ye:F1.noop,$=!!((ke=v.callbacks)!=null&&ke.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,T=v.ui.isMobile,k=v.ui.t,A=Y(void 0),I=me=>{var Ve,re,N;if(!!((Ve=v.callbacks)!=null&&Ve.onEpisodeClicked)){let He=Bs(me);y.set(He),S.set(!0),(N=(re=v.callbacks)==null?void 0:re.onEpisodeClicked)==null||N.call(re,He)}},E=Y(null),R=g(()=>a()/p());Ue(()=>{var ae;let me=Su(s(R),p(),f());me?((ae=s(E))==null?void 0:ae.time)!==me.time&&(u(me),B(E,me,!0)):B(E,null)});let G=g(()=>{var me;return((me=s(E))==null?void 0:me.text)||""}),q=g(()=>Xi(n(),"xl")?"FULL":Xi(n(),"m")&&V1(n(),"xl")?"COUNT":"SHORT"),U=g(()=>`${k("tooltip_episodes")}: ${s(G)}`),Q=async(me,ae,Ve)=>{await To(),(me==null?void 0:me.getAttribute("aria-expanded"))==="false"&&ae&&!Ve&&St(()=>{y.set(!1),me.focus()})};Ue(()=>{Q(s(A),r(),l())});var J=Fe(),j=fe(J);{var ce=me=>{let ae=g(()=>d()?"px-0":""),Ve=g(()=>!$);Rt(me,{get className(){var re;return`w-max btn-full-opacity btn-jc-l ${(re=s(ae))!=null?re:""}`},testId:"btn-episodes",click:I,get disabled(){return s(Ve)},get ariaExpanded(){return l()},get ariaLabel(){return s(U)},get ref(){return s(A)},set ref(re){B(A,re,!0)},children:(re,N)=>{var He=Fe(),_e=fe(He);{var ge=ue=>{var xe=X2(),Z=fe(xe),qe=_(Z,!0);h(Z);var Je=P(Z,2),Pe=_(Je);fm(Pe,{}),h(Je),O(()=>he(qe,s(G))),b(ue,xe)},de=ue=>{var xe=ty(),Z=fe(xe);pm(Z,{});var qe=P(Z,2);{var Je=X=>{var Te=J2(),Ke=_(Te,!0);h(Te),O(()=>he(Ke,s(G))),b(X,Te)},Pe=(X,Te)=>{{var Ke=nt=>{var mt=ey(),vt=_(mt,!0);h(mt),O(()=>he(vt,f().length)),b(nt,mt)};L(X,nt=>{s(q)==="COUNT"&&nt(Ke)},Te)}};L(qe,X=>{s(q)==="FULL"?X(Je):X(Pe,!1)})}b(ue,xe)};L(_e,ue=>{d()?ue(ge):ue(de,!1)})}b(re,He)},$$slots:{default:!0}})};L(j,me=>{s(E)&&me(ce)})}b(t,J),H(),o()}var Im=require("@vkontakte/videoplayer-shared/es2018");var ui=require("@vkontakte/videoplayer-core/es2018"),ft=require("@vkontakte/videoplayer-shared/es2018"),rs=require("@vkontakte/videoplayer-statistics/es2018");var Ye=require("@vkontakte/videoplayer-shared/es2018"),Ji=require("@vkontakte/videoplayer-shared/es2018");var U1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var oy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Tu=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=>(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ye.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ye.now)()]}),o())};(0,Ji.addScript)(oy,e,this.loadTimeout).then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ye.now)()]}),window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout))}).catch(l=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ye.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ye.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ye.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ye.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ye.now)()]}),!d&&(window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ye.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ye.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"}),$e(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ye.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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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")=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ye.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ye.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var A;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ye.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:r,adsContainer:l,adsVideoElement:d,slotId:a,params:p={},duration:f,previewParam:v}=e,u,$=this.playerState&&$e(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=(0,Ye.detectEmbed)(),S=(A=w?y:window.location.href)!=null?A:window.location.href,T={...p,dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o,preview:v,...u?{request_id:u}:{},duration:f,puid10:U1(i,o),puid11:n?0:1};v||delete T.preview;let k={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(k),this.adman=I,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}catch(I){Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[(0,Ye.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,r;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ye.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.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(r=(n=this.actions).switchFromAdsToVideo)==null||r.call(n,!i)}}togglePlay(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adsState){this.log({message:"toggle play"});let i=$e(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(){var i;this.watchDogTimeout&&this.stopWatchDog(),((i=this.adsState)!=null&&i.playbackState?$e(this.adsState.playbackState):void 0)!=="inactive"&&(this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout))}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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,r,l,d,a,p,f,v,u;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ye.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),(r=this.adman)==null||r.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,Ji.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var z1=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 mm=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 r of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=r.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let p=new Eu,{startTime:f,endTime:v}=p.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let p=new vm,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Eu=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 r=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return r+l+d+a}},vm=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}}),r=new Eu;for(let l of n)r.isTime(l)?i.texts.push({type:"timestamp",value:r.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},W1=mm;var ku=require("@vkontakte/videoplayer-shared/es2018"),Ea,Ei,gm=0,hm=!1,q1="",K1=(t,e=0,i=0)=>t<e&&t<i,Iu=(t,e=0,i=0)=>t>=e&&t<=i,ny=(t,e=0,i=0)=>t>e&&t>i,Q1=(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})=>Iu(t,p,f));let r=t>=gm,l=t<gm;if(gm=t,l&&(hm=!1),(0,ku.isNonNullable)(Ea)&&Iu(t,Ea.startTime,Ea.endTime)&&q1===e.value)return Ea;if(!(0,ku.isNonNullable)(Ei)&&(n!=null&&n.length)&&!hm){Ei=n.find(({startTime:p,endTime:f})=>Iu(t,p,f)||r&&K1(t,p,f)),Ea=void 0,!(0,ku.isNonNullable)(Ei)&&n[n.length-1].endTime<t&&(hm=!0);return}else{if(Iu(t,Ei==null?void 0:Ei.startTime,Ei==null?void 0:Ei.endTime))return Ea=Ei,Ei=void 0,q1=e.value,Ea;(r&&ny(t,Ei==null?void 0:Ei.startTime,Ei==null?void 0:Ei.endTime)||l&&K1(t,Ei==null?void 0:Ei.startTime,Ei==null?void 0:Ei.endTime))&&(Ei=void 0)}};var Pu={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"},ry={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"},Au=t=>{var e,i;return(i=(e=Pu[t])!=null?e:Pu[ry[t]])!=null?i:void 0};var G1=require("@vkontakte/videoplayer-shared/es2018"),JB=require("@vkontakte/videoplayer-statistics/es2018"),Mu=class{constructor(e,i,o,n=new G1.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 Ud=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Ud||{});var ns=t=>t!=null?t:0,_s=(t,e)=>{var n,r;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(ns(i==null?void 0:i.top)-ns(o==null?void 0:o.top)),left:Math.round(ns(i==null?void 0:i.left)-ns(o==null?void 0:o.left)),bottom:Math.round(ns(i==null?void 0:i.bottom)-ns(o==null?void 0:o.top)),right:Math.round(ns(i==null?void 0:i.right)-ns(o==null?void 0:o.left))}},Cl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:ns(e==null?void 0:e.width),height:ns(e==null?void 0:e.height)}};var Lu="off";var j1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:p,videoEpisodes:f,previewThumbsData:v,uiConfig:u,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:k,replayInteractive:A,stopPlayer:I,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,additionalButtons:G,additionalSettingsMenuItems:q,additionalContextMenuItems:U,playPrevVideo:Q,playNextVideo:J,looped:j=!1,statistics:ce,saveRate:le,internalsExposure:ye,playerView:ke})=>{var Hv,Fv,Uv;let me={...$,configName:[...(Hv=$.configName)!=null?Hv:[],"ui"],isAudioDisabled:l,live:{...(Fv=$.live)!=null?Fv:{},isLiveCatchUpMode:!!n}},ae=u,Ve=ft.TracerFactory.createRootTracer(ae.features.tracer),re=Ve.createComponentTracer("Store"),N=w||new ui.Player(me,Ve);ye==null||ye.expose({corePlayer:N});let He=new ft.Logger,_e=new Tu(He,{loadTimeout:ae.ads.loadTimeout,initTimeout:ae.ads.initTimeout,runtimeTimeout:ae.ads.runtimeTimeout,useAdmanFromNPM:ae.ads.useAdmanFromNPM,volumeMultiplier:ae.ads.volumeMultiplier,isVsidOriginal:ae.ads.isVsidOriginal}),ge=va.getInstance(),de=p==null?void 0:p.pictureInPictureApi,ue=p==null?void 0:p.annotationsApi,xe=p==null?void 0:p.slotsApi,Z=He.createComponentLog("Store"),qe,Je,Pe={},X=new nu,Te=new ft.Subscription,Ke=ce&&ce.oneStat?ei(ce.oneStat.vsid$):fr(void 0),nt=oe(Vs()),mt=oe(!1),vt=(Uv=de==null?void 0:de.info.isActive$)!=null?Uv:new ft.ValueSubject(!1),Tt=oe(0),Qe=oe(!1),zt=oe(!1),Jt=oe([]),Zt=(0,ft.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>Jt.update(x=>[...x,c])),Wt=fr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ie=async c=>{var ee;let x=Object.values(ft.InterfaceLanguage).includes(c);if(ae.downloadVKLanguages&&(x&&ae.updateBuiltinLanguages||!$f(c))){let Ne;try{Ne=await(0,ft.loadVKLangPack)(c,kh,Ph)}catch(pt){(ee=ce==null?void 0:ce.oneStat)==null||ee.logError({errorType:"VKLangPack",fatal:!1}),ge==null||ge.report(pt,{errorType:"VKLangPack",fatal:!1})}Ne&&(bf({language:c,pack:Ne,fallback:ae.defaultLanguage}),Nt.set(c))}$f(c)&&Nt.set(c)},Nt=oe(t),we=oe(e);ie(t);let ve=(c,x)=>{let V=$e(Nt);return yf(V,c,x,ae.defaultLanguage)},ne=oe("thumb");ne.subscribe(c=>{c==="ads"&&Me()});let Be=(()=>{let c=_i([Wt,ne],([x,V])=>x?"crashed":V);return{...c,is:x=>$e(c)===x}})(),ze=oe(),Me=()=>{ze.set({muted:N.info.muted$.getValue()})},We=(()=>{let c=oe(new Set(y));return{...c,add:x=>{c.update(V=>new Set([...V].concat(x)))},remove:x=>{c.update(V=>{let ee=[...V];return new Set(Array.isArray(x)?ee.filter(Ne=>!x.includes(Ne)):ee.filter(Ne=>Ne!==x))})},includes:x=>{let V=$e(c);return Array.isArray(x)?x.every(ee=>V.has(ee)):V.has(x)}}})(),Re=oe({width:0,height:0});re.log("create store"),Z({message:"create store"});let tt=c=>{let x=c.container,V=()=>{Gt=new MutationObserver(Ne=>{let{removedNodes:pt}=Ne[0];pt.length&&x.append(N.experimental.element$.getValue())}),Gt.observe(x,{childList:!0})},ee=N.experimental.element$.getValue();if(ee)x.append(ee),V();else{let Ne=N.experimental.element$.pipe((0,ft.filter)(pt=>!!pt),(0,ft.once)()).subscribe(pt=>{x.append(pt),V()});Te.add(Ne)}},Mt=c=>{Z({message:`init video, config: ${JSON.stringify(c)}`}),S?tt(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),qe=c},Qt=new ft.Subject,et=c=>Qt.next(c),pi=new ft.Subject,oi=new ft.Subject,st=new ft.Subject,Gt=null,ni={actionRewind$:pi,actionSeek$:oi,inPiP$:vt,inFullscreen$:new ft.Observable(c=>nt.subscribe(x=>c.next(x))),actionSetSubtitle$:st,nextMovie$:Qt},mi={actionSeek$:oi,playerSize$:new ft.Observable(c=>Re.subscribe(x=>c.next(x)))};if(ce){let{oneStat:c,thinOneStat:x,mediascopePixel:V,statSubscription:ee}=ce;c&&(S||ee.add(c.attachTo(N)),ee.add(c.attachToUi(ni)),ee.add(c.attachToAds(_e.events)),c.authorize(r).catch(Ne=>{Z({message:`onestat auth error ${String(Ne)}`})}),V&&V.attachTo(N)),x&&(ee.add(x.attachTo(N,_e.events)),ee.add(x.attachToUi(mi)),ee.add(x.attachToAds(_e.events)),x.authorize(r))}if(ge){let c=new ft.Subscription,x=(V,ee)=>c.add(V.subscribe(ee));if(x(N.events.managedError$,V=>{ge.logIError(V)}),x(N.events.fatalError$,V=>{ge.logIError(V,!0)}),ce){let{oneStat:V}=ce;V&&x(V.experimental.error$,ee=>{ge.logIError(ee)})}ge.sentrySubscription.add(c)}let go=()=>{ui.clientChecker.device.isIOS&&Je&&m1(Je).catch(c=>{Z({message:`exitIosSafariFullscreen failed: ${c}`})})};Te.add(N.experimental.element$.subscribe(c=>{c&&(Je=c,c.classList.add("player-media"),ha(de)&&de.updateVideoElement(),S&&c.setAttribute("pip","false"),ke==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;go(),(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 x,V;ha(de)&&await(de==null?void 0:de.revealPictureInPicture());let c=N.info.muted$.getValue();(x=a==null?void 0:a.onStarted)==null||x.call(a),(V=Pe.onStarted)==null||V.call(Pe,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var V;(V=a==null?void 0:a.onSeek)==null||V.call(a,c,x)})).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 V;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((V=a==null?void 0:a.onTimeupdate)==null||V.call(a,x,c),_e.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=a==null?void 0:a.onCrashed)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=a==null?void 0:a.onRecoverableError)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{Qe.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{zt.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(k!=null&&k.getValue()&&We.add(vd),We.add("PLAY_BUTTON")):We.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=a==null?void 0:a.onLiveTime)==null||x.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=a==null?void 0:a.onStalledChanged)==null||x.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=a==null?void 0:a.onLiveEnded)==null?void 0:x.call(a))})).add(_e.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(_e.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(_e.events.loadError$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(_e.events.init$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(_e.events.ready$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(_e.events.started$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onStarted)==null?void 0:V.call(x,c)})).add(_e.events.timeRemained$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:V.call(x,c)})).add(_e.events.ended$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onCompleted)==null?void 0:V.call(x,c)})).add(_e.events.empty$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(_e.events.clicked$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClicked)==null?void 0:V.call(x,c)})).add(_e.events.closed$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClosed)==null?void 0:V.call(x,c)})).add(_e.events.error$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onError)==null?void 0:V.call(x,c)})).add(_e.events.paused$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(_e.events.resumed$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let io=new ft.Subscription,Xt=()=>{var pt,Ht,Kt;let{debugLog:c}=ae,x,V="#9df7b7",ee="#efd169";if(c&&c!==!0){let{colors:Ft}=c;x=c.tag,V=(pt=Ft==null?void 0:Ft[0])!=null?pt:V,ee=(Kt=(Ht=Ft==null?void 0:Ft[1])!=null?Ht:Ft==null?void 0:Ft[0])!=null?Kt:ee}let Ne=x?`: ${x}`:"";io.add(N.events.log$.subscribe(Ft=>{console.debug(`%c sdk${Ne} `,`background:${V};`,`sdk component: ${Ft.component}`,Ft.message)})).add(He.log$.subscribe(Ft=>{console.debug(`%c ui${Ne} `,`background:${ee};`,`ui component: ${Ft.component}.`,Ft.message)}))},Ii=()=>{io.unsubscribe()},oo=(c,x)=>{re.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},yt=(c=!1)=>{re.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},bt=(c,x,V)=>{re.log("move camera focus px",{xpx:c,ypx:x,dt:V}),N.moveCameraFocusPX(c,x,V)},Vi=()=>{N.holdCamera()},qo=()=>{N.releaseCamera()},z=fr(N.info.position$.getValue(),c=>{let x,V,ee=()=>{let Ne=N.info.playbackState$.getValue(),pt=N.info.isLive$.getValue(),Ht=N.info.duration$.getValue(),Kt=N.info.position$.getValue();if(Ne&&[ui.PlaybackState.PLAYING,ui.PlaybackState.PAUSED].includes(Ne)){let Ft=pt?Kt-Ht:N.getExactTime();Ft!==V&&c(Ft),V=Ft}x=requestAnimationFrame(ee)};return ee(),()=>cancelAnimationFrame(x)}),Pt=ei(N.info.playbackState$),ci=ei(N.info.currentBuffer$),Lt=ei(N.info.isEnded$),ct=ei(N.info.isLive$),ot=ae.features.playbackRate?ei(N.info.canChangePlaybackSpeed$):fr(!1),gt=ei(N.info.liveBufferTime$),$i=ei(N.info.volume$),Ut=ei(N.info.muted$),Nn=ru(N.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===ui.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.TRAFFIC_SAVING),yi=ru(N.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===ui.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.HIGH_QUALITY),ho=ei(N.info.autoQualityLimitingAvailable$),Ri=ei(N.info.availableQualities$),xt=ei(N.info.availableQualitiesFps$),ki=ei(N.info.chromecastState$),tn=ei(N.info.chromecastDeviceName$),on=ei(N.info.currentFormat$),Ni=ei(N.info.throughputEstimation$),no=ei(N.info.videoBitrate$),Ko=ei(N.info.intrinsicVideoSize$),_n=ei(N.info.duration$),Bn=ei(N.info.isAudioAvailable$),xi=null,bn=N.info.isBuffering$,ko=fr(bn.getValue(),c=>{let x=bn.subscribe(V=>{V&&xi===null?xi=window.setTimeout(()=>{c(bn.getValue()),xi=null},ae.loaderDelay):c(V)});return()=>{x.unsubscribe(),xi&&clearTimeout(xi)}}),Po=()=>{xi&&clearTimeout(xi),xi=null},_o=_i([_n,ct],([c,x])=>x?-c:c),nr=_i([Pt],([c])=>c===ui.PlaybackState.PLAYING),On=ei(N.info.atLiveEdge$),Dn=ei(N.info.atLiveDurationEdge$),$n=ei(N.info.position$),Br=_i([$n,_n],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Hn=_i([ki],([c])=>c===ui.ChromecastState.CONNECTED),ss=ei(N.info.availableVideoStreams$),Or=ae.features.audioLanguages?ei(N.info.availableAudioStreams$):fr([]),Wi=ei(N.info.currentVideoStream$),Fn=ei(N.info.currentAudioStream$),yn=c=>{c.language&&vf(c.language),N.setVideoStream(c)},Un=c=>{c.language&&vf(c.language),N.setAudioStream(c),ae.features.userVideoPrefs&&i&&_f(ae.userSalt,String(i),{audioTrackId:c.id})},Qo=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ee=>"isDefault"in ee&&ee.isDefault)),ae.features.userVideoPrefs&&i){let ee=du(ae.userSalt,String(i));if(ee!=null&&ee.audioTrackId){let Ne=c.find(pt=>pt.id===ee.audioTrackId);x=Ne!=null?Ne:x}}let V=t1();return V&&(x!=null||(x=c.find(({language:ee})=>V===ee))),x!=null||(x=c.at(0)),x},zn=!1;Te.add(N.info.availableAudioStreams$.subscribe(c=>{if(!zn&&c.length){let x=Qo(c);x&&(N.setAudioStream(x),zn=!0)}}));let xn=!1;Te.add(N.info.availableVideoStreams$.subscribe(c=>{if(!xn&&c.length){let x=Qo(c);x&&(N.setVideoStream(x),xn=!0)}}));let rr=oe(void 0),sr=ei(N.info.isAutoQualityEnabled$,c=>c&&rr.set(void 0)),Dr=ei(N.info.currentQuality$,()=>rr.set(void 0)),Wn=_i([rr,Dr],([c,x])=>c!=null?c:x),ar=_i(on,c=>c!==ui.VideoFormat.MPEG),ut=_i([Ri,xt,sr,Wn,ar],([c,x,V,ee,Ne])=>{let pt=[];Ne&&pt.push({value:"auto",displayValue:ve("auto_quality_option"),selected:V});let Ht=c.filter(Kt=>!(0,ft.isInvariantQuality)(Kt));for(let Kt of Ht){let Ft=x[Kt];pt.push({value:Kt,displayValue:`${Kt}${Ft?z1(Ft):""}`,selected:V?!1:Kt===ee})}return pt}),ti=ei(N.info.currentPlaybackRate$),qn=_i([ti,On,Dn],([c,x,V])=>{let ee=V||S?1:ae.controls.playbackRateMin,Ne=x?1:ae.controls.playbackRateMax,pt=ae.controls.playbackRateStep,Ht=[];for(let Kt=ee;Kt<=Ne;Kt+=pt)Ht.push({value:Kt,displayValue:Kt===1?ve("playback_rate_1"):ve("playback_rate",{multiplier:Kt.toString(10)}),selected:c===Kt});return Ht}),ri={displayValue:ve("subtitles_off"),value:Lu,language:""},ro=oe({...ri}),nn=ae.features.subtitles?ei(N.info.availableTextTracks$):fr([]),wn=qh(),Ao=_i([nn,ro],([c,x],V)=>{var pt;let ee=[],Ne=c.find(({id:Ht})=>Ht===x.value);if(Ne!=null&&Ne.url){let[,Ht]=(pt=wn.find(Ne.url))!=null?pt:[];if(Ht){V(Ht);return}X.download(Ne.url).then(Kt=>{if(!Kt||X.isDestroyed())return;let Ft=new W1,Cs=Ne.language;if(Cs){let R0=!!Ne.isAuto,N0=Ft.parse(Kt,Cs);ee.push({lang:Cs,subtitles:N0,isAuto:R0,id:Ne.id})}wn.add(Ne.url,ee),$e(ro).value===x.value&&V(ee)}).catch(Kt=>{var Ft;(Ft=ce==null?void 0:ce.oneStat)==null||Ft.logError({errorType:"Subtitles download",fatal:!1}),ge==null||ge.report(Kt,{errorType:"Subtitles download",fatal:!1})})}V(ee)}),rn=_i([ti,nr,ro],([c,x,V],ee)=>{let Ht;if(N.info.isLive$.getValue()&&x&&V.value!==ri.value){let Ft=()=>{let Cs=1e3/(3*c);Ht=setTimeout(Ft,Cs),ee(Date.now())};return Ft(),()=>clearTimeout(Ht)}}),Mo=_i([nn,ro],([c,x])=>{if(!c.length)return[];let V=[];for(let{language:ee,isAuto:Ne,id:pt}of c){let Ht=ee&&Au(ee);ee&&Ht&&V.push({displayValue:Ne?ve("subtitles_auto",{language:Ht}):Ht,value:pt,selected:(x==null?void 0:x.value)===pt,isAuto:Ne,language:ee})}return V.length?(V.unshift({...ri,selected:(x==null?void 0:x.value)===ri.value}),V):[]}),bo={available:[],prev:[]},vr=()=>{var x,V;let c=N.experimental.getCurrentTime$.getValue();return(V=(x=c==null?void 0:c())!=null?x:Je==null?void 0:Je.currentTime)!=null?V:0},gr=_i([z,ro,Ao,rn],([c,x,V,ee])=>{var pt;let Ne=N.info.isLive$.getValue();if(Ne&&bo.prev!==V){let Ht=V.find(({id:Ft})=>Ft===x.value),Kt=bo.prev.find(({id:Ft})=>Ft===x.value);if(Ht){let Ft={...Ht,subtitles:[...(pt=Kt==null?void 0:Kt.subtitles)!=null?pt:[],...Ht.subtitles]};bo.available=[Ft],bo.prev=V}}if(x&&x.value!==ri.value){let Ht=Ne?vr():c,Kt=Ne?bo.available:V;return Q1(Ht,x,Kt,Ne)}}),Kn=_i([gr],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(ro.subscribe(c=>{var x,V;if(c.value===ri.value)(x=a==null?void 0:a.onSubtitleOff)==null||x.call(a);else{let ee=Object.entries(Pu).find(([Ne,pt])=>pt===c.displayValue);(V=a==null?void 0:a.onSubtitleOn)==null||V.call(a,ee?ee[0]:"")}}));let Hr=oe(!0),Cn=_i([ci,_o,$n,gt],([c,x,V,ee])=>{var Kt;let Ne=(Kt=c==null?void 0:c.end)!=null?Kt:0;if(!ee)return Ne/x;let Ht=-V+ee-x;return(Ne-Ht)/x}),hr=ei(N.info.availableSources$),lr=_i([hr],([c])=>Object.keys((c==null?void 0:c[ui.VideoFormat.MPEG])||{}).length>0),_r=()=>{var V,ee,Ne;let c=Object.keys(((ee=(V=N.info.availableSources$)==null?void 0:V.getValue())==null?void 0:ee[ui.VideoFormat.MPEG])||{}),x=(0,ft.getHighestQuality)(c)||ft.VideoQuality.Q_144P;return(Ne=qe.sources[ui.VideoFormat.MPEG])==null?void 0:Ne[x]},sn=()=>{var x;let c=_r();if(c)re.log("download video",{url:c}),Uh(c,((x=qe==null?void 0:qe.meta)==null?void 0:x.title)||"video");else{let V="There is no URL for download video";re.log("download video",{message:V}),Z({message:V})}},qt=()=>{Z({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?dr(bi()):wt(!c)},Lo=()=>{var c;if(At.ui.settingsMenu.visible$.set(!1),!$e(At.ui.settingsSubMenu.visible$)){let x=$e(At.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&x){let ee=Cl(x),Ne={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ee,position:Ne,name:"settings"})}}re.log("close settings menu")},Fr=async(c,x=()=>Promise.resolve())=>{var Ne;At.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),At.ui.settingsMenu.visible$.set(!0),await x();let V=$e(At.ui.settingsMenu.ref$),ee=Ks();if((Ne=a==null?void 0:a.uiInfo)!=null&&Ne.onSettingsMenu&&V&&ee){let Ht=Cl(V),Kt=_s(V,ee);a.uiInfo.onSettingsMenu({visible:!0,size:Ht,position:Kt,name:"settings"})}re.log("open settings menu",{wasOpenedByKeyboard:c})},br=(c,x=!1)=>{var pt;At.ui.settingsSubMenu.visible$.set(!1);let V=$e(At.ui.settingsMenu.ref$),ee=Ks(),Ne=$e(At.ui.settingsMenu.visible$);if((pt=a==null?void 0:a.uiInfo)!=null&&pt.onSettingsMenu&&V&&ee)if(Ne&&!x){let Kt=Cl(V),Ft=_s(V,ee);a.uiInfo.onSettingsMenu({visible:!0,size:Kt,position:Ft,name:"settings"})}else{let Kt=Cl(c),Ft={top:0,left:0,bottom:0,right:0},Cs=$e(At.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Kt,position:Ft,name:Cs})}re.log("close settings sub menu")},as=(c,x)=>{var ee;At.ui.settingsSubMenu.visible$.set(!0),At.ui.settingsSubMenu.ref$.set(x),At.ui.settingsSubMenu.name$.set(c);let V=Ks();if((ee=a==null?void 0:a.uiInfo)!=null&&ee.onSettingsMenu&&x&&V){let pt=Cl(x),Ht=_s(x,V);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:pt,position:Ht})}re.log("open settings sub menu",{name:c})},bi=()=>{var x;let c=Math.max(ae.volumeMinRestore,(x=su())!=null?x:0);return c===0?ae.volumeDefault:c},dr=c=>{let x=c===0?bi():c,V=N.info.muted$.getValue();Z({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let ee=!l||Be.is("ads");V&&c>0&&ee&&(V=!1,ff(!1)),N.setVolume(c,V),_e.setVolume(c),lf(x)},wt=c=>{let x=N.info.volume$.getValue();Z({message:`set muted, currentVolume: ${x}, mute: ${c}`});let V=Be.is("ads");if(N.setMuted(c,V),_e.setVolume(c?0:x),(!V||!c)&&ff(c),!c&&x===0){let ee=bi();N.setVolume(ee),lf(ee),_e.setVolume(ee)}},ai=oe(!1),Go=c=>{var x,V;re.log("set looped",{isLooped:c}),ai.set(c),N.setLooped(c),(V=(x=a==null?void 0:a.uiInfo)==null?void 0:x.onLoopedChanged)==null||V.call(x,c)};Go(j);let an=()=>{var c,x;(x=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},Sn=(c,x=!1)=>{var V;Z({message:`set autoplayNextEnabled, value: ${c}`}),re.log("set autoplay next enabled",{autoplayNextEnabled:c}),At.ui.autoplayNextEnabled$.set(c),n1(c),x&&((V=a==null?void 0:a.onSetAutoplayNextEnabled)==null||V.call(a,c))},ln=c=>{Z({message:`set timerNextVideoRunning, value: ${c}`}),re.log("set timer next video running",{timerNextVideoRunning:c}),At.ui.timerNextVideoRunning$.set(c)},uo=(c=!0)=>{var ee;let x=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{x=(ee=a==null?void 0:a.onPrevVideoClick)==null?void 0:ee.call(a)}catch(Ne){Z({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Tn("prev")||Q()},so=(c=!0)=>{var ee;let x=!0;if(c&&(a!=null&&a.onNextVideoClick))try{x=(ee=a==null?void 0:a.onNextVideoClick)==null?void 0:ee.call(a)}catch(Ne){Z({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Tn("next")||J()},Tn=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:V,playbackStatusShow:ee}}=ae;return V&&ee&&!x?(At.ui.aboutToGoNextVideo.set(c),At.ui.userActionsDisabled.set(!0),!0):!1},$r=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Ur=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},zr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},qi=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},rt=()=>{N.prepare()},Dt=()=>{(0,ft.assertNonNullable)(At);let c=$e(At.ui.controls.disabledControls$),x=$e(At.playerPhase),V={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(Z({message:"toggle play"}),x==="ads"){V.action="play",re.log("toggle adman play",V),_e.togglePlay();return}let ee=()=>{var pt;Z({message:"toggle play, call player.play"}),V.action="play",N.play(),(pt=a==null?void 0:a.onPlay)==null||pt.call(a)},Ne=()=>{var pt;Z({message:"toggle play, call player.pause"}),V.action="pause",N.pause(),(pt=a==null?void 0:a.onPause)==null||pt.call(a)};if(N.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),pi.next(),oi.next(rs.SeekAction.REWIND),S){A==null||A();return}N.seekTime(0),ee()}else N.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING?ee():Ne();re.log("toggle play",V)},Pi=(c,{changeReason:x="default",appliesTo:V="to-video"}={})=>{Z({message:`set quality, quality: ${c}`}),re.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ae.features.qualityDetailsSubMenuEnabled?(au({type:"exact_quality",quality:c,videoId:i},V),_d(),N.setPredefinedQualityLimits(ui.PredefinedQualityLimits.UNKNOWN)):df(i,c),rr.set(c),N.setQuality(c)):ae.features.qualityDetailsSubMenuEnabled?x==="default"&&(yo("auto_quality",V),$e(Nn)&&$o(!1),$e(yi)&&Ki(!1)):_d()},$o=(c,x="as-default")=>{Z({message:`set trafficSavingEnabled, value: ${c}`}),re.log("set traffic saving enabled",{trafficSavingEnabled:c});let V=c?ui.PredefinedQualityLimits.TRAFFIC_SAVING:ui.PredefinedQualityLimits.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?(po(V,x),hd(!1)):(N.setPredefinedQualityLimits(V),hd(c))},Ki=(c,x="as-default")=>{Z({message:`set highQualityEnabled, value: ${c}`}),re.log("set high quality enabled",{highQualityEnabled:c}),po(c?ui.PredefinedQualityLimits.HIGH_QUALITY:ui.PredefinedQualityLimits.UNKNOWN,x)},po=(c,x)=>{c!==ui.PredefinedQualityLimits.UNKNOWN&&($e(ho)&&!$e(sr)&&Pi("auto",{appliesTo:x,changeReason:"limit-changed"}),yo(c,x)),N.setPredefinedQualityLimits(c)},yo=(c,x)=>{au({type:c,videoId:i},x),x==="as-default"&&au({type:c,videoId:i},"to-video")},Vo=c=>{re.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ae.features.saveRate&&le&&!N.info.isLive$.getValue()&&i1(c)},dn=()=>{let c=$e(qn),x=c.findIndex(({selected:ee})=>ee);if(x===c.length-1)return;let V=c[x+1];Vo(V.value)},Qi=()=>{let c=$e(qn),x=c.findIndex(({selected:ee})=>ee);if(x===0)return;let V=c[x-1];Vo(V.value)},Gi=(c={...ri,selected:!1})=>{re.log("set subtitles",{...c}),c.value!==ri.value&&st.next(c.isAuto?c.value+"_auto":c.value),ro.set(c),hf(c.value===ri.value?void 0:c.language),ae.features.userVideoPrefs&&i&&_f(ae.userSalt,String(i),{subtitleTrackId:c.value===ri.value?void 0:c.value})},xo=()=>{re.log("toggle subtitles");let c=$e(Mo),x=$e(ro),V=$e(Nt);if((x==null?void 0:x.value)===ri.value){let ee=c.filter(Ne=>Ne.value!==ri.value).find(Ne=>Ne.value===V)||c[1];Gi(ee)}else Gi()},En=oe(!0),ji=c=>{En.set(c)},cn=(c,x,V=!0)=>{var ee;if(Z({message:`seek to time, time: ${c}`}),re.log("seek to time",{time:c,action:x,forcePrecise:V}),oi.next(x),N.info.isLive$.getValue()){let Ne=N.info.duration$.getValue(),pt=Math.min(0,Ne+c);N.seekTime(pt,V)}else{if(k!=null&&k.getValue())return;N.info.isEnded$.getValue()&&(Z({message:"seek after ended, call callbacks.onPlay"}),(ee=a==null?void 0:a.onPlay)==null||ee.call(a)),N.seekTime(Dv(c),V)}},yr=c=>{Z({message:`seek to episode start time: ${c}`}),re.log("seek to episode start time",{time:c}),cn(c,rs.SeekAction.EPISODE,!0)},Wr=(c,x)=>{Z({message:`seek to percent, percent: ${c}`}),re.log("seek to percent",{percent:c,action:x});let V=$e(_o)*c;cn(V,x,!1)},Qn=c=>{Z({message:`seek external, time: ${c}`}),re.log("seek external",{time:c}),oi.next(rs.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},ls=c=>{var ee,Ne;let x=(ee=c.max)!=null?ee:"none",V=(Ne=c.min)!=null?Ne:"none";Z({message:`set auto quality limitation. Max: ${x}. Min: ${V}`}),re.log("set auto quality limits",{max:x,min:V}),N.setAutoQualityLimits(c)},xr=c=>{Z({message:`seek external to episode start time: ${c}`}),re.log("seek external to episode start time",{time:c}),cn(c,rs.SeekAction.EPISODE,!0)},Ro=c=>{Z({message:`set playback rate to: ${c}`}),re.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},No=oe(void 0),Gn=oe(!1),qr=c=>{Z({message:`start scrubbing, progress: ${c}`}),re.log("start scrubbing",{progress:c}),Gn.set(!0),Kr(c)},Kr=c=>{No.set(c)},Ge,jt,pe=()=>{No.set(void 0),Gn.set(!1)},Ct=()=>{clearTimeout(jt),clearTimeout(Ge),Ge=window.setTimeout(()=>{pe()},500),Je==null||Je.removeEventListener("seeked",Ct)},si=c=>{Z({message:`complete scrubbing, progress: ${c}`}),re.log("complete scrubbing",{progress:c}),Wr(c,rs.SeekAction.SLIDER),$e(At.ui.isMobile)&&$e(At.state.currentFormat$)===ui.VideoFormat.HLS?(Je==null||Je.addEventListener("seeked",Ct),jt=window.setTimeout(()=>{Ct()},300)):pe()},Bi=_i([z,_o,No],([c,x,V],ee)=>{ee((0,ft.isNonNullable)(V)?V*x:c)}),wi=oe(!1),Oi=()=>{wi.set(!0)},Ze=()=>{wi.set(!1)},Bt=_i([Re],([{width:c}],x)=>{let V=R1(c);x(V)}),Ci=oe(!1),jo=G.filter(c=>zh(c)),un=_i([Bt,Ci],([c,x])=>x?jo.filter(V=>!V.hideOnMobile):jo.filter(V=>{var ee;return!((ee=V.hideOnDesktopGridTypes)!=null&&ee.includes(c))})),fo=oe(G.filter(c=>Wh(c))),Qr=_i([fo,Bt],([c,x])=>c.filter(V=>{var ee;return!((ee=V.hideOnDesktopGridTypes)!=null&&ee.includes(x))})),wr=_i([Qr,un],([c,x])=>[...ae.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...ae.features.additionalButtons?x.map((V,ee)=>{var Ne;return{id:ee,weight:ee,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(Ne=V.ariaLabel)!=null?Ne:V.tooltip,tooltipText:V.tooltip}}):[]]),gi=oe(q),Ai=_i([gi],([c])=>ae.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),In=(c,x)=>{let V=$e(fo).map(ee=>ee.id!==c?ee:{...ee,...x});fo.set(V)},jn=c=>{let x=$e(fo);if(x.some(V=>V.id===c.id)){Z({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),fo.set(x)},Cr=c=>{let x=$e(fo);if(!x.some(V=>V.id===c)){Z({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),fo.set(x)},wo=c=>{oi.next(rs.SeekAction.LIVE),Z({message:"live switch to low latency "+c}),re.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Fa=(c,x)=>{let V=$e(gi).map(ee=>ee.id!==c?ee:{...ee,...x});gi.set(V)},qs=c=>{let x=$e(gi);if(x.some(V=>V.id===c.id)){Z({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),gi.set(x)},$t=c=>{let x=$e(gi);if(!x.some(V=>V.id===c)){Z({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),gi.set(x)},lt=oe(U),mo=_i([lt],([c])=>ae.features.additionalContextMenuItems?c:[]),Yo=(c,x)=>{let V=$e(lt).map(ee=>ee.id!==c?ee:{...ee,...x});lt.set(V)},Yi=c=>{let x=$e(lt);if(x.some(V=>V.id===c.id)){Z({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),lt.set(x)},li=c=>{let x=$e(lt);if(!x.some(V=>V.id===c)){Z({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),lt.set(x)},Di=_i([Ci,Wt],([c,x],V)=>{V(c&&x)}),ws=()=>{oi.next(rs.SeekAction.LIVE),Z({message:"switch to active live"}),re.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING&&At.actions.internal.togglePlay()},Ol=()=>{re.log("skip adman"),_e.skip()},hc=(c=!0)=>{var ee;(0,ft.assertNonNullable)(At),Z({message:`switch from ads to video, callPlay: ${c}`}),re.log("switch from ads to video",{callPlay:c}),ne.set("video"),c&&N.play(),l&&wt(!0);let x=(ee=$e(ze))==null?void 0:ee.muted,V=!N.info.muted$.getValue();x!==void 0&&!V&&wt(x),ze.set(void 0)},rp=()=>{(0,ft.assertNonNullable)(At),Z({message:"switch from video to ads"}),re.log("switch from video to ads"),At.actions.internal.pause(),go(),ne.set("ads")},_c=c=>{(0,ft.assertNonNullable)(At);let x=c?"LiveWaitingStart":"thumb";re.log("set live waiting start",{state:c,playerPhase:x}),ne.set(x)},sp=c=>{(0,ft.assertNonNullable)(At);let x=c?"LiveWaitingRecover":"thumb";re.log("set live waiting recover",{state:c,playerPhase:x}),ne.set(x)},bc=c=>{(0,ft.assertNonNullable)(At);let x=c?"LiveWaitingRecord":"thumb";re.log("set live waiting record",{state:c,playerPhase:x}),ne.set(x)},ap=()=>((0,ft.assertNonNullable)(At),re.log("get debug text data"),Hh(N,qe,At,Ve.getTraceId())),$c=()=>((0,ft.assertNonNullable)(At),JSON.stringify(Ve.getFinishedSpans())),lp=()=>((0,ft.assertNonNullable)(At),Fh(N,qe,At)),Ks=()=>Je,yc=()=>{Z({message:"toggle chromecast"}),re.log("toggle chromecast"),N.toggleChromecast()},Dl=c=>{var V;if((0,ft.assertNonNullable)(At),N.info.isEnded$.getValue())return;let x=!c;if($e(At.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${x}`}),re.log("pause ads",{internalCall:x}),_e.pause();return}Z({message:`pause video, internalCall: ${x}`}),re.log("pause video",{internalCall:x}),x&&((V=a==null?void 0:a.onPause)==null||V.call(a)),N.pause()},xc=c=>{var V;(0,ft.assertNonNullable)(At);let x=!c;if($e(At.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${x}`}),re.log("play ads",{internalCall:x}),_e.play();return}Z({message:`play video, internalCall: ${x}`}),re.log("play video",{internalCall:x}),x&&((V=a==null?void 0:a.onPlay)==null||V.call(a)),N.play()},wc=c=>{(0,ft.assertNonNullable)(At);let x=!c;if($e(At.playerPhase)==="ads"){Z({message:"player cannot be stopped during ads via external method"});return}Z({message:`player will be stopped, internalCall: ${x}`}),I==null||I()},Cc=(c,x)=>{(0,ft.assertNonNullable)(At),Z({message:`first start, show ads: ${c}, internalCall: ${!x}`}),re.log("first start",{showAds:c,external:x}),c?ne.set("ads"):(ne.set("video"),x?N.play():At.actions.internal.togglePlay())},Ua=()=>(Z({message:"getting time codes"}),f),Sc=()=>{let c=Ua();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(V=>V.time>x)},dp=c=>{let x=c;x||(x=Sc());let V=N.info.position$.getValue();re.log("seek to next episode",{currentTime:V,...x}),x&&(Z({message:"seek to next episode"}),cn(x.time,rs.SeekAction.EPISODE,!0))},Tc=()=>{let c=Ua();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),V=c.findIndex(Ne=>Ne.time>x),ee=V===-1?c.length-2:V-2;if(!(ee<0))return c[ee]},je=c=>{let x=c;x||(x=Tc());let V=N.info.position$.getValue();re.log("seek to prev episode",{currentTime:V,...x}),x&&(Z({message:"seek to prev episode"}),cn(x.time,rs.SeekAction.EPISODE,!0))},di=()=>(Z({message:"getting preview thumbs data"}),re.log("get preview thumbs data",{...v}),v),Bo=async()=>{let c=de==null?void 0:de.isActive(),x="none";de!=null&&de.isActive()?(x="exit",await(de==null?void 0:de.exit())):(x="request",await(de==null?void 0:de.request())),re.log("toggle picture in picture",{isActive:c,action:x})},Qs=(c=-90)=>{re.log("rotate video",{alphaDiff:c}),Tt.update(x=>x+c)},Co=oe([]);T==null||T.subscribe(c=>{let x=[];for(let V=0;V<c.length;V++){let{range:[ee,Ne],subjects:pt}=c[V];V===0&&ee!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ee/1e3,text:"",interactive:!0,completed:ae.features.interactiveTimeOpenUri?!pt.length||pt.every(Ht=>Ht.isRemoved):!pt.length}),Ne!==1/0&&x.push({time:Ne/1e3,text:"",interactive:!1,completed:!0})}Co.set(x)});let M0=oe(!1);k==null||k.subscribe(c=>{c&&$e(Gn)&&pe()});let Dv=c=>{if(!S)return c;let x=$e(Co),V=$e(_o),Ne=$e($n)/V,pt=x.find(Ht=>Ht.interactive&&!Ht.completed&&Ht.time>Ne);return typeof(pt==null?void 0:pt.time)=="number"?Math.min(c,pt.time-.05):c},L0=()=>{At.ui.episodes.panelOpened$.set(!1)},V0=()=>{re.log("destroy store"),clearTimeout(jt),clearTimeout(Ge),Te.unsubscribe(),io.unsubscribe(),N.destroy(),_e.destroy(),ce==null||ce.destroy(),ge==null||ge.destroy(),Zt.unsubscribe(),Gt==null||Gt.disconnect(),Gt=null,X.destroy()},At={interfaceLanguage$:Nt,isCyrillicRelatedInterface$:we,initVideo:Mt,videoId:i,isClip:o,playerPhase:Be,vsid:Ke,state:{positionExact$:z,positionWithScrubbing$:Bi,duration$:_o,playbackState$:Pt,isPlaying$:nr,isLoaderVisible:ko,bufferedProgress$:Cn,isLive$:ct,canChangePlaybackSpeed$:ot,isActiveLive$:On,isOldestAvailableLive$:Dn,isRewindableLive$:Br,isEnded$:Lt,muted$:Ut,volume$:$i,trafficSavingEnabled$:Nn,highQualityEnabled$:yi,autoQualityLimitingAvailable$:ho,availableVideoStreams$:ss,availableAudioStreams$:Or,videoStream$:Wi,audioStream$:Fn,currentQuality$:Wn,isAutoQualityEnabled$:sr,availableQualities$:ut,currentPlaybackRate$:ti,availablePlaybackRates$:qn,currentSubtitle$:ro,availableTextTracks$:nn,availableSubtitlesList$:Mo,currentSubtitleCaptions$:Kn,isAutoSubtitleCaptionVisible$:Hr,chromecastState$:ki,chromecastDeviceName$:tn,chromecastConnected$:Hn,currentFormat$:on,throughputEstimation$:Ni,videoBitrate$:no,videoSize$:Ko,errorLog$:Jt,crashed$:Wt,isAudioAvailable$:Bn,isAudioDisabled:!!l,canDownload:ae.features.download&&!!d,availableSources$:hr,hasMpegSources$:lr,isInteractive:S,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!$e(Co).length,interactiveEpisodes$:Co,isInteractiveTime$:k?ei(k):oe(!1),isInteractiveExpectation$:M0,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,looped$:ai,loadedMetadata$:Qe,isAutoQualityAvailable$:ar},ui:{t:ve,controlsVisible:oe(!1),touched:oe(!1),controls:{prevButton:oe(void 0),playButton:oe(void 0),replayButton:oe(void 0),nextButton:oe(void 0),playPrevChapterButton:oe(void 0),seekToInteractiveButton:oe(void 0),interactiveGraphButton:oe(void 0),liveButton:oe(void 0),time:oe(void 0),episodes:oe(void 0),volume:oe(void 0),subtitles:oe(void 0),settings:oe(void 0),context:oe(void 0),chromecast:oe(void 0),pip:oe(void 0),fullscreen:oe(void 0),vkLogo:oe(void 0),interactiveTimeIndicator:oe(void 0),timeline:oe(void 0),autoplayNextToggle:oe(void 0),additionalButtons:G.length?G.reduce(c=>[...c,oe(void 0)],[]):[],disabledControls$:We},modals:{hotKeyMap:{show:oe(!1),data:oe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:nt,isFullscreenOpenedByKeyboard:mt,rotateAlpha:Tt,isAutoplay:oe(!1),debugPanelVisible:oe(!1),episodes:{panelOpened$:oe(!1),openedByKeyboard$:oe(!1)},contextMenu:{visible$:oe(!1),btnRef$:oe(void 0),openedByBtnKeyboard$:oe(!1),openedByHotKey$:oe(!1),lastActiveElem$:oe(void 0),showContextMenuBtn$:oe(!1),position$:oe({top:0,left:0})},playerSize:Re,isMobile:Ci,mobileNotReportControlHidden$:Di,mobileUnmuteButtonExpanded:oe(!1),mobileUnmuteButtonVisible:oe(!1),icon3DVideoVisible:oe(!1),scrubbingInProgress:Gn,volumeChangingInProgress:wi,is3DVideo:zt,currentGridType$:Bt,additionalButtonsDeprecated$:un,additionalDesktopControlPanelRightButtons$:wr,additionalSettingsMenuItems$:Ai,additionalContextMenuItems$:mo,interactiveHideMobileControls:oe(!1),overlayContainer$:oe(void 0),startedByKeyboard$:oe(!1),autoplayNextEnabled$:oe(!1),timerNextVideoRunning$:oe(!0),settingsMenu:{visible$:oe(!1),ref$:oe(void 0),openedByBtnKeyboard$:oe(!1)},settingsSubMenu:{visible$:oe(!1),ref$:oe(void 0),name$:oe(void 0)},aboutToGoNextVideo:oe(void 0),userActionsDisabled:oe(!1),hiddenControls:{volume:oe(!1),vkLogo:oe(!1),pip:oe(!1),chromecast:oe(!1),settings:oe(!1)},isControlsAvailable:En,controlBlocks:{topLeft:oe(void 0),topRight:oe(void 0),middle:oe(void 0),bottom:oe(void 0),bottomLeft:oe(void 0),bottomRight:oe(void 0)},videoTitleInfo:oe(void 0)},ads:{position:oe(0),duration:oe(0),playbackState:oe("inactive"),canSkip:oe(!1),secondsToWatchBeforeSkip:oe(0),postrollPassed:oe(!1)},webApi:{pictureInPictureApi:de,annotationsApi:ue,slotsApi:xe},actions:{internal:{preload:rt,firstStart:c=>Cc(c,!1),play:()=>xc(!1),pause:()=>Dl(!1),togglePlay:Dt,toggleMuted:qt,openSettingsMenu:Fr,closeSettingsMenu:Lo,openSettingsSubMenu:as,closeSettingsSubMenu:br,setVolume:dr,startVolumeChanging:Oi,stopVolumeChanging:Ze,setVideoStream:yn,setAudioStream:Un,setQuality:Pi,setTrafficSavingEnabled:$o,setHighQualityEnabled:Ki,setPlaybackRate:Vo,incrementPlaybackRate:dn,decrementPlaybackRate:Qi,setSubtitle:Gi,toggleSubtitle:xo,togglePictureInPicture:Bo,startScrubbing:qr,progressScrubbing:Kr,completeScrubbing:si,toggleChromecast:yc,switchToActiveLive:ws,switchFromAdsToVideo:hc,switchFromVideoToAds:rp,skipAd:Ol,setLiveWaitingStart:_c,setLiveWaitingRecover:sp,setLiveWaitingRecord:bc,getDebugTextData:ap,getTraceTextData:$c,getDebugPanelData:lp,getVideoElement:Ks,seekTime:(c,x,V)=>cn(c,x,V),clearDelayedBufferingCheckTimeout:Po,seekEpisodeStartTime:yr,seekToPercent:Wr,getNextEpisode:Sc,seekToNextEpisode:dp,getPrevEpisode:Tc,seekToPrevEpisode:je,startLogging:Xt,stopLogging:Ii,startCameraManualRotation:oo,stopCameraManualRotation:yt,moveCameraFocusPX:bt,holdCamera:Vi,releaseCamera:qo,getVideoEpisodes:Ua,getPreviewThumbsData:di,downloadVideo:sn,addLanguage:bf,setLanguage:ie,nextMovie:et,videoRotate:Qs,correctSeekTimeToInteractive:Dv,replayInteractive:A,setLooped:Go,reportProblem:an,setAutoplayNextEnabled:Sn,setTimerNextVideoRunning:ln,prevVideoClick:uo,nextVideoClick:so,nextVideoAnnouncementShow:$r,nextVideoAnnouncementClick:Ur,nextVideoAnnouncementAuto:zr,nextVideoAnnouncementCancel:qi},external:{firstStart:c=>Cc(c,!0),play:()=>xc(!0),pause:()=>Dl(!0),stop:()=>wc(!0),seekTime:c=>Qn(c),seekEpisodeStartTime:c=>xr(c),setPlaybackRate:c=>Ro(c),setAutoQualityLimits:c=>ls(c),setMuted:wt,toggleSubtitle:xo,setVolume:dr,returnFocusToEpisodes:L0,updateAdditionalSettingsItem:Fa,addAdditionalSettingsItem:qs,removeAdditionalSettingsItem:$t,updateAdditionalContextItem:Yo,addAdditionalContextItem:Yi,removeAdditionalContextItem:li,updateAdditionalButton:In,addAdditionalButton:jn,removeAdditionalButton:Cr,setLiveLowLatency:wo,hideControls:()=>ji(!1),showControls:()=>ji(!0)}},callbacks:a,setUiCallbacks:c=>{Pe={...c}},getAdmanWrapper:()=>_e,getLogger:()=>He,getPlayer:()=>N,destroy:V0};return At};function Vr(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),r=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:p}=_s(e[i],t||void 0);return{left:r?d:0,right:r?p:0,top:r?l:0,bottom:r?a:0,isDisplayed:r}}var sy=["disabledControls$","additionalButtons"],ay=["interactiveTimeIndicator"],Sl=(t,e,i,o)=>{if(t){for(let[n,r]of Object.entries(e))if(!sy.includes(n)){let l=o||ay.includes(n);r.set(Vr(t,i,n,l))}}};var Vu=async(t,e,i)=>{await To(),e&&i&&(i.focus(),t.set(!1))};var ly=Se('<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=Le(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":"dots-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}function bm(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C(a,"$contextMenuVisible$",i),r=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(void 0);Ue(()=>{s($)&&St(()=>{u.set(s($))})});let w=k=>{let A=Bs(k),I=S1(s($));v.set(I),p.set(A),a.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Rt(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return r()},get ariaLabel(){return l()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return s($)},set ref(k){B($,k,!0)},children:(k,A)=>{_m(k,{})},$$slots:{default:!0}}),H(),o()}var dy=t=>{t.stopPropagation()},cy=M("<div><!> <div></div> <div></div></div>"),uy={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
227
227
 
228
228
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
229
229
  }
@@ -248,8 +248,8 @@ Try switching the\xA0quality to\xA0Auto.`},n1=G_;var vs=new Map;vs.set(ul.Interf
248
248
  opacity: 0;
249
249
  }
250
250
  }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
251
- animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Ud(t,e){var ue;D(e,!0),z(t,ey);let[i,o]=De(),n=()=>C(S,"$isMobile",i),r=()=>C(I,"$areControlsVisible",i),l=()=>C(V,"$currentGridType$",i),d=()=>C(k,"$isInteractiveTime$",i),a=()=>C(y,"$interactiveControlsOpacity$",i),p=()=>C(A,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),u=j(void 0),$=Ee(),w=fo(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,T=$.ui.isFullscreen,k=$.state.isInteractiveTime$,A=w.showInteractiveTimeIndicatorTooltip$,I=$.ui.controlsVisible,E=(ue=$.callbacks)==null?void 0:ue.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,K=h(()=>!n()&&r()),W=h(()=>Os(l(),"s")),U=h(()=>!d()||!!a()||s(K)),Y=j(!1);We(()=>{B(Y,s(U),!0)});let ne=()=>{B(Y,!0)},G=()=>{var xe;ce(),(xe=s(u))==null||xe.addEventListener("animationiteration",ne,{once:!0})},ce=()=>{var xe;B(Y,!1),(xe=s(u))==null||xe.removeEventListener("animationiteration",ne)},le=xe=>{A.set(xe)},we=h(()=>p()&&!s(U));We(()=>{p()?G():ce()});let Ve=()=>{s(U)||(A.set(!0),E==null||E())};Mn(()=>{A.clearTimeout(),ce()});let ve=()=>{A.set(!1)},ae=F("tooltip_interactive_interaction_time_indicator");var Le=J2();let te;Le.__mousemove=[X2],Le.__click=Ve;var N=_(Le);Bo(N,{get tooltipContent(){return ae},get tooltipActive(){return s(we)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return v()},set ref(xe){v(xe)},children:(xe,Z)=>{Ld(xe,{completed:!0})},$$slots:{default:!0}});var Be=P(N,2);let ye;nt(Be,xe=>v(xe),()=>v());var ge=P(Be,2);let de;nt(ge,xe=>B(u,xe),()=>s(u)),g(Le),O((xe,Z,qe)=>{te=J(Le,1,"interactive-episode-icon-animated svelte-od3veb",null,te,xe),ye=J(Be,1,"ref-block svelte-od3veb",null,ye,Z),de=J(ge,1,"pulse svelte-od3veb",null,de,qe)},[()=>({mobile:n(),fullscreen:f(),invisible:s(U),"icon-small":s(W)}),()=>({hidden:s(U)}),()=>({paused:s(Y)})]),St("mouseleave",Le,ve),b(t,Le),H(),o()}dt(["mousemove","click"]);function Pu(t,e){D(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),r=m(e,"ref",15);Bo(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 r()},set ref(l){r(l)},children:(l,d)=>{var a=Ue();let p=h(()=>e.buttonComponent);var f=fe(a);wi(f,()=>s(p),(v,u)=>{u(v,ms(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(l,a)},$$slots:{default:!0}}),H()}var hs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var iy=Se('<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 hm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=iy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function Ds(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),r=m(e,"height",3,"24"),l=h(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=h(()=>i()?"prev-icon":"next-icon");hm(t,{get style(){return s(l)},get width(){return n()},get height(){return r()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var oy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),ny=M("<!> <!>",1),ry={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 Ta(t,e){D(e,!0),z(t,ry);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=h(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=h(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),p=h(()=>`btn-${o()?"m":"d"}--${e.type}`);Nt(t,{get className(){return s(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return s(d)},get click(){return e.click},get ariaKeyShortCut(){return s(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var u=ny(),$=fe(u);{var w=T=>{var k=oy();b(T,k)};L($,T=>{o()&&T(w)})}var y=P($,2);let S=h(()=>e.type==="prev");Ds(y,{get isMobile(){return o()},get isPrev(){return s(S)}}),b(f,u)},$$slots:{default:!0}}),H()}var sy=Se('<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 zd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=sy();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var W1=require("@vkontakte/videoplayer-shared/es2018");var ay=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ly=M("<!> <div><!></div>",1),dy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Cl(t,e){D(e,!0),z(t,dy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),r=m(e,"className",3,""),l=m(e,"click",3,W1.noop),d=F("tooltip_restart"),a=h(()=>`${o()?"btn-m--play":""} ${r()}`);Nt(t,{get className(){return s(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return os.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var v=ly(),u=fe(v);{var $=T=>{var k=ay();b(T,k)};L(u,T=>{o()&&T($)})}var w=P(u,2);let y;var S=_(w);zd(S,{}),g(w),O(T=>y=J(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(p,v)},$$slots:{default:!0}}),H()}var cy=Se('<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 Or(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"),r=m(e,"fill",3,"var(--btn-color)");var l=cy(),d=_(l);g(l),O(()=>{Ne(l,"width",i()),Ne(l,"height",o()),Ne(l,"viewBox",n()),Ne(d,"fill",r())}),b(t,l)}var uy=Se('<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 _s(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"),r=m(e,"fill",3,"var(--btn-color)");var l=uy(),d=_(l);g(l),O(()=>{Ne(l,"width",i()),Ne(l,"height",o()),Ne(l,"viewBox",n()),Ne(d,"fill",r())}),b(t,l)}var q1=require("@vkontakte/videoplayer-shared/es2018");var py=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),fy=M("<!> <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 Sl(t,e){D(e,!0),z(t,my);let[i,o]=De(),n=()=>C(r,"$fakeIsPlaying$",i),{fakeIsPlaying$:r}=fo(),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,q1.noop),$=Ee().ui.t,{toggle:w}=r,y=h(()=>w),S=h(()=>n()!==null),T=h(()=>s(S)?n():a()),k=h(()=>s(T)?$("tooltip_pause"):$("tooltip_play")),A=h(()=>s(T)?_s:Or),I=h(()=>`${d()?"btn-m--play":""} ${f()}`),E=h(()=>s(S)?s(y):v());Nt(t,{get className(){return s(I)},testId:"btn-play",get click(){return s(E)},get disabled(){return p()},get ariaLabel(){return s(k)},get ariaKeyShortCut(){return os.KeyK},get ref(){return l()},set ref(V){l(V)},children:(V,K)=>{var W=fy();let U=h(()=>s(A));var Y=fe(W);{var ne=we=>{var Ve=py();b(we,Ve)};L(Y,we=>{d()&&we(ne)})}var G=P(Y,2);let ce;var le=_(G);wi(le,()=>s(U),(we,Ve)=>{Ve(we,{})}),g(G),O(we=>ce=J(G,1,"svelte-1ot3duq",null,ce,we),[()=>({mobile:d()})]),b(V,W)},$$slots:{default:!0}}),H(),o()}var vy=Se('<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 _m(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=vy();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function Wd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_go_back"),l=h(()=>o()?"hidden":"");Nt(t,{get className(){return s(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{_m(d,{})},$$slots:{default:!0}}),H()}var gy=M('<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 qd(t,e){D(e,!0),z(t,hy);let[i,o]=De(),n=()=>C(a,"$autoplayNextEnabled$",i),r=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=h(()=>n()?"true":"false");Nt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return s(u)},get ref(){return r()},set ref($){r($)},children:($,w)=>{var y=gy(),S=_(y);let T;var k=_(S);{var A=E=>{Or(E,{width:"14",height:"14",fill:"#000"})},I=E=>{_s(E,{width:"14",height:"14",fill:"#000"})};L(k,E=>{n()?E(A):E(I,!1)})}g(S),g(y),O(E=>T=J(S,1,"toggler svelte-et3q1q",null,T,E),[()=>({enabled:n()})]),b($,y)},$$slots:{default:!0}}),H(),o()}var _y=Se('<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 bm(t,e){let i=Me(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":"seek-to-interactive-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function Kd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_seek"),l=h(()=>o()?"hidden":"");Nt(t,{get className(){return s(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{bm(d,{})},$$slots:{default:!0}}),H()}var by=Se('<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 $m(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=by();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var $y={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function ym(t,e){z(t,$y);let i=m(e,"isOpened",3,!1),o=h(()=>i()?"graph-close-icon":"graph-open-icon");$m(t,{get"data-testid"(){return s(o)}})}function Qd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=m(e,"graphIsOpened",3,!1),d=Ee().ui.t,a=h(()=>r()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=h(()=>o()?"hidden":"");Nt(t,{get className(){return s(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let u=h(()=>!!r());ym(f,{get isOpened(){return s(u)}})},$$slots:{default:!0}}),H()}var xm=require("@vkontakte/videoplayer-core/es2018");function Gd(t,e){D(e,!0);let[i,o]=De(),n=()=>C(p,"$playbackState$",i),r=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=h(()=>()=>{if(!l()){f();return}n()===xm.PlaybackState.PAUSED&&v()}),$=h(()=>r()?"":"btn--live btn-full-opacity"),w=h(()=>l()?"btn-live":"btn-live-offset"),y=h(()=>l()&&n()===xm.PlaybackState.PLAYING);Nt(t,{get className(){return s($)},get testId(){return s(w)},get disabled(){return s(y)},get ariaLabel(){return d()},get click(){return s(u)},children:(S,T)=>{$d(S,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var wm=require("@vkontakte/videoplayer-shared/es2018");var yy=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),xy=M('<img class="icon" aria-hidden="true"/>');function Ea(t,e){"use strict";let i=j(!1),o=()=>{B(i,!0)};var n=Ue(),r=fe(n);{var l=a=>{var p=yy();b(a,p)},d=a=>{var p=xy();O(()=>Ne(p,"src",e.icon)),St("error",p,o),oa(p),b(a,p)};L(r,a=>{s(i)?a(l):a(d,!1)})}b(t,n)}function Cm(t,e){D(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,wm.noop),n=m(e,"ref",15),r=h(()=>o()===wm.noop),l=h(()=>s(r)||i()),d=h(()=>s(r)?"btn-full-opacity":"");Bo(t,{get disabled(){return s(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=h(()=>{var v;return(v=e.testId)!=null?v:e.id});Nt(a,{get className(){return s(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(l)},get testId(){return s(f)},children:(v,u)=>{Ea(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var K1=t=>!!t.buttonComponent;var bs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Au=(t,e,i,o)=>{if(t)for(let[n,r]of Object.entries(e))r.set(Br(t,i,n,o))};var Sy=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),Ty={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 Tm(t,e){var Us,Da;D(e,!0),z(t,Ty);let[i,o]=De(),n=()=>C(Ti,"$disabledControls$",i),r=()=>C(hi,"$adPlaybackState",i),l=()=>C(At,"$playbackState$",i),d=()=>C(_t,"$currentSubtitle$",i),a=()=>C(ni,"$isEnded$",i),p=()=>C(Ei,"$currentGridType$",i),f=()=>C(fi,"$isLive$",i),v=()=>C(eo,"$chromecastState$",i),u=()=>C(ii,"$isPictureInPictureActive",i),$=()=>C(ui,"$pictureInPictureType$",i),w=()=>C(xt,"$availableSubtitlesList$",i),y=()=>C(Dt,"$contextMenuOpenedByKeyboard$",i),S=()=>C(q,"$showContextMenuBtn$",i),T=()=>C(Jn,"$playerSize",i),k=()=>C(ei,"$isRewindableLive$",i),A=()=>C(lt,"$isActiveLive$",i),I=()=>C(ho,"$graphIsOpened$",i),E=()=>C(Oo,"$contextMenuVisible$",i),V=()=>C(Ht,"$isFullscreen",i),K=()=>C(Li,"$autoplayNextEnabled",i),W=()=>C(s(rr),"$prevButton",i),U=()=>C(s(Fn),"$replayButton",i),Y=()=>C(s(sr),"$playButton",i),ne=()=>C(s($i),"$nextButton",i),G=()=>C(s(yr),"$playPrevChapterButton",i),ce=()=>C(s(Et),"$seekToInteractiveButton",i),le=()=>C(s(ai),"$interactiveGraphButton",i),we=()=>C(s(nn),"$liveButton",i),Ve=()=>C(s(rn),"$time",i),ve=()=>C(s(Cn),"$episodes",i),ae=()=>C(s(Fo),"$vkLogo",i),Le=()=>C(s(po),"$volume",i),te=()=>C(s(io),"$subtitles",i),N=()=>C(s(Un),"$settings",i),Be=()=>C(s(xr),"$context",i),ye=()=>C(s(wr),"$fullscreen",i),ge=()=>C(s(Kr),"$chromecast",i),de=()=>C(vo,"$additionalDesktopControlPanelRightButtons$",i),ue=()=>C(to,"$isInteractiveTime$",i),xe=()=>C(To,"$settingsMenuVisible",i),Z=()=>C($o,"$settingButtonRef$",i),qe=()=>C(ci,"$startedByKeyboard$",i),Je=()=>C(Vt,"$isAudioAvailable$",i),ke=()=>C(Ot,"$fakeIsPlaying$",i),X=()=>C(go,"$seekToInteractiveDisabledTooltip$",i),Te=()=>C(ft,"$adPosition",i),Ke=()=>C(it,"$position$",i),st=()=>C(rt,"$adDuration",i),pt=()=>C(Re,"$duration$",i),bt=m(e,"playerControlsWrapperRef",15,void 0),Ct=m(e,"playerControlsRef",15,void 0),Qe=m(e,"isAds",3,!1),Qt=m(e,"logoTargetUrl",3,""),Zt=m(e,"isOneVideoPlaylist",3,!1),Yt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Ot}=fo(),ee=Ee(),Lt=fo(),me=zt(),_e=ee.actions.internal.toggleMuted,se=ee.actions.internal.togglePlay,Oe=ee.actions.internal.pause,ze=ee.actions.internal.toggleSubtitle,Ae=(Us=ee.callbacks)==null?void 0:Us.onAudioDoesNotExistHint,je=(Da=ee.callbacks)==null?void 0:Da.onAudioDisabledHint,Re=ee.state.duration$,it=ee.state.positionWithScrubbing$,At=ee.state.playbackState$,Vt=ee.state.isAudioAvailable$,et=ee.state.isAudioDisabled,ni=ee.state.isEnded$,fi=ee.state.isLive$,lt=ee.state.isActiveLive$,ei=ee.state.isRewindableLive$,{isActive$:ii,type$:ui}=Lt.pictureInPicture$,To=ee.ui.settingsMenu.visible$,mo=ee.ui.settingsMenu.openedByBtnKeyboard$,Xt=ee.ui.controls,Si=ee.actions.internal.getVideoEpisodes(),eo=ee.state.chromecastState$,xt=ee.state.availableSubtitlesList$,_t=ee.state.currentSubtitle$,Ti=Xt.disabledControls$,Oo=ee.ui.contextMenu.visible$,q=ee.ui.contextMenu.showContextMenuBtn$,Dt=ee.ui.contextMenu.openedByBtnKeyboard$,ci=ee.ui.startedByKeyboard$,Gt=ee.ui.controlBlocks,vt=ee.ui.t,rt=ee.ads.duration,ft=ee.ads.position,hi=ee.ads.playbackState,Ht=ee.ui.isFullscreen,Jn=ee.ui.playerSize,Ei=ee.ui.currentGridType$,vo=ee.ui.additionalDesktopControlPanelRightButtons$,Li=ee.ui.autoplayNextEnabled$,yt=ee.actions.internal.getVideoElement,Vi=ee.actions.internal.replayInteractive,Zo=ee.actions.internal.prevVideoClick,vn=ee.actions.internal.nextVideoClick,Ii=ee.state.isInteractive,to=ee.state.isInteractiveTime$,ki=ee.state.showInteractiveGraph,Xo=ee.state.showSeekToInteractive,Vn=ee.state.showPlayPrevChapter,Eo=ee.state.showInteractiveTimeIndicator,Do=ee.state.playPrevChapterDisabledTooltip,go=Lt.seekToInteractiveDisabledTooltip$,ho=Lt.graphIsOpened$,Jo=me.features.interactiveResponsiveUi,Rn=h(()=>n().has("EPISODE_BUTTON")),er=h(()=>n().has("GRAPH_BUTTON")),tr=h(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),ir=h(()=>n().has("PLAY_BUTTON")),Hr=h(()=>n().has("REPLAY_BUTTON")),Nn=h(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),as=()=>ee.actions.internal.toggleChromecast(),Fr=h(()=>Qe()?r()==="playing":l()===Ia.PlaybackState.PLAYING),Ui=h(()=>d().value!=="off"),gn=h(()=>a()&&!Qe()||Ii),en=h(()=>Jo?s(gn)&&ji(p(),"m"):s(gn)),hn=h(()=>!a()||Ii||Qe()),_o=h(()=>ji(p(),"m")),_n=h(()=>e.showNextPrevButtons&&ji(p(),"m")&&!Qe()&&e.nextButtonActive),Bn=h(()=>e.showNextPrevButtons&&ji(p(),"m")&&!Qe()&&e.prevButtonActive),Ur=h(()=>!Qe()&&!!f()),hr=h(()=>v()!==Ia.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&ji(p(),"m")&&!Ii),zr=h(()=>e.showAutoplayNext&&!Zt()&&ji(p(),"s")),bn=h(()=>w().length>0&&ji(p(),"m")),On=h(()=>y()||S()),ot=h(()=>ji(p(),"s")&&!Qe()),Wt=h(()=>!e.logoHidden&&!Qe()),Dn=h(()=>me.features.fullscreen&&(e.logoHidden||ji(p(),Jo?"xs":"s"))&&!(u()&&$()===1)&&(Ii?Yt():!0)),zi=h(()=>(!f()||Qe())&&!(me.features.interactiveHideTime&&Ii)),or=h(()=>T().width>100),Hn=h(()=>ki&&ji(p(),"m")),$n=h(()=>Jo?Xo&&ji(p(),"s"):Xo),Wi=h(()=>Jo?Vn&&ji(p(),"s"):Vn),tn=h(()=>!Qe()&&!f()&&!!(Si!=null&&Si.length)&&s(_o)&&!s(Rn)),Ho=h(()=>!k()||!!A()),yn=h(()=>I()?vt("tooltip_interactive_graph_on"):vt("tooltip_interactive_graph_off")),_r=h(()=>E()?vt("tooltip_context_menu_close"):vt("tooltip_context_menu_open")),br=(ct,$t)=>ct?$t&&$t===Ia.PlaybackState.PAUSED?vt("tooltip_play"):"":vt("tooltip_live"),xn=h(()=>br(s(Ho),l())),Wr=h(()=>me.logoType==="vk_video"?vt("tooltip_vk_video_logo"):vt("tooltip_vk_logo")),wn=h(()=>s(Ui)?vt("tooltip_subtitles_on"):vt("tooltip_subtitles_off")),qr=h(()=>V()?vt("tooltip_fullscreen_on"):vt("tooltip_fullscreen_off")),nr=h(()=>v()===Ia.ChromecastState.CONNECTED?vt("tooltip_chromecast_on"):vt("tooltip_chromecast_off")),$r=h(()=>K()?vt("tooltip_autoplay_on"):vt("tooltip_autoplay_off")),on=j(0),qt=oi({}),Io=oi({}),rr=h(()=>Xt.prevButton),Fn=h(()=>Xt.replayButton),sr=h(()=>Xt.playButton),$i=h(()=>Xt.nextButton),yr=h(()=>Xt.playPrevChapterButton),Et=h(()=>Xt.seekToInteractiveButton),ai=h(()=>Xt.interactiveGraphButton),nn=h(()=>Xt.liveButton),rn=h(()=>Xt.time),Cn=h(()=>Xt.episodes),Fo=h(()=>Xt.vkLogo),po=h(()=>Xt.volume),io=h(()=>Xt.subtitles),Un=h(()=>Xt.settings),xr=h(()=>Xt.context),wr=h(()=>Xt.fullscreen),Kr=h(()=>Xt.chromecast),tt=h(()=>({prevButton:W()?W().right-W().left:0,replayButton:U()?U().right-U().left:0,playButton:Y()?Y().right-Y().left:0,nextButton:ne()?ne().right-ne().left:0,playPrevChapterButton:G()?G().right-G().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:we()?we().right-we().left:0,time:Ve()?Ve().right-Ve().left:0,episodes:ve()?ve().right-ve().left:0,vkLogo:ae()?ae().right-ae().left:0,volume:Le()?Le().right-Le().left:0,subtitles:te()?te().right-te().left:0,settings:N()?N().right-N().left:0,context:Be()?Be().right-Be().left:0,fullscreen:ye()?ye().right-ye().left:0,chromecast:ge()?ge().right-ge().left:0,additionalButtons:de().length?de().reduce(ct=>[...ct,40],[]):[]})),Mt=j(0);We(()=>{(!s(Mt)||s(Mt)<s(tt).time)&&Tt(()=>B(Mt,s(tt).time,!0))});let _i=j(!1);We(()=>{let ct=0;s(tn)&&(ji(p(),"xl")?ct=s(tt).time:ct=60);let $t=s(tt).prevButton+s(tt).playButton+s(tt).nextButton+s(tt).seekToInteractiveButton+s(tt).interactiveGraphButton+s(tt).liveButton+s(Mt)+ct;B(_i,s(zi)&&s(on)>=$t,!0)});let ko=h(()=>s(_i)&&ji(p(),"m")),oo=(0,Sm.debounceFn)(wl,260),bo=(0,Sm.debounceFn)(Au,260);We(()=>{T(),ue(),oo(yt(),Xt,qt,e.showControls),bo(yt(),Gt,Io,e.showControls)}),We(()=>{Io.bottom=bt()});let $o=re();We(()=>{xe(),Z()&&Tt(()=>gl(Z(),xe(),mo))});let sn;We(()=>{qe(),Tt(()=>ku(ci,qe(),sn))});function yo(){Rs({isAudioDisabled:et,isAudioAvailable:Je(),isAds:Qe(),audioIsNotExistHintCallback:Ae,audioDisabledHintCallback:je})&&_e()}let qi=Ii?Vi:se,Ki=h(()=>ke()!==null),Uo=h(()=>s(Ki)?ke():s(Fr)),no=h(()=>s(Uo)?vt("tooltip_pause"):vt("tooltip_play")),zo=vt("tooltip_episodes"),Sn=h(()=>{var ct,$t,ro,ln;return s(Bn)?{id:"prevButton",type:"desktop-control-panel-left",weight:hs.prevButton,buttonComponent:Ta,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Zo.bind(null,!0)},tooltipEnabled:!(($t=(ct=ee.callbacks)==null?void 0:ct.uiInfo)!=null&&$t.onPrevButtonMouseEnter)&&!((ln=(ro=ee.callbacks)==null?void 0:ro.uiInfo)!=null&&ln.onPrevButtonMouseLeave),mouseEnter:()=>{var so,li,Pi;(Pi=(li=(so=ee.callbacks)==null?void 0:so.uiInfo)==null?void 0:li.onPrevButtonMouseEnter)==null||Pi.call(li,Br(yt(),qt,"prevButton",e.showControls))},mouseLeave:()=>{var so,li,Pi;(Pi=(li=(so=ee.callbacks)==null?void 0:so.uiInfo)==null?void 0:li.onPrevButtonMouseLeave)==null||Pi.call(li,Br(yt(),qt,"prevButton",e.showControls))},tooltipText:vt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Cr=h(()=>s(en)?{id:"replayButton",type:"desktop-control-panel-left",weight:hs.replayButton,buttonComponent:Cl,buttonComponentProps:{disabled:s(Hr),click:qi},tooltipText:vt("tooltip_restart"),disabled:s(Hr)}:void 0),Qr=h(()=>s(hn)?{id:"playButton",type:"desktop-control-panel-left",weight:hs.playButton,buttonComponent:Sl,buttonComponentProps:{disabled:s(ir),isPlaying:s(Fr),click:se},tooltipText:s(no),disabled:s(ir)}:void 0),Gr=h(()=>{var ct,$t,ro,ln;return s(_n)?{id:"nextButton",type:"desktop-control-panel-left",weight:hs.nextButton,buttonComponent:Ta,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:vn.bind(null,!0)},tooltipEnabled:!(($t=(ct=ee.callbacks)==null?void 0:ct.uiInfo)!=null&&$t.onNextButtonMouseEnter)&&!((ln=(ro=ee.callbacks)==null?void 0:ro.uiInfo)!=null&&ln.onNextButtonMouseLeave),mouseEnter:()=>{var so,li,Pi;(Pi=(li=(so=ee.callbacks)==null?void 0:so.uiInfo)==null?void 0:li.onNextButtonMouseEnter)==null||Pi.call(li,Br(yt(),qt,"nextButton",e.showControls))},mouseLeave:()=>{var so,li,Pi;(Pi=(li=(so=ee.callbacks)==null?void 0:so.uiInfo)==null?void 0:li.onNextButtonMouseLeave)==null||Pi.call(li,Br(yt(),qt,"nextButton",e.showControls))},tooltipText:vt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),ar=h(()=>Ii&&s(Wi)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:hs.playPrevChapterButton,buttonComponent:Wd,buttonComponentProps:{disabled:s(Nn),click:e.playPrevChapter},tooltipText:vt("tooltip_interactive_go_back"),disabledTooltipContent:vt(Do),disabled:s(Nn)}:void 0),Sr=h(()=>Ii&&s($n)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:hs.seekToInteractiveButton,buttonComponent:Kd,buttonComponentProps:{disabled:s(tr),click:e.seekToInteractive},tooltipText:vt("tooltip_interactive_seek"),disabled:s(tr),disabledTooltipContent:vt(X())}:void 0),Tn=h(()=>Ii&&s(Hn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:hs.interactiveGraphButton,buttonComponent:Qd,buttonComponentProps:{disabled:s(er),click:ho.toggle,graphIsOpened:I()},tooltipText:s(yn)}:void 0),Qi=h(()=>s(Ur)?{id:"liveButton",type:"desktop-control-panel-left",weight:hs.liveButton,buttonComponent:Gd,buttonComponentProps:{isLiveActive:s(Ho),ariaLabel:s(xn)},tooltipText:s(xn),disabled:s(Ho)&&l()===Ia.PlaybackState.PLAYING}:void 0),zn=h(()=>[s(Sn),s(Cr),s(Qr),s(Gr),s(ar),s(Sr),s(Tn),s(Qi)].filter(ct=>!!ct).sort(ha)),lr=h(()=>s(Wt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:bs.vkLogo,buttonComponent:Nd,buttonComponentProps:{targetUrl:Qt(),logoClickable:e.logoClickable,click:Oe},tooltipText:s(Wr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Tr=h(()=>s(zr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:bs.autoplayNext,buttonComponent:qd,tooltipText:s($r)}:void 0),dr=h(()=>({id:"volume",type:"desktop-control-panel-right",weight:bs.volume,buttonComponent:Xf,buttonComponentProps:{click:yo,isAds:Qe()}})),Ze=h(()=>s(bn)?{id:"subtitles",type:"desktop-control-panel-right",weight:bs.subtitles,buttonComponent:Gf,buttonComponentProps:{isSubtitlesEnabled:s(Ui),click:ze},tooltipText:s(wn)}:void 0),Jt=h(()=>s(ot)?{id:"settings",type:"desktop-control-panel-right",weight:bs.settings,buttonComponent:yl,buttonComponentProps:{ref$:$o},tooltipText:xe()?void 0:vt("tooltip_settings_off")}:void 0),pe=h(()=>me.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:bs.context,buttonComponent:gm,buttonComponentProps:{ariaLabel:vt("aria_label_context_menu")},className:s(On)?"":"out-of-view",tooltipText:s(_r)}:void 0),wt=h(()=>s(Dn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:bs.fullscreen,buttonComponent:Rd,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:s(qr)}:void 0),ri=h(()=>s(hr)?{id:"chromecast",type:"desktop-control-panel-right",weight:bs.chromecast,buttonComponent:Bd,buttonComponentProps:{state:v(),click:as},tooltipText:s(nr)}:void 0),Ri=h(()=>[s(lr),s(Tr),s(dr),s(Ze),s(Jt),s(pe),s(wt),s(ri),...de()].filter(ct=>!!ct).sort(ha));var yi=Sy(),Fe=fe(yi);let It;var bi=_(Fe);let Wo=h(()=>!s(or));Ca(bi,{get isHidden(){return s(Wo)},get isAds(){return Qe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return k()},get ref(){return qt.timeline},set ref(ct){qt.timeline=ct}});var Ni=P(bi,2),Wn=_(Ni),Er=_(Wn);xi(Er,17,()=>s(zn),ct=>ct.id,(ct,$t)=>{Pu(ct,{get buttonComponent(){return s($t).buttonComponent},get buttonComponentProps(){return s($t).buttonComponentProps},get tooltipText(){return s($t).tooltipText},get disabledTooltipContent(){return s($t).disabledTooltipContent},get disabled(){return s($t).disabled},get className(){return s($t).className},get tooltipEnabled(){return s($t).tooltipEnabled},get mouseEnter(){return s($t).mouseEnter},get mouseLeave(){return s($t).mouseLeave},get ref(){return qt[s($t).id]},set ref(ro){qt[s($t).id]=ro}})});var qo=P(Er,2);{var Gi=ct=>{let $t=h(()=>Qe()?Te():Ke()),ro=h(()=>Qe()?st():pt());Md(ct,{isMobile:!1,get showDuration(){return s(ko)},get position(){return s($t)},get duration(){return s(ro)},get ref(){return qt.time},set ref(ln){qt.time=ln}})};L(qo,ct=>{s(zi)&&ct(Gi)})}var Bi=P(qo,2);let an=h(()=>!s(tn));Bo(Bi,{className:"w-max",get disabled(){return s(an)},get tooltipContent(){return zo},get ref(){return qt.episodes},set ref(ct){qt.episodes=ct},children:(ct,$t)=>{var ro=Ue(),ln=fe(ro);{var so=li=>{Dd(li,{get position(){return Ke()},get duration(){return pt()},get timeCodes(){return Si}})};L(ln,li=>{s(tn)&&li(so)})}b(ct,ro)},$$slots:{default:!0}}),g(Wn);var cr=P(Wn,2);xi(cr,21,()=>s(Ri),ct=>ct.id,(ct,$t)=>{var ro=Ue(),ln=fe(ro);{var so=Pi=>{Pu(Pi,{get buttonComponent(){return s($t).buttonComponent},get buttonComponentProps(){return s($t).buttonComponentProps},get tooltipText(){return s($t).tooltipText},get disabledTooltipContent(){return s($t).disabledTooltipContent},get disabled(){return s($t).disabled},get className(){return s($t).className},get ref(){return qt[s($t).id]},set ref(zs){qt[s($t).id]=zs}})},li=Pi=>{let zs=h(()=>!!s($t).disabled);Cm(Pi,{get id(){return s($t).id},get testId(){return s($t).testId},get icon(){return s($t).icon},get ariaLabel(){return s($t).ariaLabel},get tooltipText(){return s($t).tooltipText},get disabledTooltipContent(){return s($t).disabledTooltipContent},get disabled(){return s(zs)},get onClick(){return s($t).onClick},get disableMouseupTooltipShow(){return s($t).disableMouseupTooltipShow},get ref(){return qt[s($t).id]},set ref(Ha){qt[s($t).id]=Ha}})};L(ln,Pi=>{K1(s($t))?Pi(so):Pi(li,!1)})}b(ct,ro)}),g(cr),g(Ni),nt(Ni,ct=>Ct(ct),()=>Ct()),g(Fe),nt(Fe,ct=>bt(ct),()=>bt());var ur=P(Fe,2);{var Po=ct=>{Ud(ct,{get ref(){return qt.interactiveTimeIndicator},set ref($t){qt.interactiveTimeIndicator=$t}})};L(ur,ct=>{Eo&&ct(Po)})}O(ct=>It=J(Fe,1,"wrapper-bottom svelte-f6e8ix",null,It,ct),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),is(Wn,"clientWidth",ct=>B(on,ct)),b(t,yi),H(),o()}var Tl=require("@vkontakte/videoplayer-core/es2018");var Em=require("@vkontakte/videoplayer-shared/es2018");var Ey=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Iy=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),ky={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 Im(t,e){z(t,ky);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Em.noop),n=h(()=>o()===Em.noop),r=h(()=>s(n)||i()),l=j(!1),d=()=>{B(l,!0)},a=h(()=>s(n)?"btn-full-opacity":"");Nt(t,{get className(){return s(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(r)},get testId(){return e.testId},children:(p,f)=>{var v=Ue(),u=fe(v);{var $=y=>{var S=Ey();b(y,S)},w=y=>{var S=Iy();O(()=>Ne(S,"src",e.iconUrl)),St("error",S,d),oa(S),b(y,S)};L(u,y=>{s(l)?y($):y(w,!1)})}b(p,v)},$$slots:{default:!0}})}var Py=Se('<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 km(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Py();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var Q1=require("@vkontakte/videoplayer-shared/es2018");var Ay=M('<span class="text svelte-6gmlbk"> </span>'),My=M('<div aria-hidden="true"><!> <!></div>'),Ly={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function Mu(t,e){D(e,!0),z(t,Ly);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,Q1.noop),r=m(e,"ref",15,void 0),d=Ee().ui.t,a=h(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=h(()=>o()?Bs:km),f=h(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Nt(t,{get testId(){return s(f)},get click(){return n()},get ariaLabel(){return s(a)},role:"button",get ref(){return r()},set ref(v){r(v)},children:(v,u)=>{var $=My();let w=h(()=>s(p)),y;var S=_($);wi(S,()=>s(w),(A,I)=>{I(A,{})});var T=P(S,2);{var k=A=>{var I=Ay(),E=_(I,!0);g(I),O(V=>he(E,V),[()=>d("mobile_unmute")]),b(A,I)};L(T,A=>{o()&&A(k)})}g($),O(A=>y=J($,1,"container svelte-6gmlbk",null,y,A),[()=>({expanded:o()})]),b(v,$)},$$slots:{default:!0}}),H()}var Vy=Se('<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 Pm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(3),g(o),b(t,o)}var Ry={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Am(t,e){z(t,Ry);let i=m(e,"isActive",3,!1),o=h(()=>i()?"color: #2688EB;":"color: #fff;"),n=h(()=>i()?"pip-icon--active":"pip-icon");Pm(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}var G1=require("@vkontakte/videoplayer-shared/es2018");function Mm(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,G1.noop),r=F("menu_pip");Nt(t,{testId:"btn-pip",get ariaLabel(){return r},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Am(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var Lm=require("@vkontakte/videoplayer-shared/es2018");var Ny=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},By=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},Oy=M("<div><!></div>"),Dy=M("<div><!></div>"),Hy=M("<div><!></div>"),Fy=M("<!> <!> <!>",1),Uy=M("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),zy=M("<div><!></div>"),Wy=M('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),qy=M("<!> <!> <div><!></div>",1),Ky=M('<div aria-hidden="true">\xB7</div> <!>',1),Qy=M('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!></div></div> <!></div></div> <!>',1),Gy={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {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-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {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-9xcbwc {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-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
251
+ animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Wd(t,e){var ue;D(e,!0),W(t,uy);let[i,o]=Oe(),n=()=>C(S,"$isMobile",i),r=()=>C(I,"$areControlsVisible",i),l=()=>C(R,"$currentGridType$",i),d=()=>C(k,"$isInteractiveTime$",i),a=()=>C(y,"$interactiveControlsOpacity$",i),p=()=>C(A,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),u=Y(void 0),$=Ee(),w=vo(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,T=$.ui.isFullscreen,k=$.state.isInteractiveTime$,A=w.showInteractiveTimeIndicatorTooltip$,I=$.ui.controlsVisible,E=(ue=$.callbacks)==null?void 0:ue.onInteractiveTimeIndicatorClick,R=$.ui.currentGridType$,G=g(()=>!n()&&r()),q=g(()=>Fs(l(),"s")),U=g(()=>!d()||!!a()||s(G)),Q=Y(!1);Ue(()=>{B(Q,s(U),!0)});let J=()=>{B(Q,!0)},j=()=>{var xe;ce(),(xe=s(u))==null||xe.addEventListener("animationiteration",J,{once:!0})},ce=()=>{var xe;B(Q,!1),(xe=s(u))==null||xe.removeEventListener("animationiteration",J)},le=xe=>{A.set(xe)},ye=g(()=>p()&&!s(U));Ue(()=>{p()?j():ce()});let ke=()=>{s(U)||(A.set(!0),E==null||E())};Vn(()=>{A.clearTimeout(),ce()});let me=()=>{A.set(!1)},ae=F("tooltip_interactive_interaction_time_indicator");var Ve=cy();let re;Ve.__mousemove=[dy],Ve.__click=ke;var N=_(Ve);Wo(N,{get tooltipContent(){return ae},get tooltipActive(){return s(ye)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return v()},set ref(xe){v(xe)},children:(xe,Z)=>{Rd(xe,{completed:!0})},$$slots:{default:!0}});var He=P(N,2);let _e;it(He,xe=>v(xe),()=>v());var ge=P(He,2);let de;it(ge,xe=>B(u,xe),()=>s(u)),h(Ve),O((xe,Z,qe)=>{re=te(Ve,1,"interactive-episode-icon-animated svelte-od3veb",null,re,xe),_e=te(He,1,"ref-block svelte-od3veb",null,_e,Z),de=te(ge,1,"pulse svelte-od3veb",null,de,qe)},[()=>({mobile:n(),fullscreen:f(),invisible:s(U),"icon-small":s(q)}),()=>({hidden:s(U)}),()=>({paused:s(Q)})]),Et("mouseleave",Ve,me),b(t,Ve),H(),o()}dt(["mousemove","click"]);function Ru(t,e){D(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),r=m(e,"ref",15);Wo(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 r()},set ref(l){r(l)},children:(l,d)=>{var a=Fe();let p=g(()=>e.buttonComponent);var f=fe(a);Ti(f,()=>s(p),(v,u)=>{u(v,gs(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(l,a)},$$slots:{default:!0}}),H()}var bs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var fy=Se('<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 $m(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=fy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}function Us(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),r=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");$m(t,{get style(){return s(l)},get width(){return n()},get height(){return r()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var my=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),vy=M("<!> <!>",1),gy={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){D(e,!0),W(t,gy);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}`);Rt(t,{get className(){return s(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return s(d)},get click(){return e.click},get ariaKeyShortCut(){return s(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var u=vy(),$=fe(u);{var w=T=>{var k=my();b(T,k)};L($,T=>{o()&&T(w)})}var y=P($,2);let S=g(()=>e.type==="prev");Us(y,{get isMobile(){return o()},get isPrev(){return s(S)}}),b(f,u)},$$slots:{default:!0}}),H()}var hy=Se('<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 qd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=hy();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var Y1=require("@vkontakte/videoplayer-shared/es2018");var _y=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),by=M("<!> <div><!></div>",1),$y={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){D(e,!0),W(t,$y);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),r=m(e,"className",3,""),l=m(e,"click",3,Y1.noop),d=F("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${r()}`);Rt(t,{get className(){return s(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return is.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var v=by(),u=fe(v);{var $=T=>{var k=_y();b(T,k)};L(u,T=>{o()&&T($)})}var w=P(u,2);let y;var S=_(w);qd(S,{}),h(w),O(T=>y=te(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(p,v)},$$slots:{default:!0}}),H()}var yy=Se('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Rr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=yy(),d=_(l);h(l),O(()=>{De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",n()),De(d,"fill",r())}),b(t,l)}var xy=Se('<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 $s(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"),r=m(e,"fill",3,"var(--btn-color)");var l=xy(),d=_(l);h(l),O(()=>{De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",n()),De(d,"fill",r())}),b(t,l)}var Z1=require("@vkontakte/videoplayer-shared/es2018");var wy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Cy=M("<!> <div><!></div>",1),Sy={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){D(e,!0),W(t,Sy);let[i,o]=Oe(),n=()=>C(r,"$fakeIsPlaying$",i),{fakeIsPlaying$:r}=vo(),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,Z1.noop),$=Ee().ui.t,{toggle:w}=r,y=g(()=>w),S=g(()=>n()!==null),T=g(()=>s(S)?n():a()),k=g(()=>s(T)?$("tooltip_pause"):$("tooltip_play")),A=g(()=>s(T)?$s:Rr),I=g(()=>`${d()?"btn-m--play":""} ${f()}`),E=g(()=>s(S)?s(y):v());Rt(t,{get className(){return s(I)},testId:"btn-play",get click(){return s(E)},get disabled(){return p()},get ariaLabel(){return s(k)},get ariaKeyShortCut(){return is.KeyK},get ref(){return l()},set ref(R){l(R)},children:(R,G)=>{var q=Cy();let U=g(()=>s(A));var Q=fe(q);{var J=ye=>{var ke=wy();b(ye,ke)};L(Q,ye=>{d()&&ye(J)})}var j=P(Q,2);let ce;var le=_(j);Ti(le,()=>s(U),(ye,ke)=>{ke(ye,{})}),h(j),O(ye=>ce=te(j,1,"svelte-1ot3duq",null,ce,ye),[()=>({mobile:d()})]),b(R,q)},$$slots:{default:!0}}),H(),o()}var Ty=Se('<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 ym(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}function Kd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Rt(t,{get className(){return s(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{ym(d,{})},$$slots:{default:!0}}),H()}var Ey=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Iy={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){D(e,!0),W(t,Iy);let[i,o]=Oe(),n=()=>C(a,"$autoplayNextEnabled$",i),r=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");Rt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return s(u)},get ref(){return r()},set ref($){r($)},children:($,w)=>{var y=Ey(),S=_(y);let T;var k=_(S);{var A=E=>{Rr(E,{width:"14",height:"14",fill:"#000"})},I=E=>{$s(E,{width:"14",height:"14",fill:"#000"})};L(k,E=>{n()?E(A):E(I,!1)})}h(S),h(y),O(E=>T=te(S,1,"toggler svelte-et3q1q",null,T,E),[()=>({enabled:n()})]),b($,y)},$$slots:{default:!0}}),H(),o()}var ky=Se('<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 xm(t,e){let i=Le(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":"seek-to-interactive-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}function Gd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Rt(t,{get className(){return s(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{xm(d,{})},$$slots:{default:!0}}),H()}var Py=Se('<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 wm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Py();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}var Ay={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Cm(t,e){W(t,Ay);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");wm(t,{get"data-testid"(){return s(o)}})}function jd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=m(e,"graphIsOpened",3,!1),d=Ee().ui.t,a=g(()=>r()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=g(()=>o()?"hidden":"");Rt(t,{get className(){return s(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let u=g(()=>!!r());Cm(f,{get isOpened(){return s(u)}})},$$slots:{default:!0}}),H()}var Sm=require("@vkontakte/videoplayer-core/es2018");function Yd(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C(p,"$playbackState$",i),r=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()===Sm.PlaybackState.PAUSED&&v()}),$=g(()=>r()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),y=g(()=>l()&&n()===Sm.PlaybackState.PLAYING);Rt(t,{get className(){return s($)},get testId(){return s(w)},get disabled(){return s(y)},get ariaLabel(){return d()},get click(){return s(u)},children:(S,T)=>{xd(S,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var Tm=require("@vkontakte/videoplayer-shared/es2018");var My=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Ly=M('<img class="icon" aria-hidden="true"/>');function ka(t,e){"use strict";let i=Y(!1),o=()=>{B(i,!0)};var n=Fe(),r=fe(n);{var l=a=>{var p=My();b(a,p)},d=a=>{var p=Ly();O(()=>De(p,"src",e.icon)),Et("error",p,o),ra(p),b(a,p)};L(r,a=>{s(i)?a(l):a(d,!1)})}b(t,n)}function Em(t,e){D(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Tm.noop),n=m(e,"ref",15),r=g(()=>o()===Tm.noop),l=g(()=>s(r)||i()),d=g(()=>s(r)?"btn-full-opacity":"");Wo(t,{get disabled(){return s(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});Rt(a,{get className(){return s(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(l)},get testId(){return s(f)},children:(v,u)=>{ka(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var X1=t=>!!t.buttonComponent;var ys={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,r]of Object.entries(e))r.set(Vr(t,i,n,o))};var Ny=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),By={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 km(t,e){var Fa,qs;D(e,!0),W(t,By);let[i,o]=Oe(),n=()=>C(Vi,"$disabledControls$",i),r=()=>C($i,"$adPlaybackState",i),l=()=>C(Mt,"$playbackState$",i),d=()=>C(bt,"$currentSubtitle$",i),a=()=>C(pi,"$isEnded$",i),p=()=>C(yi,"$currentGridType$",i),f=()=>C(oi,"$isLive$",i),v=()=>C(oo,"$chromecastState$",i),u=()=>C(ni,"$isPictureInPictureActive",i),$=()=>C(mi,"$pictureInPictureType$",i),w=()=>C(yt,"$availableSubtitlesList$",i),y=()=>C(Pt,"$contextMenuOpenedByKeyboard$",i),S=()=>C(z,"$showContextMenuBtn$",i),T=()=>C(Nn,"$playerSize",i),k=()=>C(Gt,"$isRewindableLive$",i),A=()=>C(st,"$isActiveLive$",i),I=()=>C(Po,"$graphIsOpened$",i),E=()=>C(qo,"$contextMenuVisible$",i),R=()=>C(Ut,"$isFullscreen",i),G=()=>C(Ri,"$autoplayNextEnabled",i),q=()=>C(s(Fr),"$prevButton",i),U=()=>C(s(br),"$replayButton",i),Q=()=>C(s(as),"$playButton",i),J=()=>C(s(bi),"$nextButton",i),j=()=>C(s(dr),"$playPrevChapterButton",i),ce=()=>C(s(wt),"$seekToInteractiveButton",i),le=()=>C(s(ai),"$interactiveGraphButton",i),ye=()=>C(s(Go),"$liveButton",i),ke=()=>C(s(an),"$time",i),me=()=>C(s(Sn),"$episodes",i),ae=()=>C(s(ln),"$vkLogo",i),Ve=()=>C(s(uo),"$volume",i),re=()=>C(s(so),"$subtitles",i),N=()=>C(s(Tn),"$settings",i),He=()=>C(s($r),"$context",i),_e=()=>C(s(Ur),"$fullscreen",i),ge=()=>C(s(zr),"$chromecast",i),de=()=>C(ho,"$additionalDesktopControlPanelRightButtons$",i),ue=()=>C(no,"$isInteractiveTime$",i),xe=()=>C(go,"$settingsMenuVisible",i),Z=()=>C(po,"$settingButtonRef$",i),qe=()=>C(ci,"$startedByKeyboard$",i),Je=()=>C(Qt,"$isAudioAvailable$",i),Pe=()=>C(Wt,"$fakeIsPlaying$",i),X=()=>C(ko,"$seekToInteractiveDisabledTooltip$",i),Te=()=>C(gt,"$adPosition",i),Ke=()=>C(tt,"$position$",i),nt=()=>C(ot,"$adDuration",i),mt=()=>C(Re,"$duration$",i),vt=m(e,"playerControlsWrapperRef",15,void 0),Tt=m(e,"playerControlsRef",15,void 0),Qe=m(e,"isAds",3,!1),zt=m(e,"logoTargetUrl",3,""),Jt=m(e,"isOneVideoPlaylist",3,!1),Zt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Wt}=vo(),ie=Ee(),Nt=vo(),we=kt(),ve=ie.actions.internal.toggleMuted,ne=ie.actions.internal.togglePlay,Be=ie.actions.internal.pause,ze=ie.actions.internal.toggleSubtitle,Me=(Fa=ie.callbacks)==null?void 0:Fa.onAudioDoesNotExistHint,We=(qs=ie.callbacks)==null?void 0:qs.onAudioDisabledHint,Re=ie.state.duration$,tt=ie.state.positionWithScrubbing$,Mt=ie.state.playbackState$,Qt=ie.state.isAudioAvailable$,et=ie.state.isAudioDisabled,pi=ie.state.isEnded$,oi=ie.state.isLive$,st=ie.state.isActiveLive$,Gt=ie.state.isRewindableLive$,{isActive$:ni,type$:mi}=Nt.pictureInPicture$,go=ie.ui.settingsMenu.visible$,io=ie.ui.settingsMenu.openedByBtnKeyboard$,Xt=ie.ui.controls,Ii=ie.actions.internal.getVideoEpisodes(),oo=ie.state.chromecastState$,yt=ie.state.availableSubtitlesList$,bt=ie.state.currentSubtitle$,Vi=Xt.disabledControls$,qo=ie.ui.contextMenu.visible$,z=ie.ui.contextMenu.showContextMenuBtn$,Pt=ie.ui.contextMenu.openedByBtnKeyboard$,ci=ie.ui.startedByKeyboard$,Lt=ie.ui.controlBlocks,ct=ie.ui.t,ot=ie.ads.duration,gt=ie.ads.position,$i=ie.ads.playbackState,Ut=ie.ui.isFullscreen,Nn=ie.ui.playerSize,yi=ie.ui.currentGridType$,ho=ie.ui.additionalDesktopControlPanelRightButtons$,Ri=ie.ui.autoplayNextEnabled$,xt=ie.actions.internal.getVideoElement,ki=ie.actions.internal.replayInteractive,tn=ie.actions.internal.prevVideoClick,on=ie.actions.internal.nextVideoClick,Ni=ie.state.isInteractive,no=ie.state.isInteractiveTime$,Ko=ie.state.showInteractiveGraph,_n=ie.state.showSeekToInteractive,Bn=ie.state.showPlayPrevChapter,xi=ie.state.showInteractiveTimeIndicator,bn=ie.state.playPrevChapterDisabledTooltip,ko=Nt.seekToInteractiveDisabledTooltip$,Po=Nt.graphIsOpened$,_o=we.features.interactiveResponsiveUi,nr=g(()=>n().has("EPISODE_BUTTON")),On=g(()=>n().has("GRAPH_BUTTON")),Dn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),$n=g(()=>n().has("PLAY_BUTTON")),Br=g(()=>n().has("REPLAY_BUTTON")),Hn=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),ss=()=>ie.actions.internal.toggleChromecast(),Or=g(()=>Qe()?r()==="playing":l()===Pa.PlaybackState.PLAYING),Wi=g(()=>d().value!=="off"),Fn=g(()=>a()&&!Qe()||Ni),yn=g(()=>_o?s(Fn)&&Xi(p(),"m"):s(Fn)),Un=g(()=>!a()||Ni||Qe()),Qo=g(()=>Xi(p(),"m")),zn=g(()=>e.showNextPrevButtons&&Xi(p(),"m")&&!Qe()&&e.nextButtonActive),xn=g(()=>e.showNextPrevButtons&&Xi(p(),"m")&&!Qe()&&e.prevButtonActive),rr=g(()=>!Qe()&&!!f()),sr=g(()=>v()!==Pa.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&Xi(p(),"m")&&!Ni),Dr=g(()=>e.showAutoplayNext&&!Jt()&&Xi(p(),"s")),Wn=g(()=>w().length>0&&Xi(p(),"m")),ar=g(()=>y()||S()),ut=g(()=>Xi(p(),"s")&&!Qe()),ti=g(()=>!e.logoHidden&&!Qe()),qn=g(()=>we.features.fullscreen&&(e.logoHidden||Xi(p(),_o?"xs":"s"))&&!(u()&&$()===1)&&(Ni?Zt():!0)),ri=g(()=>(!f()||Qe())&&!(we.features.interactiveHideTime&&Ni)),ro=g(()=>T().width>100),nn=g(()=>Ko&&Xi(p(),"m")),wn=g(()=>_o?_n&&Xi(p(),"s"):_n),Ao=g(()=>_o?Bn&&Xi(p(),"s"):Bn),rn=g(()=>!Qe()&&!f()&&!!(Ii!=null&&Ii.length)&&s(Qo)&&!s(nr)),Mo=g(()=>!k()||!!A()),bo=g(()=>I()?ct("tooltip_interactive_graph_on"):ct("tooltip_interactive_graph_off")),vr=g(()=>E()?ct("tooltip_context_menu_close"):ct("tooltip_context_menu_open")),gr=($t,lt)=>$t?lt&&lt===Pa.PlaybackState.PAUSED?ct("tooltip_play"):"":ct("tooltip_live"),Kn=g(()=>gr(s(Mo),l())),Hr=g(()=>we.logoType==="vk_video"?ct("tooltip_vk_video_logo"):ct("tooltip_vk_logo")),Cn=g(()=>s(Wi)?ct("tooltip_subtitles_on"):ct("tooltip_subtitles_off")),hr=g(()=>R()?ct("tooltip_fullscreen_on"):ct("tooltip_fullscreen_off")),lr=g(()=>v()===Pa.ChromecastState.CONNECTED?ct("tooltip_chromecast_on"):ct("tooltip_chromecast_off")),_r=g(()=>G()?ct("tooltip_autoplay_on"):ct("tooltip_autoplay_off")),sn=Y(0),qt=ii({}),Lo=ii({}),Fr=g(()=>Xt.prevButton),br=g(()=>Xt.replayButton),as=g(()=>Xt.playButton),bi=g(()=>Xt.nextButton),dr=g(()=>Xt.playPrevChapterButton),wt=g(()=>Xt.seekToInteractiveButton),ai=g(()=>Xt.interactiveGraphButton),Go=g(()=>Xt.liveButton),an=g(()=>Xt.time),Sn=g(()=>Xt.episodes),ln=g(()=>Xt.vkLogo),uo=g(()=>Xt.volume),so=g(()=>Xt.subtitles),Tn=g(()=>Xt.settings),$r=g(()=>Xt.context),Ur=g(()=>Xt.fullscreen),zr=g(()=>Xt.chromecast),qi=g(()=>({prevButton:q()?q().right-q().left:0,replayButton:U()?U().right-U().left:0,playButton:Q()?Q().right-Q().left:0,nextButton:J()?J().right-J().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:ye()?ye().right-ye().left:0,time:ke()?ke().right-ke().left:0,episodes:me()?me().right-me().left:0,vkLogo:ae()?ae().right-ae().left:0,volume:Ve()?Ve().right-Ve().left:0,subtitles:re()?re().right-re().left:0,settings:N()?N().right-N().left:0,context:He()?He().right-He().left:0,fullscreen:_e()?_e().right-_e().left:0,chromecast:ge()?ge().right-ge().left:0,additionalButtons:de().length?de().reduce($t=>[...$t,40],[]):[]})),rt=Y(0);Ue(()=>{(!s(rt)||s(rt)<s(qi).time)&&St(()=>B(rt,s(qi).time,!0))});let Dt=Y(!1);Ue(()=>{let $t=0;s(rn)&&(Xi(p(),"xl")?$t=s(qi).time:$t=60);let lt=s(qi).prevButton+s(qi).playButton+s(qi).nextButton+s(qi).seekToInteractiveButton+s(qi).interactiveGraphButton+s(qi).liveButton+s(rt)+$t;B(Dt,s(ri)&&s(sn)>=lt,!0)});let Pi=g(()=>s(Dt)&&Xi(p(),"m")),$o=(0,Im.debounceFn)(Sl,260),Ki=(0,Im.debounceFn)(Nu,260);Ue(()=>{T(),ue(),$o(xt(),Xt,qt,e.showControls),Ki(xt(),Lt,Lo,e.showControls)}),Ue(()=>{Lo.bottom=vt()});let po=oe();Ue(()=>{xe(),Z()&&St(()=>_l(Z(),xe(),io))});let yo;Ue(()=>{qe(),St(()=>Vu(ci,qe(),yo))});function Vo(){Os({isAudioDisabled:et,isAudioAvailable:Je(),isAds:Qe(),audioIsNotExistHintCallback:Me,audioDisabledHintCallback:We})&&ve()}let dn=Ni?ki:ne,Qi=g(()=>Pe()!==null),Gi=g(()=>s(Qi)?Pe():s(Or)),xo=g(()=>s(Gi)?ct("tooltip_pause"):ct("tooltip_play")),En=ct("tooltip_episodes"),ji=g(()=>{var $t,lt,mo,Yo;return s(xn)?{id:"prevButton",type:"desktop-control-panel-left",weight:bs.prevButton,buttonComponent:Ia,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:tn.bind(null,!0)},tooltipEnabled:!((lt=($t=ie.callbacks)==null?void 0:$t.uiInfo)!=null&&lt.onPrevButtonMouseEnter)&&!((Yo=(mo=ie.callbacks)==null?void 0:mo.uiInfo)!=null&&Yo.onPrevButtonMouseLeave),mouseEnter:()=>{var Yi,li,Di;(Di=(li=(Yi=ie.callbacks)==null?void 0:Yi.uiInfo)==null?void 0:li.onPrevButtonMouseEnter)==null||Di.call(li,Vr(xt(),qt,"prevButton",e.showControls))},mouseLeave:()=>{var Yi,li,Di;(Di=(li=(Yi=ie.callbacks)==null?void 0:Yi.uiInfo)==null?void 0:li.onPrevButtonMouseLeave)==null||Di.call(li,Vr(xt(),qt,"prevButton",e.showControls))},tooltipText:ct("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),cn=g(()=>s(yn)?{id:"replayButton",type:"desktop-control-panel-left",weight:bs.replayButton,buttonComponent:Tl,buttonComponentProps:{disabled:s(Br),click:dn},tooltipText:ct("tooltip_restart"),disabled:s(Br)}:void 0),yr=g(()=>s(Un)?{id:"playButton",type:"desktop-control-panel-left",weight:bs.playButton,buttonComponent:El,buttonComponentProps:{disabled:s($n),isPlaying:s(Or),click:ne},tooltipText:s(xo),disabled:s($n)}:void 0),Wr=g(()=>{var $t,lt,mo,Yo;return s(zn)?{id:"nextButton",type:"desktop-control-panel-left",weight:bs.nextButton,buttonComponent:Ia,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:on.bind(null,!0)},tooltipEnabled:!((lt=($t=ie.callbacks)==null?void 0:$t.uiInfo)!=null&&lt.onNextButtonMouseEnter)&&!((Yo=(mo=ie.callbacks)==null?void 0:mo.uiInfo)!=null&&Yo.onNextButtonMouseLeave),mouseEnter:()=>{var Yi,li,Di;(Di=(li=(Yi=ie.callbacks)==null?void 0:Yi.uiInfo)==null?void 0:li.onNextButtonMouseEnter)==null||Di.call(li,Vr(xt(),qt,"nextButton",e.showControls))},mouseLeave:()=>{var Yi,li,Di;(Di=(li=(Yi=ie.callbacks)==null?void 0:Yi.uiInfo)==null?void 0:li.onNextButtonMouseLeave)==null||Di.call(li,Vr(xt(),qt,"nextButton",e.showControls))},tooltipText:ct("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Qn=g(()=>Ni&&s(Ao)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:bs.playPrevChapterButton,buttonComponent:Kd,buttonComponentProps:{disabled:s(Hn),click:e.playPrevChapter},tooltipText:ct("tooltip_interactive_go_back"),disabledTooltipContent:ct(bn),disabled:s(Hn)}:void 0),ls=g(()=>Ni&&s(wn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:bs.seekToInteractiveButton,buttonComponent:Gd,buttonComponentProps:{disabled:s(Dn),click:e.seekToInteractive},tooltipText:ct("tooltip_interactive_seek"),disabled:s(Dn),disabledTooltipContent:ct(X())}:void 0),xr=g(()=>Ni&&s(nn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:bs.interactiveGraphButton,buttonComponent:jd,buttonComponentProps:{disabled:s(On),click:Po.toggle,graphIsOpened:I()},tooltipText:s(bo)}:void 0),Ro=g(()=>s(rr)?{id:"liveButton",type:"desktop-control-panel-left",weight:bs.liveButton,buttonComponent:Yd,buttonComponentProps:{isLiveActive:s(Mo),ariaLabel:s(Kn)},tooltipText:s(Kn),disabled:s(Mo)&&l()===Pa.PlaybackState.PLAYING}:void 0),No=g(()=>[s(ji),s(cn),s(yr),s(Wr),s(Qn),s(ls),s(xr),s(Ro)].filter($t=>!!$t).sort(ba)),Gn=g(()=>s(ti)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ys.vkLogo,buttonComponent:Od,buttonComponentProps:{targetUrl:zt(),logoClickable:e.logoClickable,click:Be},tooltipText:s(Hr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),qr=g(()=>s(Dr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ys.autoplayNext,buttonComponent:Qd,tooltipText:s(_r)}:void 0),Kr=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:ys.volume,buttonComponent:tm,buttonComponentProps:{click:Vo,isAds:Qe()}})),Ge=g(()=>s(Wn)?{id:"subtitles",type:"desktop-control-panel-right",weight:ys.subtitles,buttonComponent:Zf,buttonComponentProps:{isSubtitlesEnabled:s(Wi),click:ze},tooltipText:s(Cn)}:void 0),jt=g(()=>s(ut)?{id:"settings",type:"desktop-control-panel-right",weight:ys.settings,buttonComponent:wl,buttonComponentProps:{ref$:po},tooltipText:xe()?void 0:ct("tooltip_settings_off")}:void 0),pe=g(()=>we.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ys.context,buttonComponent:bm,buttonComponentProps:{ariaLabel:ct("aria_label_context_menu")},className:s(ar)?"":"out-of-view",tooltipText:s(vr)}:void 0),Ct=g(()=>s(qn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ys.fullscreen,buttonComponent:Bd,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:s(hr)}:void 0),si=g(()=>s(sr)?{id:"chromecast",type:"desktop-control-panel-right",weight:ys.chromecast,buttonComponent:Dd,buttonComponentProps:{state:v(),click:ss},tooltipText:s(lr)}:void 0),Bi=g(()=>[s(Gn),s(qr),s(Kr),s(Ge),s(jt),s(pe),s(Ct),s(si),...de()].filter($t=>!!$t).sort(ba));var wi=Ny(),Oi=fe(wi);let Ze;var Bt=_(Oi);let Ci=g(()=>!e.showControls),jo=g(()=>!s(ro));Ta(Bt,{get isHidden(){return s(Ci)},get timelineNotAvailable(){return s(jo)},get isAds(){return Qe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return k()},get ref(){return qt.timeline},set ref($t){qt.timeline=$t}});var un=P(Bt,2),fo=_(un),Qr=_(fo);Si(Qr,17,()=>s(No),$t=>$t.id,($t,lt)=>{Ru($t,{get buttonComponent(){return s(lt).buttonComponent},get buttonComponentProps(){return s(lt).buttonComponentProps},get tooltipText(){return s(lt).tooltipText},get disabledTooltipContent(){return s(lt).disabledTooltipContent},get disabled(){return s(lt).disabled},get className(){return s(lt).className},get tooltipEnabled(){return s(lt).tooltipEnabled},get mouseEnter(){return s(lt).mouseEnter},get mouseLeave(){return s(lt).mouseLeave},get ref(){return qt[s(lt).id]},set ref(mo){qt[s(lt).id]=mo}})});var wr=P(Qr,2);{var gi=$t=>{let lt=g(()=>!e.showControls),mo=g(()=>Qe()?Te():Ke()),Yo=g(()=>Qe()?nt():mt());Vd($t,{get isHidden(){return s(lt)},isMobile:!1,get showDuration(){return s(Pi)},get position(){return s(mo)},get duration(){return s(Yo)},get ref(){return qt.time},set ref(Yi){qt.time=Yi}})};L(wr,$t=>{s(ri)&&$t(gi)})}var Ai=P(wr,2);let In=g(()=>!s(rn));Wo(Ai,{className:"w-max",get disabled(){return s(In)},get tooltipContent(){return En},get ref(){return qt.episodes},set ref($t){qt.episodes=$t},children:($t,lt)=>{var mo=Fe(),Yo=fe(mo);{var Yi=li=>{Fd(li,{get position(){return Ke()},get duration(){return mt()},get timeCodes(){return Ii}})};L(Yo,li=>{s(rn)&&li(Yi)})}b($t,mo)},$$slots:{default:!0}}),h(fo);var jn=P(fo,2);Si(jn,21,()=>s(Bi),$t=>$t.id,($t,lt)=>{var mo=Fe(),Yo=fe(mo);{var Yi=Di=>{Ru(Di,{get buttonComponent(){return s(lt).buttonComponent},get buttonComponentProps(){return s(lt).buttonComponentProps},get tooltipText(){return s(lt).tooltipText},get disabledTooltipContent(){return s(lt).disabledTooltipContent},get disabled(){return s(lt).disabled},get className(){return s(lt).className},get ref(){return qt[s(lt).id]},set ref(ws){qt[s(lt).id]=ws}})},li=Di=>{let ws=g(()=>!!s(lt).disabled);Em(Di,{get id(){return s(lt).id},get testId(){return s(lt).testId},get icon(){return s(lt).icon},get ariaLabel(){return s(lt).ariaLabel},get tooltipText(){return s(lt).tooltipText},get disabledTooltipContent(){return s(lt).disabledTooltipContent},get disabled(){return s(ws)},get onClick(){return s(lt).onClick},get disableMouseupTooltipShow(){return s(lt).disableMouseupTooltipShow},get ref(){return qt[s(lt).id]},set ref(Ol){qt[s(lt).id]=Ol}})};L(Yo,Di=>{X1(s(lt))?Di(Yi):Di(li,!1)})}b($t,mo)}),h(jn),h(un),it(un,$t=>Tt($t),()=>Tt()),h(Oi),it(Oi,$t=>vt($t),()=>vt());var Cr=P(Oi,2);{var wo=$t=>{Wd($t,{get ref(){return qt.interactiveTimeIndicator},set ref(lt){qt.interactiveTimeIndicator=lt}})};L(Cr,$t=>{xi&&$t(wo)})}O($t=>Ze=te(Oi,1,"wrapper-bottom svelte-f6e8ix",null,Ze,$t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),ts(fo,"clientWidth",$t=>B(sn,$t)),b(t,wi),H(),o()}var Il=require("@vkontakte/videoplayer-core/es2018");var Pm=require("@vkontakte/videoplayer-shared/es2018");var Oy=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Dy=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),Hy={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 Am(t,e){W(t,Hy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Pm.noop),n=g(()=>o()===Pm.noop),r=g(()=>s(n)||i()),l=Y(!1),d=()=>{B(l,!0)},a=g(()=>s(n)?"btn-full-opacity":"");Rt(t,{get className(){return s(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(r)},get testId(){return e.testId},children:(p,f)=>{var v=Fe(),u=fe(v);{var $=y=>{var S=Oy();b(y,S)},w=y=>{var S=Dy();O(()=>De(S,"src",e.iconUrl)),Et("error",S,d),ra(S),b(y,S)};L(u,y=>{s(l)?y($):y(w,!1)})}b(p,v)},$$slots:{default:!0}})}var Fy=Se('<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 Mm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var J1=require("@vkontakte/videoplayer-shared/es2018");var Uy=M('<span class="text svelte-6gmlbk"> </span>'),zy=M('<div aria-hidden="true"><!> <!></div>'),Wy={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function Bu(t,e){D(e,!0),W(t,Wy);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,J1.noop),r=m(e,"ref",15,void 0),d=Ee().ui.t,a=g(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=g(()=>o()?Hs:Mm),f=g(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Rt(t,{get testId(){return s(f)},get click(){return n()},get ariaLabel(){return s(a)},role:"button",get ref(){return r()},set ref(v){r(v)},children:(v,u)=>{var $=zy();let w=g(()=>s(p)),y;var S=_($);Ti(S,()=>s(w),(A,I)=>{I(A,{})});var T=P(S,2);{var k=A=>{var I=Uy(),E=_(I,!0);h(I),O(R=>he(E,R),[()=>d("mobile_unmute")]),b(A,I)};L(T,A=>{o()&&A(k)})}h($),O(A=>y=te($,1,"container svelte-6gmlbk",null,y,A),[()=>({expanded:o()})]),b(v,$)},$$slots:{default:!0}}),H()}var qy=Se('<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 Lm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=qy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(3),h(o),b(t,o)}var Ky={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Vm(t,e){W(t,Ky);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");Lm(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}var e0=require("@vkontakte/videoplayer-shared/es2018");function Rm(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,e0.noop),r=F("menu_pip");Rt(t,{testId:"btn-pip",get ariaLabel(){return r},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Vm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var Nm=require("@vkontakte/videoplayer-shared/es2018");var Qy=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},Gy=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},jy=M("<div><!></div>"),Yy=M("<div><!></div>"),Zy=M("<div><!></div>"),Xy=M("<!> <!> <!>",1),Jy=M("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),e4=M("<div><!></div>"),t4=M('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),i4=M("<!> <!> <div><!></div>",1),o4=M('<div aria-hidden="true">\xB7</div> <!>',1),n4=M('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!></div></div> <!></div></div> <!>',1),r4={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {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-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {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-9xcbwc {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-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
253
253
  .wrapper-middle-left-second.svelte-9xcbwc,
254
254
  .wrapper-middle-right.svelte-9xcbwc {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-9xcbwc {left:12px;}.wrapper-middle-left-second.svelte-9xcbwc {left:64px;}.wrapper-middle-right.svelte-9xcbwc {right:12px;}.controls.svelte-9xcbwc {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-9xcbwc {display:flex;}.controls-group.contain.svelte-9xcbwc {min-width:0;}.controls-group.svelte-9xcbwc > *:not(:first-child) {margin-left:8px;}.hidden.svelte-9xcbwc {visibility:hidden;opacity:0;}.controls-hidden.svelte-9xcbwc {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-9xcbwc {transition:none;}.overlay-mobile.svelte-9xcbwc {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);}
255
255
 
@@ -258,7 +258,7 @@ Try switching the\xA0quality to\xA0Auto.`},n1=G_;var vs=new Map;vs.set(ul.Interf
258
258
  }
259
259
 
260
260
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-9xcbwc {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-9xcbwc {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-9xcbwc {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-9xcbwc {left:96px;}.wrapper-middle-right.fullscreen.svelte-9xcbwc {right:44px;}.controls-wrapper.fullscreen.svelte-9xcbwc {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
261
- }`};function Vm(t,e){var wr,Kr;D(e,!0),z(t,Gy);let[i,o]=De(),n=()=>C(vn,"$seekToInteractiveDisabledTooltip$",i),r=()=>C(Oo,"$disabledControls$",i),l=()=>C(Lt,"$playbackState$",i),d=()=>C(vt,"$adPlaybackState",i),a=()=>C(se,"$isEnded$",i),p=()=>C(ft,"$playerSize",i),f=()=>C(Re,"$scrubbingInProgress",i),v=()=>C(_t,"$chromecastState$",i),u=()=>C(At,"$isPictureInPictureActive",i),$=()=>C(Vt,"$pictureInPictureType$",i),w=()=>C(it,"$mobileNotReportControlHidden$",i),y=()=>C(Si,"$chromecastHidden",i),S=()=>C(Yt,"$playerPhase",i),T=()=>C(mo,"$pipHidden",i),k=()=>C(Dt,"$currentGridType$",i),A=()=>C(ui,"$vkLogoHidden",i),I=()=>C(Oe,"$isLive$",i),E=()=>C(fi,"$settingsMenuVisible",i),V=()=>C(je,"$isRewindableLive$",i),K=()=>C(Ae,"$isActiveLive$",i),W=()=>C(vo,"$isInteractiveTime$",i),U=()=>C(me,"$isAudioAvailable$",i),Y=()=>C(Ho,"$settingButtonRef$",i),ne=()=>C(q,"$startedByKeyboard$",i),G=()=>C(rt,"$isFullscreen",i),ce=()=>C(ni,"$mobileUnmuteButtonVisible",i),le=()=>C(ii,"$volumeHidden",i),we=()=>C(ze,"$muted$",i),Ve=()=>C(et,"$mobileUnmuteButtonExpanded",i),ve=()=>C(hi,"$additionalButtons$",i),ae=()=>C(To,"$autoplayNextToggleHidden",i),Le=()=>C(Ti,"$crashed$",i),te=()=>C(Xt,"$settingsHidden",i),N=()=>C(Ii,"$graphIsOpened$",i),Be=()=>C(Gt,"$adPosition",i),ye=()=>C(ci,"$adDuration",i),ge=()=>C(ee,"$position$",i),de=()=>C(Ot,"$duration$",i),ue=m(e,"playerControlsWrapperRef",15,void 0),xe=m(e,"playerControlsRef",15,void 0),Z=m(e,"isAds",3,!1),qe=m(e,"logoTargetUrl",3,""),Je=m(e,"isOneVideoPlaylist",3,!1),ke=m(e,"customFullscreenSupported",3,!0),X=Ee(),Te=fo(),Ke=zt(),st=X.actions.internal.toggleMuted,pt=X.actions.internal.togglePlay,bt=X.actions.internal.pause,Ct=X.actions.internal.prevVideoClick,Qe=X.actions.internal.nextVideoClick,Qt=(wr=X.callbacks)==null?void 0:wr.onAudioDoesNotExistHint,Zt=(Kr=X.callbacks)==null?void 0:Kr.onAudioDisabledHint,Yt=X.playerPhase,Ot=X.state.duration$,ee=X.state.positionWithScrubbing$,Lt=X.state.playbackState$,me=X.state.isAudioAvailable$,_e=X.state.isAudioDisabled,se=X.state.isEnded$,Oe=X.state.isLive$,ze=X.state.muted$,Ae=X.state.isActiveLive$,je=X.state.isRewindableLive$,Re=X.ui.scrubbingInProgress,it=X.ui.mobileNotReportControlHidden$,{isActive$:At,type$:Vt}=Te.pictureInPicture$,et=X.ui.mobileUnmuteButtonExpanded,ni=X.ui.mobileUnmuteButtonVisible,fi=X.ui.settingsMenu.visible$,lt=X.ui.settingsMenu.openedByBtnKeyboard$,ei=X.ui.controls,{volume:ii,vkLogo:ui,autoplayNextToggle:To,pip:mo,settings:Xt,chromecast:Si}=X.ui.hiddenControls,eo=X.actions.internal.getVideoEpisodes(),xt=X.webApi.pictureInPictureApi,_t=X.state.chromecastState$,Ti=X.state.crashed$,Oo=ei.disabledControls$,q=X.ui.startedByKeyboard$,Dt=X.ui.currentGridType$,ci=X.ads.duration,Gt=X.ads.position,vt=X.ads.playbackState,rt=X.ui.isFullscreen,ft=X.ui.playerSize,hi=X.ui.additionalButtonsDeprecated$,Ht=X.actions.internal.getVideoElement,Jn=X.actions.internal.replayInteractive,Ei=X.state.isInteractive,vo=X.state.isInteractiveTime$,Li=X.state.showInteractiveGraph,yt=X.state.showSeekToInteractive,Vi=X.state.showPlayPrevChapter,Zo=X.state.showInteractiveTimeIndicator,vn=Te.seekToInteractiveDisabledTooltip$,Ii=Te.graphIsOpened$,to=X.ui.controlBlocks,ki=h(()=>F(X.state.playPrevChapterDisabledTooltip)),Xo=h(()=>F(n())),Vn=h(()=>r().has("EPISODE_BUTTON")),Eo=h(()=>r().has("GRAPH_BUTTON")),Do=h(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),go=h(()=>r().has("PLAY_BUTTON")),ho=h(()=>r().has("REPLAY_BUTTON")),Jo=h(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Rn=h(()=>l()===Tl.PlaybackState.PLAYING),er=h(()=>d()==="paused"),tr=h(()=>a()&&!Z()&&!Ei),ir=h(()=>!a()||Z()),Hr=h(()=>e.showNextPrevButtons&&!Z()&&e.prevButtonActive),Nn=h(()=>e.showNextPrevButtons&&!Z()&&e.nextButtonActive),as=h(()=>p().width>300),Fr=h(()=>p().width>400),Ui=h(f),gn=h(()=>v()!==Tl.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!Ei&&!y()),en=h(()=>S()==="LiveWaitingStart"),hn=h(()=>!!xt&&v()!==Tl.ChromecastState.CONNECTED&&!w()&&($()===1&&s(en)||!s(en))&&!s(Ui)&&!Ei&&!T()),_o=h(()=>!s(Ui)&&ji(k(),"s")),_n=h(()=>!e.logoHidden&&p().width>350&&!A()),Bn=h(()=>Ke.features.fullscreen&&!(u()&&$()===1)&&(Ei?ke():!0)&&!s(Ui)),Ur=h(()=>(!I()||Z())&&p().width>260&&!s(Ui)&&!(Ke.features.interactiveHideTime&&Ei)),hr=h(()=>E()||e.showControls),zr=h(()=>!Z()&&!I()&&!!(eo!=null&&eo.length)&&s(as)&&!s(Vn)&&!s(Ui)),bn=h(()=>!V()||!!K()),On=h(()=>Li&&ji(k(),"m")),ot=oi({}),Wt=oi({}),Dn=(0,Lm.debounceFn)(wl,260),zi=(0,Lm.debounceFn)(Au,260);We(()=>{p(),W(),Dn(Ht(),ei,ot,e.showControls),zi(Ht(),to,Wt,e.showControls)});let or=()=>X.actions.internal.toggleChromecast();async function Hn(){xt!=null&&xt.isActive()?await(xt==null?void 0:xt.exit()):await(xt==null?void 0:xt.request())}function $n(){(!_e&&U()||Z())&&ni.set(!1),Rs({isAudioDisabled:_e,audioDisabledHintCallback:Zt,isAudioAvailable:U(),audioIsNotExistHintCallback:Qt,isAds:Z()})&&st()}let Wi=j(""),tn=(tt,Mt)=>{if(!tt){B(Wi,F("tooltip_live"),!0);return}Mt&&Mt===Tl.PlaybackState.PAUSED&&B(Wi,F("tooltip_play"),!0)};We(()=>{tn(s(bn),l())});let Ho=re();We(()=>{Y()&&gl(Y(),E(),lt)}),We(()=>{ku(q,ne(),ot.playButton)});var yn=Qy(),_r=fe(yn);{var br=tt=>{var Mt=Uy(),_i=fe(Mt);let ko;var oo=P(_i,2);let bo;var $o=_(oo);{var sn=Fe=>{let It=h(()=>U()&&!_e&&Ve());Mu(Fe,{get muted(){return we()},get expanded(){return s(It)},click:$n,get ref(){return ot.volume},set ref(bi){ot.volume=bi}})};L($o,Fe=>{(!U()||ce())&&!le()&&Fe(sn)})}g(oo),nt(oo,Fe=>Wt.topLeft=Fe,()=>Wt==null?void 0:Wt.topLeft);var yo=P(oo,2);let qi;var Ki=_(yo);xi(Ki,1,ve,({iconUrl:Fe,ariaLabel:It,testId:bi,onClick:Wo,tooltip:Ni})=>Fe,(Fe,It)=>{let bi=()=>s(It).iconUrl,Wo=()=>s(It).ariaLabel,Ni=()=>s(It).testId,Wn=()=>s(It).onClick,Er=()=>s(It).tooltip,qo=h(()=>{var Gi;return(Gi=Wo())!=null?Gi:Er()});Im(Fe,{get iconUrl(){return bi()},get ariaLabel(){return s(qo)},get testId(){return Ni()},get onClick(){return Wn()}})});var Uo=P(Ki,2);{var no=Fe=>{qd(Fe,{get ref(){return ot.autoplayNextToggle},set ref(It){ot.autoplayNextToggle=It}})};L(Uo,Fe=>{e.showAutoplayNext&&!Je()&&!ae()&&Fe(no)})}var zo=P(Uo,2);{var Sn=Fe=>{Bd(Fe,{isMobile:!0,click:or,get state(){return v()},get ref(){return ot.chromecast},set ref(It){ot.chromecast=It}})};L(zo,Fe=>{s(gn)&&Fe(Sn)})}var Cr=P(zo,2);{var Qr=Fe=>{Mm(Fe,{click:Hn,get isPictureInPictureActive(){return u()},get ref(){return ot.pip},set ref(It){ot.pip=It}})};L(Cr,Fe=>{s(hn)&&Fe(Qr)})}var Gr=P(Cr,2);{var ar=Fe=>{yl(Fe,{get ref$(){return Ho}})};L(Gr,Fe=>{Le()&&!te()&&Fe(ar)})}var Sr=P(Gr,2);{var Tn=Fe=>{Nd(Fe,{get click(){return bt},get targetUrl(){return qe()},get logoClickable(){return e.logoClickable},get ref(){return ot.vkLogo},set ref(It){ot.vkLogo=It}})};L(Sr,Fe=>{s(_n)&&Fe(Tn)})}g(yo),nt(yo,Fe=>Wt.topRight=Fe,()=>Wt==null?void 0:Wt.topRight);var Qi=P(yo,2);let zn;var lr=_(Qi);{var Tr=Fe=>{let It=h(()=>Ct.bind(null,!0));Ta(Fe,{get click(){return s(It)},type:"prev",isMobile:!0,get ref(){return ot.prevButton},set ref(bi){ot.prevButton=bi}})};L(lr,Fe=>{s(Hr)&&Fe(Tr)})}var dr=P(lr,2);{var Ze=Fe=>{Sl(Fe,{get disabled(){return s(go)},get click(){return pt},isMobile:!0,get isPlaying(){return s(Rn)},get ref(){return ot.playButton},set ref(It){ot.playButton=It}})};L(dr,Fe=>{s(ir)&&Fe(Ze)})}var Jt=P(dr,2);{var pe=Fe=>{Cl(Fe,{get disabled(){return s(ho)},get click(){return pt},isMobile:!0,get ref(){return ot.replayButton},set ref(It){ot.replayButton=It}})};L(Jt,Fe=>{s(tr)&&Fe(pe)})}var wt=P(Jt,2);{var ri=Fe=>{let It=h(()=>Qe.bind(null,!0));Ta(Fe,{get click(){return s(It)},type:"next",isMobile:!0,get ref(){return ot.nextButton},set ref(bi){ot.nextButton=bi}})};L(wt,Fe=>{s(Nn)&&Fe(ri)})}g(Qi),nt(Qi,Fe=>Wt.middle=Fe,()=>Wt==null?void 0:Wt.middle);var Ri=P(Qi,2);{var yi=Fe=>{var It=Fy(),bi=fe(It);{var Wo=Gi=>{var Bi=Oy();let an;Bi.__click=[Ny,Jo,e,ki];var cr=_(Bi);let ur=h(()=>!e.showControls);Wd(cr,{get hidden(){return s(ur)},get disabled(){return s(Jo)},get click(){return e.playPrevChapter},get ref(){return ot.playPrevChapterButton},set ref(Po){ot.playPrevChapterButton=Po}}),g(Bi),O(Po=>an=J(Bi,1,"wrapper-middle-left svelte-9xcbwc",null,an,Po),[()=>({fullscreen:G(),hidden:!e.showControls})]),b(Gi,Bi)};L(bi,Gi=>{Vi&&Gi(Wo)})}var Ni=P(bi,2);{var Wn=Gi=>{var Bi=Dy();let an;var cr=_(Bi);let ur=h(()=>!e.showControls&&!N());Qd(cr,{get hidden(){return s(ur)},get disabled(){return s(Eo)},get click(){return Ii.toggle},get graphIsOpened(){return N()},get ref(){return ot.interactiveGraphButton},set ref(Po){ot.interactiveGraphButton=Po}}),g(Bi),O(Po=>an=J(Bi,1,ad(Vi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",an,Po),[()=>({fullscreen:G(),hidden:!e.showControls&&!N()})]),b(Gi,Bi)};L(Ni,Gi=>{s(On)&&Gi(Wn)})}var Er=P(Ni,2);{var qo=Gi=>{var Bi=Hy();let an;Bi.__click=[By,Do,e,Xo];var cr=_(Bi);let ur=h(()=>!e.showControls);Kd(cr,{get hidden(){return s(ur)},get disabled(){return s(Do)},get click(){return e.seekToInteractive},get ref(){return ot.seekToInteractiveButton},set ref(Po){ot.seekToInteractiveButton=Po}}),g(Bi),O(Po=>an=J(Bi,1,"wrapper-middle-right svelte-9xcbwc",null,an,Po),[()=>({fullscreen:G(),hidden:!e.showControls})]),b(Gi,Bi)};L(Er,Gi=>{yt&&Gi(qo)})}b(Fe,It)};L(Ri,Fe=>{Ei&&!f()&&Fe(yi)})}O((Fe,It,bi,Wo)=>{ko=J(_i,1,"overlay-mobile svelte-9xcbwc",null,ko,Fe),bo=J(oo,1,"wrapper-top-left svelte-9xcbwc",null,bo,It),qi=J(yo,1,"wrapper-top-right svelte-9xcbwc",null,qi,bi),zn=J(Qi,1,"wrapper-middle svelte-9xcbwc",null,zn,Wo)},[()=>({hidden:!s(hr)}),()=>({hidden:!e.showControls,fullscreen:G()}),()=>({hidden:!e.showControls&&!w(),fullscreen:G()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(tt,Mt)};L(_r,tt=>{Z()||tt(br)})}var xn=P(_r,2);{var Wr=tt=>{var Mt=qy(),_i=fe(Mt);{var ko=qi=>{var Ki=zy();let Uo;var no=_(Ki);Mu(no,{get muted(){return we()},expanded:!1,click:$n,get ref(){return ot.volume},set ref(zo){ot.volume=zo}}),g(Ki),O(zo=>Uo=J(Ki,1,"wrapper-top-right svelte-9xcbwc",null,Uo,zo),[()=>({fullscreen:G()})]),b(qi,Ki)};L(_i,qi=>{ce()&&qi(ko)})}var oo=P(_i,2);{var bo=qi=>{var Ki=Wy(),Uo=_(Ki);let no=h(()=>!s(er));Sl(Uo,{get disabled(){return s(go)},get click(){return pt},isMobile:!0,get isPlaying(){return s(no)},get ref(){return ot.playButton},set ref(zo){ot.playButton=zo}}),g(Ki),b(qi,Ki)};L(oo,qi=>{s(er)&&qi(bo)})}var $o=P(oo,2);let sn;var yo=_($o);Od(yo,{get position(){return Be()},get duration(){return ye()}}),g($o),O(qi=>sn=J($o,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,sn,qi),[()=>({fullscreen:G()})]),b(tt,Mt)};L(xn,tt=>{Z()&&d()!=="inactive"&&tt(Wr)})}var wn=P(xn,2);let qr;var nr=_(wn);let $r;var on=_(nr);J(on,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var qt=_(on),Io=_(qt);{var rr=tt=>{Bo(tt,{get disabled(){return s(ho)},get ref(){return ot.replayButton},set ref(Mt){ot.replayButton=Mt},children:(Mt,_i)=>{Cl(Mt,{get disabled(){return s(ho)},get click(){return Jn}})},$$slots:{default:!0}})};L(Io,tt=>{Ei&&tt(rr)})}var Fn=P(Io,2);{var sr=tt=>{Bo(tt,{get ref(){return ot.liveButton},set ref(Mt){ot.liveButton=Mt},children:(Mt,_i)=>{Gd(Mt,{get isLiveActive(){return s(bn)},isMobile:!0,get ariaLabel(){return s(Wi)}})},$$slots:{default:!0}})};L(Fn,tt=>{!Z()&&I()&&tt(sr)})}var $i=P(Fn,2);{var yr=tt=>{let Mt=h(()=>Z()?Be():ge()),_i=h(()=>Z()?ye():de());Md(tt,{get showDuration(){return s(Fr)},get position(){return s(Mt)},get duration(){return s(_i)},isMobile:!0,get ref(){return ot.time},set ref(ko){ot.time=ko}})};L($i,tt=>{s(Ur)&&tt(yr)})}var Et=P($i,2);let ai=h(()=>!s(zr));Bo(Et,{className:"w-max",get disabled(){return s(ai)},get ref(){return ot.episodes},set ref(tt){ot.episodes=tt},children:(tt,Mt)=>{var _i=Ue(),ko=fe(_i);{var oo=bo=>{var $o=Ky(),sn=P(fe($o),2);Dd(sn,{get position(){return ge()},get duration(){return de()},get timeCodes(){return eo}}),b(bo,$o)};L(ko,bo=>{s(zr)&&bo(oo)})}b(tt,_i)},$$slots:{default:!0}}),g(qt),nt(qt,tt=>Wt.bottomRight=tt,()=>Wt==null?void 0:Wt.bottomRight);var nn=P(qt,2),rn=_(nn);{var Cn=tt=>{Bo(tt,{get ref(){return ot.settings},set ref(Mt){ot.settings=Mt},children:(Mt,_i)=>{yl(Mt,{get ref$(){return Ho}})},$$slots:{default:!0}})};L(rn,tt=>{s(_o)&&tt(Cn)})}var Fo=P(rn,2);{var po=tt=>{Bo(tt,{get ref(){return ot.fullscreen},set ref(Mt){ot.fullscreen=Mt},children:(Mt,_i)=>{Rd(Mt,{get click(){return e.toggleFullscreen},get isFullscreen(){return G()}})},$$slots:{default:!0}})};L(Fo,tt=>{s(Bn)&&tt(po)})}g(nn),nt(nn,tt=>Wt.bottomRight=tt,()=>Wt==null?void 0:Wt.bottomRight),g(on),nt(on,tt=>xe(tt),()=>xe());var io=P(on,2);Ca(io,{get isAds(){return Z()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return V()},get ref(){return ot.timeline},set ref(tt){ot.timeline=tt}}),g(nr),g(wn),nt(wn,tt=>ue(tt),()=>ue());var Un=P(wn,2);{var xr=tt=>{Ud(tt,{get ref(){return ot.interactiveTimeIndicator},set ref(Mt){ot.interactiveTimeIndicator=Mt}})};L(Un,tt=>{Zo&&tt(xr)})}O((tt,Mt)=>{qr=J(wn,1,"wrapper-bottom svelte-9xcbwc",null,qr,tt),$r=J(nr,1,"controls-wrapper svelte-9xcbwc",null,$r,Mt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:G()})]),b(t,yn),H(),o()}dt(["click"]);function Yd(t,e){D(e,!0);let[i,o]=De(),n=()=>C(T,"$isMobile",i),r=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),$=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,Rm.noop),y=m(e,"onDisabledSeekToInteractiveClick",3,Rm.noop),T=Ee().ui.isMobile,k=j(!1);Bt(()=>{let V=setTimeout(()=>B(k,!0),0);return()=>clearTimeout(V)});var A=Ue(),I=fe(A);{var E=V=>{var K=Ue(),W=fe(K);{var U=ne=>{Vm(ne,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},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 $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(G){l(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})},Y=ne=>{Tm(ne,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},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(W,ne=>{n()?ne(U):ne(Y,!1)})}b(V,K)};L(I,V=>{s(k)&&V(E)})}b(t,A),H(),o()}var Yy=Se('<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 Nm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function Bm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Nm(t,{get style(){return s(o)}})}var jy=Se('<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 Om(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=jy();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var Zy=Se('<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 Dm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function Lu(t,e){let i=m(e,"isOff",3,!1);var o=Ue(),n=fe(o);{var r=d=>{Dm(d,{})},l=d=>{Om(d,{})};L(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var Xy=Se('<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 Hm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Xy();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function Fm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Hm(t,{get style(){return s(o)}})}var Jy=Se('<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 Um(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Jy();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function zm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Um(t,{get style(){return s(o)}})}var e4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),t4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),i4=M("<div><!></div>"),o4={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;
261
+ }`};function Bm(t,e){var zr,qi;D(e,!0),W(t,r4);let[i,o]=Oe(),n=()=>C(on,"$seekToInteractiveDisabledTooltip$",i),r=()=>C(qo,"$disabledControls$",i),l=()=>C(Nt,"$playbackState$",i),d=()=>C(ct,"$adPlaybackState",i),a=()=>C(ne,"$isEnded$",i),p=()=>C(gt,"$playerSize",i),f=()=>C(Re,"$scrubbingInProgress",i),v=()=>C(bt,"$chromecastState$",i),u=()=>C(Mt,"$isPictureInPictureActive",i),$=()=>C(Qt,"$pictureInPictureType$",i),w=()=>C(tt,"$mobileNotReportControlHidden$",i),y=()=>C(Ii,"$chromecastHidden",i),S=()=>C(Zt,"$playerPhase",i),T=()=>C(io,"$pipHidden",i),k=()=>C(Pt,"$currentGridType$",i),A=()=>C(mi,"$vkLogoHidden",i),I=()=>C(Be,"$isLive$",i),E=()=>C(oi,"$settingsMenuVisible",i),R=()=>C(We,"$isRewindableLive$",i),G=()=>C(Me,"$isActiveLive$",i),q=()=>C(ho,"$isInteractiveTime$",i),U=()=>C(we,"$isAudioAvailable$",i),Q=()=>C(Mo,"$settingButtonRef$",i),J=()=>C(z,"$startedByKeyboard$",i),j=()=>C(ot,"$isFullscreen",i),ce=()=>C(pi,"$mobileUnmuteButtonVisible",i),le=()=>C(ni,"$volumeHidden",i),ye=()=>C(ze,"$muted$",i),ke=()=>C(et,"$mobileUnmuteButtonExpanded",i),me=()=>C($i,"$additionalButtons$",i),ae=()=>C(go,"$autoplayNextToggleHidden",i),Ve=()=>C(Vi,"$crashed$",i),re=()=>C(Xt,"$settingsHidden",i),N=()=>C(Ni,"$graphIsOpened$",i),He=()=>C(Lt,"$adPosition",i),_e=()=>C(ci,"$adDuration",i),ge=()=>C(ie,"$position$",i),de=()=>C(Wt,"$duration$",i),ue=m(e,"playerControlsWrapperRef",15,void 0),xe=m(e,"playerControlsRef",15,void 0),Z=m(e,"isAds",3,!1),qe=m(e,"logoTargetUrl",3,""),Je=m(e,"isOneVideoPlaylist",3,!1),Pe=m(e,"customFullscreenSupported",3,!0),X=Ee(),Te=vo(),Ke=kt(),nt=X.actions.internal.toggleMuted,mt=X.actions.internal.togglePlay,vt=X.actions.internal.pause,Tt=X.actions.internal.prevVideoClick,Qe=X.actions.internal.nextVideoClick,zt=(zr=X.callbacks)==null?void 0:zr.onAudioDoesNotExistHint,Jt=(qi=X.callbacks)==null?void 0:qi.onAudioDisabledHint,Zt=X.playerPhase,Wt=X.state.duration$,ie=X.state.positionWithScrubbing$,Nt=X.state.playbackState$,we=X.state.isAudioAvailable$,ve=X.state.isAudioDisabled,ne=X.state.isEnded$,Be=X.state.isLive$,ze=X.state.muted$,Me=X.state.isActiveLive$,We=X.state.isRewindableLive$,Re=X.ui.scrubbingInProgress,tt=X.ui.mobileNotReportControlHidden$,{isActive$:Mt,type$:Qt}=Te.pictureInPicture$,et=X.ui.mobileUnmuteButtonExpanded,pi=X.ui.mobileUnmuteButtonVisible,oi=X.ui.settingsMenu.visible$,st=X.ui.settingsMenu.openedByBtnKeyboard$,Gt=X.ui.controls,{volume:ni,vkLogo:mi,autoplayNextToggle:go,pip:io,settings:Xt,chromecast:Ii}=X.ui.hiddenControls,oo=X.actions.internal.getVideoEpisodes(),yt=X.webApi.pictureInPictureApi,bt=X.state.chromecastState$,Vi=X.state.crashed$,qo=Gt.disabledControls$,z=X.ui.startedByKeyboard$,Pt=X.ui.currentGridType$,ci=X.ads.duration,Lt=X.ads.position,ct=X.ads.playbackState,ot=X.ui.isFullscreen,gt=X.ui.playerSize,$i=X.ui.additionalButtonsDeprecated$,Ut=X.actions.internal.getVideoElement,Nn=X.actions.internal.replayInteractive,yi=X.state.isInteractive,ho=X.state.isInteractiveTime$,Ri=X.state.showInteractiveGraph,xt=X.state.showSeekToInteractive,ki=X.state.showPlayPrevChapter,tn=X.state.showInteractiveTimeIndicator,on=Te.seekToInteractiveDisabledTooltip$,Ni=Te.graphIsOpened$,no=X.ui.controlBlocks,Ko=g(()=>F(X.state.playPrevChapterDisabledTooltip)),_n=g(()=>F(n())),Bn=g(()=>r().has("EPISODE_BUTTON")),xi=g(()=>r().has("GRAPH_BUTTON")),bn=g(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),ko=g(()=>r().has("PLAY_BUTTON")),Po=g(()=>r().has("REPLAY_BUTTON")),_o=g(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),nr=g(()=>l()===Il.PlaybackState.PLAYING),On=g(()=>d()==="paused"),Dn=g(()=>a()&&!Z()&&!yi),$n=g(()=>!a()||Z()),Br=g(()=>e.showNextPrevButtons&&!Z()&&e.prevButtonActive),Hn=g(()=>e.showNextPrevButtons&&!Z()&&e.nextButtonActive),ss=g(()=>p().width>300),Or=g(()=>p().width>400),Wi=g(f),Fn=g(()=>v()!==Il.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!yi&&!y()),yn=g(()=>S()==="LiveWaitingStart"),Un=g(()=>!!yt&&v()!==Il.ChromecastState.CONNECTED&&!w()&&($()===1&&s(yn)||!s(yn))&&!s(Wi)&&!yi&&!T()),Qo=g(()=>!s(Wi)&&Xi(k(),"s")),zn=g(()=>!e.logoHidden&&p().width>350&&!A()),xn=g(()=>Ke.features.fullscreen&&!(u()&&$()===1)&&(yi?Pe():!0)&&!s(Wi)),rr=g(()=>(!I()||Z())&&p().width>260&&!s(Wi)&&!(Ke.features.interactiveHideTime&&yi)),sr=g(()=>E()||e.showControls),Dr=g(()=>!Z()&&!I()&&!!(oo!=null&&oo.length)&&s(ss)&&!s(Bn)&&!s(Wi)),Wn=g(()=>!R()||!!G()),ar=g(()=>Ri&&Xi(k(),"m")),ut=ii({}),ti=ii({}),qn=(0,Nm.debounceFn)(Sl,260),ri=(0,Nm.debounceFn)(Nu,260);Ue(()=>{p(),q(),qn(Ut(),Gt,ut,e.showControls),ri(Ut(),no,ti,e.showControls)});let ro=()=>X.actions.internal.toggleChromecast();async function nn(){yt!=null&&yt.isActive()?await(yt==null?void 0:yt.exit()):await(yt==null?void 0:yt.request())}function wn(){(!ve&&U()||Z())&&pi.set(!1),Os({isAudioDisabled:ve,audioDisabledHintCallback:Jt,isAudioAvailable:U(),audioIsNotExistHintCallback:zt,isAds:Z()})&&nt()}let Ao=Y(""),rn=(rt,Dt)=>{if(!rt){B(Ao,F("tooltip_live"),!0);return}Dt&&Dt===Il.PlaybackState.PAUSED&&B(Ao,F("tooltip_play"),!0)};Ue(()=>{rn(s(Wn),l())});let Mo=oe();Ue(()=>{Q()&&_l(Q(),E(),st)}),Ue(()=>{Vu(z,J(),ut.playButton)});var bo=n4(),vr=fe(bo);{var gr=rt=>{var Dt=Jy(),Pi=fe(Dt);let $o;var Ki=P(Pi,2);let po;var yo=_(Ki);{var Vo=Ze=>{let Bt=g(()=>U()&&!ve&&ke());Bu(Ze,{get muted(){return ye()},get expanded(){return s(Bt)},click:wn,get ref(){return ut.volume},set ref(Ci){ut.volume=Ci}})};L(yo,Ze=>{(!U()||ce())&&!le()&&Ze(Vo)})}h(Ki),it(Ki,Ze=>ti.topLeft=Ze,()=>ti==null?void 0:ti.topLeft);var dn=P(Ki,2);let Qi;var Gi=_(dn);Si(Gi,1,me,({iconUrl:Ze,ariaLabel:Bt,testId:Ci,onClick:jo,tooltip:un})=>Ze,(Ze,Bt)=>{let Ci=()=>s(Bt).iconUrl,jo=()=>s(Bt).ariaLabel,un=()=>s(Bt).testId,fo=()=>s(Bt).onClick,Qr=()=>s(Bt).tooltip,wr=g(()=>{var gi;return(gi=jo())!=null?gi:Qr()});Am(Ze,{get iconUrl(){return Ci()},get ariaLabel(){return s(wr)},get testId(){return un()},get onClick(){return fo()}})});var xo=P(Gi,2);{var En=Ze=>{Qd(Ze,{get ref(){return ut.autoplayNextToggle},set ref(Bt){ut.autoplayNextToggle=Bt}})};L(xo,Ze=>{e.showAutoplayNext&&!Je()&&!ae()&&Ze(En)})}var ji=P(xo,2);{var cn=Ze=>{Dd(Ze,{isMobile:!0,click:ro,get state(){return v()},get ref(){return ut.chromecast},set ref(Bt){ut.chromecast=Bt}})};L(ji,Ze=>{s(Fn)&&Ze(cn)})}var yr=P(ji,2);{var Wr=Ze=>{Rm(Ze,{click:nn,get isPictureInPictureActive(){return u()},get ref(){return ut.pip},set ref(Bt){ut.pip=Bt}})};L(yr,Ze=>{s(Un)&&Ze(Wr)})}var Qn=P(yr,2);{var ls=Ze=>{wl(Ze,{get ref$(){return Mo}})};L(Qn,Ze=>{Ve()&&!re()&&Ze(ls)})}var xr=P(Qn,2);{var Ro=Ze=>{Od(Ze,{get click(){return vt},get targetUrl(){return qe()},get logoClickable(){return e.logoClickable},get ref(){return ut.vkLogo},set ref(Bt){ut.vkLogo=Bt}})};L(xr,Ze=>{s(zn)&&Ze(Ro)})}h(dn),it(dn,Ze=>ti.topRight=Ze,()=>ti==null?void 0:ti.topRight);var No=P(dn,2);let Gn;var qr=_(No);{var Kr=Ze=>{let Bt=g(()=>Tt.bind(null,!0));Ia(Ze,{get click(){return s(Bt)},type:"prev",isMobile:!0,get ref(){return ut.prevButton},set ref(Ci){ut.prevButton=Ci}})};L(qr,Ze=>{s(Br)&&Ze(Kr)})}var Ge=P(qr,2);{var jt=Ze=>{El(Ze,{get disabled(){return s(ko)},get click(){return mt},isMobile:!0,get isPlaying(){return s(nr)},get ref(){return ut.playButton},set ref(Bt){ut.playButton=Bt}})};L(Ge,Ze=>{s($n)&&Ze(jt)})}var pe=P(Ge,2);{var Ct=Ze=>{Tl(Ze,{get disabled(){return s(Po)},get click(){return mt},isMobile:!0,get ref(){return ut.replayButton},set ref(Bt){ut.replayButton=Bt}})};L(pe,Ze=>{s(Dn)&&Ze(Ct)})}var si=P(pe,2);{var Bi=Ze=>{let Bt=g(()=>Qe.bind(null,!0));Ia(Ze,{get click(){return s(Bt)},type:"next",isMobile:!0,get ref(){return ut.nextButton},set ref(Ci){ut.nextButton=Ci}})};L(si,Ze=>{s(Hn)&&Ze(Bi)})}h(No),it(No,Ze=>ti.middle=Ze,()=>ti==null?void 0:ti.middle);var wi=P(No,2);{var Oi=Ze=>{var Bt=Xy(),Ci=fe(Bt);{var jo=gi=>{var Ai=jy();let In;Ai.__click=[Qy,_o,e,Ko];var jn=_(Ai);let Cr=g(()=>!e.showControls);Kd(jn,{get hidden(){return s(Cr)},get disabled(){return s(_o)},get click(){return e.playPrevChapter},get ref(){return ut.playPrevChapterButton},set ref(wo){ut.playPrevChapterButton=wo}}),h(Ai),O(wo=>In=te(Ai,1,"wrapper-middle-left svelte-9xcbwc",null,In,wo),[()=>({fullscreen:j(),hidden:!e.showControls})]),b(gi,Ai)};L(Ci,gi=>{ki&&gi(jo)})}var un=P(Ci,2);{var fo=gi=>{var Ai=Yy();let In;var jn=_(Ai);let Cr=g(()=>!e.showControls&&!N());jd(jn,{get hidden(){return s(Cr)},get disabled(){return s(xi)},get click(){return Ni.toggle},get graphIsOpened(){return N()},get ref(){return ut.interactiveGraphButton},set ref(wo){ut.interactiveGraphButton=wo}}),h(Ai),O(wo=>In=te(Ai,1,dd(ki?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",In,wo),[()=>({fullscreen:j(),hidden:!e.showControls&&!N()})]),b(gi,Ai)};L(un,gi=>{s(ar)&&gi(fo)})}var Qr=P(un,2);{var wr=gi=>{var Ai=Zy();let In;Ai.__click=[Gy,bn,e,_n];var jn=_(Ai);let Cr=g(()=>!e.showControls);Gd(jn,{get hidden(){return s(Cr)},get disabled(){return s(bn)},get click(){return e.seekToInteractive},get ref(){return ut.seekToInteractiveButton},set ref(wo){ut.seekToInteractiveButton=wo}}),h(Ai),O(wo=>In=te(Ai,1,"wrapper-middle-right svelte-9xcbwc",null,In,wo),[()=>({fullscreen:j(),hidden:!e.showControls})]),b(gi,Ai)};L(Qr,gi=>{xt&&gi(wr)})}b(Ze,Bt)};L(wi,Ze=>{yi&&!f()&&Ze(Oi)})}O((Ze,Bt,Ci,jo)=>{$o=te(Pi,1,"overlay-mobile svelte-9xcbwc",null,$o,Ze),po=te(Ki,1,"wrapper-top-left svelte-9xcbwc",null,po,Bt),Qi=te(dn,1,"wrapper-top-right svelte-9xcbwc",null,Qi,Ci),Gn=te(No,1,"wrapper-middle svelte-9xcbwc",null,Gn,jo)},[()=>({hidden:!s(sr)}),()=>({hidden:!e.showControls,fullscreen:j()}),()=>({hidden:!e.showControls&&!w(),fullscreen:j()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(rt,Dt)};L(vr,rt=>{Z()||rt(gr)})}var Kn=P(vr,2);{var Hr=rt=>{var Dt=i4(),Pi=fe(Dt);{var $o=Qi=>{var Gi=e4();let xo;var En=_(Gi);Bu(En,{get muted(){return ye()},expanded:!1,click:wn,get ref(){return ut.volume},set ref(ji){ut.volume=ji}}),h(Gi),O(ji=>xo=te(Gi,1,"wrapper-top-right svelte-9xcbwc",null,xo,ji),[()=>({fullscreen:j()})]),b(Qi,Gi)};L(Pi,Qi=>{ce()&&Qi($o)})}var Ki=P(Pi,2);{var po=Qi=>{var Gi=t4(),xo=_(Gi);let En=g(()=>!s(On));El(xo,{get disabled(){return s(ko)},get click(){return mt},isMobile:!0,get isPlaying(){return s(En)},get ref(){return ut.playButton},set ref(ji){ut.playButton=ji}}),h(Gi),b(Qi,Gi)};L(Ki,Qi=>{s(On)&&Qi(po)})}var yo=P(Ki,2);let Vo;var dn=_(yo);Hd(dn,{get position(){return He()},get duration(){return _e()}}),h(yo),O(Qi=>Vo=te(yo,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Vo,Qi),[()=>({fullscreen:j()})]),b(rt,Dt)};L(Kn,rt=>{Z()&&d()!=="inactive"&&rt(Hr)})}var Cn=P(Kn,2);let hr;var lr=_(Cn);let _r;var sn=_(lr);te(sn,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var qt=_(sn),Lo=_(qt);{var Fr=rt=>{Wo(rt,{get disabled(){return s(Po)},get ref(){return ut.replayButton},set ref(Dt){ut.replayButton=Dt},children:(Dt,Pi)=>{Tl(Dt,{get disabled(){return s(Po)},get click(){return Nn}})},$$slots:{default:!0}})};L(Lo,rt=>{yi&&rt(Fr)})}var br=P(Lo,2);{var as=rt=>{Wo(rt,{get ref(){return ut.liveButton},set ref(Dt){ut.liveButton=Dt},children:(Dt,Pi)=>{Yd(Dt,{get isLiveActive(){return s(Wn)},isMobile:!0,get ariaLabel(){return s(Ao)}})},$$slots:{default:!0}})};L(br,rt=>{!Z()&&I()&&rt(as)})}var bi=P(br,2);{var dr=rt=>{let Dt=g(()=>Z()?He():ge()),Pi=g(()=>Z()?_e():de()),$o=g(()=>!e.showControls);Vd(rt,{get showDuration(){return s(Or)},get position(){return s(Dt)},get duration(){return s(Pi)},isMobile:!0,get isHidden(){return s($o)},get ref(){return ut.time},set ref(Ki){ut.time=Ki}})};L(bi,rt=>{s(rr)&&rt(dr)})}var wt=P(bi,2);let ai=g(()=>!s(Dr));Wo(wt,{className:"w-max",get disabled(){return s(ai)},get ref(){return ut.episodes},set ref(rt){ut.episodes=rt},children:(rt,Dt)=>{var Pi=Fe(),$o=fe(Pi);{var Ki=po=>{var yo=o4(),Vo=P(fe(yo),2);Fd(Vo,{get position(){return ge()},get duration(){return de()},get timeCodes(){return oo}}),b(po,yo)};L($o,po=>{s(Dr)&&po(Ki)})}b(rt,Pi)},$$slots:{default:!0}}),h(qt),it(qt,rt=>ti.bottomRight=rt,()=>ti==null?void 0:ti.bottomRight);var Go=P(qt,2),an=_(Go);{var Sn=rt=>{Wo(rt,{get ref(){return ut.settings},set ref(Dt){ut.settings=Dt},children:(Dt,Pi)=>{wl(Dt,{get ref$(){return Mo}})},$$slots:{default:!0}})};L(an,rt=>{s(Qo)&&rt(Sn)})}var ln=P(an,2);{var uo=rt=>{Wo(rt,{get ref(){return ut.fullscreen},set ref(Dt){ut.fullscreen=Dt},children:(Dt,Pi)=>{Bd(Dt,{get click(){return e.toggleFullscreen},get isFullscreen(){return j()}})},$$slots:{default:!0}})};L(ln,rt=>{s(xn)&&rt(uo)})}h(Go),it(Go,rt=>ti.bottomRight=rt,()=>ti==null?void 0:ti.bottomRight),h(sn),it(sn,rt=>xe(rt),()=>xe());var so=P(sn,2);let Tn=g(()=>!e.showControls);Ta(so,{get isHidden(){return s(Tn)},get isAds(){return Z()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return R()},get ref(){return ut.timeline},set ref(rt){ut.timeline=rt}}),h(lr),h(Cn),it(Cn,rt=>ue(rt),()=>ue());var $r=P(Cn,2);{var Ur=rt=>{Wd(rt,{get ref(){return ut.interactiveTimeIndicator},set ref(Dt){ut.interactiveTimeIndicator=Dt}})};L($r,rt=>{tn&&rt(Ur)})}O((rt,Dt)=>{hr=te(Cn,1,"wrapper-bottom svelte-9xcbwc",null,hr,rt),_r=te(lr,1,"controls-wrapper svelte-9xcbwc",null,_r,Dt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:j()})]),b(t,bo),H(),o()}dt(["click"]);function Zd(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C(T,"$isMobile",i),r=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),$=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,Om.noop),y=m(e,"onDisabledSeekToInteractiveClick",3,Om.noop),T=Ee().ui.isMobile,k=Y(!1);Ot(()=>{let R=setTimeout(()=>B(k,!0),0);return()=>clearTimeout(R)});var A=Fe(),I=fe(A);{var E=R=>{var G=Fe(),q=fe(G);{var U=J=>{Bm(J,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},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 $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},Q=J=>{km(J,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},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(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};L(q,J=>{n()?J(U):J(Q,!1)})}b(R,G)};L(I,R=>{s(k)&&R(E)})}b(t,A),H(),o()}var s4=Se('<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 Dm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=s4();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}function Hm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Dm(t,{get style(){return s(o)}})}var a4=Se('<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 Fm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=a4();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}var l4=Se('<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 Um(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=l4();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}function Ou(t,e){let i=m(e,"isOff",3,!1);var o=Fe(),n=fe(o);{var r=d=>{Um(d,{})},l=d=>{Fm(d,{})};L(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var d4=Se('<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 zm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=d4();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}function Wm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);zm(t,{get style(){return s(o)}})}var c4=Se('<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=Le(e,["$$slots","$$events","$$legacy","children"]);var o=c4();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(2),h(o),b(t,o)}function Km(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);qm(t,{get style(){return s(o)}})}var u4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),p4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),f4=M("<div><!></div>"),m4={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;
262
262
  animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
263
263
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
264
264
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -273,23 +273,23 @@ Try switching the\xA0quality to\xA0Auto.`},n1=G_;var vs=new Map;vs.set(ul.Interf
273
273
  @keyframes svelte-1ad3n06-fadeOut {
274
274
  0% {opacity:1;}
275
275
  100% {opacity:0;}
276
- }`};function Wm(t,e){D(e,!0),z(t,o4);let[i,o]=De(),n=()=>C(e.data,"$data",i),l=Ee().ui.t,d=h(()=>!n()),a=h(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),p=h(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=h(()=>{var S;return(S=n())==null?void 0:S.type}),v=h(()=>{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=i4();let $;var w=_(u);{var y=S=>{var T=t4(),k=fe(T),A=_(k);{var I=de=>{let ue=h(()=>s(f)==="FORWARD_SEEK");Bm(de,{get reversed(){return s(ue)}})};L(A,de=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(f))&&de(I)})}var E=P(A,2);{var V=de=>{_s(de,{})};L(E,de=>{s(f)==="PAUSE"&&de(V)})}var K=P(E,2);{var W=de=>{Or(de,{})};L(K,de=>{s(f)==="PLAY"&&de(W)})}var U=P(K,2);{var Y=de=>{zd(de,{})};L(U,de=>{s(f)==="REPLAY"&&de(Y)})}var ne=P(U,2);{var G=de=>{Lu(de,{isOff:!0})};L(ne,de=>{s(f)==="SUBTITLES_OFF"&&de(G)})}var ce=P(ne,2);{var le=de=>{Lu(de,{})};L(ce,de=>{s(f)==="SUBTITLES_ON"&&de(le)})}var we=P(ce,2);{var Ve=de=>{let ue=h(()=>s(f)==="RATE_UP");Fm(de,{get reversed(){return s(ue)}})};L(we,de=>{["RATE_DOWN","RATE_UP"].includes(s(f))&&de(Ve)})}var ve=P(we,2);{var ae=de=>{let ue=h(()=>s(f)==="EPISODE_NEXT");zm(de,{get reversed(){return s(ue)}})};L(ve,de=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(f))&&de(ae)})}var Le=P(ve,2);{var te=de=>{Bs(de,{volume:0})};L(Le,de=>{s(f)==="MUTE"&&de(te)})}var N=P(Le,2);{var Be=de=>{Bs(de,{volume:1})};L(N,de=>{s(f)==="VOLUME"&&de(Be)})}g(k);var ye=P(k,2);{var ge=de=>{var ue=e4(),xe=_(ue,!0);g(ue),O(()=>he(xe,s(v))),b(de,ue)};L(ye,de=>{s(v)&&de(ge)})}b(S,T)};L(w,S=>{!s(d)&&s(f)&&S(y)})}g(u),O(S=>$=J(u,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:s(d),"hot-key-helpers-container--left":s(a),"hot-key-helpers-container--right":s(p)})]),b(t,u),H(),o()}var n4=Se('<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 qm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=n4();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var r4=Se('<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 Km(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=r4();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function Hs(t,e){D(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=h(()=>["up","down"].includes(i())),r=h(()=>["right","down"].includes(i())),l=h(()=>(()=>{let v="";return s(r)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Ue(),a=fe(d);{var p=v=>{let u=h(()=>s(r)?"chevron-icon--down":"chevron-icon--up");qm(v,{get style(){return s(l)},get"data-testid"(){return s(u)}})},f=v=>{let u=h(()=>s(r)?"chevron-icon--right":"chevron-icon--left");Km(v,{get style(){return s(l)},get"data-testid"(){return s(u)}})};L(a,v=>{s(n)?v(p):v(f,!1)})}b(t,d),H()}var s4=(t,e,i,o,n,r)=>{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":r();break}},a4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},l4=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>'),d4={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 jd(t,e){D(e,!0),z(t,d4);let i=m(e,"isShifted",3,!1),o=Ee(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{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=F("aria_label_spherical_control");var v=l4();let u;v.__keydown=[s4,n,r,l,a,d],v.__keyup=[a4,n,p];var $=_(v),w=_($),y=_(w);y.__mousedown=r,y.__mouseup=p;var S=_(y);Hs(S,{direction:"up",useBtnColor:!0}),g(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=p;var k=_(T);Hs(k,{direction:"up",useBtnColor:!0}),g(T),g(w);var A=P(w,2),I=_(A);I.__mousedown=a,I.__mouseup=p;var E=_(I);Hs(E,{direction:"up",useBtnColor:!0}),g(I);var V=P(I,2);V.__mousedown=l,V.__mouseup=p;var K=_(V);Hs(K,{direction:"up",useBtnColor:!0}),g(V),g(A),g($),g(v),O(W=>{u=J(v,1,"immersive-controls svelte-1yzc86r",null,u,W),Ne(v,"aria-label",f)},[()=>({"m-shifted":i()})]),St("mouseleave",y,p),St("mouseleave",T,p),St("mouseleave",I,p),St("mouseleave",V,p),b(t,v),H()}dt(["keydown","keyup","mousedown","mouseup"]);var $s=require("@vkontakte/videoplayer-shared/es2018");var Y1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Vu=class{constructor(){this.flickeringTimeout=Y1(1e3);this.subscriptions=new $s.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new $s.ValueSubject([]);this.captionsPrepared$=new $s.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,$s.filter)(()=>this.isEnabled()),(0,$s.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:r,value:l},d)=>(o&&!d||(r==="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>'),u4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),p4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),f4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),m4=M("<div><!></div>"),v4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
277
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Pa(t,e){D(e,!0),z(t,v4);let[i,o]=De(),n=()=>C(v,"$currentSubtitle$",i),r=()=>C($,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),p=Ee(),f=zt(),v=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,$=p.state.isLive$,w=p.ui.isFullscreen,y=h(()=>!!n().isAuto),S=h(()=>!!r()),T=h(()=>e.playerSize.width*.02),k=h(()=>a()&&!l()||s(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:s(T)),A=j(null);We(()=>{var Y,ne,G;(Y=s(A))==null||Y.setIsAuto(s(y)),(ne=s(A))==null||ne.setIsLive(s(S)),(G=s(A))==null||G.setCaptions(e.captions)});let I=j(oi([[]]));Bt(()=>{B(A,new Vu().subscribe(),!0);let Y=s(A).captionsPrepared$.subscribe(ne=>{B(I,ne,!0)});return()=>{var ne;(ne=s(A))==null||ne.destroy(),Y.unsubscribe()}}),Bt(()=>{if(s(y)){let Y=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Y)}}else u.set(!1)});let E=h(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=m4();let K;var W=_(V);{var U=Y=>{var ne=f4();let G;var ce=_(ne),le=_(ce);{var we=ve=>{var ae=c4(),Le=_(ae),te=_(Le,!0);g(Le),g(ae),O(N=>{var Be;at(Le,`font-size: ${(Be=s(k))!=null?Be:""}px`),he(te,N)},[()=>F("subtitles_auto_caption")]),b(ve,ae)},Ve=(ve,ae)=>{{var Le=N=>{var Be=Ue(),ye=fe(Be);xi(ye,17,()=>s(I),rd,(ge,de)=>{var ue=u4(),xe=_(ue);xi(xe,21,()=>s(de),({value:Z,timeAppeared:qe})=>qe,(Z,qe)=>{let Je=()=>s(qe).value,ke=()=>s(qe).timeAppeared;var X=Ue(),Te=fe(X);{var Ke=st=>{var pt=es();O(()=>he(pt,Je())),b(st,pt)};L(Te,st=>{(!ke()||ke()<=e.position)&&st(Ke)})}b(Z,X)}),g(xe),g(ue),O(()=>{var Z;return at(xe,`font-size: ${(Z=s(k))!=null?Z:""}px`)}),b(ge,ue)}),b(N,Be)},te=N=>{var Be=Ue(),ye=fe(Be);xi(ye,17,()=>e.captions,({value:ge})=>ge,(ge,de)=>{let ue=()=>s(de).value;var xe=p4(),Z=_(xe),qe=_(Z,!0);g(Z),g(xe),O(()=>{var Je;at(Z,`font-size: ${(Je=s(k))!=null?Je:""}px`),he(qe,ue())}),b(ge,xe)}),b(N,Be)};L(ve,N=>{var Be;s(y)&&((Be=s(I))!=null&&Be.length)?N(Le):N(te,!1)},ae)}};L(le,ve=>{s(y)&&d()?ve(we):ve(Ve,!1)})}g(ce),g(ne),O(ve=>{var ae;G=J(ne,1,"subtitles-caption svelte-c2x749",null,G,ve),at(ne,`--subtitles-caption-margin: ${(ae=s(E))!=null?ae:""}%`)},[()=>({mobile:a()})]),b(Y,ne)};L(W,Y=>{var ne;(e.captions.length||(ne=s(I))!=null&&ne.length)&&Y(U)})}g(V),O(Y=>K=J(V,1,"subtitles-container svelte-c2x749",null,K,Y),[()=>({shifted:e.shifted,auto:s(y)&&!s(S)&&!d()})]),b(t,V),H(),o()}var g4=M('<div class="text svelte-raurnb"> </div>'),h4=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>'),_4={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 Zd(t,e){D(e,!0),z(t,_4);let i=zt();var o=h4();let n;var r=P(_(o),2);{var l=d=>{var a=g4(),p=_(a);g(a),O(()=>{var f;return he(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,a)};L(r,d=>{e.chromecastDeviceName&&d(l)})}g(o),O(d=>{n=J(o,1,"wrapper svelte-raurnb",null,n,d),at(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),H()}var b4=Se('<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 Qm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=b4();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var $4=M('<div class="container svelte-13zpvm8"><!></div>'),y4={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 Aa(t){z(t,y4);var e=$4(),i=_(e);Qm(i,{}),g(e),b(t,e)}var x4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),w4=M("<div><!></div>"),C4={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
+ }`};function Qm(t,e){D(e,!0),W(t,m4);let[i,o]=Oe(),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=f4();let $;var w=_(u);{var y=S=>{var T=p4(),k=fe(T),A=_(k);{var I=de=>{let ue=g(()=>s(f)==="FORWARD_SEEK");Hm(de,{get reversed(){return s(ue)}})};L(A,de=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(f))&&de(I)})}var E=P(A,2);{var R=de=>{$s(de,{})};L(E,de=>{s(f)==="PAUSE"&&de(R)})}var G=P(E,2);{var q=de=>{Rr(de,{})};L(G,de=>{s(f)==="PLAY"&&de(q)})}var U=P(G,2);{var Q=de=>{qd(de,{})};L(U,de=>{s(f)==="REPLAY"&&de(Q)})}var J=P(U,2);{var j=de=>{Ou(de,{isOff:!0})};L(J,de=>{s(f)==="SUBTITLES_OFF"&&de(j)})}var ce=P(J,2);{var le=de=>{Ou(de,{})};L(ce,de=>{s(f)==="SUBTITLES_ON"&&de(le)})}var ye=P(ce,2);{var ke=de=>{let ue=g(()=>s(f)==="RATE_UP");Wm(de,{get reversed(){return s(ue)}})};L(ye,de=>{["RATE_DOWN","RATE_UP"].includes(s(f))&&de(ke)})}var me=P(ye,2);{var ae=de=>{let ue=g(()=>s(f)==="EPISODE_NEXT");Km(de,{get reversed(){return s(ue)}})};L(me,de=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(f))&&de(ae)})}var Ve=P(me,2);{var re=de=>{Hs(de,{volume:0})};L(Ve,de=>{s(f)==="MUTE"&&de(re)})}var N=P(Ve,2);{var He=de=>{Hs(de,{volume:1})};L(N,de=>{s(f)==="VOLUME"&&de(He)})}h(k);var _e=P(k,2);{var ge=de=>{var ue=u4(),xe=_(ue,!0);h(ue),O(()=>he(xe,s(v))),b(de,ue)};L(_e,de=>{s(v)&&de(ge)})}b(S,T)};L(w,S=>{!s(d)&&s(f)&&S(y)})}h(u),O(S=>$=te(u,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:s(d),"hot-key-helpers-container--left":s(a),"hot-key-helpers-container--right":s(p)})]),b(t,u),H(),o()}var v4=Se('<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 Gm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=v4();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var g4=Se('<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 jm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=g4();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}function zs(t,e){D(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),r=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let v="";return s(r)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Fe(),a=fe(d);{var p=v=>{let u=g(()=>s(r)?"chevron-icon--down":"chevron-icon--up");Gm(v,{get style(){return s(l)},get"data-testid"(){return s(u)}})},f=v=>{let u=g(()=>s(r)?"chevron-icon--right":"chevron-icon--left");jm(v,{get style(){return s(l)},get"data-testid"(){return s(u)}})};L(a,v=>{s(n)?v(p):v(f,!1)})}b(t,d),H()}var h4=(t,e,i,o,n,r)=>{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":r();break}},_4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},b4=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>'),$4={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){D(e,!0),W(t,$4);let i=m(e,"isShifted",3,!1),o=Ee(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{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=F("aria_label_spherical_control");var v=b4();let u;v.__keydown=[h4,n,r,l,a,d],v.__keyup=[_4,n,p];var $=_(v),w=_($),y=_(w);y.__mousedown=r,y.__mouseup=p;var S=_(y);zs(S,{direction:"up",useBtnColor:!0}),h(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=p;var k=_(T);zs(k,{direction:"up",useBtnColor:!0}),h(T),h(w);var A=P(w,2),I=_(A);I.__mousedown=a,I.__mouseup=p;var E=_(I);zs(E,{direction:"up",useBtnColor:!0}),h(I);var R=P(I,2);R.__mousedown=l,R.__mouseup=p;var G=_(R);zs(G,{direction:"up",useBtnColor:!0}),h(R),h(A),h($),h(v),O(q=>{u=te(v,1,"immersive-controls svelte-1yzc86r",null,u,q),De(v,"aria-label",f)},[()=>({"m-shifted":i()})]),Et("mouseleave",y,p),Et("mouseleave",T,p),Et("mouseleave",I,p),Et("mouseleave",R,p),b(t,v),H()}dt(["keydown","keyup","mousedown","mouseup"]);var xs=require("@vkontakte/videoplayer-shared/es2018");var t0=(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=t0(1e3);this.subscriptions=new xs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new xs.ValueSubject([]);this.captionsPrepared$=new xs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,xs.filter)(()=>this.isEnabled()),(0,xs.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:r,value:l},d)=>(o&&!d||(r==="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 y4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),x4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),w4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),C4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),S4=M("<div><!></div>"),T4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
277
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ma(t,e){D(e,!0),W(t,T4);let[i,o]=Oe(),n=()=>C(v,"$currentSubtitle$",i),r=()=>C($,"$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$,$=p.state.isLive$,w=p.ui.isFullscreen,y=g(()=>!!n().isAuto),S=g(()=>!!r()),T=g(()=>e.playerSize.width*.02),k=g(()=>a()&&!l()||s(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:s(T)),A=Y(null);Ue(()=>{var Q,J,j;(Q=s(A))==null||Q.setIsAuto(s(y)),(J=s(A))==null||J.setIsLive(s(S)),(j=s(A))==null||j.setCaptions(e.captions)});let I=Y(ii([[]]));Ot(()=>{B(A,new Du().subscribe(),!0);let Q=s(A).captionsPrepared$.subscribe(J=>{B(I,J,!0)});return()=>{var J;(J=s(A))==null||J.destroy(),Q.unsubscribe()}}),Ot(()=>{if(s(y)){let Q=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Q)}}else u.set(!1)});let E=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=S4();let G;var q=_(R);{var U=Q=>{var J=C4();let j;var ce=_(J),le=_(ce);{var ye=me=>{var ae=y4(),Ve=_(ae),re=_(Ve,!0);h(Ve),h(ae),O(N=>{var He;at(Ve,`font-size: ${(He=s(k))!=null?He:""}px`),he(re,N)},[()=>F("subtitles_auto_caption")]),b(me,ae)},ke=(me,ae)=>{{var Ve=N=>{var He=Fe(),_e=fe(He);Si(_e,17,()=>s(I),ad,(ge,de)=>{var ue=x4(),xe=_(ue);Si(xe,21,()=>s(de),({value:Z,timeAppeared:qe})=>qe,(Z,qe)=>{let Je=()=>s(qe).value,Pe=()=>s(qe).timeAppeared;var X=Fe(),Te=fe(X);{var Ke=nt=>{var mt=Jr();O(()=>he(mt,Je())),b(nt,mt)};L(Te,nt=>{(!Pe()||Pe()<=e.position)&&nt(Ke)})}b(Z,X)}),h(xe),h(ue),O(()=>{var Z;return at(xe,`font-size: ${(Z=s(k))!=null?Z:""}px`)}),b(ge,ue)}),b(N,He)},re=N=>{var He=Fe(),_e=fe(He);Si(_e,17,()=>e.captions,({value:ge})=>ge,(ge,de)=>{let ue=()=>s(de).value;var xe=w4(),Z=_(xe),qe=_(Z,!0);h(Z),h(xe),O(()=>{var Je;at(Z,`font-size: ${(Je=s(k))!=null?Je:""}px`),he(qe,ue())}),b(ge,xe)}),b(N,He)};L(me,N=>{var He;s(y)&&((He=s(I))!=null&&He.length)?N(Ve):N(re,!1)},ae)}};L(le,me=>{s(y)&&d()?me(ye):me(ke,!1)})}h(ce),h(J),O(me=>{var ae;j=te(J,1,"subtitles-caption svelte-c2x749",null,j,me),at(J,`--subtitles-caption-margin: ${(ae=s(E))!=null?ae:""}%`)},[()=>({mobile:a()})]),b(Q,J)};L(q,Q=>{var J;(e.captions.length||(J=s(I))!=null&&J.length)&&Q(U)})}h(R),O(Q=>G=te(R,1,"subtitles-container svelte-c2x749",null,G,Q),[()=>({shifted:e.shifted,auto:s(y)&&!s(S)&&!d()})]),b(t,R),H(),o()}var E4=M('<div class="text svelte-raurnb"> </div>'),I4=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>'),k4={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){D(e,!0),W(t,k4);let i=kt();var o=I4();let n;var r=P(_(o),2);{var l=d=>{var a=E4(),p=_(a);h(a),O(()=>{var f;return he(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,a)};L(r,d=>{e.chromecastDeviceName&&d(l)})}h(o),O(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),at(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),H()}var P4=Se('<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 Ym(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=P4();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var A4=M('<div class="container svelte-13zpvm8"><!></div>'),M4={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){W(t,M4);var e=A4(),i=_(e);Ym(i,{}),h(e),b(t,e)}var L4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),V4=M("<div><!></div>"),R4={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,
278
278
  visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
279
- transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Ma(t,e){D(e,!0),z(t,C4);let i=m(e,"iconVisible",3,!0),o=Ee(),n=zt(),r=o.ui.startedByKeyboard$,l=F("tooltip_play"),d=$=>{var y;let w=$.code;["Enter","Space"].includes(w)&&($.stopPropagation(),$.preventDefault(),r.set(!0),(y=e.startVideo)==null||y.call(e))},a=$=>{var w;$.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=w4();let f;p.__click=a;var v=_(p);{var u=$=>{var w=x4();w.__keydown=d;var y=P(_(w),2);Or(y,{}),g(w),O(()=>Ne(w,"aria-label",l)),b($,w)};L(v,$=>{i()&&$(u)})}return g(p),O($=>{f=J(p,1,"container svelte-1ciju45",null,f,$),at(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,p),H({handlePressKey:d,handleClick:a})}dt(["click","keydown"]);var S4=M('<div data-testid="video_title"><span> </span></div>'),T4={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(
279
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Va(t,e){D(e,!0),W(t,R4);let i=m(e,"iconVisible",3,!0),o=Ee(),n=kt(),r=o.ui.startedByKeyboard$,l=F("tooltip_play"),d=$=>{var y;let w=$.code;["Enter","Space"].includes(w)&&($.stopPropagation(),$.preventDefault(),r.set(!0),(y=e.startVideo)==null||y.call(e))},a=$=>{var w;$.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=V4();let f;p.__click=a;var v=_(p);{var u=$=>{var w=L4();w.__keydown=d;var y=P(_(w),2);Rr(y,{}),h(w),O(()=>De(w,"aria-label",l)),b($,w)};L(v,$=>{i()&&$(u)})}return h(p),O($=>{f=te(p,1,"container svelte-1ciju45",null,f,$),at(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,p),H({handlePressKey:d,handleClick:a})}dt(["click","keydown"]);var N4=M('<div data-testid="video_title"><span> </span></div>'),B4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
280
280
  0deg,
281
281
  rgba(0, 0, 0, 0) 0%,
282
282
  rgba(0, 0, 0, 0.02) 19%,
283
283
  rgba(0, 0, 0, 0.1) 34%,
284
284
  rgba(0, 0, 0, 0.4) 60%,
285
285
  rgba(0, 0, 0, 0.6) 100%
286
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Gm(t,e){D(e,!0),z(t,T4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),r=j(void 0);Bt(()=>{var v;requestAnimationFrame(()=>{var u;(u=e.onVisibilityChanged)==null||u.call(e,!0)});function f(u){var $;u.propertyName==="transform"&&(($=e.onVisibilityChanged)==null||$.call(e,!o()))}return(v=s(r))==null||v.addEventListener("transitionend",f),()=>{var u;return(u=s(r))==null?void 0:u.removeEventListener("transitionend",f)}});var l=S4();let d;var a=_(l),p=_(a,!0);g(a),nt(a,f=>n(f),()=>n()),g(l),nt(l,f=>B(r,f),()=>s(r)),O(f=>{d=J(l,1,"title svelte-14hk510",null,d,f),he(p,i())},[()=>({hidden:o()})]),b(t,l),H()}var E4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),I4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),k4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),P4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),A4=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),M4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function Ym(t,e){D(e,!0),z(t,M4);let i=j(""),o=j(""),n=j(""),r=j(""),l,d=A=>String(A).padStart(2,"0"),a=A=>{let I=Math.floor(A/86400);I&&(A-=I*86400,B(i,d(I),!0));let E=Math.floor(A/3600);B(o,d(E),!0);let V=Math.floor(A/60)%60;B(n,d(V),!0);let K=A%60;B(r,d(K),!0)},p=()=>{let A=Math.floor(Date.now()/1e3),I=e.startTime-A;a(I),I>=1?l=requestAnimationFrame(p):e.onTimerOver()};Bt(()=>{l=requestAnimationFrame(p)}),Mn(()=>{cancelAnimationFrame(l)});var f=A4(),v=_(f);{var u=A=>{var I=E4(),E=fe(I),V=_(E),K=_(V,!0);g(V);var W=P(V,2),U=_(W,!0);g(W),g(E);var Y=P(E,2),ne=_(Y,!0);g(Y),O((G,ce)=>{he(K,s(i)),he(U,G),he(ne,ce)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(A,I)};L(v,A=>{s(i)&&A(u)})}var $=P(v,2);{var w=A=>{var I=I4(),E=fe(I),V=_(E),K=_(V,!0);g(V);var W=P(V,2),U=_(W,!0);g(W),g(E);var Y=P(E,2),ne=_(Y,!0);g(Y),O((G,ce)=>{he(K,s(o)),he(U,G),he(ne,ce)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(A,I)};L($,A=>{s(o)&&A(w)})}var y=P($,2);{var S=A=>{var I=k4(),E=fe(I),V=_(E),K=_(V,!0);g(V);var W=P(V,2),U=_(W,!0);g(W),g(E);var Y=P(E,2),ne=_(Y,!0);g(Y),O((G,ce)=>{he(K,s(n)),he(U,G),he(ne,ce)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(A,I)};L(y,A=>{s(n)&&A(S)})}var T=P(y,2);{var k=A=>{var I=P4(),E=_(I),V=_(E,!0);g(E);var K=P(E,2),W=_(K,!0);g(K),g(I),O(U=>{he(V,s(r)),he(W,U)},[()=>F("waiting_live_second_value")]),b(A,I)};L(T,A=>{s(r)&&A(k)})}g(f),b(t,f),H()}var L4=Se('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function jm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=L4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(4),g(o),b(t,o)}var V4=M('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),R4=M('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),N4=M('<div class="waiting-container svelte-15pewff"><!></div>'),B4={hash:"svelte-15pewff",code:".waiting-container.svelte-15pewff {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-15pewff::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.upcoming.svelte-15pewff {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.upcoming-icon.svelte-15pewff {width:20%;max-width:200px;margin-bottom:20px;}.upcoming__title.svelte-15pewff {font-size:14px;line-height:1.2;font-weight:400;}.waiting-timer.svelte-15pewff {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-15pewff {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-15pewff {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function Xd(t,e){D(e,!0),z(t,B4);let i=j(!1);We(()=>{B(i,e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3),!0)});var o=N4(),n=_(o);{var r=d=>{var a=V4(),p=_(a),f=_(p);jm(f,{}),g(p);var v=P(p,2),u=_(v,!0);g(v),g(a),O($=>he(u,$),[()=>F("waiting_live_upcoming_title")]),b(d,a)},l=d=>{var a=R4(),p=_(a),f=_(p,!0);g(p);var v=P(p,2);let u=h(()=>e.startTime||0);Ym(v,{get startTime(){return s(u)},onTimerOver:()=>B(i,!0)}),g(a),O($=>he(f,$),[()=>F("waiting_live_timer_title")]),b(d,a)};L(n,d=>{s(i)?d(r):d(l,!1)})}g(o),O(()=>at(o,`background-image: url(${s(i)?"":e.thumbUrl})`)),b(t,o),H()}var O4=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),D4={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function La(t,e){D(e,!0),z(t,D4);let i=m(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=h(()=>o[e.kind]||"");var r=O4(),l=_(r),d=_(l);$a(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),p=_(a,!0);g(a),g(l),g(r),O(()=>{at(r,`background-image: url('${i()}')`),he(p,s(n))}),b(t,r),H()}var H4=Se('<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 Zm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=H4();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var F4=M('<div class="select-icon svelte-124aexk"><!></div>'),U4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Jd(t){z(t,U4);var e=F4(),i=_(e);Zm(i,{}),g(e),b(t,e)}var z4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},W4=(t,e)=>{hl(t,()=>e.item.selectItem(e.item.value))},q4=M("<p> </p>"),K4=M('<p class="sublabel svelte-1t7rx2m"> </p>'),Q4=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),G4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
286
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Zm(t,e){D(e,!0),W(t,B4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),r=Y(void 0);Ot(()=>{var v;requestAnimationFrame(()=>{var u;(u=e.onVisibilityChanged)==null||u.call(e,!0)});function f(u){var $;u.propertyName==="transform"&&(($=e.onVisibilityChanged)==null||$.call(e,!o()))}return(v=s(r))==null||v.addEventListener("transitionend",f),()=>{var u;return(u=s(r))==null?void 0:u.removeEventListener("transitionend",f)}});var l=N4();let d;var a=_(l),p=_(a,!0);h(a),it(a,f=>n(f),()=>n()),h(l),it(l,f=>B(r,f),()=>s(r)),O(f=>{d=te(l,1,"title svelte-14hk510",null,d,f),he(p,i())},[()=>({hidden:o()})]),b(t,l),H()}var O4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),D4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),H4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),F4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),U4=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),z4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function Xm(t,e){D(e,!0),W(t,z4);let i=Y(""),o=Y(""),n=Y(""),r=Y(""),l,d=A=>String(A).padStart(2,"0"),a=A=>{let I=Math.floor(A/86400);I&&(A-=I*86400,B(i,d(I),!0));let E=Math.floor(A/3600);B(o,d(E),!0);let R=Math.floor(A/60)%60;B(n,d(R),!0);let G=A%60;B(r,d(G),!0)},p=()=>{let A=Math.floor(Date.now()/1e3),I=e.startTime-A;a(I),I>=1?l=requestAnimationFrame(p):e.onTimerOver()};Ot(()=>{l=requestAnimationFrame(p)}),Vn(()=>{cancelAnimationFrame(l)});var f=U4(),v=_(f);{var u=A=>{var I=O4(),E=fe(I),R=_(E),G=_(R,!0);h(R);var q=P(R,2),U=_(q,!0);h(q),h(E);var Q=P(E,2),J=_(Q,!0);h(Q),O((j,ce)=>{he(G,s(i)),he(U,j),he(J,ce)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(A,I)};L(v,A=>{s(i)&&A(u)})}var $=P(v,2);{var w=A=>{var I=D4(),E=fe(I),R=_(E),G=_(R,!0);h(R);var q=P(R,2),U=_(q,!0);h(q),h(E);var Q=P(E,2),J=_(Q,!0);h(Q),O((j,ce)=>{he(G,s(o)),he(U,j),he(J,ce)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(A,I)};L($,A=>{s(o)&&A(w)})}var y=P($,2);{var S=A=>{var I=H4(),E=fe(I),R=_(E),G=_(R,!0);h(R);var q=P(R,2),U=_(q,!0);h(q),h(E);var Q=P(E,2),J=_(Q,!0);h(Q),O((j,ce)=>{he(G,s(n)),he(U,j),he(J,ce)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(A,I)};L(y,A=>{s(n)&&A(S)})}var T=P(y,2);{var k=A=>{var I=F4(),E=_(I),R=_(E,!0);h(E);var G=P(E,2),q=_(G,!0);h(G),h(I),O(U=>{he(R,s(r)),he(q,U)},[()=>F("waiting_live_second_value")]),b(A,I)};L(T,A=>{s(r)&&A(k)})}h(f),b(t,f),H()}var W4=Se('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function Jm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=W4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(4),h(o),b(t,o)}var q4=M('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),K4=M('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),Q4=M('<div class="waiting-container svelte-15pewff"><!></div>'),G4={hash:"svelte-15pewff",code:".waiting-container.svelte-15pewff {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-15pewff::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.upcoming.svelte-15pewff {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.upcoming-icon.svelte-15pewff {width:20%;max-width:200px;margin-bottom:20px;}.upcoming__title.svelte-15pewff {font-size:14px;line-height:1.2;font-weight:400;}.waiting-timer.svelte-15pewff {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-15pewff {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-15pewff {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function ec(t,e){D(e,!0),W(t,G4);let i=Y(!1);Ue(()=>{B(i,e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3),!0)});var o=Q4(),n=_(o);{var r=d=>{var a=q4(),p=_(a),f=_(p);Jm(f,{}),h(p);var v=P(p,2),u=_(v,!0);h(v),h(a),O($=>he(u,$),[()=>F("waiting_live_upcoming_title")]),b(d,a)},l=d=>{var a=K4(),p=_(a),f=_(p,!0);h(p);var v=P(p,2);let u=g(()=>e.startTime||0);Xm(v,{get startTime(){return s(u)},onTimerOver:()=>B(i,!0)}),h(a),O($=>he(f,$),[()=>F("waiting_live_timer_title")]),b(d,a)};L(n,d=>{s(i)?d(r):d(l,!1)})}h(o),O(()=>at(o,`background-image: url(${s(i)?"":e.thumbUrl})`)),b(t,o),H()}var j4=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),Y4={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function Ra(t,e){D(e,!0),W(t,Y4);let i=m(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=g(()=>o[e.kind]||"");var r=j4(),l=_(r),d=_(l);xa(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),p=_(a,!0);h(a),h(l),h(r),O(()=>{at(r,`background-image: url('${i()}')`),he(p,s(n))}),b(t,r),H()}var Z4=Se('<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 ev(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Z4();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var X4=M('<div class="select-icon svelte-124aexk"><!></div>'),J4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function tc(t){W(t,J4);var e=X4(),i=_(e);ev(i,{}),h(e),b(t,e)}var e3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},t3=(t,e)=>{bl(t,()=>e.item.selectItem(e.item.value))},i3=M("<p> </p>"),o3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),n3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),r3={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
287
287
 
288
288
  /**
289
289
  * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
290
290
  * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
291
291
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
292
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Xm(t,e){D(e,!0),z(t,G4);let i=m(e,"isMobile",3,!1);var o=Q4();let n;o.__click=[z4,e],o.__keydown=[W4,e];var r=_(o);{var l=w=>{Jd(w,{})};L(r,w=>{e.item.selected&&w(l)})}var d=P(r,2);let a;var p=_(d);{var f=w=>{var y=Ue(),S=fe(y);wi(S,()=>e.item.valueComponent,(T,k)=>{k(T,ms(()=>{var A;return(A=e.item.valueComponentParams)!=null?A:{}}))}),b(w,y)},v=w=>{var y=q4();let S;var T=_(y,!0);g(y),O(k=>{var A;S=J(y,1,"label svelte-1t7rx2m",null,S,k),he(T,(A=e.item.label)!=null?A:e.item.value)},[()=>({mobile:i()})]),b(w,y)};L(p,w=>{e.item.valueComponent?w(f):w(v,!1)})}var u=P(p,2);{var $=w=>{var y=K4(),S=_(y,!0);g(y),O(()=>he(S,e.item.sublabel)),b(w,y)};L(u,w=>{e.item.sublabel&&w($)})}g(d),g(o),O((w,y,S)=>{n=J(o,1,"item",null,n,w),Ne(o,"data-value",e.item.value),Ne(o,"aria-label",y),Ne(o,"data-testid",e.item.dataTestid),a=J(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),Ne(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),H()}dt(["click","keydown"]);var Y4=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Jm(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=h(()=>()=>e.openSubMenuList(e.item.children)),r=h(()=>y=>mu(y,s(n)));var l=Y4();let d;l.__click=function(...y){var S;(S=s(n))==null||S.apply(this,y)},l.__keydown=function(...y){var S;(S=s(r))==null||S.apply(this,y)};var a=_(l);{var p=y=>{Jd(y,{})};L(a,y=>{e.item.selected&&y(p)})}var f=P(a,2);let v;var u=_(f);{var $=y=>{var S=Ue();let T=h(()=>e.item.valueComponent);var k=fe(S);wi(k,()=>s(T),(A,I)=>{I(A,ms(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(y,S)},w=y=>{var S=es();O(()=>he(S,e.item.label)),b(y,S)};L(u,y=>{e.item.valueComponent?y($):y(w,!1)})}g(f),g(l),nt(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),O((y,S)=>{var T;d=J(l,1,"item",null,d,y),Ne(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Ne(l,"data-testid",e.item.id),v=J(f,1,"menu-item-value",null,v,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),H()}dt(["click","keydown"]);var Dr={"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 Z4=(t,e)=>{h1(t,e.returnFromSubMenu,e.closeSettingsMenu)},X4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},J4=(t,e)=>{wd(t)&&(gr(t),e.returnFromSubMenu())},e3=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>'),t3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
292
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function tv(t,e){D(e,!0),W(t,r3);let i=m(e,"isMobile",3,!1);var o=n3();let n;o.__click=[e3,e],o.__keydown=[t3,e];var r=_(o);{var l=w=>{tc(w,{})};L(r,w=>{e.item.selected&&w(l)})}var d=P(r,2);let a;var p=_(d);{var f=w=>{var y=Fe(),S=fe(y);Ti(S,()=>e.item.valueComponent,(T,k)=>{k(T,gs(()=>{var A;return(A=e.item.valueComponentParams)!=null?A:{}}))}),b(w,y)},v=w=>{var y=i3();let S;var T=_(y,!0);h(y),O(k=>{var A;S=te(y,1,"label svelte-1t7rx2m",null,S,k),he(T,(A=e.item.label)!=null?A:e.item.value)},[()=>({mobile:i()})]),b(w,y)};L(p,w=>{e.item.valueComponent?w(f):w(v,!1)})}var u=P(p,2);{var $=w=>{var y=o3(),S=_(y,!0);h(y),O(()=>he(S,e.item.sublabel)),b(w,y)};L(u,w=>{e.item.sublabel&&w($)})}h(d),h(o),O((w,y,S)=>{n=te(o,1,"item",null,n,w),De(o,"data-value",e.item.value),De(o,"aria-label",y),De(o,"data-testid",e.item.dataTestid),a=te(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),De(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),H()}dt(["click","keydown"]);var s3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function iv(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),r=g(()=>y=>bu(y,s(n)));var l=s3();let d;l.__click=function(...y){var S;(S=s(n))==null||S.apply(this,y)},l.__keydown=function(...y){var S;(S=s(r))==null||S.apply(this,y)};var a=_(l);{var p=y=>{tc(y,{})};L(a,y=>{e.item.selected&&y(p)})}var f=P(a,2);let v;var u=_(f);{var $=y=>{var S=Fe();let T=g(()=>e.item.valueComponent);var k=fe(S);Ti(k,()=>s(T),(A,I)=>{I(A,gs(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(y,S)},w=y=>{var S=Jr();O(()=>he(S,e.item.label)),b(y,S)};L(u,y=>{e.item.valueComponent?y($):y(w,!1)})}h(f),h(l),it(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),O((y,S)=>{var T;d=te(l,1,"item",null,d,y),De(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),De(l,"data-testid",e.item.id),v=te(f,1,"menu-item-value",null,v,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),H()}dt(["click","keydown"]);var Nr={"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 l3=(t,e)=>{w1(t,e.returnFromSubMenu,e.closeSettingsMenu)},d3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},c3=(t,e)=>{Sd(t)&&(mr(t),e.returnFromSubMenu())},u3=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>'),p3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
293
293
  /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
294
294
  /**
295
295
  * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
@@ -299,14 +299,14 @@ Try switching the\xA0quality to\xA0Auto.`},n1=G_;var vs=new Map;vs.set(ul.Interf
299
299
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
300
300
  1px
301
301
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
302
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function tv(t,e){D(e,!0),z(t,t3);let[i,o]=De(),n=()=>C(v,"$isFullscreen",i),r=()=>C(u,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),p=m(e,"listRef",15);Bt(()=>{let G=e.items.findIndex(ce=>ce.selected);p().children[G+1].focus()});let f=Ee(),v=f.ui.isFullscreen,u=f.ui.playerSize,$=j(void 0),w=j(0),y=j(0),S=h(()=>l()&&n()?`max-height: ${Math.round(r().height*.6)}px`:l()?"":`max-height: ${r().height-32-s(y)-d()}px; overflow: auto;`),T=h(()=>Math.max(e.minWidth,s(w)));var k=e3();let A;var I=_(k);let E;I.__keydown=[Z4,e];var V=_(I);let K;V.__click=[X4,e],V.__keydown=[J4,e];var W=_(V);Hs(W,{direction:"left"});var U=P(W,2),Y=_(U,!0);g(U),g(V),nt(V,G=>B($,G),()=>s($));var ne=P(V,2);xi(ne,17,()=>e.items,rd,(G,ce)=>{var le=Ue(),we=fe(le);{var Ve=ae=>{Xm(ae,{get item(){return s(ce)},get isMobile(){return l()}})},ve=(ae,Le)=>{{var te=N=>{Jm(N,{get isMobile(){return l()},get item(){return s(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(ae,N=>{s(ce).type==="OPEN_SUB_MENU"&&N(te)},Le)}};L(we,ae=>{s(ce).type==="SELECT_VALUE"?ae(Ve):ae(ve,!1)})}b(G,le)}),g(I),nt(I,G=>p(G),()=>p()),g(k),O((G,ce,le)=>{A=J(k,1,"sub-menu menu svelte-7dfsuh",null,A,G),Ne(k,"data-testid",`sub-menu-${e.id}`),at(k,`min-width: ${s(T)}px`),E=J(I,1,"items svelte-7dfsuh",null,E,ce),at(I,s(S)),K=J(V,1,"item header back svelte-7dfsuh",null,K,le),Ne(V,"aria-label",a()),he(Y,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),is(V,"clientWidth",G=>B(w,G)),is(V,"clientHeight",G=>B(y,G)),b(t,k),H(),o()}dt(["keydown","click"]);var Z1=require("@vkontakte/videoplayer-shared/es2018");var i3=(t,e)=>mu(t,e()),o3=(t,e)=>{t.stopPropagation(),e()()},n3=M('<div class="value svelte-1ikfjte"> </div>'),r3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),s3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function iv(t,e){D(e,!0),z(t,s3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,Z1.noop),n=m(e,"valueComponent",3,void 0),r=m(e,"ref",15);var l=r3();let d;l.__click=[o3,o],l.__keydown=[i3,o];var a=_(l),p=_(a);{var f=T=>{Ea(T,{get icon(){return e.icon}})},v=T=>{var k=Ue();let A=h(()=>e.icon);var I=fe(k);wi(I,()=>s(A),(E,V)=>{V(E,{})}),b(T,k)};L(p,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var u=P(a,2),$=_(u,!0);g(u);var w=P(u,2);{var y=T=>{var k=Ue();let A=h(n);var I=fe(k);wi(I,()=>s(A),(E,V)=>{V(E,{})}),b(T,k)},S=T=>{var k=n3(),A=_(k,!0);g(k),O(()=>he(A,e.value)),b(T,k)};L(w,T=>{n()?T(y):T(S,!1)})}g(l),nt(l,T=>r(T),()=>r()),O(T=>{d=J(l,1,"item",null,d,T),Ne(l,"aria-label",e.ariaLabel),Ne(l,"data-testid",e.id),he($,e.label)},[()=>({mobile:i()})]),b(t,l),H()}dt(["click","keydown"]);var ov=require("@vkontakte/videoplayer-shared/es2018");var a3=(t,e)=>{hl(t,()=>e())},l3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),d3=M('<img class="icon" aria-hidden="true"/>'),c3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),u3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function nv(t,e){D(e,!0),z(t,u3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,ov.noop),n=m(e,"closeSettings",3,ov.noop),r=j(!1),l=()=>{B(r,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=c3();let p;a.__click=d,a.__keydown=[a3,d];var f=_(a),v=_(f);{var u=S=>{var T=Ue(),k=fe(T);{var A=E=>{var V=l3();b(E,V)},I=E=>{var V=d3();O(()=>Ne(V,"src",e.icon)),St("error",V,l),oa(V),b(E,V)};L(k,E=>{s(r)?E(A):E(I,!1)})}b(S,T)},$=S=>{var T=Ue();let k=h(()=>e.icon);var A=fe(T);wi(A,()=>s(k),(I,E)=>{E(I,{})}),b(S,T)};L(v,S=>{typeof e.icon=="string"?S(u):S($,!1)})}g(f);var w=P(f,2),y=_(w,!0);g(w),g(a),O(S=>{var T;p=J(a,1,"item",null,p,S),Ne(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ne(a,"data-testid",e.id),he(y,e.label)},[()=>({mobile:i()})]),b(t,a),H()}dt(["click","keydown"]);var X1=require("@vkontakte/videoplayer-shared/es2018");var p3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),f3={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 rv(t,e){z(t,f3);let i=m(e,"enabled",3,!1);var o=p3(),n=_(o);let r;Ce(2),g(o),O(l=>r=J(n,1,"toggle svelte-17wbjko",null,r,l),[()=>({on:i()})]),b(t,o)}var m3=(t,e,i)=>{_1(t,e(),o=>i()(o))},v3=(t,e,i)=>{t.stopPropagation(),e()(!i())},g3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),h3=M('<li role="menuitem" tabindex="0"><!></li>');function sv(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,X1.noop),n=m(e,"enabled",3,!1),r=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=h3();let a;d.__click=[v3,o,n],d.__keydown=[m3,n,o];var p=_(d);xa(p,{get content(){return r()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var u=g3();let $;var w=_(u),y=_(w);{var S=E=>{Ea(E,{get icon(){return e.icon}})},T=E=>{var V=Ue();let K=h(()=>e.icon);var W=fe(V);wi(W,()=>s(K),(U,Y)=>{Y(U,{})}),b(E,V)};L(y,E=>{typeof e.icon=="string"?E(S):E(T,!1)})}g(w);var k=P(w,2),A=_(k,!0);g(k);var I=P(k,2);rv(I,{get enabled(){return n()}}),g(u),O(E=>{$=J(u,1,"switch-wrapper",null,$,E),he(A,e.label)},[()=>({mobile:i()})]),b(f,u)},$$slots:{default:!0}}),g(d),O(f=>{var v;a=J(d,1,"item switch-item",null,a,f),Ne(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Ne(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),H()}dt(["click","keydown"]);var tc=require("@vkontakte/videoplayer-shared/es2018");var J1=()=>{let t=j(oi([])),e=h(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{B(t,s(t).slice(0,-1),!0)},popAllSubMenus:()=>{B(t,[],!0)}}};var _3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),b3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),$3={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 Va(t,e){D(e,!0),z(t,$3);let i=m(e,"isSubCase",3,!1),o=h(()=>_u(e.quality));var n=b3(),r=_(n);let l;var d=_(r,!0);g(r);var a=P(r,2);{var p=f=>{var v=_3();let u=h(()=>s(o));var $=_(v);wi($,()=>s(u),(w,y)=>{y(w,{})}),g(v),b(f,v)};L(a,f=>{s(o)&&!e.isMobile&&f(p)})}g(n),O(f=>{l=J(r,1,"svelte-t2qk8t",null,l,f),he(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),H()}var o0=require("@vkontakte/videoplayer-shared/es2018");var av=require("@vkontakte/videoplayer-core/es2018");var e0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},t0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=e0({quality:t,availableQualities:e});return i?t===av.VideoQuality.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},i0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===av.VideoQuality.INVARIANT?i:`${i}${e0({quality:t,availableQualities:e})}`:"...";var y3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),x3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function El(t,e){D(e,!0),z(t,x3);let[i,o]=De(),n=()=>C(a,"$currentQuality$",i),r=()=>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=h(()=>e.prefix+(e.selected&&n()!==o0.VideoQuality.INVARIANT?v:"")),$=h(()=>i0({prefix:s(u),quality:n(),availableQualities:r(),onlyPrefix:!e.selected}));var w=y3(),y=_(w);let S=h(()=>e.selected?n():void 0);Va(y,{get quality(){return s(S)},get label(){return s($)},get isMobile(){return l()},isSubCase:!0}),g(w),b(t,w),H(),o()}var w3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",r=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${r}`,"g")},C3={br:!0,span:!0},lv=(t,e={})=>{var d,a,p,f,v,u,$;if(!t)return t;let i={...C3,...e},o=Object.keys(i);if(!o.length)return t;let n=w3(o),r=[],l=0;for(let w of t.matchAll(n)){let y=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]){r.push(t.slice(l,T)),l=T+y.length;continue}let k=(v=w.groups)!=null&&v.childrenhtml?lv(w.groups.childrenhtml,i):"",A=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>k||""):y;r.push(t.slice(l,T),A),l=T+y.length}return l===0?t:(r.push(t.slice(l)),r.join(""))};function ec(t,e){D(e,!1);let i=m(e,"message",8),o=lv(i());Vr();var n=Ue(),r=fe(n);{var l=d=>{var a=Ue(),p=fe(a);sd(p,()=>o),b(d,a)};L(r,d=>{o&&d(l)})}b(t,n),H()}var S3=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),T3={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 dv(t,e){D(e,!1),z(t,T3),Vr();var i=S3(),o=_(i);let n=Pr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));ec(o,{get message(){return s(n)}}),g(i),b(t,i),H()}var r0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:El,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},cv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?El:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),s0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:dv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),uv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?El:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),pv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:F("traffic_saving_quality"),valueComponent:t?El:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var Ru=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Nu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Tu(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let a=Ru(t,d);return F("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=Ru(t,d);return F("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=Ru(t,d);return F("audio_stream_display_language_index",{language:n,index:a})}}let r=Ru(t,e);return F("audio_stream_display_unknown",{index:r})};var E3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,r=[];return i&&r.push({handler:cv,selected:e&&!o&&!n||!1}),r.push({handler:pv,selected:o},{handler:uv,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[s0(t),...r.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),r0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Va,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:r=>e(r,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:cv,selected:((i=nu())==null?void 0:i.type)==="auto_quality"},{handler:pv,selected:((o=nu())==null?void 0:o.type)==="traffic_saving"},{handler:uv,selected:((n=nu())==null?void 0:n.type)==="high_quality"}].map(({handler:r,selected:l})=>r({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Nu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Iu?"sub_off":void 0}))})},a0=({subMenuId:t,context:e})=>t?[E3[t](e)]:[];var I3=Se('<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 fv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=I3();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var k3=Se('<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 mv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=k3();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var P3=Se('<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 vv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=P3();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var A3=Se('<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 gv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=A3();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var M3=Se('<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 hv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=M3();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var L3=Se('<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 Bu(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=L3();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var V3=Se('<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 _v(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=V3();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}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 bv(t,e){D(e,!0),z(t,N3);let[i,o]=De(),n=()=>C(p,"$currentQuality$",i),r=()=>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,$=h(()=>t0({quality:n(),availableQualities:r(),isAutoQualityEnabled:l()}));var w=R3(),y=_(w);Va(y,{get quality(){return n()},get label(){return s($)},get isMobile(){return d()}}),g(w),b(t,w),H(),o()}var O3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:Pd,label:F("menu_quality"),value:e,valueComponent:bv,weight:Dr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Dr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:fv,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Nu(t,e);return{id:"AUDIO_LANGUAGES",weight:Dr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:mv,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Dr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:vv,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Dr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Ad,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Dr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:gv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Dr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:hv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Dr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:Bu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Dr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:Bu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Dr["debug-info"],type:"CLICK",onClick:t,ariaLabel:F("aria_label_menu_debug_overlay"),label:F("menu_debug_overlay"),icon:_v,isHiddenFor:["desktop"]})},l0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>O3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var r,l,d;return!((r=n==null?void 0:n.isHiddenFor)!=null&&r.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(ha)};var H3=(t,e)=>{fu(t,e)},F3=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),U3=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),z3=M("<div><!> <!></div>"),W3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
302
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function nv(t,e){D(e,!0),W(t,p3);let[i,o]=Oe(),n=()=>C(v,"$isFullscreen",i),r=()=>C(u,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),p=m(e,"listRef",15);Ot(()=>{let j=e.items.findIndex(ce=>ce.selected);p().children[j+1].focus()});let f=Ee(),v=f.ui.isFullscreen,u=f.ui.playerSize,$=Y(void 0),w=Y(0),y=Y(0),S=g(()=>l()&&n()?`max-height: ${Math.round(r().height*.6)}px`:l()?"":`max-height: ${r().height-32-s(y)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,s(w)));var k=u3();let A;var I=_(k);let E;I.__keydown=[l3,e];var R=_(I);let G;R.__click=[d3,e],R.__keydown=[c3,e];var q=_(R);zs(q,{direction:"left"});var U=P(q,2),Q=_(U,!0);h(U),h(R),it(R,j=>B($,j),()=>s($));var J=P(R,2);Si(J,17,()=>e.items,ad,(j,ce)=>{var le=Fe(),ye=fe(le);{var ke=ae=>{tv(ae,{get item(){return s(ce)},get isMobile(){return l()}})},me=(ae,Ve)=>{{var re=N=>{iv(N,{get isMobile(){return l()},get item(){return s(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(ae,N=>{s(ce).type==="OPEN_SUB_MENU"&&N(re)},Ve)}};L(ye,ae=>{s(ce).type==="SELECT_VALUE"?ae(ke):ae(me,!1)})}b(j,le)}),h(I),it(I,j=>p(j),()=>p()),h(k),O((j,ce,le)=>{A=te(k,1,"sub-menu menu svelte-7dfsuh",null,A,j),De(k,"data-testid",`sub-menu-${e.id}`),at(k,`min-width: ${s(T)}px`),E=te(I,1,"items svelte-7dfsuh",null,E,ce),at(I,s(S)),G=te(R,1,"item header back svelte-7dfsuh",null,G,le),De(R,"aria-label",a()),he(Q,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),ts(R,"clientWidth",j=>B(w,j)),ts(R,"clientHeight",j=>B(y,j)),b(t,k),H(),o()}dt(["keydown","click"]);var o0=require("@vkontakte/videoplayer-shared/es2018");var f3=(t,e)=>bu(t,e()),m3=(t,e)=>{t.stopPropagation(),e()()},v3=M('<div class="value svelte-1ikfjte"> </div>'),g3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),h3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function rv(t,e){D(e,!0),W(t,h3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,o0.noop),n=m(e,"valueComponent",3,void 0),r=m(e,"ref",15);var l=g3();let d;l.__click=[m3,o],l.__keydown=[f3,o];var a=_(l),p=_(a);{var f=T=>{ka(T,{get icon(){return e.icon}})},v=T=>{var k=Fe();let A=g(()=>e.icon);var I=fe(k);Ti(I,()=>s(A),(E,R)=>{R(E,{})}),b(T,k)};L(p,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}h(a);var u=P(a,2),$=_(u,!0);h(u);var w=P(u,2);{var y=T=>{var k=Fe();let A=g(n);var I=fe(k);Ti(I,()=>s(A),(E,R)=>{R(E,{})}),b(T,k)},S=T=>{var k=v3(),A=_(k,!0);h(k),O(()=>he(A,e.value)),b(T,k)};L(w,T=>{n()?T(y):T(S,!1)})}h(l),it(l,T=>r(T),()=>r()),O(T=>{d=te(l,1,"item",null,d,T),De(l,"aria-label",e.ariaLabel),De(l,"data-testid",e.id),he($,e.label)},[()=>({mobile:i()})]),b(t,l),H()}dt(["click","keydown"]);var sv=require("@vkontakte/videoplayer-shared/es2018");var _3=(t,e)=>{bl(t,()=>e())},b3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),$3=M('<img class="icon" aria-hidden="true"/>'),y3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),x3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function av(t,e){D(e,!0),W(t,x3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,sv.noop),n=m(e,"closeSettings",3,sv.noop),r=Y(!1),l=()=>{B(r,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=y3();let p;a.__click=d,a.__keydown=[_3,d];var f=_(a),v=_(f);{var u=S=>{var T=Fe(),k=fe(T);{var A=E=>{var R=b3();b(E,R)},I=E=>{var R=$3();O(()=>De(R,"src",e.icon)),Et("error",R,l),ra(R),b(E,R)};L(k,E=>{s(r)?E(A):E(I,!1)})}b(S,T)},$=S=>{var T=Fe();let k=g(()=>e.icon);var A=fe(T);Ti(A,()=>s(k),(I,E)=>{E(I,{})}),b(S,T)};L(v,S=>{typeof e.icon=="string"?S(u):S($,!1)})}h(f);var w=P(f,2),y=_(w,!0);h(w),h(a),O(S=>{var T;p=te(a,1,"item",null,p,S),De(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),De(a,"data-testid",e.id),he(y,e.label)},[()=>({mobile:i()})]),b(t,a),H()}dt(["click","keydown"]);var n0=require("@vkontakte/videoplayer-shared/es2018");var w3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),C3={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 lv(t,e){W(t,C3);let i=m(e,"enabled",3,!1);var o=w3(),n=_(o);let r;Ce(2),h(o),O(l=>r=te(n,1,"toggle svelte-17wbjko",null,r,l),[()=>({on:i()})]),b(t,o)}var S3=(t,e,i)=>{C1(t,e(),o=>i()(o))},T3=(t,e,i)=>{t.stopPropagation(),e()(!i())},E3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),I3=M('<li role="menuitem" tabindex="0"><!></li>');function dv(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,n0.noop),n=m(e,"enabled",3,!1),r=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=I3();let a;d.__click=[T3,o,n],d.__keydown=[S3,n,o];var p=_(d);Ca(p,{get content(){return r()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var u=E3();let $;var w=_(u),y=_(w);{var S=E=>{ka(E,{get icon(){return e.icon}})},T=E=>{var R=Fe();let G=g(()=>e.icon);var q=fe(R);Ti(q,()=>s(G),(U,Q)=>{Q(U,{})}),b(E,R)};L(y,E=>{typeof e.icon=="string"?E(S):E(T,!1)})}h(w);var k=P(w,2),A=_(k,!0);h(k);var I=P(k,2);lv(I,{get enabled(){return n()}}),h(u),O(E=>{$=te(u,1,"switch-wrapper",null,$,E),he(A,e.label)},[()=>({mobile:i()})]),b(f,u)},$$slots:{default:!0}}),h(d),O(f=>{var v;a=te(d,1,"item switch-item",null,a,f),De(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),H()}dt(["click","keydown"]);var oc=require("@vkontakte/videoplayer-shared/es2018");var r0=()=>{let t=Y(ii([])),e=g(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{B(t,s(t).slice(0,-1),!0)},popAllSubMenus:()=>{B(t,[],!0)}}};var k3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),P3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),A3={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){D(e,!0),W(t,A3);let i=m(e,"isSubCase",3,!1),o=g(()=>wu(e.quality));var n=P3(),r=_(n);let l;var d=_(r,!0);h(r);var a=P(r,2);{var p=f=>{var v=k3();let u=g(()=>s(o));var $=_(v);Ti($,()=>s(u),(w,y)=>{y(w,{})}),h(v),b(f,v)};L(a,f=>{s(o)&&!e.isMobile&&f(p)})}h(n),O(f=>{l=te(r,1,"svelte-t2qk8t",null,l,f),he(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),H()}var d0=require("@vkontakte/videoplayer-shared/es2018");var cv=require("@vkontakte/videoplayer-core/es2018");var s0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},a0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=s0({quality:t,availableQualities:e});return i?t===cv.VideoQuality.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},l0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===cv.VideoQuality.INVARIANT?i:`${i}${s0({quality:t,availableQualities:e})}`:"...";var M3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),L3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function kl(t,e){D(e,!0),W(t,L3);let[i,o]=Oe(),n=()=>C(a,"$currentQuality$",i),r=()=>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()!==d0.VideoQuality.INVARIANT?v:"")),$=g(()=>l0({prefix:s(u),quality:n(),availableQualities:r(),onlyPrefix:!e.selected}));var w=M3(),y=_(w);let S=g(()=>e.selected?n():void 0);Na(y,{get quality(){return s(S)},get label(){return s($)},get isMobile(){return l()},isSubCase:!0}),h(w),b(t,w),H(),o()}var V3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",r=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${r}`,"g")},R3={br:!0,span:!0},uv=(t,e={})=>{var d,a,p,f,v,u,$;if(!t)return t;let i={...R3,...e},o=Object.keys(i);if(!o.length)return t;let n=V3(o),r=[],l=0;for(let w of t.matchAll(n)){let y=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]){r.push(t.slice(l,T)),l=T+y.length;continue}let k=(v=w.groups)!=null&&v.childrenhtml?uv(w.groups.childrenhtml,i):"",A=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>k||""):y;r.push(t.slice(l,T),A),l=T+y.length}return l===0?t:(r.push(t.slice(l)),r.join(""))};function ic(t,e){D(e,!1);let i=m(e,"message",8),o=uv(i());Ar();var n=Fe(),r=fe(n);{var l=d=>{var a=Fe(),p=fe(a);ld(p,()=>o),b(d,a)};L(r,d=>{o&&d(l)})}b(t,n),H()}var N3=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),B3={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 pv(t,e){D(e,!1),W(t,B3),Ar();var i=N3(),o=_(i);let n=Er(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));ic(o,{get message(){return s(n)}}),h(i),b(t,i),H()}var u0=({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:F("other_quality"),selected:o},children:"QUALITY"}},fv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?kl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),p0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:pv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),mv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?kl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),vv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:F("traffic_saving_quality"),valueComponent:t?kl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("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=Au(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let a=Hu(t,d);return F("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 F("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 F("audio_stream_display_language_index",{language:n,index:a})}}let r=Hu(t,e);return F("audio_stream_display_unknown",{index:r})};var O3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,r=[];return i&&r.push({handler:fv,selected:e&&!o&&!n||!1}),r.push({handler:vv,selected:o},{handler:mv,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[p0(t),...r.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),u0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Na,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:r=>e(r,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:fv,selected:((i=lu())==null?void 0:i.type)==="auto_quality"},{handler:vv,selected:((o=lu())==null?void 0:o.type)==="traffic_saving"},{handler:mv,selected:((n=lu())==null?void 0:n.type)==="high_quality"}].map(({handler:r,selected:l})=>r({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Fu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Lu?"sub_off":void 0}))})},f0=({subMenuId:t,context:e})=>t?[O3[t](e)]:[];var D3=Se('<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 gv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=D3();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var H3=Se('<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 hv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=H3();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var F3=Se('<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 _v(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=F3();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var U3=Se('<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 bv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=U3();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var z3=Se('<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 $v(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=z3();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var W3=Se('<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=Le(e,["$$slots","$$events","$$legacy","children"]);var o=W3();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var q3=Se('<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 yv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=q3();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var K3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Q3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function xv(t,e){D(e,!0),W(t,Q3);let[i,o]=Oe(),n=()=>C(p,"$currentQuality$",i),r=()=>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,$=g(()=>a0({quality:n(),availableQualities:r(),isAutoQualityEnabled:l()}));var w=K3(),y=_(w);Na(y,{get quality(){return n()},get label(){return s($)},get isMobile(){return d()}}),h(w),b(t,w),H(),o()}var j3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:Md,label:F("menu_quality"),value:e,valueComponent:xv,weight:Nr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Nr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:gv,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Fu(t,e);return{id:"AUDIO_LANGUAGES",weight:Nr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:hv,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Nr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:_v,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Nr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Ld,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Nr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:bv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Nr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:$v,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Nr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:Uu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Nr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:Uu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Nr["debug-info"],type:"CLICK",onClick:t,ariaLabel:F("aria_label_menu_debug_overlay"),label:F("menu_debug_overlay"),icon:yv,isHiddenFor:["desktop"]})},m0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>j3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var r,l,d;return!((r=n==null?void 0:n.isHiddenFor)!=null&&r.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 Z3=(t,e)=>{_u(t,e)},X3=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),J3=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),ex=M("<div><!> <!></div>"),tx={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
303
303
  /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
304
304
  .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
305
305
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
306
- .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function ic(t,e){D(e,!0),z(t,W3);let[i,o]=De(),n=()=>C(qe,"$settingsMenuVisible",i),r=()=>C(Je,"$settingsMenuOpenedByKeyboard",i),l=()=>C(Ct,"$debugPanelVisible",i),d=()=>C(X,"$isMobile",i),a=()=>C(bt,"$playerSize",i),p=()=>C(Z,"$hasMpegSources$",i),f=()=>C(Te,"$mobileNotReportControlHidden$",i),v=()=>C(te,"$autoQualityLimitingAvailable$",i),u=()=>C(ue,"$availableSubtitlesList$",i),$=()=>C(Ke,"$isLiveWithPlaybackSpeed",i),w=()=>C(ve,"$availableAudioStreams$",i),y=()=>C(ge,"$availablePlaybackRates$",i),S=()=>C(Ve,"$currentAudioStream$",i),T=()=>C(ye,"$currentPlaybackRate$",i),k=()=>C(st,"$trafficSavingEnabled",i),A=()=>C(ae,"$currentQuality$",i),I=()=>C(N,"$isAutoQualityEnabled$",i),E=()=>C(de,"$currentSubtitle$",i),V=()=>C(Qt,"$additionalSettingsMenuItems$",i),K=()=>C(Be,"$isAutoQualityAvailable$",i),W=()=>C(Le,"$availableQualities$",i),U=()=>C(pt,"$highQualityEnabled",i),Y=m(e,"ref",15,void 0),ne=m(e,"playerControlsHeight",3,0),G=oi({}),ce=oi({}),le=Ee(),we=zt(),Ve=le.state.audioStream$,ve=le.state.availableAudioStreams$,ae=le.state.currentQuality$,Le=le.state.availableQualities$,te=le.state.autoQualityLimitingAvailable$,N=le.state.isAutoQualityEnabled$,Be=le.state.isAutoQualityAvailable$,ye=le.state.currentPlaybackRate$,ge=le.state.availablePlaybackRates$,de=le.state.currentSubtitle$,ue=le.state.availableSubtitlesList$,xe=le.state.canDownload,Z=le.state.hasMpegSources$,qe=le.ui.settingsMenu.visible$,Je=le.ui.settingsMenu.openedByBtnKeyboard$,ke=le.ui.settingsMenu.ref$,X=le.ui.isMobile,Te=le.ui.mobileNotReportControlHidden$,Ke=le.state.canChangePlaybackSpeed$,st=le.state.trafficSavingEnabled$,pt=le.state.highQualityEnabled$,bt=le.ui.playerSize,Ct=le.ui.debugPanelVisible,Qe=le.state.isInteractiveTime$,Qt=le.ui.additionalSettingsMenuItems$,Zt=le.ui.t,Yt=le.actions.internal.downloadVideo,Ot=le.actions.internal.closeSettingsMenu,ee=le.actions.internal.openSettingsSubMenu,Lt=le.actions.internal.closeSettingsSubMenu,me=j(!1),_e=j(void 0),se=J1();We(()=>{!n()&&se.current&&(Lt(ce[se.current]),se.popAllSubMenus())}),We(()=>{n()||B(_e,void 0)}),We(()=>{!se.current&&s(_e)&&g1(G,s(_e))}),We(()=>{Y()&&ke.set(Y())});async function Oe(rt){var hi;se.pushSubMenu(rt),await wo(),ee(rt,ce[rt]);let ft=(hi=Y())==null?void 0:hi.firstElementChild;ft&&kf(ft)}function ze(rt){var ft;rt==null||rt.stopPropagation(),r()||(ft=e.returnFocus)==null||ft.call(e),Ot(),B(me,!1)}function Ae(rt,ft){le.actions.internal.setQuality(rt,{appliesTo:ft}),ze()}function je(rt){le.actions.internal.setAudioStream(rt),ze()}function Re(rt,ft){le.actions.internal.setTrafficSavingEnabled(rt,ft),we.features.qualityDetailsSubMenuEnabled&&ze()}function it(rt,ft){le.actions.internal.setHighQualityEnabled(rt,ft),ze()}function At(rt){le.actions.internal.setPlaybackRate(rt),ze()}function Vt(rt){le.actions.internal.setSubtitle(rt),ze()}function et(){Yt()}function ni(){(0,tc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function fi(){vl(le.actions.internal.getDebugTextData())}let lt=()=>{let rt=le.actions.internal.getTraceTextData(),ft=new Blob([...rt],{type:"application/json"}),hi=window.URL.createObjectURL(ft);ua(hi,"vk_player_trace_info","json")};function ei(){Ct.set(!l())}function ii(){B(me,!0)}function ui(){B(me,!1)}function To(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-ne()}px; overflow: auto;`}let mo=h(()=>xe&&p()&&!f()),Xt=h(()=>we.features.trafficSaving&&!f()&&v()&&!we.features.qualityDetailsSubMenuEnabled),Si=h(()=>u().length>0&&!f()),eo=h(()=>!!$()&&!f()),xt=h(()=>we.features.audioLanguages&&w().length>=2&&!f()),_t=h(()=>!f());Bt(()=>Qe.subscribe(rt=>{rt&&!d()&&!s(me)&&!r()&&ze()}));let Ti=h(()=>{let rt=[s(_t)&&"QUALITY_SETTINGS",s(xt)&&"AUDIO_LANGUAGES",s(eo)&&"PLAYBACK_RATE",s(Si)&&"SUBTITLES",s(Xt)&&"TRAFFIC_SAVING_SWITCH",s(mo)&&"DOWNLOAD",we.showSupport&&"SHOW_SUPPORT","COPY_DATA",we.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(ft=>!!ft);return l0({items:rt,context:{qualityDetailsSubMenuEnabled:we.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:At,trafficSavingEnabled:k(),toggleTrafficSaving:Re,currentQuality:A()||tc.VideoQuality.INVARIANT,isAutoQualityEnabled:I()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:et,onCopyDataClick:fi,onReportProblemClick:ni,onSaveTraceDataClick:lt,toggleShowDebugInfo:ei},additionalSettingsMenuItems:V()})}),Oo=h(()=>a0({subMenuId:se.current,context:{availablePlaybackRates:y(),selectPlaybackRate:At,trafficSavingEnabled:k(),toggleTrafficSaving:Re,currentQuality:A()||tc.VideoQuality.INVARIANT,isAutoQualityEnabled:I()||!1,isAutoQualityAvailable:K()||!1,availableQualities:W(),highQualityEnabled:U(),toggleHighQuality:it,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Ot,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:je,selectQuality:Ae,selectSubtitle:Vt}}));var q=z3();let Dt;var ci=_(q);{var Gt=rt=>{var ft=U3();let hi;ft.__keydown=[H3,Ot];var Ht=_(ft);{var Jn=Li=>{var yt=F3();let Vi;var Zo=_(yt),vn=_(Zo,!0);g(Zo);var Ii=P(Zo,2);Ii.__click=ze,g(yt),O((to,ki)=>{Vi=J(yt,1,"item header svelte-17or3al",null,Vi,to),he(vn,ki)},[()=>({mobile:d()}),()=>Zt("submenu_settings")]),b(Li,yt)};L(Ht,Li=>{d()&&Li(Jn)})}var Ei=P(Ht,2);let vo;xi(Ei,21,()=>s(Ti),Li=>Li.id,(Li,yt)=>{var Vi=Ue(),Zo=fe(Vi);{var vn=to=>{iv(to,{get isMobile(){return d()},get id(){return s(yt).id},get icon(){return s(yt).icon},get label(){return s(yt).label},get ariaLabel(){return s(yt).ariaLabel},get value(){return s(yt).value},get valueComponent(){return s(yt).valueComponent},onClick:()=>{Oe(s(yt).children),B(_e,s(yt).id,!0)},get ref(){return G[s(yt).id]},set ref(ki){G[s(yt).id]=ki}})},Ii=(to,ki)=>{{var Xo=Eo=>{nv(Eo,{get isMobile(){return d()},get id(){return s(yt).id},get onClick(){return s(yt).onClick},get icon(){return s(yt).icon},get label(){return s(yt).label},get ariaLabel(){return s(yt).ariaLabel},closeSettings:ze})},Vn=(Eo,Do)=>{{var go=ho=>{sv(ho,{get isMobile(){return d()},get id(){return s(yt).id},get onClick(){return s(yt).onClick},get icon(){return s(yt).icon},get label(){return s(yt).label},get ariaLabel(){return s(yt).ariaLabel},get enabled(){return s(yt).enabled},get tooltipText(){return s(yt).tooltipText},get maxTooltipWidth(){return s(yt).maxTooltipWidth}})};L(Eo,ho=>{s(yt).type==="SWITCH"&&ho(go)},Do)}};L(to,Eo=>{s(yt).type==="CLICK"?Eo(Xo):Eo(Vn,!1)},ki)}};L(Zo,to=>{s(yt).type==="OPEN_SUB_MENU"?to(vn):to(Ii,!1)})}b(Li,Vi)}),g(Ei),nt(Ei,Li=>Y(Li),()=>Y()),g(ft),O((Li,yt,Vi)=>{hi=J(ft,1,"settings-menu menu svelte-17or3al",null,hi,Li),vo=J(Ei,1,"items",null,vo,yt),at(Ei,Vi)},[()=>({desktop:!d(),mobile:d(),hidden:!!se.current}),()=>({mobile:d()}),To]),St("mouseenter",ft,ii),St("mouseleave",ft,ui),b(rt,ft)};L(ci,rt=>{n()&&rt(Gt)})}var vt=P(ci,2);xi(vt,17,()=>s(Oo),rt=>rt.id,(rt,ft)=>{let hi=h(()=>{var Ht;return(Ht=s(ft).minWidth)!=null?Ht:137});tv(rt,{get isMobile(){return d()},get playerControlsHeight(){return ne()},get returnFromSubMenu(){return se.popSubMenu},get id(){return s(ft).id},get title(){return s(ft).title},get closeSettingsMenu(){return Ot},openSubMenuList:Oe,get items(){return s(ft).items},get minWidth(){return s(hi)},get refMenuItems(){return G},get listRef(){return ce[s(ft).id]},set listRef(Ht){ce[s(ft).id]=Ht}})}),g(q),O(rt=>Dt=J(q,1,"settings-menu-container svelte-17or3al",null,Dt,rt),[()=>({mobile:d(),hidden:!n()})]),b(t,q),H(),o()}dt(["keydown","click"]);var q3=t=>t;function d0(t,{delay:e=0,duration:i=400,easing:o=q3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:r=>`opacity: ${r*n}`}}var K3=M('<button class="button svelte-1sbbskl"> </button>'),Q3={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 $v(t,e){z(t,Q3);var i=K3();i.__click=function(...n){var r;(r=e.onClick)==null||r.apply(this,n)};var o=_(i,!0);g(i),O(()=>he(o,e.label)),b(t,i)}dt(["click"]);var G3=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),Y3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
306
+ .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function nc(t,e){D(e,!0),W(t,tx);let[i,o]=Oe(),n=()=>C(qe,"$settingsMenuVisible",i),r=()=>C(Je,"$settingsMenuOpenedByKeyboard",i),l=()=>C(Tt,"$debugPanelVisible",i),d=()=>C(X,"$isMobile",i),a=()=>C(vt,"$playerSize",i),p=()=>C(Z,"$hasMpegSources$",i),f=()=>C(Te,"$mobileNotReportControlHidden$",i),v=()=>C(re,"$autoQualityLimitingAvailable$",i),u=()=>C(ue,"$availableSubtitlesList$",i),$=()=>C(Ke,"$isLiveWithPlaybackSpeed",i),w=()=>C(me,"$availableAudioStreams$",i),y=()=>C(ge,"$availablePlaybackRates$",i),S=()=>C(ke,"$currentAudioStream$",i),T=()=>C(_e,"$currentPlaybackRate$",i),k=()=>C(nt,"$trafficSavingEnabled",i),A=()=>C(ae,"$currentQuality$",i),I=()=>C(N,"$isAutoQualityEnabled$",i),E=()=>C(de,"$currentSubtitle$",i),R=()=>C(zt,"$additionalSettingsMenuItems$",i),G=()=>C(He,"$isAutoQualityAvailable$",i),q=()=>C(Ve,"$availableQualities$",i),U=()=>C(mt,"$highQualityEnabled",i),Q=m(e,"ref",15,void 0),J=m(e,"playerControlsHeight",3,0),j=ii({}),ce=ii({}),le=Ee(),ye=kt(),ke=le.state.audioStream$,me=le.state.availableAudioStreams$,ae=le.state.currentQuality$,Ve=le.state.availableQualities$,re=le.state.autoQualityLimitingAvailable$,N=le.state.isAutoQualityEnabled$,He=le.state.isAutoQualityAvailable$,_e=le.state.currentPlaybackRate$,ge=le.state.availablePlaybackRates$,de=le.state.currentSubtitle$,ue=le.state.availableSubtitlesList$,xe=le.state.canDownload,Z=le.state.hasMpegSources$,qe=le.ui.settingsMenu.visible$,Je=le.ui.settingsMenu.openedByBtnKeyboard$,Pe=le.ui.settingsMenu.ref$,X=le.ui.isMobile,Te=le.ui.mobileNotReportControlHidden$,Ke=le.state.canChangePlaybackSpeed$,nt=le.state.trafficSavingEnabled$,mt=le.state.highQualityEnabled$,vt=le.ui.playerSize,Tt=le.ui.debugPanelVisible,Qe=le.state.isInteractiveTime$,zt=le.ui.additionalSettingsMenuItems$,Jt=le.ui.t,Zt=le.actions.internal.downloadVideo,Wt=le.actions.internal.closeSettingsMenu,ie=le.actions.internal.openSettingsSubMenu,Nt=le.actions.internal.closeSettingsSubMenu,we=Y(!1),ve=Y(void 0),ne=r0();Ue(()=>{!n()&&ne.current&&(Nt(ce[ne.current]),ne.popAllSubMenus())}),Ue(()=>{n()||B(ve,void 0)}),Ue(()=>{!ne.current&&s(ve)&&x1(j,s(ve))}),Ue(()=>{Q()&&Pe.set(Q())});async function Be(ot){var $i;ne.pushSubMenu(ot),await To(),ie(ot,ce[ot]);let gt=($i=Q())==null?void 0:$i.firstElementChild;gt&&Mf(gt)}function ze(ot){var gt;ot==null||ot.stopPropagation(),r()||(gt=e.returnFocus)==null||gt.call(e),Wt(),B(we,!1)}function Me(ot,gt){le.actions.internal.setQuality(ot,{appliesTo:gt}),ze()}function We(ot){le.actions.internal.setAudioStream(ot),ze()}function Re(ot,gt){le.actions.internal.setTrafficSavingEnabled(ot,gt),ye.features.qualityDetailsSubMenuEnabled&&ze()}function tt(ot,gt){le.actions.internal.setHighQualityEnabled(ot,gt),ze()}function Mt(ot){le.actions.internal.setPlaybackRate(ot),ze()}function Qt(ot){le.actions.internal.setSubtitle(ot),ze()}function et(){Zt()}function pi(){(0,oc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function oi(){hl(le.actions.internal.getDebugTextData())}let st=()=>{let ot=le.actions.internal.getTraceTextData(),gt=new Blob([...ot],{type:"application/json"}),$i=window.URL.createObjectURL(gt);fa($i,"vk_player_trace_info","json")};function Gt(){Tt.set(!l())}function ni(){B(we,!0)}function mi(){B(we,!1)}function go(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-J()}px; overflow: auto;`}let io=g(()=>xe&&p()&&!f()),Xt=g(()=>ye.features.trafficSaving&&!f()&&v()&&!ye.features.qualityDetailsSubMenuEnabled),Ii=g(()=>u().length>0&&!f()),oo=g(()=>!!$()&&!f()),yt=g(()=>ye.features.audioLanguages&&w().length>=2&&!f()),bt=g(()=>!f());Ot(()=>Qe.subscribe(ot=>{ot&&!d()&&!s(we)&&!r()&&ze()}));let Vi=g(()=>{let ot=[s(bt)&&"QUALITY_SETTINGS",s(yt)&&"AUDIO_LANGUAGES",s(oo)&&"PLAYBACK_RATE",s(Ii)&&"SUBTITLES",s(Xt)&&"TRAFFIC_SAVING_SWITCH",s(io)&&"DOWNLOAD",ye.showSupport&&"SHOW_SUPPORT","COPY_DATA",ye.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(gt=>!!gt);return m0({items:ot,context:{qualityDetailsSubMenuEnabled:ye.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Mt,trafficSavingEnabled:k(),toggleTrafficSaving:Re,currentQuality:A()||oc.VideoQuality.INVARIANT,isAutoQualityEnabled:I()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:et,onCopyDataClick:oi,onReportProblemClick:pi,onSaveTraceDataClick:st,toggleShowDebugInfo:Gt},additionalSettingsMenuItems:R()})}),qo=g(()=>f0({subMenuId:ne.current,context:{availablePlaybackRates:y(),selectPlaybackRate:Mt,trafficSavingEnabled:k(),toggleTrafficSaving:Re,currentQuality:A()||oc.VideoQuality.INVARIANT,isAutoQualityEnabled:I()||!1,isAutoQualityAvailable:G()||!1,availableQualities:q(),highQualityEnabled:U(),toggleHighQuality:tt,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Wt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:We,selectQuality:Me,selectSubtitle:Qt}}));var z=ex();let Pt;var ci=_(z);{var Lt=ot=>{var gt=J3();let $i;gt.__keydown=[Z3,Wt];var Ut=_(gt);{var Nn=Ri=>{var xt=X3();let ki;var tn=_(xt),on=_(tn,!0);h(tn);var Ni=P(tn,2);Ni.__click=ze,h(xt),O((no,Ko)=>{ki=te(xt,1,"item header svelte-17or3al",null,ki,no),he(on,Ko)},[()=>({mobile:d()}),()=>Jt("submenu_settings")]),b(Ri,xt)};L(Ut,Ri=>{d()&&Ri(Nn)})}var yi=P(Ut,2);let ho;Si(yi,21,()=>s(Vi),Ri=>Ri.id,(Ri,xt)=>{var ki=Fe(),tn=fe(ki);{var on=no=>{rv(no,{get isMobile(){return d()},get id(){return s(xt).id},get icon(){return s(xt).icon},get label(){return s(xt).label},get ariaLabel(){return s(xt).ariaLabel},get value(){return s(xt).value},get valueComponent(){return s(xt).valueComponent},onClick:()=>{Be(s(xt).children),B(ve,s(xt).id,!0)},get ref(){return j[s(xt).id]},set ref(Ko){j[s(xt).id]=Ko}})},Ni=(no,Ko)=>{{var _n=xi=>{av(xi,{get isMobile(){return d()},get id(){return s(xt).id},get onClick(){return s(xt).onClick},get icon(){return s(xt).icon},get label(){return s(xt).label},get ariaLabel(){return s(xt).ariaLabel},closeSettings:ze})},Bn=(xi,bn)=>{{var ko=Po=>{dv(Po,{get isMobile(){return d()},get id(){return s(xt).id},get onClick(){return s(xt).onClick},get icon(){return s(xt).icon},get label(){return s(xt).label},get ariaLabel(){return s(xt).ariaLabel},get enabled(){return s(xt).enabled},get tooltipText(){return s(xt).tooltipText},get maxTooltipWidth(){return s(xt).maxTooltipWidth}})};L(xi,Po=>{s(xt).type==="SWITCH"&&Po(ko)},bn)}};L(no,xi=>{s(xt).type==="CLICK"?xi(_n):xi(Bn,!1)},Ko)}};L(tn,no=>{s(xt).type==="OPEN_SUB_MENU"?no(on):no(Ni,!1)})}b(Ri,ki)}),h(yi),it(yi,Ri=>Q(Ri),()=>Q()),h(gt),O((Ri,xt,ki)=>{$i=te(gt,1,"settings-menu menu svelte-17or3al",null,$i,Ri),ho=te(yi,1,"items",null,ho,xt),at(yi,ki)},[()=>({desktop:!d(),mobile:d(),hidden:!!ne.current}),()=>({mobile:d()}),go]),Et("mouseenter",gt,ni),Et("mouseleave",gt,mi),b(ot,gt)};L(ci,ot=>{n()&&ot(Lt)})}var ct=P(ci,2);Si(ct,17,()=>s(qo),ot=>ot.id,(ot,gt)=>{let $i=g(()=>{var Ut;return(Ut=s(gt).minWidth)!=null?Ut:137});nv(ot,{get isMobile(){return d()},get playerControlsHeight(){return J()},get returnFromSubMenu(){return ne.popSubMenu},get id(){return s(gt).id},get title(){return s(gt).title},get closeSettingsMenu(){return Wt},openSubMenuList:Be,get items(){return s(gt).items},get minWidth(){return s($i)},get refMenuItems(){return j},get listRef(){return ce[s(gt).id]},set listRef(Ut){ce[s(gt).id]=Ut}})}),h(z),O(ot=>Pt=te(z,1,"settings-menu-container svelte-17or3al",null,Pt,ot),[()=>({mobile:d(),hidden:!n()})]),b(t,z),H(),o()}dt(["keydown","click"]);var ix=t=>t;function v0(t,{delay:e=0,duration:i=400,easing:o=ix}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:r=>`opacity: ${r*n}`}}var ox=M('<button class="button svelte-1sbbskl"> </button>'),nx={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 wv(t,e){W(t,nx);var i=ox();i.__click=function(...n){var r;(r=e.onClick)==null||r.apply(this,n)};var o=_(i,!0);h(i),O(()=>he(o,e.label)),b(t,i)}dt(["click"]);var rx=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),sx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
307
307
  /**
308
308
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
309
- */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function oc(t,e){D(e,!0),z(t,Y3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=zt(),{ui:{t:n}}=Ee(),r=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=G3(),d=_(l),a=_(d),p=_(a),f=_(p);ec(f,{get message(){return r}}),g(p);var v=P(p,2);{var u=w=>{let y=h(()=>n("slow_video_notification_button"));$v(w,{get label(){return s(y)},get onClick(){return e.onSelectAutoQuality}})};L(v,w=>{o||w(u)})}g(a);var $=P(a,2);ba($,{get onClick(){return e.onClose}}),g(d),g(l),Yp(3,d,()=>d0,()=>({duration:i})),b(t,l),H()}var nc=require("@vkontakte/videoplayer-shared/es2018"),Ra="annotation",Ou=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:r,hideAllControls:l}=i;e.setAttribute("slot",Ra),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),r&&this.runHidingControlsWhenIntersected(n,r),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 r=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=gs(r,this.shadowRootContainer);o.forEach($=>{let w=l==null?void 0:l[$],y=w?$e(w):null,S=d==null?void 0:d[$];y&&(S==null||S.set((0,nc.isIntersecting)(y,u)))})}));a.observe(r,{childList:!0,subtree:!0}),n.observer=a;let p=new nc.Subscription;o.forEach(v=>{l&&p.add(l[v].subscribe(u=>{let $=d==null?void 0:d[v];u&&u.isDisplayed?$==null||$.set((0,nc.isIntersecting)(u,gs(r,this.shadowRootContainer))):$==null||$.set(!1)}))}),n.subs=p}async findSlotElement(e,i,o){return new Promise(n=>{let r=null,l=new MutationObserver(()=>{if(r=e.querySelector(`#${i}`),r){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(r)}});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:r,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,r].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,$;($=(u=this.store)==null?void 0:u.ui.hiddenControls[v])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var j3=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),Z3={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;
309
+ */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function rc(t,e){D(e,!0),W(t,sx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=kt(),{ui:{t:n}}=Ee(),r=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=rx(),d=_(l),a=_(d),p=_(a),f=_(p);ic(f,{get message(){return r}}),h(p);var v=P(p,2);{var u=w=>{let y=g(()=>n("slow_video_notification_button"));wv(w,{get label(){return s(y)},get onClick(){return e.onSelectAutoQuality}})};L(v,w=>{o||w(u)})}h(a);var $=P(a,2);ya($,{get onClick(){return e.onClose}}),h(d),h(l),Zp(3,d,()=>v0,()=>({duration:i})),b(t,l),H()}var sc=require("@vkontakte/videoplayer-shared/es2018"),Ba="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:r,hideAllControls:l}=i;e.setAttribute("slot",Ba),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),r&&this.runHidingControlsWhenIntersected(n,r),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 r=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=_s(r,this.shadowRootContainer);o.forEach($=>{let w=l==null?void 0:l[$],y=w?$e(w):null,S=d==null?void 0:d[$];y&&(S==null||S.set((0,sc.isIntersecting)(y,u)))})}));a.observe(r,{childList:!0,subtree:!0}),n.observer=a;let p=new sc.Subscription;o.forEach(v=>{l&&p.add(l[v].subscribe(u=>{let $=d==null?void 0:d[v];u&&u.isDisplayed?$==null||$.set((0,sc.isIntersecting)(u,_s(r,this.shadowRootContainer))):$==null||$.set(!1)}))}),n.subs=p}async findSlotElement(e,i,o){return new Promise(n=>{let r=null,l=new MutationObserver(()=>{if(r=e.querySelector(`#${i}`),r){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(r)}});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:r,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,r].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,$;($=(u=this.store)==null?void 0:u.ui.hiddenControls[v])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var ax=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),lx={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
310
310
 
311
311
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
312
312
 
@@ -337,8 +337,8 @@ Try switching the\xA0quality to\xA0Auto.`},n1=G_;var vs=new Map;vs.set(ul.Interf
337
337
  opacity: 0;
338
338
  scale: 0;
339
339
  }
340
- }`};function yv(t,e){D(e,!0),z(t,Z3);let[i,o]=De(),n=()=>C(l,"$isPlaying$",i),r=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ee(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=zt(),u=0,$=j(null),w=j(!1);We(()=>{B($,n()?Or:_s,!0)}),We(()=>{B($,r()?Ds:null,!0)}),We(()=>{if(p)return u=window.setTimeout(()=>{u=0,r()&&s($)===Ds&&(r()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B($,null)},s($)!==Ds?f:v),()=>{u&&(window.clearTimeout(u),u=0)}}),We(()=>{n()&&!s(w)&&(B(w,!0),B($,null))});var y=Ue(),S=fe(y);{var T=k=>{var A=Ue(),I=fe(A);ra(I,()=>s($),E=>{var V=j3(),K=_(V),W=_(K);let U=h(()=>r()==="prev");wi(W,()=>s($),(Y,ne)=>{ne(Y,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return s(U)}})}),g(K),g(V),O(()=>at(K,`animation-duration: ${s($)!==Ds?f:v}ms`)),b(E,V)}),b(k,A)};L(S,k=>{s($)&&p&&k(T)})}b(t,y),H(),o()}var X3=M('<div><div data-testid="video-container"></div></div>'),J3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
- .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Na(t,e){D(e,!0),z(t,J3);let[i,o]=De(),n=()=>C(f,"$rotateAlpha",i),r=()=>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:$}=zt(),w=h(()=>a()&&n()%180?r().height/r().width:1);var y=X3();let S;y.__contextmenu=function(...A){var I;(I=e.onContextMenu)==null||I.apply(this,A)},y.__mousedown=function(...A){var I;(I=e.onMouseDown)==null||I.apply(this,A)},y.__mouseup=function(...A){var I;(I=e.onMouseUp)==null||I.apply(this,A)},y.__click=function(...A){var I;(I=e.onClick)==null||I.apply(this,A)},y.__dblclick=function(...A){var I;(I=e.onDblClick)==null||I.apply(this,A)};var T=_(y);let k;nt(T,A=>a(A),()=>a()),g(y),O((A,I)=>{S=J(y,1,"video-wrapper svelte-1czns9r",null,S,A),k=J(T,1,"video-container svelte-1czns9r",null,k,I),at(T,`transform: rotate(${n()}deg) scale(${s(w)})`),Ne(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,y),H(),o()}dt(["contextmenu","mousedown","mouseup","click","dblclick"]);var ex=(t,e,i,o,n,r)=>{if(t.stopPropagation(),e()||o()){r();return}},tx=M("<div><!></div>"),ix=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),ox=M("<div><!></div>"),nx=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),rx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),sx=M("<!> <!> <!>",1),ax=M('<div class="blocked svelte-jtgjmv"></div>'),lx=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),dx={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 wv(t,e){D(e,!0),z(t,dx);let[i,o]=De(),n=()=>C(hr,"$notificationsToShow$",i),r=()=>C(ii,"$playerPhase",i),l=()=>C(Oo,"$isLoaderVisible",i),d=()=>C(fi,"$adPlaybackState",i),a=()=>C(ft,"$crashed",i),p=()=>C(Zo,"$isInteractiveTime$",i),f=()=>C(Xt,"$settingsMenuVisible",i),v=()=>C(vn,"$isInteractiveExpectation$",i),u=()=>C(mo,"$controlsVisible",i),$=()=>C(to,"$touched",i),w=()=>C(Fr,"$graphIsOpened$",i),y=()=>C(ui,"$isFullscreen",i),S=()=>C(Rn,"$autoplayNextEnabled$",i),T=()=>C(Gt,"$postrollPassed",i),k=()=>C(q,"$isEnded$",i),A=()=>C(Hn,"$cursorInside",i),I=()=>C(tr,"$isControlsAvailable",i),E=()=>C(Nn,"$fakeIsPlaying$",i),V=()=>C(Wt,"$bottomNoSmooth",i),K=()=>C(Eo,"$interactiveTimeIndicator",i),W=()=>C(vo,"$playerSize",i),U=()=>C(Li,"$is3DVideo",i),Y=()=>C(_t,"$contextMenuVisible$",i),ne=()=>C(ni,"$playbackState$",i),G=()=>C(ki,"$hotKeyMapData",i),ce=()=>C(eo,"$scrubbingInProgress",i),le=()=>C(xt,"$volumeChangingInProgress",i),we=()=>C(Dt,"$chromecastConnected$",i),Ve=()=>C(zi,"$controlsTimeoutActive",i),ve=()=>C(Si,"$settingsMenuOpenedByKeyboard",i),ae=()=>C(no,"$contextMenuOpenedByKeyboard$",i),Le=()=>C(Cr,"$contextMenuOpenedByHotKey$",i),te=()=>C(zo,"$contextMenuButtonRef$",i),N=()=>C(Qr,"$contextMenuLastActiveElem$",i),Be=()=>C(To,"$isFullscreenOpenedByKeyboard",i),ye=()=>C(et,"$language$",i),ge=()=>C(yt,"$icon3DVideoVisible",i),de=()=>C(ci,"$chromecastDeviceName$",i),ue=()=>C(Jn,"$currentSubtitle$",i),xe=()=>C(Ei,"$currentSubtitleCaptions$",i),Z=()=>C(lt,"$position$",i),qe=()=>C(ei,"$duration$",i),Je=()=>C(vt,"$isLive$",i),ke=()=>C(rt,"$isPlaying$",i),X=()=>C(go,"$contextMenuPosition$",i),Te=()=>C(Xo,"$showHotKeyMap",i),Ke=()=>C(Ti,"$debugPanelVisible",i),st=()=>C(er,"$userActionsDisabled$",i),pt=m(e,"videoContainer",15),bt=m(e,"adsSlotId",3,void 0),Ct=m(e,"adsParams",3,void 0),Qe=m(e,"adsPreviewParam",3,void 0),Qt=m(e,"adsAutoplayParam",3,void 0),Zt=m(e,"duration",3,void 0),Yt=m(e,"logoTargetUrl",3,""),Ot=m(e,"showNextPrevButtons",3,!1),ee=m(e,"nextButtonActive",3,!1),Lt=m(e,"prevButtonActive",3,!1),me=m(e,"endScreenVideoTitle",3,void 0),_e=m(e,"endScreenVideoThumb",3,void 0),se=m(e,"isOneVideoPlaylist",3,!1),Oe=m(e,"shadowRootContainer",3,void 0),ze=m(e,"outerContainerRef",3,void 0),Ae=m(e,"playerStarted",3,!1),je=m(e,"fullScreenTarget",3,void 0),Re=m(e,"showMiniTimer",3,!1),it=m(e,"showEndScreen",3,!0),At=m(e,"keyboardControls",15),Vt=e.store.getLogger().createComponentLog("Root component"),et=e.store.interfaceLanguage$,ni=e.store.state.playbackState$,fi=e.store.ads.playbackState,lt=e.store.state.positionWithScrubbing$,ei=e.store.state.duration$,ii=e.store.playerPhase,ui=e.store.ui.isFullscreen,To=e.store.ui.isFullscreenOpenedByKeyboard,mo=e.store.ui.controlsVisible,Xt=e.store.ui.settingsMenu.visible$,Si=e.store.ui.settingsMenu.openedByBtnKeyboard$,eo=e.store.ui.scrubbingInProgress,xt=e.store.ui.volumeChangingInProgress,_t=e.store.ui.contextMenu.visible$,Ti=e.store.ui.debugPanelVisible,Oo=e.store.state.isLoaderVisible,q=e.store.state.isEnded$,Dt=e.store.state.chromecastConnected$,ci=e.store.state.chromecastDeviceName$,Gt=e.store.ads.postrollPassed,vt=e.store.state.isLive$,rt=e.store.state.isPlaying$,ft=e.store.state.crashed$,hi=e.store.webApi.annotationsApi,Ht=e.store.webApi.pictureInPictureApi,Jn=e.store.state.currentSubtitle$,Ei=e.store.state.currentSubtitleCaptions$,vo=e.store.ui.playerSize,Li=e.store.ui.is3DVideo,yt=e.store.ui.icon3DVideoVisible,Vi=e.store.state.isInteractive,Zo=e.store.state.isInteractiveTime$,vn=e.store.state.isInteractiveExpectation$,Ii=e.store.state.hasInteractiveBranches,to=e.store.ui.touched,ki=e.store.ui.modals.hotKeyMap.data,Xo=e.store.ui.modals.hotKeyMap.show,Vn=e.store.ui.overlayContainer$,Eo=e.store.ui.controls.interactiveTimeIndicator,Do=e.store.state.showInteractiveTimeIndicator,go=e.store.ui.contextMenu.position$,ho=e.store.actions.internal.setQuality,Jo=e.store.actions.internal.closeSettingsMenu,Rn=e.store.ui.autoplayNextEnabled$,er=e.store.ui.userActionsDisabled,tr=e.store.ui.isControlsAvailable,ir=e.store.ui.videoTitleInfo,Hr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Nn,notifications$:as,graphIsOpened$:Fr}=fo(),Ui=j(void 0),gn=j(void 0),en=j(void 0),hn=j(void 0),_o,_n,Bn;ki.set(c1());let{closeNotification:Ur,notificationsToShow$:hr}=as,zr=h(()=>!!n().slow_video),bn=()=>Ur("slow_video"),On=h(()=>(r()==="video"&&l()||r()==="ads"&&d()==="inactive")&&!a()),ot=j(void 0),Wt=re(!1),Dn,zi=re(!1),or=re(),Hn=re(!1),$n=j(!1),Wi=j(!1),tn=j(!1),Ho=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),yn=h(()=>p()&&!f()&&!(s($n)||s(Wi))&&!(s(tn)&&!v())),_r=!0,br=h(()=>e.uiConfig.features.thumbTimer&&Re()&&r()==="video"&&!u()&&!a()&&!Vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),xn=h(()=>r()==="video"&&!w()&&y()),Wr=j(!1),wn=h(()=>(it()||e.showAutoplayNext&&S())&&!!me()&&!!_e()&&(e.showAds&&T()||!e.showAds)&&k()&&!a()&&!s(Wr)),qr=h(()=>A()&&!(u()||s(wn))&&!p()&&I()),nr=j(!1),$r=h(()=>E()!==null),{toggle:on}=Nn,qt=!1,Io=null;Ht==null||Ht.setContext(zl());let rr=()=>{e.autoplay&&!Vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&$i(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:rr});let Fn=()=>{window.clearTimeout(_o),zi.set(!1)},sr=()=>{window.clearTimeout(_n),or.set(null)},$i=pe=>{Fn(),zi.set(!0),_o=window.setTimeout(()=>zi.set(!1),pe);let wt=pe-100;Dn=window.setTimeout(()=>{V()&&Wt.set(!1)},wt>0?wt:pe)},yr=(pe,wt)=>{sr(),or.set(wt),_n=window.setTimeout(()=>or.set(null),pe)},Et=Li.subscribe(pe=>{yt.set(pe),pe&&(window.clearTimeout(Bn),Bn=window.setTimeout(()=>yt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ai=async()=>{var wt,ri,Ri,yi;let pe=As();if(pe){let Fe=_d(),It=Cn();pe=Fe===It||Fe===Oe()}if(pe){$i(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ht==null?void 0:Ht.exit())}catch(Fe){Vt({message:String(Fe)})}}ui.set(pe),e.store.getAdmanWrapper().setFullscreen(pe),y()?(ri=(wt=e.store.callbacks)==null?void 0:wt.onFullscreenEnter)==null||ri.call(wt):(yi=(Ri=e.store.callbacks)==null?void 0:Ri.onFullscreenExit)==null||yi.call(Ri)},nn=pe=>{let{width:wt,height:ri}=pe.target;vo.set({width:wt,height:ri})},rn=()=>{let{width:pe,height:wt}=s(Ui).getBoundingClientRect();vo.set({width:pe,height:wt})};Bt(()=>{var wt;return uu(ai),e.uiConfig.features.annotationsInside&&(hi==null||hi.init(s(Ui))),va(Ht)&&(Ht==null||Ht.assignPlayerContainer(s(Ui)),Ht==null||Ht.setExternalEventHandlers({resize:nn,leavepictureinpicture:rn})),e.interactiveContainer&&((wt=pt().parentElement)==null||wt.insertBefore(e.interactiveContainer,pt().nextSibling)),()=>{window.clearTimeout(_o),window.clearTimeout(Dn),window.clearTimeout(_n),window.clearTimeout(Bn),Et(),Ht==null||Ht.dispose().catch(ri=>{Vt({message:String(ri)})}),pu(ai)}});let Cn=()=>{let pe=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ze()?s(Ui):ze(),wt=pe.getRootNode(),ri=wt instanceof ShadowRoot?wt.host:wt,Ri=je()instanceof HTMLElement&&je().contains(ri);return e.uiConfig.allowChangingFullscreenTarget&&je()&&Ri?je():pe},Fo=()=>{_t.set(!1)},po=()=>{Jo(),Fo()},io=async()=>{Fo(),As()?(await cu(document),Vt({message:"exit fullscreen"})):(Vt({message:"request fullscreen"}),await du(Cn()))},Un=pe=>{w()||(pe.preventDefault(),_t.set(!0),go.set({left:pe.clientX,top:pe.clientY}))};function xr(){Hn.set(!0),Vi||$i(e.uiConfig.controls.hideTimeoutCursor)}function wr(){Vi||(Wt.set(!0),$i(e.uiConfig.controls.hideTimeoutCursor))}function Kr(){Hn.set(!1),B(Wi,!1),B($n,!1),qt=!1,e.store.actions.internal.releaseCamera(),$i(e.uiConfig.controls.hideTimeout)}function tt(pe){return pe?pe.offsetTop+tt(pe.offsetParent):0}function Mt(pe){return pe?pe.offsetLeft+Mt(pe.offsetParent):0}function _i(pe){if(K()&&Do){let wt=pe.currentTarget,ri=tt(wt),Ri=Mt(wt),yi=pe.pageX-Ri,Fe=pe.pageY-ri,{left:It,bottom:bi,right:Wo}=K(),Ni=Wo-It;return yi>=It-Ni&&Fe<=bi+Ni}}function ko(pe){if(s(Ui)){let wt=tt(pe.currentTarget),ri=W().height,Ri=pe.pageY-wt;if(_i(pe)){B(Wi,!1);return}Ri<40?B(Wi,!0):Ri>ri-40?B($n,!0):(B(Wi,!1),f()||B($n,!1))}}function oo(pe){ko(pe),s(yn)||$i(e.uiConfig.controls.hideTimeoutCursor),U()&&qt&&Io&&e.store.actions.internal.moveCameraFocusPX(Io.clientX-pe.clientX,Io.clientY-pe.clientY,pe.timeStamp-Io.timeStamp),Io=pe}let bo=pe=>{pe.preventDefault(),pe.button===0&&(qt=!0,e.store.actions.internal.holdCamera()),$i(e.uiConfig.controls.hideTimeoutCursor)},$o=pe=>{pe.preventDefault(),pe.button===0&&(Io=pe,qt=!1,e.store.actions.internal.releaseCamera()),$i(e.uiConfig.controls.hideTimeoutCursor)},sn=pe=>{pe.preventDefault(),_r&&(Vt({message:"double click on video"}),io(),$i(e.uiConfig.controls.hideTimeoutCursor))},yo=pe=>{var wt;if(pe.preventDefault(),Y()||f()){po();return}if(!(k()&&!Ii)){if(s($r))return on();if((wt=At())==null||wt.focus(),!Ae()){e.firstStart(),$i(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ne()!==xv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),$i(e.uiConfig.controls.hideTimeoutCursor)}},qi=pe=>{po(),to.set(!0),$i(e.uiConfig.controls.hideTimeout),pe&&yr(e.uiConfig.controls.hideHotKeyHelpers,pe)},Ki=()=>{var pe,wt;po(),(pe=e.store.callbacks)!=null&&pe.onOpenHotKeyMap?(wt=e.store.callbacks)==null||wt.onOpenHotKeyMap(G()):Xo.update(ri=>!ri)},Uo=()=>{to.set(!0)},no=e.store.ui.contextMenu.openedByBtnKeyboard$,zo=e.store.ui.contextMenu.btnRef$,Sn=j(void 0),Cr=e.store.ui.contextMenu.openedByHotKey$,Qr=e.store.ui.contextMenu.lastActiveElem$;We(()=>{Vn.set(s(ot))}),We(()=>{B(tn,s(Ho)&&ne()!==xv.PlaybackState.PLAYING,!0),s(Ho)||Tt(()=>B(Ho,!0))}),We(()=>{mo.set((s(tn)||k()||f()||ce()||le()||we()||Ve())&&!s(yn)&&(r()==="video"||r()==="ads")&&!a()&&I())}),We(()=>{!ce()&&s(nr)&&!p()&&$i(e.uiConfig.controls.hideTimeoutCursor),Tt(()=>B(nr,ce(),!0))}),We(()=>{s(hn),f(),ve(),Tt(()=>Cd(s(hn),f(),ve()))}),We(()=>{s(Sn),Y(),ae(),Le(),Tt(()=>{let pe=ae()||Le();Cd(s(Sn),Y(),pe)})}),We(()=>{let pe=te();pe&&(Y(),Tt(()=>gl(pe,Y(),no)))}),We(()=>{let pe=N();pe&&(Y(),Tt(()=>v1(pe,Y(),Cr)))}),We(()=>{var pe;!Be()&&y()&&(Tt(()=>To.set(!1)),(pe=At())==null||pe.focus())}),We(()=>{w()&&po()});let Gr=F("video360"),ar=j(void 0),Sr=pe=>{ir.set(Br(Hr(),{title:s(ar)},"title",pe))};var Tn=lx();St("blur",Js,po);var Qi=fe(Tn);Qi.__mousemove=oo;var zn=_(Qi);let lr=h(()=>r()==="ads"),Tr=h(()=>s($r)?on:void 0);nt(Bf(zn,{toggleFullscreen:io,hideContextMenu:po,showHotKeyHelpers:qi,showKeyMap:Ki,get isAds(){return s(lr)},get fakePlayButtonHandler(){return s(Tr)},get nextButtonActive(){return ee()},get prevButtonActive(){return Lt()},children:(pe,wt)=>{var ri=sx(),Ri=fe(ri);Na(Ri,{get hideCursor(){return s(qr)},onClick:yo,onContextMenu:Un,onMouseDown:bo,onMouseUp:$o,onDblClick:sn,get videoContainer(){return pt()},set videoContainer(It){pt(It)}});var yi=P(Ri,2);sa(yi,()=>"slot",!1,(It,bi)=>{Ie(It,()=>({name:Ra}))});var Fe=P(yi,2);ra(Fe,ye,It=>{var bi=rx(),Wo=fe(bi);let Ni=h(()=>r()!=="thumb"||a()||Vi&&e.autoplay);Ma(Wo,{get hidden(){return s(Ni)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Wn=P(Wo,2);yv(Wn,{});var Er=P(Wn,2);{var qo=Ge=>{let si=h(()=>{var ao;return(ao=e.live)==null?void 0:ao.startTime});Xd(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(si)}})};L(Er,Ge=>{r()==="LiveWaitingStart"&&Ge(qo)})}var Gi=P(Er,2);{var Bi=Ge=>{La(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Gi,Ge=>{r()==="LiveWaitingRecover"&&Ge(Bi)})}var an=P(Gi,2);{var cr=Ge=>{La(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(an,Ge=>{r()==="LiveWaitingRecord"&&Ge(cr)})}var ur=P(an,2);{var Po=Ge=>{var si=tx();let ao;var qs=_(si);bd(qs,{get adsSlotId(){return bt()},get adsParams(){return Ct()},get adsPreviewParam(){return Qe()},get adsAutoplayParam(){return Qt()},get duration(){return Zt()}}),g(si),O(Ko=>ao=J(si,1,"ads-container svelte-jtgjmv",null,ao,Ko),[()=>({hidden:r()!=="ads"})]),b(Ge,si)};L(ur,Ge=>{e.showAds&&Ae()&&Ge(Po)})}var Us=P(ur,2);{var Da=Ge=>{let si=h(()=>!it()&&e.showAutoplayNext&&S());Vf(Ge,{get title(){return me()},get thumb(){return _e()},get isHide(){return s(si)},clickCloseIcon:()=>B(Wr,!0)})};L(Us,Ge=>{s(wn)&&me()&&_e()&&Ge(Da)})}var ct=P(Us,2);{var $t=Ge=>{let si=h(()=>!u());Gm(Ge,{get title(){return e.title},get isHidden(){return s(si)},onVisibilityChanged:Sr,get ref(){return s(ar)},set ref(ao){B(ar,ao,!0)}})};L(ct,Ge=>{s(xn)&&Ge($t)})}var ro=P(ct,2);{var ln=Ge=>{let si=h(()=>r()==="video"&&u());jd(Ge,{get isShifted(){return s(si)}})};L(ro,Ge=>{U()&&Ge(ln)})}var so=P(ro,2);{var li=Ge=>{var si=ix(),ao=_(si);hd(ao,{get"aria-label"(){return Gr}}),g(si),b(Ge,si)};L(so,Ge=>{ge()&&Ge(li)})}var Pi=P(so,2);{var zs=Ge=>{Zd(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return de()}})};L(Pi,Ge=>{we()&&Ge(zs)})}var Ha=P(Pi,2);{var ep=Ge=>{Pa(Ge,{get shifted(){return u()},get captions(){return xe()},get position(){return Z()},get playerSize(){return W()}})};L(Ha,Ge=>{ue().value!=="off"&&Ge(ep)})}var vc=P(Ha,2);{var tp=Ge=>{var si=ox();si.__contextmenu=Un,si.__click=[ex,Y,_t,f,Xt,po];var ao=_(si);Aa(ao,{}),g(si),b(Ge,si)};L(vc,Ge=>{a()&&Ge(tp)})}var gc=P(vc,2);{var ip=Ge=>{let si=h(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"),ao=h(()=>r()==="ads"),qs=h(()=>e.canRewindLive&&qe()!==0);Yd(Ge,{get bottomHidden(){return s(si)},get bottomNoSmooth(){return V()},get showControls(){return u()},get isAds(){return s(ao)},get canRewindLive(){return s(qs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Yt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ot()},get nextButtonActive(){return ee()},get prevButtonActive(){return Lt()},get isOneVideoPlaylist(){return se()},customFullscreenSupported:_r,toggleFullscreen:io,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(gn)},set playerControlsWrapperRef(Ko){B(gn,Ko,!0)},get playerControlsRef(){return s(en)},set playerControlsRef(Ko){B(en,Ko,!0)}})};L(gc,Ge=>{Ae()&&Ge(ip)})}var hc=P(gc,2);{var op=Ge=>{var si=nx(),ao=_(si);let qs=h(()=>{var Ko;return(Ko=s(en))==null?void 0:Ko.clientHeight});ic(ao,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(qs)},returnFocus:()=>{var Ko;return(Ko=At())==null?void 0:Ko.focus()},get ref(){return s(hn)},set ref(Ko){B(hn,Ko,!0)}}),g(si),b(Ge,si)};L(hc,Ge=>{!we()&&r()!=="ads"&&Ge(op)})}var Ws=P(hc,2);let np=h(()=>!s(br));xd(Ws,{get isLive(){return Je()},get isHidden(){return s(np)},get isPlaying(){return ke()},get position(){return Z()},get duration(){return qe()}});var Nl=P(Ws,2);Wm(Nl,{get data(){return or}});var Bl=P(Nl,2);Mf(Bl,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=At())==null?void 0:Ge.focus()},get visible(){return Y()},get playerContainerRef(){return s(Ui)},get controlsContainerRef(){return s(gn)},get position(){return X()},get menuElementRef(){return s(Sn)},set menuElementRef(Ge){B(Sn,Ge,!0)}});var _c=P(Bl,2);{var bc=Ge=>{oc(Ge,{onClose:bn,onSelectAutoQuality:()=>{ho("auto"),bn()}})};L(_c,Ge=>{s(zr)&&Ge(bc)})}var Fa=P(_c,2);{var $c=Ge=>{$a(Ge,{})};L(Fa,Ge=>{s(On)&&Ge($c)})}var yc=P(Fa,2);{var xc=Ge=>{Hf(Ge,{})};L(yc,Ge=>{Te()&&Ge(xc)})}var rp=P(yc,2);{var sp=Ge=>{Td(Ge,{})};L(rp,Ge=>{Ke()&&Ge(sp)})}b(It,bi)}),b(pe,ri)},$$slots:{default:!0}}),pe=>At(pe),()=>At());var dr=P(zn,2);nt(dr,pe=>B(ot,pe),()=>s(ot)),g(Qi),nt(Qi,pe=>B(Ui,pe),()=>s(Ui));var Ze=P(Qi,2);{var Jt=pe=>{var wt=ax();b(pe,wt)};L(Ze,pe=>{st()&&pe(Jt)})}St("mouseenter",Qi,xr),St("mouseleave",Qi,Kr),St("click",Qi,Uo,!0),St("focusin",Qi,wr,!0),b(t,Tn),H(),o()}dt(["mousemove","contextmenu","click"]);var Fs=require("@vkontakte/videoplayer-core/es2018"),g0=require("@vkontakte/videoplayer-shared/es2018");var cx=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),ux=M("<div><!></div>"),px={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
340
+ }`};function Cv(t,e){D(e,!0),W(t,lx);let[i,o]=Oe(),n=()=>C(l,"$isPlaying$",i),r=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ee(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=kt(),u=0,$=Y(null),w=Y(!1);Ue(()=>{B($,n()?Rr:$s,!0)}),Ue(()=>{B($,r()?Us:null,!0)}),Ue(()=>{if(p)return u=window.setTimeout(()=>{u=0,r()&&s($)===Us&&(r()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B($,null)},s($)!==Us?f:v),()=>{u&&(window.clearTimeout(u),u=0)}}),Ue(()=>{n()&&!s(w)&&(B(w,!0),B($,null))});var y=Fe(),S=fe(y);{var T=k=>{var A=Fe(),I=fe(A);aa(I,()=>s($),E=>{var R=ax(),G=_(R),q=_(G);let U=g(()=>r()==="prev");Ti(q,()=>s($),(Q,J)=>{J(Q,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return s(U)}})}),h(G),h(R),O(()=>at(G,`animation-duration: ${s($)!==Us?f:v}ms`)),b(E,R)}),b(k,A)};L(S,k=>{s($)&&p&&k(T)})}b(t,y),H(),o()}var dx=M('<div><div data-testid="video-container"></div></div>'),cx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
+ .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Oa(t,e){D(e,!0),W(t,cx);let[i,o]=Oe(),n=()=>C(f,"$rotateAlpha",i),r=()=>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:$}=kt(),w=g(()=>a()&&n()%180?r().height/r().width:1);var y=dx();let S;y.__contextmenu=function(...A){var I;(I=e.onContextMenu)==null||I.apply(this,A)},y.__mousedown=function(...A){var I;(I=e.onMouseDown)==null||I.apply(this,A)},y.__mouseup=function(...A){var I;(I=e.onMouseUp)==null||I.apply(this,A)},y.__click=function(...A){var I;(I=e.onClick)==null||I.apply(this,A)},y.__dblclick=function(...A){var I;(I=e.onDblClick)==null||I.apply(this,A)};var T=_(y);let k;it(T,A=>a(A),()=>a()),h(y),O((A,I)=>{S=te(y,1,"video-wrapper svelte-1czns9r",null,S,A),k=te(T,1,"video-container svelte-1czns9r",null,k,I),at(T,`transform: rotate(${n()}deg) scale(${s(w)})`),De(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,y),H(),o()}dt(["contextmenu","mousedown","mouseup","click","dblclick"]);var ux=(t,e,i,o,n,r)=>{if(t.stopPropagation(),e()||o()){r();return}},px=M("<div><!></div>"),fx=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),mx=M("<div><!></div>"),vx=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),gx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),hx=M("<!> <!> <!>",1),_x=M('<div class="blocked svelte-jtgjmv"></div>'),bx=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),$x={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Tv(t,e){D(e,!0),W(t,$x);let[i,o]=Oe(),n=()=>C(sr,"$notificationsToShow$",i),r=()=>C(ni,"$playerPhase",i),l=()=>C(qo,"$isLoaderVisible",i),d=()=>C(oi,"$adPlaybackState",i),a=()=>C(gt,"$crashed",i),p=()=>C(tn,"$isInteractiveTime$",i),f=()=>C(Xt,"$settingsMenuVisible",i),v=()=>C(on,"$isInteractiveExpectation$",i),u=()=>C(io,"$controlsVisible",i),$=()=>C(no,"$touched",i),w=()=>C(Or,"$graphIsOpened$",i),y=()=>C(mi,"$isFullscreen",i),S=()=>C(nr,"$autoplayNextEnabled$",i),T=()=>C(Lt,"$postrollPassed",i),k=()=>C(z,"$isEnded$",i),A=()=>C(nn,"$cursorInside",i),I=()=>C(Dn,"$isControlsAvailable",i),E=()=>C(Hn,"$fakeIsPlaying$",i),R=()=>C(ti,"$bottomNoSmooth",i),G=()=>C(xi,"$interactiveTimeIndicator",i),q=()=>C(ho,"$playerSize",i),U=()=>C(Ri,"$is3DVideo",i),Q=()=>C(bt,"$contextMenuVisible$",i),J=()=>C(pi,"$playbackState$",i),j=()=>C(Ko,"$hotKeyMapData",i),ce=()=>C(oo,"$scrubbingInProgress",i),le=()=>C(yt,"$volumeChangingInProgress",i),ye=()=>C(Pt,"$chromecastConnected$",i),ke=()=>C(ri,"$controlsTimeoutActive",i),me=()=>C(Ii,"$settingsMenuOpenedByKeyboard",i),ae=()=>C(xo,"$contextMenuOpenedByKeyboard$",i),Ve=()=>C(cn,"$contextMenuOpenedByHotKey$",i),re=()=>C(En,"$contextMenuButtonRef$",i),N=()=>C(yr,"$contextMenuLastActiveElem$",i),He=()=>C(go,"$isFullscreenOpenedByKeyboard",i),_e=()=>C(et,"$language$",i),ge=()=>C(xt,"$icon3DVideoVisible",i),de=()=>C(ci,"$chromecastDeviceName$",i),ue=()=>C(Nn,"$currentSubtitle$",i),xe=()=>C(yi,"$currentSubtitleCaptions$",i),Z=()=>C(st,"$position$",i),qe=()=>C(Gt,"$duration$",i),Je=()=>C(ct,"$isLive$",i),Pe=()=>C(ot,"$isPlaying$",i),X=()=>C(ko,"$contextMenuPosition$",i),Te=()=>C(_n,"$showHotKeyMap",i),Ke=()=>C(Vi,"$debugPanelVisible",i),nt=()=>C(On,"$userActionsDisabled$",i),mt=m(e,"videoContainer",15),vt=m(e,"adsSlotId",3,void 0),Tt=m(e,"adsParams",3,void 0),Qe=m(e,"adsPreviewParam",3,void 0),zt=m(e,"adsAutoplayParam",3,void 0),Jt=m(e,"duration",3,void 0),Zt=m(e,"logoTargetUrl",3,""),Wt=m(e,"showNextPrevButtons",3,!1),ie=m(e,"nextButtonActive",3,!1),Nt=m(e,"prevButtonActive",3,!1),we=m(e,"endScreenVideoTitle",3,void 0),ve=m(e,"endScreenVideoThumb",3,void 0),ne=m(e,"isOneVideoPlaylist",3,!1),Be=m(e,"shadowRootContainer",3,void 0),ze=m(e,"outerContainerRef",3,void 0),Me=m(e,"playerStarted",3,!1),We=m(e,"fullScreenTarget",3,void 0),Re=m(e,"showMiniTimer",3,!1),tt=m(e,"showEndScreen",3,!0),Mt=m(e,"keyboardControls",15),Qt=e.store.getLogger().createComponentLog("Root component"),et=e.store.interfaceLanguage$,pi=e.store.state.playbackState$,oi=e.store.ads.playbackState,st=e.store.state.positionWithScrubbing$,Gt=e.store.state.duration$,ni=e.store.playerPhase,mi=e.store.ui.isFullscreen,go=e.store.ui.isFullscreenOpenedByKeyboard,io=e.store.ui.controlsVisible,Xt=e.store.ui.settingsMenu.visible$,Ii=e.store.ui.settingsMenu.openedByBtnKeyboard$,oo=e.store.ui.scrubbingInProgress,yt=e.store.ui.volumeChangingInProgress,bt=e.store.ui.contextMenu.visible$,Vi=e.store.ui.debugPanelVisible,qo=e.store.state.isLoaderVisible,z=e.store.state.isEnded$,Pt=e.store.state.chromecastConnected$,ci=e.store.state.chromecastDeviceName$,Lt=e.store.ads.postrollPassed,ct=e.store.state.isLive$,ot=e.store.state.isPlaying$,gt=e.store.state.crashed$,$i=e.store.webApi.annotationsApi,Ut=e.store.webApi.pictureInPictureApi,Nn=e.store.state.currentSubtitle$,yi=e.store.state.currentSubtitleCaptions$,ho=e.store.ui.playerSize,Ri=e.store.ui.is3DVideo,xt=e.store.ui.icon3DVideoVisible,ki=e.store.state.isInteractive,tn=e.store.state.isInteractiveTime$,on=e.store.state.isInteractiveExpectation$,Ni=e.store.state.hasInteractiveBranches,no=e.store.ui.touched,Ko=e.store.ui.modals.hotKeyMap.data,_n=e.store.ui.modals.hotKeyMap.show,Bn=e.store.ui.overlayContainer$,xi=e.store.ui.controls.interactiveTimeIndicator,bn=e.store.state.showInteractiveTimeIndicator,ko=e.store.ui.contextMenu.position$,Po=e.store.actions.internal.setQuality,_o=e.store.actions.internal.closeSettingsMenu,nr=e.store.ui.autoplayNextEnabled$,On=e.store.ui.userActionsDisabled,Dn=e.store.ui.isControlsAvailable,$n=e.store.ui.videoTitleInfo,Br=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Hn,notifications$:ss,graphIsOpened$:Or}=vo(),Wi=Y(void 0),Fn=Y(void 0),yn=Y(void 0),Un=Y(void 0),Qo,zn,xn;Ko.set(g1());let{closeNotification:rr,notificationsToShow$:sr}=ss,Dr=g(()=>!!n().slow_video),Wn=()=>rr("slow_video"),ar=g(()=>(r()==="video"&&l()||r()==="ads"&&d()==="inactive")&&!a()),ut=Y(void 0),ti=oe(!1),qn,ri=oe(!1),ro=oe(),nn=oe(!1),wn=Y(!1),Ao=Y(!1),rn=Y(!1),Mo=Y(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),bo=g(()=>p()&&!f()&&!(s(wn)||s(Ao))&&!(s(rn)&&!v())),vr=!0,gr=g(()=>e.uiConfig.features.thumbTimer&&Re()&&r()==="video"&&!u()&&!a()&&!ki&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Kn=g(()=>r()==="video"&&!w()&&y()),Hr=Y(!1),Cn=g(()=>(tt()||e.showAutoplayNext&&S())&&!!we()&&!!ve()&&(e.showAds&&T()||!e.showAds)&&k()&&!a()&&!s(Hr)),hr=g(()=>A()&&!(u()||s(Cn))&&!p()&&I()),lr=Y(!1),_r=g(()=>E()!==null),{toggle:sn}=Hn,qt=!1,Lo=null;Ut==null||Ut.setContext(ql());let Fr=()=>{e.autoplay&&!ki&&e.uiConfig.controls.showOnStartupAtAutoplay&&bi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Fr});let br=()=>{window.clearTimeout(Qo),ri.set(!1)},as=()=>{window.clearTimeout(zn),ro.set(null)},bi=pe=>{br(),ri.set(!0),Qo=window.setTimeout(()=>ri.set(!1),pe);let Ct=pe-100;qn=window.setTimeout(()=>{R()&&ti.set(!1)},Ct>0?Ct:pe)},dr=(pe,Ct)=>{as(),ro.set(Ct),zn=window.setTimeout(()=>ro.set(null),pe)},wt=Ri.subscribe(pe=>{xt.set(pe),pe&&(window.clearTimeout(xn),xn=window.setTimeout(()=>xt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ai=async()=>{var Ct,si,Bi,wi;let pe=Vs();if(pe){let Oi=$d(),Ze=Sn();pe=Oi===Ze||Oi===Be()}if(pe){bi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ut==null?void 0:Ut.exit())}catch(Oi){Qt({message:String(Oi)})}}mi.set(pe),e.store.getAdmanWrapper().setFullscreen(pe),y()?(si=(Ct=e.store.callbacks)==null?void 0:Ct.onFullscreenEnter)==null||si.call(Ct):(wi=(Bi=e.store.callbacks)==null?void 0:Bi.onFullscreenExit)==null||wi.call(Bi)},Go=pe=>{let{width:Ct,height:si}=pe.target;ho.set({width:Ct,height:si})},an=()=>{let{width:pe,height:Ct}=s(Wi).getBoundingClientRect();ho.set({width:pe,height:Ct})};Ot(()=>{var Ct;return gu(ai),e.uiConfig.features.annotationsInside&&($i==null||$i.init(s(Wi))),ha(Ut)&&(Ut==null||Ut.assignPlayerContainer(s(Wi)),Ut==null||Ut.setExternalEventHandlers({resize:Go,leavepictureinpicture:an})),e.interactiveContainer&&((Ct=mt().parentElement)==null||Ct.insertBefore(e.interactiveContainer,mt().nextSibling)),()=>{window.clearTimeout(Qo),window.clearTimeout(qn),window.clearTimeout(zn),window.clearTimeout(xn),wt(),Ut==null||Ut.dispose().catch(si=>{Qt({message:String(si)})}),hu(ai)}});let Sn=()=>{let pe=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ze()?s(Wi):ze(),Ct=pe.getRootNode(),si=Ct instanceof ShadowRoot?Ct.host:Ct,Bi=We()instanceof HTMLElement&&We().contains(si);return e.uiConfig.allowChangingFullscreenTarget&&We()&&Bi?We():pe},ln=()=>{bt.set(!1)},uo=()=>{_o(),ln()},so=async()=>{ln(),Vs()?(await vu(document),Qt({message:"exit fullscreen"})):(Qt({message:"request fullscreen"}),await mu(Sn()))},Tn=pe=>{w()||(pe.preventDefault(),bt.set(!0),ko.set({left:pe.clientX,top:pe.clientY}))};function $r(){nn.set(!0),ki||bi(e.uiConfig.controls.hideTimeoutCursor)}function Ur(){ki||(ti.set(!0),bi(e.uiConfig.controls.hideTimeoutCursor))}function zr(){nn.set(!1),B(Ao,!1),B(wn,!1),qt=!1,e.store.actions.internal.releaseCamera(),bi(e.uiConfig.controls.hideTimeout)}function qi(pe){return pe?pe.offsetTop+qi(pe.offsetParent):0}function rt(pe){return pe?pe.offsetLeft+rt(pe.offsetParent):0}function Dt(pe){if(G()&&bn){let Ct=pe.currentTarget,si=qi(Ct),Bi=rt(Ct),wi=pe.pageX-Bi,Oi=pe.pageY-si,{left:Ze,bottom:Bt,right:Ci}=G(),jo=Ci-Ze;return wi>=Ze-jo&&Oi<=Bt+jo}}function Pi(pe){if(s(Wi)){let Ct=qi(pe.currentTarget),si=q().height,Bi=pe.pageY-Ct;if(Dt(pe)){B(Ao,!1);return}Bi<40?B(Ao,!0):Bi>si-40?B(wn,!0):(B(Ao,!1),f()||B(wn,!1))}}function $o(pe){Pi(pe),s(bo)||bi(e.uiConfig.controls.hideTimeoutCursor),U()&&qt&&Lo&&e.store.actions.internal.moveCameraFocusPX(Lo.clientX-pe.clientX,Lo.clientY-pe.clientY,pe.timeStamp-Lo.timeStamp),Lo=pe}let Ki=pe=>{pe.preventDefault(),pe.button===0&&(qt=!0,e.store.actions.internal.holdCamera()),bi(e.uiConfig.controls.hideTimeoutCursor)},po=pe=>{pe.preventDefault(),pe.button===0&&(Lo=pe,qt=!1,e.store.actions.internal.releaseCamera()),bi(e.uiConfig.controls.hideTimeoutCursor)},yo=pe=>{pe.preventDefault(),vr&&(Qt({message:"double click on video"}),so(),bi(e.uiConfig.controls.hideTimeoutCursor))},Vo=pe=>{var Ct;if(pe.preventDefault(),Q()||f()){uo();return}if(!(k()&&!Ni)){if(s(_r))return sn();if((Ct=Mt())==null||Ct.focus(),!Me()){e.firstStart(),bi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||J()!==Sv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),bi(e.uiConfig.controls.hideTimeoutCursor)}},dn=pe=>{uo(),no.set(!0),bi(e.uiConfig.controls.hideTimeout),pe&&dr(e.uiConfig.controls.hideHotKeyHelpers,pe)},Qi=()=>{var pe,Ct;uo(),(pe=e.store.callbacks)!=null&&pe.onOpenHotKeyMap?(Ct=e.store.callbacks)==null||Ct.onOpenHotKeyMap(j()):_n.update(si=>!si)},Gi=()=>{no.set(!0)},xo=e.store.ui.contextMenu.openedByBtnKeyboard$,En=e.store.ui.contextMenu.btnRef$,ji=Y(void 0),cn=e.store.ui.contextMenu.openedByHotKey$,yr=e.store.ui.contextMenu.lastActiveElem$;Ue(()=>{Bn.set(s(ut))}),Ue(()=>{B(rn,s(Mo)&&J()!==Sv.PlaybackState.PLAYING,!0),s(Mo)||St(()=>B(Mo,!0))}),Ue(()=>{io.set((s(rn)||k()||f()||ce()||le()||ye()||ke())&&!s(bo)&&(r()==="video"||r()==="ads")&&!a()&&I())}),Ue(()=>{!ce()&&s(lr)&&!p()&&bi(e.uiConfig.controls.hideTimeoutCursor),St(()=>B(lr,ce(),!0))}),Ue(()=>{s(Un),f(),me(),St(()=>Td(s(Un),f(),me()))}),Ue(()=>{s(ji),Q(),ae(),Ve(),St(()=>{let pe=ae()||Ve();Td(s(ji),Q(),pe)})}),Ue(()=>{let pe=re();pe&&(Q(),St(()=>_l(pe,Q(),xo)))}),Ue(()=>{let pe=N();pe&&(Q(),St(()=>y1(pe,Q(),cn)))}),Ue(()=>{var pe;!He()&&y()&&(St(()=>go.set(!1)),(pe=Mt())==null||pe.focus())}),Ue(()=>{w()&&uo()});let Wr=F("video360"),Qn=Y(void 0),ls=pe=>{$n.set(Vr(Br(),{title:s(Qn)},"title",pe))};var xr=bx();Et("blur",ta,uo);var Ro=fe(xr);Ro.__mousemove=$o;var No=_(Ro);let Gn=g(()=>r()==="ads"),qr=g(()=>s(_r)?sn:void 0);it(Hf(No,{toggleFullscreen:so,hideContextMenu:uo,showHotKeyHelpers:dn,showKeyMap:Qi,get isAds(){return s(Gn)},get fakePlayButtonHandler(){return s(qr)},get nextButtonActive(){return ie()},get prevButtonActive(){return Nt()},children:(pe,Ct)=>{var si=hx(),Bi=fe(si);Oa(Bi,{get hideCursor(){return s(hr)},onClick:Vo,onContextMenu:Tn,onMouseDown:Ki,onMouseUp:po,onDblClick:yo,get videoContainer(){return mt()},set videoContainer(Ze){mt(Ze)}});var wi=P(Bi,2);la(wi,()=>"slot",!1,(Ze,Bt)=>{Ie(Ze,()=>({name:Ba}))});var Oi=P(wi,2);aa(Oi,_e,Ze=>{var Bt=gx(),Ci=fe(Bt);let jo=g(()=>r()!=="thumb"||a()||ki&&e.autoplay);Va(Ci,{get hidden(){return s(jo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var un=P(Ci,2);Cv(un,{});var fo=P(un,2);{var Qr=je=>{let di=g(()=>{var Bo;return(Bo=e.live)==null?void 0:Bo.startTime});ec(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(di)}})};L(fo,je=>{r()==="LiveWaitingStart"&&je(Qr)})}var wr=P(fo,2);{var gi=je=>{Ra(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(wr,je=>{r()==="LiveWaitingRecover"&&je(gi)})}var Ai=P(wr,2);{var In=je=>{Ra(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(Ai,je=>{r()==="LiveWaitingRecord"&&je(In)})}var jn=P(Ai,2);{var Cr=je=>{var di=px();let Bo;var Qs=_(di);yd(Qs,{get adsSlotId(){return vt()},get adsParams(){return Tt()},get adsPreviewParam(){return Qe()},get adsAutoplayParam(){return zt()},get duration(){return Jt()}}),h(di),O(Co=>Bo=te(di,1,"ads-container svelte-jtgjmv",null,Bo,Co),[()=>({hidden:r()!=="ads"})]),b(je,di)};L(jn,je=>{e.showAds&&Me()&&je(Cr)})}var wo=P(jn,2);{var Fa=je=>{let di=g(()=>!tt()&&e.showAutoplayNext&&S());Bf(je,{get title(){return we()},get thumb(){return ve()},get isHide(){return s(di)},clickCloseIcon:()=>B(Hr,!0)})};L(wo,je=>{s(Cn)&&we()&&ve()&&je(Fa)})}var qs=P(wo,2);{var $t=je=>{let di=g(()=>!u());Zm(je,{get title(){return e.title},get isHidden(){return s(di)},onVisibilityChanged:ls,get ref(){return s(Qn)},set ref(Bo){B(Qn,Bo,!0)}})};L(qs,je=>{s(Kn)&&je($t)})}var lt=P(qs,2);{var mo=je=>{let di=g(()=>r()==="video"&&u());Xd(je,{get isShifted(){return s(di)}})};L(lt,je=>{U()&&je(mo)})}var Yo=P(lt,2);{var Yi=je=>{var di=fx(),Bo=_(di);bd(Bo,{get"aria-label"(){return Wr}}),h(di),b(je,di)};L(Yo,je=>{ge()&&je(Yi)})}var li=P(Yo,2);{var Di=je=>{Jd(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return de()}})};L(li,je=>{ye()&&je(Di)})}var ws=P(li,2);{var Ol=je=>{Ma(je,{get shifted(){return u()},get captions(){return xe()},get position(){return Z()},get playerSize(){return q()}})};L(ws,je=>{ue().value!=="off"&&je(Ol)})}var hc=P(ws,2);{var rp=je=>{var di=mx();di.__contextmenu=Tn,di.__click=[ux,Q,bt,f,Xt,uo];var Bo=_(di);La(Bo,{}),h(di),b(je,di)};L(hc,je=>{a()&&je(rp)})}var _c=P(hc,2);{var sp=je=>{let di=g(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"),Bo=g(()=>r()==="ads"),Qs=g(()=>e.canRewindLive&&qe()!==0);Zd(je,{get bottomHidden(){return s(di)},get bottomNoSmooth(){return R()},get showControls(){return u()},get isAds(){return s(Bo)},get canRewindLive(){return s(Qs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Zt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Wt()},get nextButtonActive(){return ie()},get prevButtonActive(){return Nt()},get isOneVideoPlaylist(){return ne()},customFullscreenSupported:vr,toggleFullscreen:so,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(Fn)},set playerControlsWrapperRef(Co){B(Fn,Co,!0)},get playerControlsRef(){return s(yn)},set playerControlsRef(Co){B(yn,Co,!0)}})};L(_c,je=>{Me()&&je(sp)})}var bc=P(_c,2);{var ap=je=>{var di=vx(),Bo=_(di);let Qs=g(()=>{var Co;return(Co=s(yn))==null?void 0:Co.clientHeight});nc(Bo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(Qs)},returnFocus:()=>{var Co;return(Co=Mt())==null?void 0:Co.focus()},get ref(){return s(Un)},set ref(Co){B(Un,Co,!0)}}),h(di),b(je,di)};L(bc,je=>{!ye()&&r()!=="ads"&&je(ap)})}var $c=P(bc,2);let lp=g(()=>!s(gr));Cd($c,{get isLive(){return Je()},get isHidden(){return s(lp)},get isPlaying(){return Pe()},get position(){return Z()},get duration(){return qe()}});var Ks=P($c,2);Qm(Ks,{get data(){return ro}});var yc=P(Ks,2);Rf(yc,{get supportLink(){return e.supportLink},returnFocus:()=>{var je;return(je=Mt())==null?void 0:je.focus()},get visible(){return Q()},get playerContainerRef(){return s(Wi)},get controlsContainerRef(){return s(Fn)},get position(){return X()},get menuElementRef(){return s(ji)},set menuElementRef(je){B(ji,je,!0)}});var Dl=P(yc,2);{var xc=je=>{rc(je,{onClose:Wn,onSelectAutoQuality:()=>{Po("auto"),Wn()}})};L(Dl,je=>{s(Dr)&&je(xc)})}var wc=P(Dl,2);{var Cc=je=>{xa(je,{})};L(wc,je=>{s(ar)&&je(Cc)})}var Ua=P(wc,2);{var Sc=je=>{zf(je,{})};L(Ua,je=>{Te()&&je(Sc)})}var dp=P(Ua,2);{var Tc=je=>{Id(je,{})};L(dp,je=>{Ke()&&je(Tc)})}b(Ze,Bt)}),b(pe,si)},$$slots:{default:!0}}),pe=>Mt(pe),()=>Mt());var Kr=P(No,2);it(Kr,pe=>B(ut,pe),()=>s(ut)),h(Ro),it(Ro,pe=>B(Wi,pe),()=>s(Wi));var Ge=P(Ro,2);{var jt=pe=>{var Ct=_x();b(pe,Ct)};L(Ge,pe=>{nt()&&pe(jt)})}Et("mouseenter",Ro,$r),Et("mouseleave",Ro,zr),Et("click",Ro,Gi,!0),Et("focusin",Ro,Ur,!0),b(t,xr),H(),o()}dt(["mousemove","contextmenu","click"]);var Ws=require("@vkontakte/videoplayer-core/es2018"),x0=require("@vkontakte/videoplayer-shared/es2018");var yx=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),xx=M("<div><!></div>"),wx={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;
342
342
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
343
343
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
344
344
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -354,7 +354,7 @@ Try switching the\xA0quality to\xA0Auto.`},n1=G_;var vs=new Map;vs.set(ul.Interf
354
354
  100% {
355
355
  opacity: 0;
356
356
  }
357
- }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Du(t,e){D(e,!0),z(t,px);let i=m(e,"seekStep",3,0),o=j(!1),n=0,r=0,l=j(oi(i())),d=v=>{v.stopPropagation(),r+=1,B(l,i()*(r-1)),r===1?e.handleSingleFirstClick(v):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{r=0,B(o,!1)},300)};Mn(()=>{window.clearTimeout(n)});var a=ux();a.__click=d;var p=_(a);{var f=v=>{var u=cx(),$=fe(u),w=P($,2),y=_(w),S=_(y),T=P(S,2),k=P(T,2);g(y);var A=P(y,2),I=_(A,!0);g(A),g(w),O(E=>{var V,K,W,U;J($,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),J(S,1,`triangle ${(K=e.side)!=null?K:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),J(k,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),he(I,E)},[()=>F("doubletap_seek_step",{seconds:s(l).toFixed(0)})]),b(v,u)};L(p,v=>{s(o)&&v(f)})}g(a),O(()=>{var v;return J(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),H()}dt(["click"]);var fx=(t,e,i)=>{e(!1),i()},mx=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),vx={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 Cv(t,e){D(e,!0),z(t,vx);let[i,o]=De(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>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,$=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),$()};Bt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Ue(),T=fe(S);{var k=A=>{var I=mx(),E=P(fe(I),2),V=_(E),K=_(V),W=_(K,!0);g(K);var U=P(K,2);ba(U,{onClick:y}),g(V);var Y=P(V,2);Y.__click=[fx,p,v];var ne=_(Y),G=_(ne),ce=_(G);let le;var we=P(ce,2);{var Ve=te=>{Ed(te,{get isRunning(){return r()},onTimerEnded:w})};L(we,te=>{n()&&te(Ve)})}g(G),g(ne);var ve=P(ne,2),ae=_(ve),Le=_(ae,!0);g(ae),g(ve),g(Y),g(E),O((te,N)=>{he(W,te),at(G,`background-image: url('${e.thumb}')`),le=J(ce,1,"thumb-overlay svelte-1qdxi6t",null,le,N),he(Le,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(A,I)};L(T,A=>{e.isHide||A(k)})}b(t,S),H(),o()}dt(["click"]);var u0=require("@vkontakte/videoplayer-core/es2018");var p0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Bt(()=>{u0.clientChecker.device.isIOS&&(o=setTimeout(()=>{let r=t().querySelector("video");if(!r)return;let l=()=>e(!0),d=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",d),i=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",d)}},0))}),Mn(()=>{i==null||i(),clearTimeout(o)})};var f0=require("@vkontakte/videoplayer-core/es2018");var Hu=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"),v0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:r,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,p=()=>e().querySelector("video"),f=()=>m0.clientChecker.device.isIOS&&$e(l)===f0.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},u=$=>{if(v(),!f()||!$)return;let w=p();if(!w)return;let y=new Hu(w),S=$e(d),T=$e(r),k=$e(n);for(let E of S)T.some(K=>K.value===E.id)&&y.attach(E,k.value===E.id);let A=d.subscribe(E=>{for(let V of E)y.updateSrc(V)}),I=()=>{let E=y.getCurrentShowingId();o($e(r).find(V=>V.value===E))};w.textTracks.addEventListener("change",I),a=()=>{A(),y.detachAll(),w.textTracks.removeEventListener("change",I)}};Bt(()=>i.subscribe(u)),Mn(v)};var gx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},hx=M("<!> <!>",1),_x=M("<div><!></div>"),bx=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),$x=M("<div><!></div>"),yx=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),xx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),wx=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Cx={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 Sv(t,e){var $i,yr;D(e,!0),z(t,Cx);let[i,o]=De(),n=()=>C(Re,"$playerPhase",i),r=()=>C(ui,"$isLoaderVisible",i),l=()=>C(ze,"$adPlaybackState",i),d=()=>C(Dt,"$crashed",i),a=()=>C(Fr,"$notificationsToShow$",i),p=()=>C(Oe,"$playbackState$",i),f=()=>C(me,"$graphIsOpened$",i),v=()=>C(et,"$interactiveHideMobileControls",i),u=()=>C(To,"$isEnded$",i),$=()=>C(yt,"$isInteractiveExpectation$",i),w=()=>C(At,"$controlsVisible",i),y=()=>C(vn,"$touched",i),S=()=>C(to,"$autoplayNextEnabled$",i),T=()=>C(Si,"$postrollPassed",i),k=()=>C(en,"$bottomNoSmooth",i),A=()=>C(vt,"$videoSize",i),I=()=>C(Ht,"$playerSize",i),E=()=>C(it,"$isFullscreen",i),V=()=>C(Ae,"$position$",i),K=()=>C(je,"$duration$",i),W=()=>C(ki,"$loadedMetadata",i),U=()=>C(ni,"$settingsMenuVisible",i),Y=()=>C(lt,"$scrubbingInProgress",i),ne=()=>C(ei,"$volumeChangingInProgress",i),G=()=>C(mo,"$chromecastConnected$",i),ce=()=>C(Vt,"$isControlsAvailable",i),le=()=>C(Li,"$isInteractiveTime$",i),we=()=>C(Oo,"$isActiveLive",i),Ve=()=>C(fi,"$settingsMenuOpenedByKeyboard",i),ve=()=>C(se,"$language$",i),ae=()=>C(Zo,"$disabledControls$",i),Le=()=>C(Jn,"$is3DVideo",i),te=()=>C(Ei,"$icon3DVideoVisible",i),N=()=>C(Xt,"$chromecastDeviceName$",i),Be=()=>C(rt,"$currentSubtitle$",i),ye=()=>C(ft,"$currentSubtitleCaptions$",i),ge=()=>C(hi,"$realDuration$",i),de=()=>C(_t,"$isLive$",i),ue=()=>C(Ti,"$isPlaying$",i),xe=()=>C(ii,"$debugPanelVisible",i),Z=m(e,"videoContainer",15),qe=m(e,"adsSlotId",3,void 0),Je=m(e,"adsParams",3,void 0),ke=m(e,"adsPreviewParam",3,void 0),X=m(e,"adsAutoplayParam",3,void 0),Te=m(e,"duration",3,void 0),Ke=m(e,"logoTargetUrl",3,""),st=m(e,"showNextPrevButtons",3,!1),pt=m(e,"nextButtonActive",3,!1),bt=m(e,"prevButtonActive",3,!1),Ct=m(e,"endScreenVideoTitle",3,void 0),Qe=m(e,"endScreenVideoThumb",3,void 0),Qt=m(e,"isOneVideoPlaylist",3,!1),Zt=m(e,"showMiniTimer",3,!1),Yt=m(e,"fullScreenTarget",3,void 0),Ot=m(e,"playerStarted",3,!1),ee=m(e,"showEndScreen",3,!0),{notifications$:Lt,graphIsOpened$:me}=fo(),_e=e.store.getLogger().createComponentLog("Root component"),se=e.store.interfaceLanguage$,Oe=e.store.state.playbackState$,ze=e.store.ads.playbackState,Ae=e.store.state.positionWithScrubbing$,je=e.store.state.duration$,Re=e.store.playerPhase,it=e.store.ui.isFullscreen,At=e.store.ui.controlsVisible,Vt=e.store.ui.isControlsAvailable,et=e.store.ui.interactiveHideMobileControls,ni=e.store.ui.settingsMenu.visible$,fi=e.store.ui.settingsMenu.openedByBtnKeyboard$,lt=e.store.ui.scrubbingInProgress,ei=e.store.ui.volumeChangingInProgress,ii=e.store.ui.debugPanelVisible,ui=e.store.state.isLoaderVisible,To=e.store.state.isEnded$,mo=e.store.state.chromecastConnected$,Xt=e.store.state.chromecastDeviceName$,Si=e.store.ads.postrollPassed,eo=e.store.ui.mobileUnmuteButtonExpanded,xt=e.store.ui.mobileUnmuteButtonVisible,_t=e.store.state.isLive$,Ti=e.store.state.isPlaying$,Oo=e.store.state.isActiveLive$,q=e.store.state.isRewindableLive$,Dt=e.store.state.crashed$,ci=e.store.webApi.annotationsApi,Gt=e.store.webApi.pictureInPictureApi,vt=e.store.state.videoSize$,rt=e.store.state.currentSubtitle$,ft=e.store.state.currentSubtitleCaptions$,hi=e.store.state.duration$,Ht=e.store.ui.playerSize,Jn=e.store.ui.is3DVideo,Ei=e.store.ui.icon3DVideoVisible,vo=e.store.state.isInteractive,Li=e.store.state.isInteractiveTime$,yt=e.store.state.isInteractiveExpectation$,Vi=e.store.state.hasInteractiveBranches,Zo=e.store.ui.controls.disabledControls$,vn=e.store.ui.touched,Ii=e.store.ui.overlayContainer$,to=e.store.ui.autoplayNextEnabled$,ki=e.store.state.loadedMetadata$,Xo=e.store.actions.internal.closeSettingsMenu,Vn=($i=e.store.callbacks)==null?void 0:$i.onDisabledPlayPrevChapterClick,Eo=(yr=e.store.callbacks)==null?void 0:yr.onDisabledSeekToInteractiveClick,Do=e.store.actions.internal.setQuality,go=j(void 0),ho=j(void 0),Jo=j(void 0),Rn=j(void 0),er,tr,ir,Hr=h(()=>(n()==="video"&&r()||n()==="ads"&&l()==="inactive")&&!d()),Nn=j(void 0),{closeNotification:as,notificationsToShow$:Fr}=Lt,Ui=h(()=>!!a().slow_video),gn=()=>as("slow_video"),en=re(!1),hn,_o=j(!1),_n=h(()=>p()!==Fs.PlaybackState.PLAYING),Bn=j(!1),Ur=h(()=>f()||v()||!s(_o)&&(u()&&!!Vi||s(_n)&&$())),hr=j(!0),zr=h(()=>e.uiConfig.features.thumbTimer&&Zt()&&n()==="video"&&!w()&&!d()&&!vo&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),bn=j(!1),On=h(()=>(ee()||e.showAutoplayNext&&S())&&!!Ct()&&!!Qe()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!s(bn)),ot=j(!1);Gt==null||Gt.setContext(zl());let Wt=Et=>{clearTimeout(tr),Et&&(xt.set(!0),eo.set(!0),tr=setTimeout(()=>{eo.set(!1)},e.uiConfig.controls.collapseMobileUnmute),vo||zi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Wt});let Dn=()=>{clearTimeout(er),B(_o,!1),v()&&et.set(!1)},zi=Et=>{Dn(),B(_o,!0),er=setTimeout(()=>B(_o,!1),Et);let ai=Et-100;hn=setTimeout(()=>{k()&&en.set(!1)},ai>0?ai:Et)},or=Jn.subscribe(Et=>{Ei.set(Et),Et&&(clearTimeout(ir),ir=setTimeout(()=>Ei.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Hn=async(Et=As())=>{var ai,nn,rn,Cn,Fo,po;if(Et&&!Fs.clientChecker.device.isIOS){let io=_d(),Un=yn(),xr=Fs.clientChecker.browser.isSamsungBrowser&&io===e.shadowRootContainer;Et=io===Un||xr}if(Et){zi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Gt==null?void 0:Gt.exit())}catch(io){_e({message:String(io)})}try{let io=(ai=A())!=null&&ai.width&&((nn=A())!=null&&nn.height)?A():I();await d1(io)}catch(io){_e({message:String(io)})}}it.set(Et),e.store.getAdmanWrapper().setFullscreen(Et),E()?(Cn=(rn=e.store.callbacks)==null?void 0:rn.onFullscreenEnter)==null||Cn.call(rn):(po=(Fo=e.store.callbacks)==null?void 0:Fo.onFullscreenExit)==null||po.call(Fo)},$n=Et=>{let ai=Et;Ht.set({width:ai.target.width,height:ai.target.height})};Bt(()=>{var Et;return uu(Hn),e.uiConfig.features.annotationsInside&&(ci==null||ci.init(s(go))),va(Gt)&&(Gt==null||Gt.assignPlayerContainer(s(go)),Gt==null||Gt.setExternalEventHandlers({resize:$n})),B(hr,!Fs.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((Et=Z().parentElement)==null||Et.insertBefore(e.interactiveContainer,Z().nextSibling)),()=>{clearTimeout(er),clearTimeout(hn),clearTimeout(tr),clearTimeout(ir),or(),Gt==null||Gt.dispose().catch(ai=>{_e({message:String(ai)})}),pu(Hn)}});let Wi=j(!0),tn=j(!0),Ho=Et=>{let ai=V()+(Et==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ai<0?(B(Wi,!1),ai=0):ai>=K()&&(B(tn,!1),ai=K()),B(Bn,!0),e.seekTime(ai)},yn=()=>Fs.clientChecker.device.isIOS?s(go):!e.uiConfig.allowChangingFullscreenTarget||!Yt()?e.outerContainerRef:Yt().contains(e.outerContainerRef)?Yt():e.outerContainerRef,_r=async()=>{try{if(As())await cu(document),_e({message:"exit fullscreen"});else{if(_e({message:"request fullscreen"}),Fs.clientChecker.device.isIOS&&!W())return;await du(yn())}}catch(Et){_e({message:String(Et)})}},br=()=>{Xo()},xn=Et=>{if(Et.preventDefault(),U()){br();return}if(!Ot()){e.firstStart(),zi(e.uiConfig.controls.hideTimeoutCursor);return}B(Bn,!1),w()?Dn():zi(e.uiConfig.controls.hideTimeoutMobile)},Wr=()=>{vn.set(!0)},wn=()=>{vo||(en.set(!0),zi(e.uiConfig.controls.hideTimeoutCursor))},qr=Et=>{Vn&&(Vn(Et),zi(e.uiConfig.controls.hideTimeoutMobile))},nr=Et=>{Eo&&(Eo(Et),zi(e.uiConfig.controls.hideTimeoutMobile))};We(()=>{Ii.set(s(Nn))}),We(()=>{At.set((s(_n)||U()||Y()||ne()||G()||!s(On)&&(u()||s(_o)&&!s(Bn)))&&!s(Ur)&&n()==="video"&&!d()&&ce())}),We(()=>{!Y()&&s(ot)&&!le()&&zi(e.uiConfig.controls.hideTimeoutMobile),B(ot,Y(),!0)}),We(()=>{B(Wi,V()>0),B(tn,!we()&&V()<K(),!0)}),We(()=>{Cd(s(Rn),U(),Ve(),!0)});let $r=F("aria_label_video_player"),on=F("video360");p0({fullScreenChangeHandler:Hn,getFullscreenTarget:yn}),v0({store:e.store,getFullscreenTarget:yn});var qt=wx();St("blur",Js,br);var Io=_(qt);Na(Io,{onClick:xn,get videoContainer(){return Z()},set videoContainer(Et){Z(Et)}});var rr=P(Io,2);sa(rr,()=>"slot",!1,(Et,ai)=>{Ie(Et,()=>({name:Ra}))});var Fn=P(rr,2);ra(Fn,ve,Et=>{var ai=xx(),nn=fe(ai);let rn=h(()=>n()!=="thumb"||d()||vo&&e.autoplay);Ma(nn,{get hidden(){return s(rn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Cn=P(nn,2);{var Fo=Ze=>{var Jt=hx(),pe=fe(Jt);{var wt=yi=>{let Fe=h(()=>e.uiConfig.controls.seekStepMobile/1e3);Du(yi,{side:"left",get seekStep(){return s(Fe)},handleSingleFirstClick:xn,handleSecondClick:()=>Ho("backward")})};L(pe,yi=>{s(Wi)&&yi(wt)})}var ri=P(pe,2);{var Ri=yi=>{let Fe=h(()=>e.uiConfig.controls.seekStepMobile/1e3);Du(yi,{side:"right",get seekStep(){return s(Fe)},handleSingleFirstClick:xn,handleSecondClick:()=>Ho("forward")})};L(ri,yi=>{s(tn)&&yi(Ri)})}b(Ze,Jt)};L(Cn,Ze=>{e.canRewindLive&&q&&!ae().has("TIMELINE")&&Ze(Fo)})}var po=P(Cn,2);{var io=Ze=>{let Jt=h(()=>{var pe;return(pe=e.live)==null?void 0:pe.startTime});Xd(Ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(Jt)}})};L(po,Ze=>{n()==="LiveWaitingStart"&&Ze(io)})}var Un=P(po,2);{var xr=Ze=>{La(Ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Un,Ze=>{n()==="LiveWaitingRecover"&&Ze(xr)})}var wr=P(Un,2);{var Kr=Ze=>{La(Ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(wr,Ze=>{n()==="LiveWaitingRecord"&&Ze(Kr)})}var tt=P(wr,2);{var Mt=Ze=>{var Jt=_x();let pe;var wt=_(Jt);bd(wt,{get adsSlotId(){return qe()},get adsParams(){return Je()},get adsPreviewParam(){return ke()},get adsAutoplayParam(){return X()},get duration(){return Te()}}),g(Jt),O(ri=>pe=J(Jt,1,"ads-container svelte-7yl31d",null,pe,ri),[()=>({hidden:n()!=="ads"})]),b(Ze,Jt)};L(tt,Ze=>{e.showAds&&Ot()&&Ze(Mt)})}var _i=P(tt,2);{var ko=Ze=>{let Jt=h(()=>!ee()&&e.showAutoplayNext&&S());Cv(Ze,{get title(){return Ct()},get thumb(){return Qe()},get isHide(){return s(Jt)},clickCloseIcon:()=>B(bn,!0)})};L(_i,Ze=>{s(On)&&Ct()&&Qe()&&Ze(ko)})}var oo=P(_i,2);{var bo=Ze=>{jd(Ze,{})};L(oo,Ze=>{Le()&&Ze(bo)})}var $o=P(oo,2);{var sn=Ze=>{var Jt=bx(),pe=_(Jt);hd(pe,{get"aria-label"(){return on}}),g(Jt),b(Ze,Jt)};L($o,Ze=>{te()&&Ze(sn)})}var yo=P($o,2);{var qi=Ze=>{Zd(Ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};L(yo,Ze=>{G()&&Ze(qi)})}var Ki=P(yo,2);{var Uo=Ze=>{Pa(Ze,{get shifted(){return w()},get captions(){return ye()},get position(){return V()},get playerSize(){return I()},isMobile:!0})};L(Ki,Ze=>{Be().value!=="off"&&Ze(Uo)})}var no=P(Ki,2);{var zo=Ze=>{var Jt=$x();Jt.__click=[gx,U,ni,br];var pe=_(Jt);Aa(pe,{}),g(Jt),b(Ze,Jt)};L(no,Ze=>{d()&&Ze(zo)})}var Sn=P(no,2);{var Cr=Ze=>{let Jt=h(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),pe=h(()=>n()==="ads"),wt=h(()=>e.canRewindLive&&ge()!==0);Yd(Ze,{get bottomHidden(){return s(Jt)},get showControls(){return w()},get bottomNoSmooth(){return k()},get isAds(){return s(pe)},get canRewindLive(){return s(wt)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ke()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return st()},get nextButtonActive(){return pt()},get prevButtonActive(){return bt()},get isOneVideoPlaylist(){return Qt()},get customFullscreenSupported(){return s(hr)},get endScreenShown(){return s(On)},toggleFullscreen:_r,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:qr,onDisabledSeekToInteractiveClick:nr,get playerControlsWrapperRef(){return s(ho)},set playerControlsWrapperRef(ri){B(ho,ri,!0)},get playerControlsRef(){return s(Jo)},set playerControlsRef(ri){B(Jo,ri,!0)}})};L(Sn,Ze=>{Ot()&&Ze(Cr)})}var Qr=P(Sn,2);{var Gr=Ze=>{var Jt=yx(),pe=_(Jt);ic(pe,{get supportLink(){return e.supportLink},get returnFocus(){return g0.noop},get ref(){return s(Rn)},set ref(wt){B(Rn,wt,!0)}}),g(Jt),b(Ze,Jt)};L(Qr,Ze=>{U()&&Ze(Gr)})}var ar=P(Qr,2);let Sr=h(()=>!s(zr));xd(ar,{get isLive(){return de()},get isHidden(){return s(Sr)},get isPlaying(){return ue()},get position(){return V()},get duration(){return K()}});var Tn=P(ar,2);{var Qi=Ze=>{$a(Ze,{})};L(Tn,Ze=>{s(Hr)&&Ze(Qi)})}var zn=P(Tn,2);{var lr=Ze=>{Td(Ze,{})};L(zn,Ze=>{xe()&&Ze(lr)})}var Tr=P(zn,2);{var dr=Ze=>{oc(Ze,{onClose:gn,onSelectAutoQuality:()=>{Do("auto"),gn()}})};L(Tr,Ze=>{s(Ui)&&Ze(dr)})}b(Et,ai)});var sr=P(Fn,2);nt(sr,Et=>B(Nn,Et),()=>s(Nn)),g(qt),nt(qt,Et=>B(go,Et),()=>s(go)),O(()=>Ne(qt,"aria-label",$r)),St("click",qt,Wr,!0),St("focusin",qt,wn,!0),b(t,qt),H(),o()}dt(["click"]);function Fu(t){let e="";return Xi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Xi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Xi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Xi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Xi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Xi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Xi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Xi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Xi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Xi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Xi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Xi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Xi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Xi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Xi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Xi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Xi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Xi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Xi(t.font)&&(e+=`--font:${t.font};`),Xi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Xi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Xi(t){return typeof t=="string"&&!t.includes(";")}var h0=require("@vkontakte/videoplayer-shared/es2018");var Sx=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Tx={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 Tv(t,e){D(e,!0),z(t,Tx);let[i,o]=De(),n=()=>C(ne,"$playerSize",i),r=()=>C(E,"$isPlaying$",i),l=()=>C(A,"$duration$",i),d=()=>C(W,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),p=()=>C(k,"$crashed$",i),f=()=>C(V,"$currentSubtitle$",i),v=()=>C(K,"$currentSubtitleCaptions$",i),u=()=>C(I,"$positionExact$",i),$=()=>C(U,"$isLive$",i),w=()=>C(Y,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:k,duration$:A,positionExact$:I,isPlaying$:E,currentSubtitle$:V,currentSubtitleCaptions$:K,positionWithScrubbing$:W,isLive$:U,isRewindableLive$:Y},ui:{playerSize:ne,controls:G},actions:{internal:{getVideoElement:ce}}}=Ee(),le=8,we=j(!1),Ve=oi({}),ve=()=>{B(we,!0)},ae=()=>{B(we,!1)},Le=(0,h0.debounceFn)(wl,260);We(()=>{n(),Le(ce(),G,Ve,s(we))});let te=h(()=>r()?fn(l()-d()):fn(isFinite(l())?l():y()));var N=Sx(),Be=_(N);Na(Be,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Te){S(Te)}});var ye=P(Be,2);sa(ye,()=>"slot",!1,(Te,Ke)=>{Ie(Te,()=>({name:Ra}))});var ge=P(ye,2);let de=h(()=>a()!=="thumb"||p());Ma(ge,{get hidden(){return s(de)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ue=P(ge,2);{var xe=Te=>{Pa(Te,{shifted:!1,get captions(){return v()},get position(){return u()},get playerSize(){return n()}})};L(ue,Te=>{f().value!=="off"&&Te(xe)})}var Z=P(ue,2),qe=_(Z);yd(qe,{get isLive(){return $()},get isPlaying(){return r()},get time(){return s(te)}}),g(Z);var Je=P(Z,2);let ke;var X=_(Je);Ca(X,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:le,tooltipRightOffset:le,get ref(){return Ve.timeline},set ref(Te){Ve.timeline=Te}}),g(Je),g(N),O(Te=>ke=J(Je,1,"timeline svelte-1qfjf44",null,ke,Te),[()=>({visible:s(we)})]),St("mouseenter",N,ve),St("mouseleave",N,ae),b(t,N),H(),o()}var Ex=M("<div><!></div>"),Ix={hash:"svelte-oba660",code:`.root.svelte-oba660 {--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;
357
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Wu(t,e){D(e,!0),W(t,wx);let i=m(e,"seekStep",3,0),o=Y(!1),n=0,r=0,l=Y(ii(i())),d=v=>{v.stopPropagation(),r+=1,B(l,i()*(r-1)),r===1?e.handleSingleFirstClick(v):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{r=0,B(o,!1)},300)};Vn(()=>{window.clearTimeout(n)});var a=xx();a.__click=d;var p=_(a);{var f=v=>{var u=yx(),$=fe(u),w=P($,2),y=_(w),S=_(y),T=P(S,2),k=P(T,2);h(y);var A=P(y,2),I=_(A,!0);h(A),h(w),O(E=>{var R,G,q,U;te($,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),te(S,1,`triangle ${(G=e.side)!=null?G:""}`,"svelte-nhq2ld"),te(T,1,`triangle ${(q=e.side)!=null?q:""}`,"svelte-nhq2ld"),te(k,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),he(I,E)},[()=>F("doubletap_seek_step",{seconds:s(l).toFixed(0)})]),b(v,u)};L(p,v=>{s(o)&&v(f)})}h(a),O(()=>{var v;return te(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),H()}dt(["click"]);var Cx=(t,e,i)=>{e(!1),i()},Sx=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),Tx={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 Ev(t,e){D(e,!0),W(t,Tx);let[i,o]=Oe(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>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,$=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),$()};Ot(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Fe(),T=fe(S);{var k=A=>{var I=Sx(),E=P(fe(I),2),R=_(E),G=_(R),q=_(G,!0);h(G);var U=P(G,2);ya(U,{onClick:y}),h(R);var Q=P(R,2);Q.__click=[Cx,p,v];var J=_(Q),j=_(J),ce=_(j);let le;var ye=P(ce,2);{var ke=re=>{kd(re,{get isRunning(){return r()},onTimerEnded:w})};L(ye,re=>{n()&&re(ke)})}h(j),h(J);var me=P(J,2),ae=_(me),Ve=_(ae,!0);h(ae),h(me),h(Q),h(E),O((re,N)=>{he(q,re),at(j,`background-image: url('${e.thumb}')`),le=te(ce,1,"thumb-overlay svelte-1qdxi6t",null,le,N),he(Ve,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(A,I)};L(T,A=>{e.isHide||A(k)})}b(t,S),H(),o()}dt(["click"]);var h0=require("@vkontakte/videoplayer-core/es2018");var _0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ot(()=>{h0.clientChecker.device.isIOS&&(o=setTimeout(()=>{let r=t().querySelector("video");if(!r)return;let l=()=>e(!0),d=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",d),i=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",d)}},0))}),Vn(()=>{i==null||i(),clearTimeout(o)})};var b0=require("@vkontakte/videoplayer-core/es2018");var qu=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 $0=require("@vkontakte/videoplayer-core/es2018"),y0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:r,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,p=()=>e().querySelector("video"),f=()=>$0.clientChecker.device.isIOS&&$e(l)===b0.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},u=$=>{if(v(),!f()||!$)return;let w=p();if(!w)return;let y=new qu(w),S=$e(d),T=$e(r),k=$e(n);for(let E of S)T.some(G=>G.value===E.id)&&y.attach(E,k.value===E.id);let A=d.subscribe(E=>{for(let R of E)y.updateSrc(R)}),I=()=>{let E=y.getCurrentShowingId();o($e(r).find(R=>R.value===E))};w.textTracks.addEventListener("change",I),a=()=>{A(),y.detachAll(),w.textTracks.removeEventListener("change",I)}};Ot(()=>i.subscribe(u)),Vn(v)};var Ex=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Ix=M("<!> <!>",1),kx=M("<div><!></div>"),Px=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Ax=M("<div><!></div>"),Mx=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Lx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Vx=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Rx={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 Iv(t,e){var bi,dr;D(e,!0),W(t,Rx);let[i,o]=Oe(),n=()=>C(Re,"$playerPhase",i),r=()=>C(mi,"$isLoaderVisible",i),l=()=>C(ze,"$adPlaybackState",i),d=()=>C(Pt,"$crashed",i),a=()=>C(Or,"$notificationsToShow$",i),p=()=>C(Be,"$playbackState$",i),f=()=>C(we,"$graphIsOpened$",i),v=()=>C(et,"$interactiveHideMobileControls",i),u=()=>C(go,"$isEnded$",i),$=()=>C(xt,"$isInteractiveExpectation$",i),w=()=>C(Mt,"$controlsVisible",i),y=()=>C(on,"$touched",i),S=()=>C(no,"$autoplayNextEnabled$",i),T=()=>C(Ii,"$postrollPassed",i),k=()=>C(yn,"$bottomNoSmooth",i),A=()=>C(ct,"$videoSize",i),I=()=>C(Ut,"$playerSize",i),E=()=>C(tt,"$isFullscreen",i),R=()=>C(Me,"$position$",i),G=()=>C(We,"$duration$",i),q=()=>C(Ko,"$loadedMetadata",i),U=()=>C(pi,"$settingsMenuVisible",i),Q=()=>C(st,"$scrubbingInProgress",i),J=()=>C(Gt,"$volumeChangingInProgress",i),j=()=>C(io,"$chromecastConnected$",i),ce=()=>C(Qt,"$isControlsAvailable",i),le=()=>C(Ri,"$isInteractiveTime$",i),ye=()=>C(qo,"$isActiveLive",i),ke=()=>C(oi,"$settingsMenuOpenedByKeyboard",i),me=()=>C(ne,"$language$",i),ae=()=>C(tn,"$disabledControls$",i),Ve=()=>C(Nn,"$is3DVideo",i),re=()=>C(yi,"$icon3DVideoVisible",i),N=()=>C(Xt,"$chromecastDeviceName$",i),He=()=>C(ot,"$currentSubtitle$",i),_e=()=>C(gt,"$currentSubtitleCaptions$",i),ge=()=>C($i,"$realDuration$",i),de=()=>C(bt,"$isLive$",i),ue=()=>C(Vi,"$isPlaying$",i),xe=()=>C(ni,"$debugPanelVisible",i),Z=m(e,"videoContainer",15),qe=m(e,"adsSlotId",3,void 0),Je=m(e,"adsParams",3,void 0),Pe=m(e,"adsPreviewParam",3,void 0),X=m(e,"adsAutoplayParam",3,void 0),Te=m(e,"duration",3,void 0),Ke=m(e,"logoTargetUrl",3,""),nt=m(e,"showNextPrevButtons",3,!1),mt=m(e,"nextButtonActive",3,!1),vt=m(e,"prevButtonActive",3,!1),Tt=m(e,"endScreenVideoTitle",3,void 0),Qe=m(e,"endScreenVideoThumb",3,void 0),zt=m(e,"isOneVideoPlaylist",3,!1),Jt=m(e,"showMiniTimer",3,!1),Zt=m(e,"fullScreenTarget",3,void 0),Wt=m(e,"playerStarted",3,!1),ie=m(e,"showEndScreen",3,!0),{notifications$:Nt,graphIsOpened$:we}=vo(),ve=e.store.getLogger().createComponentLog("Root component"),ne=e.store.interfaceLanguage$,Be=e.store.state.playbackState$,ze=e.store.ads.playbackState,Me=e.store.state.positionWithScrubbing$,We=e.store.state.duration$,Re=e.store.playerPhase,tt=e.store.ui.isFullscreen,Mt=e.store.ui.controlsVisible,Qt=e.store.ui.isControlsAvailable,et=e.store.ui.interactiveHideMobileControls,pi=e.store.ui.settingsMenu.visible$,oi=e.store.ui.settingsMenu.openedByBtnKeyboard$,st=e.store.ui.scrubbingInProgress,Gt=e.store.ui.volumeChangingInProgress,ni=e.store.ui.debugPanelVisible,mi=e.store.state.isLoaderVisible,go=e.store.state.isEnded$,io=e.store.state.chromecastConnected$,Xt=e.store.state.chromecastDeviceName$,Ii=e.store.ads.postrollPassed,oo=e.store.ui.mobileUnmuteButtonExpanded,yt=e.store.ui.mobileUnmuteButtonVisible,bt=e.store.state.isLive$,Vi=e.store.state.isPlaying$,qo=e.store.state.isActiveLive$,z=e.store.state.isRewindableLive$,Pt=e.store.state.crashed$,ci=e.store.webApi.annotationsApi,Lt=e.store.webApi.pictureInPictureApi,ct=e.store.state.videoSize$,ot=e.store.state.currentSubtitle$,gt=e.store.state.currentSubtitleCaptions$,$i=e.store.state.duration$,Ut=e.store.ui.playerSize,Nn=e.store.ui.is3DVideo,yi=e.store.ui.icon3DVideoVisible,ho=e.store.state.isInteractive,Ri=e.store.state.isInteractiveTime$,xt=e.store.state.isInteractiveExpectation$,ki=e.store.state.hasInteractiveBranches,tn=e.store.ui.controls.disabledControls$,on=e.store.ui.touched,Ni=e.store.ui.overlayContainer$,no=e.store.ui.autoplayNextEnabled$,Ko=e.store.state.loadedMetadata$,_n=e.store.actions.internal.closeSettingsMenu,Bn=(bi=e.store.callbacks)==null?void 0:bi.onDisabledPlayPrevChapterClick,xi=(dr=e.store.callbacks)==null?void 0:dr.onDisabledSeekToInteractiveClick,bn=e.store.actions.internal.setQuality,ko=Y(void 0),Po=Y(void 0),_o=Y(void 0),nr=Y(void 0),On,Dn,$n,Br=g(()=>(n()==="video"&&r()||n()==="ads"&&l()==="inactive")&&!d()),Hn=Y(void 0),{closeNotification:ss,notificationsToShow$:Or}=Nt,Wi=g(()=>!!a().slow_video),Fn=()=>ss("slow_video"),yn=oe(!1),Un,Qo=Y(!1),zn=g(()=>p()!==Ws.PlaybackState.PLAYING),xn=Y(!1),rr=g(()=>f()||v()||!s(Qo)&&(u()&&!!ki||s(zn)&&$())),sr=Y(!0),Dr=g(()=>e.uiConfig.features.thumbTimer&&Jt()&&n()==="video"&&!w()&&!d()&&!ho&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Wn=Y(!1),ar=g(()=>(ie()||e.showAutoplayNext&&S())&&!!Tt()&&!!Qe()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!s(Wn)),ut=Y(!1);Lt==null||Lt.setContext(ql());let ti=wt=>{clearTimeout(Dn),wt&&(yt.set(!0),oo.set(!0),Dn=setTimeout(()=>{oo.set(!1)},e.uiConfig.controls.collapseMobileUnmute),ho||ri(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:ti});let qn=()=>{clearTimeout(On),B(Qo,!1),v()&&et.set(!1)},ri=wt=>{qn(),B(Qo,!0),On=setTimeout(()=>B(Qo,!1),wt);let ai=wt-100;Un=setTimeout(()=>{k()&&yn.set(!1)},ai>0?ai:wt)},ro=Nn.subscribe(wt=>{yi.set(wt),wt&&(clearTimeout($n),$n=setTimeout(()=>yi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),nn=async(wt=Vs())=>{var ai,Go,an,Sn,ln,uo;if(wt&&!Ws.clientChecker.device.isIOS){let so=$d(),Tn=bo(),$r=Ws.clientChecker.browser.isSamsungBrowser&&so===e.shadowRootContainer;wt=so===Tn||$r}if(wt){ri(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Lt==null?void 0:Lt.exit())}catch(so){ve({message:String(so)})}try{let so=(ai=A())!=null&&ai.width&&((Go=A())!=null&&Go.height)?A():I();await v1(so)}catch(so){ve({message:String(so)})}}tt.set(wt),e.store.getAdmanWrapper().setFullscreen(wt),E()?(Sn=(an=e.store.callbacks)==null?void 0:an.onFullscreenEnter)==null||Sn.call(an):(uo=(ln=e.store.callbacks)==null?void 0:ln.onFullscreenExit)==null||uo.call(ln)},wn=wt=>{let ai=wt;Ut.set({width:ai.target.width,height:ai.target.height})};Ot(()=>{var wt;return gu(nn),e.uiConfig.features.annotationsInside&&(ci==null||ci.init(s(ko))),ha(Lt)&&(Lt==null||Lt.assignPlayerContainer(s(ko)),Lt==null||Lt.setExternalEventHandlers({resize:wn})),B(sr,!Ws.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((wt=Z().parentElement)==null||wt.insertBefore(e.interactiveContainer,Z().nextSibling)),()=>{clearTimeout(On),clearTimeout(Un),clearTimeout(Dn),clearTimeout($n),ro(),Lt==null||Lt.dispose().catch(ai=>{ve({message:String(ai)})}),hu(nn)}});let Ao=Y(!0),rn=Y(!0),Mo=wt=>{let ai=R()+(wt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ai<0?(B(Ao,!1),ai=0):ai>=G()&&(B(rn,!1),ai=G()),B(xn,!0),e.seekTime(ai)},bo=()=>Ws.clientChecker.device.isIOS?s(ko):!e.uiConfig.allowChangingFullscreenTarget||!Zt()?e.outerContainerRef:Zt().contains(e.outerContainerRef)?Zt():e.outerContainerRef,vr=async()=>{try{if(Vs())await vu(document),ve({message:"exit fullscreen"});else{if(ve({message:"request fullscreen"}),Ws.clientChecker.device.isIOS&&!q())return;await mu(bo())}}catch(wt){ve({message:String(wt)})}},gr=()=>{_n()},Kn=wt=>{if(wt.preventDefault(),U()){gr();return}if(!Wt()){e.firstStart(),ri(e.uiConfig.controls.hideTimeoutCursor);return}B(xn,!1),w()?qn():ri(e.uiConfig.controls.hideTimeoutMobile)},Hr=()=>{on.set(!0)},Cn=()=>{ho||(yn.set(!0),ri(e.uiConfig.controls.hideTimeoutCursor))},hr=wt=>{Bn&&(Bn(wt),ri(e.uiConfig.controls.hideTimeoutMobile))},lr=wt=>{xi&&(xi(wt),ri(e.uiConfig.controls.hideTimeoutMobile))};Ue(()=>{Ni.set(s(Hn))}),Ue(()=>{Mt.set((s(zn)||U()||Q()||J()||j()||!s(ar)&&(u()||s(Qo)&&!s(xn)))&&!s(rr)&&n()==="video"&&!d()&&ce())}),Ue(()=>{!Q()&&s(ut)&&!le()&&ri(e.uiConfig.controls.hideTimeoutMobile),B(ut,Q(),!0)}),Ue(()=>{B(Ao,R()>0),B(rn,!ye()&&R()<G(),!0)}),Ue(()=>{Td(s(nr),U(),ke(),!0)});let _r=F("aria_label_video_player"),sn=F("video360");_0({fullScreenChangeHandler:nn,getFullscreenTarget:bo}),y0({store:e.store,getFullscreenTarget:bo});var qt=Vx();Et("blur",ta,gr);var Lo=_(qt);Oa(Lo,{onClick:Kn,get videoContainer(){return Z()},set videoContainer(wt){Z(wt)}});var Fr=P(Lo,2);la(Fr,()=>"slot",!1,(wt,ai)=>{Ie(wt,()=>({name:Ba}))});var br=P(Fr,2);aa(br,me,wt=>{var ai=Lx(),Go=fe(ai);let an=g(()=>n()!=="thumb"||d()||ho&&e.autoplay);Va(Go,{get hidden(){return s(an)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Sn=P(Go,2);{var ln=Ge=>{var jt=Ix(),pe=fe(jt);{var Ct=wi=>{let Oi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Wu(wi,{side:"left",get seekStep(){return s(Oi)},handleSingleFirstClick:Kn,handleSecondClick:()=>Mo("backward")})};L(pe,wi=>{s(Ao)&&wi(Ct)})}var si=P(pe,2);{var Bi=wi=>{let Oi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Wu(wi,{side:"right",get seekStep(){return s(Oi)},handleSingleFirstClick:Kn,handleSecondClick:()=>Mo("forward")})};L(si,wi=>{s(rn)&&wi(Bi)})}b(Ge,jt)};L(Sn,Ge=>{e.canRewindLive&&z&&!ae().has("TIMELINE")&&Ge(ln)})}var uo=P(Sn,2);{var so=Ge=>{let jt=g(()=>{var pe;return(pe=e.live)==null?void 0:pe.startTime});ec(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(jt)}})};L(uo,Ge=>{n()==="LiveWaitingStart"&&Ge(so)})}var Tn=P(uo,2);{var $r=Ge=>{Ra(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Tn,Ge=>{n()==="LiveWaitingRecover"&&Ge($r)})}var Ur=P(Tn,2);{var zr=Ge=>{Ra(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(Ur,Ge=>{n()==="LiveWaitingRecord"&&Ge(zr)})}var qi=P(Ur,2);{var rt=Ge=>{var jt=kx();let pe;var Ct=_(jt);yd(Ct,{get adsSlotId(){return qe()},get adsParams(){return Je()},get adsPreviewParam(){return Pe()},get adsAutoplayParam(){return X()},get duration(){return Te()}}),h(jt),O(si=>pe=te(jt,1,"ads-container svelte-7yl31d",null,pe,si),[()=>({hidden:n()!=="ads"})]),b(Ge,jt)};L(qi,Ge=>{e.showAds&&Wt()&&Ge(rt)})}var Dt=P(qi,2);{var Pi=Ge=>{let jt=g(()=>!ie()&&e.showAutoplayNext&&S());Ev(Ge,{get title(){return Tt()},get thumb(){return Qe()},get isHide(){return s(jt)},clickCloseIcon:()=>B(Wn,!0)})};L(Dt,Ge=>{s(ar)&&Tt()&&Qe()&&Ge(Pi)})}var $o=P(Dt,2);{var Ki=Ge=>{Xd(Ge,{})};L($o,Ge=>{Ve()&&Ge(Ki)})}var po=P($o,2);{var yo=Ge=>{var jt=Px(),pe=_(jt);bd(pe,{get"aria-label"(){return sn}}),h(jt),b(Ge,jt)};L(po,Ge=>{re()&&Ge(yo)})}var Vo=P(po,2);{var dn=Ge=>{Jd(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};L(Vo,Ge=>{j()&&Ge(dn)})}var Qi=P(Vo,2);{var Gi=Ge=>{Ma(Ge,{get shifted(){return w()},get captions(){return _e()},get position(){return R()},get playerSize(){return I()},isMobile:!0})};L(Qi,Ge=>{He().value!=="off"&&Ge(Gi)})}var xo=P(Qi,2);{var En=Ge=>{var jt=Ax();jt.__click=[Ex,U,pi,gr];var pe=_(jt);La(pe,{}),h(jt),b(Ge,jt)};L(xo,Ge=>{d()&&Ge(En)})}var ji=P(xo,2);{var cn=Ge=>{let jt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),pe=g(()=>n()==="ads"),Ct=g(()=>e.canRewindLive&&ge()!==0);Zd(Ge,{get bottomHidden(){return s(jt)},get showControls(){return w()},get bottomNoSmooth(){return k()},get isAds(){return s(pe)},get canRewindLive(){return s(Ct)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ke()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return nt()},get nextButtonActive(){return mt()},get prevButtonActive(){return vt()},get isOneVideoPlaylist(){return zt()},get customFullscreenSupported(){return s(sr)},get endScreenShown(){return s(ar)},toggleFullscreen:vr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:hr,onDisabledSeekToInteractiveClick:lr,get playerControlsWrapperRef(){return s(Po)},set playerControlsWrapperRef(si){B(Po,si,!0)},get playerControlsRef(){return s(_o)},set playerControlsRef(si){B(_o,si,!0)}})};L(ji,Ge=>{Wt()&&Ge(cn)})}var yr=P(ji,2);{var Wr=Ge=>{var jt=Mx(),pe=_(jt);nc(pe,{get supportLink(){return e.supportLink},get returnFocus(){return x0.noop},get ref(){return s(nr)},set ref(Ct){B(nr,Ct,!0)}}),h(jt),b(Ge,jt)};L(yr,Ge=>{U()&&Ge(Wr)})}var Qn=P(yr,2);let ls=g(()=>!s(Dr));Cd(Qn,{get isLive(){return de()},get isHidden(){return s(ls)},get isPlaying(){return ue()},get position(){return R()},get duration(){return G()}});var xr=P(Qn,2);{var Ro=Ge=>{xa(Ge,{})};L(xr,Ge=>{s(Br)&&Ge(Ro)})}var No=P(xr,2);{var Gn=Ge=>{Id(Ge,{})};L(No,Ge=>{xe()&&Ge(Gn)})}var qr=P(No,2);{var Kr=Ge=>{rc(Ge,{onClose:Fn,onSelectAutoQuality:()=>{bn("auto"),Fn()}})};L(qr,Ge=>{s(Wi)&&Ge(Kr)})}b(wt,ai)});var as=P(br,2);it(as,wt=>B(Hn,wt),()=>s(Hn)),h(qt),it(qt,wt=>B(ko,wt),()=>s(ko)),O(()=>De(qt,"aria-label",_r)),Et("click",qt,Hr,!0),Et("focusin",qt,Cn,!0),b(t,qt),H(),o()}dt(["click"]);function Ku(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 w0=require("@vkontakte/videoplayer-shared/es2018");var Nx=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Bx={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 kv(t,e){D(e,!0),W(t,Bx);let[i,o]=Oe(),n=()=>C(J,"$playerSize",i),r=()=>C(E,"$isPlaying$",i),l=()=>C(A,"$duration$",i),d=()=>C(q,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),p=()=>C(k,"$crashed$",i),f=()=>C(R,"$currentSubtitle$",i),v=()=>C(G,"$currentSubtitleCaptions$",i),u=()=>C(I,"$positionExact$",i),$=()=>C(U,"$isLive$",i),w=()=>C(Q,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:k,duration$:A,positionExact$:I,isPlaying$:E,currentSubtitle$:R,currentSubtitleCaptions$:G,positionWithScrubbing$:q,isLive$:U,isRewindableLive$:Q},ui:{playerSize:J,controls:j},actions:{internal:{getVideoElement:ce}}}=Ee(),le=8,ye=Y(!1),ke=ii({}),me=()=>{B(ye,!0)},ae=()=>{B(ye,!1)},Ve=(0,w0.debounceFn)(Sl,260);Ue(()=>{n(),Ve(ce(),j,ke,s(ye))});let re=g(()=>r()?gn(l()-d()):gn(isFinite(l())?l():y()));var N=Nx(),He=_(N);Oa(He,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Te){S(Te)}});var _e=P(He,2);la(_e,()=>"slot",!1,(Te,Ke)=>{Ie(Te,()=>({name:Ba}))});var ge=P(_e,2);let de=g(()=>a()!=="thumb"||p());Va(ge,{get hidden(){return s(de)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ue=P(ge,2);{var xe=Te=>{Ma(Te,{shifted:!1,get captions(){return v()},get position(){return u()},get playerSize(){return n()}})};L(ue,Te=>{f().value!=="off"&&Te(xe)})}var Z=P(ue,2),qe=_(Z);wd(qe,{get isLive(){return $()},get isPlaying(){return r()},get time(){return s(re)}}),h(Z);var Je=P(Z,2);let Pe;var X=_(Je);Ta(X,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:le,tooltipRightOffset:le,get ref(){return ke.timeline},set ref(Te){ke.timeline=Te}}),h(Je),h(N),O(Te=>Pe=te(Je,1,"timeline svelte-1qfjf44",null,Pe,Te),[()=>({visible:s(ye)})]),Et("mouseenter",N,me),Et("mouseleave",N,ae),b(t,N),H(),o()}var Ox=M("<div><!></div>"),Dx={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;
358
358
 
359
359
  /* USER DEFINED COLORS */
360
360
 
@@ -381,11 +381,11 @@ Try switching the\xA0quality to\xA0Auto.`},n1=G_;var vs=new Map;vs.set(ul.Interf
381
381
  rgba(10, 10, 10, 0.48) 86.67%,
382
382
  rgba(10, 10, 10, 0.50) 100%
383
383
  );--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;
384
- /* --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-oba660 {color-scheme:light dark;}.root.visible-outside.svelte-oba660 {overflow:visible;}
384
+ /* --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;}
385
385
 
386
386
  /* 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 {
387
387
  /* --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;}
388
- /* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
388
+ /* 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);}
389
389
 
390
- /* \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 Ev(t,e){D(e,!0),z(t,Ix);let[i,o]=De(),n=()=>C(Zt,"$isLive$",i),r=()=>C(Xt,"$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),$=m(e,"interactiveContainer",7),w=m(e,"interactiveController",7),y=m(e,"subtitles",7),S=m(e,"live",7),T=m(e,"preload",7),k=m(e,"autoplay",7),A=m(e,"volume",7,void 0),I=m(e,"muted",7,void 0),E=m(e,"fromTime",7),V=m(e,"canRewindLive",7),K=m(e,"showAds",7),W=m(e,"adsSlotId",7,void 0),U=m(e,"adsParams",7,void 0),Y=m(e,"adsPreviewParam",7,void 0),ne=m(e,"adsAutoplayParam",7,void 0),G=m(e,"duration",7,void 0),ce=m(e,"logoClickable",7),le=m(e,"logoHidden",7),we=m(e,"isMobile",7),Ve=m(e,"showNextPrevButtons",7,!1),ve=m(e,"nextButtonActive",7,!1),ae=m(e,"prevButtonActive",7,!1),Le=m(e,"endScreenVideoTitle",7,void 0),te=m(e,"endScreenVideoThumb",7,void 0),N=m(e,"isOneVideoPlaylist",7,!1),Be=m(e,"supportLink",7),ye=m(e,"shadowRootContainer",7),ge=m(e,"outerContainerRef",7),de=m(e,"fullScreenTarget",7,void 0),ue=m(e,"failoverHosts",7,void 0),xe=m(e,"showMiniTimer",7,!1),Z=m(e,"saveRate",7),qe=m(e,"seekToInteractive",7,Ba.noop),Je=m(e,"playPrevChapter",7,Ba.noop),ke=m(e,"volumeMultiplier",7),X=m(e,"showAutoplayNext",7),Te=m(e,"showEndScreen",7,!0),Ke=m(e,"keyboardControls",15,void 0),{subscribers:st,stores:pt}=a();Ch(f());let bt=zt(),Ct=f().logoLink,Qe=d().ui.debugPanelVisible,Qt=d().ui.playerSize,Zt=d().state.isLive$,Ot=d().state.isInteractive&&Il.clientChecker.device.isAndroid,ee=j(void 0),Lt=null,me=j(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{isMobile:d().ui.isMobile,mobileUnmuteButtonVisible:d().ui.mobileUnmuteButtonVisible,vsid:d().vsid}),Rh(d(),pt),We(()=>{var q,Dt;d().ui.isMobile.set(we()),(Dt=(q=p().callbacks)==null?void 0:q.onDomReady)==null||Dt.call(q)});let _e=(q=!1)=>{B(me,!0),q?d().actions.external.firstStart(K()):d().actions.internal.firstStart(K())},se=()=>{if(bt.features.qualityDetailsSubMenuEnabled){let q=t1(d().videoId);if(q)switch(q.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,q.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,q.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(q.quality);break}}else{i1(d().videoId),pf()&&d().actions.internal.setTrafficSavingEnabled(!0);let Dt=lf(d().videoId);Dt&&d().actions.internal.setQuality(Dt)}};function Oe(q){var rt,ft,hi;let Dt=l()||q;Dt&&d().initVideo({container:s(ee),sources:Dt,failoverHosts:ue(),subtitles:y(),volumeMultiplier:ke()});let ci=Ba.safeStorage.get(ud)==="true";Qe.set(ci),E()>0&&d().actions.external.seekTime(E());let Gt=we()?bt.volumeDefault:(ft=(rt=A())!=null?rt:iu())!=null?ft:bt.volumeDefault,vt=(hi=I())!=null?hi:Yh();if(d().actions.external.setVolume(Gt),d().actions.external.setMuted(vt),d().getAdmanWrapper().setInitialVolume(vt?0:Gt),se(),bt.features.saveRate&&Z()){let Ht=Xh();Ht&&!n()&&d().actions.internal.setPlaybackRate(Ht)}if(X()){let Ht=e1();Ht&&d().actions.internal.setAutoplayNextEnabled(Ht)}d().ui.isAutoplay.set(k()),k()?_e():T()&&bt.features.preload&&d().actions.internal.preload()}let ze=q=>{if(window.ResizeObserver){let Dt,ci;Lt=new ResizeObserver((0,Ba.throttleFn)(Gt=>{let vt=Gt[0];if(vt.contentBoxSize){let rt=Array.isArray(vt.contentBoxSize)?vt.contentBoxSize[0]:vt.contentBoxSize;Dt=rt.inlineSize,ci=rt.blockSize}else vt.contentRect&&(Dt=vt.contentRect.width,ci=vt.contentRect.height);Qt.set({width:Dt,height:ci})},300)),Lt.observe(q)}Qt.set({width:q.clientWidth,height:q.clientHeight})},Ae=()=>{document.hidden&&d().actions.external.stop()};Bt(()=>{var ci,Gt,vt,rt;Ot&&document.addEventListener("visibilitychange",Ae),bt.debugLog&&d().actions.internal.startLogging(),ze(s(ee));let q=st.map(ft=>ft.init({store:d(),microStores:pt,config:p(),interactiveController:w(),uiConfig:f()})),Dt=()=>{Ot&&document.removeEventListener("visibilitychange",Ae),Lt==null||Lt.disconnect(),q.forEach(ft=>ft.unsubscribe()),d().destroy()};return((ci=S())==null?void 0:ci.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),Dt):((Gt=S())==null?void 0:Gt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),Dt):(((vt=S())==null?void 0:vt.status)==="finished"||((rt=S())==null?void 0:rt.status)==="postlive")&&!(l()&&(0,Il.areValidLiveRecordSources)(l()))?(d().actions.internal.setLiveWaitingRecord(!0),Dt):(Oe(),Dt)});function je(){s(me)?d().actions.external.play():_e(!0)}function Re(){d().actions.external.pause()}function it(q){d().actions.external.setMuted(q)}function At(){d().actions.external.toggleSubtitle()}function Vt(){var q;(q=d().webApi.slotsApi)!=null&&q.haveSlots()&&d().actions.external.hideControls()}function et(){var q;(q=d().webApi.slotsApi)!=null&&q.haveSlots()&&d().actions.external.showControls()}function ni(q){we()||q>=0&&q<=1&&d().actions.external.setVolume(q)}function fi(q){d().actions.internal.seekTime(q,_0.SeekAction.UNKNOWN)}function lt(q){d().actions.external.seekEpisodeStartTime(q)}function ei(){d().actions.external.returnFocusToEpisodes()}function ii(q){d().actions.external.setPlaybackRate(q)}function ui(q){d().actions.external.setAutoQualityLimits(q)}let To=Fu(bt.view),mo=p().playerView==="preview",Xt=d().state.availableSubtitlesList$;if(bt.features.initSubtitles){let q=!1;We(()=>{if(!q&&r().length){q=!0;let Dt=mf();if(Dt){let ci=r().find(Gt=>Gt.language===Dt);d().actions.internal.setSubtitle(ci)}}})}var Si=Ex();let eo;var xt=_(Si);{var _t=q=>{Sv(q,{get store(){return d()},get uiConfig(){return bt},get thumbUrl(){return u()},get interactiveContainer(){return $()},get live(){return S()},get autoplay(){return k()},get canRewindLive(){return V()},get showAds(){return K()},get adsSlotId(){return W()},get adsParams(){return U()},get adsPreviewParam(){return Y()},get adsAutoplayParam(){return ne()},get duration(){return G()},get logoClickable(){return ce()},get logoHidden(){return le()},get logoTargetUrl(){return Ct},get nextButtonActive(){return ve()},get prevButtonActive(){return ae()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return te()},get isOneVideoPlaylist(){return N()},get supportLink(){return Be()},get shadowRootContainer(){return ye()},get outerContainerRef(){return ge()},get fullScreenTarget(){return de()},get showMiniTimer(){return xe()},get playerStarted(){return s(me)},get seekToInteractive(){return qe()},get playPrevChapter(){return Je()},firstStart:_e,seekTime:fi,get showEndScreen(){return Te()},get showAutoplayNext(){return X()},get showNextPrevButtons(){return Ve()},get videoContainer(){return s(ee)},set videoContainer(Dt){B(ee,Dt,!0)}})},Ti=q=>{var Dt=Ue(),ci=fe(Dt);{var Gt=rt=>{Tv(rt,{get thumbUrl(){return u()},get outsideDuration(){return G()},get canRewindLive(){return V()},get videoContainer(){return s(ee)},set videoContainer(ft){B(ee,ft,!0)}})},vt=rt=>{wv(rt,{get store(){return d()},get uiConfig(){return bt},get title(){return v()},get thumbUrl(){return u()},get interactiveContainer(){return $()},get live(){return S()},get autoplay(){return k()},get canRewindLive(){return V()},get showAds(){return K()},get adsSlotId(){return W()},get adsParams(){return U()},get adsPreviewParam(){return Y()},get adsAutoplayParam(){return ne()},get duration(){return G()},get logoClickable(){return ce()},get logoHidden(){return le()},get logoTargetUrl(){return Ct},get nextButtonActive(){return ve()},get prevButtonActive(){return ae()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return te()},get isOneVideoPlaylist(){return N()},get supportLink(){return Be()},get shadowRootContainer(){return ye()},get outerContainerRef(){return ge()},get fullScreenTarget(){return de()},get showMiniTimer(){return xe()},get playerStarted(){return s(me)},get seekToInteractive(){return qe()},get playPrevChapter(){return Je()},firstStart:_e,get showEndScreen(){return Te()},get showAutoplayNext(){return X()},get showNextPrevButtons(){return Ve()},get videoContainer(){return s(ee)},set videoContainer(ft){B(ee,ft,!0)},get keyboardControls(){return Ke()},set keyboardControls(ft){Ke(ft)}})};L(ci,rt=>{mo?rt(Gt):rt(vt,!1)})}b(q,Dt)};L(xt,q=>{we()?q(_t):q(Ti,!1)})}g(Si),O(q=>{eo=J(Si,1,"root svelte-oba660",null,eo,q),at(Si,To)},[()=>({"root--miui-browser":Il.clientChecker.device.isMobile&&Il.clientChecker.browser.isMiuiBrowser,"visible-outside":mo})]),b(t,Si);var Oo=H({initVideo:Oe,play:je,pause:Re,setMuted:it,toggleSubtitle:At,hideControls:Vt,showControls:et,setVolume:ni,seekTime:fi,seekEpisodeStartTime:lt,returnFocusToEpisodes:ei,setPlaybackRate:ii,setAutoQualityLimits:ui,get sources(){return l()},set sources(q){l(q)},get store(){return d()},set store(q){d(q)},get microStoresRoot(){return a()},set microStoresRoot(q){a(q)},get videoConfig(){return p()},set videoConfig(q){p(q)},get uiConfig(){return f()},set uiConfig(q){f(q)},get title(){return v()},set title(q){v(q)},get thumbUrl(){return u()},set thumbUrl(q){u(q)},get interactiveContainer(){return $()},set interactiveContainer(q){$(q)},get interactiveController(){return w()},set interactiveController(q){w(q)},get subtitles(){return y()},set subtitles(q){y(q)},get live(){return S()},set live(q){S(q)},get preload(){return T()},set preload(q){T(q)},get autoplay(){return k()},set autoplay(q){k(q)},get volume(){return A()},set volume(q){A(q)},get muted(){return I()},set muted(q){I(q)},get fromTime(){return E()},set fromTime(q){E(q)},get canRewindLive(){return V()},set canRewindLive(q){V(q)},get showAds(){return K()},set showAds(q){K(q)},get adsSlotId(){return W()},set adsSlotId(q){W(q)},get adsParams(){return U()},set adsParams(q){U(q)},get adsPreviewParam(){return Y()},set adsPreviewParam(q){Y(q)},get adsAutoplayParam(){return ne()},set adsAutoplayParam(q){ne(q)},get duration(){return G()},set duration(q){G(q)},get logoClickable(){return ce()},set logoClickable(q){ce(q)},get logoHidden(){return le()},set logoHidden(q){le(q)},get isMobile(){return we()},set isMobile(q){we(q)},get showNextPrevButtons(){return Ve()},set showNextPrevButtons(q){Ve(q)},get nextButtonActive(){return ve()},set nextButtonActive(q){ve(q)},get prevButtonActive(){return ae()},set prevButtonActive(q){ae(q)},get endScreenVideoTitle(){return Le()},set endScreenVideoTitle(q){Le(q)},get endScreenVideoThumb(){return te()},set endScreenVideoThumb(q){te(q)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(q){N(q)},get supportLink(){return Be()},set supportLink(q){Be(q)},get shadowRootContainer(){return ye()},set shadowRootContainer(q){ye(q)},get outerContainerRef(){return ge()},set outerContainerRef(q){ge(q)},get fullScreenTarget(){return de()},set fullScreenTarget(q){de(q)},get failoverHosts(){return ue()},set failoverHosts(q){ue(q)},get showMiniTimer(){return xe()},set showMiniTimer(q){xe(q)},get saveRate(){return Z()},set saveRate(q){Z(q)},get showAutoplayNext(){return X()},set showAutoplayNext(q){X(q)},get seekToInteractive(){return qe()},set seekToInteractive(q){qe(q)},get playPrevChapter(){return Je()},set playPrevChapter(q){Je(q)},get volumeMultiplier(){return ke()},set volumeMultiplier(q){ke(q)},get showEndScreen(){return Te()},set showEndScreen(q){Te(q)},get keyboardControls(){return Ke()},set keyboardControls(q){Ke(q)}});return o(),Oo}var kx=Se('<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 Iv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=kx();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function kv(t,e){let i=m(e,"isWhite",3,!1),o=h(()=>i()?"color: #fff;":"color: #909499;");Iv(t,{get style(){return s(o)}})}var Px=M('<div class="title svelte-1y9fytq"> </div>'),Ax=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Mx={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 Pv(t,e){z(t,Mx);var i=Ax(),o=_(i);{var n=d=>{var a=Px(),p=_(a,!0);g(a),O(()=>he(p,e.title)),b(d,a)};L(o,d=>{e.title&&d(n)})}var r=P(o,2);{var l=d=>{let a=h(()=>!!e.thumbUrl);kv(d,{get isWhite(){return s(a)}})};L(r,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),O(()=>at(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var Lx=M('<div class="playerError svelte-m5iv29"><!></div>'),Vx={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 Av(t){z(t,Vx);var e=Lx(),i=_(e);Aa(i,{}),g(e),b(t,e)}var Xu=require("@vkontakte/videoplayer-shared/es2018"),Ji=require("@vkontakte/videoplayer-shared/es2018"),mc=require("@vkontakte/videoplayer-core/es2018"),Vl=require("@vkontakte/videoplayer-statistics/es2018");var zu=require("@vkontakte/videoplayer-shared/es2018"),Uu=class{constructor(){this.subscription=new zu.Subscription,this.logger=new zu.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,r]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,r)}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 r,l;let o=$e(e.state.currentPlaybackRate$),n=$e(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(r=navigator.mediaSession).setPositionState)==null||l.call(r,{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 Pl=require("@vkontakte/videoplayer-shared/es2018");var Rx=Se('<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 Mv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Rx();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);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var Nx=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Bx={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 Lv(t,e){D(e,!0),z(t,Bx);let[i,o]=De(),n=()=>C(p,"$interfaceLanguage$",i),r=()=>C(f,"$isMobile$",i),l=Ee(),d=zt(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,u=h(()=>n()&&v("pip_dummy_title")),$=Fu(d.view);var w=Nx();let y;var S=_(w);let T;var k=_(S);Mv(k,{}),g(S);var A=P(S,2),I=_(A,!0);g(A),g(w),O((E,V)=>{y=J(w,1,"player-pip-dummy svelte-1pbsod4",null,y,E),at(w,$),T=J(S,1,"dummy-image svelte-1pbsod4",null,T,V),he(I,s(u))},[()=>({"is-pip-api":a}),()=>({desktop:!r()})]),b(t,w),H(),o()}var Ox=Object.defineProperty,Dx=(t,e,i)=>e in t?Ox(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,kl=(t,e,i)=>Dx(t,typeof e!="symbol"?e+"":e,i),Hx=460,Fx=280,rc=class{constructor({enabled:e=!0}={enabled:!0}){kl(this,"playerDomElement"),kl(this,"playerParentShadowRoot"),kl(this,"playerDummyElement"),kl(this,"svelteContext"),kl(this,"pipWindow"),kl(this,"info",{isActive$:new Pl.ValueSubject(!1),isEnabled$:new Pl.ValueSubject(!1),type:1}),this.info.isEnabled$=new Pl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Pl.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:Hx,height:Fx,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(`
391
- `),n=document.createElement("style");n.textContent=o;let r=this.createStretchedContainer(),l=r.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=ts(Lv,d),(e=this.pipWindow)==null||e.document.body.append(r),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(na(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 b0(t){return t instanceof rc}var Wu=class{static getLatestSupportedVersion(e){let i=new ma(e),o=new rc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function sc(t,e){var n,r;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(r=(n=e[l])!=null?n:t[l])!=null?r:void 0;return o}var $0="Inner error. Unexpectedly root annotation container null reference exception",y0="Annotation with such name already exists",x0="Annotation with such name does not exist";var Al=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Ml=require("@vkontakte/videoplayer-shared/es2018"),Ux="1",zx=100,qu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Ml.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Ml.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"},zx);this.subscriptions.add((0,Ml.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 Al($0);if(this.annotations.has(e))throw new Al(y0);i.style.zIndex=(o=i.style.zIndex)!=null?o:Ux,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 Al(x0);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,r=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||r<0||r+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Oa=require("@vkontakte/videoplayer-shared/es2018"),jo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Oa.assertNonNullable)(e),(0,Oa.assertNonNullable)(i),(0,Oa.assertNonNullable)(n),n.interactiveData&&(0,Oa.assertNonNullable)(o),this.subscription=new Oa.Subscription,this.subscription}};var ac=class extends jo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...re(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(r=>{this.state$.set(r?!0:null)})),o}};var lc=class extends jo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...re(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:r}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=r.state,{controlsVisible:p,isMobile:f}=r.ui,v=$e(f),u=()=>v&&$e(p);return o.add(p.subscribe($=>{if(!v)return;let w=$e(l);$e(a)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(a.subscribe($=>{this.state$.set(!$||u())})),o.add(l.subscribe($=>{if($===null)return;let w=$e(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var dc=class extends jo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=re("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var w0=require("@vkontakte/videoplayer-shared/es2018"),Vv=re(!1),Ku=null,cc=class extends jo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Vv,set:(i,o=!1)=>{i!==$e(Vv)&&(this.clearTimeout(),Vv.set(i),!i&&Ku&&(Ku=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:r}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(a.subscribe(v=>{$e(l)&&v&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,w0.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:p}).subscribe(({isPlaying$:v,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{var w,y;if(!(!v||!($!=null&&$.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Ku===null&&(Ku=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Qu=require("@vkontakte/videoplayer-shared/es2018");var uc=class extends jo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...re(null),toggle:Qu.noop};this.checkIfShouldHide=i=>Os(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:r}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide($e(l)))return;let a=$e(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,u=$e(p),$=$e(f);if(a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1),v.remove(ef),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(r==null?void 0:r.toggleGraphView(!0)),this.state$.set(!0),v.add(ef),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Qu.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}})),o}};var Rv=require("@vkontakte/videoplayer-shared/es2018"),pc=class extends jo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:re(!1),isEnabled$:re(!1),type$:re(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:r,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new Rv.ValueSubject(!1),isEnabled$:new Rv.ValueSubject(!1)}};return o.add(r.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var Yu=require("@vkontakte/videoplayer-shared/es2018");var Gu=require("@vkontakte/videoplayer-shared/es2018"),C0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Wx({maxCount:t}):void 0,e!==0?qx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Wx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Gu.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}}},qx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Gu.safeStorage.get(e)||"{}")}catch(r){return{}}},o=r=>Gu.safeStorage.set(e,JSON.stringify(r)),n=r=>{let l=i();delete l[r],o(l)};return{notificationShowed:r=>{o({...i(),[r]:{timeout:t,launchTime:Date.now()}})},canShowNotification:r=>{let l=i()[r];if(l){let d=Date.now()-l.launchTime>t;return d&&n(r),d}else return!0}}};var fc=class extends jo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:re({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:r,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=C0({maxShowCount:r,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,Yu.filterChanged)(),(0,Yu.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 S0=()=>[ac,lc,dc,cc,uc,pc,fc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var Ll=require("@vkontakte/videoplayer-shared/es2018");var ju=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 Kx=Object.defineProperty,Qx=(t,e,i)=>e in t?Kx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,jt=(t,e,i)=>Qx(t,typeof e!="symbol"?e+"":e,i),Gx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Ji.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,mc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Ln=j(void 0),Zu=class extends HTMLElement{constructor(){super(),jt(this,"svelteStubComponent"),jt(this,"svelteRootComponent"),jt(this,"svelteErrorComponent"),jt(this,"store"),jt(this,"microStoresRoot"),jt(this,"statistics"),jt(this,"sentry"),jt(this,"_shadowRoot"),jt(this,"playerContainer"),jt(this,"rootContainer"),jt(this,"shadowRootContainer"),jt(this,"uiConfig"),jt(this,"coreConfig"),jt(this,"statisticsConfig"),jt(this,"interactiveController"),jt(this,"interactiveContainer"),jt(this,"graphMadePause"),jt(this,"currentPlayingVideoIndex",0),jt(this,"needToRepeatPlaylist",!1),jt(this,"videoConfig"),jt(this,"pictureInPictureApi"),jt(this,"mediaSessionApi"),jt(this,"unsubscribePlayerPhaseSubscription"),jt(this,"logger"),jt(this,"log"),jt(this,"subscription"),jt(this,"interactiveSubscription"),jt(this,"annotationsApi"),jt(this,"slotsApi"),jt(this,"focusManager"),jt(this,"prevIsid"),jt(this,"isInited",!1),jt(this,"internalsExposure",null),jt(this,"shadowDOMCallbacksDisabled",!1),jt(this,"fatalError$",new Xu.ValueSubject(null)),jt(this,"createOneStat",(e,i={})=>{var o,n,r,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:p,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:u,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:T,interactiveData:k}=sc(this.videoConfig,i),A=(o=k==null?void 0:k.projectInfo)==null?void 0:o.pid,I=(r=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?r:!1;I&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new Vl.OneStat({movieId:E,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:V,refDomain:S,deviceId:T,...A&&(!this.isInited||I)&&{projectId:Number(A)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(W){console.error(W),this.log({message:W.message})}}),Ll.devNull.create("ui"),this.logger=new Ji.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Ji.Subscription,this.interactiveSubscription=new Ji.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=ts(Av,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,r=oi({title:o,thumbUrl:n}),l={target:this.playerContainer,props:r};this.svelteStubComponent=ts(Pv,l)}disconnectedCallback(){var e,i,o,n,r,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(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Ll.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:r}=sc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Vl.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:n},{config:this.statisticsConfig,refreshAuthToken:r})}createPlayer(e,i={},o){var n,r,l,d,a,p,f,v,u,$;if(!this.videoConfig)return;let{albumId:w,statPlace:y,statAuthToken:S,preload:T,autoplay:k,volume:A,muted:I,fromTime:E,canRewindLive:V,supportLink:K,showAds:W,adsSlotId:U,adsParams:Y={},adsPreviewParam:ne,adsAutoplayParam:G,interfaceLanguage:ce,isCyrillicRelatedInterface:le,logoClickable:we,logoHidden:Ve,isMobile:ve,isTouch:ae,isAudioDisabled:Le,isLiveCatchUpMode:te,fullScreenTarget:N,failoverHosts:Be,canDownload:ye,callbacks:ge,interactiveData:de,showThumbTimer:ue,additionalButtons:xe=[],additionalSettingsMenuItems:Z=[],additionalContextMenuItems:qe=[],repeat:Je,saveRate:ke,volumeMultiplier:X,showEndScreen:Te,showAutoplayNext:Ke,mediascopePixels:st}=sc(this.videoConfig,i),{sources:pt,title:bt,thumbUrl:Ct,unitedVideoId:Qe,isClip:Qt=!1,duration:Zt,adsParams:Yt={},videoEpisodes:Ot,previewThumbsData:ee,subtitles:Lt,live:me}=e;if(!pt&&!me){let ii=new Error("empty sources and live");this.fatalError$.next(ii),(n=ge.onCrashed)==null||n.call(ge,ii.message);return}let _e={...Y,...Yt},se=this.getNextVideoInfo(),Oe={sources:pt,title:bt,thumbUrl:Ct,subtitles:Lt,unitedVideoId:Qe,isClip:Qt,live:me,albumId:w,statPlace:y,autoplay:k,muted:I,volume:A,fromTime:E,canRewindLive:V,showAds:W,adsSlotId:U,adsParams:_e,adsPreviewParam:ne,adsAutoplayParam:G,duration:Zt,logoClickable:we,logoHidden:Ve,isTouch:ae!=null?ae:ve,repeat:Je,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ze={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Oe)}`});let Ae=(r=this.interactiveController)==null?void 0:r.state.statistics$.getValue(),je=(Ae==null?void 0:Ae.oneStat)||this.createOneStat(e,i),Re=this.createThinOneStat(e,i),it;st&&(it=new Vl.MediascopePixel({pixels:st})),(je||Re)&&(this.statistics=new Eu(je,Re,it,Ae==null?void 0:Ae.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new fa(this.uiConfig.sentry,{version:ca,env:Jc},{movieId:Qe,albumId:w,place:y,autoplay:(l=k&&!this.interactiveController)!=null?l:!1,mobile:ae!=null?ae:ve,clip:Qt}),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,...fa.getInstance()};let Vt=!!de,et=[],ni="tooltip_interactive_go_back_disabled_first";if(Vt&&this.interactiveController){let ii=this.interactiveController.state.isInitialChapter$.getValue(),ui=this.interactiveController.getHistoryState();ii&&et.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||et.push("SEEK_TO_INTERACTIVE_BUTTON"),ui.hasPrevChapter$.getValue()||(et.push("PLAY_PREV_CHAPTER_BUTTON"),ii||(ui.isGoBackLimited$.getValue()?ni="tooltip_interactive_go_back_disabled_limit":ni="tooltip_interactive_go_back_disabled"))}let fi=()=>{var ii;this.isInited=!1,this.prevIsid=void 0;let ui=(o==null?void 0:o.info.isEnded$.getValue())&&((ii=this.interactiveController)==null?void 0:ii.state.isEndChapter$.getValue());ge.onReplayInteractiveVideo&&!ui?ge.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=z1({player:o,interfaceLanguage:ce,isCyrillicRelatedInterface:le,videoId:Qe,isClip:Qt,isLiveCatchUpMode:te,isAudioDisabled:Le,statAuthToken:S,callbacks:ge,webApi:ze,videoEpisodes:Ot,previewThumbsData:ee,canDownload:ye,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:et,isInteractive:Vt,saveRate:ke,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:fi,playPrevChapterDisabledTooltip:ni,hasInteractiveBranches:!!(($=(u=this.interactiveController)==null?void 0:u.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?xe:[],additionalSettingsMenuItems:Z!=null?Z:[],additionalContextMenuItems:qe!=null?qe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Je&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:lt}=this.microStoresRoot=S0(),ei=()=>{var ii,ui,To,mo,Xt,Si;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(xt=>{var _t;return(_t=ge==null?void 0:ge.onCurrentFormatChanged)==null?void 0:_t.call(ge,xt)})),this.subscription.add(lt.interactiveControlsOpacity$.subscribe(xt=>{var _t;xt!==null&&((_t=this==null?void 0:this.interactiveController)==null||_t.setDisabledControls(xt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(xt=>{var _t;return(_t=ge==null?void 0:ge.onThroughputEstimationChanged)==null?void 0:_t.call(ge,xt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(xt=>{var _t;return(_t=ge==null?void 0:ge.onTrafficSavingEnabledChanged)==null?void 0:_t.call(ge,xt)})),this.subscription.add(new Ji.Observable(xt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(_t=>xt.next(_t)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Ji.skip)(1):xt=>xt).subscribe(xt=>{var _t;return(_t=ge==null?void 0:ge.onCurrentPlaybackRateChanged)==null?void 0:_t.call(ge,xt)})),this.subscription.add(this.store.state.volume$.subscribe(xt=>{var _t;return(_t=ge==null?void 0:ge.onVolumeChange)==null?void 0:_t.call(ge,xt)})),this.subscription.add(this.store.state.muted$.subscribe(xt=>{var _t,Ti,Oo,q;if(xt)(_t=ge==null?void 0:ge.onMute)==null||_t.call(ge);else{let Dt=(Oo=((Ti=this.store)==null?void 0:Ti.state.volume$)&&$e(this.store.state.volume$))!=null?Oo:0;(q=ge==null?void 0:ge.onUnmute)==null||q.call(ge,Dt)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(xt=>{var _t;return(_t=ge==null?void 0:ge.onVideoBitrateChanged)==null?void 0:_t.call(ge,xt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(xt=>{var _t;let Ti=(_t=this.store)==null?void 0:_t.ui.controls.disabledControls$;Ti&&(xt&&!Ti.includes(pd)&&Ti.add(pd),xt||Ti.remove(pd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async xt=>{var _t;if(!mc.clientChecker.browser.isSamsungBrowser||!xt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((_t=this.videoConfig)==null?void 0:_t.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(xt=>{var _t;return(_t=ge==null?void 0:ge.onVSIDChanged)==null?void 0:_t.call(ge,xt)})),this.initMediaSession(),B(Ln,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:pt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:bt,thumbUrl:Ct,subtitles:Lt,live:me,preload:T,autoplay:k,muted:I,volume:A,fromTime:E,canRewindLive:V,supportLink:K,showAds:W,adsSlotId:U,adsParams:_e,adsPreviewParam:ne,adsAutoplayParam:G,duration:Zt,logoClickable:we,logoHidden:Ve,isMobile:ae!=null?ae:ve,failoverHosts:Be,fullScreenTarget:N,saveRate:ke,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ue,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:X,showEndScreen:Te,showAutoplayNext:Ke},!0);let eo={target:this.playerContainer,props:s(Ln)};this.svelteRootComponent=ts(Ev,eo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(To=(ui=(ii=this.videoConfig)==null?void 0:ii.callbacks)==null?void 0:ui.onInited)==null||To.call(ui)),(mo=this.internalsExposure)==null||mo.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Si=(Xt=this.videoConfig)==null?void 0:Xt.callbacks)!=null&&Si.onDevNullLog)?Ll.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Ll.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?mc.clientChecker.isInited$.subscribe(ii=>{ii&&(console.log("UI SDK async start"),ei())}):ei()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let r=(i=this.videoConfig)==null?void 0:i.callbacks;r&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=r.onPlayerPhaseChanged)==null?void 0:a.call(r,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=r.onPlaybackStateChanged)==null?void 0:a.call(r,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=r.onIsLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=r.onIsActiveLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=r.onIsAudioAvailableChanged)==null?void 0:a.call(r,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=r.onCurrentQualityChanged)==null?void 0:a.call(r,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=r.onAvailableQualitiesChanged)==null?void 0:a.call(r,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&r.onAudioLanguagesAvailable&&r.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,p;return d?(a=r.onPiPEnter)==null?void 0:a.call(r):(p=r.onPiPExit)==null?void 0:p.call(r)}));let l=r==null?void 0:r.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,Ji.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,r,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?$e(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:u,videoLoader:$}=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:$,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$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let k=this.store;T?k.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):k.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 k=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,k),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:k})=>{var A,I,E,V,K,W;if(!this.store||!this.microStoresRoot)return;let U=w.getValue();if(T==="action-choice"&&k==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(fd)),T==="action-choice-canceled"){let Y=$e(this.store.state.isPlaying$)||U;if(((E=(A=this.videoConfig)==null?void 0:A.isTouch)!=null?E:(I=this.videoConfig)!=null&&I.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(W=(V=this.videoConfig)==null?void 0:(K=V.callbacks).onDisabledInteractiveClick)==null||W.call(K)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:k})=>{this.store&&T==="container-fake-removed"&&k&&this.store.ui.controls.disabledControls$.remove(fd)})),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(k=>{var A,I,E;k.length&&((E=(I=(A=this.videoConfig)==null?void 0:A.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||E.call(I,k))}))}(l=(r=this.videoConfig)==null?void 0:r.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var k,A,I;(I=(k=this.videoConfig)==null?void 0:(A=k.callbacks).onInteractiveChapterChanged)==null||I.call(A,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,k,A,I;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(k=this.videoConfig)==null?void 0:(A=k.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(A)})),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,r,l,d,a,p,f,v,u,$,w,y,S,T,k,A,I,E,V,K,W,U,Y,ne,G,ce,le;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let we=new Error("empty videos");this.fatalError$.next(we),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,we.message);return}else this.fatalError$.next(null);if(this.videoConfig=sc(Gx,(0,Ji.cloneDeepWith)(e,we=>we instanceof HTMLElement?we:void 0)),this.uiConfig=wh((r=i.ui)!=null?r:{}),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((p=this.internalsExposure)!=null||(this.internalsExposure=new Ji.InternalsExposure("UI"))),Ll.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,Xu.now)()]}),(0,Ji.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),(0,Ji.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(S=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.videoConfig.isTouch=(k=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?k:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(E=this.uiConfig.ads.slot)!=null?E:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(V=this.uiConfig.ads.preview)!=null?V:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((K=this.uiConfig.showLogo)!=null?K:!this.videoConfig.logoHidden),(W=this.videoConfig).canRewindLive&&(W.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(U=this.videoConfig.supportLink)!=null?U:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Y=this.uiConfig.features.endScreen)!=null?Y:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(ne=this.uiConfig.features.autoplayNext)!=null?ne: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 we={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Wu.getLatestSupportedVersion(we):this.pictureInPictureApi=new ma(we)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Uu:void 0,this.slotsApi=this.uiConfig.features.slots?new Ou:void 0,this.annotationsApi=this.uiConfig.features.annotations?new qu(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]),b0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(le=this.slotsApi)==null||le.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new ju(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();s(Ln)&&(s(Ln).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Ln).nextButtonActive=this.isNextButtonActive(),s(Ln).prevButtonActive=this.isPrevButtonActive(),s(Ln).endScreenVideoTitle=o.nextVideoTitle,s(Ln).endScreenVideoThumb=o.nextVideoThumb,s(Ln).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,r,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(r=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:r.onNextVideoClick)==null||l.call(r)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,r,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(r=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:r.onPrevVideoClick)==null||l.call(r)}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()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,s(Ln)&&(s(Ln).needToRepeatPlaylist=this.needToRepeatPlaylist,s(Ln).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Ln).nextButtonActive=this.isNextButtonActive(),s(Ln).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}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 r=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&r(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||r(),(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 r;(r=this.store)==null||r.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var r;o||n(),(r=this.store)==null||r.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let r=()=>{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){r();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=r)}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=$e(this.store.state.positionExact$),l=$e(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Ji.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&&na(e)}};var Rl=require("@vkontakte/videoplayer-shared/es2018"),Ju=require("@vkontakte/videoplayer-core/es2018"),Yx=()=>{window.customElements.define("vk-video-player",Zu)};
390
+ /* \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 Pv(t,e){D(e,!0),W(t,Dx);let[i,o]=Oe(),n=()=>C(Jt,"$isLive$",i),r=()=>C(Xt,"$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),$=m(e,"interactiveContainer",7),w=m(e,"interactiveController",7),y=m(e,"subtitles",7),S=m(e,"live",7),T=m(e,"preload",7),k=m(e,"autoplay",7),A=m(e,"volume",7,void 0),I=m(e,"muted",7,void 0),E=m(e,"fromTime",7),R=m(e,"canRewindLive",7),G=m(e,"showAds",7),q=m(e,"adsSlotId",7,void 0),U=m(e,"adsParams",7,void 0),Q=m(e,"adsPreviewParam",7,void 0),J=m(e,"adsAutoplayParam",7,void 0),j=m(e,"duration",7,void 0),ce=m(e,"logoClickable",7),le=m(e,"logoHidden",7),ye=m(e,"isMobile",7),ke=m(e,"showNextPrevButtons",7,!1),me=m(e,"nextButtonActive",7,!1),ae=m(e,"prevButtonActive",7,!1),Ve=m(e,"endScreenVideoTitle",7,void 0),re=m(e,"endScreenVideoThumb",7,void 0),N=m(e,"isOneVideoPlaylist",7,!1),He=m(e,"supportLink",7),_e=m(e,"shadowRootContainer",7),ge=m(e,"outerContainerRef",7),de=m(e,"fullScreenTarget",7,void 0),ue=m(e,"failoverHosts",7,void 0),xe=m(e,"showMiniTimer",7,!1),Z=m(e,"saveRate",7),qe=m(e,"seekToInteractive",7,Da.noop),Je=m(e,"playPrevChapter",7,Da.noop),Pe=m(e,"volumeMultiplier",7),X=m(e,"showAutoplayNext",7),Te=m(e,"showEndScreen",7,!0),Ke=m(e,"keyboardControls",15,void 0),{subscribers:nt,stores:mt}=a();Ih(f());let vt=kt(),Tt=f().logoLink,Qe=d().ui.debugPanelVisible,zt=d().ui.playerSize,Jt=d().state.isLive$,Wt=d().state.isInteractive&&Pl.clientChecker.device.isAndroid,ie=Y(void 0),Nt=null,we=Y(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{isMobile:d().ui.isMobile,mobileUnmuteButtonVisible:d().ui.mobileUnmuteButtonVisible,vsid:d().vsid}),Dh(d(),mt),Ue(()=>{var z,Pt;d().ui.isMobile.set(ye()),(Pt=(z=p().callbacks)==null?void 0:z.onDomReady)==null||Pt.call(z)});let ve=(z=!1)=>{B(we,!0),z?d().actions.external.firstStart(G()):d().actions.internal.firstStart(G())},ne=()=>{if(vt.features.qualityDetailsSubMenuEnabled){let z=s1(d().videoId);if(z)switch(z.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,z.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,z.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(z.quality);break}}else{a1(d().videoId),mf()&&d().actions.internal.setTrafficSavingEnabled(!0);let Pt=cf(d().videoId);Pt&&d().actions.internal.setQuality(Pt)}};function Be(z){var ot,gt,$i;let Pt=l()||z;Pt&&d().initVideo({container:s(ie),sources:Pt,failoverHosts:ue(),subtitles:y(),volumeMultiplier:Pe()});let ci=Da.safeStorage.get(fd)==="true";Qe.set(ci),E()>0&&d().actions.external.seekTime(E());let Lt=ye()?vt.volumeDefault:(gt=(ot=A())!=null?ot:su())!=null?gt:vt.volumeDefault,ct=($i=I())!=null?$i:e1();if(d().actions.external.setVolume(Lt),d().actions.external.setMuted(ct),d().getAdmanWrapper().setInitialVolume(ct?0:Lt),ne(),vt.features.saveRate&&Z()){let Ut=o1();Ut&&!n()&&d().actions.internal.setPlaybackRate(Ut)}if(X()){let Ut=r1();Ut&&d().actions.internal.setAutoplayNextEnabled(Ut)}d().ui.isAutoplay.set(k()),k()?ve():T()&&vt.features.preload&&d().actions.internal.preload()}let ze=z=>{if(window.ResizeObserver){let Pt,ci;Nt=new ResizeObserver((0,Da.throttleFn)(Lt=>{let ct=Lt[0];if(ct.contentBoxSize){let ot=Array.isArray(ct.contentBoxSize)?ct.contentBoxSize[0]:ct.contentBoxSize;Pt=ot.inlineSize,ci=ot.blockSize}else ct.contentRect&&(Pt=ct.contentRect.width,ci=ct.contentRect.height);zt.set({width:Pt,height:ci})},300)),Nt.observe(z)}zt.set({width:z.clientWidth,height:z.clientHeight})},Me=()=>{document.hidden&&d().actions.external.stop()};Ot(()=>{var ci,Lt,ct,ot;Wt&&document.addEventListener("visibilitychange",Me),vt.debugLog&&d().actions.internal.startLogging(),ze(s(ie));let z=nt.map(gt=>gt.init({store:d(),microStores:mt,config:p(),interactiveController:w(),uiConfig:f()})),Pt=()=>{Wt&&document.removeEventListener("visibilitychange",Me),Nt==null||Nt.disconnect(),z.forEach(gt=>gt.unsubscribe()),d().destroy()};return((ci=S())==null?void 0:ci.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),Pt):((Lt=S())==null?void 0:Lt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),Pt):(((ct=S())==null?void 0:ct.status)==="finished"||((ot=S())==null?void 0:ot.status)==="postlive")&&!(l()&&(0,Pl.areValidLiveRecordSources)(l()))?(d().actions.internal.setLiveWaitingRecord(!0),Pt):(Be(),Pt)});function We(){s(we)?d().actions.external.play():ve(!0)}function Re(){d().actions.external.pause()}function tt(z){d().actions.external.setMuted(z)}function Mt(){d().actions.external.toggleSubtitle()}function Qt(){var z;(z=d().webApi.slotsApi)!=null&&z.haveSlots()&&d().actions.external.hideControls()}function et(){var z;(z=d().webApi.slotsApi)!=null&&z.haveSlots()&&d().actions.external.showControls()}function pi(z){ye()||z>=0&&z<=1&&d().actions.external.setVolume(z)}function oi(z){d().actions.internal.seekTime(z,C0.SeekAction.UNKNOWN)}function st(z){d().actions.external.seekEpisodeStartTime(z)}function Gt(){d().actions.external.returnFocusToEpisodes()}function ni(z){d().actions.external.setPlaybackRate(z)}function mi(z){d().actions.external.setAutoQualityLimits(z)}let go=Ku(vt.view),io=p().playerView==="preview",Xt=d().state.availableSubtitlesList$;if(vt.features.initSubtitles){let z=!1;Ue(()=>{if(!z&&r().length){z=!0;let Pt;if(vt.features.userVideoPrefs&&d().videoId){let Lt=du(vt.userSalt,String(d().videoId));Lt!=null&&Lt.subtitleTrackId&&(Pt=r().find(ct=>ct.value===Lt.subtitleTrackId))}let ci=gf();ci&&(Pt!=null||(Pt=r().find(Lt=>Lt.language===ci))),d().actions.internal.setSubtitle(Pt)}})}var Ii=Ox();let oo;var yt=_(Ii);{var bt=z=>{Iv(z,{get store(){return d()},get uiConfig(){return vt},get thumbUrl(){return u()},get interactiveContainer(){return $()},get live(){return S()},get autoplay(){return k()},get canRewindLive(){return R()},get showAds(){return G()},get adsSlotId(){return q()},get adsParams(){return U()},get adsPreviewParam(){return Q()},get adsAutoplayParam(){return J()},get duration(){return j()},get logoClickable(){return ce()},get logoHidden(){return le()},get logoTargetUrl(){return Tt},get nextButtonActive(){return me()},get prevButtonActive(){return ae()},get endScreenVideoTitle(){return Ve()},get endScreenVideoThumb(){return re()},get isOneVideoPlaylist(){return N()},get supportLink(){return He()},get shadowRootContainer(){return _e()},get outerContainerRef(){return ge()},get fullScreenTarget(){return de()},get showMiniTimer(){return xe()},get playerStarted(){return s(we)},get seekToInteractive(){return qe()},get playPrevChapter(){return Je()},firstStart:ve,seekTime:oi,get showEndScreen(){return Te()},get showAutoplayNext(){return X()},get showNextPrevButtons(){return ke()},get videoContainer(){return s(ie)},set videoContainer(Pt){B(ie,Pt,!0)}})},Vi=z=>{var Pt=Fe(),ci=fe(Pt);{var Lt=ot=>{kv(ot,{get thumbUrl(){return u()},get outsideDuration(){return j()},get canRewindLive(){return R()},get videoContainer(){return s(ie)},set videoContainer(gt){B(ie,gt,!0)}})},ct=ot=>{Tv(ot,{get store(){return d()},get uiConfig(){return vt},get title(){return v()},get thumbUrl(){return u()},get interactiveContainer(){return $()},get live(){return S()},get autoplay(){return k()},get canRewindLive(){return R()},get showAds(){return G()},get adsSlotId(){return q()},get adsParams(){return U()},get adsPreviewParam(){return Q()},get adsAutoplayParam(){return J()},get duration(){return j()},get logoClickable(){return ce()},get logoHidden(){return le()},get logoTargetUrl(){return Tt},get nextButtonActive(){return me()},get prevButtonActive(){return ae()},get endScreenVideoTitle(){return Ve()},get endScreenVideoThumb(){return re()},get isOneVideoPlaylist(){return N()},get supportLink(){return He()},get shadowRootContainer(){return _e()},get outerContainerRef(){return ge()},get fullScreenTarget(){return de()},get showMiniTimer(){return xe()},get playerStarted(){return s(we)},get seekToInteractive(){return qe()},get playPrevChapter(){return Je()},firstStart:ve,get showEndScreen(){return Te()},get showAutoplayNext(){return X()},get showNextPrevButtons(){return ke()},get videoContainer(){return s(ie)},set videoContainer(gt){B(ie,gt,!0)},get keyboardControls(){return Ke()},set keyboardControls(gt){Ke(gt)}})};L(ci,ot=>{io?ot(Lt):ot(ct,!1)})}b(z,Pt)};L(yt,z=>{ye()?z(bt):z(Vi,!1)})}h(Ii),O(z=>{oo=te(Ii,1,"root svelte-16kg8zb",null,oo,z),at(Ii,go)},[()=>({"root--miui-browser":Pl.clientChecker.device.isMobile&&Pl.clientChecker.browser.isMiuiBrowser,"visible-outside":io})]),b(t,Ii);var qo=H({initVideo:Be,play:We,pause:Re,setMuted:tt,toggleSubtitle:Mt,hideControls:Qt,showControls:et,setVolume:pi,seekTime:oi,seekEpisodeStartTime:st,returnFocusToEpisodes:Gt,setPlaybackRate:ni,setAutoQualityLimits:mi,get sources(){return l()},set sources(z){l(z)},get store(){return d()},set store(z){d(z)},get microStoresRoot(){return a()},set microStoresRoot(z){a(z)},get videoConfig(){return p()},set videoConfig(z){p(z)},get uiConfig(){return f()},set uiConfig(z){f(z)},get title(){return v()},set title(z){v(z)},get thumbUrl(){return u()},set thumbUrl(z){u(z)},get interactiveContainer(){return $()},set interactiveContainer(z){$(z)},get interactiveController(){return w()},set interactiveController(z){w(z)},get subtitles(){return y()},set subtitles(z){y(z)},get live(){return S()},set live(z){S(z)},get preload(){return T()},set preload(z){T(z)},get autoplay(){return k()},set autoplay(z){k(z)},get volume(){return A()},set volume(z){A(z)},get muted(){return I()},set muted(z){I(z)},get fromTime(){return E()},set fromTime(z){E(z)},get canRewindLive(){return R()},set canRewindLive(z){R(z)},get showAds(){return G()},set showAds(z){G(z)},get adsSlotId(){return q()},set adsSlotId(z){q(z)},get adsParams(){return U()},set adsParams(z){U(z)},get adsPreviewParam(){return Q()},set adsPreviewParam(z){Q(z)},get adsAutoplayParam(){return J()},set adsAutoplayParam(z){J(z)},get duration(){return j()},set duration(z){j(z)},get logoClickable(){return ce()},set logoClickable(z){ce(z)},get logoHidden(){return le()},set logoHidden(z){le(z)},get isMobile(){return ye()},set isMobile(z){ye(z)},get showNextPrevButtons(){return ke()},set showNextPrevButtons(z){ke(z)},get nextButtonActive(){return me()},set nextButtonActive(z){me(z)},get prevButtonActive(){return ae()},set prevButtonActive(z){ae(z)},get endScreenVideoTitle(){return Ve()},set endScreenVideoTitle(z){Ve(z)},get endScreenVideoThumb(){return re()},set endScreenVideoThumb(z){re(z)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(z){N(z)},get supportLink(){return He()},set supportLink(z){He(z)},get shadowRootContainer(){return _e()},set shadowRootContainer(z){_e(z)},get outerContainerRef(){return ge()},set outerContainerRef(z){ge(z)},get fullScreenTarget(){return de()},set fullScreenTarget(z){de(z)},get failoverHosts(){return ue()},set failoverHosts(z){ue(z)},get showMiniTimer(){return xe()},set showMiniTimer(z){xe(z)},get saveRate(){return Z()},set saveRate(z){Z(z)},get showAutoplayNext(){return X()},set showAutoplayNext(z){X(z)},get seekToInteractive(){return qe()},set seekToInteractive(z){qe(z)},get playPrevChapter(){return Je()},set playPrevChapter(z){Je(z)},get volumeMultiplier(){return Pe()},set volumeMultiplier(z){Pe(z)},get showEndScreen(){return Te()},set showEndScreen(z){Te(z)},get keyboardControls(){return Ke()},set keyboardControls(z){Ke(z)}});return o(),qo}var Hx=Se('<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 Av(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Hx();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}function Mv(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Av(t,{get style(){return s(o)}})}var Fx=M('<div class="title svelte-1y9fytq"> </div>'),Ux=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),zx={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 Lv(t,e){W(t,zx);var i=Ux(),o=_(i);{var n=d=>{var a=Fx(),p=_(a,!0);h(a),O(()=>he(p,e.title)),b(d,a)};L(o,d=>{e.title&&d(n)})}var r=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);Mv(d,{get isWhite(){return s(a)}})};L(r,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),O(()=>at(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var Wx=M('<div class="playerError svelte-m5iv29"><!></div>'),qx={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 Vv(t){W(t,qx);var e=Wx(),i=_(e);La(i,{}),h(e),b(t,e)}var op=require("@vkontakte/videoplayer-shared/es2018"),to=require("@vkontakte/videoplayer-shared/es2018"),gc=require("@vkontakte/videoplayer-core/es2018"),Nl=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,r]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,r)}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 r,l;let o=$e(e.state.currentPlaybackRate$),n=$e(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(r=navigator.mediaSession).setPositionState)==null||l.call(r,{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 Kx=Se('<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 Rv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Kx();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);be(n,()=>{var r;return(r=e.children)!=null?r:se}),Ce(),h(o),b(t,o)}var Qx=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Gx={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 Nv(t,e){D(e,!0),W(t,Gx);let[i,o]=Oe(),n=()=>C(p,"$interfaceLanguage$",i),r=()=>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")),$=Ku(d.view);var w=Qx();let y;var S=_(w);let T;var k=_(S);Rv(k,{}),h(S);var A=P(S,2),I=_(A,!0);h(A),h(w),O((E,R)=>{y=te(w,1,"player-pip-dummy svelte-1pbsod4",null,y,E),at(w,$),T=te(S,1,"dummy-image svelte-1pbsod4",null,T,R),he(I,s(u))},[()=>({"is-pip-api":a}),()=>({desktop:!r()})]),b(t,w),H(),o()}var jx=Object.defineProperty,Yx=(t,e,i)=>e in t?jx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Al=(t,e,i)=>Yx(t,typeof e!="symbol"?e+"":e,i),Zx=460,Xx=280,ac=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:Zx,height:Xx,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(`
391
+ `),n=document.createElement("style");n.textContent=o;let r=this.createStretchedContainer(),l=r.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=es(Nv,d),(e=this.pipWindow)==null||e.document.body.append(r),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 S0(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,r;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(r=(n=e[l])!=null?n:t[l])!=null?r:void 0;return o}var T0="Inner error. Unexpectedly root annotation container null reference exception",E0="Annotation with such name already exists",I0="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"),Jx="1",e5=100,Yu=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"},e5);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(T0);if(this.annotations.has(e))throw new Ll(E0);i.style.zIndex=(o=i.style.zIndex)!=null?o:Jx,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(I0);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,r=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||r<0||r+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"),en=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 en{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...oe(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(r=>{this.state$.set(r?!0:null)})),o}};var cc=class extends en{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...oe(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:r}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=r.state,{controlsVisible:p,isMobile:f}=r.ui,v=$e(f),u=()=>v&&$e(p);return o.add(p.subscribe($=>{if(!v)return;let w=$e(l);$e(a)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(a.subscribe($=>{this.state$.set(!$||u())})),o.add(l.subscribe($=>{if($===null)return;let w=$e(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var uc=class extends en{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=oe("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var k0=require("@vkontakte/videoplayer-shared/es2018"),Bv=oe(!1),Zu=null,pc=class extends en{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Bv,set:(i,o=!1)=>{i!==$e(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:r}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(a.subscribe(v=>{$e(l)&&v&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,k0.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:p}).subscribe(({isPlaying$:v,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{var w,y;if(!(!v||!($!=null&&$.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Zu===null&&(Zu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Xu=require("@vkontakte/videoplayer-shared/es2018");var fc=class extends en{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...oe(null),toggle:Xu.noop};this.checkIfShouldHide=i=>Fs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:r}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide($e(l)))return;let a=$e(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,u=$e(p),$=$e(f);if(a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1),v.remove(of),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(r==null?void 0:r.toggleGraphView(!0)),this.state$.set(!0),v.add(of),!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(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}})),o}};var Ov=require("@vkontakte/videoplayer-shared/es2018"),mc=class extends en{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:oe(!1),isEnabled$:oe(!1),type$:oe(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:r,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new Ov.ValueSubject(!1),isEnabled$:new Ov.ValueSubject(!1)}};return o.add(r.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"),P0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?t5({maxCount:t}):void 0,e!==0?i5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},t5=({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}}},i5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ju.safeStorage.get(e)||"{}")}catch(r){return{}}},o=r=>Ju.safeStorage.set(e,JSON.stringify(r)),n=r=>{let l=i();delete l[r],o(l)};return{notificationShowed:r=>{o({...i(),[r]:{timeout:t,launchTime:Date.now()}})},canShowNotification:r=>{let l=i()[r];if(l){let d=Date.now()-l.launchTime>t;return d&&n(r),d}else return!0}}};var vc=class extends en{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:oe({}),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:r,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=P0({maxShowCount:r,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 A0=()=>[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 Rl=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 o5=Object.defineProperty,n5=(t,e,i)=>e in t?o5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Yt=(t,e,i)=>n5(t,typeof e!="symbol"?e+"":e,i),r5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:to.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},Rn=Y(void 0),ip=class extends HTMLElement{constructor(){super(),Yt(this,"svelteStubComponent"),Yt(this,"svelteRootComponent"),Yt(this,"svelteErrorComponent"),Yt(this,"store"),Yt(this,"microStoresRoot"),Yt(this,"statistics"),Yt(this,"sentry"),Yt(this,"_shadowRoot"),Yt(this,"playerContainer"),Yt(this,"rootContainer"),Yt(this,"shadowRootContainer"),Yt(this,"uiConfig"),Yt(this,"coreConfig"),Yt(this,"statisticsConfig"),Yt(this,"interactiveController"),Yt(this,"interactiveContainer"),Yt(this,"graphMadePause"),Yt(this,"currentPlayingVideoIndex",0),Yt(this,"needToRepeatPlaylist",!1),Yt(this,"videoConfig"),Yt(this,"pictureInPictureApi"),Yt(this,"mediaSessionApi"),Yt(this,"unsubscribePlayerPhaseSubscription"),Yt(this,"logger"),Yt(this,"log"),Yt(this,"subscription"),Yt(this,"interactiveSubscription"),Yt(this,"annotationsApi"),Yt(this,"slotsApi"),Yt(this,"focusManager"),Yt(this,"prevIsid"),Yt(this,"isInited",!1),Yt(this,"internalsExposure",null),Yt(this,"shadowDOMCallbacksDisabled",!1),Yt(this,"fatalError$",new op.ValueSubject(null)),Yt(this,"createOneStat",(e,i={})=>{var o,n,r,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:p,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:u,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:T,interactiveData:k}=lc(this.videoConfig,i),A=(o=k==null?void 0:k.projectInfo)==null?void 0:o.pid,I=(r=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?r:!1;I&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:R=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new Nl.OneStat({movieId:E,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:R,refDomain:S,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview",...A&&(!this.isInited||I)&&{projectId:Number(A)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(q){console.error(q),this.log({message:q.message})}}),Rl.devNull.create("ui"),this.logger=new to.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new to.Subscription,this.interactiveSubscription=new to.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=es(Vv,{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,r=ii({title:o,thumbUrl:n}),l={target:this.playerContainer,props:r};this.svelteStubComponent=es(Lv,l)}disconnectedCallback(){var e,i,o,n,r,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(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.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:r}=lc(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:r})}createPlayer(e,i={},o){var n,r,l,d,a,p,f,v,u,$;if(!this.videoConfig)return;let{albumId:w,statPlace:y,statAuthToken:S,preload:T,autoplay:k,volume:A,muted:I,fromTime:E,canRewindLive:R,supportLink:G,showAds:q,adsSlotId:U,adsParams:Q={},adsPreviewParam:J,adsAutoplayParam:j,interfaceLanguage:ce,isCyrillicRelatedInterface:le,logoClickable:ye,logoHidden:ke,isMobile:me,isTouch:ae,isAudioDisabled:Ve,isLiveCatchUpMode:re,fullScreenTarget:N,failoverHosts:He,canDownload:_e,callbacks:ge,interactiveData:de,showThumbTimer:ue,additionalButtons:xe=[],additionalSettingsMenuItems:Z=[],additionalContextMenuItems:qe=[],repeat:Je,saveRate:Pe,volumeMultiplier:X,showEndScreen:Te,showAutoplayNext:Ke,mediascopePixels:nt}=lc(this.videoConfig,i),{sources:mt,title:vt,thumbUrl:Tt,unitedVideoId:Qe,isClip:zt=!1,duration:Jt,adsParams:Zt={},videoEpisodes:Wt,previewThumbsData:ie,subtitles:Nt,live:we}=e;if(!mt&&!we){let ni=new Error("empty sources and live");this.fatalError$.next(ni),(n=ge.onCrashed)==null||n.call(ge,ni.message);return}let ve={...Q,...Zt},ne=this.getNextVideoInfo(),Be={sources:mt,title:vt,thumbUrl:Tt,subtitles:Nt,unitedVideoId:Qe,isClip:zt,live:we,albumId:w,statPlace:y,autoplay:k,muted:I,volume:A,fromTime:E,canRewindLive:R,showAds:q,adsSlotId:U,adsParams:ve,adsPreviewParam:J,adsAutoplayParam:j,duration:Jt,logoClickable:ye,logoHidden:ke,isTouch:ae!=null?ae:me,repeat:Je,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ne.nextVideoTitle,endScreenVideoThumb:ne.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ze={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Be)}`});let Me=(r=this.interactiveController)==null?void 0:r.state.statistics$.getValue(),We=(Me==null?void 0:Me.oneStat)||this.createOneStat(e,i),Re=this.createThinOneStat(e,i),tt;nt&&(tt=new Nl.MediascopePixel({pixels:nt})),(We||Re)&&(this.statistics=new Mu(We,Re,tt,Me==null?void 0:Me.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new va(this.uiConfig.sentry,{version:pa,env:ou},{movieId:Qe,albumId:w,place:y,autoplay:(l=k&&!this.interactiveController)!=null?l:!1,mobile:ae!=null?ae:me,clip:zt}),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=!!de,et=[],pi="tooltip_interactive_go_back_disabled_first";if(Qt&&this.interactiveController){let ni=this.interactiveController.state.isInitialChapter$.getValue(),mi=this.interactiveController.getHistoryState();ni&&et.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||et.push("SEEK_TO_INTERACTIVE_BUTTON"),mi.hasPrevChapter$.getValue()||(et.push("PLAY_PREV_CHAPTER_BUTTON"),ni||(mi.isGoBackLimited$.getValue()?pi="tooltip_interactive_go_back_disabled_limit":pi="tooltip_interactive_go_back_disabled"))}let oi=()=>{var ni;this.isInited=!1,this.prevIsid=void 0;let mi=(o==null?void 0:o.info.isEnded$.getValue())&&((ni=this.interactiveController)==null?void 0:ni.state.isEndChapter$.getValue());ge.onReplayInteractiveVideo&&!mi?ge.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=j1({player:o,interfaceLanguage:ce,isCyrillicRelatedInterface:le,videoId:Qe,isClip:zt,isLiveCatchUpMode:re,isAudioDisabled:Ve,statAuthToken:S,callbacks:ge,webApi:ze,videoEpisodes:Wt,previewThumbsData:ie,canDownload:_e,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:et,isInteractive:Qt,saveRate:Pe,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:oi,playPrevChapterDisabledTooltip:pi,hasInteractiveBranches:!!(($=(u=this.interactiveController)==null?void 0:u.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?xe:[],additionalSettingsMenuItems:Z!=null?Z:[],additionalContextMenuItems:qe!=null?qe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Je&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:st}=this.microStoresRoot=A0(),Gt=()=>{var ni,mi,go,io,Xt,Ii;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(yt=>{var bt;return(bt=ge==null?void 0:ge.onCurrentFormatChanged)==null?void 0:bt.call(ge,yt)})),this.subscription.add(st.interactiveControlsOpacity$.subscribe(yt=>{var bt;yt!==null&&((bt=this==null?void 0:this.interactiveController)==null||bt.setDisabledControls(yt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(yt=>{var bt;return(bt=ge==null?void 0:ge.onThroughputEstimationChanged)==null?void 0:bt.call(ge,yt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(yt=>{var bt;return(bt=ge==null?void 0:ge.onTrafficSavingEnabledChanged)==null?void 0:bt.call(ge,yt)})),this.subscription.add(new to.Observable(yt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(bt=>yt.next(bt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,to.skip)(1):yt=>yt).subscribe(yt=>{var bt;return(bt=ge==null?void 0:ge.onCurrentPlaybackRateChanged)==null?void 0:bt.call(ge,yt)})),this.subscription.add(this.store.state.volume$.subscribe(yt=>{var bt;return(bt=ge==null?void 0:ge.onVolumeChange)==null?void 0:bt.call(ge,yt)})),this.subscription.add(this.store.state.muted$.subscribe(yt=>{var bt,Vi,qo,z;if(yt)(bt=ge==null?void 0:ge.onMute)==null||bt.call(ge);else{let Pt=(qo=((Vi=this.store)==null?void 0:Vi.state.volume$)&&$e(this.store.state.volume$))!=null?qo:0;(z=ge==null?void 0:ge.onUnmute)==null||z.call(ge,Pt)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(yt=>{var bt;return(bt=ge==null?void 0:ge.onVideoBitrateChanged)==null?void 0:bt.call(ge,yt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(yt=>{var bt;let Vi=(bt=this.store)==null?void 0:bt.ui.controls.disabledControls$;Vi&&(yt&&!Vi.includes(md)&&Vi.add(md),yt||Vi.remove(md))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async yt=>{var bt;if(!gc.clientChecker.browser.isSamsungBrowser||!yt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((bt=this.videoConfig)==null?void 0:bt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(yt=>{var bt;return(bt=ge==null?void 0:ge.onVSIDChanged)==null?void 0:bt.call(ge,yt)})),this.initMediaSession(),B(Rn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:mt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:vt,thumbUrl:Tt,subtitles:Nt,live:we,preload:T,autoplay:k,muted:I,volume:A,fromTime:E,canRewindLive:R,supportLink:G,showAds:q,adsSlotId:U,adsParams:ve,adsPreviewParam:J,adsAutoplayParam:j,duration:Jt,logoClickable:ye,logoHidden:ke,isMobile:ae!=null?ae:me,failoverHosts:He,fullScreenTarget:N,saveRate:Pe,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ue,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:X,showEndScreen:Te,showAutoplayNext:Ke},!0);let oo={target:this.playerContainer,props:s(Rn)};this.svelteRootComponent=es(Pv,oo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(go=(mi=(ni=this.videoConfig)==null?void 0:ni.callbacks)==null?void 0:mi.onInited)==null||go.call(mi)),(io=this.internalsExposure)==null||io.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ii=(Xt=this.videoConfig)==null?void 0:Xt.callbacks)!=null&&Ii.onDevNullLog)?Rl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Rl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?gc.clientChecker.isInited$.subscribe(ni=>{ni&&(console.log("UI SDK async start"),Gt())}):Gt()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let r=(i=this.videoConfig)==null?void 0:i.callbacks;r&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=r.onPlayerPhaseChanged)==null?void 0:a.call(r,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=r.onPlaybackStateChanged)==null?void 0:a.call(r,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=r.onIsLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=r.onIsActiveLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=r.onIsAudioAvailableChanged)==null?void 0:a.call(r,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=r.onCurrentQualityChanged)==null?void 0:a.call(r,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=r.onAvailableQualitiesChanged)==null?void 0:a.call(r,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&r.onAudioLanguagesAvailable&&r.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,p;return d?(a=r.onPiPEnter)==null?void 0:a.call(r):(p=r.onPiPExit)==null?void 0:p.call(r)}));let l=r==null?void 0:r.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,to.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,r,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?$e(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:u,videoLoader:$}=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:$,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$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let k=this.store;T?k.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):k.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 k=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,k),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:k})=>{var A,I,E,R,G,q;if(!this.store||!this.microStoresRoot)return;let U=w.getValue();if(T==="action-choice"&&k==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(vd)),T==="action-choice-canceled"){let Q=$e(this.store.state.isPlaying$)||U;if(((E=(A=this.videoConfig)==null?void 0:A.isTouch)!=null?E:(I=this.videoConfig)!=null&&I.isMobile)&&Q){this.store.ui.interactiveHideMobileControls.set(!0);return}(q=(R=this.videoConfig)==null?void 0:(G=R.callbacks).onDisabledInteractiveClick)==null||q.call(G)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:k})=>{this.store&&T==="container-fake-removed"&&k&&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(k=>{var A,I,E;k.length&&((E=(I=(A=this.videoConfig)==null?void 0:A.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||E.call(I,k))}))}(l=(r=this.videoConfig)==null?void 0:r.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var k,A,I;(I=(k=this.videoConfig)==null?void 0:(A=k.callbacks).onInteractiveChapterChanged)==null||I.call(A,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,k,A,I;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(k=this.videoConfig)==null?void 0:(A=k.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(A)})),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,r,l,d,a,p,f,v,u,$,w,y,S,T,k,A,I,E,R,G,q,U,Q,J,j,ce,le;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let ye=new Error("empty videos");this.fatalError$.next(ye),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,ye.message);return}else this.fatalError$.next(null);if(this.videoConfig=lc(r5,(0,to.cloneDeepWith)(e,ye=>ye instanceof HTMLElement?ye:void 0)),this.uiConfig=Eh((r=i.ui)!=null?r:{}),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 to.InternalsExposure("UI"))),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,op.now)()]}),(0,to.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),(0,to.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(S=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.videoConfig.isTouch=(k=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?k:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(E=this.uiConfig.ads.slot)!=null?E:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(R=this.uiConfig.ads.preview)!=null?R:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((G=this.uiConfig.showLogo)!=null?G:!this.videoConfig.logoHidden),(q=this.videoConfig).canRewindLive&&(q.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(U=this.videoConfig.supportLink)!=null?U:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Q=this.uiConfig.features.endScreen)!=null?Q:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(J=this.uiConfig.features.autoplayNext)!=null?J:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(j=this.uiConfig.features.nextPrevButtons)!=null?j: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 ye={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=ju.getLatestSupportedVersion(ye):this.pictureInPictureApi=new ga(ye)}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]),S0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(le=this.slotsApi)==null||le.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();s(Rn)&&(s(Rn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Rn).nextButtonActive=this.isNextButtonActive(),s(Rn).prevButtonActive=this.isPrevButtonActive(),s(Rn).endScreenVideoTitle=o.nextVideoTitle,s(Rn).endScreenVideoThumb=o.nextVideoThumb,s(Rn).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,r,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(r=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:r.onNextVideoClick)==null||l.call(r)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,r,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(r=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:r.onPrevVideoClick)==null||l.call(r)}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()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,s(Rn)&&(s(Rn).needToRepeatPlaylist=this.needToRepeatPlaylist,s(Rn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Rn).nextButtonActive=this.isNextButtonActive(),s(Rn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}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 r=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&r(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||r(),(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 r;(r=this.store)==null||r.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var r;o||n(),(r=this.store)==null||r.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let r=()=>{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){r();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=r)}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=$e(this.store.state.positionExact$),l=$e(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,to.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"),s5=()=>{window.customElements.define("vk-video-player",ip)};