@vkontakte/videoplayer 1.1.75-dev.3ba5a3c2.0 → 1.1.76-dev.9523ea02.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.75-dev.3ba5a3c2.0
3
- * Mon, 27 Oct 2025 11:43:16 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-75/doc/
2
+ * @vkontakte/videoplayer v1.1.76-dev.9523ea02.0
3
+ * Wed, 29 Oct 2025 15:15:02 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-76/doc/
5
5
  */
6
- "use strict";var V_=Object.create;var pd=Object.defineProperty;var R_=Object.getOwnPropertyDescriptor;var N_=Object.getOwnPropertyNames;var O_=Object.getPrototypeOf,D_=Object.prototype.hasOwnProperty;var Ig=t=>{throw TypeError(t)};var B_=(t,e,i)=>e in t?pd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var H_=(t,e)=>{for(var i in e)pd(t,i,{get:e[i],enumerable:!0})},kg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N_(e))!D_.call(t,r)&&r!==i&&pd(t,r,{get:()=>e[r],enumerable:!(o=R_(e,r))||o.enumerable});return t};var Ag=(t,e,i)=>(i=t!=null?V_(O_(t)):{},kg(e||!t||!t.__esModule?pd(i,"default",{value:t,enumerable:!0}):i,t)),F_=t=>kg(pd({},"__esModule",{value:!0}),t);var er=(t,e,i)=>B_(t,typeof e!="symbol"?e+"":e,i),Op=(t,e,i)=>e.has(t)||Ig("Cannot "+i);var Di=(t,e,i)=>(Op(t,e,"read from private field"),i?i.call(t):e.get(t)),Bs=(t,e,i)=>e.has(t)?Ig("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),ul=(t,e,i,o)=>(Op(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Pg=(t,e,i)=>(Op(t,e,"access private method"),i);var Aw={};H_(Aw,{ControlButtonType:()=>vc,GridTypes:()=>Yr,InterfaceLanguage:()=>ad.InterfaceLanguage,MenuItemType:()=>Ul,PlayerPhase:()=>Zr,VERSION:()=>ka,VKNumericLanguage:()=>ad.VKNumericLanguage,VideoFormat:()=>Pp.VideoFormat,VideoQuality:()=>Pp.VideoQuality,loadVKLangPack:()=>ad.loadVKLangPack,registerPlayerWebComponent:()=>kw});module.exports=F_(Aw);var Hs="[",Fs="[!",pa="]",os={};var to=Symbol(),Nn=Symbol("filename"),Mg=Symbol("hmr"),Lg="http://www.w3.org/1999/xhtml",Jc="http://www.w3.org/2000/svg";var Dp="@attach";var eu=!0;var Rg,Ng,Vg=(Ng=(Rg=globalThis.process)==null?void 0:Rg.env)==null?void 0:Ng.NODE_ENV,Le=Vg&&!Vg.toLowerCase().startsWith("prod");var tr=Array.isArray,Og=Array.prototype.indexOf,fd=Array.from,Bp=Object.keys,lo=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,tu=Object.getOwnPropertyDescriptors,Hp=Object.prototype,Dg=Array.prototype,fa=Object.getPrototypeOf,Fp=Object.isExtensible;function Us(t){return typeof t=="function"}var ce=()=>{};function Bg(t){return t()}function zs(t){for(var e=0;e<t.length;e++)t[e]()}var Wo=Symbol("$state"),pl=Symbol("legacy props"),Hg=Symbol(""),iu=Symbol("proxy path"),ou=1,fl=3,ir=8;function nu(t){return t===this.v}function vl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Fg(t,e){return t!==e}function ml(t){return!vl(t,this.v)}function Ug(){if(Le){let t=new Error(`derived_references_self
6
+ "use strict";var M_=Object.create;var ud=Object.defineProperty;var L_=Object.getOwnPropertyDescriptor;var V_=Object.getOwnPropertyNames;var R_=Object.getPrototypeOf,N_=Object.prototype.hasOwnProperty;var Ig=t=>{throw TypeError(t)};var O_=(t,e,i)=>e in t?ud(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var D_=(t,e)=>{for(var i in e)ud(t,i,{get:e[i],enumerable:!0})},kg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of V_(e))!N_.call(t,r)&&r!==i&&ud(t,r,{get:()=>e[r],enumerable:!(o=L_(e,r))||o.enumerable});return t};var Ag=(t,e,i)=>(i=t!=null?M_(R_(t)):{},kg(e||!t||!t.__esModule?ud(i,"default",{value:t,enumerable:!0}):i,t)),B_=t=>kg(ud({},"__esModule",{value:!0}),t);var Xn=(t,e,i)=>O_(t,typeof e!="symbol"?e+"":e,i),Op=(t,e,i)=>e.has(t)||Ig("Cannot "+i);var Oi=(t,e,i)=>(Op(t,e,"read from private field"),i?i.call(t):e.get(t)),Os=(t,e,i)=>e.has(t)?Ig("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),cl=(t,e,i,o)=>(Op(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Pg=(t,e,i)=>(Op(t,e,"access private method"),i);var kw={};D_(kw,{ControlButtonType:()=>fc,GridTypes:()=>Kr,InterfaceLanguage:()=>sd.InterfaceLanguage,MenuItemType:()=>Fl,PlayerPhase:()=>qr,VERSION:()=>Ia,VKNumericLanguage:()=>sd.VKNumericLanguage,VideoFormat:()=>Ap.VideoFormat,VideoQuality:()=>Ap.VideoQuality,loadVKLangPack:()=>sd.loadVKLangPack,registerPlayerWebComponent:()=>Iw});module.exports=B_(kw);var Ds="[",Bs="[!",ua="]",is={};var Ji=Symbol(),Bn=Symbol("filename"),Mg=Symbol("hmr"),Lg="http://www.w3.org/1999/xhtml",Zc="http://www.w3.org/2000/svg";var Dp="@attach";var Xc=!0;var Rg,Ng,Vg=(Ng=(Rg=globalThis.process)==null?void 0:Rg.env)==null?void 0:Ng.NODE_ENV,Re=Vg&&!Vg.toLowerCase().startsWith("prod");var Jn=Array.isArray,Og=Array.prototype.indexOf,pd=Array.from,Bp=Object.keys,fo=Object.defineProperty,No=Object.getOwnPropertyDescriptor,Jc=Object.getOwnPropertyDescriptors,Hp=Object.prototype,Dg=Array.prototype,pa=Object.getPrototypeOf,Fp=Object.isExtensible;function Hs(t){return typeof t=="function"}var ce=()=>{};function Bg(t){return t()}function Fs(t){for(var e=0;e<t.length;e++)t[e]()}var Oo=Symbol("$state"),ul=Symbol("legacy props"),Hg=Symbol(""),eu=Symbol("proxy path"),tu=1,pl=3,er=8;function iu(t){return t===this.v}function fl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Fg(t,e){return t!==e}function vl(t){return!fl(t,this.v)}function Ug(){if(Re){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
8
- https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function zg(t){if(Le){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 zg(t){if(Re){let e=new Error(`effect_in_teardown
9
9
  \`${t}\` cannot be used inside an effect cleanup function
10
- https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function Wg(){if(Le){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 Kg(t){if(Le){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 Wg(){if(Re){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Kg(t){if(Re){let e=new Error(`effect_orphan
11
11
  \`${t}\` can only be used inside an effect (e.g. during component initialisation)
12
- https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function qg(){if(Le){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 qg(){if(Re){let t=new Error(`effect_update_depth_exceeded
13
13
  Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
14
- https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Qg(){if(Le){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 Qg(){if(Re){let t=new Error(`hydration_failed
15
15
  Failed to hydrate the application
16
- https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function Gg(){if(Le){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 jg(t){if(Le){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 Gg(){if(Re){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function jg(t){if(Re){let e=new Error(`props_invalid_value
17
17
  Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
18
- https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function Yg(t){if(Le){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 Yg(t){if(Re){let e=new Error(`props_rest_readonly
19
19
  Rest element properties of \`$props()\` such as \`${t}\` are readonly
20
- https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function Zg(t){if(Le){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 Zg(t){if(Re){let e=new Error(`rune_outside_svelte
21
21
  The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
22
- https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Xg(){if(Le){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 Jg(){if(Le){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 eh(){if(Le){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 ns=!1,rs=!1;function th(){ns=!0}var vd=null;function _s(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 Xg(){if(Re){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Jg(){if(Re){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function eh(){if(Re){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 os=!1,ns=!1;function th(){os=!0}var fd=null;function gs(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),r=[`
24
- `];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;lo(e,"stack",{value:r.join(`
25
- `)}),lo(e,"name",{value:`${t}Error`})}return e}function zr(t,e){return t.label=e,ru(t.v,e),t}function ru(t,e){var i;return(i=t==null?void 0:t[iu])==null||i.call(t,e),t}function gl(t){if(Le){let e=new Error(`lifecycle_outside_component
24
+ `];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;fo(e,"stack",{value:r.join(`
25
+ `)}),fo(e,"name",{value:`${t}Error`})}return e}function Dr(t,e){return t.label=e,ou(t.v,e),t}function ou(t,e){var i;return(i=t==null?void 0:t[eu])==null||i.call(t,e),t}function ml(t){if(Re){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 Ut=null;function md(t){Ut=t}var or=null;function gd(t){or=t}function hl(t){return Wp("getContext").get(t)}function _l(t,e){return Wp("setContext").set(t,e),e}function hd(){return Wp("getAllContexts")}function F(t,e=!1,i){var o=Ut={p:Ut,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ns&&!e&&(Ut.l={s:null,u:null,r1:[],r2:$r(!1)}),Io(()=>{o.d=!0}),Le&&(Ut.function=i,or=i)}function U(t){var l,d;let e=Ut;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=xt,o=Nt;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];co(s.effect),Ki(s.reaction),ko(s.fn)}}finally{co(i),Ki(o)}}Ut=e.p,Le&&(or=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ss(){return!ns||Ut!==null&&Ut.l===null}function Wp(t){var e;return Ut===null&&gl(t),(e=Ut.c)!=null?e:Ut.c=new Map(z_(Ut)||void 0)}function z_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var W_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ai(t){if(typeof t!="object"||t===null||Wo in t)return t;let e=fa(t);if(e!==Hp&&e!==Dg)return t;var i=new Map,o=tr(t),r=Q(0),s=Le&&rs?_s("CreatedAt"):null,l=Nt,d=f=>{var v=Nt;Ki(l);var p=f();return Ki(v),p};o&&i.set("length",Q(t.length,s));var a="";function u(f){a=f,zr(r,`${a} version`);for(let[v,p]of i)zr(p,va(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Xg();var y=i.get(v);return y===void 0?y=d(()=>{var w=Q(p.value,s);return i.set(v,w),Le&&typeof v=="string"&&zr(w,va(a,v)),w}):N(y,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let x=d(()=>Q(to,s));i.set(v,x),Kp(r),Le&&zr(x,va(a,v))}}else{if(o&&typeof v=="string"){var y=i.get("length"),w=Number(v);Number.isInteger(w)&&w<y.v&&N(y,w)}N(p,to),Kp(r)}return!0},get(f,v,p){var C;if(v===Wo)return t;if(Le&&v===iu)return u;var y=i.get(v),w=v in f;if(y===void 0&&(!w||(C=zo(f,v))!=null&&C.writable)&&(y=d(()=>{var T=ai(w?f[v]:to),E=Q(T,s);return Le&&zr(E,va(a,v)),E}),i.set(v,y)),y!==void 0){var x=n(y);return x===to?void 0:x}return Reflect.get(f,v,p)},getOwnPropertyDescriptor(f,v){var p=Reflect.getOwnPropertyDescriptor(f,v);if(p&&"value"in p){var y=i.get(v);y&&(p.value=n(y))}else if(p===void 0){var w=i.get(v),x=w==null?void 0:w.v;if(w!==void 0&&x!==to)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return p},has(f,v){var x;if(v===Wo)return!0;var p=i.get(v),y=p!==void 0&&p.v!==to||Reflect.has(f,v);if(p!==void 0||xt!==null&&(!y||(x=zo(f,v))!=null&&x.writable)){p===void 0&&(p=d(()=>{var C=y?ai(f[v]):to,T=Q(C,s);return Le&&zr(T,va(a,v)),T}),i.set(v,p));var w=n(p);if(w===to)return!1}return y},set(f,v,p,y){var O;var w=i.get(v),x=v in f;if(o&&v==="length")for(var C=p;C<w.v;C+=1){var T=i.get(C+"");T!==void 0?N(T,to):C in f&&(T=d(()=>Q(to,s)),i.set(C+"",T),Le&&zr(T,va(a,C)))}if(w===void 0)(!x||(O=zo(f,v))!=null&&O.writable)&&(w=d(()=>Q(void 0,s)),N(w,ai(p)),i.set(v,w),Le&&zr(w,va(a,v)));else{x=w.v!==to;var E=d(()=>ai(p));N(w,E)}var R=Reflect.getOwnPropertyDescriptor(f,v);if(R!=null&&R.set&&R.set.call(y,p),!x){if(o&&typeof v=="string"){var A=i.get("length"),I=Number(v);Number.isInteger(I)&&I>=A.v&&N(A,I+1)}Kp(r)}return!0},ownKeys(f){n(r);var v=Reflect.ownKeys(f).filter(w=>{var x=i.get(w);return x===void 0||x.v!==to});for(var[p,y]of i)y.v!==to&&!(p in f)&&v.push(p);return v},setPrototypeOf(){Jg()}})}function va(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:W_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Kp(t,e=1){N(t,t.v+e)}function bl(t){try{if(t!==null&&typeof t=="object"&&Wo in t)return t[Wo]}catch(e){}return t}function qp(t,e){return Object.is(bl(t),bl(e))}function Wr(t){var e=2050,i=Nt!==null&&(Nt.f&2)!==0?Nt:null;xt===null||i!==null&&(i.f&256)!==0?e|=256:xt.f|=1048576;let o={ctx:Ut,deps:null,effects:null,equals:nu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:xt};return Le&&rs&&(o.created=_s("CreatedAt")),o}function m(t){let e=Wr(t);return lu(e),e}function xn(t){let e=Wr(t);return e.equals=ml,e}function su(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)qi(e[i])}}var Qp=[];function K_(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Yp(t){var e,i=xt;if(co(K_(t)),Le){let o=ma;Gp(new Set);try{Qp.includes(t)&&Ug(),Qp.push(t),su(t),e=au(t)}finally{co(i),Gp(o),Qp.pop()}}else try{su(t),e=au(t)}finally{co(i)}return e}function Zp(t){var e=Yp(t);if(t.equals(e)||(t.v=e,t.wv=_d()),!bs){var i=($s||(t.f&256)!==0)&&t.deps!==null?4096:1024;wn(t,i)}}var ma=new Set,$l=new Map;function Gp(t){ma=t}function $r(t,e){var i={f:0,v:t,reactions:null,equals:nu,rv:0,wv:0};return Le&&rs&&(i.created=e!=null?e:_s("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Q(t,e){let i=$r(t,e);return lu(i),i}function as(t,e=!1,i=!0){var r,s;let o=$r(t);return e||(o.equals=ml),ns&&i&&Ut!==null&&Ut.l!==null&&((s=(r=Ut.l).s)!=null?s:r.s=[]).push(o),o}function N(t,e,i=!1){var r;Nt!==null&&(!sr||(Nt.f&262144)!==0)&&ss()&&(Nt.f&262162)!==0&&!((r=qo)!=null&&r[1].includes(t)&&qo[0]===Nt)&&eh();let o=i?ai(e):e;return Le&&ru(o,t.label),yl(t,o)}function yl(t,e){if(!t.equals(e)){var i=t.v;if(bs?$l.set(t,e):$l.set(t,i),t.v=e,Le&&rs&&(t.updated=_s("UpdatedAt"),xt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Yp(t),wn(t,(t.f&256)===0?1024:4096)),t.wv=_d(),oh(t,2048),ss()&&xt!==null&&(xt.f&1024)!==0&&(xt.f&96)===0&&(rr===null?nh([t]):rr.push(t)),Le&&ma.size>0){let o=Array.from(ma);for(let r of o)(r.f&1024)!==0&&wn(r,4096),ha(r)&&xl(r);ma.clear()}}return e}function oh(t,e){var i=t.reactions;if(i!==null)for(var o=ss(),r=i.length,s=0;s<r;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===xt)){if(Le&&(d&262144)!==0){ma.add(l);continue}wn(l,e),(d&1280)!==0&&((d&2)!==0?oh(l,4096):$d(l))}}}var wl="font-weight: bold",Sl="font-weight: normal";function rh(t,e,i){Le?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 Ut=null;function vd(t){Ut=t}var tr=null;function md(t){tr=t}function gl(t){return Wp("getContext").get(t)}function hl(t,e){return Wp("setContext").set(t,e),e}function gd(){return Wp("getAllContexts")}function F(t,e=!1,i){var o=Ut={p:Ut,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};os&&!e&&(Ut.l={s:null,u:null,r1:[],r2:Cr(!1)}),Eo(()=>{o.d=!0}),Re&&(Ut.function=i,tr=i)}function U(t){var l,d;let e=Ut;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=St,o=Nt;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];vo(s.effect),qi(s.reaction),Io(s.fn)}}finally{vo(i),qi(o)}}Ut=e.p,Re&&(tr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function rs(){return!os||Ut!==null&&Ut.l===null}function Wp(t){var e;return Ut===null&&ml(t),(e=Ut.c)!=null?e:Ut.c=new Map(F_(Ut)||void 0)}function F_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var U_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function si(t){if(typeof t!="object"||t===null||Oo in t)return t;let e=pa(t);if(e!==Hp&&e!==Dg)return t;var i=new Map,o=Jn(t),r=Q(0),s=Re&&ns?gs("CreatedAt"):null,l=Nt,d=f=>{var v=Nt;qi(l);var p=f();return qi(v),p};o&&i.set("length",Q(t.length,s));var a="";function u(f){a=f,Dr(r,`${a} version`);for(let[v,p]of i)Dr(p,fa(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Xg();var y=i.get(v);return y===void 0?y=d(()=>{var w=Q(p.value,s);return i.set(v,w),Re&&typeof v=="string"&&Dr(w,fa(a,v)),w}):N(y,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let x=d(()=>Q(Ji,s));i.set(v,x),Kp(r),Re&&Dr(x,fa(a,v))}}else{if(o&&typeof v=="string"){var y=i.get("length"),w=Number(v);Number.isInteger(w)&&w<y.v&&N(y,w)}N(p,Ji),Kp(r)}return!0},get(f,v,p){var C;if(v===Oo)return t;if(Re&&v===eu)return u;var y=i.get(v),w=v in f;if(y===void 0&&(!w||(C=No(f,v))!=null&&C.writable)&&(y=d(()=>{var T=si(w?f[v]:Ji),E=Q(T,s);return Re&&Dr(E,fa(a,v)),E}),i.set(v,y)),y!==void 0){var x=n(y);return x===Ji?void 0:x}return Reflect.get(f,v,p)},getOwnPropertyDescriptor(f,v){var p=Reflect.getOwnPropertyDescriptor(f,v);if(p&&"value"in p){var y=i.get(v);y&&(p.value=n(y))}else if(p===void 0){var w=i.get(v),x=w==null?void 0:w.v;if(w!==void 0&&x!==Ji)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return p},has(f,v){var x;if(v===Oo)return!0;var p=i.get(v),y=p!==void 0&&p.v!==Ji||Reflect.has(f,v);if(p!==void 0||St!==null&&(!y||(x=No(f,v))!=null&&x.writable)){p===void 0&&(p=d(()=>{var C=y?si(f[v]):Ji,T=Q(C,s);return Re&&Dr(T,fa(a,v)),T}),i.set(v,p));var w=n(p);if(w===Ji)return!1}return y},set(f,v,p,y){var O;var w=i.get(v),x=v in f;if(o&&v==="length")for(var C=p;C<w.v;C+=1){var T=i.get(C+"");T!==void 0?N(T,Ji):C in f&&(T=d(()=>Q(Ji,s)),i.set(C+"",T),Re&&Dr(T,fa(a,C)))}if(w===void 0)(!x||(O=No(f,v))!=null&&O.writable)&&(w=d(()=>Q(void 0,s)),N(w,si(p)),i.set(v,w),Re&&Dr(w,fa(a,v)));else{x=w.v!==Ji;var E=d(()=>si(p));N(w,E)}var R=Reflect.getOwnPropertyDescriptor(f,v);if(R!=null&&R.set&&R.set.call(y,p),!x){if(o&&typeof v=="string"){var A=i.get("length"),I=Number(v);Number.isInteger(I)&&I>=A.v&&N(A,I+1)}Kp(r)}return!0},ownKeys(f){n(r);var v=Reflect.ownKeys(f).filter(w=>{var x=i.get(w);return x===void 0||x.v!==Ji});for(var[p,y]of i)y.v!==Ji&&!(p in f)&&v.push(p);return v},setPrototypeOf(){Jg()}})}function fa(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:U_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Kp(t,e=1){N(t,t.v+e)}function _l(t){try{if(t!==null&&typeof t=="object"&&Oo in t)return t[Oo]}catch(e){}return t}function qp(t,e){return Object.is(_l(t),_l(e))}function Br(t){var e=2050,i=Nt!==null&&(Nt.f&2)!==0?Nt:null;St===null||i!==null&&(i.f&256)!==0?e|=256:St.f|=1048576;let o={ctx:Ut,deps:null,effects:null,equals:iu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:St};return Re&&ns&&(o.created=gs("CreatedAt")),o}function m(t){let e=Br(t);return su(e),e}function wn(t){let e=Br(t);return e.equals=vl,e}function nu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Qi(e[i])}}var Qp=[];function z_(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Yp(t){var e,i=St;if(vo(z_(t)),Re){let o=va;Gp(new Set);try{Qp.includes(t)&&Ug(),Qp.push(t),nu(t),e=ru(t)}finally{vo(i),Gp(o),Qp.pop()}}else try{nu(t),e=ru(t)}finally{vo(i)}return e}function Zp(t){var e=Yp(t);if(t.equals(e)||(t.v=e,t.wv=hd()),!hs){var i=(_s||(t.f&256)!==0)&&t.deps!==null?4096:1024;Sn(t,i)}}var va=new Set,bl=new Map;function Gp(t){va=t}function Cr(t,e){var i={f:0,v:t,reactions:null,equals:iu,rv:0,wv:0};return Re&&ns&&(i.created=e!=null?e:gs("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Q(t,e){let i=Cr(t,e);return su(i),i}function ss(t,e=!1,i=!0){var r,s;let o=Cr(t);return e||(o.equals=vl),os&&i&&Ut!==null&&Ut.l!==null&&((s=(r=Ut.l).s)!=null?s:r.s=[]).push(o),o}function N(t,e,i=!1){var r;Nt!==null&&(!nr||(Nt.f&262144)!==0)&&rs()&&(Nt.f&262162)!==0&&!((r=Bo)!=null&&r[1].includes(t)&&Bo[0]===Nt)&&eh();let o=i?si(e):e;return Re&&ou(o,t.label),$l(t,o)}function $l(t,e){if(!t.equals(e)){var i=t.v;if(hs?bl.set(t,e):bl.set(t,i),t.v=e,Re&&ns&&(t.updated=gs("UpdatedAt"),St!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Yp(t),Sn(t,(t.f&256)===0?1024:4096)),t.wv=hd(),oh(t,2048),rs()&&St!==null&&(St.f&1024)!==0&&(St.f&96)===0&&(or===null?nh([t]):or.push(t)),Re&&va.size>0){let o=Array.from(va);for(let r of o)(r.f&1024)!==0&&Sn(r,4096),ga(r)&&yl(r);va.clear()}}return e}function oh(t,e){var i=t.reactions;if(i!==null)for(var o=rs(),r=i.length,s=0;s<r;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===St)){if(Re&&(d&262144)!==0){va.add(l);continue}Sn(l,e),(d&1280)!==0&&((d&2)!==0?oh(l,4096):bd(l))}}}var xl="font-weight: bold",wl="font-weight: normal";function rh(t,e,i){Re?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`,wl,Sl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function sh(t){Le?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,xl,wl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function sh(t){Re?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`,wl,Sl):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ws(t){Le?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,xl,wl):console.warn("https://svelte.dev/e/hydration_html_changed")}function Us(t){Re?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`,wl,Sl):console.warn("https://svelte.dev/e/hydration_mismatch")}function ah(){Le?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,xl,wl):console.warn("https://svelte.dev/e/hydration_mismatch")}function ah(){Re?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`,wl,Sl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function lh(){Le?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",wl,Sl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function du(t){Le?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,xl,wl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function lh(){Re?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",xl,wl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function au(t){Re?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`,wl,Sl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var nt=!1;function uo(t){nt=t}var wt;function Ti(t){if(t===null)throw Ws(),os;return wt=t}function Qi(){return Ti(Qo(wt))}function g(t){if(nt){if(Qo(wt)!==null)throw Ws(),os;wt=t}}function Te(t=1){if(nt){for(var e=t,i=wt;e--;)i=Qo(i);wt=i}}function _a(){for(var t=0,e=wt;;){if(e.nodeType===ir){var i=e.data;if(i===pa){if(t===0)return e;t-=1}else(i===Hs||i===Fs)&&(t+=1)}var o=Qo(e);e.remove(),e=o}}function cu(t){if(!t||t.nodeType!==ir)throw Ws(),os;return t.data}function dh(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(bl(this[a])===s){du("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(bl(this[a])===s){du("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=r.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(bl(this[a])===s){du("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var ba,ch,yd,uh,ph;function uu(){if(ba===void 0){ba=window,ch=document,yd=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;uh=zo(e,"firstChild").get,ph=zo(e,"nextSibling").get,Fp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Fp(i)&&(i.__t=void 0),Le&&(t.__svelte_meta=null,dh())}}function Sn(t=""){return document.createTextNode(t)}function Ii(t){return uh.call(t)}function Qo(t){return ph.call(t)}function _(t,e){if(!nt)return Ii(t);var i=Ii(wt);if(i===null)i=wt.appendChild(Sn());else if(e&&i.nodeType!==fl){var o=Sn();return i==null||i.before(o),Ti(o),o}return Ti(i),i}function pe(t,e){var r,s;if(!nt){var i=Ii(t);return i.nodeType===8&&i.data===""?Qo(i):i}if(e&&((r=wt)==null?void 0:r.nodeType)!==fl){var o=Sn();return(s=wt)==null||s.before(o),Ti(o),o}return wt}function P(t,e=1,i=!1){let o=nt?wt:t;for(var r;e--;)r=o,o=Qo(o);if(!nt)return o;if(i&&(o==null?void 0:o.nodeType)!==fl){var s=Sn();return o===null?r==null||r.after(s):o.before(s),Ti(s),s}return Ti(o),o}function xd(t){t.textContent=""}function ef(t){xt===null&&Nt===null&&Kg(t),Nt!==null&&(Nt.f&256)!==0&&xt===null&&Wg(),bs&&zg(t)}function q_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function $a(t,e,i,o=!0){var a;var r=xt;if(Le)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:Ut,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Le&&(s.component_function=or),i)try{xl(s),s.f|=32768}catch(u){throw qi(s),u}else e!==null&&$d(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(r!==null&&q_(s,r),Nt!==null&&(Nt.f&2)!==0)){var d=Nt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Io(t){let e=$a(8,null,!1);return wn(e,1024),e.teardown=t,e}function ze(t){var r;ef("$effect");var e=xt!==null&&(xt.f&32)!==0&&Ut!==null&&!Ut.m;if(Le&&lo(t,"name",{value:"$effect"}),e){var i=Ut;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:xt,reaction:Nt})}else{var o=ko(t);return o}}function Cd(t){return ef("$effect.pre"),Le&&lo(t,"name",{value:"$effect.pre"}),Go(t)}function vu(t){let e=$a(64,t,!0);return()=>{qi(e)}}function vh(t){let e=$a(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Hn(e,()=>{qi(e),o(void 0)}):(qi(e),o(void 0))})}function ko(t){return $a(4,t,!1)}function Go(t){return $a(8,t,!0)}function D(t,e=[],i=Wr){if(Le)return Go(()=>{var r=xt,s=()=>t(...l.map(n));lo(r.fn,"name",{value:"{expression}"}),lo(s,"name",{value:"{expression}"});let l=e.map(i);Gi(s)});let o=e.map(i);return Gi(()=>t(...o.map(n)))}function Gi(t,e=0){return $a(24|e,t,!0)}function Bi(t,e=!0){return $a(40,t,!0,e)}function tf(t){var e=t.teardown;if(e!==null){let i=bs,o=Nt;Xp(!0),Ki(null);try{e.call(null)}finally{Xp(i),Ki(o)}}}function of(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:qi(i,e),i=o}}function mh(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&qi(e),e=i}}function qi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(nf(t.nodes_start,t.nodes_end),i=!0),of(t,e&&!i),Td(t,0),wn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();tf(t);var r=t.parent;r!==null&&r.first!==null&&rf(t),Le&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function nf(t,e){for(;t!==null;){var i=t===e?null:Qo(t);t.remove(),t=i}}function rf(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Hn(t,e){var i=[];mu(t,i,!0),sf(i,()=>{qi(t),e&&e()})}function sf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function mu(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 r=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;mu(o,e,s?i:!1),o=r}}}function xs(t){gh(t,!0)}function gh(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;gh(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Ed=[],af=[];function hh(){var t=Ed;Ed=[],zs(t)}function Q_(){var t=af;af=[],zs(t)}function Cn(t){Ed.length===0&&queueMicrotask(hh),Ed.push(t)}function _h(){Ed.length>0&&hh(),af.length>0&&Q_()}function $h(t){var e=xt;if(Le&&t instanceof Error&&G_(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 bh=new WeakSet;function G_(t,e){var l,d;if(bh.has(t))return;bh.add(t);let i=zo(t,"message");if(!(i&&!i.configurable)){for(var o=yd?" ":" ",r=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,xl,wl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var nt=!1;function mo(t){nt=t}var Ct;function Ei(t){if(t===null)throw Us(),is;return Ct=t}function Gi(){return Ei(Ho(Ct))}function g(t){if(nt){if(Ho(Ct)!==null)throw Us(),is;Ct=t}}function Te(t=1){if(nt){for(var e=t,i=Ct;e--;)i=Ho(i);Ct=i}}function ha(){for(var t=0,e=Ct;;){if(e.nodeType===er){var i=e.data;if(i===ua){if(t===0)return e;t-=1}else(i===Ds||i===Bs)&&(t+=1)}var o=Ho(e);e.remove(),e=o}}function lu(t){if(!t||t.nodeType!==er)throw Us(),is;return t.data}function dh(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(_l(this[a])===s){au("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(_l(this[a])===s){au("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=r.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(_l(this[a])===s){au("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var _a,ch,$d,uh,ph;function du(){if(_a===void 0){_a=window,ch=document,$d=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;uh=No(e,"firstChild").get,ph=No(e,"nextSibling").get,Fp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Fp(i)&&(i.__t=void 0),Re&&(t.__svelte_meta=null,dh())}}function Cn(t=""){return document.createTextNode(t)}function Pi(t){return uh.call(t)}function Ho(t){return ph.call(t)}function _(t,e){if(!nt)return Pi(t);var i=Pi(Ct);if(i===null)i=Ct.appendChild(Cn());else if(e&&i.nodeType!==pl){var o=Cn();return i==null||i.before(o),Ei(o),o}return Ei(i),i}function pe(t,e){var r,s;if(!nt){var i=Pi(t);return i.nodeType===8&&i.data===""?Ho(i):i}if(e&&((r=Ct)==null?void 0:r.nodeType)!==pl){var o=Cn();return(s=Ct)==null||s.before(o),Ei(o),o}return Ct}function P(t,e=1,i=!1){let o=nt?Ct:t;for(var r;e--;)r=o,o=Ho(o);if(!nt)return o;if(i&&(o==null?void 0:o.nodeType)!==pl){var s=Cn();return o===null?r==null||r.after(s):o.before(s),Ei(s),s}return Ei(o),o}function yd(t){t.textContent=""}function ef(t){St===null&&Nt===null&&Kg(t),Nt!==null&&(Nt.f&256)!==0&&St===null&&Wg(),hs&&zg(t)}function W_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ba(t,e,i,o=!0){var a;var r=St;if(Re)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:Ut,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Re&&(s.component_function=tr),i)try{yl(s),s.f|=32768}catch(u){throw Qi(s),u}else e!==null&&bd(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(r!==null&&W_(s,r),Nt!==null&&(Nt.f&2)!==0)){var d=Nt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Eo(t){let e=ba(8,null,!1);return Sn(e,1024),e.teardown=t,e}function qe(t){var r;ef("$effect");var e=St!==null&&(St.f&32)!==0&&Ut!==null&&!Ut.m;if(Re&&fo(t,"name",{value:"$effect"}),e){var i=Ut;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:St,reaction:Nt})}else{var o=Io(t);return o}}function Sd(t){return ef("$effect.pre"),Re&&fo(t,"name",{value:"$effect.pre"}),Fo(t)}function pu(t){let e=ba(64,t,!0);return()=>{Qi(e)}}function vh(t){let e=ba(64,t,!0);return(i={})=>new Promise(o=>{i.outro?zn(e,()=>{Qi(e),o(void 0)}):(Qi(e),o(void 0))})}function Io(t){return ba(4,t,!1)}function Fo(t){return ba(8,t,!0)}function D(t,e=[],i=Br){if(Re)return Fo(()=>{var r=St,s=()=>t(...l.map(n));fo(r.fn,"name",{value:"{expression}"}),fo(s,"name",{value:"{expression}"});let l=e.map(i);ji(s)});let o=e.map(i);return ji(()=>t(...o.map(n)))}function ji(t,e=0){return ba(24|e,t,!0)}function Di(t,e=!0){return ba(40,t,!0,e)}function tf(t){var e=t.teardown;if(e!==null){let i=hs,o=Nt;Xp(!0),qi(null);try{e.call(null)}finally{Xp(i),qi(o)}}}function of(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:Qi(i,e),i=o}}function mh(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Qi(e),e=i}}function Qi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(nf(t.nodes_start,t.nodes_end),i=!0),of(t,e&&!i),Cd(t,0),Sn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();tf(t);var r=t.parent;r!==null&&r.first!==null&&rf(t),Re&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function nf(t,e){for(;t!==null;){var i=t===e?null:Ho(t);t.remove(),t=i}}function rf(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 zn(t,e){var i=[];fu(t,i,!0),sf(i,()=>{Qi(t),e&&e()})}function sf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function fu(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 r=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;fu(o,e,s?i:!1),o=r}}}function $s(t){gh(t,!0)}function gh(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;gh(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Td=[],af=[];function hh(){var t=Td;Td=[],Fs(t)}function K_(){var t=af;af=[],Fs(t)}function Tn(t){Td.length===0&&queueMicrotask(hh),Td.push(t)}function _h(){Td.length>0&&hh(),af.length>0&&K_()}function $h(t){var e=St;if(Re&&t instanceof Error&&q_(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 bh=new WeakSet;function q_(t,e){var l,d;if(bh.has(t))return;bh.add(t);let i=No(t,"message");if(!(i&&!i.configurable)){for(var o=$d?" ":" ",r=`
38
38
  ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)r+=`
39
- ${o}in ${(d=s.function)==null?void 0:d[Nn].split("/").pop()}`,s=s.p;lo(t,"message",{value:t.message+`
39
+ ${o}in ${(d=s.function)==null?void 0:d[Bn].split("/").pop()}`,s=s.p;fo(t,"message",{value:t.message+`
40
40
  ${r}
41
- `}),t.stack&&lo(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&fo(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var ya=!1,Cl=null,xa=!1,bs=!1;function Xp(t){bs=t}var kd=[],Ad=[],Nt=null,sr=!1;function Ki(t){Nt=t}var xt=null;function co(t){xt=t}var qo=null;function lu(t){Nt!==null&&Nt.f&2097152&&(qo===null?qo=[Nt,[t]]:qo[1].push(t))}var Tn=null,ar=0,rr=null;function nh(t){rr=t}var wh=1,hu=0,$s=!1,_u=null;function _d(){return++wh}function ha(t){var v,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var r,s,l=(e&512)!==0,d=o&&xt!==null&&!$s,a=i.length;if(l||d){var u=t,f=u.parent;for(r=0;r<a;r++)s=i[r],(l||!((v=s==null?void 0:s.reactions)!=null&&v.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(r=0;r<a;r++)if(s=i[r],ha(s)&&Zp(s),s.wv>t.wv)return!0}(!o||xt!==null&&!$s)&&wn(t,1024)}return!1}function Sh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];qo!=null&&qo[1].includes(t)&&qo[0]===Nt||((s.f&2)!==0?Sh(s,e,!1):e===s&&(i?wn(s,2048):(s.f&1024)!==0&&wn(s,4096),$d(s)))}}function au(t){var y,w;var e=Tn,i=ar,o=rr,r=Nt,s=$s,l=qo,d=Ut,a=sr,u=t.f;Tn=null,ar=0,rr=null,$s=(u&256)!==0&&(sr||!xa||Nt===null),Nt=(u&96)===0?t:null,qo=null,md(t.ctx),sr=!1,hu++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(Tn!==null){var p;if(Td(t,ar),v!==null&&ar>0)for(v.length=ar+Tn.length,p=0;p<Tn.length;p++)v[ar+p]=Tn[p];else t.deps=v=Tn;if(!$s||(u&2)!==0&&t.reactions!==null)for(p=ar;p<v.length;p++)((w=(y=v[p]).reactions)!=null?w:y.reactions=[]).push(t)}else v!==null&&ar<v.length&&(Td(t,ar),v.length=ar);if(ss()&&rr!==null&&!sr&&v!==null&&(t.f&6146)===0)for(p=0;p<rr.length;p++)Sh(rr[p],t);return r!==null&&r!==t&&(hu++,rr!==null&&(o===null?o=rr:o.push(...rr))),f}catch(x){$h(x)}finally{Tn=e,ar=i,rr=o,Nt=r,$s=s,qo=l,md(d),sr=a,t.f^=2097152}}function j_(t,e){let i=e.reactions;if(i!==null){var o=Og.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(Tn===null||!Tn.includes(e))&&(wn(e,4096),(e.f&768)===0&&(e.f^=512),su(e),Td(e,0))}function Td(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)j_(t,i[o])}function xl(t){var e=t.f;if((e&16384)===0){wn(t,1024);var i=xt,o=xa;if(xt=t,xa=!0,Le){var r=or;gd(t.component_function)}try{(e&16)!==0?mh(t):of(t),tf(t);var s=au(t);if(t.teardown=typeof s=="function"?s:null,t.wv=wh,Le&&rs&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=_d(),l.set_during_effect=!1);Le&&Ad.push(t)}finally{xa=o,xt=i,Le&&gd(r)}}}function yh(){console.error("Last ten effects were: ",Ad.slice(-10).map(t=>t.fn)),Ad=[]}function Y_(){try{qg()}catch(t){if(Le&&lo(t,"stack",{value:""}),Cl!==null)if(Le)try{Id(t,Cl)}catch(e){throw yh(),e}else Id(t,Cl);else throw Le&&yh(),t}}function df(){var t=xa;try{var e=0;for(xa=!0;kd.length>0;){e++>1e3&&Y_();var i=kd,o=i.length;kd=[];for(var r=0;r<o;r++){var s=X_(i[r]);Z_(s)}$l.clear()}}finally{ya=!1,xa=t,Cl=null,Le&&(Ad=[])}}function Z_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ha(o)&&(xl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?rf(o):o.fn=null))}}function $d(t){ya||(ya=!0,queueMicrotask(df));for(var e=Cl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}kd.push(e)}function X_(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:ha(i)&&xl(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 Tl(t){var e;for(t&&(ya=!0,df(),ya=!0,e=t());;){if(_h(),kd.length===0)return ya=!1,Cl=null,Le&&(Ad=[]),e;ya=!0,df()}}async function Ao(){await Promise.resolve(),Tl()}function n(t){var e=t.f,i=(e&2)!==0;if(_u!==null&&_u.add(t),Nt!==null&&!sr){if(!(qo!=null&&qo[1].includes(t))||qo[0]!==Nt){var o=Nt.deps;t.rv<hu&&(t.rv=hu,Tn===null&&o!==null&&o[ar]===t?ar++:Tn===null?Tn=[t]:(!$s||!Tn.includes(t))&&Tn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,ha(r)&&Zp(r)),Le&&rs&&!sr&&vd!==null&&Nt!==null&&vd.reaction===Nt)if(t.trace)t.trace();else{var l=_s("TracedAt");if(l){var d=vd.entries.get(t);d===void 0&&(d={traces:[]},vd.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 bs&&$l.has(t)?$l.get(t):t.v}function Pt(t){var e=sr;try{return sr=!0,t()}finally{sr=e}}var J_=-7169;function wn(t,e){t.f=t.f&J_|e}function $u(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Wo in t)bu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Wo in i&&bu(i)}}}function bu(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{bu(t[o],e)}catch(r){}let i=fa(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=tu(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch(l){}}}}}function cf(t,e){if(e){let i=document.body;t.autofocus=!0,Cn(()=>{document.activeElement===i&&t.focus()})}}function Pd(t){var e=Nt,i=xt;Ki(null),co(null);try{return t()}finally{Ki(e),co(i)}}var uf=new Set,yu=new Set;function wa(t){if(!nt)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 pf(t,e,i,o={}){function r(s){if(o.capture||El.call(e,s),!s.cancelBubble)return Pd(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Cn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function Ct(t,e,i,o,r){var s={capture:o,passive:r},l=pf(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Io(()=>{e.removeEventListener(t,l,s)})}function dt(t){for(var e=0;e<t.length;e++)uf.add(t[e]);for(var i of yu)i(t)}function El(t){var E;var e=this,i=e.ownerDocument,o=t.type,r=((E=t.composedPath)==null?void 0:E.call(t))||[],s=r[0]||t.target,l=0,d=t.__root;if(d){var a=r.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=r[l]||t.target,s!==e){lo(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Nt,v=xt;Ki(null),co(null);try{for(var p,y=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+o];if(x!=null&&(!s.disabled||t.target===s))if(tr(x)){var[C,...T]=x;C.apply(s,[t,...T])}else x.call(s,t)}catch(R){p?y.push(R):p=R}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let R of y)queueMicrotask(()=>{throw R});throw p}}finally{t.__root=e,delete t.currentTarget,Ki(f),co(v)}}}var tb;function Ch(){tb=void 0}function Il(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Po(t,e){var i=xt;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,r,s=!t.startsWith("<!>");return()=>{if(nt)return Po(wt,null),wt;r===void 0&&(r=Il(s?t:"<!>"+t),i||(r=Ii(r)));var l=o||yd?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ii(l),a=l.lastChild;Po(d,a)}else Po(l,l);return l}}function nb(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(nt)return Po(wt,null),wt;if(!l){var d=Il(s),a=Ii(d);if(r)for(l=document.createDocumentFragment();Ii(a);)l.appendChild(Ii(a));else l=Ii(a)}var u=l.cloneNode(!0);if(r){var f=Ii(u),v=u.lastChild;Po(f,v)}else Po(u,u);return u}}function Ee(t,e){return nb(t,e,"svg")}function ls(t=""){if(!nt){var e=Sn(t+"");return Po(e,e),e}var i=wt;return i.nodeType!==fl&&(i.before(i=Sn()),Ti(i)),Po(i,i),i}function He(){if(nt)return Po(wt,null),wt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Sn();return t.append(e,i),Po(e,i),t}function b(t,e){if(nt){xt.nodes_end=wt,Qi();return}t!==null&&t.before(e)}var rb=/\r/g;function Eh(t){t=t.replace(rb,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Ih(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var sb=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function kh(t){return sb.includes(t)}var ab=["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 lb={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 Ah(t){var e;return t=t.toLowerCase(),(e=lb[t])!=null?e:t}var _9=[...ab,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var db=["touchstart","touchmove"];function Ph(t){return db.includes(t)}var cb=["$state","$state.raw","$derived","$derived.by"],b9=[...cb,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var ub=["textarea","script","style","title"];function Mh(t){return ub.includes(t)}function xu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Md=!0;function wu(t){Md=t}function ve(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Qr(t,e){return Lh(t,e)}function vf(t,e){var l;uu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=nt,r=wt;try{for(var s=Ii(i);s&&(s.nodeType!==ir||s.data!==Hs);)s=Qo(s);if(!s)throw os;uo(!0),Ti(s),Qi();let d=Lh(t,{...e,anchor:s});if(wt===null||wt.nodeType!==ir||wt.data!==pa)throw Ws(),os;return uo(!1),d}catch(d){if(d===os)return e.recover===!1&&Qg(),uu(),xd(i),uo(!1),Qr(t,e);throw d}finally{uo(o),Ti(r),Ch()}}var kl=new Map;function Lh(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:l=!0}){uu();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var y=v[p];if(!d.has(y)){d.add(y);var w=Ph(y);e.addEventListener(y,El,{passive:w});var x=kl.get(y);x===void 0?(document.addEventListener(y,El,{passive:w}),kl.set(y,1)):kl.set(y,x+1)}}};a(fd(uf)),yu.add(a);var u=void 0,f=vh(()=>{var v=i!=null?i:e.appendChild(Sn());return Bi(()=>{if(s){F({});var p=Ut;p.c=s}r&&(o.$$events=r),nt&&Po(v,null),Md=l,u=t(v,o)||{},Md=!0,nt&&(xt.nodes_end=wt),s&&U()}),()=>{var w;for(var p of d){e.removeEventListener(p,El);var y=kl.get(p);--y===0?(document.removeEventListener(p,El),kl.delete(p)):kl.set(p,y)}yu.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return ff.set(u,f),u}var ff=new WeakMap;function Sa(t,e){let i=ff.get(t);return i?(ff.delete(t),i(e)):(Le&&ah(),Promise.resolve())}function _e(t,e,...i){var o=t,r=ce,s;Gi(()=>{r!==(r=e())&&(s&&(qi(s),s=null),Le&&r==null&&Gg(),s=Bi(()=>r(o,...i)))},65536),nt&&(o=wt)}if(Le){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Zg(e)},set:o=>{i=o}})}};mb=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var mb;function Ot(t){Ut===null&&gl("onMount"),ns&&Ut.l!==null?vb(Ut).m.push(t):ze(()=>{let e=Pt(t);if(typeof e=="function")return e})}function an(t){Ut===null&&gl("onDestroy"),Ot(()=>()=>Pt(t))}function vb(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Vh=new Map;function Rh(t,e){var i=Vh.get(t);i||(i=new Set,Vh.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){nt&&i===0&&Qi();var r=t,s=null,l=null,d=to,a=i>0?65536:0,u=!1;let f=(p,y=!0)=>{u=!0,v(y,p)},v=(p,y)=>{if(d===(d=p))return;let w=!1;if(nt&&o!==-1){if(i===0){let C=cu(r);C===Hs?o=0:C===Fs?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(r=_a(),Ti(r),uo(!1),w=!0,o=-1)}d?(s?xs(s):y&&(s=Bi(()=>y(r))),l&&Hn(l,()=>{l=null})):(l?xs(l):y&&(l=Bi(()=>y(r,[i+1,o]))),s&&Hn(s,()=>{s=null})),w&&uo(!0)};Gi(()=>{u=!1,e(f),u||v(null,null)},a),nt&&(r=wt)}function ws(t,e,i){nt&&Qi();var o=t,r=to,s,l=ss()?Fg:vl;Gi(()=>{l(r,r=e())&&(s&&Hn(s),s=Bi(()=>i(o)))}),nt&&(o=wt)}var qs=null;function hf(t){qs=t}function Ld(t,e){return e}function _b(t,e,i,o){for(var r=[],s=e.length,l=0;l<s;l++)mu(e[l].e,r,!0);var d=s>0&&r.length===0&&i!==null;if(d){var a=i.parentNode;xd(a),a.append(i),o.clear(),Ks(t,e[0].prev,e[s-1].next)}sf(r,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Ks(t,f.prev,f.next)),qi(f.e,!d)}})}function Ci(t,e,i,o,r,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=nt?Ti(Ii(u)):u.appendChild(Sn())}nt&&Qi();var f=null,v=!1,p=xn(()=>{var y=i();return tr(y)?y:y==null?[]:fd(y)});Gi(()=>{var y=n(p),w=y.length;if(v&&w===0)return;v=w===0;let x=!1;if(nt){var C=cu(l)===Fs;C!==(w===0)&&(l=_a(),Ti(l),uo(!1),x=!0)}if(nt){for(var T=null,E,R=0;R<w;R++){if(wt.nodeType===ir&&wt.data===pa){l=wt,x=!0,uo(!1);break}var A=y[R],I=o(A,R);E=Dh(wt,d,T,null,A,I,R,r,e,i),d.items.set(I,E),T=E}w>0&&Ti(_a())}nt||bb(y,d,l,r,e,o,i),s!==null&&(w===0?f?xs(f):f=Bi(()=>s(l)):f!==null&&Hn(f,()=>{f=null})),x&&uo(!0),n(p)}),nt&&(l=wt)}function bb(t,e,i,o,r,s,l){var X,fe,re,le;var d=(r&8)!==0,a=(r&3)!==0,u=t.length,f=e.items,v=e.first,p=v,y,w=null,x,C=[],T=[],E,R,A,I;if(d)for(I=0;I<u;I+=1)E=t[I],R=s(E,I),A=f.get(R),A!==void 0&&((X=A.a)==null||X.measure(),(x!=null?x:x=new Set).add(A));for(I=0;I<u;I+=1){if(E=t[I],R=s(E,I),A=f.get(R),A===void 0){var O=p?p.e.nodes_start:i;w=Dh(O,e,w,w===null?e.first:w.next,E,R,I,o,r,l),f.set(R,w),C=[],T=[],p=w.next;continue}if(a&&$b(A,E,I,r),(A.e.f&8192)!==0&&(xs(A.e),d&&((fe=A.a)==null||fe.unfix(),(x!=null?x:x=new Set).delete(A))),A!==p){if(y!==void 0&&y.has(A)){if(C.length<T.length){var H=T[0],B;w=H.prev;var z=C[0],Z=C[C.length-1];for(B=0;B<C.length;B+=1)Nh(C[B],H,i);for(B=0;B<T.length;B+=1)y.delete(T[B]);Ks(e,z.prev,Z.next),Ks(e,w,z),Ks(e,Z,H),p=H,w=Z,I-=1,C=[],T=[]}else y.delete(A),Nh(A,p,i),Ks(e,A.prev,A.next),Ks(e,A,w===null?e.first:w.next),Ks(e,w,A),w=A;continue}for(C=[],T=[];p!==null&&p.k!==R;)(p.e.f&8192)===0&&(y!=null?y:y=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),w=A,p=A.next}if(p!==null||y!==void 0){for(var ae=y===void 0?[]:fd(y);p!==null;)(p.e.f&8192)===0&&ae.push(p),p=p.next;var q=ae.length;if(q>0){var de=(r&4)!==0&&u===0?i:null;if(d){for(I=0;I<q;I+=1)(re=ae[I].a)==null||re.measure();for(I=0;I<q;I+=1)(le=ae[I].a)==null||le.fix()}_b(e,ae,de,f)}}d&&Cn(()=>{var Me;if(x!==void 0)for(A of x)(Me=A.a)==null||Me.apply()}),xt.first=e.first&&e.first.e,xt.last=w&&w.e}function $b(t,e,i,o){(o&1)!==0&&yl(t.v,e),(o&2)!==0?yl(t.i,i):t.i=i}function Dh(t,e,i,o,r,s,l,d,a,u){var f=qs,v=(a&1)!==0,p=(a&16)===0,y=v?p?as(r,!1,!1):$r(r):r,w=(a&2)===0?l:$r(l);Le&&v&&(y.trace=()=>{var C=typeof w=="number"?l:w.v;u()[C]});var x={i:w,v:y,k:s,a:null,e:null,prev:i,next:o};qs=x;try{return x.e=Bi(()=>d(t,y,w,u),nt),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{qs=f}}function Nh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Qo(s);r.before(s),s=l}}function Ks(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 yb(t,e,i){var s,l;if(!e||e===Eh(String(i!=null?i:"")))return;let o,r=(s=t.__svelte_meta)==null?void 0:s.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=or)!=null&&l[Nn]&&(o=`in ${or[Nn]}`),sh(xu(o))}function Vd(t,e,i=!1,o=!1,r=!1){var s=t,l="";D(()=>{var y;var d=xt;if(l===(l=(y=e())!=null?y:"")){nt&&Qi();return}if(d.nodes_start!==null&&(nf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(nt){for(var a=wt.data,u=Qi(),f=u;u!==null&&(u.nodeType!==ir||u.data!=="");)f=u,u=Qo(u);if(u===null)throw Ws(),os;Le&&!r&&yb(u.parentNode,a,l),Po(wt,f),s=Ti(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=Il(v);if((i||o)&&(p=Ii(p)),Po(Ii(p),p.lastChild),i||o)for(;Ii(p);)s.before(Ii(p));else s.before(p)}})}function Mi(t,e,i){nt&&Qi();var o=t,r,s;Gi(()=>{r!==(r=e())&&(s&&(Hn(s),s=null),r&&(s=Bi(()=>i(o,r))))},65536),nt&&(o=wt)}function Ca(t,e,i,o,r,s){var w;let l=nt;nt&&Qi();var d=Le&&s&&((w=Ut)==null?void 0:w.function[Nn]),a,u,f=null;nt&&wt.nodeType===ou&&(f=wt,Qi());var v=nt?wt:t,p,y=qs;Gi(()=>{let x=e()||null;var C=r?r():i||x==="svg"?Jc:null;if(x!==a){var T=qs;hf(y),p&&(x===null?Hn(p,()=>{p=null,u=null}):x===u?xs(p):(qi(p),wu(!1))),x&&x!==u&&(p=Bi(()=>{if(f=nt?f:C?document.createElementNS(C,x):document.createElement(x),Le&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Po(f,f),o){nt&&Mh(x)&&f.append(document.createComment(""));var E=nt?Ii(f):f.appendChild(Sn());nt&&(E===null?uo(!1):Ti(E)),o(f,E)}xt.nodes_end=f,v.before(f)})),a=x,a&&(u=a),wu(!0),hf(T)}},65536),l&&(uo(!0),Ti(v))}var bf;function Bh(t){return bf=t.target,new _f(t)}var Ss,yr,_f=class{constructor(e){Bs(this,Ss);Bs(this,yr);var s,l;var i=new Map,o=(d,a)=>{var u=as(a,!1,!1);return i.set(d,u),u};let r=new Proxy({...e.props||{},$$events:{}},{get(d,a){var u;return n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===pl?!0:(n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return N((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});ul(this,yr,(e.hydrate?vf:Qr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Tl(),ul(this,Ss,r.$$events);for(let d of Object.keys(Di(this,yr)))d==="$set"||d==="$destroy"||d==="$on"||lo(this,d,{get(){return Di(this,yr)[d]},set(a){Di(this,yr)[d]=a},enumerable:!0});Di(this,yr).$set=d=>{Object.assign(r,d)},Di(this,yr).$destroy=()=>{Sa(Di(this,yr))}}$set(e){Di(this,yr).$set(e)}$on(e,i){Di(this,Ss)[e]=Di(this,Ss)[e]||[];let o=(...r)=>i.call(this,...r);return Di(this,Ss)[e].push(o),()=>{Di(this,Ss)[e]=Di(this,Ss)[e].filter(r=>r!==o)}}$destroy(){Di(this,yr).$destroy()}};Ss=new WeakMap,yr=new WeakMap;function W(t,e){Cn(()=>{var r,s,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(s=bf)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Le&&Rh(e.hash,d)}})}function Cs(t,e){var i=void 0,o;Gi(()=>{i!==(i=e())&&(o&&(qi(o),o=null),i&&(o=Bi(()=>{ko(()=>i(t))})))})}function Hh(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Hh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Fh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Hh(t))&&(o&&(o+=" "),o+=e);return o}function Rd(t){return typeof t=="object"?Fh(t):t!=null?t:""}var Uh=[...`
44
- \r\f\xA0\v\uFEFF`];function Wh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var s=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+s;(l===0||Uh.includes(o[l-1]))&&(d===o.length||Uh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function zh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function $f(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Kh(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map($f)),r&&a.push(...Object.keys(r).map($f));var u=0,f=-1;let x=t.length;for(var v=0;v<x;v++){var p=t[v];if(d?p==="/"&&t[v-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[v+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=v;else if(p===";"||v===x-1){if(f!==-1){var y=$f(t.substring(u,f).trim());if(!a.includes(y)){p!==";"&&v++;var w=t.substring(u,v).trim();i+=" "+w+";"}}u=v+1,f=-1}}}}return o&&(i+=zh(o)),r&&(i+=zh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ne(t,e,i,o,r,s){var l=t.__className;if(nt||l!==i||l===void 0){var d=Wh(i,o,s);(!nt||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&r!==s)for(var a in s){var u=!!s[a];(r==null||u!==!!r[a])&&t.classList.toggle(a,u)}return s}function yf(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function Je(t,e,i,o){var r=t.__style;if(nt||r!==e){var s=Kh(e,o);(!nt||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(yf(t,i==null?void 0:i[0],o[0]),yf(t,i==null?void 0:i[1],o[1],"important")):yf(t,i,o));return o}function Nd(t,e,i){if(t.multiple){if(e==null)return;if(!tr(e))return lh();for(var o of t.options)o.selected=e.includes(qh(o));return}for(o of t.options){var r=qh(o);if(qp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function xf(t){var e=new MutationObserver(()=>{Nd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Io(()=>{e.disconnect()})}function qh(t){return"__value"in t?t.__value:t.value}var Al=Symbol("class"),Pl=Symbol("style"),jh=Symbol("is custom element"),Yh=Symbol("is html");function Zh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function We(t,e,i,o){var r=Jh(t);if(nt&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||kb(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Hg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&e1(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Xh(t,e,i,o,r=!1){var A;var s=Jh(t),l=s[jh],d=!s[Yh];let a=nt&&l;a&&uo(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=Rd(i.class):(o||i[Al])&&(i.class=null),i[Pl]&&((A=i.style)!=null||(i.style=null));var p=e1(t);for(let I in i){let O=i[I];if(f&&I==="value"&&O==null){t.value=t.__value="",u[I]=O;continue}if(I==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";ne(t,y,O,o,e==null?void 0:e[Al],i[Al]),u[I]=O,u[Al]=i[Al];continue}if(I==="style"){Je(t,O,e==null?void 0:e[Pl],i[Pl]),u[I]=O,u[Pl]=i[Pl];continue}var w=u[I];if(!(O===w&&!(O===void 0&&t.hasAttribute(I)))){u[I]=O;var x=I[0]+I[1];if(x!=="$$")if(x==="on"){let H={},B="$$"+I,z=I.slice(2);var C=kh(z);if(Ih(z)&&(z=z.slice(0,-7),H.capture=!0),!C&&w){if(O!=null)continue;t.removeEventListener(z,u[B],H),u[B]=null}if(O!=null)if(C)t[`__${z}`]=O,dt([z]);else{let Z=function(ae){u[I].call(this,ae)};var R=Z;u[B]=pf(z,t,Z,H)}else C&&(t[`__${z}`]=void 0)}else if(I==="style")We(t,I,O);else if(I==="autofocus")cf(t,!!O);else if(!l&&(I==="__value"||I==="value"&&O!=null))t.value=t.__value=O;else if(I==="selected"&&f)Zh(t,O);else{var T=I;d||(T=Ah(T));var E=T==="defaultValue"||T==="defaultChecked";if(O==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let H=t,B=e===void 0;if(T==="value"){let z=H.defaultValue;H.removeAttribute(T),H.defaultValue=z,H.value=H.__value=B?z:null}else{let z=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=z,H.checked=B?z:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(l||typeof O!="string")?t[T]=O:typeof O!="function"&&We(t,T,O,r)}}}return a&&uo(!0),u}function ke(t,e,i=[],o,r=!1,s=Wr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Gi(()=>{var p=e(...l.map(n)),y=Xh(t,d,p,o,r);f&&u&&"value"in p&&Nd(t,p.value,!1);for(let x of Object.getOwnPropertySymbols(a))p[x]||qi(a[x]);for(let x of Object.getOwnPropertySymbols(p)){var w=p[x];x.description===Dp&&(!d||w!==d[x])&&(a[x]&&qi(a[x]),a[x]=Bi(()=>Cs(t,()=>w))),y[x]=w}d=y}),u){var v=t;ko(()=>{Nd(v,d.value),xf(v)})}f=!0}function Jh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[jh]:t.nodeName.includes("-"),[Yh]:t.namespaceURI===Lg}}var Qh=new Map;function e1(t){var e=Qh.get(t.nodeName);if(e)return e;Qh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=tu(o);for(var s in i)i[s].set&&e.push(s);o=fa(o)}return e}function kb(t,e,i){var o;Le&&(e==="srcset"&&Ab(t,i)||wf((o=t.getAttribute(e))!=null?o:"",i)||rh(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function wf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Gh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Ab(t,e){var i=Gh(t.srcset),o=Gh(e);return o.length===i.length&&o.every(([r,s],l)=>s===i[l][1]&&(wf(i[l][0],r)||wf(r,i[l][0])))}var Pb=eu?()=>performance.now():()=>Date.now(),Gr={tick:t=>(eu?requestAnimationFrame:ce)(t),now:()=>Pb(),tasks:new Set};function t1(){let t=Gr.now();Gr.tasks.forEach(e=>{e.c(t)||(Gr.tasks.delete(e),e.f())}),Gr.tasks.size!==0&&Gr.tick(t1)}function i1(t){let e;return Gr.tasks.size===0&&Gr.tick(t1),{promise:new Promise(i=>{Gr.tasks.add(e={c:t,f:i})}),abort(){Gr.tasks.delete(e)}}}function Su(t,e){Pd(()=>{t.dispatchEvent(new CustomEvent(e))})}function Rb(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 o1(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let l=Rb(r.trim());e[l]=s.trim()}return e}var Nb=t=>t;function jr(t,e,i,o){var R;var r=(t&1)!==0,s=(t&2)!==0,l=r&&s,d=(t&4)!==0,a=l?"both":r?"in":"out",u,f=e.inert,v=e.style.overflow,p,y;function w(){var O;var A=Nt,I=xt;Ki(null),co(null);try{return u!=null?u:u=i()(e,(O=o==null?void 0:o())!=null?O:{},{direction:a})}finally{Ki(A),co(I)}}var x={is_global:d,in(){var A;if(e.inert=f,!r){y==null||y.abort(),(A=y==null?void 0:y.reset)==null||A.call(y);return}s||p==null||p.abort(),Su(e,"introstart"),p=Sf(e,w(),y,1,()=>{Su(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(A){if(!s){A==null||A(),u=void 0;return}e.inert=!0,Su(e,"outrostart"),y=Sf(e,w(),p,0,()=>{Su(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),y==null||y.abort()}},C=xt;if(((R=C.transitions)!=null?R:C.transitions=[]).push(x),r&&Md){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&ko(()=>{Pt(()=>x.in())})}}function Sf(t,e,i,o,r){var s=o===1;if(Us(e)){var l,d=!1;return Cn(()=>{if(!d){var C=e({direction:s?"in":"out"});l=Sf(t,C,i,o,r)}}),{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 r(),{abort:ce,deactivate:ce,reset:ce,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=Nb}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var y=o1(u(0,1));p.push(y,y)}var w=()=>1-o,x=t.animate(p,{duration:a,fill:"forwards"});return x.onfinish=()=>{var z;x.cancel();var C=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),R=[];if(E>0){var A=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),O=0;O<=I;O+=1){var H=C+T*v(O/I),B=o1(u(H,1-H));R.push(B),A||(A=B.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var Z=x.currentTime;return C+T*v(Z/E)},f&&i1(()=>{if(x.playState!=="running")return!1;var Z=w();return f(Z,1-Z),!0})}x=t.animate(R,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,f==null||f(o,1-o),r()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=ce)},deactivate:()=>{r=ce},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}function Cf(t,e,i){var o=zo(t,e);o&&o.set&&(t[e]=i,Io(()=>{t[e]=null}))}var Qs,Ml,Od,Tu,n1,Eu=class Eu{constructor(e){Bs(this,Tu);Bs(this,Qs,new WeakMap);Bs(this,Ml);Bs(this,Od);ul(this,Od,e)}observe(e,i){var o=Di(this,Qs).get(e)||new Set;return o.add(i),Di(this,Qs).set(e,o),Pg(this,Tu,n1).call(this).observe(e,Di(this,Od)),()=>{var r=Di(this,Qs).get(e);r.delete(i),r.size===0&&(Di(this,Qs).delete(e),Di(this,Ml).unobserve(e))}}};Qs=new WeakMap,Ml=new WeakMap,Od=new WeakMap,Tu=new WeakSet,n1=function(){var e;return(e=Di(this,Ml))!=null?e:ul(this,Ml,new ResizeObserver(i=>{for(var o of i){Eu.entries.set(o.target,o);for(var r of Di(this,Qs).get(o.target)||[])r(o)}}))},er(Eu,"entries",new WeakMap);var Tf=Eu;var Ob=new Tf({box:"border-box"});function En(t,e,i){var o=Ob.observe(t,()=>i(t[e]));ko(()=>(Pt(()=>i(t[e])),o))}function r1(t,e){return t===e||(t==null?void 0:t[Wo])===e}function at(t={},e,i,o){return ko(()=>{var r,s;return Go(()=>{r=s,s=(o==null?void 0:o())||[],Pt(()=>{t!==i(...s)&&(e(t,...s),r&&r1(i(...r),t)&&e(null,...r))})}),()=>{Cn(()=>{s&&r1(i(...s),t)&&e(null,...s)})}}),t}function jo(t=!1){let e=Ut,i=e.l.u;if(!i)return;let o=()=>$u(e.s);if(t){let r=0,s={},l=Wr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Cd(()=>{s1(e,o),zs(i.b)}),ze(()=>{let r=Pt(()=>i.m.map(Bg));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&ze(()=>{s1(e,o),zs(i.a)})}function s1(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Dd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ce;let o=Pt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ll=[];function xr(t,e){return{subscribe:se(t,e).subscribe}}function se(t,e=ce){let i=null,o=new Set;function r(d){if(vl(t,d)&&(t=d,i)){let a=!Ll.length;for(let u of o)u[1](),Ll.push(u,t);if(a){for(let u=0;u<Ll.length;u+=2)Ll[u][0](Ll[u+1]);Ll.length=0}}}function s(d){r(d(t))}function l(d,a=ce){let u=[d,a];return o.add(u),o.size===1&&(i=e(r,s)||ce),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:l}}function bi(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return xr(i,(l,d)=>{let a=!1,u=[],f=0,v=ce,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);s?l(w):v=typeof w=="function"?w:ce},y=r.map((w,x)=>Dd(w,C=>{u[x]=C,f&=~(1<<x),a&&p()},()=>{f|=1<<x}));return a=!0,p(),function(){zs(y),v(),a=!1}})}function be(t){let e;return Dd(t,i=>e=i)(),e}var Iu=!1,Ef=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:as(void 0),unsubscribe:ce};if(o.store!==t&&!(Ef in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ce;else{var r=!0;o.unsubscribe=Dd(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&Ef in i?be(t):n(o.source)}function De(){let t={};function e(){Io(()=>{for(var i in t)t[i].unsubscribe();lo(t,Ef,{enumerable:!1,value:!0})})}return[t,e]}function If(t){var e=Iu;try{return Iu=!1,[t(),Iu]}finally{Iu=e}}var Wb={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Le&&Yg(`${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 Re(t,e,i){return new Proxy(Le?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},Wb)}var Kb={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Us(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let r=t.props[o];Us(r)&&(r=r());let s=zo(r,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Us(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=zo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Wo||e===pl)return!1;for(let i of t.props)if(Us(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Us(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 Ts(...t){return new Proxy({props:t},Kb)}function a1(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function h(t,e,i,o){var H,B;var r=(i&1)!==0,s=!ns||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=If(()=>t[e]):u=t[e];var f=Wo in t||pl in t,v=l&&((B=(H=zo(t,e))==null?void 0:H.set)!=null?B:f&&e in t&&(z=>t[e]=z))||void 0,p=o,y=!0,w=!1,x=()=>(w=!0,y&&(y=!1,d?p=Pt(o):p=o),p);u===void 0&&o!==void 0&&(v&&s&&jg(e),u=x(),v&&v(u));var C;if(s)C=()=>{var z=t[e];return z===void 0?x():(y=!0,w=!1,z)};else{var T=(r?Wr:xn)(()=>t[e]);T.f|=131072,C=()=>{var z=n(T);return z!==void 0&&(p=void 0),z===void 0?p:z}}if((i&4)===0&&s)return C;if(v){var E=t.$$legacy;return function(z,Z){return arguments.length>0?((!s||!Z||E||a)&&v(Z?C():z),z):C()}}var R=!1,A=!1,I=as(u),O=Wr(()=>{var z=C(),Z=n(I);return R?(R=!1,A=!0,Z):(A=!1,I.v=z)});return l&&n(O),r||(O.equals=ml),function(z,Z){if(_u!==null&&(R=A,C(),n(I)),arguments.length>0){let ae=Z?n(O):s&&l?ai(z):z;if(!O.equals(ae)){if(R=!0,N(I,ae),w&&p!==void 0&&(p=ae),a1(O))return z;Pt(()=>n(O))}return z}return a1(O)?O.v:n(O)}}var qb;typeof HTMLElement=="function"&&(qb=class extends HTMLElement{constructor(e,i,o){super();er(this,"$$ctor");er(this,"$$s");er(this,"$$c");er(this,"$$cn",!1);er(this,"$$d",{});er(this,"$$r",!1);er(this,"$$p_d",{});er(this,"$$l",{});er(this,"$$l_u",new Map);er(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 r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),b(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=Qb(this);for(let s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=kf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Bh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=vu(()=>{Go(()=>{var s;this.$$r=!0;for(let l of Bp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=kf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=kf(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$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 Bp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function kf(t,e,i,o){var s;let r=(s=i[t])==null?void 0:s.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Qb(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var l1="5";var d1,c1,u1;typeof window!="undefined"&&((u1=(c1=(d1=window.__svelte)!=null?d1:window.__svelte={}).v)!=null?u1:c1.v=new Set).add(l1);var ed=require("@vkontakte/videoplayer-core/es2018"),QZ=require("@vkontakte/videoplayer-core/es2018"),tl=require("@vkontakte/videoplayer-shared/es2018"),h_=require("@vkontakte/videoplayer-statistics/es2018");var Ta=require("@vkontakte/videoplayer-shared/es2018");var Gb={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Ta.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:Ta.VideoQuality.Q_480P,highQualityLimit:Ta.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180},p1=t=>(0,Ta.fillWithDefault)(t,Gb),f1=t=>_l("ui-config",t),Rt=()=>hl("ui-config");var Bd="vk_player_debug_panel_opened";var v1="videoplayer",m1="videoplayer";var ds={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},g1=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),h1=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),_1=new Set(["ShiftRight","ShiftLeft"]);var b1=["TIMELINE"],Hd=[...b1,"GRAPH_BUTTON"],Af=[...b1,"PLAY_BUTTON"],Fd=[...Hd,"PLAY_BUTTON"];var Yr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Yr||{}),Ia={xs:0,s:1,m:2,l:3,xl:4};var Ud=require("@vkontakte/videoplayer-shared/es2018"),$1=require("@vkontakte/videoplayer-core/es2018"),y1=require("@vkontakte/videoplayer-statistics/es2018");var ku="prod",ka="1.1.75-dev.3ba5a3c2.0";var Aa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var x1=Symbol("storeContext"),w1=Symbol("microStoresContext"),S1=(t,e)=>{_l(x1,t),_l(w1,e),ku==="dev"&&(window.app={store:t,microStores:e})},he=()=>{let t=hl(x1);return(0,Ud.assertNonNullable)(t,"Store context is empty!"),t},$o=()=>{let t=hl(w1);return(0,Ud.assertNonNullable)(t,"MicroStores context is empty!"),t},li=(t,e)=>Pu(t,t.getValue(),e),Pu=(t,e,i)=>xr(e,o=>{let r=t.subscribe(s=>{o(s),i==null||i(s)});return()=>r.unsubscribe()}),C1=(t,e,i,o)=>{var H,B,z,Z,ae,q,de,X,fe;let r=t.info,{width:s,height:l}=be(i.ui.playerSize),d=(B=(H=r.throughputEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?B:0,a=(Z=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?Z:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${ka} (core: ${$1.VERSION}, stat: ${y1.VERSION}, shared: ${Ud.VERSION})`,v=be(i.state.errorLog$),p=v.length?`
45
- `+v.map((re,le)=>{var Ne;let Me=`${le}) Type: ${re.id}
46
- `,we=`Message: ${re.message} (${re.thrown})
47
- `,te=`Trace: ${(Ne=re.thrown)==null?void 0:Ne.stack}
48
- `;return Me+we+te}).join(`
49
- `):void 0,y=i.state.isAudioDisabled?"disabled":be(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(ae=w==null?void 0:w.codec)!=null?ae:""}`+(w!=null&&w.hdr?" (HDR)":"")),x&&C.push(`Audio: ${(q=x==null?void 0:x.codec)!=null?q:""}`+(x!=null&&x.language?` (${x.language})`:""));let T=r.currentQuality$.getValue(),E="";if(T){let re=r.availableQualitiesFps$.getValue()[T];E=re?`${re}fps`:""}let R=r.httpConnectionType$.getValue(),A=(X=(de=r.currentBuffer$.getValue())==null?void 0:de.end)!=null?X:0,I=Math.max(A-be(i.state.positionExact$),0),O={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:be(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":R?R+(r.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${a}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:C.join(", "),Quality:`${u} ${T!=null?T:""} ${E}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:y,Position:`${be(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${be(i.playerPhase)} ${(fe=r.playbackState$.getValue())!=null?fe:""}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(O).filter(([re,le])=>le!==void 0).map(([re,le])=>`${re}: ${le}`).join(`
50
- `)},T1=(t,e,i)=>{var H,B,z,Z;let o=t.info,{width:r,height:s}=be(i.ui.playerSize),l={version:ka,viewport:`${r}x${s}`,volume:Math.round(be(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 u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(v&&p?l.buffer=f.end-p:l.buffer=Math.max(f.end-be(i.state.positionExact$),0)),l.position=be(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let C=o.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=be(i.vsid);typeof E=="string"&&(l.vsid=E);let R=(H=t.info.currentVideoStream$.getValue())==null?void 0:H.codec;R&&(l.videoCodec=R);let A=(B=t.info.currentAudioStream$.getValue())==null?void 0:B.codec;A&&(l.audioCodec=A),((z=t.info.currentVideoStream$.getValue())==null?void 0:z.hdr)&&(l.hdr=!0);let O=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.language;return O&&(l.audioLanguage=O),l},E1=(t,e)=>Aa(t,e,"mp4"),I1=t=>!t.type,k1=t=>!!t.type,A1=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Au=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 $i=require("@vkontakte/videoplayer-shared/es2018"),OM=require("@vkontakte/videoplayer-core/es2018"),jb="vk_player_",P1="vk_player_prefer_traffic_saving_enabled",M1="vk_player_preferred_volume",L1="vk_player_prefer_volume_mute",Vf="vk_player_preferred_quality",Pf="vk_player_preferred_default_quality_settings",Mf="vk_player_preferred_quality_settings_by_video",V1="vk_player_preferred_stream_language",R1="vk_player_preferred_rate",N1="vk_player_preferred_autoplay_next",Lf="vk_player_preferred_subtitles_language",O1="vk_player_user_video_prefs",D1=`${jb}preview_track_close_tooltip`,B1=t=>t>1?1:t<0?0:t,Rf=t=>$i.safeStorage.set(M1,B1(t).toString(10)),Mu=()=>{let t=$i.safeStorage.get(M1);return(0,$i.isNullable)(t)?void 0:B1(parseFloat(t))},Nf=(t,e)=>$i.safeStorage.set(Vf,JSON.stringify({videoId:t,value:e})),Lu=()=>$i.safeStorage.remove(Vf),Of=t=>{let e=$i.safeStorage.get(Vf);if((0,$i.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Lu();return}return o},Df=(t,e)=>{e?$i.safeStorage.set(t,"true"):$i.safeStorage.remove(t)},Bf=t=>$i.safeStorage.get(t)==="true",Hf=t=>Df(L1,t),H1=()=>Bf(L1),zd=t=>Df(P1,t),Ff=()=>Bf(P1),F1=()=>$i.safeStorage.get(V1),Uf=t=>$i.safeStorage.set(V1,t),zf=()=>$i.safeStorage.get(Lf),Wf=t=>{t?$i.safeStorage.set(Lf,t):$i.safeStorage.remove(Lf)},U1=t=>$i.safeStorage.set(R1,JSON.stringify({rate:t})),z1=()=>{let t=$i.safeStorage.get(R1);if((0,$i.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},W1=t=>Df(N1,t),K1=()=>Bf(N1),Yb=()=>{let t=f=>{$i.safeStorage.set(Pf,JSON.stringify(f))},e=()=>{try{let f=$i.safeStorage.get(Pf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=$i.safeStorage.get(Mf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{$i.safeStorage.set(Mf,JSON.stringify(f))},r=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return{...v,appliesTo:"to-video"};v&&s();let p=e();return p?{...p,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{$i.safeStorage.remove(Mf)},l=()=>{$i.safeStorage.remove(Pf)},d=(f,v="as-default")=>{f.type==="exact_quality"||v==="to-video"?o(f):t(f)},a=f=>{let v=r(f);if(v){switch(v.type){case"traffic_saving":zd(!0);break;case"exact_quality":Nf(f,v.quality)}s(),l()}},u=f=>{let v=Of(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}Ff()&&t({type:"traffic_saving",videoId:f}),zd(!1),Lu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:zf,savePreferredSubtitlesLanguage:Wf}},{getPreferredQualitySettings:q1,migrateSettingsToLegacyWay:Q1,savePreferredQualitySettings:Vu,savePreferredDefaultQualitySettings:DM,removePreferredQualitySettingsByVideo:BM,getPreferredDefaultQualitySettings:Ru}=Yb(),Zb=3,Xb=3,G1=()=>{let t=$i.safeStorage.get(O1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Nu=(t,e)=>{var r,s;let i=G1();return(s=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?s:null},Kf=(t,e,i)=>{var l,d,a;let o=(l=G1())!=null?l:{},r=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let s=Jb(o);$i.safeStorage.set(O1,JSON.stringify(s))};function Jb(t){let e=Object.entries(t).reduce((o,[r,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(Xb),e.reduce((o,[r])=>(o[r]=e$(t[r]),o),{})}function e$(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(Zb),Object.fromEntries(e)}function j1(){$i.safeStorage.set(D1,JSON.stringify(!0))}function Y1(){let t=$i.safeStorage.get(D1);try{return t?JSON.parse(t):!1}catch(e){return!1}}var ag=require("@vkontakte/videoplayer-core/es2018");var t$=Ee('<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 Wd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=t$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var Vl=require("@vkontakte/videoplayer-shared/es2018");var i$={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
43
+ `)})}}var $a=!1,Sl=null,ya=!1,hs=!1;function Xp(t){hs=t}var Id=[],kd=[],Nt=null,nr=!1;function qi(t){Nt=t}var St=null;function vo(t){St=t}var Bo=null;function su(t){Nt!==null&&Nt.f&2097152&&(Bo===null?Bo=[Nt,[t]]:Bo[1].push(t))}var En=null,rr=0,or=null;function nh(t){or=t}var wh=1,mu=0,_s=!1,gu=null;function hd(){return++wh}function ga(t){var v,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var r,s,l=(e&512)!==0,d=o&&St!==null&&!_s,a=i.length;if(l||d){var u=t,f=u.parent;for(r=0;r<a;r++)s=i[r],(l||!((v=s==null?void 0:s.reactions)!=null&&v.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(r=0;r<a;r++)if(s=i[r],ga(s)&&Zp(s),s.wv>t.wv)return!0}(!o||St!==null&&!_s)&&Sn(t,1024)}return!1}function Sh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];Bo!=null&&Bo[1].includes(t)&&Bo[0]===Nt||((s.f&2)!==0?Sh(s,e,!1):e===s&&(i?Sn(s,2048):(s.f&1024)!==0&&Sn(s,4096),bd(s)))}}function ru(t){var y,w;var e=En,i=rr,o=or,r=Nt,s=_s,l=Bo,d=Ut,a=nr,u=t.f;En=null,rr=0,or=null,_s=(u&256)!==0&&(nr||!ya||Nt===null),Nt=(u&96)===0?t:null,Bo=null,vd(t.ctx),nr=!1,mu++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(En!==null){var p;if(Cd(t,rr),v!==null&&rr>0)for(v.length=rr+En.length,p=0;p<En.length;p++)v[rr+p]=En[p];else t.deps=v=En;if(!_s||(u&2)!==0&&t.reactions!==null)for(p=rr;p<v.length;p++)((w=(y=v[p]).reactions)!=null?w:y.reactions=[]).push(t)}else v!==null&&rr<v.length&&(Cd(t,rr),v.length=rr);if(rs()&&or!==null&&!nr&&v!==null&&(t.f&6146)===0)for(p=0;p<or.length;p++)Sh(or[p],t);return r!==null&&r!==t&&(mu++,or!==null&&(o===null?o=or:o.push(...or))),f}catch(x){$h(x)}finally{En=e,rr=i,or=o,Nt=r,_s=s,Bo=l,vd(d),nr=a,t.f^=2097152}}function Q_(t,e){let i=e.reactions;if(i!==null){var o=Og.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(En===null||!En.includes(e))&&(Sn(e,4096),(e.f&768)===0&&(e.f^=512),nu(e),Cd(e,0))}function Cd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)Q_(t,i[o])}function yl(t){var e=t.f;if((e&16384)===0){Sn(t,1024);var i=St,o=ya;if(St=t,ya=!0,Re){var r=tr;md(t.component_function)}try{(e&16)!==0?mh(t):of(t),tf(t);var s=ru(t);if(t.teardown=typeof s=="function"?s:null,t.wv=wh,Re&&ns&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=hd(),l.set_during_effect=!1);Re&&kd.push(t)}finally{ya=o,St=i,Re&&md(r)}}}function yh(){console.error("Last ten effects were: ",kd.slice(-10).map(t=>t.fn)),kd=[]}function G_(){try{qg()}catch(t){if(Re&&fo(t,"stack",{value:""}),Sl!==null)if(Re)try{Ed(t,Sl)}catch(e){throw yh(),e}else Ed(t,Sl);else throw Re&&yh(),t}}function df(){var t=ya;try{var e=0;for(ya=!0;Id.length>0;){e++>1e3&&G_();var i=Id,o=i.length;Id=[];for(var r=0;r<o;r++){var s=Y_(i[r]);j_(s)}bl.clear()}}finally{$a=!1,ya=t,Sl=null,Re&&(kd=[])}}function j_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ga(o)&&(yl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?rf(o):o.fn=null))}}function bd(t){$a||($a=!0,queueMicrotask(df));for(var e=Sl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Id.push(e)}function Y_(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:ga(i)&&yl(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 Cl(t){var e;for(t&&($a=!0,df(),$a=!0,e=t());;){if(_h(),Id.length===0)return $a=!1,Sl=null,Re&&(kd=[]),e;$a=!0,df()}}async function go(){await Promise.resolve(),Cl()}function n(t){var e=t.f,i=(e&2)!==0;if(gu!==null&&gu.add(t),Nt!==null&&!nr){if(!(Bo!=null&&Bo[1].includes(t))||Bo[0]!==Nt){var o=Nt.deps;t.rv<mu&&(t.rv=mu,En===null&&o!==null&&o[rr]===t?rr++:En===null?En=[t]:(!_s||!En.includes(t))&&En.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,ga(r)&&Zp(r)),Re&&ns&&!nr&&fd!==null&&Nt!==null&&fd.reaction===Nt)if(t.trace)t.trace();else{var l=gs("TracedAt");if(l){var d=fd.entries.get(t);d===void 0&&(d={traces:[]},fd.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 hs&&bl.has(t)?bl.get(t):t.v}function Pt(t){var e=nr;try{return nr=!0,t()}finally{nr=e}}var Z_=-7169;function Sn(t,e){t.f=t.f&Z_|e}function _u(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Oo in t)hu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Oo in i&&hu(i)}}}function hu(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{hu(t[o],e)}catch(r){}let i=pa(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Jc(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch(l){}}}}}function cf(t,e){if(e){let i=document.body;t.autofocus=!0,Tn(()=>{document.activeElement===i&&t.focus()})}}function Ad(t){var e=Nt,i=St;qi(null),vo(null);try{return t()}finally{qi(e),vo(i)}}var uf=new Set,bu=new Set;function xa(t){if(!nt)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 pf(t,e,i,o={}){function r(s){if(o.capture||Tl.call(e,s),!s.cancelBubble)return Ad(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Tn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function xt(t,e,i,o,r){var s={capture:o,passive:r},l=pf(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Eo(()=>{e.removeEventListener(t,l,s)})}function ct(t){for(var e=0;e<t.length;e++)uf.add(t[e]);for(var i of bu)i(t)}function Tl(t){var E;var e=this,i=e.ownerDocument,o=t.type,r=((E=t.composedPath)==null?void 0:E.call(t))||[],s=r[0]||t.target,l=0,d=t.__root;if(d){var a=r.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=r[l]||t.target,s!==e){fo(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Nt,v=St;qi(null),vo(null);try{for(var p,y=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+o];if(x!=null&&(!s.disabled||t.target===s))if(Jn(x)){var[C,...T]=x;C.apply(s,[t,...T])}else x.call(s,t)}catch(R){p?y.push(R):p=R}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let R of y)queueMicrotask(()=>{throw R});throw p}}finally{t.__root=e,delete t.currentTarget,qi(f),vo(v)}}}var J_;function Ch(){J_=void 0}function El(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function ko(t,e){var i=St;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,r,s=!t.startsWith("<!>");return()=>{if(nt)return ko(Ct,null),Ct;r===void 0&&(r=El(s?t:"<!>"+t),i||(r=Pi(r)));var l=o||$d?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Pi(l),a=l.lastChild;ko(d,a)}else ko(l,l);return l}}function ib(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(nt)return ko(Ct,null),Ct;if(!l){var d=El(s),a=Pi(d);if(r)for(l=document.createDocumentFragment();Pi(a);)l.appendChild(Pi(a));else l=Pi(a)}var u=l.cloneNode(!0);if(r){var f=Pi(u),v=u.lastChild;ko(f,v)}else ko(u,u);return u}}function Ee(t,e){return ib(t,e,"svg")}function as(t=""){if(!nt){var e=Cn(t+"");return ko(e,e),e}var i=Ct;return i.nodeType!==pl&&(i.before(i=Cn()),Ei(i)),ko(i,i),i}function Ue(){if(nt)return ko(Ct,null),Ct;var t=document.createDocumentFragment(),e=document.createComment(""),i=Cn();return t.append(e,i),ko(e,i),t}function b(t,e){if(nt){St.nodes_end=Ct,Gi();return}t!==null&&t.before(e)}var ob=/\r/g;function Eh(t){t=t.replace(ob,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Ih(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var nb=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function kh(t){return nb.includes(t)}var rb=["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 sb={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 Ah(t){var e;return t=t.toLowerCase(),(e=sb[t])!=null?e:t}var h9=[...rb,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var ab=["touchstart","touchmove"];function Ph(t){return ab.includes(t)}var lb=["$state","$state.raw","$derived","$derived.by"],_9=[...lb,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var db=["textarea","script","style","title"];function Mh(t){return db.includes(t)}function $u(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Pd=!0;function yu(t){Pd=t}function fe(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Ur(t,e){return Lh(t,e)}function vf(t,e){var l;du(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=nt,r=Ct;try{for(var s=Pi(i);s&&(s.nodeType!==er||s.data!==Ds);)s=Ho(s);if(!s)throw is;mo(!0),Ei(s),Gi();let d=Lh(t,{...e,anchor:s});if(Ct===null||Ct.nodeType!==er||Ct.data!==ua)throw Us(),is;return mo(!1),d}catch(d){if(d===is)return e.recover===!1&&Qg(),du(),yd(i),mo(!1),Ur(t,e);throw d}finally{mo(o),Ei(r),Ch()}}var Il=new Map;function Lh(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:l=!0}){du();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var y=v[p];if(!d.has(y)){d.add(y);var w=Ph(y);e.addEventListener(y,Tl,{passive:w});var x=Il.get(y);x===void 0?(document.addEventListener(y,Tl,{passive:w}),Il.set(y,1)):Il.set(y,x+1)}}};a(pd(uf)),bu.add(a);var u=void 0,f=vh(()=>{var v=i!=null?i:e.appendChild(Cn());return Di(()=>{if(s){F({});var p=Ut;p.c=s}r&&(o.$$events=r),nt&&ko(v,null),Pd=l,u=t(v,o)||{},Pd=!0,nt&&(St.nodes_end=Ct),s&&U()}),()=>{var w;for(var p of d){e.removeEventListener(p,Tl);var y=Il.get(p);--y===0?(document.removeEventListener(p,Tl),Il.delete(p)):Il.set(p,y)}bu.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return ff.set(u,f),u}var ff=new WeakMap;function wa(t,e){let i=ff.get(t);return i?(ff.delete(t),i(e)):(Re&&ah(),Promise.resolve())}function _e(t,e,...i){var o=t,r=ce,s;ji(()=>{r!==(r=e())&&(s&&(Qi(s),s=null),Re&&r==null&&Gg(),s=Di(()=>r(o,...i)))},65536),nt&&(o=Ct)}if(Re){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Zg(e)},set:o=>{i=o}})}};fb=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var fb;function Ot(t){Ut===null&&ml("onMount"),os&&Ut.l!==null?pb(Ut).m.push(t):qe(()=>{let e=Pt(t);if(typeof e=="function")return e})}function rn(t){Ut===null&&ml("onDestroy"),Ot(()=>()=>Pt(t))}function pb(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Vh=new Map;function Rh(t,e){var i=Vh.get(t);i||(i=new Set,Vh.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){nt&&i===0&&Gi();var r=t,s=null,l=null,d=Ji,a=i>0?65536:0,u=!1;let f=(p,y=!0)=>{u=!0,v(y,p)},v=(p,y)=>{if(d===(d=p))return;let w=!1;if(nt&&o!==-1){if(i===0){let C=lu(r);C===Ds?o=0:C===Bs?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(r=ha(),Ei(r),mo(!1),w=!0,o=-1)}d?(s?$s(s):y&&(s=Di(()=>y(r))),l&&zn(l,()=>{l=null})):(l?$s(l):y&&(l=Di(()=>y(r,[i+1,o]))),s&&zn(s,()=>{s=null})),w&&mo(!0)};ji(()=>{u=!1,e(f),u||v(null,null)},a),nt&&(r=Ct)}function ys(t,e,i){nt&&Gi();var o=t,r=Ji,s,l=rs()?Fg:fl;ji(()=>{l(r,r=e())&&(s&&zn(s),s=Di(()=>i(o)))}),nt&&(o=Ct)}var Ws=null;function hf(t){Ws=t}function Md(t,e){return e}function gb(t,e,i,o){for(var r=[],s=e.length,l=0;l<s;l++)fu(e[l].e,r,!0);var d=s>0&&r.length===0&&i!==null;if(d){var a=i.parentNode;yd(a),a.append(i),o.clear(),zs(t,e[0].prev,e[s-1].next)}sf(r,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),zs(t,f.prev,f.next)),Qi(f.e,!d)}})}function Ci(t,e,i,o,r,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=nt?Ei(Pi(u)):u.appendChild(Cn())}nt&&Gi();var f=null,v=!1,p=wn(()=>{var y=i();return Jn(y)?y:y==null?[]:pd(y)});ji(()=>{var y=n(p),w=y.length;if(v&&w===0)return;v=w===0;let x=!1;if(nt){var C=lu(l)===Bs;C!==(w===0)&&(l=ha(),Ei(l),mo(!1),x=!0)}if(nt){for(var T=null,E,R=0;R<w;R++){if(Ct.nodeType===er&&Ct.data===ua){l=Ct,x=!0,mo(!1);break}var A=y[R],I=o(A,R);E=Dh(Ct,d,T,null,A,I,R,r,e,i),d.items.set(I,E),T=E}w>0&&Ei(ha())}nt||hb(y,d,l,r,e,o,i),s!==null&&(w===0?f?$s(f):f=Di(()=>s(l)):f!==null&&zn(f,()=>{f=null})),x&&mo(!0),n(p)}),nt&&(l=Ct)}function hb(t,e,i,o,r,s,l){var X,ve,re,ae;var d=(r&8)!==0,a=(r&3)!==0,u=t.length,f=e.items,v=e.first,p=v,y,w=null,x,C=[],T=[],E,R,A,I;if(d)for(I=0;I<u;I+=1)E=t[I],R=s(E,I),A=f.get(R),A!==void 0&&((X=A.a)==null||X.measure(),(x!=null?x:x=new Set).add(A));for(I=0;I<u;I+=1){if(E=t[I],R=s(E,I),A=f.get(R),A===void 0){var O=p?p.e.nodes_start:i;w=Dh(O,e,w,w===null?e.first:w.next,E,R,I,o,r,l),f.set(R,w),C=[],T=[],p=w.next;continue}if(a&&_b(A,E,I,r),(A.e.f&8192)!==0&&($s(A.e),d&&((ve=A.a)==null||ve.unfix(),(x!=null?x:x=new Set).delete(A))),A!==p){if(y!==void 0&&y.has(A)){if(C.length<T.length){var H=T[0],B;w=H.prev;var z=C[0],Z=C[C.length-1];for(B=0;B<C.length;B+=1)Nh(C[B],H,i);for(B=0;B<T.length;B+=1)y.delete(T[B]);zs(e,z.prev,Z.next),zs(e,w,z),zs(e,Z,H),p=H,w=Z,I-=1,C=[],T=[]}else y.delete(A),Nh(A,p,i),zs(e,A.prev,A.next),zs(e,A,w===null?e.first:w.next),zs(e,w,A),w=A;continue}for(C=[],T=[];p!==null&&p.k!==R;)(p.e.f&8192)===0&&(y!=null?y:y=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),w=A,p=A.next}if(p!==null||y!==void 0){for(var se=y===void 0?[]:pd(y);p!==null;)(p.e.f&8192)===0&&se.push(p),p=p.next;var q=se.length;if(q>0){var de=(r&4)!==0&&u===0?i:null;if(d){for(I=0;I<q;I+=1)(re=se[I].a)==null||re.measure();for(I=0;I<q;I+=1)(ae=se[I].a)==null||ae.fix()}gb(e,se,de,f)}}d&&Tn(()=>{var Ae;if(x!==void 0)for(A of x)(Ae=A.a)==null||Ae.apply()}),St.first=e.first&&e.first.e,St.last=w&&w.e}function _b(t,e,i,o){(o&1)!==0&&$l(t.v,e),(o&2)!==0?$l(t.i,i):t.i=i}function Dh(t,e,i,o,r,s,l,d,a,u){var f=Ws,v=(a&1)!==0,p=(a&16)===0,y=v?p?ss(r,!1,!1):Cr(r):r,w=(a&2)===0?l:Cr(l);Re&&v&&(y.trace=()=>{var C=typeof w=="number"?l:w.v;u()[C]});var x={i:w,v:y,k:s,a:null,e:null,prev:i,next:o};Ws=x;try{return x.e=Di(()=>d(t,y,w,u),nt),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{Ws=f}}function Nh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Ho(s);r.before(s),s=l}}function zs(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 bb(t,e,i){var s,l;if(!e||e===Eh(String(i!=null?i:"")))return;let o,r=(s=t.__svelte_meta)==null?void 0:s.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=tr)!=null&&l[Bn]&&(o=`in ${tr[Bn]}`),sh($u(o))}function Ld(t,e,i=!1,o=!1,r=!1){var s=t,l="";D(()=>{var y;var d=St;if(l===(l=(y=e())!=null?y:"")){nt&&Gi();return}if(d.nodes_start!==null&&(nf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(nt){for(var a=Ct.data,u=Gi(),f=u;u!==null&&(u.nodeType!==er||u.data!=="");)f=u,u=Ho(u);if(u===null)throw Us(),is;Re&&!r&&bb(u.parentNode,a,l),ko(Ct,f),s=Ei(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=El(v);if((i||o)&&(p=Pi(p)),ko(Pi(p),p.lastChild),i||o)for(;Pi(p);)s.before(Pi(p));else s.before(p)}})}function Mi(t,e,i){nt&&Gi();var o=t,r,s;ji(()=>{r!==(r=e())&&(s&&(zn(s),s=null),r&&(s=Di(()=>i(o,r))))},65536),nt&&(o=Ct)}function Sa(t,e,i,o,r,s){var w;let l=nt;nt&&Gi();var d=Re&&s&&((w=Ut)==null?void 0:w.function[Bn]),a,u,f=null;nt&&Ct.nodeType===tu&&(f=Ct,Gi());var v=nt?Ct:t,p,y=Ws;ji(()=>{let x=e()||null;var C=r?r():i||x==="svg"?Zc:null;if(x!==a){var T=Ws;hf(y),p&&(x===null?zn(p,()=>{p=null,u=null}):x===u?$s(p):(Qi(p),yu(!1))),x&&x!==u&&(p=Di(()=>{if(f=nt?f:C?document.createElementNS(C,x):document.createElement(x),Re&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),ko(f,f),o){nt&&Mh(x)&&f.append(document.createComment(""));var E=nt?Pi(f):f.appendChild(Cn());nt&&(E===null?mo(!1):Ei(E)),o(f,E)}St.nodes_end=f,v.before(f)})),a=x,a&&(u=a),yu(!0),hf(T)}},65536),l&&(mo(!0),Ei(v))}var bf;function Bh(t){return bf=t.target,new _f(t)}var xs,Tr,_f=class{constructor(e){Os(this,xs);Os(this,Tr);var s,l;var i=new Map,o=(d,a)=>{var u=ss(a,!1,!1);return i.set(d,u),u};let r=new Proxy({...e.props||{},$$events:{}},{get(d,a){var u;return n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===ul?!0:(n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return N((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});cl(this,Tr,(e.hydrate?vf:Ur)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Cl(),cl(this,xs,r.$$events);for(let d of Object.keys(Oi(this,Tr)))d==="$set"||d==="$destroy"||d==="$on"||fo(this,d,{get(){return Oi(this,Tr)[d]},set(a){Oi(this,Tr)[d]=a},enumerable:!0});Oi(this,Tr).$set=d=>{Object.assign(r,d)},Oi(this,Tr).$destroy=()=>{wa(Oi(this,Tr))}}$set(e){Oi(this,Tr).$set(e)}$on(e,i){Oi(this,xs)[e]=Oi(this,xs)[e]||[];let o=(...r)=>i.call(this,...r);return Oi(this,xs)[e].push(o),()=>{Oi(this,xs)[e]=Oi(this,xs)[e].filter(r=>r!==o)}}$destroy(){Oi(this,Tr).$destroy()}};xs=new WeakMap,Tr=new WeakMap;function W(t,e){Tn(()=>{var r,s,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(s=bf)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Re&&Rh(e.hash,d)}})}function ws(t,e){var i=void 0,o;ji(()=>{i!==(i=e())&&(o&&(Qi(o),o=null),i&&(o=Di(()=>{Io(()=>i(t))})))})}function Hh(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Hh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Fh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Hh(t))&&(o&&(o+=" "),o+=e);return o}function Vd(t){return typeof t=="object"?Fh(t):t!=null?t:""}var Uh=[...`
44
+ \r\f\xA0\v\uFEFF`];function Wh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var s=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+s;(l===0||Uh.includes(o[l-1]))&&(d===o.length||Uh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function zh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function $f(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Kh(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map($f)),r&&a.push(...Object.keys(r).map($f));var u=0,f=-1;let x=t.length;for(var v=0;v<x;v++){var p=t[v];if(d?p==="/"&&t[v-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[v+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=v;else if(p===";"||v===x-1){if(f!==-1){var y=$f(t.substring(u,f).trim());if(!a.includes(y)){p!==";"&&v++;var w=t.substring(u,v).trim();i+=" "+w+";"}}u=v+1,f=-1}}}}return o&&(i+=zh(o)),r&&(i+=zh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ne(t,e,i,o,r,s){var l=t.__className;if(nt||l!==i||l===void 0){var d=Wh(i,o,s);(!nt||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&r!==s)for(var a in s){var u=!!s[a];(r==null||u!==!!r[a])&&t.classList.toggle(a,u)}return s}function yf(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function tt(t,e,i,o){var r=t.__style;if(nt||r!==e){var s=Kh(e,o);(!nt||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(yf(t,i==null?void 0:i[0],o[0]),yf(t,i==null?void 0:i[1],o[1],"important")):yf(t,i,o));return o}function Rd(t,e,i){if(t.multiple){if(e==null)return;if(!Jn(e))return lh();for(var o of t.options)o.selected=e.includes(qh(o));return}for(o of t.options){var r=qh(o);if(qp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function xf(t){var e=new MutationObserver(()=>{Rd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Eo(()=>{e.disconnect()})}function qh(t){return"__value"in t?t.__value:t.value}var kl=Symbol("class"),Al=Symbol("style"),jh=Symbol("is custom element"),Yh=Symbol("is html");function Zh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Qe(t,e,i,o){var r=Jh(t);if(nt&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Eb(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Hg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&e1(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Xh(t,e,i,o,r=!1){var A;var s=Jh(t),l=s[jh],d=!s[Yh];let a=nt&&l;a&&mo(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=Vd(i.class):(o||i[kl])&&(i.class=null),i[Al]&&((A=i.style)!=null||(i.style=null));var p=e1(t);for(let I in i){let O=i[I];if(f&&I==="value"&&O==null){t.value=t.__value="",u[I]=O;continue}if(I==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";ne(t,y,O,o,e==null?void 0:e[kl],i[kl]),u[I]=O,u[kl]=i[kl];continue}if(I==="style"){tt(t,O,e==null?void 0:e[Al],i[Al]),u[I]=O,u[Al]=i[Al];continue}var w=u[I];if(!(O===w&&!(O===void 0&&t.hasAttribute(I)))){u[I]=O;var x=I[0]+I[1];if(x!=="$$")if(x==="on"){let H={},B="$$"+I,z=I.slice(2);var C=kh(z);if(Ih(z)&&(z=z.slice(0,-7),H.capture=!0),!C&&w){if(O!=null)continue;t.removeEventListener(z,u[B],H),u[B]=null}if(O!=null)if(C)t[`__${z}`]=O,ct([z]);else{let Z=function(se){u[I].call(this,se)};var R=Z;u[B]=pf(z,t,Z,H)}else C&&(t[`__${z}`]=void 0)}else if(I==="style")Qe(t,I,O);else if(I==="autofocus")cf(t,!!O);else if(!l&&(I==="__value"||I==="value"&&O!=null))t.value=t.__value=O;else if(I==="selected"&&f)Zh(t,O);else{var T=I;d||(T=Ah(T));var E=T==="defaultValue"||T==="defaultChecked";if(O==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let H=t,B=e===void 0;if(T==="value"){let z=H.defaultValue;H.removeAttribute(T),H.defaultValue=z,H.value=H.__value=B?z:null}else{let z=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=z,H.checked=B?z:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(l||typeof O!="string")?t[T]=O:typeof O!="function"&&Qe(t,T,O,r)}}}return a&&mo(!0),u}function ke(t,e,i=[],o,r=!1,s=Br){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(ji(()=>{var p=e(...l.map(n)),y=Xh(t,d,p,o,r);f&&u&&"value"in p&&Rd(t,p.value,!1);for(let x of Object.getOwnPropertySymbols(a))p[x]||Qi(a[x]);for(let x of Object.getOwnPropertySymbols(p)){var w=p[x];x.description===Dp&&(!d||w!==d[x])&&(a[x]&&Qi(a[x]),a[x]=Di(()=>ws(t,()=>w))),y[x]=w}d=y}),u){var v=t;Io(()=>{Rd(v,d.value),xf(v)})}f=!0}function Jh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[jh]:t.nodeName.includes("-"),[Yh]:t.namespaceURI===Lg}}var Qh=new Map;function e1(t){var e=Qh.get(t.nodeName);if(e)return e;Qh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=Jc(o);for(var s in i)i[s].set&&e.push(s);o=pa(o)}return e}function Eb(t,e,i){var o;Re&&(e==="srcset"&&Ib(t,i)||wf((o=t.getAttribute(e))!=null?o:"",i)||rh(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function wf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Gh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Ib(t,e){var i=Gh(t.srcset),o=Gh(e);return o.length===i.length&&o.every(([r,s],l)=>s===i[l][1]&&(wf(i[l][0],r)||wf(r,i[l][0])))}var kb=Xc?()=>performance.now():()=>Date.now(),zr={tick:t=>(Xc?requestAnimationFrame:ce)(t),now:()=>kb(),tasks:new Set};function t1(){let t=zr.now();zr.tasks.forEach(e=>{e.c(t)||(zr.tasks.delete(e),e.f())}),zr.tasks.size!==0&&zr.tick(t1)}function i1(t){let e;return zr.tasks.size===0&&zr.tick(t1),{promise:new Promise(i=>{zr.tasks.add(e={c:t,f:i})}),abort(){zr.tasks.delete(e)}}}function xu(t,e){Ad(()=>{t.dispatchEvent(new CustomEvent(e))})}function Lb(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function o1(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let l=Lb(r.trim());e[l]=s.trim()}return e}var Vb=t=>t;function Wr(t,e,i,o){var R;var r=(t&1)!==0,s=(t&2)!==0,l=r&&s,d=(t&4)!==0,a=l?"both":r?"in":"out",u,f=e.inert,v=e.style.overflow,p,y;function w(){var O;var A=Nt,I=St;qi(null),vo(null);try{return u!=null?u:u=i()(e,(O=o==null?void 0:o())!=null?O:{},{direction:a})}finally{qi(A),vo(I)}}var x={is_global:d,in(){var A;if(e.inert=f,!r){y==null||y.abort(),(A=y==null?void 0:y.reset)==null||A.call(y);return}s||p==null||p.abort(),xu(e,"introstart"),p=Sf(e,w(),y,1,()=>{xu(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(A){if(!s){A==null||A(),u=void 0;return}e.inert=!0,xu(e,"outrostart"),y=Sf(e,w(),p,0,()=>{xu(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),y==null||y.abort()}},C=St;if(((R=C.transitions)!=null?R:C.transitions=[]).push(x),r&&Pd){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&Io(()=>{Pt(()=>x.in())})}}function Sf(t,e,i,o,r){var s=o===1;if(Hs(e)){var l,d=!1;return Tn(()=>{if(!d){var C=e({direction:s?"in":"out"});l=Sf(t,C,i,o,r)}}),{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 r(),{abort:ce,deactivate:ce,reset:ce,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=Vb}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var y=o1(u(0,1));p.push(y,y)}var w=()=>1-o,x=t.animate(p,{duration:a,fill:"forwards"});return x.onfinish=()=>{var z;x.cancel();var C=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),R=[];if(E>0){var A=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),O=0;O<=I;O+=1){var H=C+T*v(O/I),B=o1(u(H,1-H));R.push(B),A||(A=B.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var Z=x.currentTime;return C+T*v(Z/E)},f&&i1(()=>{if(x.playState!=="running")return!1;var Z=w();return f(Z,1-Z),!0})}x=t.animate(R,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,f==null||f(o,1-o),r()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=ce)},deactivate:()=>{r=ce},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}function Cf(t,e,i){var o=No(t,e);o&&o.set&&(t[e]=i,Eo(()=>{t[e]=null}))}var Ks,Pl,Nd,Su,n1,Cu=class Cu{constructor(e){Os(this,Su);Os(this,Ks,new WeakMap);Os(this,Pl);Os(this,Nd);cl(this,Nd,e)}observe(e,i){var o=Oi(this,Ks).get(e)||new Set;return o.add(i),Oi(this,Ks).set(e,o),Pg(this,Su,n1).call(this).observe(e,Oi(this,Nd)),()=>{var r=Oi(this,Ks).get(e);r.delete(i),r.size===0&&(Oi(this,Ks).delete(e),Oi(this,Pl).unobserve(e))}}};Ks=new WeakMap,Pl=new WeakMap,Nd=new WeakMap,Su=new WeakSet,n1=function(){var e;return(e=Oi(this,Pl))!=null?e:cl(this,Pl,new ResizeObserver(i=>{for(var o of i){Cu.entries.set(o.target,o);for(var r of Oi(this,Ks).get(o.target)||[])r(o)}}))},Xn(Cu,"entries",new WeakMap);var Tf=Cu;var Rb=new Tf({box:"border-box"});function In(t,e,i){var o=Rb.observe(t,()=>i(t[e]));Io(()=>(Pt(()=>i(t[e])),o))}function r1(t,e){return t===e||(t==null?void 0:t[Oo])===e}function at(t={},e,i,o){return Io(()=>{var r,s;return Fo(()=>{r=s,s=(o==null?void 0:o())||[],Pt(()=>{t!==i(...s)&&(e(t,...s),r&&r1(i(...r),t)&&e(null,...r))})}),()=>{Tn(()=>{s&&r1(i(...s),t)&&e(null,...s)})}}),t}function Uo(t=!1){let e=Ut,i=e.l.u;if(!i)return;let o=()=>_u(e.s);if(t){let r=0,s={},l=Br(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Sd(()=>{s1(e,o),Fs(i.b)}),qe(()=>{let r=Pt(()=>i.m.map(Bg));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&qe(()=>{s1(e,o),Fs(i.a)})}function s1(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Od(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ce;let o=Pt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ml=[];function Er(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=ce){let i=null,o=new Set;function r(d){if(fl(t,d)&&(t=d,i)){let a=!Ml.length;for(let u of o)u[1](),Ml.push(u,t);if(a){for(let u=0;u<Ml.length;u+=2)Ml[u][0](Ml[u+1]);Ml.length=0}}}function s(d){r(d(t))}function l(d,a=ce){let u=[d,a];return o.add(u),o.size===1&&(i=e(r,s)||ce),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:l}}function $i(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return Er(i,(l,d)=>{let a=!1,u=[],f=0,v=ce,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);s?l(w):v=typeof w=="function"?w:ce},y=r.map((w,x)=>Od(w,C=>{u[x]=C,f&=~(1<<x),a&&p()},()=>{f|=1<<x}));return a=!0,p(),function(){Fs(y),v(),a=!1}})}function be(t){let e;return Od(t,i=>e=i)(),e}var Tu=!1,Ef=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:ss(void 0),unsubscribe:ce};if(o.store!==t&&!(Ef in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ce;else{var r=!0;o.unsubscribe=Od(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&Ef in i?be(t):n(o.source)}function Oe(){let t={};function e(){Eo(()=>{for(var i in t)t[i].unsubscribe();fo(t,Ef,{enumerable:!1,value:!0})})}return[t,e]}function If(t){var e=Tu;try{return Tu=!1,[t(),Tu]}finally{Tu=e}}var Ub={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Re&&Yg(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ne(t,e,i){return new Proxy(Re?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},Ub)}var zb={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Hs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let r=t.props[o];Hs(r)&&(r=r());let s=No(r,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Hs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=No(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Oo||e===ul)return!1;for(let i of t.props)if(Hs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Hs(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 Ss(...t){return new Proxy({props:t},zb)}function a1(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function h(t,e,i,o){var H,B;var r=(i&1)!==0,s=!os||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=If(()=>t[e]):u=t[e];var f=Oo in t||ul in t,v=l&&((B=(H=No(t,e))==null?void 0:H.set)!=null?B:f&&e in t&&(z=>t[e]=z))||void 0,p=o,y=!0,w=!1,x=()=>(w=!0,y&&(y=!1,d?p=Pt(o):p=o),p);u===void 0&&o!==void 0&&(v&&s&&jg(e),u=x(),v&&v(u));var C;if(s)C=()=>{var z=t[e];return z===void 0?x():(y=!0,w=!1,z)};else{var T=(r?Br:wn)(()=>t[e]);T.f|=131072,C=()=>{var z=n(T);return z!==void 0&&(p=void 0),z===void 0?p:z}}if((i&4)===0&&s)return C;if(v){var E=t.$$legacy;return function(z,Z){return arguments.length>0?((!s||!Z||E||a)&&v(Z?C():z),z):C()}}var R=!1,A=!1,I=ss(u),O=Br(()=>{var z=C(),Z=n(I);return R?(R=!1,A=!0,Z):(A=!1,I.v=z)});return l&&n(O),r||(O.equals=vl),function(z,Z){if(gu!==null&&(R=A,C(),n(I)),arguments.length>0){let se=Z?n(O):s&&l?si(z):z;if(!O.equals(se)){if(R=!0,N(I,se),w&&p!==void 0&&(p=se),a1(O))return z;Pt(()=>n(O))}return z}return a1(O)?O.v:n(O)}}var Wb;typeof HTMLElement=="function"&&(Wb=class extends HTMLElement{constructor(e,i,o){super();Xn(this,"$$ctor");Xn(this,"$$s");Xn(this,"$$c");Xn(this,"$$cn",!1);Xn(this,"$$d",{});Xn(this,"$$r",!1);Xn(this,"$$p_d",{});Xn(this,"$$l",{});Xn(this,"$$l_u",new Map);Xn(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 r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),b(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=Kb(this);for(let s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=kf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Bh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=pu(()=>{Fo(()=>{var s;this.$$r=!0;for(let l of Bp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=kf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=kf(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$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 Bp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function kf(t,e,i,o){var s;let r=(s=i[t])==null?void 0:s.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Kb(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var l1="5";var d1,c1,u1;typeof window!="undefined"&&((u1=(c1=(d1=window.__svelte)!=null?d1:window.__svelte={}).v)!=null?u1:c1.v=new Set).add(l1);var Jl=require("@vkontakte/videoplayer-core/es2018"),qZ=require("@vkontakte/videoplayer-core/es2018"),el=require("@vkontakte/videoplayer-shared/es2018"),h_=require("@vkontakte/videoplayer-statistics/es2018");var Ca=require("@vkontakte/videoplayer-shared/es2018");var qb={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Ca.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:Ca.VideoQuality.Q_480P,highQualityLimit:Ca.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180},p1=t=>(0,Ca.fillWithDefault)(t,qb),f1=t=>hl("ui-config",t),Rt=()=>gl("ui-config");var Dd="vk_player_debug_panel_opened";var v1="videoplayer",m1="videoplayer";var ls={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},g1=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),h1=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),_1=new Set(["ShiftRight","ShiftLeft"]);var b1=["TIMELINE"],Bd=[...b1,"GRAPH_BUTTON"],Af=[...b1,"PLAY_BUTTON"],Hd=[...Bd,"PLAY_BUTTON"];var Kr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Kr||{}),Ea={xs:0,s:1,m:2,l:3,xl:4};var Fd=require("@vkontakte/videoplayer-shared/es2018"),$1=require("@vkontakte/videoplayer-core/es2018"),y1=require("@vkontakte/videoplayer-statistics/es2018");var Eu="prod",Ia="1.1.76-dev.9523ea02.0";var ka=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var x1=Symbol("storeContext"),w1=Symbol("microStoresContext"),S1=(t,e)=>{hl(x1,t),hl(w1,e),Eu==="dev"&&(window.app={store:t,microStores:e})},ge=()=>{let t=gl(x1);return(0,Fd.assertNonNullable)(t,"Store context is empty!"),t},$o=()=>{let t=gl(w1);return(0,Fd.assertNonNullable)(t,"MicroStores context is empty!"),t},ai=(t,e)=>ku(t,t.getValue(),e),ku=(t,e,i)=>Er(e,o=>{let r=t.subscribe(s=>{o(s),i==null||i(s)});return()=>r.unsubscribe()}),C1=(t,e,i,o)=>{var H,B,z,Z,se,q,de,X,ve;let r=t.info,{width:s,height:l}=be(i.ui.playerSize),d=(B=(H=r.throughputEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?B:0,a=(Z=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?Z:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${Ia} (core: ${$1.VERSION}, stat: ${y1.VERSION}, shared: ${Fd.VERSION})`,v=be(i.state.errorLog$),p=v.length?`
45
+ `+v.map((re,ae)=>{var De;let Ae=`${ae}) Type: ${re.id}
46
+ `,$e=`Message: ${re.message} (${re.thrown})
47
+ `,J=`Trace: ${(De=re.thrown)==null?void 0:De.stack}
48
+ `;return Ae+$e+J}).join(`
49
+ `):void 0,y=i.state.isAudioDisabled?"disabled":be(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(se=w==null?void 0:w.codec)!=null?se:""}`+(w!=null&&w.hdr?" (HDR)":"")),x&&C.push(`Audio: ${(q=x==null?void 0:x.codec)!=null?q:""}`+(x!=null&&x.language?` (${x.language})`:""));let T=r.currentQuality$.getValue(),E="";if(T){let re=r.availableQualitiesFps$.getValue()[T];E=re?`${re}fps`:""}let R=r.httpConnectionType$.getValue(),A=(X=(de=r.currentBuffer$.getValue())==null?void 0:de.end)!=null?X:0,I=Math.max(A-be(i.state.positionExact$),0),O={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:be(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":R?R+(r.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${a}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:C.join(", "),Quality:`${u} ${T!=null?T:""} ${E}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:y,Position:`${be(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${be(i.playerPhase)} ${(ve=r.playbackState$.getValue())!=null?ve:""}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(O).filter(([re,ae])=>ae!==void 0).map(([re,ae])=>`${re}: ${ae}`).join(`
50
+ `)},T1=(t,e,i)=>{var H,B,z,Z;let o=t.info,{width:r,height:s}=be(i.ui.playerSize),l={version:Ia,viewport:`${r}x${s}`,volume:Math.round(be(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 u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(v&&p?l.buffer=f.end-p:l.buffer=Math.max(f.end-be(i.state.positionExact$),0)),l.position=be(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let C=o.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=be(i.vsid);typeof E=="string"&&(l.vsid=E);let R=(H=t.info.currentVideoStream$.getValue())==null?void 0:H.codec;R&&(l.videoCodec=R);let A=(B=t.info.currentAudioStream$.getValue())==null?void 0:B.codec;A&&(l.audioCodec=A),((z=t.info.currentVideoStream$.getValue())==null?void 0:z.hdr)&&(l.hdr=!0);let O=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.language;return O&&(l.audioLanguage=O),l},E1=(t,e)=>ka(t,e,"mp4"),I1=t=>!t.type,k1=t=>!!t.type,A1=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Iu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var hi=require("@vkontakte/videoplayer-shared/es2018"),NM=require("@vkontakte/videoplayer-core/es2018"),Qb="vk_player_",P1="vk_player_prefer_traffic_saving_enabled",M1="vk_player_preferred_volume",L1="vk_player_prefer_volume_mute",Vf="vk_player_preferred_quality",Pf="vk_player_preferred_default_quality_settings",Mf="vk_player_preferred_quality_settings_by_video",V1="vk_player_preferred_stream_language",R1="vk_player_preferred_rate",N1="vk_player_preferred_autoplay_next",Lf="vk_player_preferred_subtitles_language",O1="vk_player_user_video_prefs",D1=`${Qb}preview_track_close_tooltip`,B1=t=>t>1?1:t<0?0:t,Rf=t=>hi.safeStorage.set(M1,B1(t).toString(10)),Au=()=>{let t=hi.safeStorage.get(M1);return(0,hi.isNullable)(t)?void 0:B1(parseFloat(t))},Nf=(t,e)=>hi.safeStorage.set(Vf,JSON.stringify({videoId:t,value:e})),Pu=()=>hi.safeStorage.remove(Vf),Of=t=>{let e=hi.safeStorage.get(Vf);if((0,hi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Pu();return}return o},Df=(t,e)=>{e?hi.safeStorage.set(t,"true"):hi.safeStorage.remove(t)},Bf=t=>hi.safeStorage.get(t)==="true",Hf=t=>Df(L1,t),H1=()=>Bf(L1),Ud=t=>Df(P1,t),Ff=()=>Bf(P1),F1=()=>hi.safeStorage.get(V1),Uf=t=>hi.safeStorage.set(V1,t),zf=()=>hi.safeStorage.get(Lf),Wf=t=>{t?hi.safeStorage.set(Lf,t):hi.safeStorage.remove(Lf)},U1=t=>hi.safeStorage.set(R1,JSON.stringify({rate:t})),z1=()=>{let t=hi.safeStorage.get(R1);if((0,hi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},W1=t=>Df(N1,t),K1=()=>Bf(N1),Gb=()=>{let t=f=>{hi.safeStorage.set(Pf,JSON.stringify(f))},e=()=>{try{let f=hi.safeStorage.get(Pf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=hi.safeStorage.get(Mf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{hi.safeStorage.set(Mf,JSON.stringify(f))},r=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return{...v,appliesTo:"to-video"};v&&s();let p=e();return p?{...p,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{hi.safeStorage.remove(Mf)},l=()=>{hi.safeStorage.remove(Pf)},d=(f,v="as-default")=>{f.type==="exact_quality"||v==="to-video"?o(f):t(f)},a=f=>{let v=r(f);if(v){switch(v.type){case"traffic_saving":Ud(!0);break;case"exact_quality":Nf(f,v.quality)}s(),l()}},u=f=>{let v=Of(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}Ff()&&t({type:"traffic_saving",videoId:f}),Ud(!1),Pu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:zf,savePreferredSubtitlesLanguage:Wf}},{getPreferredQualitySettings:q1,migrateSettingsToLegacyWay:Q1,savePreferredQualitySettings:Mu,savePreferredDefaultQualitySettings:OM,removePreferredQualitySettingsByVideo:DM,getPreferredDefaultQualitySettings:Lu}=Gb(),jb=3,Yb=3,G1=()=>{let t=hi.safeStorage.get(O1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Vu=(t,e)=>{var r,s;let i=G1();return(s=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?s:null},Kf=(t,e,i)=>{var l,d,a;let o=(l=G1())!=null?l:{},r=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let s=Zb(o);hi.safeStorage.set(O1,JSON.stringify(s))};function Zb(t){let e=Object.entries(t).reduce((o,[r,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(Yb),e.reduce((o,[r])=>(o[r]=Xb(t[r]),o),{})}function Xb(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(jb),Object.fromEntries(e)}function j1(){hi.safeStorage.set(D1,JSON.stringify(!0))}function Y1(){let t=hi.safeStorage.get(D1);try{return t?JSON.parse(t):!1}catch(e){return!1}}var ag=require("@vkontakte/videoplayer-core/es2018");var Jb=Ee('<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 zd(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Jb();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var Ll=require("@vkontakte/videoplayer-shared/es2018");var e$={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
51
51
  \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
52
- \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`,double_forward_label:"2x",preview_track_notification_text:"\u041F\u043E\u0442\u044F\u043D\u0438\u0442\u0435 \u0432\u0432\u0435\u0440\u0445 \u0434\u043B\u044F \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438",preview_track_close_tooltip:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043C\u0430 \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438"},Z1=i$;var o$={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`,double_forward_label:"2x",preview_track_notification_text:"\u041F\u043E\u0442\u044F\u043D\u0438\u0442\u0435 \u0432\u0432\u0435\u0440\u0445 \u0434\u043B\u044F \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438",preview_track_close_tooltip:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043C\u0430 \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438"},Z1=e$;var t$={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
53
53
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
- Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},X1=o$;var Es=new Map;Es.set(Vl.InterfaceLanguage.EN,X1);Es.set(Vl.InterfaceLanguage.RU,Z1);var J1=new Map,qf=({language:t,pack:e,fallback:i})=>{if(Es.has(t)){let o=Es.get(t);Es.set(t,{...o,...e})}else Es.set(t,e);J1.set(t,i)},Qf=t=>Es.has(t),Gf=(t,e,i,o)=>{var l;let r=Es.get(t),s=r==null?void 0:r[e];if((0,Vl.isNullable)(s)){let d=(l=J1.get(t))!=null?l:o,a=d?Es.get(d):void 0;s=a==null?void 0:a[e]}return(0,Vl.isNullable)(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},j=(t,e)=>{let{interfaceLanguage$:i}=he(),o=be(i),r=Rt();return Gf(o,t,e,r.defaultLanguage)};var nL=require("@vkontakte/videoplayer-core/es2018");var Rl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Rl||(Rl={}));var n$=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r$=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,s$=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ou="?",a$="X-Sentry-Auth",l$=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function d$(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
- `),o,r;for(let s=0;s<i.length;++s){if(o=n$.exec(i[s]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Ou,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=s$.exec(i[s]))r={filename:o[2],function:o[1]||Ou,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=r$.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||Ou,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=Ou),e.push(r)}return e.length?{value:e0(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function e0(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function c$(t){try{let e=d$(t);if(e)return e}catch(e){}return{value:e0(t),type:t&&t.name,stacktrace:{frames:[]}}}function u$(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Du=class{constructor(e){if(e&&e.dsn){let i=l$.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[c$(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(a$,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:u$(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function t0(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function p$(){return window}var Bu=class t extends Du{constructor(e,i=p$()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>t0(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=>t0(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 r=this._state[o],s=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:s||d?[...s||[],...d||[]]:{...typeof r!="string"?r:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var Pa=require("@vkontakte/videoplayer-shared/es2018");var Hu=null,Ma=class{constructor(e,i,o={}){!Hu&&e.dsn&&(this.sentryClient=new Bu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Pa.Subscription,this.options=e,this.context=o,Hu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Hu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:y}=i;if((0,Pa.isNonNullable)(y)&&v.includes(y)||(0,Pa.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,Pa.isNonNullable)(y)&&u.includes(y)||(0,Pa.isNonNullable)(p)&&a.includes(p)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras({...s,...o});try{p&&r.captureMessage(p,i.fatal?Rl.fatal:Rl.error),r.report(e)}catch(x){console.error(x)}}}static getInstance(){return Hu}};var Zr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Zr||{});var Fu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},Uu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),i0=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,o0=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Kd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Gs=()=>!!Kd(),zu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Wu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},n0=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var jf=require("@vkontakte/videoplayer-core/es2018"),r0=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")},{description:j("hotkey_map_item_next_video_description"),value:j("hotkey_map_item_next_video_value")},{description:j("hotkey_map_item_prev_video_description"),value:j("hotkey_map_item_prev_video_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:jf.clientChecker.device.isApple?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:jf.clientChecker.device.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});var Nl=require("@vkontakte/videoplayer-shared/es2018"),La=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,Nl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Nl.ValueSubject(!1),isEnabled$:new Nl.ValueSubject(!1),type:0};this.info.isEnabled$=new Nl.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 r,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).enterpictureinpicture)==null||s.call(r,e))}onLeavePictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).leavepictureinpicture)==null||s.call(r,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 La}var Ol=require("@vkontakte/videoplayer-shared/es2018");th();function Zf(t,e){F(e,!1);let i=he();Ot(()=>{i.getAdmanWrapper().startPostroll()}),jo(),U()}var s0=require("@vkontakte/videoplayer-shared/es2018");var f$=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},v$=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>'),m$=M("<div><!></div>"),g$={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 Xf(t,e){F(e,!0),W(t,g$);let[i,o]=De(),r=()=>S(u,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,s0.noop),u=he().ui.isMobile,f=m(()=>s()>0&&s()>=l());var v=m$();let p;v.__click=[f$,f,d];var y=_(v);{var w=C=>{var T=v$(),E=_(T);Te(),g(T),D(R=>ve(E,`${R!=null?R:""} `),[()=>j("skip_ads_now")]),b(C,T)},x=C=>{var T=ls();D(E=>ve(T,E),[()=>j("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),b(C,T)};V(y,C=>{n(f)?C(w):C(x,!1)})}g(v),D(C=>p=ne(v,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":r(),skippable:n(f)})]),b(t,v),U(),o()}dt(["click"]);var h$=M('<button class="go-to-site svelte-1dzpmjp"> </button>'),_$={hash:"svelte-1dzpmjp",code:"button.go-to-site.svelte-1dzpmjp {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Jf(t,e){F(e,!1),W(t,_$),jo();var i=h$(),o=_(i,!0);g(i),D(r=>ve(o,r),[()=>j("visit_advertiser")],xn),b(t,i),U()}var b$=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),$$=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),y$={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.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},X1=t$;var Cs=new Map;Cs.set(Ll.InterfaceLanguage.EN,X1);Cs.set(Ll.InterfaceLanguage.RU,Z1);var J1=new Map,qf=({language:t,pack:e,fallback:i})=>{if(Cs.has(t)){let o=Cs.get(t);Cs.set(t,{...o,...e})}else Cs.set(t,e);J1.set(t,i)},Qf=t=>Cs.has(t),Gf=(t,e,i,o)=>{var l;let r=Cs.get(t),s=r==null?void 0:r[e];if((0,Ll.isNullable)(s)){let d=(l=J1.get(t))!=null?l:o,a=d?Cs.get(d):void 0;s=a==null?void 0:a[e]}return(0,Ll.isNullable)(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},Y=(t,e)=>{let{interfaceLanguage$:i}=ge(),o=be(i),r=Rt();return Gf(o,t,e,r.defaultLanguage)};var oL=require("@vkontakte/videoplayer-core/es2018");var Vl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Vl||(Vl={}));var i$=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o$=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,n$=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ru="?",r$="X-Sentry-Auth",s$=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a$(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,r;for(let s=0;s<i.length;++s){if(o=i$.exec(i[s]))r={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=n$.exec(i[s]))r={filename:o[2],function:o[1]||Ru,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=o$.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||Ru,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=Ru),e.push(r)}return e.length?{value:e0(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function e0(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function l$(t){try{let e=a$(t);if(e)return e}catch(e){}return{value:e0(t),type:t&&t.name,stacktrace:{frames:[]}}}function d$(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Nu=class{constructor(e){if(e&&e.dsn){let i=s$.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[l$(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(r$,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:d$(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function t0(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function c$(){return window}var Ou=class t extends Nu{constructor(e,i=c$()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>t0(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=>t0(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 r=this._state[o],s=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:s||d?[...s||[],...d||[]]:{...typeof r!="string"?r:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var Aa=require("@vkontakte/videoplayer-shared/es2018");var Du=null,Pa=class{constructor(e,i,o={}){!Du&&e.dsn&&(this.sentryClient=new Ou({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Aa.Subscription,this.options=e,this.context=o,Du=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Du=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:y}=i;if((0,Aa.isNonNullable)(y)&&v.includes(y)||(0,Aa.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,Aa.isNonNullable)(y)&&u.includes(y)||(0,Aa.isNonNullable)(p)&&a.includes(p)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras({...s,...o});try{p&&r.captureMessage(p,i.fatal?Vl.fatal:Vl.error),r.report(e)}catch(x){console.error(x)}}}static getInstance(){return Du}};var qr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(qr||{});var Bu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},Hu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),i0=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,o0=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Wd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},qs=()=>!!Wd(),Fu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Uu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},n0=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var jf=require("@vkontakte/videoplayer-core/es2018"),r0=()=>({title:Y("hotkey_map_modal_title"),closeBtnText:Y("hotkey_map_modal_close_btn_text"),groups:[{title:Y("hotkey_map_group_title_common"),items:[{description:Y("hotkey_map_item_mute_description"),value:Y("hotkey_map_item_mute_value")},{description:Y("hotkey_map_item_volume_up_description"),value:Y("hotkey_map_item_volume_up_value")},{description:Y("hotkey_map_item_volume_down_description"),value:Y("hotkey_map_item_volume_down_value")},{description:Y("hotkey_map_item_pip_description"),value:Y("hotkey_map_item_pip_value")},{description:Y("hotkey_map_item_full_screen_description"),value:Y("hotkey_map_item_full_screen_value")},{description:Y("hotkey_map_item_show_context_menu_description"),value:Y("hotkey_map_item_show_context_menu_value")},{description:Y("hotkey_map_item_show_hotkey_map_description"),value:Y("hotkey_map_item_show_hotkey_map_value")}]},{title:Y("hotkey_map_group_title_playback"),items:[{description:Y("hotkey_map_item_play_toggle_description"),value:Y("hotkey_map_item_play_toggle_value")},{description:Y("hotkey_map_item_seek_backward_description"),value:Y("hotkey_map_item_seek_backward_value")},{description:Y("hotkey_map_item_seek_forward_description"),value:Y("hotkey_map_item_seek_forward_value")},{description:Y("hotkey_map_item_fast_seek_backward_description"),value:Y("hotkey_map_item_fast_seek_backward_value")},{description:Y("hotkey_map_item_fast_seek_forward_description"),value:Y("hotkey_map_item_fast_seek_forward_value")},{description:Y("hotkey_map_item_rate_down_description"),value:Y("hotkey_map_item_rate_down_value")},{description:Y("hotkey_map_item_rate_up_description"),value:Y("hotkey_map_item_rate_up_value")},{description:Y("hotkey_map_item_prev_frame_description"),value:Y("hotkey_map_item_prev_frame_value")},{description:Y("hotkey_map_item_next_frame_description"),value:Y("hotkey_map_item_next_frame_value")},{description:Y("hotkey_map_item_jump_seek_description"),value:Y("hotkey_map_item_jump_seek_value")},{description:Y("hotkey_map_item_next_video_description"),value:Y("hotkey_map_item_next_video_value")},{description:Y("hotkey_map_item_prev_video_description"),value:Y("hotkey_map_item_prev_video_value")}]},{title:Y("hotkey_map_group_title_subtitles"),items:[{description:Y("hotkey_map_item_subtitles_toggle_description"),value:Y("hotkey_map_item_subtitles_toggle_value")}]},{title:Y("hotkey_map_group_title_episodes"),items:[{description:Y("hotkey_map_item_prev_episode_description"),value:jf.clientChecker.device.isApple?Y("hotkey_map_item_prev_episode_mac_value"):Y("hotkey_map_item_prev_episode_pc_value")},{description:Y("hotkey_map_item_next_episode_description"),value:jf.clientChecker.device.isApple?Y("hotkey_map_item_next_episode_mac_value"):Y("hotkey_map_item_next_episode_pc_value")}]}]});var Rl=require("@vkontakte/videoplayer-shared/es2018"),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,Rl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Rl.ValueSubject(!1),isEnabled$:new Rl.ValueSubject(!1),type:0};this.info.isEnabled$=new Rl.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 r,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).enterpictureinpicture)==null||s.call(r,e))}onLeavePictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).leavepictureinpicture)==null||s.call(r,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function La(t){return t instanceof Ma}var Nl=require("@vkontakte/videoplayer-shared/es2018");th();function Zf(t,e){F(e,!1);let i=ge();Ot(()=>{i.getAdmanWrapper().startPostroll()}),Uo(),U()}var s0=require("@vkontakte/videoplayer-shared/es2018");var u$=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},p$=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>'),f$=M("<div><!></div>"),v$={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 Xf(t,e){F(e,!0),W(t,v$);let[i,o]=Oe(),r=()=>S(u,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,s0.noop),u=ge().ui.isMobile,f=m(()=>s()>0&&s()>=l());var v=f$();let p;v.__click=[u$,f,d];var y=_(v);{var w=C=>{var T=p$(),E=_(T);Te(),g(T),D(R=>fe(E,`${R!=null?R:""} `),[()=>Y("skip_ads_now")]),b(C,T)},x=C=>{var T=as();D(E=>fe(T,E),[()=>Y("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),b(C,T)};V(y,C=>{n(f)?C(w):C(x,!1)})}g(v),D(C=>p=ne(v,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":r(),skippable:n(f)})]),b(t,v),U(),o()}ct(["click"]);var m$=M('<button class="go-to-site svelte-1dzpmjp"> </button>'),g$={hash:"svelte-1dzpmjp",code:"button.go-to-site.svelte-1dzpmjp {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Jf(t,e){F(e,!1),W(t,g$),Uo();var i=m$(),o=_(i,!0);g(i),D(r=>fe(o,r),[()=>Y("visit_advertiser")],wn),b(t,i),U()}var h$=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),_$=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),b$={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
57
57
  360deg,
58
58
  rgba(0, 0, 0, 0) 0%,
59
59
  rgba(0, 0, 0, 0.05) 12%,
@@ -63,7 +63,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
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 Qd(t,e){F(e,!0),W(t,y$);let[i,o]=De(),r=()=>S(B,"$canSkipAd",i),s=()=>S(H,"$adPlaybackState",i),l=()=>S(E,"$isMobile",i),d=()=>S(z,"$adPosition",i),a=()=>S(Z,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=h(e,"adsSlotId",3,void 0),v=h(e,"adsParams",3,void 0),p=h(e,"adsAutoplayParam",3,void 0),y=h(e,"duration",3,0),w=h(e,"adsExternalApi",3,void 0),x=he(),C=Rt(),T=x.state.isEnded$,E=x.ui.isMobile,R=C.ads.isMobileGoToSiteButton,A=Q(void 0),I=Q(void 0),O=!1,H=x.ads.playbackState,B=x.ads.canSkip,z=x.ads.position,Z=x.ads.secondsToWatchBeforeSkip,ae=m(()=>r()&&s()!=="inactive"),q=m(()=>l()&&s()!=="inactive"&&R);Ot(()=>{var ge;let k=x.getAdmanWrapper();if(Ol.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Ol.now)(),f()]}),!f()){k.onAdmanLoadingError();return}let Ke=async Fe=>{await k.initAdman(Fe),O=!0},Ve=new AbortController,Y=()=>{Ve.abort()},{width:oe,height:Be}=be(x.ui.playerSize),Ze=be(x.ui.isFullscreen),me=(ge=p())!=null?ge:be(x.ui.isAutoplay),J=C.ads.paramsOverride,Ie={width:oe,height:Be,isFullscreen:Ze,isAutoplay:me,adsContainer:n(A),adsVideoElement:n(I),slotId:f(),params:v(),paramsOverride:J,duration:y(),externalApi:w()};return window.AdmanHTML?Ke(Ie):k.loadAdman(Ve.signal).then(()=>Ke(Ie)).catch(()=>{k.onAdmanLoadingError()}),()=>{Ol.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Ol.now)(),f()]}),!O&&Y()}});var de=$$(),X=_(de);{var fe=k=>{var Ke=b$();b(k,Ke)};V(X,k=>{l()&&k(fe)})}var re=P(X,2);at(re,k=>N(I,k),()=>n(I));var le=P(re,2);{var Me=k=>{Xf(k,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return x.actions.internal.skipAd}})};V(le,k=>{n(ae)&&k(Me)})}var we=P(le,2);{var te=k=>{Zf(k,{})};V(we,k=>{u()&&k(te)})}var Ne=P(we,2);{var ue=k=>{Jf(k,{})};V(Ne,k=>{n(q)&&k(ue)})}g(de),at(de,k=>N(A,k),()=>n(A)),b(t,de),U(),o()}var Yo=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var x$=Ee('<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 ev(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=x$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var w$=Ee('<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 tv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=w$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function Gd(t,e){let i=h(e,"isActive",3,!1);var o=He(),r=pe(o);{var s=d=>{tv(d,{})},l=d=>{ev(d,{})};V(r,d=>{i()?d(s):d(l,!1)})}b(t,o)}var S$=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>'),C$=M('<div class="live-icon svelte-1s15d2i"><!></div>'),T$=M('<span class="text svelte-1s15d2i"> </span>'),E$=M("<div><!> <!></div>"),I$={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 qd(t,e){F(e,!0),W(t,b$);let[i,o]=Oe(),r=()=>S(B,"$canSkipAd",i),s=()=>S(H,"$adPlaybackState",i),l=()=>S(E,"$isMobile",i),d=()=>S(z,"$adPosition",i),a=()=>S(Z,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=h(e,"adsSlotId",3,void 0),v=h(e,"adsParams",3,void 0),p=h(e,"adsAutoplayParam",3,void 0),y=h(e,"duration",3,0),w=h(e,"adsExternalApi",3,void 0),x=ge(),C=Rt(),T=x.state.isEnded$,E=x.ui.isMobile,R=C.ads.isMobileGoToSiteButton,A=Q(void 0),I=Q(void 0),O=!1,H=x.ads.playbackState,B=x.ads.canSkip,z=x.ads.position,Z=x.ads.secondsToWatchBeforeSkip,se=m(()=>r()&&s()!=="inactive"),q=m(()=>l()&&s()!=="inactive"&&R);Ot(()=>{let k=x.getAdmanWrapper();if(Nl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Nl.now)(),f()]}),!f()){k.onAdmanLoadingError();return}let Ge=()=>{var xe;let{width:Be,height:Ze}=be(x.ui.playerSize),me=be(x.ui.isFullscreen),te=(xe=p())!=null?xe:be(x.ui.isAutoplay),Ie=C.ads.paramsOverride;return{width:Be,height:Ze,isFullscreen:me,isAutoplay:te,adsContainer:n(A),adsVideoElement:n(I),slotId:f(),params:v(),paramsOverride:Ie,duration:y(),externalApi:w()}},Pe=async Be=>{Be&&await go();let Ze=Ge();await k.initAdman(Ze),O=!0},j=new AbortController,ie=()=>{j.abort()};return window.AdmanHTML?Pe(!0).catch(()=>{k.onAdmanLoadingError()}):k.loadAdman(j.signal).then(()=>Pe(!1)).catch(()=>{k.onAdmanLoadingError()}),()=>{Nl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Nl.now)(),f()]}),!O&&ie()}});var de=_$(),X=_(de);{var ve=k=>{var Ge=h$();b(k,Ge)};V(X,k=>{l()&&k(ve)})}var re=P(X,2);at(re,k=>N(I,k),()=>n(I));var ae=P(re,2);{var Ae=k=>{Xf(k,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return x.actions.internal.skipAd}})};V(ae,k=>{n(se)&&k(Ae)})}var $e=P(ae,2);{var J=k=>{Zf(k,{})};V($e,k=>{u()&&k(J)})}var De=P($e,2);{var ue=k=>{Jf(k,{})};V(De,k=>{n(q)&&k(ue)})}g(de),at(de,k=>N(A,k),()=>n(A)),b(t,de),U(),o()}var zo=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var $$=Ee('<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 ev(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=$$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var y$=Ee('<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 tv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=y$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function Qd(t,e){let i=h(e,"isActive",3,!1);var o=Ue(),r=pe(o);{var s=d=>{tv(d,{})},l=d=>{ev(d,{})};V(r,d=>{i()?d(s):d(l,!1)})}b(t,o)}var x$=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>'),w$=M('<div class="live-icon svelte-1s15d2i"><!></div>'),S$=M('<span class="text svelte-1s15d2i"> </span>'),C$=M("<div><!> <!></div>"),T$={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
67
67
  opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
68
68
  animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
69
69
  animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
@@ -134,10 +134,10 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
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 jd(t,e){W(t,I$);let i=h(e,"withEqualizer",3,!1),o=h(e,"isLive",3,!1),r=h(e,"isPlaying",3,!1);var s=E$();let l;var d=_(s);{var a=p=>{var y=S$();b(p,y)};V(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var y=C$(),w=_(y);Gd(w,{isActive:!0}),g(y),b(p,y)},v=p=>{var y=T$(),w=_(y,!0);g(y),D(()=>ve(w,e.time)),b(p,y)};V(u,p=>{o()?p(f):p(v,!1)})}g(s),D(p=>l=ne(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:r()})]),b(t,s)}var Dl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var k$=M('<div role="timer" data-testid="thumb-timer"><!></div>'),A$={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 Yd(t,e){F(e,!0),W(t,A$);let[i,o]=De(),r=()=>S(f,"$disabled",i),s=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),a=Rt(),u=m(()=>Yo(e.duration-e.position)),f=se(!1);var v=k$();let p;var y=_(v);jd(y,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),g(v),Cs(v,()=>Dl(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(w=>p=ne(v,1,"thumb-timer svelte-c6gowj",null,p,w),[()=>({"out-of-flow":r(),hidden:s()})]),b(t,v),U(),o()}var Bl=t=>{if(!navigator.clipboard){a0(t);return}navigator.clipboard.writeText(t).catch(()=>a0(t))};function a0(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 g0=require("@vkontakte/videoplayer-core/es2018");var ov=require("@vkontakte/videoplayer-core/es2018");var iv="focus-hidden";var wr=t=>{t.stopPropagation(),t.preventDefault()},nv=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(iv)},M$=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},L$=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},V$=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},R$=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},l0=t=>t.code==="Escape",N$=t=>t.code==="ArrowLeft",Zd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},d0=t=>{V$(t)?(wr(t),L$(t.target)):R$(t)&&(wr(t),M$(t.target))},Zs=t=>!ov.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||ov.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Hl=async(t,e,i)=>{await Ao(),t&&!t.classList.contains("opened")&&!e&&be(i)&&(await Ao(),i.set(!1),t.focus())},c0=async(t,e,i)=>{await Ao(),t&&!e&&be(i)&&(i.set(!1),t.focus())},Xd=async(t,e,i,o=!1)=>{if(await Ao(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(iv,!i),s==null||s.focus()}},u0=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Ku=(t,e)=>{d0(t),nv(t.target),l0(t)&&(wr(t),e())},qu=async(t,e)=>{Zd(t,["ArrowRight"])&&(wr(t),e())},p0=async(t,e,i)=>{if(d0(t),N$(t)){wr(t),e();return}l0(t)&&(wr(t),i())},Fl=(t,e)=>{Zd(t)&&(wr(t),e())},f0=(t,e,i)=>{if(Zd(t))wr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),wr(t);return}o==="ArrowRight"&&!e&&(i(!0),wr(t))}},v0=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},m0=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var Oa=require("@vkontakte/videoplayer-shared/es2018");var Xr={"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 rv=require("@vkontakte/videoplayer-shared/es2018");var D$=(t,e)=>{Fl(t,()=>e())},B$=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),H$={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 sv(t,e){F(e,!0),W(t,H$);let i=h(e,"onClick",3,rv.noop),o=h(e,"closeContextMenu",3,rv.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=B$();s.__click=r,s.__keydown=[D$,r];var l=_(s,!0);g(s),D(()=>{var d;We(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),We(s,"data-testid",e.id),ve(l,e.label)}),b(t,s),U()}dt(["click","keydown"]);var Na=(t,e)=>t.weight-e.weight;var Ul=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Ul||{});var F$=(t,e)=>{Ku(t,e)},U$=t=>{t.preventDefault()},z$=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),W$={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 av(t,e){F(e,!0),W(t,W$);let[i,o]=De(),r=()=>S(fe,"$playerPhase",i),s=()=>S(ae,"$isLive$",i),l=()=>S(re,"$isPiPEnabled$",i),d=()=>S(Z,"$chromecastState$",i),a=()=>S(le,"$pictureInPictureApiIsActive$",i),u=()=>S(X,"$isLooped$",i),f=()=>S(q,"$positionExact$",i),v=()=>S(H,"$additionalContextMenuItems$",i),p=h(e,"visible",3,!1),y=h(e,"position",19,()=>({top:0,left:0})),w=h(e,"playerContainerRef",3,void 0),x=h(e,"menuElementRef",15,void 0),C=Q(0),T=Q(0),E=he(),{pictureInPicture$:R}=$o(),A=Rt(),I=E.ui.contextMenu.visible$,O=E.ui.debugPanelVisible,H=E.ui.additionalContextMenuItems$,B=E.ui.t,z=E.actions.internal.togglePictureInPicture,Z=E.state.chromecastState$,ae=E.state.isLive$,q=E.state.positionExact$,de=E.state.isInteractive,X=E.state.looped$,fe=E.playerPhase,{isEnabled$:re,isActive$:le}=R,Me=m(()=>r()==="video"),we=m(()=>!!s()&&n(Me)),te=m(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Ne=m(()=>{var ye;return A.features.copyVideoLink&&((ye=E.callbacks)==null?void 0:ye.onCopyVideoLink)}),ue=m(()=>n(Ne)&&!n(te)&&!de&&!n(we)),k=m(()=>{var ye;return!!((ye=E.callbacks)!=null&&ye.onCopyEmbedCodeClicked)}),Ke=m(()=>l()&&d()!==g0.ChromecastState.CONNECTED&&!de&&n(Me)),Ve=m(()=>!de&&!n(te)&&!n(we)),Y=m(()=>A.features.videoRotate&&!de&&!n(te)),oe=m(()=>A.showSupport&&!a()),Be=m(()=>A.features.saveTraceInfoToFile),Ze=()=>{var ye;I.set(!1),(ye=e.returnFocus)==null||ye.call(e)},me=(ye,ot)=>{if(!x()||!w())return;let qe=x().getBoundingClientRect(),lt=w().getBoundingClientRect();N(C,ye-lt.left),N(T,ot-lt.top),n(C)+qe.width>lt.width&&N(C,lt.width-qe.width),n(T)+qe.height>lt.height&&N(T,lt.height-qe.height),N(C,Math.max(n(C),0),!0),N(T,Math.max(n(T),0),!0)};ze(()=>{(async()=>{if(x()&&w()){await Ao();let{top:ot,left:qe,bottom:lt,right:ti}=y(),ni=qe!=null?qe:0,fi=ot!=null?ot:0,yi=x().getBoundingClientRect();(0,Oa.isNullable)(qe)&&!(0,Oa.isNullable)(ti)&&(ni=ti-yi.width),(0,Oa.isNullable)(ot)&&!(0,Oa.isNullable)(lt)&&(fi=lt-yi.height),ni=Math.max(ni,0),fi=Math.max(fi,0),me(ni,fi)}})()});let J=()=>{E.actions.internal.videoRotate()},Ie=()=>{(0,Oa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},ge=()=>{let ye=E.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let ot=new Blob([...ye],{type:"plain/text"}),qe=window.URL.createObjectURL(ot);Aa(qe,"vk_player_debug_info","txt")}else Bl(E.actions.internal.getDebugTextData())},Fe=()=>{let ye=E.actions.internal.getTraceTextData(),ot=new Blob([...ye],{type:"application/json"}),qe=window.URL.createObjectURL(ot);Aa(qe,"vk_player_trace_info","json")},Xe=()=>{O.set(!0)},Ge=async()=>{var ye;try{z()}finally{(ye=e.returnFocus)==null||ye.call(e)}},ct=()=>{E.actions.internal.setLooped(!u())},et=()=>{var ye,ot;if(n(k)){let qe=(ot=(ye=E.callbacks)==null?void 0:ye.onCopyEmbedCodeClicked)==null?void 0:ot.call(ye);qe&&Bl(qe)}},Bt=(ye=!1)=>{var ot,qe;if((ot=E.callbacks)!=null&&ot.onCopyVideoLink){let lt=(qe=E.callbacks)==null?void 0:qe.onCopyVideoLink(ye,f());lt&&Bl(lt)}},rt=m(()=>A.features.saveDebugInfoToFile?B("menu_save_debug"):B("menu_copy_debug")),Dt=m(()=>n(Ne)?{id:"copy-link",weight:Xr["copy-link"],label:B("menu_copy_video_link"),onClick:()=>Bt()}:void 0),qt=m(()=>n(ue)?{id:"copy-link-timestamp",weight:Xr["copy-link-timestamp"],label:B("menu_copy_video_link_with_timestamp"),onClick:()=>Bt(!0)}:void 0),Et=m(()=>n(k)?{id:"copy-embed-code",weight:Xr["copy-embed-code"],label:B("menu_copy_embed_code"),onClick:et}:void 0),ei=m(()=>n(Ke)?{id:"pip",weight:Xr.pip,label:a()?B("menu_pip_close"):B("menu_pip"),onClick:Ge}:void 0),Wt=m(()=>n(Ve)?{id:"video-loop",weight:Xr["video-loop"],label:u()?B("menu_video_loop_off"):B("menu_video_loop_on"),ariaLabel:B("aria_label_menu_loop"),onClick:ct}:void 0),Se=m(()=>n(Y)?{id:"rotate",weight:Xr.rotate,label:B("menu_video_rotate"),ariaLabel:B("aria_label_menu_rotate"),onClick:J}:void 0),xe=m(()=>n(oe)?{id:"report",weight:Xr.report,label:B("menu_report"),ariaLabel:`${B("menu_report")}. ${B("aria_label_new_tab_alert")}`,onClick:Ie}:void 0),ee=m(()=>({id:"save-debug",weight:Xr["save-debug"],label:n(rt),onClick:ge})),Ce=m(()=>n(Be)?{id:"save-trace",weight:Xr["save-trace"],label:B("menu_save_debug"),onClick:Fe}:void 0),Pe=m(()=>({id:"debug-info",weight:Xr["debug-info"],label:B("menu_debug_overlay"),ariaLabel:B("aria_label_menu_debug_overlay"),onClick:Xe})),It=m(()=>[n(Dt),n(qt),n(Et),n(ei),n(Wt),n(Se),n(xe),n(ee),n(Ce),n(Pe),...v()].filter(ye=>!!ye).sort(Na));var Oe=He(),ut=pe(Oe);{var yt=ye=>{var ot=z$();ot.__contextmenu=[U$],ot.__keydown=[F$,Ze],Ci(ot,21,()=>n(It),qe=>qe.id,(qe,lt)=>{sv(qe,{get id(){return n(lt).id},get label(){return n(lt).label},get ariaLabel(){return n(lt).ariaLabel},get onClick(){return n(lt).onClick},closeContextMenu:Ze})}),g(ot),at(ot,qe=>x(qe),()=>x()),D(()=>{var qe,lt;return Je(ot,`top: ${(qe=n(T))!=null?qe:""}px; left: ${(lt=n(C))!=null?lt:""}px;`)}),b(ye,ot)};V(ut,ye=>{p()&&ye(yt)})}b(t,Oe),U(),o()}dt(["contextmenu","keydown"]);var Qu=class{constructor(e){this.value=e,this.next=null}};var zl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Qu(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 K$=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),q$={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 Jd(t,e){F(e,!0),W(t,q$);let i=h(e,"values",19,()=>[]),o=Q(void 0),r=Q(null),s=16,l=120,d=60,a=l/d;Ot(()=>{n(o).width=l,n(o).height=s,N(r,n(o).getContext("2d"),!0)});function u(p,y,w,x,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(y,w,x,C)}ze(()=>{let p="";if(n(r)){let y=i()[0];for(let x=1;x<i().length;x++)i()[x]>y&&(y=i()[x]);n(r).clearRect(0,0,l,s);let w=d-1;for(let x=i().length-1;x>=0;x--){let C=w*a,T=y>0?s*(i()[x]/y):0;u(n(r),C,0,a,T),p=T+" "+p,w--}}});var f=K$(),v=_(f);at(v,p=>N(o,p),()=>n(o)),g(f),b(t,f),U()}var lv=require("@vkontakte/videoplayer-shared/es2018");var Q$=(t,e)=>{t.stopPropagation(),lv.safeStorage.remove(Bd),e.set(!1)},G$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video id</div> <span> </span></div>'),j$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">VSID</div> <span> </span></div>'),Y$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Provider</div> <span> </span></div>'),Z$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Streams</div> <span> </span></div>'),X$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Viewport</div> <span> </span></div>'),J$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video size</div> <span> </span></div>'),e2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">CDN host</div> <span> </span></div>'),t2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Volume</div> <span> </span></div>'),i2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Position</div> <span> </span></div>'),o2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Buffer</div> <span> </span></div>'),n2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Live latency</div> <span> </span></div>'),r2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Segment</div> <span> </span></div>'),s2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Network</div> <!> <span> </span></div>'),a2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">V bitrate</div> <!> <span> </span></div>'),l2=M('<div role="region"><button class="close svelte-lx3h69" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-lx3h69"><div class="svelte-lx3h69"><div class="svelte-lx3h69">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">FPS</div> <!> <span> </span></div></div></div>'),d2={hash:"svelte-lx3h69",code:".container.svelte-lx3h69 {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-lx3h69 {top:16px;left:16px;}button.close.svelte-lx3h69 {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-lx3h69 {padding:5px;}.content.svelte-lx3h69 > div:where(.svelte-lx3h69) > div:where(.svelte-lx3h69) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function ec(t,e){F(e,!0),W(t,d2);let[i,o]=De(),r=()=>S(d,"$isMobile",i),s=he(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=Q(ai(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=Q(0),v=Q(0),p=Q(0),y=new zl(60),w=new zl(60),x=new zl(60),C=Q(ai([])),T=Q(ai([])),E=Q(ai([])),R=j("aria_label_debug_panel");Ot(()=>{lv.safeStorage.set(Bd,"true"),s.actions.internal.startLogging(),u&&(N(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Se=window.setInterval(()=>{N(a,s.actions.internal.getDebugPanelData(),!0)},500),xe;return u&&(xe=window.setInterval(()=>{if(u){N(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ee=u.getVideoPlaybackQuality().totalVideoFrames;N(p,ee-n(f)),N(f,ee,!0),y.push(n(p)),n(a).speed&&w.push(n(a).speed),n(a).bitrate&&x.push(n(a).bitrate),N(C,y.getValuesFromBottom(),!0),N(T,w.getValuesFromBottom(),!0),N(E,x.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Se),xe&&clearInterval(xe)}});var A=l2();let I;var O=_(A);O.__click=[Q$,l];var H=P(O,2),B=_(H),z=P(_(B),2),Z=_(z,!0);g(z),g(B);var ae=P(B,2);{var q=Se=>{var xe=G$(),ee=P(_(xe),2),Ce=_(ee,!0);g(ee),g(xe),D(()=>ve(Ce,n(a).id)),b(Se,xe)};V(ae,Se=>{n(a).id&&Se(q)})}var de=P(ae,2);{var X=Se=>{var xe=j$(),ee=P(_(xe),2),Ce=_(ee,!0);g(ee),g(xe),D(()=>ve(Ce,n(a).vsid)),b(Se,xe)};V(de,Se=>{n(a).vsid&&Se(X)})}var fe=P(de,2);{var re=Se=>{var xe=Y$(),ee=P(_(xe),2),Ce=_(ee,!0);g(ee),g(xe),D(()=>ve(Ce,n(a).provider)),b(Se,xe)};V(fe,Se=>{n(a).provider&&Se(re)})}var le=P(fe,2);{var Me=Se=>{var xe=Z$(),ee=P(_(xe),2),Ce=_(ee);g(ee),g(xe),D(()=>{var Pe,It;return ve(Ce,`Video: ${(Pe=n(a).videoCodec||"")!=null?Pe:""} ${n(a).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Gd(t,e){W(t,T$);let i=h(e,"withEqualizer",3,!1),o=h(e,"isLive",3,!1),r=h(e,"isPlaying",3,!1);var s=C$();let l;var d=_(s);{var a=p=>{var y=x$();b(p,y)};V(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var y=w$(),w=_(y);Qd(w,{isActive:!0}),g(y),b(p,y)},v=p=>{var y=S$(),w=_(y,!0);g(y),D(()=>fe(w,e.time)),b(p,y)};V(u,p=>{o()?p(f):p(v,!1)})}g(s),D(p=>l=ne(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:r()})]),b(t,s)}var Ol=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var E$=M('<div role="timer" data-testid="thumb-timer"><!></div>'),I$={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 jd(t,e){F(e,!0),W(t,I$);let[i,o]=Oe(),r=()=>S(f,"$disabled",i),s=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),a=Rt(),u=m(()=>zo(e.duration-e.position)),f=le(!1);var v=E$();let p;var y=_(v);Gd(y,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),g(v),ws(v,()=>Ol(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(w=>p=ne(v,1,"thumb-timer svelte-c6gowj",null,p,w),[()=>({"out-of-flow":r(),hidden:s()})]),b(t,v),U(),o()}var Dl=t=>{if(!navigator.clipboard){a0(t);return}navigator.clipboard.writeText(t).catch(()=>a0(t))};function a0(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 g0=require("@vkontakte/videoplayer-core/es2018");var ov=require("@vkontakte/videoplayer-core/es2018");var iv="focus-hidden";var Ir=t=>{t.stopPropagation(),t.preventDefault()},nv=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(iv)},A$=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},P$=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},M$=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},L$=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},l0=t=>t.code==="Escape",V$=t=>t.code==="ArrowLeft",Yd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},d0=t=>{M$(t)?(Ir(t),P$(t.target)):L$(t)&&(Ir(t),A$(t.target))},js=t=>!ov.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||ov.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Bl=async(t,e,i)=>{await go(),t&&!t.classList.contains("opened")&&!e&&be(i)&&(await go(),i.set(!1),t.focus())},c0=async(t,e,i)=>{await go(),t&&!e&&be(i)&&(i.set(!1),t.focus())},Zd=async(t,e,i,o=!1)=>{if(await go(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(iv,!i),s==null||s.focus()}},u0=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},zu=(t,e)=>{d0(t),nv(t.target),l0(t)&&(Ir(t),e())},Wu=async(t,e)=>{Yd(t,["ArrowRight"])&&(Ir(t),e())},p0=async(t,e,i)=>{if(d0(t),V$(t)){Ir(t),e();return}l0(t)&&(Ir(t),i())},Hl=(t,e)=>{Yd(t)&&(Ir(t),e())},f0=(t,e,i)=>{if(Yd(t))Ir(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Ir(t);return}o==="ArrowRight"&&!e&&(i(!0),Ir(t))}},v0=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},m0=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var Na=require("@vkontakte/videoplayer-shared/es2018");var Qr={"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 rv=require("@vkontakte/videoplayer-shared/es2018");var N$=(t,e)=>{Hl(t,()=>e())},O$=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),D$={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 sv(t,e){F(e,!0),W(t,D$);let i=h(e,"onClick",3,rv.noop),o=h(e,"closeContextMenu",3,rv.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=O$();s.__click=r,s.__keydown=[N$,r];var l=_(s,!0);g(s),D(()=>{var d;Qe(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Qe(s,"data-testid",e.id),fe(l,e.label)}),b(t,s),U()}ct(["click","keydown"]);var Ra=(t,e)=>t.weight-e.weight;var Fl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Fl||{});var B$=(t,e)=>{zu(t,e)},H$=t=>{t.preventDefault()},F$=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),U$={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 av(t,e){F(e,!0),W(t,U$);let[i,o]=Oe(),r=()=>S(ve,"$playerPhase",i),s=()=>S(se,"$isLive$",i),l=()=>S(re,"$isPiPEnabled$",i),d=()=>S(Z,"$chromecastState$",i),a=()=>S(ae,"$pictureInPictureApiIsActive$",i),u=()=>S(X,"$isLooped$",i),f=()=>S(q,"$positionExact$",i),v=()=>S(H,"$additionalContextMenuItems$",i),p=h(e,"visible",3,!1),y=h(e,"position",19,()=>({top:0,left:0})),w=h(e,"playerContainerRef",3,void 0),x=h(e,"menuElementRef",15,void 0),C=Q(0),T=Q(0),E=ge(),{pictureInPicture$:R}=$o(),A=Rt(),I=E.ui.contextMenu.visible$,O=E.ui.debugPanelVisible,H=E.ui.additionalContextMenuItems$,B=E.ui.t,z=E.actions.internal.togglePictureInPicture,Z=E.state.chromecastState$,se=E.state.isLive$,q=E.state.positionExact$,de=E.state.isInteractive,X=E.state.looped$,ve=E.playerPhase,{isEnabled$:re,isActive$:ae}=R,Ae=m(()=>r()==="video"),$e=m(()=>!!s()&&n(Ae)),J=m(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),De=m(()=>{var we;return A.features.copyVideoLink&&((we=E.callbacks)==null?void 0:we.onCopyVideoLink)}),ue=m(()=>n(De)&&!n(J)&&!de&&!n($e)),k=m(()=>{var we;return!!((we=E.callbacks)!=null&&we.onCopyEmbedCodeClicked)}),Ge=m(()=>l()&&d()!==g0.ChromecastState.CONNECTED&&!de&&n(Ae)),Pe=m(()=>!de&&!n(J)&&!n($e)),j=m(()=>A.features.videoRotate&&!de&&!n(J)),ie=m(()=>A.showSupport&&!a()),Be=m(()=>A.features.saveTraceInfoToFile),Ze=()=>{var we;I.set(!1),(we=e.returnFocus)==null||we.call(e)},me=(we,st)=>{if(!x()||!w())return;let ze=x().getBoundingClientRect(),ut=w().getBoundingClientRect();N(C,we-ut.left),N(T,st-ut.top),n(C)+ze.width>ut.width&&N(C,ut.width-ze.width),n(T)+ze.height>ut.height&&N(T,ut.height-ze.height),N(C,Math.max(n(C),0),!0),N(T,Math.max(n(T),0),!0)};qe(()=>{(async()=>{if(x()&&w()){await go();let{top:st,left:ze,bottom:ut,right:Qt}=y(),_i=ze!=null?ze:0,pi=st!=null?st:0,yi=x().getBoundingClientRect();(0,Na.isNullable)(ze)&&!(0,Na.isNullable)(Qt)&&(_i=Qt-yi.width),(0,Na.isNullable)(st)&&!(0,Na.isNullable)(ut)&&(pi=ut-yi.height),_i=Math.max(_i,0),pi=Math.max(pi,0),me(_i,pi)}})()});let te=()=>{E.actions.internal.videoRotate()},Ie=()=>{(0,Na.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},xe=()=>{let we=E.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let st=new Blob([...we],{type:"plain/text"}),ze=window.URL.createObjectURL(st);ka(ze,"vk_player_debug_info","txt")}else Dl(E.actions.internal.getDebugTextData())},He=()=>{let we=E.actions.internal.getTraceTextData(),st=new Blob([...we],{type:"application/json"}),ze=window.URL.createObjectURL(st);ka(ze,"vk_player_trace_info","json")},Xe=()=>{O.set(!0)},je=async()=>{var we;try{z()}finally{(we=e.returnFocus)==null||we.call(e)}},Ke=()=>{E.actions.internal.setLooped(!u())},Ye=()=>{var we,st;if(n(k)){let ze=(st=(we=E.callbacks)==null?void 0:we.onCopyEmbedCodeClicked)==null?void 0:st.call(we);ze&&Dl(ze)}},Dt=(we=!1)=>{var st,ze;if((st=E.callbacks)!=null&&st.onCopyVideoLink){let ut=(ze=E.callbacks)==null?void 0:ze.onCopyVideoLink(we,f());ut&&Dl(ut)}},rt=m(()=>A.features.saveDebugInfoToFile?B("menu_save_debug"):B("menu_copy_debug")),Bt=m(()=>n(De)?{id:"copy-link",weight:Qr["copy-link"],label:B("menu_copy_video_link"),onClick:()=>Dt()}:void 0),qt=m(()=>n(ue)?{id:"copy-link-timestamp",weight:Qr["copy-link-timestamp"],label:B("menu_copy_video_link_with_timestamp"),onClick:()=>Dt(!0)}:void 0),Et=m(()=>n(k)?{id:"copy-embed-code",weight:Qr["copy-embed-code"],label:B("menu_copy_embed_code"),onClick:Ye}:void 0),Jt=m(()=>n(Ge)?{id:"pip",weight:Qr.pip,label:a()?B("menu_pip_close"):B("menu_pip"),onClick:je}:void 0),Wt=m(()=>n(Pe)?{id:"video-loop",weight:Qr["video-loop"],label:u()?B("menu_video_loop_off"):B("menu_video_loop_on"),ariaLabel:B("aria_label_menu_loop"),onClick:Ke}:void 0),Se=m(()=>n(j)?{id:"rotate",weight:Qr.rotate,label:B("menu_video_rotate"),ariaLabel:B("aria_label_menu_rotate"),onClick:te}:void 0),ye=m(()=>n(ie)?{id:"report",weight:Qr.report,label:B("menu_report"),ariaLabel:`${B("menu_report")}. ${B("aria_label_new_tab_alert")}`,onClick:Ie}:void 0),ee=m(()=>({id:"save-debug",weight:Qr["save-debug"],label:n(rt),onClick:xe})),Ce=m(()=>n(Be)?{id:"save-trace",weight:Qr["save-trace"],label:B("menu_save_debug"),onClick:He}:void 0),Le=m(()=>({id:"debug-info",weight:Qr["debug-info"],label:B("menu_debug_overlay"),ariaLabel:B("aria_label_menu_debug_overlay"),onClick:Xe})),Mt=m(()=>[n(Bt),n(qt),n(Et),n(Jt),n(Wt),n(Se),n(ye),n(ee),n(Ce),n(Le),...v()].filter(we=>!!we).sort(Ra));var Ve=Ue(),lt=pe(Ve);{var Tt=we=>{var st=F$();st.__contextmenu=[H$],st.__keydown=[B$,Ze],Ci(st,21,()=>n(Mt),ze=>ze.id,(ze,ut)=>{sv(ze,{get id(){return n(ut).id},get label(){return n(ut).label},get ariaLabel(){return n(ut).ariaLabel},get onClick(){return n(ut).onClick},closeContextMenu:Ze})}),g(st),at(st,ze=>x(ze),()=>x()),D(()=>{var ze,ut;return tt(st,`top: ${(ze=n(T))!=null?ze:""}px; left: ${(ut=n(C))!=null?ut:""}px;`)}),b(we,st)};V(lt,we=>{p()&&we(Tt)})}b(t,Ve),U(),o()}ct(["contextmenu","keydown"]);var Ku=class{constructor(e){this.value=e,this.next=null}};var Ul=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Ku(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 z$=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),W$={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 Xd(t,e){F(e,!0),W(t,W$);let i=h(e,"values",19,()=>[]),o=Q(void 0),r=Q(null),s=16,l=120,d=60,a=l/d;Ot(()=>{n(o).width=l,n(o).height=s,N(r,n(o).getContext("2d"),!0)});function u(p,y,w,x,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(y,w,x,C)}qe(()=>{let p="";if(n(r)){let y=i()[0];for(let x=1;x<i().length;x++)i()[x]>y&&(y=i()[x]);n(r).clearRect(0,0,l,s);let w=d-1;for(let x=i().length-1;x>=0;x--){let C=w*a,T=y>0?s*(i()[x]/y):0;u(n(r),C,0,a,T),p=T+" "+p,w--}}});var f=z$(),v=_(f);at(v,p=>N(o,p),()=>n(o)),g(f),b(t,f),U()}var lv=require("@vkontakte/videoplayer-shared/es2018");var K$=(t,e)=>{t.stopPropagation(),lv.safeStorage.remove(Dd),e.set(!1)},q$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video id</div> <span> </span></div>'),Q$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">VSID</div> <span> </span></div>'),G$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Provider</div> <span> </span></div>'),j$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Streams</div> <span> </span></div>'),Y$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Viewport</div> <span> </span></div>'),Z$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video size</div> <span> </span></div>'),X$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">CDN host</div> <span> </span></div>'),J$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Volume</div> <span> </span></div>'),e2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Position</div> <span> </span></div>'),t2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Buffer</div> <span> </span></div>'),i2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Live latency</div> <span> </span></div>'),o2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Segment</div> <span> </span></div>'),n2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Network</div> <!> <span> </span></div>'),r2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">V bitrate</div> <!> <span> </span></div>'),s2=M('<div role="region"><button class="close svelte-lx3h69" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-lx3h69"><div class="svelte-lx3h69"><div class="svelte-lx3h69">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">FPS</div> <!> <span> </span></div></div></div>'),a2={hash:"svelte-lx3h69",code:".container.svelte-lx3h69 {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-lx3h69 {top:16px;left:16px;}button.close.svelte-lx3h69 {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-lx3h69 {padding:5px;}.content.svelte-lx3h69 > div:where(.svelte-lx3h69) > div:where(.svelte-lx3h69) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Jd(t,e){F(e,!0),W(t,a2);let[i,o]=Oe(),r=()=>S(d,"$isMobile",i),s=ge(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=Q(si(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=Q(0),v=Q(0),p=Q(0),y=new Ul(60),w=new Ul(60),x=new Ul(60),C=Q(si([])),T=Q(si([])),E=Q(si([])),R=Y("aria_label_debug_panel");Ot(()=>{lv.safeStorage.set(Dd,"true"),s.actions.internal.startLogging(),u&&(N(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Se=window.setInterval(()=>{N(a,s.actions.internal.getDebugPanelData(),!0)},500),ye;return u&&(ye=window.setInterval(()=>{if(u){N(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ee=u.getVideoPlaybackQuality().totalVideoFrames;N(p,ee-n(f)),N(f,ee,!0),y.push(n(p)),n(a).speed&&w.push(n(a).speed),n(a).bitrate&&x.push(n(a).bitrate),N(C,y.getValuesFromBottom(),!0),N(T,w.getValuesFromBottom(),!0),N(E,x.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Se),ye&&clearInterval(ye)}});var A=s2();let I;var O=_(A);O.__click=[K$,l];var H=P(O,2),B=_(H),z=P(_(B),2),Z=_(z,!0);g(z),g(B);var se=P(B,2);{var q=Se=>{var ye=q$(),ee=P(_(ye),2),Ce=_(ee,!0);g(ee),g(ye),D(()=>fe(Ce,n(a).id)),b(Se,ye)};V(se,Se=>{n(a).id&&Se(q)})}var de=P(se,2);{var X=Se=>{var ye=Q$(),ee=P(_(ye),2),Ce=_(ee,!0);g(ee),g(ye),D(()=>fe(Ce,n(a).vsid)),b(Se,ye)};V(de,Se=>{n(a).vsid&&Se(X)})}var ve=P(de,2);{var re=Se=>{var ye=G$(),ee=P(_(ye),2),Ce=_(ee,!0);g(ee),g(ye),D(()=>fe(Ce,n(a).provider)),b(Se,ye)};V(ve,Se=>{n(a).provider&&Se(re)})}var ae=P(ve,2);{var Ae=Se=>{var ye=j$(),ee=P(_(ye),2),Ce=_(ee);g(ee),g(ye),D(()=>{var Le,Mt;return fe(Ce,`Video: ${(Le=n(a).videoCodec||"")!=null?Le:""} ${n(a).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(It=n(a).audioCodec||"")!=null?It:""} ${n(a).audioLanguage?`(${n(a).audioLanguage})`:""}`)}),b(Se,xe)};V(le,Se=>{(n(a).videoCodec||n(a).audioCodec)&&Se(Me)})}var we=P(le,2);{var te=Se=>{var xe=X$(),ee=P(_(xe),2),Ce=_(ee,!0);g(ee),g(xe),D(()=>ve(Ce,n(a).viewport)),b(Se,xe)};V(we,Se=>{n(a).viewport&&Se(te)})}var Ne=P(we,2);{var ue=Se=>{var xe=J$(),ee=P(_(xe),2),Ce=_(ee,!0);g(ee),g(xe),D(()=>ve(Ce,n(a).videoSize)),b(Se,xe)};V(Ne,Se=>{n(a).videoSize&&Se(ue)})}var k=P(Ne,2);{var Ke=Se=>{var xe=e2(),ee=P(_(xe),2),Ce=_(ee,!0);g(ee),g(xe),D(()=>ve(Ce,n(a).cdn)),b(Se,xe)};V(k,Se=>{n(a).cdn&&Se(Ke)})}var Ve=P(k,2);{var Y=Se=>{var xe=t2(),ee=P(_(xe),2),Ce=_(ee);g(ee),g(xe),D(()=>{var Pe;return ve(Ce,`${(Pe=n(a).volume)!=null?Pe:""} %`)}),b(Se,xe)};V(Ve,Se=>{n(a).volume&&Se(Y)})}var oe=P(Ve,2);{var Be=Se=>{var xe=i2(),ee=P(_(xe),2),Ce=_(ee);g(ee),g(xe),D(Pe=>ve(Ce,`${Pe!=null?Pe:""} s`),[()=>n(a).position.toFixed(2)]),b(Se,xe)};V(oe,Se=>{n(a).position&&Se(Be)})}var Ze=P(oe,2);{var me=Se=>{var xe=o2(),ee=P(_(xe),2),Ce=_(ee);g(ee),g(xe),D(Pe=>ve(Ce,`${Pe!=null?Pe:""} s`),[()=>n(a).buffer.toFixed(2)]),b(Se,xe)};V(Ze,Se=>{n(a).buffer&&Se(me)})}var J=P(Ze,2);{var Ie=Se=>{var xe=n2(),ee=P(_(xe),2),Ce=_(ee);g(ee),g(xe),D(Pe=>ve(Ce,`${Pe!=null?Pe:""} s`),[()=>n(a).liveLatency.toFixed(2)]),b(Se,xe)};V(J,Se=>{n(a).liveLatency&&Se(Ie)})}var ge=P(J,2);{var Fe=Se=>{var xe=r2(),ee=P(_(xe),2),Ce=_(ee,!0);g(ee),g(xe),D(Pe=>ve(Ce,Pe),[()=>[{value:n(a).currentVideoSegmentLength,title:"Video:"},{value:n(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Pe})=>Pe).map(({value:Pe,title:It})=>`${It} ${((Pe!=null?Pe:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Se,xe)};V(ge,Se=>{(n(a).currentVideoSegmentLength||n(a).currentAudioSegmentLength)&&Se(Fe)})}var Xe=P(ge,2),Ge=P(_(Xe),2),ct=_(Ge);g(Ge),g(Xe);var et=P(Xe,2);{var Bt=Se=>{var xe=s2(),ee=P(_(xe),2);Jd(ee,{get values(){return n(T)}});var Ce=P(ee,2),Pe=_(Ce);g(Ce),g(xe),D(It=>ve(Pe,`${It!=null?It:""} Kbps`),[()=>n(a).speed.toFixed(2)]),b(Se,xe)};V(et,Se=>{n(a).speed&&Se(Bt)})}var rt=P(et,2);{var Dt=Se=>{var xe=a2(),ee=P(_(xe),2);Jd(ee,{get values(){return n(E)}});var Ce=P(ee,2),Pe=_(Ce);g(Ce),g(xe),D(It=>ve(Pe,`${It!=null?It:""} Kbps`),[()=>n(a).bitrate.toFixed(2)]),b(Se,xe)};V(rt,Se=>{n(a).bitrate&&Se(Dt)})}var qt=P(rt,2),Et=P(_(qt),2);Jd(Et,{get values(){return n(C)}});var ei=P(Et,2),Wt=_(ei,!0);g(ei),g(qt),g(H),g(A),D(Se=>{var xe,ee;I=ne(A,1,"container svelte-lx3h69",null,I,Se),We(A,"aria-label",R),ve(Z,n(a).version),ve(ct,`${(xe=n(v))!=null?xe:""} / ${(ee=n(f))!=null?ee:""} frames`),ve(Wt,n(p))},[()=>({"container-mobile":r()})]),b(t,A),U(),o()}dt(["click"]);var h0=require("@vkontakte/videoplayer-shared/es2018"),c2=(t,e)=>{t.stopPropagation(),e()()},u2=M('<div class="close svelte-1ome55p"></div>'),p2={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 Is(t,e){F(e,!0),W(t,p2);let i=h(e,"onClick",3,h0.noop);var o=u2();o.__click=[c2,i],b(t,o),U()}dt(["click"]);var _0=require("@vkontakte/videoplayer-shared/es2018"),f2=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>'),v2={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 tc(t,e){F(e,!0),W(t,v2);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,_0.noop),r=5e3,s=Q(void 0),l,d,a=0,u;ze(()=>{i()&&Pt(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(u=(Date.now()-d)/r,u<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*u),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Ot(()=>{l=n(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),an(()=>{f()});var p=f2(),y=_(p);at(y,w=>N(s,w),()=>n(s)),Te(2),g(p),b(t,p),U()}var m2=(t,e,i)=>{e(!1),i()},g2=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),h2={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 dv(t,e){F(e,!0),W(t,h2);let[i,o]=De(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=he(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{r()&&(u(!1),p())},x=()=>{e.clickCloseIcon(),y()};Ot(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=He(),T=pe(C);{var E=R=>{var A=g2(),I=P(pe(A),2),O=_(I),H=_(O),B=_(H,!0);g(H);var z=P(H,2);Is(z,{onClick:x}),g(O);var Z=P(O,2);Z.__click=[m2,u,v];var ae=_(Z),q=_(ae),de=_(q);let X;var fe=P(de,2);{var re=te=>{let Ne=m(()=>s()&&r());tc(te,{get isRunning(){return n(Ne)},onTimerEnded:w})};V(fe,te=>{r()&&te(re)})}g(q),g(ae);var le=P(ae,2),Me=_(le),we=_(Me,!0);g(Me),g(le),g(Z),g(I),D((te,Ne)=>{ve(B,te),Je(q,`background-image: url('${e.thumb}')`),X=ne(de,1,"thumb-overlay svelte-jfbaax",null,X,Ne),ve(we,e.title)},[()=>j("end_screen_next_video"),()=>({withOpacity:r()})]),b(R,A)};V(T,R=>{e.isHide||R(E)})}b(t,C),U(),o()}dt(["click"]);var Js=require("@vkontakte/videoplayer-core/es2018"),b0=require("@vkontakte/videoplayer-shared/es2018"),In=require("@vkontakte/videoplayer-statistics/es2018");var cv=(t,e)=>Math.min(+(t+e).toFixed(2),1),uv=(t,e)=>Math.max(+(t-e).toFixed(2),0),Gu=(t,e,i)=>{let o=cv(e,i);e<1&&t.actions.internal.setVolume(o)},ju=(t,e,i)=>{let o=uv(e,i);e>0&&t.actions.internal.setVolume(o)};var Xs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function Yu(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var b2=(t,e)=>{e(t)},$2=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),y2={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function pv(t,e){var Pe,It;F(e,!0),W(t,y2);let[i,o]=De(),r=()=>S(fe,"$disabledControls$",i),s=()=>S(Ie,"$isInteractiveTime$",i),l=()=>S(ge,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>S(Z,"$playbackState$",i),a=()=>S(Y,"$isEnded$",i),u=()=>S(Ke,"$doubleForwardAvailable$",i),f=()=>S(k,"$doubleForwardOn$",i),v=()=>S(oe,"$overlayContainer$",i),p=()=>S(ae,"$adPlaybackState",i),y=()=>S(q,"$positionExact$",i),w=()=>S(de,"$duration$",i),x=()=>S(me,"$isAudioAvailable$",i),C=()=>S(X,"$volume$",i),T=()=>S(we,"$availablePlaybackRates$",i),E=()=>S(Me,"$currentPlaybackRate$",i),R=()=>S(re,"$muted$",i),A=()=>S(le,"$currentSubtitle$",i),I=h(e,"nextButtonActive",3,!1),O=h(e,"prevButtonActive",3,!1),H=he(),B=Rt(),z=H.getLogger().createComponentLog("KeyboardControls component"),Z=H.state.playbackState$,ae=H.ads.playbackState,q=H.state.positionExact$,de=H.state.duration$,X=H.state.volume$,fe=H.ui.controls.disabledControls$,re=H.state.muted$,le=H.state.currentSubtitle$,Me=H.state.currentPlaybackRate$,we=H.state.availablePlaybackRates$,te=H.ui.contextMenu.openedByHotKey$,Ne=H.ui.contextMenu.lastActiveElem$,ue=H.ui.contextMenu.visible$,k=H.ui.doubleForwardOn$,Ke=H.ui.doubleForwardAvailable$,Ve=H.ui.contextMenu.position$,Y=H.state.isEnded$,oe=H.ui.overlayContainer$,Be=(Pe=H.callbacks)==null?void 0:Pe.onAudioDoesNotExistHint,Ze=(It=H.callbacks)==null?void 0:It.onAudioDisabledHint,me=H.state.isAudioAvailable$,J=H.state.isAudioDisabled,Ie=H.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:ge}=$o(),Fe=0,Xe=!0,Ge=Q(void 0),ct=Oe=>(Oe!==Xe&&(Xe=Oe,Fe=0),Fe+=1,(B.controls.seekStepKeyboard+B.controls.seekStepKeyboard*Fe)/1e3),et=!0,Bt=({type:Oe,repeat:ut,disableDoubleForward:yt})=>{let ye=()=>{if(!r().has("PLAY_BUTTON"))if(s()&&l()&&ge.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{H.actions.internal.togglePlay();let qe="PLAY";d()===Js.PlaybackState.PAUSED?qe="PAUSE":a()&&(qe="REPLAY"),e.showHotKeyHelpers({type:qe})}},ot=Oe==="down";if(!u()||yt){ot&&ye(),et=!0;return}if(ot)et=!1;else if(et)return;if(ot){!ut&&e.startDoubleForwardActivationTimer();return}f()||ye(),e.stopDoubleForward(),et=!0},rt=Oe=>{let ut=m0(v());Ve.set(ut),Ne.set(Oe.target),te.set(!0),ue.set(!0)},Dt=(Oe,ut=!1)=>{var ki,jt;let yt=Oe.target,ye=(ki=yt==null?void 0:yt.getAttribute("role"))==null?void 0:ki.includes("menuitem"),ot=yt.classList.contains("btn"),qe=Oe.code;if(ot&&qe==="Space")return!1;let lt=h1.has(qe);if(ye&&lt)return!1;let ti=!g1.has(qe);if(Oe.ctrlKey&&ti||Oe.altKey&&ti||Oe.metaKey)return!1;let ni=ye&&qe==="Escape";_1.has(qe)||ni||e.hideContextMenu();let fi=d()===Js.PlaybackState.PLAYING||d()===Js.PlaybackState.PAUSED,yi=e.isAds&&(p()==="paused"||p()==="playing"),ro=!yi&&!r().has("TIMELINE"),po=Oe.shiftKey&&["Digit1","Numpad1"].includes(qe);if(!po&&!(fi||yi))return!1;z({message:`key down, code: ${qe}, isExternal = ${ut}`});let di=!1,gt=()=>{di=!0,ut||Oe.preventDefault()};if(po)return rt(Oe),gt(),!0;switch(qe){case"KeyJ":case"ArrowLeft":{if(!ro)break;if(Oe.ctrlKey||Oe.altKey){let Tt=H.actions.internal.getPrevEpisode();H.actions.internal.seekToPrevEpisode(Tt),Tt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Tt.text}),gt()}else{let Tt=Oe.shiftKey?ct(!1):B.controls.seekStepKeyboard/1e3,oi=Math.max(y()-Tt,0);y()>0&&(H.actions.internal.seekTime(oi,In.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Tt.toString()}),gt())}break}case"KeyL":case"ArrowRight":{if(!ro)break;if(Oe.ctrlKey||Oe.altKey){let Tt=H.actions.internal.getNextEpisode();H.actions.internal.seekToNextEpisode(Tt),Tt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Tt.text}),gt()}else{let Tt=Oe.shiftKey?ct(!0):B.controls.seekStepKeyboard/1e3,oi=Math.min(y()+Tt,w());Math.round(y())<Math.round(w())&&(H.actions.internal.seekTime(oi,In.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Tt.toString()}),gt())}break}case"ArrowUp":{if(Xs({isAudioDisabled:J,audioDisabledHintCallback:Ze,isAudioAvailable:x(),audioIsNotExistHintCallback:Be,isAds:e.isAds})){let Tt=C(),oi=B.controls.volumeStepKeyboard,Yt=Tt<=1;if(Gu(H,Tt,oi),Yt){let St=Math.round(cv(Tt,oi)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:St}})}}gt();break}case"ArrowDown":{if(Xs({isAudioDisabled:J,audioDisabledHintCallback:Ze,isAudioAvailable:x(),audioIsNotExistHintCallback:Be,isAds:e.isAds})){let Tt=C(),oi=B.controls.volumeStepKeyboard,Yt=Tt>=0;if(ju(H,Tt,oi),Yt){let St=Math.round(uv(Tt,oi)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:St}})}}gt();break}case"Comma":{if(Oe.shiftKey){if(!f()){H.actions.internal.decrementPlaybackRate();let Tt=T().find(oi=>oi.value===E());e.showHotKeyHelpers({type:"RATE_DOWN",text:Tt==null?void 0:Tt.displayValue}),gt()}}else{if(yi||d()!==Js.PlaybackState.PAUSED)break;let Tt=Math.max(y()-B.controls.seekStepFrame/1e3,0);y()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(Tt,In.SeekAction.DOUBLE_TAP),gt())}break}case"Period":{if(Oe.shiftKey){if(!f()){H.actions.internal.incrementPlaybackRate();let Tt=T().find(oi=>oi.value===E());e.showHotKeyHelpers({type:"RATE_UP",text:Tt==null?void 0:Tt.displayValue}),gt()}}else{if(yi||d()!==Js.PlaybackState.PAUSED)break;let Tt=Math.min(y()+B.controls.seekStepFrame/1e3,w());y()<w()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(Tt,In.SeekAction.DOUBLE_TAP),gt())}break}case"KeyK":case"Space":Bt({type:"down",repeat:Oe.repeat,disableDoubleForward:"KeyK"===qe}),gt();break;case"KeyM":{Xs({isAudioDisabled:J,audioDisabledHintCallback:Ze,isAudioAvailable:x(),audioIsNotExistHintCallback:Be,isAds:e.isAds})&&(e.showHotKeyHelpers({type:R()?"VOLUME":"MUTE"}),H.actions.internal.toggleMuted()),gt();break}case"KeyF":e.toggleFullscreen(),gt();break;case"KeyC":H.actions.internal.toggleSubtitle(),A().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(jt=A())==null?void 0:jt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),gt();break;case"KeyI":H.actions.internal.togglePictureInPicture(),gt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.1,In.SeekAction.DOUBLE_TAP),gt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.2,In.SeekAction.DOUBLE_TAP),gt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.3,In.SeekAction.DOUBLE_TAP),gt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.4,In.SeekAction.DOUBLE_TAP),gt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.5,In.SeekAction.DOUBLE_TAP),gt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.6,In.SeekAction.DOUBLE_TAP),gt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.7,In.SeekAction.DOUBLE_TAP),gt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.8,In.SeekAction.DOUBLE_TAP),gt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.9,In.SeekAction.DOUBLE_TAP),gt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(0,In.SeekAction.DOUBLE_TAP),gt();break;case"Slash":{Oe.shiftKey&&B.features.hotKeyMapModal&&(e.showKeyMap(),gt());break}case"KeyN":Oe.shiftKey&&I()&&(H.actions.internal.nextVideoClick(),gt());break;case"KeyP":Oe.shiftKey&&O()&&(H.actions.internal.prevVideoClick(),gt());break;case"ShiftLeft":case"ShiftRight":gt();break;case"Tab":case"Escape":case"Enter":break;default:(0,b0.checkNever)(qe);break}return di},qt=Oe=>{let ut=Oe.code;if(Oe.ctrlKey||Oe.altKey||Oe.metaKey)return;let yt=d()===Js.PlaybackState.PLAYING||d()===Js.PlaybackState.PAUSED,ye=e.isAds&&(p()==="paused"||p()==="playing");if(yt||ye)switch(ut){case"ShiftLeft":case"ShiftRight":Fe=0;break;case"Space":Bt({type:"up"});break}},Et=j("aria_label_video_player"),ei=()=>{var Oe;return(Oe=n(Ge))==null?void 0:Oe.focus()},Wt=()=>n(Ge)===Yu(),Se=Oe=>Oe.type==="keydown"?Dt(Oe,!0):(Oe.type==="keyup"&&qt(Oe),!1);var xe=$2();xe.__keyup=qt,xe.__keydown=[b2,Dt];var ee=_(xe);_e(ee,()=>{var Oe;return(Oe=e.children)!=null?Oe:ce}),g(xe),at(xe,Oe=>N(Ge,Oe),()=>n(Ge)),D(()=>We(xe,"aria-label",Et)),b(t,xe);var Ce=U({focus:ei,isFocused:Wt,handleExternalKeyboardEvent:Se});return o(),Ce}dt(["keyup","keydown"]);var x2=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>'),w2={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: ${(Mt=n(a).audioCodec||"")!=null?Mt:""} ${n(a).audioLanguage?`(${n(a).audioLanguage})`:""}`)}),b(Se,ye)};V(ae,Se=>{(n(a).videoCodec||n(a).audioCodec)&&Se(Ae)})}var $e=P(ae,2);{var J=Se=>{var ye=Y$(),ee=P(_(ye),2),Ce=_(ee,!0);g(ee),g(ye),D(()=>fe(Ce,n(a).viewport)),b(Se,ye)};V($e,Se=>{n(a).viewport&&Se(J)})}var De=P($e,2);{var ue=Se=>{var ye=Z$(),ee=P(_(ye),2),Ce=_(ee,!0);g(ee),g(ye),D(()=>fe(Ce,n(a).videoSize)),b(Se,ye)};V(De,Se=>{n(a).videoSize&&Se(ue)})}var k=P(De,2);{var Ge=Se=>{var ye=X$(),ee=P(_(ye),2),Ce=_(ee,!0);g(ee),g(ye),D(()=>fe(Ce,n(a).cdn)),b(Se,ye)};V(k,Se=>{n(a).cdn&&Se(Ge)})}var Pe=P(k,2);{var j=Se=>{var ye=J$(),ee=P(_(ye),2),Ce=_(ee);g(ee),g(ye),D(()=>{var Le;return fe(Ce,`${(Le=n(a).volume)!=null?Le:""} %`)}),b(Se,ye)};V(Pe,Se=>{n(a).volume&&Se(j)})}var ie=P(Pe,2);{var Be=Se=>{var ye=e2(),ee=P(_(ye),2),Ce=_(ee);g(ee),g(ye),D(Le=>fe(Ce,`${Le!=null?Le:""} s`),[()=>n(a).position.toFixed(2)]),b(Se,ye)};V(ie,Se=>{n(a).position&&Se(Be)})}var Ze=P(ie,2);{var me=Se=>{var ye=t2(),ee=P(_(ye),2),Ce=_(ee);g(ee),g(ye),D(Le=>fe(Ce,`${Le!=null?Le:""} s`),[()=>n(a).buffer.toFixed(2)]),b(Se,ye)};V(Ze,Se=>{n(a).buffer&&Se(me)})}var te=P(Ze,2);{var Ie=Se=>{var ye=i2(),ee=P(_(ye),2),Ce=_(ee);g(ee),g(ye),D(Le=>fe(Ce,`${Le!=null?Le:""} s`),[()=>n(a).liveLatency.toFixed(2)]),b(Se,ye)};V(te,Se=>{n(a).liveLatency&&Se(Ie)})}var xe=P(te,2);{var He=Se=>{var ye=o2(),ee=P(_(ye),2),Ce=_(ee,!0);g(ee),g(ye),D(Le=>fe(Ce,Le),[()=>[{value:n(a).currentVideoSegmentLength,title:"Video:"},{value:n(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Le})=>Le).map(({value:Le,title:Mt})=>`${Mt} ${((Le!=null?Le:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Se,ye)};V(xe,Se=>{(n(a).currentVideoSegmentLength||n(a).currentAudioSegmentLength)&&Se(He)})}var Xe=P(xe,2),je=P(_(Xe),2),Ke=_(je);g(je),g(Xe);var Ye=P(Xe,2);{var Dt=Se=>{var ye=n2(),ee=P(_(ye),2);Xd(ee,{get values(){return n(T)}});var Ce=P(ee,2),Le=_(Ce);g(Ce),g(ye),D(Mt=>fe(Le,`${Mt!=null?Mt:""} Kbps`),[()=>n(a).speed.toFixed(2)]),b(Se,ye)};V(Ye,Se=>{n(a).speed&&Se(Dt)})}var rt=P(Ye,2);{var Bt=Se=>{var ye=r2(),ee=P(_(ye),2);Xd(ee,{get values(){return n(E)}});var Ce=P(ee,2),Le=_(Ce);g(Ce),g(ye),D(Mt=>fe(Le,`${Mt!=null?Mt:""} Kbps`),[()=>n(a).bitrate.toFixed(2)]),b(Se,ye)};V(rt,Se=>{n(a).bitrate&&Se(Bt)})}var qt=P(rt,2),Et=P(_(qt),2);Xd(Et,{get values(){return n(C)}});var Jt=P(Et,2),Wt=_(Jt,!0);g(Jt),g(qt),g(H),g(A),D(Se=>{var ye,ee;I=ne(A,1,"container svelte-lx3h69",null,I,Se),Qe(A,"aria-label",R),fe(Z,n(a).version),fe(Ke,`${(ye=n(v))!=null?ye:""} / ${(ee=n(f))!=null?ee:""} frames`),fe(Wt,n(p))},[()=>({"container-mobile":r()})]),b(t,A),U(),o()}ct(["click"]);var h0=require("@vkontakte/videoplayer-shared/es2018"),l2=(t,e)=>{t.stopPropagation(),e()()},d2=M('<div class="close svelte-1ome55p"></div>'),c2={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 Ts(t,e){F(e,!0),W(t,c2);let i=h(e,"onClick",3,h0.noop);var o=d2();o.__click=[l2,i],b(t,o),U()}ct(["click"]);var _0=require("@vkontakte/videoplayer-shared/es2018"),u2=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>'),p2={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 ec(t,e){F(e,!0),W(t,p2);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,_0.noop),r=5e3,s=Q(void 0),l,d,a=0,u;qe(()=>{i()&&Pt(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(u=(Date.now()-d)/r,u<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*u),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Ot(()=>{l=n(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),rn(()=>{f()});var p=u2(),y=_(p);at(y,w=>N(s,w),()=>n(s)),Te(2),g(p),b(t,p),U()}var f2=(t,e,i)=>{e(!1),i()},v2=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),m2={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 dv(t,e){F(e,!0),W(t,m2);let[i,o]=Oe(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=ge(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{r()&&(u(!1),p())},x=()=>{e.clickCloseIcon(),y()};Ot(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=Ue(),T=pe(C);{var E=R=>{var A=v2(),I=P(pe(A),2),O=_(I),H=_(O),B=_(H,!0);g(H);var z=P(H,2);Ts(z,{onClick:x}),g(O);var Z=P(O,2);Z.__click=[f2,u,v];var se=_(Z),q=_(se),de=_(q);let X;var ve=P(de,2);{var re=J=>{let De=m(()=>s()&&r());ec(J,{get isRunning(){return n(De)},onTimerEnded:w})};V(ve,J=>{r()&&J(re)})}g(q),g(se);var ae=P(se,2),Ae=_(ae),$e=_(Ae,!0);g(Ae),g(ae),g(Z),g(I),D((J,De)=>{fe(B,J),tt(q,`background-image: url('${e.thumb}')`),X=ne(de,1,"thumb-overlay svelte-jfbaax",null,X,De),fe($e,e.title)},[()=>Y("end_screen_next_video"),()=>({withOpacity:r()})]),b(R,A)};V(T,R=>{e.isHide||R(E)})}b(t,C),U(),o()}ct(["click"]);var Zs=require("@vkontakte/videoplayer-core/es2018"),b0=require("@vkontakte/videoplayer-shared/es2018"),kn=require("@vkontakte/videoplayer-statistics/es2018");var cv=(t,e)=>Math.min(+(t+e).toFixed(2),1),uv=(t,e)=>Math.max(+(t-e).toFixed(2),0),qu=(t,e,i)=>{let o=cv(e,i);e<1&&t.actions.internal.setVolume(o)},Qu=(t,e,i)=>{let o=uv(e,i);e>0&&t.actions.internal.setVolume(o)};var Ys=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function Gu(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var h2=(t,e)=>{e(t)},_2=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),b2={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function pv(t,e){var Le,Mt;F(e,!0),W(t,b2);let[i,o]=Oe(),r=()=>S(ve,"$disabledControls$",i),s=()=>S(Ie,"$isInteractiveTime$",i),l=()=>S(xe,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>S(Z,"$playbackState$",i),a=()=>S(j,"$isEnded$",i),u=()=>S(Ge,"$doubleForwardAvailable$",i),f=()=>S(k,"$doubleForwardOn$",i),v=()=>S(ie,"$overlayContainer$",i),p=()=>S(se,"$adPlaybackState",i),y=()=>S(q,"$positionExact$",i),w=()=>S(de,"$duration$",i),x=()=>S(me,"$isAudioAvailable$",i),C=()=>S(X,"$volume$",i),T=()=>S($e,"$availablePlaybackRates$",i),E=()=>S(Ae,"$currentPlaybackRate$",i),R=()=>S(re,"$muted$",i),A=()=>S(ae,"$currentSubtitle$",i),I=h(e,"nextButtonActive",3,!1),O=h(e,"prevButtonActive",3,!1),H=ge(),B=Rt(),z=H.getLogger().createComponentLog("KeyboardControls component"),Z=H.state.playbackState$,se=H.ads.playbackState,q=H.state.positionExact$,de=H.state.duration$,X=H.state.volume$,ve=H.ui.controls.disabledControls$,re=H.state.muted$,ae=H.state.currentSubtitle$,Ae=H.state.currentPlaybackRate$,$e=H.state.availablePlaybackRates$,J=H.ui.contextMenu.openedByHotKey$,De=H.ui.contextMenu.lastActiveElem$,ue=H.ui.contextMenu.visible$,k=H.ui.doubleForwardOn$,Ge=H.ui.doubleForwardAvailable$,Pe=H.ui.contextMenu.position$,j=H.state.isEnded$,ie=H.ui.overlayContainer$,Be=(Le=H.callbacks)==null?void 0:Le.onAudioDoesNotExistHint,Ze=(Mt=H.callbacks)==null?void 0:Mt.onAudioDisabledHint,me=H.state.isAudioAvailable$,te=H.state.isAudioDisabled,Ie=H.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:xe}=$o(),He=0,Xe=!0,je=Q(void 0),Ke=Ve=>(Ve!==Xe&&(Xe=Ve,He=0),He+=1,(B.controls.seekStepKeyboard+B.controls.seekStepKeyboard*He)/1e3),Ye=!0,Dt=({type:Ve,repeat:lt,disableDoubleForward:Tt})=>{let we=()=>{if(!r().has("PLAY_BUTTON"))if(s()&&l()&&xe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{H.actions.internal.togglePlay();let ze="PLAY";d()===Zs.PlaybackState.PAUSED?ze="PAUSE":a()&&(ze="REPLAY"),e.showHotKeyHelpers({type:ze})}},st=Ve==="down";if(!u()||Tt){st&&we(),Ye=!0;return}if(st)Ye=!1;else if(Ye)return;if(st){!lt&&e.startDoubleForwardActivationTimer();return}f()||we(),e.stopDoubleForward(),Ye=!0},rt=Ve=>{let lt=m0(v());Pe.set(lt),De.set(Ve.target),J.set(!0),ue.set(!0)},Bt=(Ve,lt=!1)=>{var bi,li;let Tt=Ve.target,we=(bi=Tt==null?void 0:Tt.getAttribute("role"))==null?void 0:bi.includes("menuitem"),st=Tt.classList.contains("btn"),ze=Ve.code;if(st&&ze==="Space")return!1;let ut=h1.has(ze);if(we&&ut)return!1;let Qt=!g1.has(ze);if(Ve.ctrlKey&&Qt||Ve.altKey&&Qt||Ve.metaKey)return!1;let _i=we&&ze==="Escape";_1.has(ze)||_i||e.hideContextMenu();let pi=d()===Zs.PlaybackState.PLAYING||d()===Zs.PlaybackState.PAUSED,yi=e.isAds&&(p()==="paused"||p()==="playing"),oo=!yi&&!r().has("TIMELINE"),no=Ve.shiftKey&&["Digit1","Numpad1"].includes(ze);if(!no&&!(pi||yi))return!1;z({message:`key down, code: ${ze}, isExternal = ${lt}`});let di=!1,gt=()=>{di=!0,lt||Ve.preventDefault()};if(no)return rt(Ve),gt(),!0;switch(ze){case"KeyJ":case"ArrowLeft":{if(!oo)break;if(Ve.ctrlKey||Ve.altKey){let $t=H.actions.internal.getPrevEpisode();H.actions.internal.seekToPrevEpisode($t),$t&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:$t.text}),gt()}else{let $t=Ve.shiftKey?Ke(!1):B.controls.seekStepKeyboard/1e3,fi=Math.max(y()-$t,0);y()>0&&(H.actions.internal.seekTime(fi,kn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:$t.toString()}),gt())}break}case"KeyL":case"ArrowRight":{if(!oo)break;if(Ve.ctrlKey||Ve.altKey){let $t=H.actions.internal.getNextEpisode();H.actions.internal.seekToNextEpisode($t),$t&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:$t.text}),gt()}else{let $t=Ve.shiftKey?Ke(!0):B.controls.seekStepKeyboard/1e3,fi=Math.min(y()+$t,w());Math.round(y())<Math.round(w())&&(H.actions.internal.seekTime(fi,kn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:$t.toString()}),gt())}break}case"ArrowUp":{if(Ys({isAudioDisabled:te,audioDisabledHintCallback:Ze,isAudioAvailable:x(),audioIsNotExistHintCallback:Be,isAds:e.isAds})){let $t=C(),fi=B.controls.volumeStepKeyboard,Yt=$t<=1;if(qu(H,$t,fi),Yt){let wt=Math.round(cv($t,fi)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:wt}})}}gt();break}case"ArrowDown":{if(Ys({isAudioDisabled:te,audioDisabledHintCallback:Ze,isAudioAvailable:x(),audioIsNotExistHintCallback:Be,isAds:e.isAds})){let $t=C(),fi=B.controls.volumeStepKeyboard,Yt=$t>=0;if(Qu(H,$t,fi),Yt){let wt=Math.round(uv($t,fi)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:wt}})}}gt();break}case"Comma":{if(Ve.shiftKey){if(!f()){H.actions.internal.decrementPlaybackRate();let $t=T().find(fi=>fi.value===E());e.showHotKeyHelpers({type:"RATE_DOWN",text:$t==null?void 0:$t.displayValue}),gt()}}else{if(yi||d()!==Zs.PlaybackState.PAUSED)break;let $t=Math.max(y()-B.controls.seekStepFrame/1e3,0);y()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime($t,kn.SeekAction.DOUBLE_TAP),gt())}break}case"Period":{if(Ve.shiftKey){if(!f()){H.actions.internal.incrementPlaybackRate();let $t=T().find(fi=>fi.value===E());e.showHotKeyHelpers({type:"RATE_UP",text:$t==null?void 0:$t.displayValue}),gt()}}else{if(yi||d()!==Zs.PlaybackState.PAUSED)break;let $t=Math.min(y()+B.controls.seekStepFrame/1e3,w());y()<w()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime($t,kn.SeekAction.DOUBLE_TAP),gt())}break}case"KeyK":case"Space":Dt({type:"down",repeat:Ve.repeat,disableDoubleForward:"KeyK"===ze}),gt();break;case"KeyM":{Ys({isAudioDisabled:te,audioDisabledHintCallback:Ze,isAudioAvailable:x(),audioIsNotExistHintCallback:Be,isAds:e.isAds})&&(e.showHotKeyHelpers({type:R()?"VOLUME":"MUTE"}),H.actions.internal.toggleMuted()),gt();break}case"KeyF":e.toggleFullscreen(),gt();break;case"KeyC":H.actions.internal.toggleSubtitle(),A().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(li=A())==null?void 0:li.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),gt();break;case"KeyI":H.actions.internal.togglePictureInPicture(),gt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.1,kn.SeekAction.DOUBLE_TAP),gt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.2,kn.SeekAction.DOUBLE_TAP),gt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.3,kn.SeekAction.DOUBLE_TAP),gt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.4,kn.SeekAction.DOUBLE_TAP),gt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.5,kn.SeekAction.DOUBLE_TAP),gt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.6,kn.SeekAction.DOUBLE_TAP),gt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.7,kn.SeekAction.DOUBLE_TAP),gt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.8,kn.SeekAction.DOUBLE_TAP),gt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.9,kn.SeekAction.DOUBLE_TAP),gt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(0,kn.SeekAction.DOUBLE_TAP),gt();break;case"Slash":{Ve.shiftKey&&B.features.hotKeyMapModal&&(e.showKeyMap(),gt());break}case"KeyN":Ve.shiftKey&&I()&&(H.actions.internal.nextVideoClick(),gt());break;case"KeyP":Ve.shiftKey&&O()&&(H.actions.internal.prevVideoClick(),gt());break;case"ShiftLeft":case"ShiftRight":gt();break;case"Tab":case"Escape":case"Enter":break;default:(0,b0.checkNever)(ze);break}return di},qt=Ve=>{let lt=Ve.code;if(Ve.ctrlKey||Ve.altKey||Ve.metaKey)return;let Tt=d()===Zs.PlaybackState.PLAYING||d()===Zs.PlaybackState.PAUSED,we=e.isAds&&(p()==="paused"||p()==="playing");if(Tt||we)switch(lt){case"ShiftLeft":case"ShiftRight":He=0;break;case"Space":Dt({type:"up"});break}},Et=Y("aria_label_video_player"),Jt=()=>{var Ve;return(Ve=n(je))==null?void 0:Ve.focus()},Wt=()=>n(je)===Gu(),Se=Ve=>Ve.type==="keydown"?Bt(Ve,!0):(Ve.type==="keyup"&&qt(Ve),!1);var ye=_2();ye.__keyup=qt,ye.__keydown=[h2,Bt];var ee=_(ye);_e(ee,()=>{var Ve;return(Ve=e.children)!=null?Ve:ce}),g(ye),at(ye,Ve=>N(je,Ve),()=>n(je)),D(()=>Qe(ye,"aria-label",Et)),b(t,ye);var Ce=U({focus:Jt,isFocused:Wt,handleExternalKeyboardEvent:Se});return o(),Ce}ct(["keyup","keydown"]);var $2=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>'),y2={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.`,double_forward_label:"2x",preview_trac
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 Da(t,e){W(t,w2);let i=h(e,"style",3,"");var o=x2();D(()=>Je(o,i())),b(t,o)}var S2=Ee('<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 fv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=S2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var Ba=require("@vkontakte/videoplayer-shared/es2018"),C2=t=>{t.stopPropagation()},T2=M("<button><!></button>"),E2={hash:"svelte-7jez3e",code:`button.btn.svelte-7jez3e {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;
153
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function Oa(t,e){W(t,y2);let i=h(e,"style",3,"");var o=$2();D(()=>tt(o,i())),b(t,o)}var x2=Ee('<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 fv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=x2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var Da=require("@vkontakte/videoplayer-shared/es2018"),w2=t=>{t.stopPropagation()},S2=M("<button><!></button>"),C2={hash:"svelte-7jez3e",code:`button.btn.svelte-7jez3e {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;
154
154
  /**
155
155
  * \u0412 \u0441\u0430\u0444\u0430\u0440\u0438 \u043F\u0440\u0438 \u0445\u043E\u0432\u0435\u0440\u0435 \u043F\u043E\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u043F\u0430\u0441\u0438\u0442\u0438, \u0432\u0438\u0434\u0438\u043C\u043E, \u0441\u0430\u0444\u0430\u0440\u0438 \u043A\u0440\u0438\u0432\u043E \u0432\u044B\u043D\u043E\u0441\u0438\u0442 \u044D\u0442\u043E \u0432 \u043E\u0442\u0434\u0435\u043B\u044C\u043D\u044B\u0439 \u0441\u043B\u043E\u0439
156
156
  * \u0438\u0437 \u0437\u0430 \u044D\u0442\u043E\u0433\u043E \u043C\u043E\u0436\u0435\u0442 \u043E\u0431\u0440\u0435\u0437\u0430\u0442\u044C\u0441\u044F \u0448\u0438\u043B\u0434\u0438\u043A \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0432\u044B\u043B\u0430\u0437\u0438\u0435\u0442 \u0437\u0430 \u043F\u0440\u0435\u0434\u0435\u043B\u044B \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430.
@@ -162,27 +162,27 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
162
162
  /* mobile */
163
163
  /* container mobile */button.btn-m.svelte-7jez3e {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}button.btn-m--play.svelte-7jez3e {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-7jez3e svg {transform:scale(2);}button.btn-m--prev.svelte-7jez3e,
164
164
  button.btn-m--next.svelte-7jez3e {position:absolute;width:50px;height:50px;}button.btn-m--prev.svelte-7jez3e {right:calc(100% + 35px);}button.btn-m--next.svelte-7jez3e {left:calc(100% + 35px);}button.btn.svelte-7jez3e:disabled {cursor:default;
165
- /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}button.btn.svelte-7jez3e:not(.btn-full-opacity):disabled {opacity:0.4;}button.btn.svelte-7jez3e:not(:disabled):hover {opacity:0.8;}button.pr-0.svelte-7jez3e {padding-right:0;}button.pl-0.svelte-7jez3e {padding-left:0;}`};function zt(t,e){F(e,!0),W(t,E2);let i=h(e,"className",3,""),o=h(e,"style",3,""),r=h(e,"disabled",3,void 0),s=h(e,"testId",3,void 0),l=h(e,"ariaHidden",3,void 0),d=h(e,"ariaLabel",3,void 0),a=h(e,"ref",15,void 0),u=h(e,"ariaKeyShortCut",3,void 0),f=h(e,"ariaExpanded",3,void 0),v=h(e,"tabIndex",3,0),p=h(e,"click",3,Ba.noop),y=h(e,"focus",3,Ba.noop),w=h(e,"blur",3,Ba.noop),x=m(()=>p()===Ba.noop?null:A=>{A.stopPropagation(),p()(A)}),C=m(()=>y()===Ba.noop?null:A=>{A.preventDefault(),y()()}),T=m(()=>w()===Ba.noop?null:A=>{A.preventDefault(),w()()});var E=T2();E.__pointerdown=[C2],E.__click=function(...A){var I;(I=n(x))==null||I.apply(this,A)};var R=_(E);_e(R,()=>{var A;return(A=e.children)!=null?A:ce}),g(E),at(E,A=>a(A),()=>a()),D(()=>{var A,I,O,H,B,z,Z,ae;ne(E,1,`btn ${(A=i())!=null?A:""}`,"svelte-7jez3e"),Je(E,o()||null),E.disabled=(I=r())!=null?I:null,We(E,"aria-hidden",(O=l())!=null?O:null),We(E,"aria-label",(H=d())!=null?H:null),We(E,"aria-keyshortcuts",(B=u())!=null?B:null),We(E,"aria-expanded",(z=f())!=null?z:null),We(E,"data-testid",(Z=s())!=null?Z:null),We(E,"tabindex",v()),We(E,"role",e.role),We(E,"aria-checked",(ae=e.areaChecked)!=null?ae:null)}),Ct("focus",E,function(...A){var I;(I=n(C))==null||I.apply(this,A)}),Ct("blur",E,function(...A){var I;(I=n(T))==null||I.apply(this,A)}),b(t,E),U()}dt(["pointerdown","click"]);var I2=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),k2=M('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),A2={hash:"svelte-ijitjb",code:".modal-overlay.svelte-ijitjb {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-ijitjb {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-ijitjb {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-ijitjb {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-ijitjb {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-ijitjb {margin:-8px -4px 0 0;}"};function vv(t,e){F(e,!0),W(t,A2);let i=h(e,"showHeader",3,!0),o=h(e,"showCloseCross",3,!0),r=j("hotkey_map_modal_close_btn_text");var s=k2(),l=_(s),d=_(l);{var a=p=>{var y=I2(),w=_(y),x=_(w,!0);g(w);var C=P(w,2);{var T=E=>{zt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(R,A)=>{fv(R,{})},$$slots:{default:!0}})};V(C,E=>{o()&&E(T)})}g(y),D(()=>ve(x,e.title)),b(p,y)};V(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),v=_(f);_e(v,()=>{var p;return(p=e.children)!=null?p:ce}),g(f),g(u),g(l),g(s),b(t,s),U()}var P2=new Set(["BR"]),$0=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;P2.has(l)||(r=s.parentElement)==null||r.removeChild(s)}return e.innerHTML};var M2=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>'),L2=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>'),V2=M('<div class="hot-key-map svelte-quklnq"></div>'),R2={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
165
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}button.btn.svelte-7jez3e:not(.btn-full-opacity):disabled {opacity:0.4;}button.btn.svelte-7jez3e:not(:disabled):hover {opacity:0.8;}button.pr-0.svelte-7jez3e {padding-right:0;}button.pl-0.svelte-7jez3e {padding-left:0;}`};function zt(t,e){F(e,!0),W(t,C2);let i=h(e,"className",3,""),o=h(e,"style",3,""),r=h(e,"disabled",3,void 0),s=h(e,"testId",3,void 0),l=h(e,"ariaHidden",3,void 0),d=h(e,"ariaLabel",3,void 0),a=h(e,"ref",15,void 0),u=h(e,"ariaKeyShortCut",3,void 0),f=h(e,"ariaExpanded",3,void 0),v=h(e,"tabIndex",3,0),p=h(e,"click",3,Da.noop),y=h(e,"focus",3,Da.noop),w=h(e,"blur",3,Da.noop),x=m(()=>p()===Da.noop?null:A=>{A.stopPropagation(),p()(A)}),C=m(()=>y()===Da.noop?null:A=>{A.preventDefault(),y()()}),T=m(()=>w()===Da.noop?null:A=>{A.preventDefault(),w()()});var E=S2();E.__pointerdown=[w2],E.__click=function(...A){var I;(I=n(x))==null||I.apply(this,A)};var R=_(E);_e(R,()=>{var A;return(A=e.children)!=null?A:ce}),g(E),at(E,A=>a(A),()=>a()),D(()=>{var A,I,O,H,B,z,Z,se;ne(E,1,`btn ${(A=i())!=null?A:""}`,"svelte-7jez3e"),tt(E,o()||null),E.disabled=(I=r())!=null?I:null,Qe(E,"aria-hidden",(O=l())!=null?O:null),Qe(E,"aria-label",(H=d())!=null?H:null),Qe(E,"aria-keyshortcuts",(B=u())!=null?B:null),Qe(E,"aria-expanded",(z=f())!=null?z:null),Qe(E,"data-testid",(Z=s())!=null?Z:null),Qe(E,"tabindex",v()),Qe(E,"role",e.role),Qe(E,"aria-checked",(se=e.areaChecked)!=null?se:null)}),xt("focus",E,function(...A){var I;(I=n(C))==null||I.apply(this,A)}),xt("blur",E,function(...A){var I;(I=n(T))==null||I.apply(this,A)}),b(t,E),U()}ct(["pointerdown","click"]);var T2=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),E2=M('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),I2={hash:"svelte-ijitjb",code:".modal-overlay.svelte-ijitjb {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-ijitjb {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-ijitjb {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-ijitjb {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-ijitjb {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-ijitjb {margin:-8px -4px 0 0;}"};function vv(t,e){F(e,!0),W(t,I2);let i=h(e,"showHeader",3,!0),o=h(e,"showCloseCross",3,!0),r=Y("hotkey_map_modal_close_btn_text");var s=E2(),l=_(s),d=_(l);{var a=p=>{var y=T2(),w=_(y),x=_(w,!0);g(w);var C=P(w,2);{var T=E=>{zt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(R,A)=>{fv(R,{})},$$slots:{default:!0}})};V(C,E=>{o()&&E(T)})}g(y),D(()=>fe(x,e.title)),b(p,y)};V(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),v=_(f);_e(v,()=>{var p;return(p=e.children)!=null?p:ce}),g(f),g(u),g(l),g(s),b(t,s),U()}var k2=new Set(["BR"]),$0=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;k2.has(l)||(r=s.parentElement)==null||r.removeChild(s)}return e.innerHTML};var A2=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>'),P2=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>'),M2=M('<div class="hot-key-map svelte-quklnq"></div>'),L2={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
166
166
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
167
- .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function mv(t,e){F(e,!1),W(t,R2);let[i,o]=De(),r=()=>S(l,"$data",i),s=he(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};jo(),vv(t,{get title(){return r().title},onClose:a,children:(u,f)=>{var v=V2();Ci(v,5,()=>r().groups,({title:p,items:y})=>p,(p,y)=>{let w=()=>n(y).title,x=()=>n(y).items;var C=L2(),T=_(C),E=_(T,!0);g(T);var R=P(T,2);Ci(R,5,x,({description:A,value:I})=>I,(A,I)=>{let O=()=>n(I).description,H=()=>n(I).value;var B=M2(),z=_(B),Z=_(z);Vd(Z,()=>$0(O())),g(z);var ae=P(z,2),q=_(ae,!0);g(ae),g(B),D(()=>ve(q,H())),b(A,B)}),g(R),g(C),D(()=>ve(E,w())),b(p,C)}),g(v),b(u,v)},$$slots:{default:!0}}),U(),o()}var gm=require("@vkontakte/videoplayer-shared/es2018");var qa=require("@vkontakte/videoplayer-core/es2018");var uN=require("@vkontakte/videoplayer-shared/es2018");var N2=M('<div class="pillow svelte-1oe0j8n"><!></div>'),O2={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 gv(t,e){W(t,O2);var i=N2(),o=_(i);_e(o,()=>{var r;return(r=e.children)!=null?r:ce}),g(i),b(t,i)}var Wl=require("@vkontakte/videoplayer-shared/es2018");var D2=Ee('<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 hv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=D2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var B2=Ee('<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 _v(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=B2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var H2=Ee('<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 bv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=H2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var F2=Ee('<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 ic(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=F2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var U2=Ee('<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 oc(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=U2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var Zu=t=>{switch(t){case Wl.VideoQuality.Q_720P:return bv;case Wl.VideoQuality.Q_1080P:return ic;case Wl.VideoQuality.Q_1440P:return oc;case Wl.VideoQuality.Q_2160P:return hv;case Wl.VideoQuality.Q_4320P:return _v}};var z2=Ee('<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 $v(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=z2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var W2=Ee('<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 yv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=W2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var K2=M('<div aria-hidden="true"><!> <!></div>'),q2={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 nc(t,e){F(e,!0),W(t,q2);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=m(()=>Zu(o())),s=m(()=>!!n(r)&&[ic,oc].includes(n(r)));var l=He(),d=pe(l);{var a=f=>{$v(f,{})},u=f=>{var v=K2();let p;var y=_(v);{var w=T=>{gv(T,{children:(E,R)=>{var A=He(),I=pe(A);Mi(I,()=>n(r),(O,H)=>{H(O,{})}),b(E,A)},$$slots:{default:!0}})};V(y,T=>{n(r)&&T(w)})}var x=P(y,2);let C=m(()=>n(r)?"settings-icon--labeled":"settings-icon");yv(x,{get"data-testid"(){return n(C)},fill:"var(--btn-color, #fff)"}),g(v),D(T=>p=ne(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:n(s)})]),b(f,v)};V(d,f=>{i()?f(a):f(u,!1)})}b(t,l),U()}var Q2=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),G2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Kl(t,e){F(e,!0),W(t,G2);let[i,o]=De(),r=()=>S(u,"$settingsMenuVisible",i),s=()=>S(p,"$isMobile",i),l=()=>S(a,"$currentQuality",i),d=he(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,y=d.ui.t,w=Q(void 0);ze(()=>{n(w)&&Pt(()=>{e.ref$.set(n(w))})});let x=y("aria_label_settings");async function C(E){let R=Zs(E);r()?v():f(R,Ao)}let T=m(()=>r()?"opened":"");zt(t,{get className(){return n(T)},testId:"btn-settings",click:C,get ariaLabel(){return x},get ariaExpanded(){return r()},get ref(){return n(w)},set ref(E){N(w,E,!0)},children:(E,R)=>{var A=Q2(),I=_(A);nc(I,{get isMobile(){return s()},get currentQuality(){return l()}}),g(A),b(E,A)},$$slots:{default:!0}}),U(),o()}var j2=Ee('<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 xv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=j2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var Y2=Ee('<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 rc(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function wv(t,e){F(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=he().ui.t,s=m(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));zt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return ds.KeyC},role:"button",children:(l,d)=>{var a=He(),u=pe(a);{var f=p=>{xv(p,{})},v=p=>{rc(p,{})};V(u,p=>{i()?p(f):p(v,!1)})}b(l,a)},$$slots:{default:!0}}),U()}var Z2=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),X2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),J2={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 sc(t,e){F(e,!0),W(t,J2);let i=h(e,"isMobile",3,!1),o=h(e,"isHidden",3,!1),r=h(e,"showDuration",3,!0),s=h(e,"ref",15),l=Rt(),d=se(!1),a=m(()=>Yo(e.duration)),u=m(()=>Yo(e.position));var f=X2();let v;var p=_(f),y=_(p,!0);g(p);var w=P(p,2);{var x=C=>{var T=Z2(),E=_(T,!0);g(T),D(()=>ve(E,n(a))),b(C,T)};V(w,C=>{r()&&C(x)})}g(f),Cs(f,()=>Dl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),at(f,C=>s(C),()=>s()),D(C=>{v=ne(f,1,"time svelte-sz9er7",null,v,C),ve(y,n(u))},[()=>({mobile:i()})]),b(t,f),U()}var lc=require("@vkontakte/videoplayer-shared/es2018");var ey=Ee('<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>'),ty={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),
167
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function mv(t,e){F(e,!1),W(t,L2);let[i,o]=Oe(),r=()=>S(l,"$data",i),s=ge(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Uo(),vv(t,{get title(){return r().title},onClose:a,children:(u,f)=>{var v=M2();Ci(v,5,()=>r().groups,({title:p,items:y})=>p,(p,y)=>{let w=()=>n(y).title,x=()=>n(y).items;var C=P2(),T=_(C),E=_(T,!0);g(T);var R=P(T,2);Ci(R,5,x,({description:A,value:I})=>I,(A,I)=>{let O=()=>n(I).description,H=()=>n(I).value;var B=A2(),z=_(B),Z=_(z);Ld(Z,()=>$0(O())),g(z);var se=P(z,2),q=_(se,!0);g(se),g(B),D(()=>fe(q,H())),b(A,B)}),g(R),g(C),D(()=>fe(E,w())),b(p,C)}),g(v),b(u,v)},$$slots:{default:!0}}),U(),o()}var gm=require("@vkontakte/videoplayer-shared/es2018");var Ka=require("@vkontakte/videoplayer-core/es2018");var cN=require("@vkontakte/videoplayer-shared/es2018");var V2=M('<div class="pillow svelte-1oe0j8n"><!></div>'),R2={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 gv(t,e){W(t,R2);var i=V2(),o=_(i);_e(o,()=>{var r;return(r=e.children)!=null?r:ce}),g(i),b(t,i)}var zl=require("@vkontakte/videoplayer-shared/es2018");var N2=Ee('<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 hv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=N2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var O2=Ee('<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 _v(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=O2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var D2=Ee('<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 bv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=D2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var B2=Ee('<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 tc(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=B2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var H2=Ee('<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 ic(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=H2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var ju=t=>{switch(t){case zl.VideoQuality.Q_720P:return bv;case zl.VideoQuality.Q_1080P:return tc;case zl.VideoQuality.Q_1440P:return ic;case zl.VideoQuality.Q_2160P:return hv;case zl.VideoQuality.Q_4320P:return _v}};var F2=Ee('<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 $v(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=F2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var U2=Ee('<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 yv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=U2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var z2=M('<div aria-hidden="true"><!> <!></div>'),W2={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 oc(t,e){F(e,!0),W(t,W2);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=m(()=>ju(o())),s=m(()=>!!n(r)&&[tc,ic].includes(n(r)));var l=Ue(),d=pe(l);{var a=f=>{$v(f,{})},u=f=>{var v=z2();let p;var y=_(v);{var w=T=>{gv(T,{children:(E,R)=>{var A=Ue(),I=pe(A);Mi(I,()=>n(r),(O,H)=>{H(O,{})}),b(E,A)},$$slots:{default:!0}})};V(y,T=>{n(r)&&T(w)})}var x=P(y,2);let C=m(()=>n(r)?"settings-icon--labeled":"settings-icon");yv(x,{get"data-testid"(){return n(C)},fill:"var(--btn-color, #fff)"}),g(v),D(T=>p=ne(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:n(s)})]),b(f,v)};V(d,f=>{i()?f(a):f(u,!1)})}b(t,l),U()}var K2=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),q2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Wl(t,e){F(e,!0),W(t,q2);let[i,o]=Oe(),r=()=>S(u,"$settingsMenuVisible",i),s=()=>S(p,"$isMobile",i),l=()=>S(a,"$currentQuality",i),d=ge(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,y=d.ui.t,w=Q(void 0);qe(()=>{n(w)&&Pt(()=>{e.ref$.set(n(w))})});let x=y("aria_label_settings");async function C(E){let R=js(E);r()?v():f(R,go)}let T=m(()=>r()?"opened":"");zt(t,{get className(){return n(T)},testId:"btn-settings",click:C,get ariaLabel(){return x},get ariaExpanded(){return r()},get ref(){return n(w)},set ref(E){N(w,E,!0)},children:(E,R)=>{var A=K2(),I=_(A);oc(I,{get isMobile(){return s()},get currentQuality(){return l()}}),g(A),b(E,A)},$$slots:{default:!0}}),U(),o()}var Q2=Ee('<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 xv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Q2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var G2=Ee('<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 nc(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=G2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function wv(t,e){F(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=ge().ui.t,s=m(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));zt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return ls.KeyC},role:"button",children:(l,d)=>{var a=Ue(),u=pe(a);{var f=p=>{xv(p,{})},v=p=>{nc(p,{})};V(u,p=>{i()?p(f):p(v,!1)})}b(l,a)},$$slots:{default:!0}}),U()}var j2=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),Y2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),Z2={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 rc(t,e){F(e,!0),W(t,Z2);let i=h(e,"isMobile",3,!1),o=h(e,"isHidden",3,!1),r=h(e,"showDuration",3,!0),s=h(e,"ref",15),l=Rt(),d=le(!1),a=m(()=>zo(e.duration)),u=m(()=>zo(e.position));var f=Y2();let v;var p=_(f),y=_(p,!0);g(p);var w=P(p,2);{var x=C=>{var T=j2(),E=_(T,!0);g(T),D(()=>fe(E,n(a))),b(C,T)};V(w,C=>{r()&&C(x)})}g(f),ws(f,()=>Ol(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),at(f,C=>s(C),()=>s()),D(C=>{v=ne(f,1,"time svelte-sz9er7",null,v,C),fe(y,n(u))},[()=>({mobile:i()})]),b(t,f),U()}var ac=require("@vkontakte/videoplayer-shared/es2018");var X2=Ee('<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>'),J2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
168
168
  .icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
169
- .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function ea(t,e){W(t,ty);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=m(()=>r(i(),o()));var l=ey();D(()=>{var d;We(l,"data-value",n(s)),We(l,"data-testid",`volume-${(d=n(s))!=null?d:""}-icon`)}),b(t,l)}var Lo=require("@vkontakte/videoplayer-shared/es2018");var Xu=require("@vkontakte/videoplayer-shared/es2018");var y0=require("@vkontakte/videoplayer-shared/es2018");var iy=M('<div class="overlay"><!></div>');function Sv(t,e){F(e,!0);let[i,o]=De(),r=()=>S(l,"$overlayContainer$",i),l=he().ui.overlayContainer$,d=Q(void 0),a=p=>{!p||!n(d)||!p.contains(n(d))||p.removeChild(n(d))},u=p=>{!p||!n(d)||p.contains(n(d))||p.appendChild(n(d))};ze(()=>{u(r())}),Ot(()=>(u(r()),()=>a(r())));var f=iy(),v=_(f);_e(v,()=>{var p;return(p=e.children)!=null?p:ce}),g(f),at(f,p=>N(d,p),()=>n(d)),b(t,f),U(),o()}var oy=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),ny=M("<div><!></div> <!>",1),ry={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 Ha(t,e){F(e,!0),W(t,ry);let[i,o]=De(),r=()=>S(Z,"$overlayContainer$",i),s=()=>S(z,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),a=h(e,"active",15,!1),u=h(e,"translateX",3,0),f=h(e,"translateY",3,0),v=h(e,"isFullWidthWrapper",3,!1),p=h(e,"maxTooltipWidth",3,void 0),y=h(e,"placement",3,"top"),w=h(e,"onVisibilityChange",3,y0.noop),x=5,C=Q(void 0),T=Q(void 0),E,R=Q(0),A=Q(0),I=Q(0),O=Q(0),H=Rt(),B=he(),z=B.ui.playerSize,Z=B.ui.overlayContainer$;ze(()=>{Pt(()=>{w()(a())})});let ae=B.getLogger().createComponentLog("Tooltip component"),q=()=>{if(!r()||!n(T)||!n(C))return;N(A,x);let J=r().getBoundingClientRect(),Ie=n(C).getBoundingClientRect(),ge=Ie.width,Fe=n(T).clientWidth,Xe=s().width,Ge=(ge-Fe)/2,ct=Ie.left+u()-J.left,et=ct+Ge,Bt=Ie.top+f()-J.top,rt=Fe/2-x,Dt=et<8,qt=et+Fe>Xe-8;Dt&&(et=8,rt=ct+Ie.width/2-2.5*x),qt&&(et=Xe-8-Fe,rt=Ie.left-J.left+Ie.width/2-et-x),N(I,et,!0),N(O,Bt),N(R,rt,!0)},de=()=>{!r()||!n(T)||!n(C)||N(A,-x)},X=()=>{if(!r()||!n(T)||!n(C))return;N(R,x);let J=r().getBoundingClientRect(),Ie=n(C).getBoundingClientRect(),ge=Ie.height,Fe=n(T).clientHeight,Xe=(ge-Fe)/2+Fe,Ge=Ie.left+u()-J.left-n(T).clientWidth,ct=2,et=Ge-x;et<8&&(et=8);let rt=Ie.top+f()-J.top+Xe,Dt=ct-Xe/2,qt=ct-x;N(I,et,!0),N(O,rt),N(A,Dt),N(R,qt)},fe=()=>{!r()||!n(T)||!n(C)||N(R,-x)},re=()=>{switch(y()){case"top":q();break;case"bottom":de();break;case"left":X();break;default:fe()}},le=()=>{try{if(!r()||!n(C))return;re(),a(!0)}catch(J){ae({message:String(J)})}},Me=()=>{a(!1)},we=()=>{n(T)&&(E||(E=window.setTimeout(le,H.controls.hideTimeoutTooltips)),a()&&le())},te=()=>{Me(),window.clearTimeout(E),E=void 0},Ne=(J,Ie,ge)=>{let Fe="";switch(y()){case"top":Fe=`transform: translate(${J}px, ${Ie}px);`;break;case"bottom":Fe=`transform: translate(${J}px, ${Ie}px); top: auto; bottom: 100%;`;break;case"left":Fe=`transform: translate(${J}px, ${Ie}px); left: 0; right: auto;`;break;default:Fe=`transform: translate(${J}px, ${Ie}px);`}return Fe+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Fe+=` opacity: ${ge?1:0}; visibility: ${ge?"visible":"hidden"}`,Fe},ue=(J,Ie)=>{let ge="";switch(y()){case"top":ge=`transform: translate(${J}px, ${Ie}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":ge=`transform: translate(${J}px, ${Ie}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":ge=`transform: translate(${J}px, ${Ie}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:ge=`transform: translate(${J}px, ${Ie}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return ge},k=m(()=>Ne(n(I),n(O),a())),Ke=m(()=>ue(n(R),n(A)));Ot(re),an(()=>window.clearTimeout(E));var Ve=ny(),Y=pe(Ve);let oe;Y.__mousemove=we,Y.__mousedown=te,Y.__mouseup=function(...J){var Ie;(Ie=e.disableMouseupTooltipShow?void 0:we)==null||Ie.apply(this,J)};var Be=_(Y);_e(Be,()=>{var J;return(J=e.children)!=null?J:ce}),g(Y),at(Y,J=>N(C,J),()=>n(C));var Ze=P(Y,2);{var me=J=>{Sv(J,{children:(Ie,ge)=>{var Fe=oy(),Xe=_(Fe),Ge=_(Xe,!0);g(Xe);var ct=P(Xe,2);g(Fe),at(Fe,et=>N(T,et),()=>n(T)),D(()=>{Je(Fe,n(k)),ve(Ge,d()),Je(ct,n(Ke))}),b(Ie,Fe)},$$slots:{default:!0}})};V(Ze,J=>{d()&&!l()&&J(me)})}D(J=>oe=ne(Y,1,"tooltip-wrapper svelte-hxlyne",null,oe,J),[()=>({"full-width":v()})]),Ct("mouseenter",Y,we),Ct("mouseleave",Y,te),b(t,Ve),U(),o()}dt(["mousemove","mousedown","mouseup"]);var x0=t=>{t.stopPropagation()},sy=M("<div><!></div>"),ay={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 Mo(t,e){F(e,!0),W(t,ay);let[i,o]=De(),r=()=>S(u,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=he(),d=$o(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=h(e,"className",3,""),p=h(e,"disabled",3,!1),y=h(e,"hasTooltip",3,!0),w=h(e,"ref",15,void 0),x=h(e,"width",15,void 0),C=h(e,"isFullWidthTooltip",3,!0),T=h(e,"tooltipContent",3,""),E=h(e,"tooltipActive",3,!1),R=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=h(e,"isAriaHidden",3,!1),O=h(e,"onTooltipVisibilityChange",3,Xu.noop),H=h(e,"initialTranslateXPx",3,0),B=h(e,"initialTranslateYPx",19,()=>-18),z=h(e,"mouseEnter",3,Xu.noop),Z=h(e,"mouseLeave",3,Xu.noop),ae=m(()=>p()?r()?f("tooltip_disabled_when_graph_on"):A():T());var q=sy();q.__pointerdown=[x0],q.__click=[x0];var de=_(q);{var X=re=>{Ha(re,{get content(){return n(ae)},get translateX(){return H()},get translateY(){return B()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return R()},get onVisibilityChange(){return O()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(le,Me)=>{var we=He(),te=pe(we);_e(te,()=>{var Ne;return(Ne=e.children)!=null?Ne:ce}),b(le,we)},$$slots:{default:!0}})},fe=re=>{var le=He(),Me=pe(le);_e(Me,()=>{var we;return(we=e.children)!=null?we:ce}),b(re,le)};V(de,re=>{y()&&n(ae)&&!s()?re(X):re(fe,!1)})}g(q),at(q,re=>w(re),()=>w()),D(()=>{var re;ne(q,1,`btn-container ${(re=v())!=null?re:""}`,"svelte-p9r045"),We(q,"aria-hidden",I()||null)}),Ct("mouseenter",q,function(...re){var le;(le=z())==null||le.apply(this,re)}),Ct("mouseleave",q,function(...re){var le;(le=Z())==null||le.apply(this,re)}),En(q,"clientWidth",x),b(t,q),U(),o()}dt(["pointerdown","click"]);var ly=Ee('<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 ac(t,e){"use strict";var i=ly(),o=_(i),r=P(o);g(i),D(()=>{We(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),We(o,"fill-opacity",e.completed?1:.24),We(r,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var dy=M("<div><!></div>"),cy={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 Cv(t,e){F(e,!0),W(t,cy);let o=he().ui.t,r=Q(0),s=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Mo(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=dy();let u;var f=_(a);let v=m(()=>!!e.videoEpisode.completed);ac(f,{get completed(){return n(v)}}),g(a),D(p=>{u=ne(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),Je(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),En(a,"clientWidth",p=>N(r,p)),b(l,a)},$$slots:{default:!0}}),U()}var uy=M('<div><div class="video-episode-inner svelte-1uc247w"><div class="video-episode-loaded svelte-1uc247w"></div> <div></div></div></div>'),py=M('<div class="video-episodes-wrap svelte-1uc247w"></div>'),fy={hash:"svelte-1uc247w",code:`.video-episodes-wrap.svelte-1uc247w {position:absolute;width:100%;height:100%;}.video-episode.svelte-1uc247w {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1uc247w:first-child {padding-left:0;}.video-episode.svelte-1uc247w:last-child {padding-right:0;}.video-episode.svelte-1uc247w:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1uc247w,
169
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Xs(t,e){W(t,J2);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=m(()=>r(i(),o()));var l=X2();D(()=>{var d;Qe(l,"data-value",n(s)),Qe(l,"data-testid",`volume-${(d=n(s))!=null?d:""}-icon`)}),b(t,l)}var Po=require("@vkontakte/videoplayer-shared/es2018");var Yu=require("@vkontakte/videoplayer-shared/es2018");var y0=require("@vkontakte/videoplayer-shared/es2018");var ey=M('<div class="overlay"><!></div>');function Sv(t,e){F(e,!0);let[i,o]=Oe(),r=()=>S(l,"$overlayContainer$",i),l=ge().ui.overlayContainer$,d=Q(void 0),a=p=>{!p||!n(d)||!p.contains(n(d))||p.removeChild(n(d))},u=p=>{!p||!n(d)||p.contains(n(d))||p.appendChild(n(d))};qe(()=>{u(r())}),Ot(()=>(u(r()),()=>a(r())));var f=ey(),v=_(f);_e(v,()=>{var p;return(p=e.children)!=null?p:ce}),g(f),at(f,p=>N(d,p),()=>n(d)),b(t,f),U(),o()}var ty=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),iy=M("<div><!></div> <!>",1),oy={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 Ba(t,e){F(e,!0),W(t,oy);let[i,o]=Oe(),r=()=>S(Z,"$overlayContainer$",i),s=()=>S(z,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),a=h(e,"active",15,!1),u=h(e,"translateX",3,0),f=h(e,"translateY",3,0),v=h(e,"isFullWidthWrapper",3,!1),p=h(e,"maxTooltipWidth",3,void 0),y=h(e,"placement",3,"top"),w=h(e,"onVisibilityChange",3,y0.noop),x=5,C=Q(void 0),T=Q(void 0),E,R=Q(0),A=Q(0),I=Q(0),O=Q(0),H=Rt(),B=ge(),z=B.ui.playerSize,Z=B.ui.overlayContainer$;qe(()=>{Pt(()=>{w()(a())})});let se=B.getLogger().createComponentLog("Tooltip component"),q=()=>{if(!r()||!n(T)||!n(C))return;N(A,x);let te=r().getBoundingClientRect(),Ie=n(C).getBoundingClientRect(),xe=Ie.width,He=n(T).clientWidth,Xe=s().width,je=(xe-He)/2,Ke=Ie.left+u()-te.left,Ye=Ke+je,Dt=Ie.top+f()-te.top,rt=He/2-x,Bt=Ye<8,qt=Ye+He>Xe-8;Bt&&(Ye=8,rt=Ke+Ie.width/2-2.5*x),qt&&(Ye=Xe-8-He,rt=Ie.left-te.left+Ie.width/2-Ye-x),N(I,Ye,!0),N(O,Dt),N(R,rt,!0)},de=()=>{!r()||!n(T)||!n(C)||N(A,-x)},X=()=>{if(!r()||!n(T)||!n(C))return;N(R,x);let te=r().getBoundingClientRect(),Ie=n(C).getBoundingClientRect(),xe=Ie.height,He=n(T).clientHeight,Xe=(xe-He)/2+He,je=Ie.left+u()-te.left-n(T).clientWidth,Ke=2,Ye=je-x;Ye<8&&(Ye=8);let rt=Ie.top+f()-te.top+Xe,Bt=Ke-Xe/2,qt=Ke-x;N(I,Ye,!0),N(O,rt),N(A,Bt),N(R,qt)},ve=()=>{!r()||!n(T)||!n(C)||N(R,-x)},re=()=>{switch(y()){case"top":q();break;case"bottom":de();break;case"left":X();break;default:ve()}},ae=()=>{try{if(!r()||!n(C))return;re(),a(!0)}catch(te){se({message:String(te)})}},Ae=()=>{a(!1)},$e=()=>{n(T)&&(E||(E=window.setTimeout(ae,H.controls.hideTimeoutTooltips)),a()&&ae())},J=()=>{Ae(),window.clearTimeout(E),E=void 0},De=(te,Ie,xe)=>{let He="";switch(y()){case"top":He=`transform: translate(${te}px, ${Ie}px);`;break;case"bottom":He=`transform: translate(${te}px, ${Ie}px); top: auto; bottom: 100%;`;break;case"left":He=`transform: translate(${te}px, ${Ie}px); left: 0; right: auto;`;break;default:He=`transform: translate(${te}px, ${Ie}px);`}return He+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,He+=` opacity: ${xe?1:0}; visibility: ${xe?"visible":"hidden"}`,He},ue=(te,Ie)=>{let xe="";switch(y()){case"top":xe=`transform: translate(${te}px, ${Ie}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":xe=`transform: translate(${te}px, ${Ie}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":xe=`transform: translate(${te}px, ${Ie}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:xe=`transform: translate(${te}px, ${Ie}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return xe},k=m(()=>De(n(I),n(O),a())),Ge=m(()=>ue(n(R),n(A)));Ot(re),rn(()=>window.clearTimeout(E));var Pe=iy(),j=pe(Pe);let ie;j.__mousemove=$e,j.__mousedown=J,j.__mouseup=function(...te){var Ie;(Ie=e.disableMouseupTooltipShow?void 0:$e)==null||Ie.apply(this,te)};var Be=_(j);_e(Be,()=>{var te;return(te=e.children)!=null?te:ce}),g(j),at(j,te=>N(C,te),()=>n(C));var Ze=P(j,2);{var me=te=>{Sv(te,{children:(Ie,xe)=>{var He=ty(),Xe=_(He),je=_(Xe,!0);g(Xe);var Ke=P(Xe,2);g(He),at(He,Ye=>N(T,Ye),()=>n(T)),D(()=>{tt(He,n(k)),fe(je,d()),tt(Ke,n(Ge))}),b(Ie,He)},$$slots:{default:!0}})};V(Ze,te=>{d()&&!l()&&te(me)})}D(te=>ie=ne(j,1,"tooltip-wrapper svelte-hxlyne",null,ie,te),[()=>({"full-width":v()})]),xt("mouseenter",j,$e),xt("mouseleave",j,J),b(t,Pe),U(),o()}ct(["mousemove","mousedown","mouseup"]);var x0=t=>{t.stopPropagation()},ny=M("<div><!></div>"),ry={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 Ao(t,e){F(e,!0),W(t,ry);let[i,o]=Oe(),r=()=>S(u,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=ge(),d=$o(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=h(e,"className",3,""),p=h(e,"disabled",3,!1),y=h(e,"hasTooltip",3,!0),w=h(e,"ref",15,void 0),x=h(e,"width",15,void 0),C=h(e,"isFullWidthTooltip",3,!0),T=h(e,"tooltipContent",3,""),E=h(e,"tooltipActive",3,!1),R=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=h(e,"isAriaHidden",3,!1),O=h(e,"onTooltipVisibilityChange",3,Yu.noop),H=h(e,"initialTranslateXPx",3,0),B=h(e,"initialTranslateYPx",19,()=>-18),z=h(e,"mouseEnter",3,Yu.noop),Z=h(e,"mouseLeave",3,Yu.noop),se=m(()=>p()?r()?f("tooltip_disabled_when_graph_on"):A():T());var q=ny();q.__pointerdown=[x0],q.__click=[x0];var de=_(q);{var X=re=>{Ba(re,{get content(){return n(se)},get translateX(){return H()},get translateY(){return B()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return R()},get onVisibilityChange(){return O()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(ae,Ae)=>{var $e=Ue(),J=pe($e);_e(J,()=>{var De;return(De=e.children)!=null?De:ce}),b(ae,$e)},$$slots:{default:!0}})},ve=re=>{var ae=Ue(),Ae=pe(ae);_e(Ae,()=>{var $e;return($e=e.children)!=null?$e:ce}),b(re,ae)};V(de,re=>{y()&&n(se)&&!s()?re(X):re(ve,!1)})}g(q),at(q,re=>w(re),()=>w()),D(()=>{var re;ne(q,1,`btn-container ${(re=v())!=null?re:""}`,"svelte-p9r045"),Qe(q,"aria-hidden",I()||null)}),xt("mouseenter",q,function(...re){var ae;(ae=z())==null||ae.apply(this,re)}),xt("mouseleave",q,function(...re){var ae;(ae=Z())==null||ae.apply(this,re)}),In(q,"clientWidth",x),b(t,q),U(),o()}ct(["pointerdown","click"]);var sy=Ee('<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 sc(t,e){"use strict";var i=sy(),o=_(i),r=P(o);g(i),D(()=>{Qe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Qe(o,"fill-opacity",e.completed?1:.24),Qe(r,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var ay=M("<div><!></div>"),ly={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 Cv(t,e){F(e,!0),W(t,ly);let o=ge().ui.t,r=Q(0),s=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Ao(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=ay();let u;var f=_(a);let v=m(()=>!!e.videoEpisode.completed);sc(f,{get completed(){return n(v)}}),g(a),D(p=>{u=ne(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),tt(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),In(a,"clientWidth",p=>N(r,p)),b(l,a)},$$slots:{default:!0}}),U()}var dy=M('<div><div class="video-episode-inner svelte-1uc247w"><div class="video-episode-loaded svelte-1uc247w"></div> <div></div></div></div>'),cy=M('<div class="video-episodes-wrap svelte-1uc247w"></div>'),uy={hash:"svelte-1uc247w",code:`.video-episodes-wrap.svelte-1uc247w {position:absolute;width:100%;height:100%;}.video-episode.svelte-1uc247w {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1uc247w:first-child {padding-left:0;}.video-episode.svelte-1uc247w:last-child {padding-right:0;}.video-episode.svelte-1uc247w:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1uc247w,
170
170
  .video-episode-loaded.svelte-1uc247w,
171
171
  .video-episode-filled.svelte-1uc247w {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1uc247w {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode.svelte-1uc247w:first-child .video-episode-inner:where(.svelte-1uc247w),
172
- .video-episode.svelte-1uc247w:last-child .video-episode-inner:where(.svelte-1uc247w) {width:calc(100% - var(--slider-video-episode-gap));}.video-episode-loaded.svelte-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Tv(t,e){W(t,fy);let i=h(e,"videoEpisodes",19,()=>[]);var o=py();Ci(o,21,i,r=>r.from,(r,s)=>{var l=uy();let d;var a=_(l),u=_(a),f=P(u,2);let v;g(a),g(l),D((p,y)=>{d=ne(l,1,"video-episode svelte-1uc247w",null,d,p),Je(l,`left: ${n(s).from}%; width: ${n(s).width}%`),Je(u,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),v=ne(f,1,"video-episode-filled svelte-1uc247w",null,v,y),Je(f,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),g(o),b(t,o)}function vy(t,e,i,o,r,s,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=s(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function my(t,e,i,o,r,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);r()(a,u,n(s).width,t),n(l)&&d()(a)}function gy(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let s=o(t.clientX,t.clientY);r()(s,t)}function hy(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function _y(t,e,i,o,r,s){let l=e(t.clientX,t.clientY);i()&&o()(l),N(r,!1),s()(l)}var by=M("<div></div>"),$y=M('<div class="bars svelte-12bsb23"><div class="loaded svelte-12bsb23"></div> <div></div></div>'),yy=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),xy={hash:"svelte-12bsb23",code:`.interactive-icons.svelte-12bsb23 {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-12bsb23 {top:-10px;}.slider.svelte-12bsb23 {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-12bsb23 {cursor:default;}.slider.svelte-12bsb23:before {
172
+ .video-episode.svelte-1uc247w:last-child .video-episode-inner:where(.svelte-1uc247w) {width:calc(100% - var(--slider-video-episode-gap));}.video-episode-loaded.svelte-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Tv(t,e){W(t,uy);let i=h(e,"videoEpisodes",19,()=>[]);var o=cy();Ci(o,21,i,r=>r.from,(r,s)=>{var l=dy();let d;var a=_(l),u=_(a),f=P(u,2);let v;g(a),g(l),D((p,y)=>{d=ne(l,1,"video-episode svelte-1uc247w",null,d,p),tt(l,`left: ${n(s).from}%; width: ${n(s).width}%`),tt(u,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),v=ne(f,1,"video-episode-filled svelte-1uc247w",null,v,y),tt(f,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),g(o),b(t,o)}function py(t,e,i,o,r,s,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=s(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function fy(t,e,i,o,r,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);r()(a,u,n(s).width,t),n(l)&&d()(a)}function vy(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let s=o(t.clientX,t.clientY);r()(s,t)}function my(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function gy(t,e,i,o,r,s){let l=e(t.clientX,t.clientY);i()&&o()(l),N(r,!1),s()(l)}var hy=M("<div></div>"),_y=M('<div class="bars svelte-12bsb23"><div class="loaded svelte-12bsb23"></div> <div></div></div>'),by=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),$y={hash:"svelte-12bsb23",code:`.interactive-icons.svelte-12bsb23 {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-12bsb23 {top:-10px;}.slider.svelte-12bsb23 {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-12bsb23 {cursor:default;}.slider.svelte-12bsb23:before {
173
173
  /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-12bsb23 {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-12bsb23 {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-12bsb23 {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-12bsb23,
174
174
  .slider.square.svelte-12bsb23 > .bars:where(.svelte-12bsb23),
175
175
  .slider.square.svelte-12bsb23 .loaded:where(.svelte-12bsb23),
176
176
  .slider.square.svelte-12bsb23 .filled:where(.svelte-12bsb23) {border-radius:unset;}.filled.active-live.svelte-12bsb23 {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-12bsb23 {background-color:var(--slider-filled-ads);}.handleWrap.svelte-12bsb23 {position:absolute;left:-100%;width:100%;}.handle.svelte-12bsb23 {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-12bsb23 {background-color:var(--timeline-slider-handle-active-live-bg);}.handle-always-visible.svelte-12bsb23 .handle:where(.svelte-12bsb23),
177
177
  .slider.svelte-12bsb23:hover .handle:where(.svelte-12bsb23),
178
- .slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {transform:scale(1.3);}.slider-vertical.svelte-12bsb23 {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-12bsb23 {cursor:default;opacity:0.4;}`};function Fa(t,e){F(e,!0),W(t,xy);let i=h(e,"ref",15,void 0),o=h(e,"className",3,""),r=h(e,"testId",3,void 0),s=h(e,"isHidden",3,!1),l=h(e,"isVertical",3,!1),d=h(e,"isActiveLive",3,!1),a=h(e,"isMobile",3,!1),u=h(e,"squareBorders",3,!1),f=h(e,"videoEpisodes",19,()=>[]),v=h(e,"withWheelHandler",3,!1),p=h(e,"isInteractive",3,!1),y=h(e,"disabled",3,!1),w=h(e,"hideHandel",3,!1),x=h(e,"onPointerDown",3,Lo.noop),C=h(e,"onHandleMove",3,Lo.noop),T=h(e,"onPointerUp",3,Lo.noop),E=h(e,"onPointerEnter",3,Lo.noop),R=h(e,"onPointerMove",3,Lo.noop),A=h(e,"onPointerLeave",3,Lo.noop),I=h(e,"onMouseEnter",3,Lo.noop),O=h(e,"onMouseLeave",3,Lo.noop),H=h(e,"onWheelUp",3,Lo.noop),B=h(e,"onWheelDown",3,Lo.noop),z=h(e,"onWheelLeft",3,Lo.noop),Z=h(e,"onWheelRight",3,Lo.noop),ae=h(e,"onDisabledClick",3,Lo.noop),q=h(e,"loadedProgress",3,0),de=h(e,"filledProgress",3,0),X=h(e,"handleProgress",3,0),fe=h(e,"ariaLabel",3,""),re=h(e,"ariaValueMin",3,void 0),le=h(e,"ariaValueMax",3,void 0),Me=h(e,"ariaValueNow",3,void 0),we=h(e,"ariaValueText",3,""),te=h(e,"onContextMenu",3,Lo.noop),Ne=h(e,"handleAlwaysVisible",3,!1),ue=Rt(),k=Q(void 0),Ke=Q(!1),Ve=m(()=>{var Ce;return(Ce=le())!=null?Ce:0}),Y=m(()=>{var Ce;return(0,Lo.isNonNullable)(f())&&((Ce=f()[f().length-1])==null?void 0:Ce.time)<n(Ve)}),oe=m(()=>(0,Lo.isNonNullable)(f())&&f().length&&n(Y)&&n(Ve)?Xe(q()*100,de()*100):[]);function Be(Ce){if(Ce.preventDefault(),i()&&N(k,i().getBoundingClientRect(),!0),y())return;let Pe=ge(Ce.clientX,Ce.clientY),It=Fe(Ce.clientX);E()(Pe,It,n(k).width)}function Ze(Ce){Ce.preventDefault(),!y()&&A()()}function me(){I()()}function J(){O()()}function Ie(Ce){y()||v()&&(Ce.preventDefault(),Ce.deltaY<0?H()():Ce.deltaY>0?B()():Ce.deltaX>0?Z()():z()())}function ge(Ce,Pe){return l()?Math.max(0,Math.min(1,(n(k).height-(Pe-n(k).top))/n(k).height)):Math.min(Math.max(Ce-n(k).x,0),n(k).width)/n(k).width}function Fe(Ce){return Math.min(Math.max(Ce-n(k).x,0),n(k).width)}function Xe(Ce,Pe){let It=ue.features.episodesClustering&&!p()?ue.episodeMinWidthPc:0,Oe=[],ut=f()[0].time/n(Ve)*100,yt=0,ye=0;for(let lt=1;lt<f().length;lt++)yt=f()[lt].time/n(Ve)*100,yt-ut>It&&(Oe.push({from:ut,width:Math.max(0,yt-ut),loadedWidth:Math.max(0,Math.min(yt,Ce)-ut),filledWidth:Math.max(0,Math.min(yt,Pe)-ut),interactive:f()[lt-1].interactive,completed:f()[lt-1].completed}),ut=f()[lt].time/n(Ve)*100,ye++);let ot={from:ut,width:Math.max(0,100-ut),loadedWidth:Math.max(0,Math.min(Ce,100)-ut),filledWidth:Math.max(0,Math.min(Pe,100)-ut),interactive:f()[ye].interactive,completed:f()[ye].completed};100-ut<It?(ye-=1,Oe[ye].width+=100-ut,Oe[ye].loadedWidth+=Math.max(0,Math.min(Ce,100)-ut),Oe[ye].filledWidth+=Math.max(0,Math.min(Pe,100)-ut)):Oe[ye]=ot;let qe=f()[0].time;if(qe!==0){let lt=qe/n(Ve)*100;Oe.unshift({from:0,width:lt,loadedWidth:Math.min(lt,Ce),filledWidth:Math.min(lt,Pe)})}return Oe}function Ge(Ce){return Math.max(0,Math.min(100,Ce*100))}var ct=yy(),et=pe(ct);{var Bt=Ce=>{var Pe=by();let It;Ci(Pe,21,()=>n(oe),Oe=>Oe.from,(Oe,ut)=>{var yt=He(),ye=pe(yt);{var ot=qe=>{Cv(qe,{get videoEpisode(){return n(ut)},get disabled(){return y()}})};V(ye,qe=>{n(ut).interactive&&qe(ot)})}b(Oe,yt)}),g(Pe),D(Oe=>It=ne(Pe,1,"interactive-icons svelte-12bsb23",null,It,Oe),[()=>({mobile:a(),hidden:a()&&!n(Ke)})]),b(Ce,Pe)};V(et,Ce=>{p()&&Ce(Bt)})}var rt=P(et,2);let Dt;rt.__pointerdown=[vy,i,k,y,Ke,ge,x],rt.__pointermove=[my,y,ge,Fe,R,k,Ke,C],rt.__pointerup=[gy,y,Ke,ge,T],rt.__click=[hy,y,ae,ge],rt.__contextmenu=[_y,ge,y,ae,Ke,te];var qt=_(rt);{var Et=Ce=>{Tv(Ce,{get videoEpisodes(){return n(oe)},get disabled(){return y()},get isMobile(){return a()}})},ei=Ce=>{var Pe=$y(),It=_(Pe),Oe=P(It,2);let ut;g(Pe),D((yt,ye,ot)=>{Je(It,yt),ut=ne(Oe,1,"filled svelte-12bsb23",null,ut,ye),Je(Oe,ot)},[()=>`transform: translateX(${Ge(q())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Ge(de())}%);`]),b(Ce,Pe)};V(qt,Ce=>{n(oe).length?Ce(Et):Ce(ei,!1)})}var Wt=P(qt,2);let Se;var xe=_(Wt);let ee;g(Wt),g(rt),at(rt,Ce=>i(Ce),()=>i()),D((Ce,Pe,It,Oe)=>{var ut,yt;Dt=ne(rt,1,`slider ${(ut=o())!=null?ut:""}`,"svelte-12bsb23",Dt,Ce),We(rt,"aria-label",fe()),We(rt,"aria-valuemin",re()),We(rt,"aria-valuemax",le()),We(rt,"aria-valuenow",Me()),We(rt,"aria-valuetext",we()),We(rt,"data-testid",(yt=r())!=null?yt:null),Se=ne(Wt,1,"handleWrap svelte-12bsb23",null,Se,Pe),Je(Wt,It),ee=ne(xe,1,"handle svelte-12bsb23",null,ee,Oe)},[()=>({disabled:y(),"slider-dragging":n(Ke),hidden:s(),"handle-always-visible":Ne(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${Ge(X())}%);`,()=>({"active-live":d()})]),Ct("pointerenter",rt,Be),Ct("pointerleave",rt,Ze),Ct("mouseenter",rt,me),Ct("mouseleave",rt,J),Ct("wheel",rt,Ie),b(t,ct),U()}dt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var io=(t,e)=>Ia[t]>=Ia[e],w0=(t,e)=>Ia[t]<Ia[e],ks=(t,e)=>Ia[t]<=Ia[e],S0=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Sy=M("<div><!></div>"),Cy=M("<div><!> <!></div>"),Ty={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 Ev(t,e){var J,Ie;F(e,!0),W(t,Ty);let[i,o]=De(),r=()=>S(E,"$isAudioAvailable$",i),s=()=>S(v,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(x,"$currentGridType$",i),a=he(),u=Rt(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,x=a.ui.currentGridType$,C=(J=a.callbacks)==null?void 0:J.onAudioDoesNotExistHint,T=(Ie=a.callbacks)==null?void 0:Ie.onAudioDisabledHint,E=a.state.isAudioAvailable$,R=a.state.isAudioDisabled,A=a.ui.t,I=Q(!1),O,H=m(()=>e.isAds||r()),B=m(()=>!n(H)||s()||l()===0),z=m(()=>ks(d(),"s")),Z=m(()=>n(z)?"":n(B)?!r()||R?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),ae=m(()=>n(B)?A("tooltip_volume"):A("tooltip_volume_muted")),q=m(()=>n(B)?0:l()),de=!1,X=m(()=>e.isAds?!1:R?!T:r()?!1:!C);function fe(ge){y(),p(ge)}function re(){Gu(a,l(),u.controls.volumeStepWheel)}function le(){ju(a,l(),u.controls.volumeStepWheel)}function Me(ge){p(ge)}function we(ge){p(ge),w()}function te(){de=!0}function Ne(){de=!1,Ke()}function ue(){clearTimeout(O),N(I,!0)}function k(){Ke()}function Ke(){O=window.setTimeout(()=>{de||N(I,!1)},u.controls.volumeBarTimeout)}function Ve(ge){ge.preventDefault(),ge.deltaY<0?re():ge.deltaY>0&&le()}var Y=Cy();let oe;var Be=_(Y);Ha(Be,{get content(){return n(Z)},translateY:-18,children:(ge,Fe)=>{let Xe=m(()=>n(z)?"btn-volume-vertical":"btn-volume-horizontal");zt(ge,{className:"btn-full-opacity",get disabled(){return n(X)},get testId(){return n(Xe)},get ariaLabel(){return n(ae)},get click(){return e.click},get ariaKeyShortCut(){return ds.KeyM},role:"button",children:(Ge,ct)=>{ea(Ge,{get volume(){return l()},get muted(){return n(B)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ze=P(Be,2);{var me=ge=>{var Fe=Sy();let Xe;var Ge=_(Fe);let ct=m(()=>n(z)?"volumeBar-slider-vertical":""),et=m(()=>n(z)&&!n(I)),Bt=m(()=>n(z)?te:lc.noop),rt=m(()=>n(z)?Ne:lc.noop),Dt=m(()=>Math.round(n(q)*100)),qt=m(()=>`${Math.round(n(q)*100)}%`),Et=m(()=>n(z)?"volume-slider-vertical":"volume-slider");Fa(Ge,{get className(){return n(ct)},get isHidden(){return n(et)},get isVertical(){return n(z)},withWheelHandler:!0,onWheelUp:re,onWheelDown:le,onPointerDown:fe,onHandleMove:Me,onPointerUp:we,get onPointerEnter(){return n(Bt)},get onPointerLeave(){return n(rt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Dt)},get ariaValueText(){return n(qt)},get filledProgress(){return n(q)},get handleProgress(){return n(q)},get testId(){return n(Et)}}),g(Fe),D(ei=>Xe=ne(Fe,1,"volumeBar svelte-1auih1j",null,Xe,ei),[()=>({"volumeBar-vertical":n(z)})]),b(ge,Fe)};V(Ze,ge=>{n(H)&&ge(me)})}g(Y),D(ge=>oe=ne(Y,1,"volumeBar-container svelte-1auih1j",null,oe,ge),[()=>({vertical:n(z)})]),Ct("mouseenter",Y,function(...ge){var Fe;(Fe=n(z)?ue:lc.noop)==null||Fe.apply(this,ge)}),Ct("mouseleave",Y,function(...ge){var Fe;(Fe=n(z)?k:lc.noop)==null||Fe.apply(this,ge)}),Ct("wheel",Y,Ve),b(t,Y),U(),o()}var C0=require("@vkontakte/videoplayer-shared/es2018");var Ey=Ee('<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 Iv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var Iy={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
179
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function kv(t,e){W(t,Iy);let i=h(e,"isFullscreen",8,!1),o=xn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Iv(t,{get"data-testid"(){return n(o)},fill:"var(--btn-color, #fff)"})}function dc(t,e){F(e,!0);let i=h(e,"isFullscreen",3,!1),o=h(e,"click",3,C0.noop),r=he(),s=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=m(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));zt(t,{testId:"btn-fullscreen",get ariaLabel(){return n(d)},click:u=>{let f=Zs(u);s.set(f),o()()},get ariaKeyShortCut(){return ds.KeyF},role:"button",children:(u,f)=>{kv(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var ky=Ee('<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 Av(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=ky();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var Ay=Ee('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.261v15.474c0 .435.114.778.335.988l.002.002 9.178-8.728L.332.282C.075.532 0 .92 0 1.26"></path><path d="M.332.282.384.235c.34-.3.881-.326 1.482 0L12.623 6.04 10.018 8.52zm10.286 8.747 2.884 2.452-.532.288-.345.184-2.572-2.446-9.716 8.218c.336.34.9.378 1.529.044l11.104-6 .534-.286-.002-.002 2.725-1.472c1.03-.56 1.03-1.47 0-2.022l-2.77-1.495-.833-.452-.001.001.834.45.098.054z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.623 16.365a11.4 11.4 0 0 1-1.15 2.03q-.906 1.27-1.48 1.758-.885.8-1.901.823-.732.001-1.757-.412-1.029-.412-1.892-.411-.906 0-1.945.411-1.04.413-1.68.434-.975.041-1.946-.845-.62-.53-1.548-1.82-.995-1.376-1.637-3.195Q.001 13.173 0 11.33 0 9.218.93 7.69a5.4 5.4 0 0 1 1.946-1.934 5.3 5.3 0 0 1 2.63-.73q.774.002 2.036.465 1.26.466 1.614.467.267 0 1.79-.55 1.44-.508 2.433-.424 2.699.214 4.047 2.094-2.412 1.437-2.387 4.019.022 2.01 1.481 3.34.66.615 1.48.954a16 16 0 0 1-.377.973M13.499.42q0 1.576-1.168 2.939c-.94 1.079-2.075 1.702-3.307 1.604a3 3 0 0 1-.025-.398c0-1.008.446-2.087 1.24-2.97q.595-.67 1.51-1.114.915-.438 1.728-.481.023.21.022.42"></path></svg><path d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path></svg>');function Pv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(6),g(o),b(t,o)}var Py={hash:"svelte-e5e2xr",code:`svg [data-logo],
178
+ .slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {transform:scale(1.3);}.slider-vertical.svelte-12bsb23 {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-12bsb23 {cursor:default;opacity:0.4;}`};function Ha(t,e){F(e,!0),W(t,$y);let i=h(e,"ref",15,void 0),o=h(e,"className",3,""),r=h(e,"testId",3,void 0),s=h(e,"isHidden",3,!1),l=h(e,"isVertical",3,!1),d=h(e,"isActiveLive",3,!1),a=h(e,"isMobile",3,!1),u=h(e,"squareBorders",3,!1),f=h(e,"videoEpisodes",19,()=>[]),v=h(e,"withWheelHandler",3,!1),p=h(e,"isInteractive",3,!1),y=h(e,"disabled",3,!1),w=h(e,"hideHandel",3,!1),x=h(e,"onPointerDown",3,Po.noop),C=h(e,"onHandleMove",3,Po.noop),T=h(e,"onPointerUp",3,Po.noop),E=h(e,"onPointerEnter",3,Po.noop),R=h(e,"onPointerMove",3,Po.noop),A=h(e,"onPointerLeave",3,Po.noop),I=h(e,"onMouseEnter",3,Po.noop),O=h(e,"onMouseLeave",3,Po.noop),H=h(e,"onWheelUp",3,Po.noop),B=h(e,"onWheelDown",3,Po.noop),z=h(e,"onWheelLeft",3,Po.noop),Z=h(e,"onWheelRight",3,Po.noop),se=h(e,"onDisabledClick",3,Po.noop),q=h(e,"loadedProgress",3,0),de=h(e,"filledProgress",3,0),X=h(e,"handleProgress",3,0),ve=h(e,"ariaLabel",3,""),re=h(e,"ariaValueMin",3,void 0),ae=h(e,"ariaValueMax",3,void 0),Ae=h(e,"ariaValueNow",3,void 0),$e=h(e,"ariaValueText",3,""),J=h(e,"onContextMenu",3,Po.noop),De=h(e,"handleAlwaysVisible",3,!1),ue=Rt(),k=Q(void 0),Ge=Q(!1),Pe=m(()=>{var Ce;return(Ce=ae())!=null?Ce:0}),j=m(()=>{var Ce;return(0,Po.isNonNullable)(f())&&((Ce=f()[f().length-1])==null?void 0:Ce.time)<n(Pe)}),ie=m(()=>(0,Po.isNonNullable)(f())&&f().length&&n(j)&&n(Pe)?Xe(q()*100,de()*100):[]);function Be(Ce){if(Ce.preventDefault(),i()&&N(k,i().getBoundingClientRect(),!0),y())return;let Le=xe(Ce.clientX,Ce.clientY),Mt=He(Ce.clientX);E()(Le,Mt,n(k).width)}function Ze(Ce){Ce.preventDefault(),!y()&&A()()}function me(){I()()}function te(){O()()}function Ie(Ce){y()||v()&&(Ce.preventDefault(),Ce.deltaY<0?H()():Ce.deltaY>0?B()():Ce.deltaX>0?Z()():z()())}function xe(Ce,Le){return l()?Math.max(0,Math.min(1,(n(k).height-(Le-n(k).top))/n(k).height)):Math.min(Math.max(Ce-n(k).x,0),n(k).width)/n(k).width}function He(Ce){return Math.min(Math.max(Ce-n(k).x,0),n(k).width)}function Xe(Ce,Le){let Mt=ue.features.episodesClustering&&!p()?ue.episodeMinWidthPc:0,Ve=[],lt=f()[0].time/n(Pe)*100,Tt=0,we=0;for(let ut=1;ut<f().length;ut++)Tt=f()[ut].time/n(Pe)*100,Tt-lt>Mt&&(Ve.push({from:lt,width:Math.max(0,Tt-lt),loadedWidth:Math.max(0,Math.min(Tt,Ce)-lt),filledWidth:Math.max(0,Math.min(Tt,Le)-lt),interactive:f()[ut-1].interactive,completed:f()[ut-1].completed}),lt=f()[ut].time/n(Pe)*100,we++);let st={from:lt,width:Math.max(0,100-lt),loadedWidth:Math.max(0,Math.min(Ce,100)-lt),filledWidth:Math.max(0,Math.min(Le,100)-lt),interactive:f()[we].interactive,completed:f()[we].completed};100-lt<Mt?(we-=1,Ve[we].width+=100-lt,Ve[we].loadedWidth+=Math.max(0,Math.min(Ce,100)-lt),Ve[we].filledWidth+=Math.max(0,Math.min(Le,100)-lt)):Ve[we]=st;let ze=f()[0].time;if(ze!==0){let ut=ze/n(Pe)*100;Ve.unshift({from:0,width:ut,loadedWidth:Math.min(ut,Ce),filledWidth:Math.min(ut,Le)})}return Ve}function je(Ce){return Math.max(0,Math.min(100,Ce*100))}var Ke=by(),Ye=pe(Ke);{var Dt=Ce=>{var Le=hy();let Mt;Ci(Le,21,()=>n(ie),Ve=>Ve.from,(Ve,lt)=>{var Tt=Ue(),we=pe(Tt);{var st=ze=>{Cv(ze,{get videoEpisode(){return n(lt)},get disabled(){return y()}})};V(we,ze=>{n(lt).interactive&&ze(st)})}b(Ve,Tt)}),g(Le),D(Ve=>Mt=ne(Le,1,"interactive-icons svelte-12bsb23",null,Mt,Ve),[()=>({mobile:a(),hidden:a()&&!n(Ge)})]),b(Ce,Le)};V(Ye,Ce=>{p()&&Ce(Dt)})}var rt=P(Ye,2);let Bt;rt.__pointerdown=[py,i,k,y,Ge,xe,x],rt.__pointermove=[fy,y,xe,He,R,k,Ge,C],rt.__pointerup=[vy,y,Ge,xe,T],rt.__click=[my,y,se,xe],rt.__contextmenu=[gy,xe,y,se,Ge,J];var qt=_(rt);{var Et=Ce=>{Tv(Ce,{get videoEpisodes(){return n(ie)},get disabled(){return y()},get isMobile(){return a()}})},Jt=Ce=>{var Le=_y(),Mt=_(Le),Ve=P(Mt,2);let lt;g(Le),D((Tt,we,st)=>{tt(Mt,Tt),lt=ne(Ve,1,"filled svelte-12bsb23",null,lt,we),tt(Ve,st)},[()=>`transform: translateX(${je(q())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${je(de())}%);`]),b(Ce,Le)};V(qt,Ce=>{n(ie).length?Ce(Et):Ce(Jt,!1)})}var Wt=P(qt,2);let Se;var ye=_(Wt);let ee;g(Wt),g(rt),at(rt,Ce=>i(Ce),()=>i()),D((Ce,Le,Mt,Ve)=>{var lt,Tt;Bt=ne(rt,1,`slider ${(lt=o())!=null?lt:""}`,"svelte-12bsb23",Bt,Ce),Qe(rt,"aria-label",ve()),Qe(rt,"aria-valuemin",re()),Qe(rt,"aria-valuemax",ae()),Qe(rt,"aria-valuenow",Ae()),Qe(rt,"aria-valuetext",$e()),Qe(rt,"data-testid",(Tt=r())!=null?Tt:null),Se=ne(Wt,1,"handleWrap svelte-12bsb23",null,Se,Le),tt(Wt,Mt),ee=ne(ye,1,"handle svelte-12bsb23",null,ee,Ve)},[()=>({disabled:y(),"slider-dragging":n(Ge),hidden:s(),"handle-always-visible":De(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${je(X())}%);`,()=>({"active-live":d()})]),xt("pointerenter",rt,Be),xt("pointerleave",rt,Ze),xt("mouseenter",rt,me),xt("mouseleave",rt,te),xt("wheel",rt,Ie),b(t,Ke),U()}ct(["pointerdown","pointermove","pointerup","click","contextmenu"]);var eo=(t,e)=>Ea[t]>=Ea[e],w0=(t,e)=>Ea[t]<Ea[e],Es=(t,e)=>Ea[t]<=Ea[e],S0=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var xy=M("<div><!></div>"),wy=M("<div><!> <!></div>"),Sy={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 Ev(t,e){var te,Ie;F(e,!0),W(t,Sy);let[i,o]=Oe(),r=()=>S(E,"$isAudioAvailable$",i),s=()=>S(v,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(x,"$currentGridType$",i),a=ge(),u=Rt(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,x=a.ui.currentGridType$,C=(te=a.callbacks)==null?void 0:te.onAudioDoesNotExistHint,T=(Ie=a.callbacks)==null?void 0:Ie.onAudioDisabledHint,E=a.state.isAudioAvailable$,R=a.state.isAudioDisabled,A=a.ui.t,I=Q(!1),O,H=m(()=>e.isAds||r()),B=m(()=>!n(H)||s()||l()===0),z=m(()=>Es(d(),"s")),Z=m(()=>n(z)?"":n(B)?!r()||R?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),se=m(()=>n(B)?A("tooltip_volume"):A("tooltip_volume_muted")),q=m(()=>n(B)?0:l()),de=!1,X=m(()=>e.isAds?!1:R?!T:r()?!1:!C);function ve(xe){y(),p(xe)}function re(){qu(a,l(),u.controls.volumeStepWheel)}function ae(){Qu(a,l(),u.controls.volumeStepWheel)}function Ae(xe){p(xe)}function $e(xe){p(xe),w()}function J(){de=!0}function De(){de=!1,Ge()}function ue(){clearTimeout(O),N(I,!0)}function k(){Ge()}function Ge(){O=window.setTimeout(()=>{de||N(I,!1)},u.controls.volumeBarTimeout)}function Pe(xe){xe.preventDefault(),xe.deltaY<0?re():xe.deltaY>0&&ae()}var j=wy();let ie;var Be=_(j);Ba(Be,{get content(){return n(Z)},translateY:-18,children:(xe,He)=>{let Xe=m(()=>n(z)?"btn-volume-vertical":"btn-volume-horizontal");zt(xe,{className:"btn-full-opacity",get disabled(){return n(X)},get testId(){return n(Xe)},get ariaLabel(){return n(se)},get click(){return e.click},get ariaKeyShortCut(){return ls.KeyM},role:"button",children:(je,Ke)=>{Xs(je,{get volume(){return l()},get muted(){return n(B)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ze=P(Be,2);{var me=xe=>{var He=xy();let Xe;var je=_(He);let Ke=m(()=>n(z)?"volumeBar-slider-vertical":""),Ye=m(()=>n(z)&&!n(I)),Dt=m(()=>n(z)?J:ac.noop),rt=m(()=>n(z)?De:ac.noop),Bt=m(()=>Math.round(n(q)*100)),qt=m(()=>`${Math.round(n(q)*100)}%`),Et=m(()=>n(z)?"volume-slider-vertical":"volume-slider");Ha(je,{get className(){return n(Ke)},get isHidden(){return n(Ye)},get isVertical(){return n(z)},withWheelHandler:!0,onWheelUp:re,onWheelDown:ae,onPointerDown:ve,onHandleMove:Ae,onPointerUp:$e,get onPointerEnter(){return n(Dt)},get onPointerLeave(){return n(rt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Bt)},get ariaValueText(){return n(qt)},get filledProgress(){return n(q)},get handleProgress(){return n(q)},get testId(){return n(Et)}}),g(He),D(Jt=>Xe=ne(He,1,"volumeBar svelte-1auih1j",null,Xe,Jt),[()=>({"volumeBar-vertical":n(z)})]),b(xe,He)};V(Ze,xe=>{n(H)&&xe(me)})}g(j),D(xe=>ie=ne(j,1,"volumeBar-container svelte-1auih1j",null,ie,xe),[()=>({vertical:n(z)})]),xt("mouseenter",j,function(...xe){var He;(He=n(z)?ue:ac.noop)==null||He.apply(this,xe)}),xt("mouseleave",j,function(...xe){var He;(He=n(z)?k:ac.noop)==null||He.apply(this,xe)}),xt("wheel",j,Pe),b(t,j),U(),o()}var C0=require("@vkontakte/videoplayer-shared/es2018");var Cy=Ee('<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 Iv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var Ty={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
179
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function kv(t,e){W(t,Ty);let i=h(e,"isFullscreen",8,!1),o=wn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Iv(t,{get"data-testid"(){return n(o)},fill:"var(--btn-color, #fff)"})}function lc(t,e){F(e,!0);let i=h(e,"isFullscreen",3,!1),o=h(e,"click",3,C0.noop),r=ge(),s=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=m(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));zt(t,{testId:"btn-fullscreen",get ariaLabel(){return n(d)},click:u=>{let f=js(u);s.set(f),o()()},get ariaKeyShortCut(){return ls.KeyF},role:"button",children:(u,f)=>{kv(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var Ey=Ee('<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 Av(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var Iy=Ee('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.261v15.474c0 .435.114.778.335.988l.002.002 9.178-8.728L.332.282C.075.532 0 .92 0 1.26"></path><path d="M.332.282.384.235c.34-.3.881-.326 1.482 0L12.623 6.04 10.018 8.52zm10.286 8.747 2.884 2.452-.532.288-.345.184-2.572-2.446-9.716 8.218c.336.34.9.378 1.529.044l11.104-6 .534-.286-.002-.002 2.725-1.472c1.03-.56 1.03-1.47 0-2.022l-2.77-1.495-.833-.452-.001.001.834.45.098.054z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.623 16.365a11.4 11.4 0 0 1-1.15 2.03q-.906 1.27-1.48 1.758-.885.8-1.901.823-.732.001-1.757-.412-1.029-.412-1.892-.411-.906 0-1.945.411-1.04.413-1.68.434-.975.041-1.946-.845-.62-.53-1.548-1.82-.995-1.376-1.637-3.195Q.001 13.173 0 11.33 0 9.218.93 7.69a5.4 5.4 0 0 1 1.946-1.934 5.3 5.3 0 0 1 2.63-.73q.774.002 2.036.465 1.26.466 1.614.467.267 0 1.79-.55 1.44-.508 2.433-.424 2.699.214 4.047 2.094-2.412 1.437-2.387 4.019.022 2.01 1.481 3.34.66.615 1.48.954a16 16 0 0 1-.377.973M13.499.42q0 1.576-1.168 2.939c-.94 1.079-2.075 1.702-3.307 1.604a3 3 0 0 1-.025-.398c0-1.008.446-2.087 1.24-2.97q.595-.67 1.51-1.114.915-.438 1.728-.481.023.21.022.42"></path></svg><path d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path></svg>');function Pv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(6),g(o),b(t,o)}var ky={hash:"svelte-e5e2xr",code:`svg [data-logo],
180
180
  svg[data-testid="vk-video-logo-icon--short"] ._ru,
181
181
  svg[data-testid="vk-video-logo-icon--short"] ._en,
182
182
  svg[data-testid="vk-video-logo-icon"] ._en,
183
183
  svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}svg[data-logo="vk_video"] [data-logo="vk_video"],
184
184
  svg[data-logo="play_market"] [data-logo="play_market"],
185
- svg[data-logo="app_store"] [data-logo="app_store"] {visibility:visible;opacity:1;}`};function Mv(t,e){F(e,!0),W(t,Py);let i=h(e,"short",3,!1),o=h(e,"isCyrillic",3,!0),r=h(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",l=24,d=m(()=>!o()&&!i()?91:i()?l:95),a=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),u=m(()=>`0 0 ${n(d)} 24`);Pv(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(a)},get"data-logo"(){return r()}}),U()}function cc(t,e){F(e,!0);let[i,o]=De(),r=()=>S(y,"$isMobile",i),s=()=>S(p,"$currentGridType$",i),l=()=>S(x,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),a=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),f=Rt(),v=he(),p=v.ui.currentGridType$,y=v.ui.isMobile,w=v.ui.t,x=v.isCyrillicRelatedInterface$,C=m(()=>f.logoType!=="vk"),T=m(()=>n(C)?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),E=m(()=>(r()&&ks(s(),"m")||ks(s(),"l"))&&n(C)),R=()=>{var O,H;e.click(),(O=v.callbacks)!=null&&O.onLogoClicked?(H=v.callbacks)==null||H.onLogoClicked():u()&&window.open(u(),"_blank")},A=m(()=>!a()),I=m(()=>n(C)?"btn-vk-video-logo":"btn-vk-logo");zt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:R,get testId(){return n(I)},get ariaLabel(){return n(T)},get ref(){return d()},set ref(O){d(O)},children:(O,H)=>{var B=He(),z=pe(B);{var Z=q=>{Mv(q,{get logo(){return f.logoType},get short(){return n(E)},get isCyrillic(){return l()}})},ae=q=>{Av(q,{})};V(z,q=>{n(C)?q(Z):q(ae,!1)})}b(O,B)},$$slots:{default:!0}}),U(),o()}var E0=require("@vkontakte/videoplayer-core/es2018");var Lv=require("@vkontakte/videoplayer-core/es2018"),My=Ee('<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>'),Ly=Ee('<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>'),Vy={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) {
185
+ svg[data-logo="app_store"] [data-logo="app_store"] {visibility:visible;opacity:1;}`};function Mv(t,e){F(e,!0),W(t,ky);let i=h(e,"short",3,!1),o=h(e,"isCyrillic",3,!0),r=h(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",l=24,d=m(()=>!o()&&!i()?91:i()?l:95),a=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),u=m(()=>`0 0 ${n(d)} 24`);Pv(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(a)},get"data-logo"(){return r()}}),U()}function dc(t,e){F(e,!0);let[i,o]=Oe(),r=()=>S(y,"$isMobile",i),s=()=>S(p,"$currentGridType$",i),l=()=>S(x,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),a=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),f=Rt(),v=ge(),p=v.ui.currentGridType$,y=v.ui.isMobile,w=v.ui.t,x=v.isCyrillicRelatedInterface$,C=m(()=>f.logoType!=="vk"),T=m(()=>n(C)?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),E=m(()=>(r()&&Es(s(),"m")||Es(s(),"l"))&&n(C)),R=()=>{var O,H;e.click(),(O=v.callbacks)!=null&&O.onLogoClicked?(H=v.callbacks)==null||H.onLogoClicked():u()&&window.open(u(),"_blank")},A=m(()=>!a()),I=m(()=>n(C)?"btn-vk-video-logo":"btn-vk-logo");zt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:R,get testId(){return n(I)},get ariaLabel(){return n(T)},get ref(){return d()},set ref(O){d(O)},children:(O,H)=>{var B=Ue(),z=pe(B);{var Z=q=>{Mv(q,{get logo(){return f.logoType},get short(){return n(E)},get isCyrillic(){return l()}})},se=q=>{Av(q,{})};V(z,q=>{n(C)?q(Z):q(se,!1)})}b(O,B)},$$slots:{default:!0}}),U(),o()}var E0=require("@vkontakte/videoplayer-core/es2018");var Lv=require("@vkontakte/videoplayer-core/es2018"),Ay=Ee('<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>'),Py=Ee('<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>'),My={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
186
186
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
187
187
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
188
188
  animation-name: svelte-8z1bf5-wave3;}
@@ -230,7 +230,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
230
230
  100% {
231
231
  opacity: 1;
232
232
  }
233
- }`};function Vv(t,e){F(e,!0),W(t,Vy);let i=h(e,"isMobile",3,!1),o=m(()=>e.iconState===Lv.ChromecastState.CONNECTED),r=m(()=>e.iconState===Lv.ChromecastState.CONNECTING);var s=He(),l=pe(s);{var d=u=>{var f=My(),v=_(f),p=_(v),y=_(p);Te(),g(p);var w=P(p);Te(),g(v);var x=P(v),C=_(x),T=_(C);g(C),Te(),g(x),g(f),D(()=>{We(y,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),We(w,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),We(T,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,f)},a=u=>{var f=Ly();let v;var p=_(f),y=P(_(p),5);let w;g(p),g(f),D((x,C)=>{v=ne(f,0,"svelte-8z1bf5",null,v,x),w=ne(y,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:n(r)}),()=>({hidden:!n(o)})]),b(u,f)};V(l,u=>{i()?u(d):u(a,!1)})}b(t,s),U()}var I0=require("@vkontakte/videoplayer-shared/es2018");function uc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,I0.noop),l=he().ui.t,d=m(()=>e.state===E0.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));zt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{Vv(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var k0=require("@vkontakte/videoplayer-shared/es2018");var Ry=Ee('<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 Rv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(3),g(o),b(t,o)}var Ny=Ee('<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 Nv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var Ju=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Oy=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),Dy=M('<span class="text svelte-1yhs2ga"> </span>'),By=M('<span class="text count svelte-1yhs2ga"> </span>'),Hy=M("<!> <!>",1),Fy={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 pc(t,e){var X,fe,re;F(e,!0),W(t,Fy);let[i,o]=De(),r=()=>S(w,"$currentGridType$",i),s=()=>S(x,"$openedByKeyboard$",i),l=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),a=h(e,"position",3,0),u=h(e,"duration",3,0),f=h(e,"timeCodes",19,()=>[]),v=he(),p=(fe=(X=v.callbacks)==null?void 0:X.onEpisodeChanged)!=null?fe:k0.noop,y=!!((re=v.callbacks)!=null&&re.onEpisodeClicked),w=v.ui.currentGridType$,x=v.ui.episodes.openedByKeyboard$,C=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,R=Q(void 0),A=le=>{var we,te,Ne;if(!!((we=v.callbacks)!=null&&we.onEpisodeClicked)){let ue=Zs(le);x.set(ue),C.set(!0),(Ne=(te=v.callbacks)==null?void 0:te.onEpisodeClicked)==null||Ne.call(te,ue)}},I=Q(null),O=m(()=>a()/u());ze(()=>{var Me;let le=Ju(n(O),u(),f());le?((Me=n(I))==null?void 0:Me.time)!==le.time&&(p(le),N(I,le,!0)):N(I,null)});let H=m(()=>{var le;return((le=n(I))==null?void 0:le.text)||""}),B=m(()=>io(r(),"xl")?"FULL":io(r(),"m")&&w0(r(),"xl")?"COUNT":"SHORT"),z=m(()=>`${E("tooltip_episodes")}: ${n(H)}`),Z=async(le,Me,we)=>{await Ao(),(le==null?void 0:le.getAttribute("aria-expanded"))==="false"&&Me&&!we&&Pt(()=>{x.set(!1),le.focus()})};ze(()=>{Z(n(R),s(),l())});var ae=He(),q=pe(ae);{var de=le=>{let Me=m(()=>d()?"px-0":""),we=m(()=>!y);zt(le,{get className(){var te;return`w-max btn-full-opacity btn-jc-l ${(te=n(Me))!=null?te:""}`},testId:"btn-episodes",click:A,get disabled(){return n(we)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(R)},set ref(te){N(R,te,!0)},children:(te,Ne)=>{var ue=He(),k=pe(ue);{var Ke=Y=>{var oe=Oy(),Be=pe(oe),Ze=_(Be,!0);g(Be);var me=P(Be,2),J=_(me);Nv(J,{}),g(me),D(()=>ve(Ze,n(H))),b(Y,oe)},Ve=Y=>{var oe=Hy(),Be=pe(oe);Rv(Be,{});var Ze=P(Be,2);{var me=Ie=>{var ge=Dy(),Fe=_(ge,!0);g(ge),D(()=>ve(Fe,n(H))),b(Ie,ge)},J=(Ie,ge)=>{{var Fe=Xe=>{var Ge=By(),ct=_(Ge,!0);g(Ge),D(()=>ve(ct,f().length)),b(Xe,Ge)};V(Ie,Xe=>{n(B)==="COUNT"&&Xe(Fe)},ge)}};V(Ze,Ie=>{n(B)==="FULL"?Ie(me):Ie(J,!1)})}b(Y,oe)};V(k,Y=>{d()?Y(Ke):Y(Ve,!1)})}b(te,ue)},$$slots:{default:!0}})};V(q,le=>{n(I)&&le(de)})}b(t,ae),U(),o()}var sm=require("@vkontakte/videoplayer-shared/es2018");var mi=require("@vkontakte/videoplayer-core/es2018"),ft=require("@vkontakte/videoplayer-shared/es2018"),us=require("@vkontakte/videoplayer-statistics/es2018");var Ye=require("@vkontakte/videoplayer-shared/es2018"),oo=require("@vkontakte/videoplayer-shared/es2018"),Uy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ep=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 oo.Subject,loadStarted$:new oo.Subject,loadEnded$:new oo.Subject,loadError$:new oo.Subject,ready$:new oo.Subject,slotRequested$:new oo.Subject,started$:new oo.Subject,timeRemained$:new oo.Subject,paused$:new oo.Subject,resumed$:new oo.Subject,ended$:new oo.Subject,empty$:new oo.Subject,skipped$:new oo.Subject,clicked$:new oo.Subject,closed$:new oo.Subject,error$:new oo.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 r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),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,oo.addScript)(Uy,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=s,r=window.setTimeout(s,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(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),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=s,r=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(r),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)=>{var o;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"})),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(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?be(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;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.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):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.currentAdSection==="postroll"&&this.setPostrollPassed(!0),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")}async initAdman(e){var R,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,isAutoplay:r,adsContainer:s,adsVideoElement:l,slotId:d,params:a={},paramsOverride:u={},duration:f,externalApi:v}=e;this.externalApi=v;let p,y=this.playerState&&be(this.playerState.vsid);y&&(this.isVsidOriginal?p=y:p=parseInt(y,36));let{isEmbed:w,immediateOrigin:x}=(0,Ye.detectEmbed)(),C=(R=w?x:window.location.href)!=null?R:window.location.href,T={...a,dl:encodeURIComponent(C),autoplay:r?1:0,player_width:i,player_height:o,...p?{request_id:p}:{},duration:f,...u};T=Object.fromEntries(Object.entries(T).filter(([I,O])=>(0,Ye.isNonNullable)(O)));let E={slot:d,wrapper:s,videoEl:l,videoQuality:o,params:T,browser:{mobile:!1}};try{let I=new window.AdmanHTML;if(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),(A=this.externalApi)!=null&&A.videoGetAds){let O=await this.safeExternalCall(this.externalApi.videoGetAds,T);O&&(delete E.slot,delete E.params,Object.assign(E,{json:O}))}I.init(E),this.adman=I,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}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,r,s;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.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(r=this.actions).switchFromAdsToVideo)==null||s.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}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=be(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(){this.watchDogTimeout&&this.stopWatchDog(),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,r,s,l,d,a,u,f,v,p;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),(r=this.adman)==null||r.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,oo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}async safeExternalCall(e,...i){var o;try{return await e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}}};var A0=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 Ov=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let s of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new tp,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new Dv,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},tp=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${r}`;return s+l+d+a}},Dv=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let u=["<",">"].reduce((f,v)=>{let p=l.indexOf(v,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new tp;for(let l of r)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},P0=Ov;var op=require("@vkontakte/videoplayer-shared/es2018"),Ua,Li,Bv=0,Hv=!1,M0="",L0=(t,e=0,i=0)=>t<e&&t<i,ip=(t,e=0,i=0)=>t>=e&&t<=i,zy=(t,e=0,i=0)=>t>e&&t>i,V0=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:f})=>ip(t,u,f));let s=t>=Bv,l=t<Bv;if(Bv=t,l&&(Hv=!1),(0,op.isNonNullable)(Ua)&&ip(t,Ua.startTime,Ua.endTime)&&M0===e.value)return Ua;if(!(0,op.isNonNullable)(Li)&&(r!=null&&r.length)&&!Hv){Li=r.find(({startTime:u,endTime:f})=>ip(t,u,f)||s&&L0(t,u,f)),Ua=void 0,!(0,op.isNonNullable)(Li)&&r[r.length-1].endTime<t&&(Hv=!0);return}else{if(ip(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime))return Ua=Li,Li=void 0,M0=e.value,Ua;(s&&zy(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime)||l&&L0(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime))&&(Li=void 0)}};var np={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"},Wy={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"},fc=t=>{var e,i;return(i=(e=np[t])!=null?e:np[Wy[t]])!=null?i:void 0};var R0=require("@vkontakte/videoplayer-shared/es2018"),zD=require("@vkontakte/videoplayer-statistics/es2018"),rp=class{constructor(e,i,o,r=new R0.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}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 vc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(vc||{});var cs=t=>t!=null?t:0,As=(t,e)=>{var r,s;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(cs(i==null?void 0:i.top)-cs(o==null?void 0:o.top)),left:Math.round(cs(i==null?void 0:i.left)-cs(o==null?void 0:o.left)),bottom:Math.round(cs(i==null?void 0:i.bottom)-cs(o==null?void 0:o.top)),right:Math.round(cs(i==null?void 0:i.right)-cs(o==null?void 0:o.left))}},ql=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:cs(e==null?void 0:e.width),height:cs(e==null?void 0:e.height)}};var Fn="off";var Ql=t=>!!(Math.round(Math.abs(t)/90)%2);var N0=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:y,player:w,disabledControls:x,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:R,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:O,additionalButtons:H,additionalSettingsMenuItems:B,additionalContextMenuItems:z,playPrevVideo:Z,playNextVideo:ae,onVideoChanged:q,looped:de=!1,statistics:X,saveRate:fe,internalsExposure:re,playerView:le,playerId:Me})=>{var Cg,Tg,Eg;let we={...y,configName:[...(Cg=y.configName)!=null?Cg:[],"ui"],isAudioDisabled:l,live:{...(Tg=y.live)!=null?Tg:{},isLiveCatchUpMode:!!r}},te=p,Ne=ft.TracerFactory.createRootTracer(te.features.tracer),ue=Ne.createComponentTracer("Store"),k=w||new mi.Player(we,Ne,{playerId:Me});re==null||re.expose({corePlayer:k});let Ke=new ft.Logger,Ve=new ep(Ke,{loadTimeout:te.ads.loadTimeout,initTimeout:te.ads.initTimeout,runtimeTimeout:te.ads.runtimeTimeout,useAdmanFromNPM:te.ads.useAdmanFromNPM,volumeMultiplier:te.ads.volumeMultiplier,isVsidOriginal:te.ads.isVsidOriginal}),Y=Ma.getInstance(),oe=u==null?void 0:u.pictureInPictureApi,Be=u==null?void 0:u.annotationsApi,Ze=u==null?void 0:u.slotsApi,me=Ke.createComponentLog("Store"),J,Ie,ge={},Fe=new Au,Xe=new ft.Subscription,Ge="",ct=se(!1),et=X&&X.oneStat?li(X.oneStat.vsid$):xr(void 0),Bt=se(Gs()),rt=se(!1),Dt=()=>i0(document,mi.clientChecker.device.isIOS),qt=(Eg=oe==null?void 0:oe.info.isActive$)!=null?Eg:new ft.ValueSubject(!1),Et=se(0),ei=se(!1),Wt=se(!1),Se=se([]),xe=(0,ft.merge)(k.events.fatalError$,k.events.managedError$).subscribe(c=>Se.update($=>[...$,c])),ee=xr(!1,c=>{let $=k.events.fatalError$.subscribe(()=>c(!0));return()=>$.unsubscribe()}),Ce=async c=>{var ie;let $=Object.values(ft.InterfaceLanguage).includes(c);if(te.downloadVKLanguages&&($&&te.updateBuiltinLanguages||!Qf(c))){let Ae;try{Ae=await(0,ft.loadVKLangPack)(c,v1,m1)}catch(st){(ie=X==null?void 0:X.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),Y==null||Y.report(st,{errorType:"VKLangPack",fatal:!1})}Ae&&(qf({language:c,pack:Ae,fallback:te.defaultLanguage}),Pe.set(c),It.update(st=>st+1))}Qf(c)&&Pe.set(c)},Pe=se(t),It=se(0),Oe=se(e);Ce(t);let ut=(c,$)=>{let L=be(Pe);return Gf(L,c,$,te.defaultLanguage)},yt=se("thumb");yt.subscribe(c=>{c==="ads"&&k.info.playbackState$.getValue()&&qe()});let ye=(()=>{let c=bi([ee,yt],([$,L])=>$?"crashed":L);return{...c,is:$=>be(c)===$}})(),ot=se(),qe=()=>{ot.set({muted:k.info.muted$.getValue()})},lt=(()=>{let c=se(new Set(x));return{...c,add:$=>{c.update(L=>new Set([...L].concat($)))},remove:$=>{c.update(L=>{let ie=[...L];return new Set(Array.isArray($)?ie.filter(Ae=>!$.includes(Ae)):ie.filter(Ae=>Ae!==$))})},includes:$=>{let L=be(c);return Array.isArray($)?$.every(ie=>L.has(ie)):L.has($)}}})(),ti=se({width:0,height:0}),ni=null,fi=k.info.isBuffering$,yi=xr(fi.getValue(),c=>{let $=fi.subscribe(L=>{L&&ni===null?ni=window.setTimeout(()=>{c(fi.getValue()),ni=null},te.loaderDelay):c(L)});return()=>{$.unsubscribe(),ni&&clearTimeout(ni)}});ue.log("create store"),me({message:"create store"});let ro=c=>{let $=c.container,L=()=>{oi=new MutationObserver(Ae=>{let{removedNodes:st}=Ae[0];st.length&&$.append(k.experimental.element$.getValue())}),oi.observe($,{childList:!0})},ie=k.experimental.element$.getValue();if(ie)$.append(ie),L();else{let Ae=k.experimental.element$.pipe((0,ft.filter)(st=>!!st),(0,ft.once)()).subscribe(st=>{$.append(st),L()});Xe.add(Ae)}},po=c=>{me({message:`init video, config: ${JSON.stringify(c)}`}),C?ro(c):(ft.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ft.now)()]}),k.initVideo(c)),ue.log("init video",{isInteractive:C}),c.subtitles&&k.setExternalTextTracks(c.subtitles),J=c,Ge=c.subtitlesForcedLanguage||""},di=new ft.Subject,gt=c=>di.next(c),ki=new ft.Subject,jt=new ft.Subject,Tt=new ft.Subject,oi=null,Yt={actionRewind$:ki,actionSeek$:jt,inPiP$:qt,inFullscreen$:new ft.Observable(c=>Bt.subscribe($=>c.next($))),actionSetSubtitle$:Tt,nextMovie$:di},St={actionSeek$:jt,playerSize$:new ft.Observable(c=>ti.subscribe($=>c.next($))),inPiP$:qt,inFullscreen$:new ft.Observable(c=>Bt.subscribe($=>c.next($))),isLoaderVisible$:new ft.Observable(c=>yi.subscribe($=>c.next($)))};if(X){let{oneStat:c,thinOneStat:$,mediascopePixel:L,statSubscription:ie}=X;c&&(C||ie.add(c.attachTo(k)),ie.add(c.attachToUi(Yt)),ie.add(c.attachToAds(Ve.events)),c.authorize(s).catch(Ae=>{me({message:`onestat auth error ${String(Ae)}`})}),L&&L.attachTo(k)),$&&(ie.add($.attachTo(k,Ve.events)),ie.add($.attachToUi(St)),ie.add($.attachToAds(Ve.events)),$.updateContext({isMobile:be(ct)}),$.authorize(s))}if(Y){let c=new ft.Subscription,$=(L,ie)=>c.add(L.subscribe(ie));if($(k.events.managedError$,L=>{Y.logIError(L)}),$(k.events.fatalError$,L=>{Y.logIError(L,!0)}),X){let{oneStat:L}=X;L&&$(L.experimental.error$,ie=>{Y.logIError(ie)})}Y.sentrySubscription.add(c)}let je=()=>{if(mi.clientChecker.device.isIOS&&Ie)try{o0(Ie)}catch(c){me({message:`exitIosSafariFullscreen failed: ${c}`})}};Xe.add(k.experimental.element$.subscribe(c=>{c&&(Ie=c,c.classList.add("player-media"),Va(oe)&&oe.updateVideoElement(),C&&c.setAttribute("pip","false"),le==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(k.events.ended$.subscribe(()=>{var c;je(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(k.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(k.events.started$.subscribe(async()=>{var $,L;Va(oe)&&await(oe==null?void 0:oe.revealPictureInPicture());let c=k.info.muted$.getValue();($=a==null?void 0:a.onStarted)==null||$.call(a),(L=ge.onStarted)==null||L.call(ge,c)})).add(k.events.willSeek$.subscribe(({from:c,to:$})=>{var L;(L=a==null?void 0:a.onSeek)==null||L.call(a,c,$)})).add(k.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(k.info.position$.subscribe(c=>{var L;let $=k.info.duration$.getValue();isFinite($)&&$>0&&((L=a==null?void 0:a.onTimeupdate)==null||L.call(a,$,c),Ve.setPosition(c,$))})).add(k.events.fatalError$.subscribe(c=>{var $;($=a==null?void 0:a.onCrashed)==null||$.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.fetcherRecoverableError$.subscribe(c=>{var $;($=a==null?void 0:a.onRecoverableError)==null||$.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.loadedMetadata$.subscribe(()=>{ei.set(!0)})).add(k.info.is3DVideo$.subscribe(c=>{Wt.set(c)})).add(k.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&lt.add(Fd),lt.add("PLAY_BUTTON")):lt.remove("PLAY_BUTTON"))})).add(k.info.liveTime$.subscribe(c=>{var $;($=a==null?void 0:a.onLiveTime)==null||$.call(a,c)})).add(k.info.isStalled$.subscribe(c=>{var $;($=a==null?void 0:a.onStalledChanged)==null||$.call(a,c)})).add(k.info.isLiveEnded$.subscribe(c=>{var $;return c&&(($=a==null?void 0:a.onLiveEnded)==null?void 0:$.call(a))})).add(Ve.events.loadStarted$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:$.call(c)})).add(Ve.events.loadEnded$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:$.call(c)})).add(Ve.events.loadError$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:$.call(c)})).add(Ve.events.init$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:$.call(c)})).add(Ve.events.ready$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:$.call(c)})).add(Ve.events.started$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onStarted)==null?void 0:L.call($,c)})).add(Ve.events.timeRemained$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onTimeRemained)==null?void 0:L.call($,c)})).add(Ve.events.ended$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onCompleted)==null?void 0:L.call($,c)})).add(Ve.events.empty$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:$.call(c)})).add(Ve.events.clicked$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onClicked)==null?void 0:L.call($,c)})).add(Ve.events.closed$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onClosed)==null?void 0:L.call($,c)})).add(Ve.events.error$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onError)==null?void 0:L.call($,c)})).add(Ve.events.paused$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:$.call(c)})).add(Ve.events.resumed$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:$.call(c)}));let xi=new ft.Subscription,yo=()=>{var st,Lt,Ft;let{debugLog:c}=te,$,L="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:Qt}=c;$=c.tag,L=(st=Qt==null?void 0:Qt[0])!=null?st:L,ie=(Ft=(Lt=Qt==null?void 0:Qt[1])!=null?Lt:Qt==null?void 0:Qt[0])!=null?Ft:ie}let Ae=$?`: ${$}`:"";xi.add(k.events.log$.subscribe(Qt=>{console.debug(`%c sdk${Ae} `,`background:${L};`,`sdk component: ${Qt.component}`,Qt.message)})).add(Ke.log$.subscribe(Qt=>{console.debug(`%c ui${Ae} `,`background:${ie};`,`ui component: ${Qt.component}.`,Qt.message)}))},Zo=()=>{xi.unsubscribe()},dn=(c,$)=>{ue.log("start camera manual rotation",{mx:c,my:$}),k.startCameraManualRotation(c,$)},kt=(c=!1)=>{ue.log("stop camera manual rotation",{immediate:c}),k.stopCameraManualRotation(c)},Ht=(c,$,L)=>{ue.log("move camera focus px",{xpx:c,ypx:$,dt:L}),k.moveCameraFocusPX(c,$,L)},K=()=>{k.holdCamera()},Vt=()=>{k.releaseCamera()},ii=xr(k.info.position$.getValue(),c=>{let $,L,ie=()=>{let Ae=k.info.playbackState$.getValue(),st=k.info.isLive$.getValue(),Lt=k.info.duration$.getValue(),Ft=k.info.position$.getValue();if(Ae&&[mi.PlaybackState.PLAYING,mi.PlaybackState.PAUSED].includes(Ae)){let Qt=st?Ft-Lt:k.getExactTime();Qt!==L&&c(Qt),L=Qt}$=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame($)}),vt=li(k.info.playbackState$),At=li(k.info.currentBuffer$),Gt=li(k.info.isEnded$),pt=li(k.info.isLive$),Vi=te.features.playbackRate?li(k.info.canChangePlaybackSpeed$):xr(!1),Fi=li(k.info.liveBufferTime$),Xo=li(k.info.volume$),Vo=li(k.info.muted$),so=Pu(k.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===mi.PredefinedQualityLimits.TRAFFIC_SAVING)),k.info.predefinedQualityLimitType$.getValue()===mi.PredefinedQualityLimits.TRAFFIC_SAVING),Ui=Pu(k.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===mi.PredefinedQualityLimits.HIGH_QUALITY)),k.info.predefinedQualityLimitType$.getValue()===mi.PredefinedQualityLimits.HIGH_QUALITY),dr=li(k.info.autoQualityLimitingAvailable$),fo=li(k.info.availableQualities$),vo=li(k.info.availableQualitiesFps$),Ri=li(k.info.chromecastState$),cn=li(k.info.chromecastDeviceName$),Ro=li(k.info.currentFormat$),cr=li(k.info.throughputEstimation$),ur=li(k.info.videoBitrate$),Sr=li(k.info.intrinsicVideoSize$),es=li(k.info.duration$),fs=li(k.info.isAudioAvailable$),ts=()=>{ni&&clearTimeout(ni),ni=null},xo=bi([es,pt],([c,$])=>$?-c:c),Wn=bi([vt],([c])=>c===mi.PlaybackState.PLAYING),No=li(k.info.atLiveEdge$),un=li(k.info.atLiveDurationEdge$),kn=li(k.info.position$),pr=bi([kn,es],([c,$])=>isFinite(c)&&isFinite($)&&!!$),Cr=bi([Ri],([c])=>c===mi.ChromecastState.CONNECTED),Tr=li(k.info.availableVideoStreams$),Er=te.features.audioLanguages?li(k.info.availableAudioStreams$):xr([]),Ir=li(k.info.currentVideoStream$),ji=li(k.info.currentAudioStream$),kr=c=>{c.language&&Uf(c.language),k.setVideoStream(c)},An=(c,$)=>{k.setAudioStream(c),ho($)&&(c.language&&Uf(c.language),te.features.userVideoPrefs&&i&&Kf(te.userSalt,String(i),{audioTrackId:c.id}))},pn=c=>{let $;if(c.length===1&&($=c.at(0)),$!=null||($=c.find(ie=>"isDefault"in ie&&ie.isDefault)),te.features.userVideoPrefs&&i){let ie=Nu(te.userSalt,String(i));if(ie!=null&&ie.audioTrackId){let Ae=c.find(st=>st.id===ie.audioTrackId);$=Ae!=null?Ae:$}}let L=F1();return L&&($!=null||($=c.find(({language:ie})=>L===ie))),$!=null||($=c.at(0)),$},mo=c=>{ue.log("change audio stream",{id:c});let $=k.info.availableAudioStreams$.getValue().find(L=>L.id===c);$&&An($,!0)},fr=!1;Xe.add(k.info.availableAudioStreams$.subscribe(c=>{if(!fr&&c.length){let $=pn(c);$&&(k.setAudioStream($),fr=!0)}})),Er.subscribe(c=>{var $;($=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||$.call(a,c.map(({label:L="",id:ie="",language:Ae=""})=>({label:L,language:Ae,id:ie})))}),ji.subscribe(c=>{var $;return c&&(($=a==null?void 0:a.onAudioStreamChanged)==null?void 0:$.call(a,c.id))});let Pn=!1;Xe.add(k.info.availableVideoStreams$.subscribe(c=>{if(!Pn&&c.length){let $=pn(c);$&&(k.setVideoStream($),Pn=!0)}}));let ht=se(void 0),pi=li(k.info.isAutoQualityEnabled$,c=>c&&ht.set(void 0)),Ar=li(k.info.currentQuality$,()=>ht.set(void 0)),Kn=bi([ht,Ar],([c,$])=>c!=null?c:$),Pr=bi(Ro,c=>c!==mi.VideoFormat.MPEG),Mn=bi([fo,vo,pi,Kn,Pr],([c,$,L,ie,Ae])=>{let st=[];Ae&&st.push({value:"auto",displayValue:ut("auto_quality_option"),selected:L});let Lt=c.filter(Ft=>!(0,ft.isInvariantQuality)(Ft));for(let Ft of Lt){let Qt=$[Ft];st.push({value:Ft,displayValue:`${Ft}${Qt?A0(Qt):""}`,selected:L?!1:Ft===ie})}return st}),Ln=li(k.info.currentPlaybackRate$),Oo=bi([Ln,No,un],([c,$,L])=>{let ie=L||C?1:te.controls.playbackRateMin,Ae=$?1:te.controls.playbackRateMax,st=te.controls.playbackRateStep,Lt=[];for(let Ft=ie;Ft<=Ae;Ft+=st)Lt.push({value:Ft,displayValue:Ft===1?ut("playback_rate_1"):ut("playback_rate",{multiplier:Ft.toString(10)}),selected:c===Ft});return Lt}),Do=()=>({displayValue:ut("subtitles_off"),value:Fn,language:""}),fn=se(Do()),go=bi([fn,It],([c],$)=>{c.value===Fn?$(Do()):$(c)}),Bo=te.features.subtitles?li(k.info.availableTextTracks$):xr([]),Jo=A1(),vr=bi([Bo,go],([c,$],L)=>{var st;let ie=[],Ae=c.find(({id:Lt})=>Lt===$.value);if(Ae!=null&&Ae.url){let[,Lt]=(st=Jo.find(Ae.url))!=null?st:[];if(Lt){L(Lt);return}Fe.download(Ae.url).then(Ft=>{if(!Ft||Fe.isDestroyed())return;let Qt=new P0,Ds=Ae.language;if(Ds){let M_=!!Ae.isAuto,L_=Qt.parse(Ft,Ds);ie.push({lang:Ds,subtitles:L_,isAuto:M_,id:Ae.id})}Jo.add(Ae.url,ie),be(go).value===$.value&&L(ie)}).catch(Ft=>{var Qt;(Qt=X==null?void 0:X.oneStat)==null||Qt.logError({errorType:"Subtitles download",fatal:!1}),Y==null||Y.report(Ft,{errorType:"Subtitles download",fatal:!1})})}L(ie)}),Mr=bi([Ln,Wn,go],([c,$,L],ie)=>{let Lt;if(k.info.isLive$.getValue()&&$&&L.value!==Fn){let Qt=()=>{let Ds=1e3/(3*c);Lt=setTimeout(Qt,Ds),ie(Date.now())};return Qt(),()=>clearTimeout(Lt)}}),vn=bi([Bo,go],([c,$])=>{if(!c.length)return[];let L=[];for(let{language:ie,isAuto:Ae,id:st}of c){let Lt=ie&&fc(ie);ie&&Lt&&L.push({displayValue:Ae?ut("subtitles_auto",{language:Lt}):Lt,value:st,selected:($==null?void 0:$.value)===st,isAuto:Ae,language:ie})}return L.length?(L.unshift({...Do(),selected:($==null?void 0:$.value)===Fn}),L):[]}),zi={available:[],prev:[]},mr=()=>{var $,L;let c=k.experimental.getCurrentTime$.getValue();return(L=($=c==null?void 0:c())!=null?$:Ie==null?void 0:Ie.currentTime)!=null?L:0},Lr=bi([ii,go,vr,Mr],([c,$,L,ie])=>{var st;let Ae=k.info.isLive$.getValue();if(Ae&&zi.prev!==L){let Lt=L.find(({id:Qt})=>Qt===$.value),Ft=zi.prev.find(({id:Qt})=>Qt===$.value);if(Lt){let Qt={...Lt,subtitles:[...(st=Ft==null?void 0:Ft.subtitles)!=null?st:[],...Lt.subtitles]};zi.available=[Qt],zi.prev=L}}if($&&$.value!==Fn){let Lt=Ae?mr():c,Ft=Ae?zi.available:L;return V0(Lt,$,Ft,Ae)}}),Vn=bi([Lr],([c])=>c!=null&&c.texts?c.texts:[]);Xe.add(go.subscribe(c=>{var $,L;if(c.value===Fn)($=a==null?void 0:a.onSubtitleOff)==null||$.call(a);else{let ie=Object.entries(np).find(([Ae,st])=>st===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,ie?ie[0]:"",c.value)}}));let qn=se(!0),Vr=bi([At,xo,kn,Fi],([c,$,L,ie])=>{var Ft;let Ae=(Ft=c==null?void 0:c.end)!=null?Ft:0;if(!ie)return Ae/$;let Lt=-L+ie-$;return(Ae-Lt)/$}),Qn=li(k.info.availableSources$),it=bi([Qn],([c])=>Object.keys((c==null?void 0:c[mi.VideoFormat.MPEG])||{}).length>0),ri=()=>{var L,ie,Ae;let c=Object.keys(((ie=(L=k.info.availableSources$)==null?void 0:L.getValue())==null?void 0:ie[mi.VideoFormat.MPEG])||{}),$=(0,ft.getHighestQuality)(c)||ft.VideoQuality.Q_144P;return(Ae=J.sources[mi.VideoFormat.MPEG])==null?void 0:Ae[$]},Ni=()=>{var $;let c=ri();if(c)ue.log("download video",{url:c}),E1(c,(($=J==null?void 0:J.meta)==null?void 0:$.title)||"video");else{let L="There is no URL for download video";ue.log("download video",{message:L}),me({message:L})}},Oi=()=>{me({message:"toggle muted"});let c=k.info.muted$.getValue();k.info.volume$.getValue()===0&&!c?Gn(Rn(),!1):jn(!c,!1)},mn=()=>{var c;if(Kt.ui.settingsMenu.visible$.set(!1),!be(Kt.ui.settingsSubMenu.visible$)){let $=be(Kt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&$){let ie=ql($),Ae={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ie,position:Ae,name:"settings"})}}ue.log("close settings menu")},wo=async(c,$=()=>Promise.resolve())=>{var Ae;Kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Kt.ui.settingsMenu.visible$.set(!0),await $();let L=be(Kt.ui.settingsMenu.ref$),ie=ca();if((Ae=a==null?void 0:a.uiInfo)!=null&&Ae.onSettingsMenu&&L&&ie){let Lt=ql(L),Ft=As(L,ie);a.uiInfo.onSettingsMenu({visible:!0,size:Lt,position:Ft,name:"settings"})}ue.log("open settings menu",{wasOpenedByKeyboard:c})},So=(c,$=!1)=>{var st;Kt.ui.settingsSubMenu.visible$.set(!1);let L=be(Kt.ui.settingsMenu.ref$),ie=ca(),Ae=be(Kt.ui.settingsMenu.visible$);if((st=a==null?void 0:a.uiInfo)!=null&&st.onSettingsMenu&&L&&ie)if(Ae&&!$){let Ft=ql(L),Qt=As(L,ie);a.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:Qt,name:"settings"})}else{let Ft=ql(c),Qt={top:0,left:0,bottom:0,right:0},Ds=be(Kt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Ft,position:Qt,name:Ds})}ue.log("close settings sub menu")},vi=(c,$)=>{var ie;Kt.ui.settingsSubMenu.visible$.set(!0),Kt.ui.settingsSubMenu.ref$.set($),Kt.ui.settingsSubMenu.name$.set(c);let L=ca();if((ie=a==null?void 0:a.uiInfo)!=null&&ie.onSettingsMenu&&$&&L){let st=ql($),Lt=As($,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:st,position:Lt})}ue.log("open settings sub menu",{name:c})},Rn=()=>{var $;let c=Math.max(te.volumeMinRestore,($=Mu())!=null?$:0);return c===0?te.volumeDefault:c},ho=c=>{let $=te.features.savePreferredStatesOnUserActionOnly;return!$||$&&!c},Gn=(c,$)=>{let L=c===0?Rn():c,ie=k.info.muted$.getValue();me({message:`set volume, volume: ${c}, preferredVolume: ${L}`});let Ae=!l||ye.is("ads");ie&&c>0&&Ae&&(ie=!1,ho($)&&Hf(!1)),k.setVolume(c,ie),Ve.setVolume(c),ho($)&&Rf(L)},jn=(c,$)=>{let L=k.info.volume$.getValue();me({message:`set muted, currentVolume: ${L}, mute: ${c}`});let ie=ye.is("ads");if(k.setMuted(c,ie),Ve.setVolume(c?0:L),ho($)&&(!ie||!c)&&Hf(c),!c&&L===0){let Ae=Rn();k.setVolume(Ae),ho($)&&Rf(Ae),Ve.setVolume(Ae)}},Rr=se(!1),Nr=c=>{var $,L;ue.log("set looped",{isLooped:c}),Rr.set(c),k.setLooped(c),(L=($=a==null?void 0:a.uiInfo)==null?void 0:$.onLoopedChanged)==null||L.call($,c)};Nr(de);let gn=()=>{var c,$;($=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||$.call(c)},hn=(c,$=!1)=>{var L;me({message:`set autoplayNextEnabled, value: ${c}`}),ue.log("set autoplay next enabled",{autoplayNextEnabled:c}),Kt.ui.autoplayNextEnabled$.set(c),W1(c),$&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},gr=c=>{me({message:`set timerNextVideoRunning, value: ${c}`}),ue.log("set timer next video running",{timerNextVideoRunning:c}),Kt.ui.timerNextVideoRunning$.set(c)},_n=(c=!0)=>{var L;let $=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{$=(L=a==null?void 0:a.onPrevVideoClick)==null?void 0:L.call(a)}catch(ie){me({message:"onPrevVideoClick callback failed to execute"})}q(!0),$&&Z()},Or=(c=!0)=>{var L;let $=!0;if(c&&(a!=null&&a.onNextVideoClick))try{$=(L=a==null?void 0:a.onNextVideoClick)==null?void 0:L.call(a)}catch(ie){me({message:"onNextVideoClick callback failed to execute"})}q(!1),$&&ae()},tt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Mt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},wi=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},_o=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Ho=()=>{k.prepare()},Co=()=>{(0,ft.assertNonNullable)(Kt);let c=be(Kt.ui.controls.disabledControls$),$=be(Kt.playerPhase),L={playerPhase:$,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(me({message:"toggle play"}),$==="ads"){L.action="play",ue.log("toggle adman play",L),Ve.togglePlay();return}let ie=()=>{var st;me({message:"toggle play, call player.play"}),L.action="play",k.play(),(st=a==null?void 0:a.onPlay)==null||st.call(a)},Ae=()=>{var st;me({message:"toggle play, call player.pause"}),L.action="pause",k.pause(),(st=a==null?void 0:a.onPause)==null||st.call(a)};if(k.info.isEnded$.getValue()){if(me({message:"toggle play, video ended, seek to 0"}),ki.next(),jt.next(us.SeekAction.REWIND),C){R==null||R();return}k.seekTime(0),ie()}else k.info.playbackState$.getValue()!==mi.PlaybackState.PLAYING?ie():Ae();ue.log("toggle play",L)},Yi=(c,{changeReason:$="default",appliesTo:L="to-video"}={},ie)=>{me({message:`set quality, quality: ${c}`}),ue.log("set quality",{quality:c}),k.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ae}=te.features;Lu(),c!=="auto"?(Ae?(Vu({type:"exact_quality",quality:c,videoId:i},L),k.setPredefinedQualityLimits(mi.PredefinedQualityLimits.UNKNOWN)):Nf(i,c),ht.set(c),k.setQuality(c)):Ae&&$==="default"&&(To("auto_quality",L,ie),be(so)&&Ai(!1,void 0,ie),be(Ui)&&en(!1,void 0,ie))},Ai=(c,$="as-default",L)=>{me({message:`set trafficSavingEnabled, value: ${c}`}),ue.log("set traffic saving enabled",{trafficSavingEnabled:c});let ie=c?mi.PredefinedQualityLimits.TRAFFIC_SAVING:mi.PredefinedQualityLimits.UNKNOWN;te.features.qualityDetailsSubMenuEnabled?(Fo(ie,$,L),zd(!1)):(k.setPredefinedQualityLimits(ie),ho(L)&&zd(c))},en=(c,$="as-default",L)=>{me({message:`set highQualityEnabled, value: ${c}`}),ue.log("set high quality enabled",{highQualityEnabled:c}),Fo(c?mi.PredefinedQualityLimits.HIGH_QUALITY:mi.PredefinedQualityLimits.UNKNOWN,$,L)},Fo=(c,$,L)=>{c!==mi.PredefinedQualityLimits.UNKNOWN&&(be(dr)&&!be(pi)&&Yi("auto",{appliesTo:$,changeReason:"limit-changed"},L),To(c,$,L)),k.setPredefinedQualityLimits(c)},To=(c,$,L)=>{ho(L)&&(Vu({type:c,videoId:i},$),$==="as-default"&&Vu({type:c,videoId:i},"to-video"))},Zi=(c,$=!0)=>{ue.log("set playback rate",{playbackRate:c}),k.setPlaybackRate(c),te.features.saveRate&&fe&&!k.info.isLive$.getValue()&&$&&U1(c)},Dr=()=>{let c=be(Oo),$=c.findIndex(({selected:ie})=>ie);if($===c.length-1)return;let L=c[$+1];Zi(L.value)},Yn=()=>{let c=be(Oo),$=c.findIndex(({selected:ie})=>ie);if($===0)return;let L=c[$-1];Zi(L.value)},Zn=(c={...Do(),selected:!1},$)=>{ue.log("set subtitles",{...c}),c.value!==Fn&&Tt.next(c.isAuto?c.value+"_auto":c.value),fn.set(c),ho($)&&(Wf(c.value===Fn?void 0:c.language),te.features.userVideoPrefs&&i&&Kf(te.userSalt,String(i),{subtitleTrackId:c.value===Fn?void 0:c.value}))},hr=c=>{ue.log("toggle subtitles");let $=be(go);($==null?void 0:$.value)===Fn?Br(c):is(c)},vs=(c,$)=>{ue.log("change subtitle",{enabled:c}),c?Br(!0,$):is(!0)},Br=(c,$)=>{ue.log("subtitle on");let L=be(vn),ie=be(Pe),Ae=Ge!=null?Ge:ie,st;$&&(st=L.find(Lt=>Lt.value===$)),st!=null||(st=L.filter(Lt=>Lt.value!==Fn).find(Lt=>Lt.language===Ae)),Zn(st!=null?st:L[1],c)},is=c=>{ue.log("subtitle off"),Zn(void 0,c)};Xe.add(k.info.availableTextTracks$.subscribe(c=>{var L;function $(){let ie=[];for(let{language:Ae,isAuto:st,id:Lt}of c){let Ft=Ae&&fc(Ae);Ae&&Ft&&ie.push({id:Lt,language:Ae,title:st?ut("subtitles_auto",{language:Ft}):Ft})}return ie}(L=a==null?void 0:a.onAvailableSubtitlesChanged)==null||L.call(a,$())}));let Qe=se(!0),Xt=c=>{Qe.set(c)},gi=(c,$,L=!0)=>{var ie;if(me({message:`seek to time, time: ${c}`}),ue.log("seek to time",{time:c,action:$,forcePrecise:L}),jt.next($),k.info.isLive$.getValue()){let Ae=k.info.duration$.getValue(),st=Math.min(0,Ae+c);k.seekTime(st,L)}else{if(E!=null&&E.getValue())return;k.info.isEnded$.getValue()&&(me({message:"seek after ended, call callbacks.onPlay"}),(ie=a==null?void 0:a.onPlay)==null||ie.call(a)),k.seekTime(nn(c),L)}},bn=c=>{me({message:`seek to episode start time: ${c}`}),ue.log("seek to episode start time",{time:c}),gi(c,us.SeekAction.EPISODE,!0)},Uo=(c,$,L=!1)=>{me({message:`seek to percent, percent: ${c}`}),ue.log("seek to percent",{percent:c,action:$});let ie=be(xo)*c;gi(ie,$,L)},Hr=c=>{me({message:`seek external, time: ${c}`}),ue.log("seek external",{time:c}),jt.next(us.SeekAction.UNKNOWN),k.seekTime(k.info.isLive$.getValue()?-c:c)},tn=c=>{var ie,Ae;let $=(ie=c.max)!=null?ie:"none",L=(Ae=c.min)!=null?Ae:"none";me({message:`set auto quality limitation. Max: ${$}. Min: ${L}`}),ue.log("set auto quality limits",{max:$,min:L}),k.setAutoQualityLimits(c)},Fr=c=>{me({message:`seek external to episode start time: ${c}`}),ue.log("seek external to episode start time",{time:c}),gi(c,us.SeekAction.EPISODE,!0)},Rs=c=>{me({message:`set playback rate to: ${c}`}),ue.log("set playback rate external",{playbackRate:c}),k.setPlaybackRate(c)},Xi=se(!1),Ur=se(!1),oa=bi([xo],([c])=>!!v&&c>=te.suitableDurationForUsingRichSeek&&te.features.useRichSeek&&!C),_t=((v==null?void 0:v.frameWidth)||0)>=((v==null?void 0:v.frameHeight)||0),ci=bi([Et],([c])=>{let $=Ql(c);return _t?!$:$});Xe.add(ye.subscribe(c=>{c!=="video"&&Xi.set(!1)}));let bo=se(void 0),$n=se(!1),$e=c=>{me({message:`start scrubbing, progress: ${c}`}),ue.log("start scrubbing",{progress:c}),$n.set(!0),mt(c)},mt=c=>{bo.set(c)},si,Si,ui=()=>{bo.set(void 0),$n.set(!1)},Jt=()=>{clearTimeout(Si),clearTimeout(si),si=window.setTimeout(()=>{ui()},500),Ie==null||Ie.removeEventListener("seeked",Jt)},Ei=(c,$=!1)=>{me({message:`complete scrubbing, progress: ${c}`}),ue.log("complete scrubbing",{progress:c}),Uo(c,us.SeekAction.SLIDER,$),be(Kt.ui.isMobile)&&be(Kt.state.currentFormat$)===mi.VideoFormat.HLS?(Ie==null||Ie.addEventListener("seeked",Jt),Si=window.setTimeout(()=>{Jt()},300)):ui()},yn=bi([ii,xo,bo],([c,$,L],ie)=>{ie((0,ft.isNonNullable)(L)?L*$:c)}),on=se(!1),Pi=()=>{on.set(!0)},ol=()=>{on.set(!1)},na=bi([ti],([{width:c}],$)=>{let L=S0(c);$(L)}),ra=H.filter(c=>I1(c)),sa=bi([na,ct],([c,$])=>$?ra.filter(L=>!L.hideOnMobile):ra.filter(L=>{var ie;return!((ie=L.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),Xn=se(H.filter(c=>k1(c))),ms=bi([Xn,na],([c,$])=>c.filter(L=>{var ie;return!((ie=L.hideOnDesktopGridTypes)!=null&&ie.includes($))})),aa=bi([ms,sa],([c,$])=>[...te.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...te.features.additionalButtons?$.map((L,ie)=>{var Ae;return{id:ie,weight:ie,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Ae=L.ariaLabel)!=null?Ae:L.tooltip,tooltipText:L.tooltip}}):[]]),_r=se(B),nl=bi([_r],([c])=>te.features.additionalSettingsMenuItems?c.map($=>$.type==="SWITCH"?{...$,onClick:$.onChangeEnabled}:$):[]),gs=(c,$)=>{let L=be(Xn).map(ie=>ie.id!==c?ie:{...ie,...$});Xn.set(L)},hs=c=>{let $=be(Xn);if($.some(L=>L.id===c.id)){me({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),Xn.set($)},rl=c=>{let $=be(Xn);if(!$.some(L=>L.id===c)){me({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),Xn.set($)},la=c=>{jt.next(us.SeekAction.LIVE),me({message:"live switch to low latency "+c}),ue.log("live switch to low latency "+c),k.setLiveLowLatency(c)},ld=(c,$)=>{let L=be(_r).map(ie=>ie.id!==c?ie:{...ie,...$});_r.set(L)},sl=c=>{let $=be(_r);if($.some(L=>L.id===c.id)){me({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),_r.set($)},dd=c=>{let $=be(_r);if(!$.some(L=>L.id===c)){me({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),_r.set($)},Jn=se(z),cd=bi([Jn],([c])=>te.features.additionalContextMenuItems?c:[]),al=(c,$)=>{let L=be(Jn).map(ie=>ie.id!==c?ie:{...ie,...$});Jn.set(L)},ll=c=>{let $=be(Jn);if($.some(L=>L.id===c.id)){me({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),Jn.set($)},da=c=>{let $=be(Jn);if(!$.some(L=>L.id===c)){me({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),Jn.set($)},bt=bi([ct,ee],([c,$],L)=>{L(c&&$)}),$t=()=>{jt.next(us.SeekAction.LIVE),me({message:"switch to active live"}),ue.log("switch to active live"),k.seekTime(0),k.info.playbackState$.getValue()!==mi.PlaybackState.PLAYING&&Kt.actions.internal.togglePlay()},Ji=()=>{ue.log("skip adman"),Ve.skip()},Eo=(c=!0)=>{var ie;(0,ft.assertNonNullable)(Kt),me({message:`switch from ads to video, callPlay: ${c}`}),ue.log("switch from ads to video",{callPlay:c}),yt.set("video"),c&&k.play(),l&&jn(!0,!0);let $=(ie=be(ot))==null?void 0:ie.muted,L=!k.info.muted$.getValue();$!==void 0&&!L&&jn($,!0),ot.set(void 0)},eo=()=>{(0,ft.assertNonNullable)(Kt),me({message:"switch from video to ads"}),ue.log("switch from video to ads"),Kt.actions.internal.pause(),je(),yt.set("ads")},hi=c=>{(0,ft.assertNonNullable)(Kt);let $=c?"LiveWaitingStart":"thumb";ue.log("set live waiting start",{state:c,playerPhase:$}),yt.set($)},Wi=c=>{(0,ft.assertNonNullable)(Kt);let $=c?"LiveWaitingRecover":"thumb";ue.log("set live waiting recover",{state:c,playerPhase:$}),yt.set($)},Ns=c=>{(0,ft.assertNonNullable)(Kt);let $=c?"LiveWaitingRecord":"thumb";ue.log("set live waiting record",{state:c,playerPhase:$}),yt.set($)},ud=()=>((0,ft.assertNonNullable)(Kt),ue.log("get debug text data"),C1(k,J,Kt,Ne.getTraceId())),Kc=()=>((0,ft.assertNonNullable)(Kt),JSON.stringify(Ne.getFinishedSpans())),Mp=()=>((0,ft.assertNonNullable)(Kt),T1(k,J,Kt)),ca=()=>Ie,qc=()=>{me({message:"toggle chromecast"}),ue.log("toggle chromecast"),k.toggleChromecast()},Os=c=>{var L;if((0,ft.assertNonNullable)(Kt),k.info.isEnded$.getValue())return;let $=!c;if(be(Kt.playerPhase)==="ads"){me({message:`pause ads, internalCall: ${$}`}),ue.log("pause ads",{internalCall:$}),Ve.pause();return}me({message:`pause video, internalCall: ${$}`}),ue.log("pause video",{internalCall:$}),$&&((L=a==null?void 0:a.onPause)==null||L.call(a)),k.pause()},dl=c=>{var L;(0,ft.assertNonNullable)(Kt);let $=!c;if(be(Kt.playerPhase)==="ads"){me({message:`play ads, internalCall: ${$}`}),ue.log("play ads",{internalCall:$}),Ve.play();return}me({message:`play video, internalCall: ${$}`}),ue.log("play video",{internalCall:$}),$&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),k.play()},Qc=c=>{(0,ft.assertNonNullable)(Kt);let $=!c;if(be(Kt.playerPhase)==="ads"){me({message:"player cannot be stopped during ads via external method"});return}me({message:`player will be stopped, internalCall: ${$}`}),A==null||A()},Gc=(c,$)=>{(0,ft.assertNonNullable)(Kt),me({message:`first start, show ads: ${c}, internalCall: ${!$}`}),ue.log("first start",{showAds:c,external:$}),c?yt.set("ads"):(yt.set("video"),$?k.play():Kt.actions.internal.togglePlay())},cl=()=>(me({message:"getting time codes"}),f),jc=()=>{let c=cl();if(!c||[0,1].includes(c.length))return;let $=k.info.position$.getValue();return c.find(L=>L.time>$)},Yc=c=>{let $=c;$||($=jc());let L=k.info.position$.getValue();ue.log("seek to next episode",{currentTime:L,...$}),$&&(me({message:"seek to next episode"}),gi($.time,us.SeekAction.EPISODE,!0))},Zc=()=>{let c=cl();if(!c||[0,1].includes(c.length))return;let $=k.info.position$.getValue(),L=c.findIndex(Ae=>Ae.time>$),ie=L===-1?c.length-2:L-2;if(!(ie<0))return c[ie]},Lp=c=>{let $=c;$||($=Zc());let L=k.info.position$.getValue();ue.log("seek to prev episode",{currentTime:L,...$}),$&&(me({message:"seek to prev episode"}),gi($.time,us.SeekAction.EPISODE,!0))},Vp=()=>(me({message:"getting preview thumbs data"}),ue.log("get preview thumbs data",{...v}),v),Ue=async()=>{let c=oe==null?void 0:oe.isActive(),$="none";oe!=null&&oe.isActive()?($="exit",await(oe==null?void 0:oe.exit())):($="request",await(oe==null?void 0:oe.request())),ue.log("toggle picture in picture",{isActive:c,action:$})},_i=(c=-90)=>{ue.log("rotate video",{alphaDiff:c}),Et.update($=>$+c)},ao=se([]);T==null||T.subscribe(c=>{let $=[];for(let L=0;L<c.length;L++){let{range:[ie,Ae],subjects:st}=c[L];L===0&&ie!==0&&$.push({time:0,text:"",interactive:!1,completed:!0}),$.push({time:ie/1e3,text:"",interactive:!0,completed:te.features.interactiveTimeOpenUri?!st.length||st.every(Lt=>Lt.isRemoved):!st.length}),Ae!==1/0&&$.push({time:Ae/1e3,text:"",interactive:!1,completed:!0})}ao.set($)});let ua=se(!1);E==null||E.subscribe(c=>{c&&be($n)&&ui()});let nn=c=>{if(!C)return c;let $=be(ao),L=be(xo),Ae=be(kn)/L,st=$.find(Lt=>Lt.interactive&&!Lt.completed&&Lt.time>Ae);return typeof(st==null?void 0:st.time)=="number"?Math.min(c,st.time-.05):c},C_=()=>{Kt.ui.episodes.panelOpened$.set(!1)},T_=()=>{ue.log("destroy store"),clearTimeout(Si),clearTimeout(si),Xe.unsubscribe(),xi.unsubscribe(),k.destroy(),Ve.destroy(),X==null||X.destroy(),Y==null||Y.destroy(),xe.unsubscribe(),oi==null||oi.disconnect(),oi=null,Fe.destroy()},E_=bi([No,ye,Vi],([c,$,L])=>p.features.doubleForwardAvailable&&!c&&$==="video"&&L),Rp=se(!1),wg=2,Xc=null,Sg=c=>{if(!be(Wn)&&c)return;let $=k.info.currentPlaybackRate$.getValue();c?$!==wg&&(Xc=$,Zi(wg,!1),Rp.set(!0)):(Xc&&Zi(Xc,!1),Rp.set(!1),Xc=null)};ye.subscribe(c=>{c!=="video"&&Sg(!1)});let I_=()=>{Os(!1),Xi.set(!0)},k_=()=>{dl(!1),Xi.set(!1)},Np=!1,A_=()=>{Ur.set(!0),Np=k.info.playbackState$.getValue()===mi.PlaybackState.PLAYING,Os(!1)},P_=()=>{Ur.set(!1),!be(Xi)&&Np&&dl(!1),Np=!1};k.events.playing$.subscribe(()=>{be(Xi)&&Os(!1)});let Kt={interfaceLanguage$:Pe,isCyrillicRelatedInterface$:Oe,initVideo:po,videoId:i,isClip:o,playerPhase:ye,vsid:et,state:{positionExact$:ii,positionWithScrubbing$:yn,duration$:xo,playbackState$:vt,isPlaying$:Wn,isLoaderVisible:yi,bufferedProgress$:Vr,isLive$:pt,canChangePlaybackSpeed$:Vi,isActiveLive$:No,isOldestAvailableLive$:un,isRewindableLive$:pr,isEnded$:Gt,muted$:Vo,volume$:Xo,trafficSavingEnabled$:so,highQualityEnabled$:Ui,autoQualityLimitingAvailable$:dr,availableVideoStreams$:Tr,availableAudioStreams$:Er,videoStream$:Ir,audioStream$:ji,currentQuality$:Kn,isAutoQualityEnabled$:pi,availableQualities$:Mn,currentPlaybackRate$:Ln,availablePlaybackRates$:Oo,currentSubtitle$:go,availableTextTracks$:Bo,availableSubtitlesList$:vn,currentSubtitleCaptions$:Vn,isAutoSubtitleCaptionVisible$:qn,chromecastState$:Ri,chromecastDeviceName$:cn,chromecastConnected$:Cr,currentFormat$:Ro,throughputEstimation$:cr,videoBitrate$:ur,videoSize$:Sr,errorLog$:Se,crashed$:ee,isAudioAvailable$:fs,isAudioDisabled:!!l,canDownload:te.features.download&&!!d,availableSources$:Qn,hasMpegSources$:it,isInteractive:C,showInteractiveGraph:te.features.interactiveGraph,showSeekToInteractive:te.features.seekToInteractive,showPlayPrevChapter:te.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:te.features.interactiveTimeIndicator&&!!be(ao).length,interactiveEpisodes$:ao,isInteractiveTime$:E?li(E):se(!1),isInteractiveExpectation$:ua,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:O,looped$:Rr,loadedMetadata$:ei,isAutoQualityAvailable$:Pr,previewTrackActive:Xi,previewTrackDragInProgress:Ur},ui:{t:ut,controlsVisible:se(!1),touched:se(!1),controls:{prevButton:se(void 0),playButton:se(void 0),replayButton:se(void 0),nextButton:se(void 0),playPrevChapterButton:se(void 0),seekToInteractiveButton:se(void 0),interactiveGraphButton:se(void 0),liveButton:se(void 0),time:se(void 0),episodes:se(void 0),volume:se(void 0),subtitles:se(void 0),settings:se(void 0),context:se(void 0),chromecast:se(void 0),pip:se(void 0),fullscreen:se(void 0),vkLogo:se(void 0),interactiveTimeIndicator:se(void 0),timeline:se(void 0),autoplayNextToggle:se(void 0),additionalButtons:H.length?H.reduce(c=>[...c,se(void 0)],[]):[],disabledControls$:lt},modals:{hotKeyMap:{show:se(!1),data:se({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Bt,isFullscreenOpenedByKeyboard:rt,rotateAlpha:Et,isAutoplay:se(!1),debugPanelVisible:se(!1),episodes:{panelOpened$:se(!1),openedByKeyboard$:se(!1)},contextMenu:{visible$:se(!1),btnRef$:se(void 0),openedByBtnKeyboard$:se(!1),openedByHotKey$:se(!1),lastActiveElem$:se(void 0),showContextMenuBtn$:se(!1),position$:se({top:0,left:0})},playerSize:ti,isMobile:ct,mobileNotReportControlHidden$:bt,icon3DVideoVisible:se(!1),scrubbingInProgress:$n,volumeChangingInProgress:on,is3DVideo:Wt,currentGridType$:na,additionalButtonsDeprecated$:sa,additionalDesktopControlPanelRightButtons$:aa,additionalSettingsMenuItems$:nl,additionalContextMenuItems$:cd,interactiveHideMobileControls:se(!1),overlayContainer$:se(void 0),startedByKeyboard$:se(!1),autoplayNextEnabled$:se(!1),timerNextVideoRunning$:se(!0),settingsMenu:{visible$:se(!1),ref$:se(void 0),openedByBtnKeyboard$:se(!1)},settingsSubMenu:{visible$:se(!1),ref$:se(void 0),name$:se(void 0)},userActionsDisabled:se(!1),hiddenControls:{volume:se(!1),vkLogo:se(!1),pip:se(!1),chromecast:se(!1),settings:se(!1)},isControlsAvailable:Qe,controlBlocks:{topLeft:se(void 0),topRight:se(void 0),middle:se(void 0),bottom:se(void 0),bottomLeft:se(void 0),bottomRight:se(void 0)},videoTitleInfo:se(void 0),doubleForwardOn$:Rp,doubleForwardAvailable$:E_,previewTrackNotificationVisible:se(!1),previewTrackActive:Xi,previewTrackDragInProgress:Ur,previewTrackAvailable:oa,isPreviewTrackHorizontallyAligned:ci},ads:{position:se(0),duration:se(0),playbackState:se("inactive"),canSkip:se(!1),secondsToWatchBeforeSkip:se(0),postrollPassed:se(!1)},webApi:{pictureInPictureApi:oe,annotationsApi:Be,slotsApi:Ze},actions:{internal:{preload:Ho,firstStart:c=>Gc(c,!1),play:()=>dl(!1),pause:()=>Os(!1),togglePlay:Co,toggleMuted:Oi,openSettingsMenu:wo,closeSettingsMenu:mn,openSettingsSubMenu:vi,closeSettingsSubMenu:So,setVolume:c=>Gn(c,!1),setMuted:c=>jn(c,!1),startVolumeChanging:Pi,stopVolumeChanging:ol,setVideoStream:kr,setAudioStream:c=>An(c,!1),setQuality:(c,$)=>Yi(c,$,!1),setTrafficSavingEnabled:(c,$)=>Ai(c,$,!1),setHighQualityEnabled:(c,$)=>en(c,$,!1),setPlaybackRate:Zi,incrementPlaybackRate:Dr,decrementPlaybackRate:Yn,setSubtitle:c=>Zn(c,!1),toggleSubtitle:()=>hr(!1),togglePictureInPicture:Ue,startScrubbing:$e,progressScrubbing:mt,completeScrubbing:Ei,toggleChromecast:qc,switchToActiveLive:$t,switchFromAdsToVideo:Eo,switchFromVideoToAds:eo,skipAd:Ji,setLiveWaitingStart:hi,setLiveWaitingRecover:Wi,setLiveWaitingRecord:Ns,getDebugTextData:ud,getTraceTextData:Kc,getDebugPanelData:Mp,getVideoElement:ca,seekTime:(c,$,L)=>gi(c,$,L),clearDelayedBufferingCheckTimeout:ts,seekEpisodeStartTime:bn,seekToPercent:Uo,getNextEpisode:jc,seekToNextEpisode:Yc,getPrevEpisode:Zc,seekToPrevEpisode:Lp,startLogging:yo,stopLogging:Zo,startCameraManualRotation:dn,stopCameraManualRotation:kt,moveCameraFocusPX:Ht,holdCamera:K,releaseCamera:Vt,getVideoEpisodes:cl,getPreviewThumbsData:Vp,downloadVideo:Ni,addLanguage:qf,setLanguage:Ce,nextMovie:gt,videoRotate:_i,correctSeekTimeToInteractive:nn,replayInteractive:R,setLooped:Nr,reportProblem:gn,setAutoplayNextEnabled:hn,setTimerNextVideoRunning:gr,prevVideoClick:_n,nextVideoClick:Or,nextVideoAnnouncementShow:tt,nextVideoAnnouncementClick:Mt,nextVideoAnnouncementAuto:wi,nextVideoAnnouncementCancel:_o,checkFullscreenSupport:Dt,changeDoubleForwardOn:Sg,closePreviewTrack:k_,previewTrackOpened:I_,previewTrackDragStarted:A_,previewTrackDragFinished:P_},external:{firstStart:c=>Gc(c,!0),play:()=>dl(!0),pause:()=>Os(!0),stop:()=>Qc(!0),seekTime:c=>Hr(c),seekEpisodeStartTime:c=>Fr(c),setPlaybackRate:c=>Rs(c),setAutoQualityLimits:c=>tn(c),setMuted:c=>jn(c,!0),toggleSubtitle:()=>hr(!0),changeSubtitle:vs,setVolume:c=>Gn(c,!0),returnFocusToEpisodes:C_,updateAdditionalSettingsItem:ld,addAdditionalSettingsItem:sl,removeAdditionalSettingsItem:dd,updateAdditionalContextItem:al,addAdditionalContextItem:ll,removeAdditionalContextItem:da,updateAdditionalButton:gs,addAdditionalButton:hs,removeAdditionalButton:rl,setLiveLowLatency:la,hideControls:()=>Xt(!1),showControls:()=>Xt(!0),setQuality:c=>Yi(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Ai(c,"to-video",!0),setHighQualityEnabled:c=>en(c,"to-video",!0),changeAudioStream:mo}},callbacks:a,setUiCallbacks:c=>{ge={...c}},getAdmanWrapper:()=>Ve,getLogger:()=>Ke,getPlayer:()=>k,destroy:T_};return Kt};function Un(t,e,i,o){var f;let r=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:a,right:u}=As(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var Ky=["disabledControls$","additionalButtons"],qy=["interactiveTimeIndicator"],jl=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!Ky.includes(r)){let l=o||qy.includes(r);s.set(Un(t,i,r,l))}}};var sp=async(t,e,i)=>{await Ao(),e&&i&&(i.focus(),t.set(!1))};var Qy=Ee('<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 Fv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function Uv(t,e){F(e,!0);let[i,o]=De(),r=()=>S(a,"$contextMenuVisible$",i),s=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=he(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,y=Q(void 0);ze(()=>{n(y)&&Pt(()=>{p.set(n(y))})});let w=E=>{let R=Zs(E),A=v0(n(y));v.set(A),u.set(R),a.set(!r())},x=()=>{f.set(!0)},C=()=>{f.set(!1)},T=m(()=>r()?"opened":"");zt(t,{get className(){return n(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:x,blur:C,get ariaExpanded(){return r()},get ref(){return n(y)},set ref(E){N(y,E,!0)},children:(E,R)=>{Fv(E,{})},$$slots:{default:!0}}),U(),o()}var Gy=t=>{t.stopPropagation()},jy=M("<div><!> <div></div> <div></div></div>"),Yy={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;}
233
+ }`};function Vv(t,e){F(e,!0),W(t,My);let i=h(e,"isMobile",3,!1),o=m(()=>e.iconState===Lv.ChromecastState.CONNECTED),r=m(()=>e.iconState===Lv.ChromecastState.CONNECTING);var s=Ue(),l=pe(s);{var d=u=>{var f=Ay(),v=_(f),p=_(v),y=_(p);Te(),g(p);var w=P(p);Te(),g(v);var x=P(v),C=_(x),T=_(C);g(C),Te(),g(x),g(f),D(()=>{Qe(y,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Qe(w,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Qe(T,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,f)},a=u=>{var f=Py();let v;var p=_(f),y=P(_(p),5);let w;g(p),g(f),D((x,C)=>{v=ne(f,0,"svelte-8z1bf5",null,v,x),w=ne(y,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:n(r)}),()=>({hidden:!n(o)})]),b(u,f)};V(l,u=>{i()?u(d):u(a,!1)})}b(t,s),U()}var I0=require("@vkontakte/videoplayer-shared/es2018");function cc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,I0.noop),l=ge().ui.t,d=m(()=>e.state===E0.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));zt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{Vv(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var k0=require("@vkontakte/videoplayer-shared/es2018");var Ly=Ee('<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 Rv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Ly();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(3),g(o),b(t,o)}var Vy=Ee('<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 Nv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var Zu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Ry=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),Ny=M('<span class="text svelte-1yhs2ga"> </span>'),Oy=M('<span class="text count svelte-1yhs2ga"> </span>'),Dy=M("<!> <!>",1),By={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 uc(t,e){var X,ve,re;F(e,!0),W(t,By);let[i,o]=Oe(),r=()=>S(w,"$currentGridType$",i),s=()=>S(x,"$openedByKeyboard$",i),l=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),a=h(e,"position",3,0),u=h(e,"duration",3,0),f=h(e,"timeCodes",19,()=>[]),v=ge(),p=(ve=(X=v.callbacks)==null?void 0:X.onEpisodeChanged)!=null?ve:k0.noop,y=!!((re=v.callbacks)!=null&&re.onEpisodeClicked),w=v.ui.currentGridType$,x=v.ui.episodes.openedByKeyboard$,C=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,R=Q(void 0),A=ae=>{var $e,J,De;if(!!(($e=v.callbacks)!=null&&$e.onEpisodeClicked)){let ue=js(ae);x.set(ue),C.set(!0),(De=(J=v.callbacks)==null?void 0:J.onEpisodeClicked)==null||De.call(J,ue)}},I=Q(null),O=m(()=>a()/u());qe(()=>{var Ae;let ae=Zu(n(O),u(),f());ae?((Ae=n(I))==null?void 0:Ae.time)!==ae.time&&(p(ae),N(I,ae,!0)):N(I,null)});let H=m(()=>{var ae;return((ae=n(I))==null?void 0:ae.text)||""}),B=m(()=>eo(r(),"xl")?"FULL":eo(r(),"m")&&w0(r(),"xl")?"COUNT":"SHORT"),z=m(()=>`${E("tooltip_episodes")}: ${n(H)}`),Z=async(ae,Ae,$e)=>{await go(),(ae==null?void 0:ae.getAttribute("aria-expanded"))==="false"&&Ae&&!$e&&Pt(()=>{x.set(!1),ae.focus()})};qe(()=>{Z(n(R),s(),l())});var se=Ue(),q=pe(se);{var de=ae=>{let Ae=m(()=>d()?"px-0":""),$e=m(()=>!y);zt(ae,{get className(){var J;return`w-max btn-full-opacity btn-jc-l ${(J=n(Ae))!=null?J:""}`},testId:"btn-episodes",click:A,get disabled(){return n($e)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(R)},set ref(J){N(R,J,!0)},children:(J,De)=>{var ue=Ue(),k=pe(ue);{var Ge=j=>{var ie=Ry(),Be=pe(ie),Ze=_(Be,!0);g(Be);var me=P(Be,2),te=_(me);Nv(te,{}),g(me),D(()=>fe(Ze,n(H))),b(j,ie)},Pe=j=>{var ie=Dy(),Be=pe(ie);Rv(Be,{});var Ze=P(Be,2);{var me=Ie=>{var xe=Ny(),He=_(xe,!0);g(xe),D(()=>fe(He,n(H))),b(Ie,xe)},te=(Ie,xe)=>{{var He=Xe=>{var je=Oy(),Ke=_(je,!0);g(je),D(()=>fe(Ke,f().length)),b(Xe,je)};V(Ie,Xe=>{n(B)==="COUNT"&&Xe(He)},xe)}};V(Ze,Ie=>{n(B)==="FULL"?Ie(me):Ie(te,!1)})}b(j,ie)};V(k,j=>{d()?j(Ge):j(Pe,!1)})}b(J,ue)},$$slots:{default:!0}})};V(q,ae=>{n(I)&&ae(de)})}b(t,se),U(),o()}var sm=require("@vkontakte/videoplayer-shared/es2018");var ui=require("@vkontakte/videoplayer-core/es2018"),mt=require("@vkontakte/videoplayer-shared/es2018"),cs=require("@vkontakte/videoplayer-statistics/es2018");var et=require("@vkontakte/videoplayer-shared/es2018"),to=require("@vkontakte/videoplayer-shared/es2018"),Hy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Xu=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 to.Subject,loadStarted$:new to.Subject,loadEnded$:new to.Subject,loadError$:new to.Subject,ready$:new to.Subject,slotRequested$:new to.Subject,started$:new to.Subject,timeRemained$:new to.Subject,paused$:new to.Subject,resumed$:new to.Subject,ended$:new to.Subject,empty$:new to.Subject,skipped$:new to.Subject,clicked$:new to.Subject,closed$:new to.Subject,error$:new to.Subject};this.loadAdman=e=>(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,et.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,et.now)()]}),i(),this.events.loadEnded$.next()):(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,et.now)()]}),o())};(0,to.addScript)(Hy,e,this.loadTimeout).then(()=>{et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,et.now)()]}),window.AdmanHTML?(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,et.now)()]}),i(),this.events.loadEnded$.next()):(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,et.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(l=>{et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,et.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,et.now)()]}),i(),this.events.loadEnded$.next()):(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,et.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,et.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,et.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,et.now)()]}),!d&&(window.AdmanHTML?(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,et.now)()]}),i(),this.events.loadEnded$.next()):(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,et.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,et.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,et.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?be(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,et.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;et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,et.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(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,et.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;et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,et.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,et.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,et.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,et.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")=>{et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,et.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,et.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}async initAdman(e){var R,A;if(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,et.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:s,adsVideoElement:l,slotId:d,params:a={},paramsOverride:u={},duration:f,externalApi:v}=e;this.externalApi=v;let p,y=this.playerState&&be(this.playerState.vsid);y&&(this.isVsidOriginal?p=y:p=parseInt(y,36));let{isEmbed:w,immediateOrigin:x}=(0,et.detectEmbed)(),C=(R=w?x:window.location.href)!=null?R:window.location.href,T={...a,dl:encodeURIComponent(C),autoplay:r?1:0,player_width:i,player_height:o,...p?{request_id:p}:{},duration:f,...u};T=Object.fromEntries(Object.entries(T).filter(([I,O])=>(0,et.isNonNullable)(O)));let E={slot:d,wrapper:s,videoEl:l,videoQuality:o,params:T,browser:{mobile:!1}};try{let I=new window.AdmanHTML;if(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.setDebug(!1),(A=this.externalApi)!=null&&A.videoGetAds){let O=await this.safeExternalCall(this.externalApi.videoGetAds,T);O&&(delete E.slot,delete E.params,Object.assign(E,{json:O}))}I.init(E),this.adman=I,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(I){et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[(0,et.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,r,s;if(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,et.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(r=this.actions).switchFromAdsToVideo)==null||s.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,et.now)()]}),this.adsState){this.log({message:"toggle play"});let i=be(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(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,et.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(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,et.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,et.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(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,et.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(et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,et.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,r,s,l,d,a,u,f,v,p;et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,et.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),(r=this.adman)==null||r.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,to.clearVideoElement)(this.videoElement),this.isDestroyed=!0}async safeExternalCall(e,...i){var o;try{return await e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}}};var A0=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 Ov=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let s of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new Ju,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new Dv,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Ju=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${r}`;return s+l+d+a}},Dv=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let u=["<",">"].reduce((f,v)=>{let p=l.indexOf(v,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new Ju;for(let l of r)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},P0=Ov;var tp=require("@vkontakte/videoplayer-shared/es2018"),Fa,Li,Bv=0,Hv=!1,M0="",L0=(t,e=0,i=0)=>t<e&&t<i,ep=(t,e=0,i=0)=>t>=e&&t<=i,Fy=(t,e=0,i=0)=>t>e&&t>i,V0=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:f})=>ep(t,u,f));let s=t>=Bv,l=t<Bv;if(Bv=t,l&&(Hv=!1),(0,tp.isNonNullable)(Fa)&&ep(t,Fa.startTime,Fa.endTime)&&M0===e.value)return Fa;if(!(0,tp.isNonNullable)(Li)&&(r!=null&&r.length)&&!Hv){Li=r.find(({startTime:u,endTime:f})=>ep(t,u,f)||s&&L0(t,u,f)),Fa=void 0,!(0,tp.isNonNullable)(Li)&&r[r.length-1].endTime<t&&(Hv=!0);return}else{if(ep(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime))return Fa=Li,Li=void 0,M0=e.value,Fa;(s&&Fy(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime)||l&&L0(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime))&&(Li=void 0)}};var ip={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},Uy={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},pc=t=>{var e,i;return(i=(e=ip[t])!=null?e:ip[Uy[t]])!=null?i:void 0};var R0=require("@vkontakte/videoplayer-shared/es2018"),UD=require("@vkontakte/videoplayer-statistics/es2018"),op=class{constructor(e,i,o,r=new R0.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}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 fc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(fc||{});var ds=t=>t!=null?t:0,Is=(t,e)=>{var r,s;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(ds(i==null?void 0:i.top)-ds(o==null?void 0:o.top)),left:Math.round(ds(i==null?void 0:i.left)-ds(o==null?void 0:o.left)),bottom:Math.round(ds(i==null?void 0:i.bottom)-ds(o==null?void 0:o.top)),right:Math.round(ds(i==null?void 0:i.right)-ds(o==null?void 0:o.left))}},Kl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:ds(e==null?void 0:e.width),height:ds(e==null?void 0:e.height)}};var np="off";var ql=t=>!!(Math.round(Math.abs(t)/90)%2);var N0=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:y,player:w,disabledControls:x,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:R,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:O,additionalButtons:H,additionalSettingsMenuItems:B,additionalContextMenuItems:z,playPrevVideo:Z,playNextVideo:se,onVideoChanged:q,looped:de=!1,statistics:X,saveRate:ve,internalsExposure:re,playerView:ae,playerId:Ae})=>{var Cg,Tg,Eg;let $e={...y,configName:[...(Cg=y.configName)!=null?Cg:[],"ui"],isAudioDisabled:l,live:{...(Tg=y.live)!=null?Tg:{},isLiveCatchUpMode:!!r}},J=p,De=mt.TracerFactory.createRootTracer(J.features.tracer),ue=De.createComponentTracer("Store"),k=w||new ui.Player($e,De,{playerId:Ae});re==null||re.expose({corePlayer:k});let Ge=new mt.Logger,Pe=new Xu(Ge,{loadTimeout:J.ads.loadTimeout,initTimeout:J.ads.initTimeout,runtimeTimeout:J.ads.runtimeTimeout,useAdmanFromNPM:J.ads.useAdmanFromNPM,volumeMultiplier:J.ads.volumeMultiplier,isVsidOriginal:J.ads.isVsidOriginal}),j=Pa.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,Be=u==null?void 0:u.annotationsApi,Ze=u==null?void 0:u.slotsApi,me=Ge.createComponentLog("Store"),te,Ie,xe={},He=new Iu,Xe=new mt.Subscription,je="",Ke=le(!1),Ye=X&&X.oneStat?ai(X.oneStat.vsid$):Er(void 0),Dt=le(qs()),rt=le(!1),Bt=()=>i0(document,ui.clientChecker.device.isIOS),qt=(Eg=ie==null?void 0:ie.info.isActive$)!=null?Eg:new mt.ValueSubject(!1),Et=le(0),Jt=le(!1),Wt=le(!1),Se=le([]),ye=(0,mt.merge)(k.events.fatalError$,k.events.managedError$).subscribe(c=>Se.update($=>[...$,c])),ee=Er(!1,c=>{let $=k.events.fatalError$.subscribe(()=>c(!0));return()=>$.unsubscribe()}),Ce=async c=>{var oe;let $=Object.values(mt.InterfaceLanguage).includes(c);if(J.downloadVKLanguages&&($&&J.updateBuiltinLanguages||!Qf(c))){let Me;try{Me=await(0,mt.loadVKLangPack)(c,v1,m1)}catch(dt){(oe=X==null?void 0:X.oneStat)==null||oe.logError({errorType:"VKLangPack",fatal:!1}),j==null||j.report(dt,{errorType:"VKLangPack",fatal:!1})}Me&&(qf({language:c,pack:Me,fallback:J.defaultLanguage}),Le.set(c))}Qf(c)&&Le.set(c)},Le=le(t),Mt=le(e);Ce(t);let Ve=(c,$)=>{let L=be(Le);return Gf(L,c,$,J.defaultLanguage)},lt=le("thumb");lt.subscribe(c=>{c==="ads"&&k.info.playbackState$.getValue()&&st()});let Tt=(()=>{let c=$i([ee,lt],([$,L])=>$?"crashed":L);return{...c,is:$=>be(c)===$}})(),we=le(),st=()=>{we.set({muted:k.info.muted$.getValue()})},ze=(()=>{let c=le(new Set(x));return{...c,add:$=>{c.update(L=>new Set([...L].concat($)))},remove:$=>{c.update(L=>{let oe=[...L];return new Set(Array.isArray($)?oe.filter(Me=>!$.includes(Me)):oe.filter(Me=>Me!==$))})},includes:$=>{let L=be(c);return Array.isArray($)?$.every(oe=>L.has(oe)):L.has($)}}})(),ut=le({width:0,height:0}),Qt=null,_i=k.info.isBuffering$,pi=Er(_i.getValue(),c=>{let $=_i.subscribe(L=>{L&&Qt===null?Qt=window.setTimeout(()=>{c(_i.getValue()),Qt=null},J.loaderDelay):c(L)});return()=>{$.unsubscribe(),Qt&&clearTimeout(Qt)}});ue.log("create store"),me({message:"create store"});let yi=c=>{let $=c.container,L=()=>{$t=new MutationObserver(Me=>{let{removedNodes:dt}=Me[0];dt.length&&$.append(k.experimental.element$.getValue())}),$t.observe($,{childList:!0})},oe=k.experimental.element$.getValue();if(oe)$.append(oe),L();else{let Me=k.experimental.element$.pipe((0,mt.filter)(dt=>!!dt),(0,mt.once)()).subscribe(dt=>{$.append(dt),L()});Xe.add(Me)}},oo=c=>{me({message:`init video, config: ${JSON.stringify(c)}`}),C?yi(c):(mt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,mt.now)()]}),k.initVideo(c)),ue.log("init video",{isInteractive:C}),c.subtitles&&k.setExternalTextTracks(c.subtitles),te=c,je=c.subtitlesForcedLanguage||""},no=new mt.Subject,di=c=>no.next(c),gt=new mt.Subject,bi=new mt.Subject,li=new mt.Subject,$t=null,fi={actionRewind$:gt,actionSeek$:bi,inPiP$:qt,inFullscreen$:new mt.Observable(c=>Dt.subscribe($=>c.next($))),actionSetSubtitle$:li,nextMovie$:no},Yt={actionSeek$:bi,playerSize$:new mt.Observable(c=>ut.subscribe($=>c.next($))),inPiP$:qt,inFullscreen$:new mt.Observable(c=>Dt.subscribe($=>c.next($))),isLoaderVisible$:new mt.Observable(c=>pi.subscribe($=>c.next($)))};if(X){let{oneStat:c,thinOneStat:$,mediascopePixel:L,statSubscription:oe}=X;c&&(C||oe.add(c.attachTo(k)),oe.add(c.attachToUi(fi)),oe.add(c.attachToAds(Pe.events)),c.authorize(s).catch(Me=>{me({message:`onestat auth error ${String(Me)}`})}),L&&L.attachTo(k)),$&&(oe.add($.attachTo(k,Pe.events)),oe.add($.attachToUi(Yt)),oe.add($.attachToAds(Pe.events)),$.updateContext({isMobile:be(Ke)}),$.authorize(s))}if(j){let c=new mt.Subscription,$=(L,oe)=>c.add(L.subscribe(oe));if($(k.events.managedError$,L=>{j.logIError(L)}),$(k.events.fatalError$,L=>{j.logIError(L,!0)}),X){let{oneStat:L}=X;L&&$(L.experimental.error$,oe=>{j.logIError(oe)})}j.sentrySubscription.add(c)}let wt=()=>{if(ui.clientChecker.device.isIOS&&Ie)try{o0(Ie)}catch(c){me({message:`exitIosSafariFullscreen failed: ${c}`})}};Xe.add(k.experimental.element$.subscribe(c=>{c&&(Ie=c,c.classList.add("player-media"),La(ie)&&ie.updateVideoElement(),C&&c.setAttribute("pip","false"),ae==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(k.events.ended$.subscribe(()=>{var c;wt(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(k.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(k.events.started$.subscribe(async()=>{var $,L;La(ie)&&await(ie==null?void 0:ie.revealPictureInPicture());let c=k.info.muted$.getValue();($=a==null?void 0:a.onStarted)==null||$.call(a),(L=xe.onStarted)==null||L.call(xe,c)})).add(k.events.willSeek$.subscribe(({from:c,to:$})=>{var L;(L=a==null?void 0:a.onSeek)==null||L.call(a,c,$)})).add(k.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(k.info.position$.subscribe(c=>{var L;let $=k.info.duration$.getValue();isFinite($)&&$>0&&((L=a==null?void 0:a.onTimeupdate)==null||L.call(a,$,c),Pe.setPosition(c,$))})).add(k.events.fatalError$.subscribe(c=>{var $;($=a==null?void 0:a.onCrashed)==null||$.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.fetcherRecoverableError$.subscribe(c=>{var $;($=a==null?void 0:a.onRecoverableError)==null||$.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.loadedMetadata$.subscribe(()=>{Jt.set(!0)})).add(k.info.is3DVideo$.subscribe(c=>{Wt.set(c)})).add(k.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&ze.add(Hd),ze.add("PLAY_BUTTON")):ze.remove("PLAY_BUTTON"))})).add(k.info.liveTime$.subscribe(c=>{var $;($=a==null?void 0:a.onLiveTime)==null||$.call(a,c)})).add(k.info.isStalled$.subscribe(c=>{var $;($=a==null?void 0:a.onStalledChanged)==null||$.call(a,c)})).add(k.info.isLiveEnded$.subscribe(c=>{var $;return c&&(($=a==null?void 0:a.onLiveEnded)==null?void 0:$.call(a))})).add(Pe.events.loadStarted$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:$.call(c)})).add(Pe.events.loadEnded$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:$.call(c)})).add(Pe.events.loadError$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:$.call(c)})).add(Pe.events.init$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:$.call(c)})).add(Pe.events.ready$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:$.call(c)})).add(Pe.events.started$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onStarted)==null?void 0:L.call($,c)})).add(Pe.events.timeRemained$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onTimeRemained)==null?void 0:L.call($,c)})).add(Pe.events.ended$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onCompleted)==null?void 0:L.call($,c)})).add(Pe.events.empty$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:$.call(c)})).add(Pe.events.clicked$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onClicked)==null?void 0:L.call($,c)})).add(Pe.events.closed$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onClosed)==null?void 0:L.call($,c)})).add(Pe.events.error$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onError)==null?void 0:L.call($,c)})).add(Pe.events.paused$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:$.call(c)})).add(Pe.events.resumed$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:$.call(c)}));let Je=new mt.Subscription,Ti=()=>{var dt,Vt,Ft;let{debugLog:c}=J,$,L="#9df7b7",oe="#efd169";if(c&&c!==!0){let{colors:Gt}=c;$=c.tag,L=(dt=Gt==null?void 0:Gt[0])!=null?dt:L,oe=(Ft=(Vt=Gt==null?void 0:Gt[1])!=null?Vt:Gt==null?void 0:Gt[0])!=null?Ft:oe}let Me=$?`: ${$}`:"";Je.add(k.events.log$.subscribe(Gt=>{console.debug(`%c sdk${Me} `,`background:${L};`,`sdk component: ${Gt.component}`,Gt.message)})).add(Ge.log$.subscribe(Gt=>{console.debug(`%c ui${Me} `,`background:${oe};`,`ui component: ${Gt.component}.`,Gt.message)}))},yo=()=>{Je.unsubscribe()},Wo=(c,$)=>{ue.log("start camera manual rotation",{mx:c,my:$}),k.startCameraManualRotation(c,$)},an=(c=!1)=>{ue.log("stop camera manual rotation",{immediate:c}),k.stopCameraManualRotation(c)},It=(c,$,L)=>{ue.log("move camera focus px",{xpx:c,ypx:$,dt:L}),k.moveCameraFocusPX(c,$,L)},Ht=()=>{k.holdCamera()},K=()=>{k.releaseCamera()},kt=Er(k.info.position$.getValue(),c=>{let $,L,oe=()=>{let Me=k.info.playbackState$.getValue(),dt=k.info.isLive$.getValue(),Vt=k.info.duration$.getValue(),Ft=k.info.position$.getValue();if(Me&&[ui.PlaybackState.PLAYING,ui.PlaybackState.PAUSED].includes(Me)){let Gt=dt?Ft-Vt:k.getExactTime();Gt!==L&&c(Gt),L=Gt}$=requestAnimationFrame(oe)};return oe(),()=>cancelAnimationFrame($)}),ii=ai(k.info.playbackState$),ht=ai(k.info.currentBuffer$),At=ai(k.info.isEnded$),jt=ai(k.info.isLive$),pt=J.features.playbackRate?ai(k.info.canChangePlaybackSpeed$):Er(!1),Hi=ai(k.info.liveBufferTime$),Fi=ai(k.info.volume$),Ko=ai(k.info.muted$),xo=ku(k.info.predefinedQualityLimitType$.pipe((0,mt.map)(c=>c===ui.PredefinedQualityLimits.TRAFFIC_SAVING)),k.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.TRAFFIC_SAVING),ro=ku(k.info.predefinedQualityLimitType$.pipe((0,mt.map)(c=>c===ui.PredefinedQualityLimits.HIGH_QUALITY)),k.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.HIGH_QUALITY),Ui=ai(k.info.autoQualityLimitingAvailable$),kr=ai(k.info.availableQualities$),ho=ai(k.info.availableQualitiesFps$),so=ai(k.info.chromecastState$),zi=ai(k.info.chromecastDeviceName$),qo=ai(k.info.currentFormat$),Qo=ai(k.info.throughputEstimation$),ar=ai(k.info.videoBitrate$),lr=ai(k.info.intrinsicVideoSize$),dr=ai(k.info.duration$),ps=ai(k.info.isAudioAvailable$),fs=()=>{Qt&&clearTimeout(Qt),Qt=null},ln=$i([dr,jt],([c,$])=>$?-c:c),dn=$i([ii],([c])=>c===ui.PlaybackState.PLAYING),qn=ai(k.info.atLiveEdge$),Go=ai(k.info.atLiveDurationEdge$),jo=ai(k.info.position$),cr=$i([jo,dr],([c,$])=>isFinite(c)&&isFinite($)&&!!$),ur=$i([so],([c])=>c===ui.ChromecastState.CONNECTED),Ar=ai(k.info.availableVideoStreams$),pr=J.features.audioLanguages?ai(k.info.availableAudioStreams$):Er([]),jr=ai(k.info.currentVideoStream$),fr=ai(k.info.currentAudioStream$),ao=c=>{c.language&&Uf(c.language),k.setVideoStream(c)},vr=(c,$)=>{k.setAudioStream(c),Zt($)&&(c.language&&Uf(c.language),J.features.userVideoPrefs&&i&&Kf(J.userSalt,String(i),{audioTrackId:c.id}))},An=c=>{let $;if(c.length===1&&($=c.at(0)),$!=null||($=c.find(oe=>"isDefault"in oe&&oe.isDefault)),J.features.userVideoPrefs&&i){let oe=Vu(J.userSalt,String(i));if(oe!=null&&oe.audioTrackId){let Me=c.find(dt=>dt.id===oe.audioTrackId);$=Me!=null?Me:$}}let L=F1();return L&&($!=null||($=c.find(({language:oe})=>L===oe))),$!=null||($=c.at(0)),$},Pn=c=>{ue.log("change audio stream",{id:c});let $=k.info.availableAudioStreams$.getValue().find(L=>L.id===c);$&&vr($,!0)},lo=!1;Xe.add(k.info.availableAudioStreams$.subscribe(c=>{if(!lo&&c.length){let $=An(c);$&&(k.setAudioStream($),lo=!0)}})),pr.subscribe(c=>{var $;($=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||$.call(a,c.map(({label:L="",id:oe="",language:Me=""})=>({label:L,language:Me,id:oe})))}),fr.subscribe(c=>{var $;return c&&(($=a==null?void 0:a.onAudioStreamChanged)==null?void 0:$.call(a,c.id))});let mr=!1;Xe.add(k.info.availableVideoStreams$.subscribe(c=>{if(!mr&&c.length){let $=An(c);$&&(k.setVideoStream($),mr=!0)}}));let Yo=le(void 0),yt=ai(k.info.isAutoQualityEnabled$,c=>c&&Yo.set(void 0)),vi=ai(k.info.currentQuality$,()=>Yo.set(void 0)),gr=$i([Yo,vi],([c,$])=>c!=null?c:$),Qn=$i(qo,c=>c!==ui.VideoFormat.MPEG),Yr=$i([kr,ho,yt,gr,Qn],([c,$,L,oe,Me])=>{let dt=[];Me&&dt.push({value:"auto",displayValue:Ve("auto_quality_option"),selected:L});let Vt=c.filter(Ft=>!(0,mt.isInvariantQuality)(Ft));for(let Ft of Vt){let Gt=$[Ft];dt.push({value:Ft,displayValue:`${Ft}${Gt?A0(Gt):""}`,selected:L?!1:Ft===oe})}return dt}),Zo=ai(k.info.currentPlaybackRate$),Mn=$i([Zo,qn,Go],([c,$,L])=>{let oe=L||C?1:J.controls.playbackRateMin,Me=$?1:J.controls.playbackRateMax,dt=J.controls.playbackRateStep,Vt=[];for(let Ft=oe;Ft<=Me;Ft+=dt)Vt.push({value:Ft,displayValue:Ft===1?Ve("playback_rate_1"):Ve("playback_rate",{multiplier:Ft.toString(10)}),selected:c===Ft});return Vt}),Ii={displayValue:Ve("subtitles_off"),value:np,language:""},Wi=le({...Ii}),Xo=J.features.subtitles?ai(k.info.availableTextTracks$):Er([]),Gn=A1(),cn=$i([Xo,Wi],([c,$],L)=>{var dt;let oe=[],Me=c.find(({id:Vt})=>Vt===$.value);if(Me!=null&&Me.url){let[,Vt]=(dt=Gn.find(Me.url))!=null?dt:[];if(Vt){L(Vt);return}He.download(Me.url).then(Ft=>{if(!Ft||He.isDestroyed())return;let Gt=new P0,Ns=Me.language;if(Ns){let A_=!!Me.isAuto,P_=Gt.parse(Ft,Ns);oe.push({lang:Ns,subtitles:P_,isAuto:A_,id:Me.id})}Gn.add(Me.url,oe),be(Wi).value===$.value&&L(oe)}).catch(Ft=>{var Gt;(Gt=X==null?void 0:X.oneStat)==null||Gt.logError({errorType:"Subtitles download",fatal:!1}),j==null||j.report(Ft,{errorType:"Subtitles download",fatal:!1})})}L(oe)}),un=$i([Zo,dn,Wi],([c,$,L],oe)=>{let Vt;if(k.info.isLive$.getValue()&&$&&L.value!==Ii.value){let Gt=()=>{let Ns=1e3/(3*c);Vt=setTimeout(Gt,Ns),oe(Date.now())};return Gt(),()=>clearTimeout(Vt)}}),jn=$i([Xo,Wi],([c,$])=>{if(!c.length)return[];let L=[];for(let{language:oe,isAuto:Me,id:dt}of c){let Vt=oe&&pc(oe);oe&&Vt&&L.push({displayValue:Me?Ve("subtitles_auto",{language:Vt}):Vt,value:dt,selected:($==null?void 0:$.value)===dt,isAuto:Me,language:oe})}return L.length?(L.unshift({...Ii,selected:($==null?void 0:$.value)===Ii.value}),L):[]}),pn={available:[],prev:[]},Ln=()=>{var $,L;let c=k.experimental.getCurrentTime$.getValue();return(L=($=c==null?void 0:c())!=null?$:Ie==null?void 0:Ie.currentTime)!=null?L:0},wo=$i([kt,Wi,cn,un],([c,$,L,oe])=>{var dt;let Me=k.info.isLive$.getValue();if(Me&&pn.prev!==L){let Vt=L.find(({id:Gt})=>Gt===$.value),Ft=pn.prev.find(({id:Gt})=>Gt===$.value);if(Vt){let Gt={...Vt,subtitles:[...(dt=Ft==null?void 0:Ft.subtitles)!=null?dt:[],...Vt.subtitles]};pn.available=[Gt],pn.prev=L}}if($&&$.value!==Ii.value){let Vt=Me?Ln():c,Ft=Me?pn.available:L;return V0(Vt,$,Ft,Me)}}),hr=$i([wo],([c])=>c!=null&&c.texts?c.texts:[]);Xe.add(Wi.subscribe(c=>{var $,L;if(c.value===Ii.value)($=a==null?void 0:a.onSubtitleOff)==null||$.call(a);else{let oe=Object.entries(ip).find(([Me,dt])=>dt===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,oe?oe[0]:"",c.value)}}));let Pr=le(!0),Vn=$i([ht,ln,jo,Hi],([c,$,L,oe])=>{var Ft;let Me=(Ft=c==null?void 0:c.end)!=null?Ft:0;if(!oe)return Me/$;let Vt=-L+oe-$;return(Me-Vt)/$}),Rn=ai(k.info.availableSources$),Mr=$i([Rn],([c])=>Object.keys((c==null?void 0:c[ui.VideoFormat.MPEG])||{}).length>0),_r=()=>{var L,oe,Me;let c=Object.keys(((oe=(L=k.info.availableSources$)==null?void 0:L.getValue())==null?void 0:oe[ui.VideoFormat.MPEG])||{}),$=(0,mt.getHighestQuality)(c)||mt.VideoQuality.Q_144P;return(Me=te.sources[ui.VideoFormat.MPEG])==null?void 0:Me[$]},ot=()=>{var $;let c=_r();if(c)ue.log("download video",{url:c}),E1(c,(($=te==null?void 0:te.meta)==null?void 0:$.title)||"video");else{let L="There is no URL for download video";ue.log("download video",{message:L}),me({message:L})}},ni=()=>{me({message:"toggle muted"});let c=k.info.muted$.getValue();k.info.volume$.getValue()===0&&!c?Nn(co(),!1):Jo(!c,!1)},Vi=()=>{var c;if(Kt.ui.settingsMenu.visible$.set(!1),!be(Kt.ui.settingsSubMenu.visible$)){let $=be(Kt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&$){let oe=Kl($),Me={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:oe,position:Me,name:"settings"})}}ue.log("close settings menu")},Ri=async(c,$=()=>Promise.resolve())=>{var Me;Kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Kt.ui.settingsMenu.visible$.set(!0),await $();let L=be(Kt.ui.settingsMenu.ref$),oe=la();if((Me=a==null?void 0:a.uiInfo)!=null&&Me.onSettingsMenu&&L&&oe){let Vt=Kl(L),Ft=Is(L,oe);a.uiInfo.onSettingsMenu({visible:!0,size:Vt,position:Ft,name:"settings"})}ue.log("open settings menu",{wasOpenedByKeyboard:c})},fn=(c,$=!1)=>{var dt;Kt.ui.settingsSubMenu.visible$.set(!1);let L=be(Kt.ui.settingsMenu.ref$),oe=la(),Me=be(Kt.ui.settingsMenu.visible$);if((dt=a==null?void 0:a.uiInfo)!=null&&dt.onSettingsMenu&&L&&oe)if(Me&&!$){let Ft=Kl(L),Gt=Is(L,oe);a.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:Gt,name:"settings"})}else{let Ft=Kl(c),Gt={top:0,left:0,bottom:0,right:0},Ns=be(Kt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Ft,position:Gt,name:Ns})}ue.log("close settings sub menu")},So=(c,$)=>{var oe;Kt.ui.settingsSubMenu.visible$.set(!0),Kt.ui.settingsSubMenu.ref$.set($),Kt.ui.settingsSubMenu.name$.set(c);let L=la();if((oe=a==null?void 0:a.uiInfo)!=null&&oe.onSettingsMenu&&$&&L){let dt=Kl($),Vt=Is($,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:dt,position:Vt})}ue.log("open settings sub menu",{name:c})},co=()=>{var $;let c=Math.max(J.volumeMinRestore,($=Au())!=null?$:0);return c===0?J.volumeDefault:c},Zt=c=>{let $=J.features.savePreferredStatesOnUserActionOnly;return!$||$&&!c},Nn=(c,$)=>{let L=c===0?co():c,oe=k.info.muted$.getValue();me({message:`set volume, volume: ${c}, preferredVolume: ${L}`});let Me=!l||Tt.is("ads");oe&&c>0&&Me&&(oe=!1,Zt($)&&Hf(!1)),k.setVolume(c,oe),Pe.setVolume(c),Zt($)&&Rf(L)},Jo=(c,$)=>{let L=k.info.volume$.getValue();me({message:`set muted, currentVolume: ${L}, mute: ${c}`});let oe=Tt.is("ads");if(k.setMuted(c,oe),Pe.setVolume(c?0:L),Zt($)&&(!oe||!c)&&Hf(c),!c&&L===0){let Me=co();k.setVolume(Me),Zt($)&&Rf(Me),Pe.setVolume(Me)}},br=le(!1),Zr=c=>{var $,L;ue.log("set looped",{isLooped:c}),br.set(c),k.setLooped(c),(L=($=a==null?void 0:a.uiInfo)==null?void 0:$.onLoopedChanged)==null||L.call($,c)};Zr(de);let Xr=()=>{var c,$;($=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||$.call(c)},Jr=(c,$=!1)=>{var L;me({message:`set autoplayNextEnabled, value: ${c}`}),ue.log("set autoplay next enabled",{autoplayNextEnabled:c}),Kt.ui.autoplayNextEnabled$.set(c),W1(c),$&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},vn=c=>{me({message:`set timerNextVideoRunning, value: ${c}`}),ue.log("set timer next video running",{timerNextVideoRunning:c}),Kt.ui.timerNextVideoRunning$.set(c)},mn=(c=!0)=>{var L;let $=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{$=(L=a==null?void 0:a.onPrevVideoClick)==null?void 0:L.call(a)}catch(oe){me({message:"onPrevVideoClick callback failed to execute"})}q(!0),$&&Z()},$r=(c=!0)=>{var L;let $=!0;if(c&&(a!=null&&a.onNextVideoClick))try{$=(L=a==null?void 0:a.onNextVideoClick)==null?void 0:L.call(a)}catch(oe){me({message:"onNextVideoClick callback failed to execute"})}q(!1),$&&se()},gn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Lr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},it=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Lt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},xi=()=>{k.prepare()},_o=()=>{(0,mt.assertNonNullable)(Kt);let c=be(Kt.ui.controls.disabledControls$),$=be(Kt.playerPhase),L={playerPhase:$,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(me({message:"toggle play"}),$==="ads"){L.action="play",ue.log("toggle adman play",L),Pe.togglePlay();return}let oe=()=>{var dt;me({message:"toggle play, call player.play"}),L.action="play",k.play(),(dt=a==null?void 0:a.onPlay)==null||dt.call(a)},Me=()=>{var dt;me({message:"toggle play, call player.pause"}),L.action="pause",k.pause(),(dt=a==null?void 0:a.onPause)==null||dt.call(a)};if(k.info.isEnded$.getValue()){if(me({message:"toggle play, video ended, seek to 0"}),gt.next(),bi.next(cs.SeekAction.REWIND),C){R==null||R();return}k.seekTime(0),oe()}else k.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING?oe():Me();ue.log("toggle play",L)},bo=(c,{changeReason:$="default",appliesTo:L="to-video"}={},oe)=>{me({message:`set quality, quality: ${c}`}),ue.log("set quality",{quality:c}),k.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Me}=J.features;Pu(),c!=="auto"?(Me?(Mu({type:"exact_quality",quality:c,videoId:i},L),k.setPredefinedQualityLimits(ui.PredefinedQualityLimits.UNKNOWN)):Nf(i,c),Yo.set(c),k.setQuality(c)):Me&&$==="default"&&(hn("auto_quality",L,oe),be(xo)&&uo(!1,void 0,oe),be(ro)&&Yi(!1,void 0,oe))},uo=(c,$="as-default",L)=>{me({message:`set trafficSavingEnabled, value: ${c}`}),ue.log("set traffic saving enabled",{trafficSavingEnabled:c});let oe=c?ui.PredefinedQualityLimits.TRAFFIC_SAVING:ui.PredefinedQualityLimits.UNKNOWN;J.features.qualityDetailsSubMenuEnabled?(Ni(oe,$,L),Ud(!1)):(k.setPredefinedQualityLimits(oe),Zt(L)&&Ud(c))},Yi=(c,$="as-default",L)=>{me({message:`set highQualityEnabled, value: ${c}`}),ue.log("set high quality enabled",{highQualityEnabled:c}),Ni(c?ui.PredefinedQualityLimits.HIGH_QUALITY:ui.PredefinedQualityLimits.UNKNOWN,$,L)},Ni=(c,$,L)=>{c!==ui.PredefinedQualityLimits.UNKNOWN&&(be(Ui)&&!be(yt)&&bo("auto",{appliesTo:$,changeReason:"limit-changed"},L),hn(c,$,L)),k.setPredefinedQualityLimits(c)},hn=(c,$,L)=>{Zt(L)&&(Mu({type:c,videoId:i},$),$==="as-default"&&Mu({type:c,videoId:i},"to-video"))},po=(c,$=!0)=>{ue.log("set playback rate",{playbackRate:c}),k.setPlaybackRate(c),J.features.saveRate&&ve&&!k.info.isLive$.getValue()&&$&&U1(c)},Mo=()=>{let c=be(Mn),$=c.findIndex(({selected:oe})=>oe);if($===c.length-1)return;let L=c[$+1];po(L.value)},Lo=()=>{let c=be(Mn),$=c.findIndex(({selected:oe})=>oe);if($===0)return;let L=c[$-1];po(L.value)},Yn=(c={...Ii,selected:!1},$)=>{ue.log("set subtitles",{...c}),c.value!==Ii.value&&li.next(c.isAuto?c.value+"_auto":c.value),Wi.set(c),Zt($)&&(Wf(c.value===Ii.value?void 0:c.language),J.features.userVideoPrefs&&i&&Kf(J.userSalt,String(i),{subtitleTrackId:c.value===Ii.value?void 0:c.value}))},On=c=>{ue.log("toggle subtitles");let $=be(Wi);($==null?void 0:$.value)===Ii.value?yr(c):es(c)},Vr=(c,$)=>{ue.log("change subtitle",{enabled:c}),c?yr(!0,$):es(!0)},yr=(c,$)=>{ue.log("subtitle on");let L=be(jn),oe=be(Le),Me=je!=null?je:oe,dt;$&&(dt=L.find(Vt=>Vt.value===$)),dt!=null||(dt=L.filter(Vt=>Vt.value!==Ii.value).find(Vt=>Vt.language===Me)),Yn(dt!=null?dt:L[1],c)},es=c=>{ue.log("subtitle off"),Yn(void 0,c)};Xe.add(k.info.availableTextTracks$.subscribe(c=>{var L;function $(){let oe=[];for(let{language:Me,isAuto:dt,id:Vt}of c){let Ft=Me&&pc(Me);Me&&Ft&&oe.push({id:Vt,language:Me,title:dt?Ve("subtitles_auto",{language:Ft}):Ft})}return oe}(L=a==null?void 0:a.onAvailableSubtitlesChanged)==null||L.call(a,$())}));let Rr=le(!0),ts=c=>{Rr.set(c)},We=(c,$,L=!0)=>{var oe;if(me({message:`seek to time, time: ${c}`}),ue.log("seek to time",{time:c,action:$,forcePrecise:L}),bi.next($),k.info.isLive$.getValue()){let Me=k.info.duration$.getValue(),dt=Math.min(0,Me+c);k.seekTime(dt,L)}else{if(E!=null&&E.getValue())return;k.info.isEnded$.getValue()&&(me({message:"seek after ended, call callbacks.onPlay"}),(oe=a==null?void 0:a.onPlay)==null||oe.call(a)),k.seekTime(To(c),L)}},ei=c=>{me({message:`seek to episode start time: ${c}`}),ue.log("seek to episode start time",{time:c}),We(c,cs.SeekAction.EPISODE,!0)},ki=(c,$,L=!1)=>{me({message:`seek to percent, percent: ${c}`}),ue.log("seek to percent",{percent:c,action:$});let oe=be(ln)*c;We(oe,$,L)},_n=c=>{me({message:`seek external, time: ${c}`}),ue.log("seek external",{time:c}),bi.next(cs.SeekAction.UNKNOWN),k.seekTime(k.info.isLive$.getValue()?-c:c)},en=c=>{var oe,Me;let $=(oe=c.max)!=null?oe:"none",L=(Me=c.min)!=null?Me:"none";me({message:`set auto quality limitation. Max: ${$}. Min: ${L}`}),ue.log("set auto quality limits",{max:$,min:L}),k.setAutoQualityLimits(c)},Nr=c=>{me({message:`seek external to episode start time: ${c}`}),ue.log("seek external to episode start time",{time:c}),We(c,cs.SeekAction.EPISODE,!0)},tn=c=>{me({message:`set playback rate to: ${c}`}),ue.log("set playback rate external",{playbackRate:c}),k.setPlaybackRate(c)},Vo=le(!1),Or=le(!1),bn=$i([ln],([c])=>!!v&&c>=J.suitableDurationForUsingRichSeek&&J.features.useRichSeek&&!C),Ls=((v==null?void 0:v.frameWidth)||0)>=((v==null?void 0:v.frameHeight)||0),ta=$i([Et],([c])=>{let $=ql(c);return Ls?!$:$});Xe.add(Tt.subscribe(c=>{c!=="video"&&Vo.set(!1)}));let ft=le(void 0),ti=le(!1),Ro=c=>{me({message:`start scrubbing, progress: ${c}`}),ue.log("start scrubbing",{progress:c}),ti.set(!0),Zn(c)},Zn=c=>{ft.set(c)},he,vt,ri=()=>{ft.set(void 0),ti.set(!1)},wi=()=>{clearTimeout(vt),clearTimeout(he),he=window.setTimeout(()=>{ri()},500),Ie==null||Ie.removeEventListener("seeked",wi)},ci=(c,$=!1)=>{me({message:`complete scrubbing, progress: ${c}`}),ue.log("complete scrubbing",{progress:c}),ki(c,cs.SeekAction.SLIDER,$),be(Kt.ui.isMobile)&&be(Kt.state.currentFormat$)===ui.VideoFormat.HLS?(Ie==null||Ie.addEventListener("seeked",wi),vt=window.setTimeout(()=>{wi()},300)):ri()},oi=$i([kt,ln,ft],([c,$,L],oe)=>{oe((0,mt.isNonNullable)(L)?L*$:c)}),Si=le(!1),$n=()=>{Si.set(!0)},Dn=()=>{Si.set(!1)},Ai=$i([ut],([{width:c}],$)=>{let L=S0(c);$(L)}),ia=H.filter(c=>I1(c)),il=$i([Ai,Ke],([c,$])=>$?ia.filter(L=>!L.hideOnMobile):ia.filter(L=>{var oe;return!((oe=L.hideOnDesktopGridTypes)!=null&&oe.includes(c))})),xr=le(H.filter(c=>k1(c))),ol=$i([xr,Ai],([c,$])=>c.filter(L=>{var oe;return!((oe=L.hideOnDesktopGridTypes)!=null&&oe.includes($))})),oa=$i([ol,il],([c,$])=>[...J.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...J.features.additionalButtons?$.map((L,oe)=>{var Me;return{id:oe,weight:oe,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Me=L.ariaLabel)!=null?Me:L.tooltip,tooltipText:L.tooltip}}):[]]),yn=le(B),na=$i([yn],([c])=>J.features.additionalSettingsMenuItems?c.map($=>$.type==="SWITCH"?{...$,onClick:$.onChangeEnabled}:$):[]),nl=(c,$)=>{let L=be(xr).map(oe=>oe.id!==c?oe:{...oe,...$});xr.set(L)},rl=c=>{let $=be(xr);if($.some(L=>L.id===c.id)){me({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),xr.set($)},vs=c=>{let $=be(xr);if(!$.some(L=>L.id===c)){me({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),xr.set($)},ms=c=>{bi.next(cs.SeekAction.LIVE),me({message:"live switch to low latency "+c}),ue.log("live switch to low latency "+c),k.setLiveLowLatency(c)},sl=(c,$)=>{let L=be(yn).map(oe=>oe.id!==c?oe:{...oe,...$});yn.set(L)},ra=c=>{let $=be(yn);if($.some(L=>L.id===c.id)){me({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),yn.set($)},ad=c=>{let $=be(yn);if(!$.some(L=>L.id===c)){me({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),yn.set($)},wr=le(z),ld=$i([wr],([c])=>J.features.additionalContextMenuItems?c:[]),sa=(c,$)=>{let L=be(wr).map(oe=>oe.id!==c?oe:{...oe,...$});wr.set(L)},dd=c=>{let $=be(wr);if($.some(L=>L.id===c.id)){me({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),wr.set($)},al=c=>{let $=be(wr);if(!$.some(L=>L.id===c)){me({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),wr.set($)},ll=$i([Ke,ee],([c,$],L)=>{L(c&&$)}),aa=()=>{bi.next(cs.SeekAction.LIVE),me({message:"switch to active live"}),ue.log("switch to active live"),k.seekTime(0),k.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING&&Kt.actions.internal.togglePlay()},_t=()=>{ue.log("skip adman"),Pe.skip()},bt=(c=!0)=>{var oe;(0,mt.assertNonNullable)(Kt),me({message:`switch from ads to video, callPlay: ${c}`}),ue.log("switch from ads to video",{callPlay:c}),lt.set("video"),c&&k.play(),l&&Jo(!0,!0);let $=(oe=be(we))==null?void 0:oe.muted,L=!k.info.muted$.getValue();$!==void 0&&!L&&Jo($,!0),we.set(void 0)},Zi=()=>{(0,mt.assertNonNullable)(Kt),me({message:"switch from video to ads"}),ue.log("switch from video to ads"),Kt.actions.internal.pause(),wt(),lt.set("ads")},Co=c=>{(0,mt.assertNonNullable)(Kt);let $=c?"LiveWaitingStart":"thumb";ue.log("set live waiting start",{state:c,playerPhase:$}),lt.set($)},Xi=c=>{(0,mt.assertNonNullable)(Kt);let $=c?"LiveWaitingRecover":"thumb";ue.log("set live waiting recover",{state:c,playerPhase:$}),lt.set($)},mi=c=>{(0,mt.assertNonNullable)(Kt);let $=c?"LiveWaitingRecord":"thumb";ue.log("set live waiting record",{state:c,playerPhase:$}),lt.set($)},Ki=()=>((0,mt.assertNonNullable)(Kt),ue.log("get debug text data"),C1(k,te,Kt,De.getTraceId())),Vs=()=>((0,mt.assertNonNullable)(Kt),JSON.stringify(De.getFinishedSpans())),cd=()=>((0,mt.assertNonNullable)(Kt),T1(k,te,Kt)),la=()=>Ie,Pp=()=>{me({message:"toggle chromecast"}),ue.log("toggle chromecast"),k.toggleChromecast()},Rs=c=>{var L;if((0,mt.assertNonNullable)(Kt),k.info.isEnded$.getValue())return;let $=!c;if(be(Kt.playerPhase)==="ads"){me({message:`pause ads, internalCall: ${$}`}),ue.log("pause ads",{internalCall:$}),Pe.pause();return}me({message:`pause video, internalCall: ${$}`}),ue.log("pause video",{internalCall:$}),$&&((L=a==null?void 0:a.onPause)==null||L.call(a)),k.pause()},da=c=>{var L;(0,mt.assertNonNullable)(Kt);let $=!c;if(be(Kt.playerPhase)==="ads"){me({message:`play ads, internalCall: ${$}`}),ue.log("play ads",{internalCall:$}),Pe.play();return}me({message:`play video, internalCall: ${$}`}),ue.log("play video",{internalCall:$}),$&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),k.play()},Wc=c=>{(0,mt.assertNonNullable)(Kt);let $=!c;if(be(Kt.playerPhase)==="ads"){me({message:"player cannot be stopped during ads via external method"});return}me({message:`player will be stopped, internalCall: ${$}`}),A==null||A()},Kc=(c,$)=>{(0,mt.assertNonNullable)(Kt),me({message:`first start, show ads: ${c}, internalCall: ${!$}`}),ue.log("first start",{showAds:c,external:$}),c?lt.set("ads"):(lt.set("video"),$?k.play():Kt.actions.internal.togglePlay())},dl=()=>(me({message:"getting time codes"}),f),qc=()=>{let c=dl();if(!c||[0,1].includes(c.length))return;let $=k.info.position$.getValue();return c.find(L=>L.time>$)},Qc=c=>{let $=c;$||($=qc());let L=k.info.position$.getValue();ue.log("seek to next episode",{currentTime:L,...$}),$&&(me({message:"seek to next episode"}),We($.time,cs.SeekAction.EPISODE,!0))},Gc=()=>{let c=dl();if(!c||[0,1].includes(c.length))return;let $=k.info.position$.getValue(),L=c.findIndex(Me=>Me.time>$),oe=L===-1?c.length-2:L-2;if(!(oe<0))return c[oe]},jc=c=>{let $=c;$||($=Gc());let L=k.info.position$.getValue();ue.log("seek to prev episode",{currentTime:L,...$}),$&&(me({message:"seek to prev episode"}),We($.time,cs.SeekAction.EPISODE,!0))},Mp=()=>(me({message:"getting preview thumbs data"}),ue.log("get preview thumbs data",{...v}),v),Lp=async()=>{let c=ie==null?void 0:ie.isActive(),$="none";ie!=null&&ie.isActive()?($="exit",await(ie==null?void 0:ie.exit())):($="request",await(ie==null?void 0:ie.request())),ue.log("toggle picture in picture",{isActive:c,action:$})},Vp=(c=-90)=>{ue.log("rotate video",{alphaDiff:c}),Et.update($=>$+c)},Fe=le([]);T==null||T.subscribe(c=>{let $=[];for(let L=0;L<c.length;L++){let{range:[oe,Me],subjects:dt}=c[L];L===0&&oe!==0&&$.push({time:0,text:"",interactive:!1,completed:!0}),$.push({time:oe/1e3,text:"",interactive:!0,completed:J.features.interactiveTimeOpenUri?!dt.length||dt.every(Vt=>Vt.isRemoved):!dt.length}),Me!==1/0&&$.push({time:Me/1e3,text:"",interactive:!1,completed:!0})}Fe.set($)});let gi=le(!1);E==null||E.subscribe(c=>{c&&be(ti)&&ri()});let To=c=>{if(!C)return c;let $=be(Fe),L=be(ln),Me=be(jo)/L,dt=$.find(Vt=>Vt.interactive&&!Vt.completed&&Vt.time>Me);return typeof(dt==null?void 0:dt.time)=="number"?Math.min(c,dt.time-.05):c},ca=()=>{Kt.ui.episodes.panelOpened$.set(!1)},xn=()=>{ue.log("destroy store"),clearTimeout(vt),clearTimeout(he),Xe.unsubscribe(),Je.unsubscribe(),k.destroy(),Pe.destroy(),X==null||X.destroy(),j==null||j.destroy(),ye.unsubscribe(),$t==null||$t.disconnect(),$t=null,He.destroy()},C_=$i([qn,Tt,pt],([c,$,L])=>p.features.doubleForwardAvailable&&!c&&$==="video"&&L),Rp=le(!1),wg=2,Yc=null,Sg=c=>{if(!be(dn)&&c)return;let $=k.info.currentPlaybackRate$.getValue();c?$!==wg&&(Yc=$,po(wg,!1),Rp.set(!0)):(Yc&&po(Yc,!1),Rp.set(!1),Yc=null)};Tt.subscribe(c=>{c!=="video"&&Sg(!1)});let T_=()=>{Rs(!1),Vo.set(!0)},E_=()=>{da(!1),Vo.set(!1)},Np=!1,I_=()=>{Or.set(!0),Np=k.info.playbackState$.getValue()===ui.PlaybackState.PLAYING,Rs(!1)},k_=()=>{Or.set(!1),!be(Vo)&&Np&&da(!1),Np=!1};k.events.playing$.subscribe(()=>{be(Vo)&&Rs(!1)});let Kt={interfaceLanguage$:Le,isCyrillicRelatedInterface$:Mt,initVideo:oo,videoId:i,isClip:o,playerPhase:Tt,vsid:Ye,state:{positionExact$:kt,positionWithScrubbing$:oi,duration$:ln,playbackState$:ii,isPlaying$:dn,isLoaderVisible:pi,bufferedProgress$:Vn,isLive$:jt,canChangePlaybackSpeed$:pt,isActiveLive$:qn,isOldestAvailableLive$:Go,isRewindableLive$:cr,isEnded$:At,muted$:Ko,volume$:Fi,trafficSavingEnabled$:xo,highQualityEnabled$:ro,autoQualityLimitingAvailable$:Ui,availableVideoStreams$:Ar,availableAudioStreams$:pr,videoStream$:jr,audioStream$:fr,currentQuality$:gr,isAutoQualityEnabled$:yt,availableQualities$:Yr,currentPlaybackRate$:Zo,availablePlaybackRates$:Mn,currentSubtitle$:Wi,availableTextTracks$:Xo,availableSubtitlesList$:jn,currentSubtitleCaptions$:hr,isAutoSubtitleCaptionVisible$:Pr,chromecastState$:so,chromecastDeviceName$:zi,chromecastConnected$:ur,currentFormat$:qo,throughputEstimation$:Qo,videoBitrate$:ar,videoSize$:lr,errorLog$:Se,crashed$:ee,isAudioAvailable$:ps,isAudioDisabled:!!l,canDownload:J.features.download&&!!d,availableSources$:Rn,hasMpegSources$:Mr,isInteractive:C,showInteractiveGraph:J.features.interactiveGraph,showSeekToInteractive:J.features.seekToInteractive,showPlayPrevChapter:J.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:J.features.interactiveTimeIndicator&&!!be(Fe).length,interactiveEpisodes$:Fe,isInteractiveTime$:E?ai(E):le(!1),isInteractiveExpectation$:gi,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:O,looped$:br,loadedMetadata$:Jt,isAutoQualityAvailable$:Qn,previewTrackActive:Vo,previewTrackDragInProgress:Or},ui:{t:Ve,controlsVisible:le(!1),touched:le(!1),controls:{prevButton:le(void 0),playButton:le(void 0),replayButton:le(void 0),nextButton:le(void 0),playPrevChapterButton:le(void 0),seekToInteractiveButton:le(void 0),interactiveGraphButton:le(void 0),liveButton:le(void 0),time:le(void 0),episodes:le(void 0),volume:le(void 0),subtitles:le(void 0),settings:le(void 0),context:le(void 0),chromecast:le(void 0),pip:le(void 0),fullscreen:le(void 0),vkLogo:le(void 0),interactiveTimeIndicator:le(void 0),timeline:le(void 0),autoplayNextToggle:le(void 0),additionalButtons:H.length?H.reduce(c=>[...c,le(void 0)],[]):[],disabledControls$:ze},modals:{hotKeyMap:{show:le(!1),data:le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Dt,isFullscreenOpenedByKeyboard:rt,rotateAlpha:Et,isAutoplay:le(!1),debugPanelVisible:le(!1),episodes:{panelOpened$:le(!1),openedByKeyboard$:le(!1)},contextMenu:{visible$:le(!1),btnRef$:le(void 0),openedByBtnKeyboard$:le(!1),openedByHotKey$:le(!1),lastActiveElem$:le(void 0),showContextMenuBtn$:le(!1),position$:le({top:0,left:0})},playerSize:ut,isMobile:Ke,mobileNotReportControlHidden$:ll,icon3DVideoVisible:le(!1),scrubbingInProgress:ti,volumeChangingInProgress:Si,is3DVideo:Wt,currentGridType$:Ai,additionalButtonsDeprecated$:il,additionalDesktopControlPanelRightButtons$:oa,additionalSettingsMenuItems$:na,additionalContextMenuItems$:ld,interactiveHideMobileControls:le(!1),overlayContainer$:le(void 0),startedByKeyboard$:le(!1),autoplayNextEnabled$:le(!1),timerNextVideoRunning$:le(!0),settingsMenu:{visible$:le(!1),ref$:le(void 0),openedByBtnKeyboard$:le(!1)},settingsSubMenu:{visible$:le(!1),ref$:le(void 0),name$:le(void 0)},userActionsDisabled:le(!1),hiddenControls:{volume:le(!1),vkLogo:le(!1),pip:le(!1),chromecast:le(!1),settings:le(!1)},isControlsAvailable:Rr,controlBlocks:{topLeft:le(void 0),topRight:le(void 0),middle:le(void 0),bottom:le(void 0),bottomLeft:le(void 0),bottomRight:le(void 0)},videoTitleInfo:le(void 0),doubleForwardOn$:Rp,doubleForwardAvailable$:C_,previewTrackNotificationVisible:le(!1),previewTrackActive:Vo,previewTrackDragInProgress:Or,previewTrackAvailable:bn,isPreviewTrackHorizontallyAligned:ta},ads:{position:le(0),duration:le(0),playbackState:le("inactive"),canSkip:le(!1),secondsToWatchBeforeSkip:le(0),postrollPassed:le(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:Be,slotsApi:Ze},actions:{internal:{preload:xi,firstStart:c=>Kc(c,!1),play:()=>da(!1),pause:()=>Rs(!1),togglePlay:_o,toggleMuted:ni,openSettingsMenu:Ri,closeSettingsMenu:Vi,openSettingsSubMenu:So,closeSettingsSubMenu:fn,setVolume:c=>Nn(c,!1),setMuted:c=>Jo(c,!1),startVolumeChanging:$n,stopVolumeChanging:Dn,setVideoStream:ao,setAudioStream:c=>vr(c,!1),setQuality:(c,$)=>bo(c,$,!1),setTrafficSavingEnabled:(c,$)=>uo(c,$,!1),setHighQualityEnabled:(c,$)=>Yi(c,$,!1),setPlaybackRate:po,incrementPlaybackRate:Mo,decrementPlaybackRate:Lo,setSubtitle:c=>Yn(c,!1),toggleSubtitle:()=>On(!1),togglePictureInPicture:Lp,startScrubbing:Ro,progressScrubbing:Zn,completeScrubbing:ci,toggleChromecast:Pp,switchToActiveLive:aa,switchFromAdsToVideo:bt,switchFromVideoToAds:Zi,skipAd:_t,setLiveWaitingStart:Co,setLiveWaitingRecover:Xi,setLiveWaitingRecord:mi,getDebugTextData:Ki,getTraceTextData:Vs,getDebugPanelData:cd,getVideoElement:la,seekTime:(c,$,L)=>We(c,$,L),clearDelayedBufferingCheckTimeout:fs,seekEpisodeStartTime:ei,seekToPercent:ki,getNextEpisode:qc,seekToNextEpisode:Qc,getPrevEpisode:Gc,seekToPrevEpisode:jc,startLogging:Ti,stopLogging:yo,startCameraManualRotation:Wo,stopCameraManualRotation:an,moveCameraFocusPX:It,holdCamera:Ht,releaseCamera:K,getVideoEpisodes:dl,getPreviewThumbsData:Mp,downloadVideo:ot,addLanguage:qf,setLanguage:Ce,nextMovie:di,videoRotate:Vp,correctSeekTimeToInteractive:To,replayInteractive:R,setLooped:Zr,reportProblem:Xr,setAutoplayNextEnabled:Jr,setTimerNextVideoRunning:vn,prevVideoClick:mn,nextVideoClick:$r,nextVideoAnnouncementShow:gn,nextVideoAnnouncementClick:Lr,nextVideoAnnouncementAuto:it,nextVideoAnnouncementCancel:Lt,checkFullscreenSupport:Bt,changeDoubleForwardOn:Sg,closePreviewTrack:E_,previewTrackOpened:T_,previewTrackDragStarted:I_,previewTrackDragFinished:k_},external:{firstStart:c=>Kc(c,!0),play:()=>da(!0),pause:()=>Rs(!0),stop:()=>Wc(!0),seekTime:c=>_n(c),seekEpisodeStartTime:c=>Nr(c),setPlaybackRate:c=>tn(c),setAutoQualityLimits:c=>en(c),setMuted:c=>Jo(c,!0),toggleSubtitle:()=>On(!0),changeSubtitle:Vr,setVolume:c=>Nn(c,!0),returnFocusToEpisodes:ca,updateAdditionalSettingsItem:sl,addAdditionalSettingsItem:ra,removeAdditionalSettingsItem:ad,updateAdditionalContextItem:sa,addAdditionalContextItem:dd,removeAdditionalContextItem:al,updateAdditionalButton:nl,addAdditionalButton:rl,removeAdditionalButton:vs,setLiveLowLatency:ms,hideControls:()=>ts(!1),showControls:()=>ts(!0),setQuality:c=>bo(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>uo(c,"to-video",!0),setHighQualityEnabled:c=>Yi(c,"to-video",!0),changeAudioStream:Pn}},callbacks:a,setUiCallbacks:c=>{xe={...c}},getAdmanWrapper:()=>Pe,getLogger:()=>Ge,getPlayer:()=>k,destroy:xn};return Kt};function Wn(t,e,i,o){var f;let r=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:a,right:u}=Is(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var zy=["disabledControls$","additionalButtons"],Wy=["interactiveTimeIndicator"],Gl=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!zy.includes(r)){let l=o||Wy.includes(r);s.set(Wn(t,i,r,l))}}};var rp=async(t,e,i)=>{await go(),e&&i&&(i.focus(),t.set(!1))};var Ky=Ee('<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 Fv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Ky();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function Uv(t,e){F(e,!0);let[i,o]=Oe(),r=()=>S(a,"$contextMenuVisible$",i),s=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=ge(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,y=Q(void 0);qe(()=>{n(y)&&Pt(()=>{p.set(n(y))})});let w=E=>{let R=js(E),A=v0(n(y));v.set(A),u.set(R),a.set(!r())},x=()=>{f.set(!0)},C=()=>{f.set(!1)},T=m(()=>r()?"opened":"");zt(t,{get className(){return n(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:x,blur:C,get ariaExpanded(){return r()},get ref(){return n(y)},set ref(E){N(y,E,!0)},children:(E,R)=>{Fv(E,{})},$$slots:{default:!0}}),U(),o()}var qy=t=>{t.stopPropagation()},Qy=M("<div><!> <div></div> <div></div></div>"),Gy={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
234
234
 
235
235
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
236
236
  }
@@ -255,16 +255,16 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
255
255
  opacity: 0;
256
256
  }
257
257
  }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
258
- animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function mc(t,e){var Y;F(e,!0),W(t,Yy);let[i,o]=De(),r=()=>S(C,"$isMobile",i),s=()=>S(A,"$areControlsVisible",i),l=()=>S(O,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),a=()=>S(x,"$interactiveControlsOpacity$",i),u=()=>S(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),v=h(e,"ref",15,void 0),p=Q(void 0),y=he(),w=$o(),{interactiveControlsOpacity$:x}=w,C=y.ui.isMobile,T=y.ui.isFullscreen,E=y.state.isInteractiveTime$,R=w.showInteractiveTimeIndicatorTooltip$,A=y.ui.controlsVisible,I=(Y=y.callbacks)==null?void 0:Y.onInteractiveTimeIndicatorClick,O=y.ui.currentGridType$,H=m(()=>!r()&&s()),B=m(()=>ks(l(),"s")),z=m(()=>!d()||!!a()||n(H)),Z=Q(!1);ze(()=>{N(Z,n(z),!0)});let ae=()=>{N(Z,!0)},q=()=>{var oe;de(),(oe=n(p))==null||oe.addEventListener("animationiteration",ae,{once:!0})},de=()=>{var oe;N(Z,!1),(oe=n(p))==null||oe.removeEventListener("animationiteration",ae)},X=oe=>{R.set(oe)},fe=m(()=>u()&&!n(z));ze(()=>{u()?q():de()});let re=()=>{n(z)||(R.set(!0),I==null||I())};an(()=>{R.clearTimeout(),de()});let le=()=>{R.set(!1)},Me=j("tooltip_interactive_interaction_time_indicator");var we=jy();let te;we.__mousemove=[Gy],we.__click=re;var Ne=_(we);Mo(Ne,{get tooltipContent(){return Me},get tooltipActive(){return n(fe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:X,get ref(){return v()},set ref(oe){v(oe)},children:(oe,Be)=>{ac(oe,{completed:!0})},$$slots:{default:!0}});var ue=P(Ne,2);let k;at(ue,oe=>v(oe),()=>v());var Ke=P(ue,2);let Ve;at(Ke,oe=>N(p,oe),()=>n(p)),g(we),D((oe,Be,Ze)=>{te=ne(we,1,"interactive-episode-icon-animated svelte-od3veb",null,te,oe),k=ne(ue,1,"ref-block svelte-od3veb",null,k,Be),Ve=ne(Ke,1,"pulse svelte-od3veb",null,Ve,Ze)},[()=>({mobile:r(),fullscreen:f(),invisible:n(z),"icon-small":n(B)}),()=>({hidden:n(z)}),()=>({paused:n(Z)})]),Ct("mouseleave",we,le),b(t,we),U(),o()}dt(["mousemove","click"]);function ap(t,e){F(e,!0);let i=h(e,"tooltipEnabled",3,!0),o=h(e,"disabled",3,!1),r=h(e,"className",3,void 0),s=h(e,"ref",15);Mo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return r()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=He();let u=m(()=>e.buttonComponent);var f=pe(a);Mi(f,()=>n(u),(v,p)=>{p(v,Ts(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(l,a)},$$slots:{default:!0}}),U()}var Ps={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Xy=Ee('<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 zv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Xy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function gc(t,e){let i=h(e,"isPrev",3,!1),o=h(e,"isMobile",3,!1),r=h(e,"width",3,"24"),s=h(e,"height",3,"24"),l=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=m(()=>i()?"prev-icon":"next-icon");zv(t,{get style(){return n(l)},get width(){return r()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return n(d)}})}var Jy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),e4=M("<!> <!>",1),t4={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 za(t,e){F(e,!0),W(t,t4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=he().ui.t,d=m(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=m(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);zt(t,{get className(){return n(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=e4(),y=pe(p);{var w=T=>{var E=Jy();b(T,E)};V(y,T=>{o()&&T(w)})}var x=P(y,2);let C=m(()=>e.type==="prev");gc(x,{get isMobile(){return o()},get isPrev(){return n(C)}}),b(f,p)},$$slots:{default:!0}}),U()}var i4=Ee('<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 hc(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=i4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var O0=require("@vkontakte/videoplayer-shared/es2018");var o4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),n4=M("<!> <div><!></div>",1),r4={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 Yl(t,e){F(e,!0),W(t,r4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),s=h(e,"className",3,""),l=h(e,"click",3,O0.noop),d=j("tooltip_restart"),a=m(()=>`${o()?"btn-m--play":""} ${s()}`);zt(t,{get className(){return n(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return ds.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=n4(),p=pe(v);{var y=T=>{var E=o4();b(T,E)};V(p,T=>{o()&&T(y)})}var w=P(p,2);let x;var C=_(w);hc(C,{}),g(w),D(T=>x=ne(w,1,"svelte-1ot3duq",null,x,T),[()=>({mobile:o()})]),b(u,v)},$$slots:{default:!0}}),U()}var s4=Ee('<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 lr(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=s4(),d=_(l);g(l),D(()=>{We(l,"width",i()),We(l,"height",o()),We(l,"viewBox",r()),We(d,"fill",s())}),b(t,l)}var a4=Ee('<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 Ms(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=a4(),d=_(l);g(l),D(()=>{We(l,"width",i()),We(l,"height",o()),We(l,"viewBox",r()),We(d,"fill",s())}),b(t,l)}var D0=require("@vkontakte/videoplayer-shared/es2018");var l4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),d4=M("<!> <div><!></div>",1),c4={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 Zl(t,e){F(e,!0),W(t,c4);let[i,o]=De(),r=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=$o(),l=h(e,"ref",15,void 0),d=h(e,"isMobile",3,!1),a=h(e,"isPlaying",3,!1),u=h(e,"disabled",3,!1),f=h(e,"className",3,""),v=h(e,"click",3,D0.noop),y=he().ui.t,{toggle:w}=s,x=m(()=>w),C=m(()=>r()!==null),T=m(()=>n(C)?r():a()),E=m(()=>n(T)?y("tooltip_pause"):y("tooltip_play")),R=m(()=>n(T)?Ms:lr),A=m(()=>`${d()?"btn-m--play":""} ${f()}`),I=m(()=>n(C)?n(x):v());zt(t,{get className(){return n(A)},testId:"btn-play",get click(){return n(I)},get disabled(){return u()},get ariaLabel(){return n(E)},get ariaKeyShortCut(){return ds.KeyK},get ref(){return l()},set ref(O){l(O)},children:(O,H)=>{var B=d4();let z=m(()=>n(R));var Z=pe(B);{var ae=fe=>{var re=l4();b(fe,re)};V(Z,fe=>{d()&&fe(ae)})}var q=P(Z,2);let de;var X=_(q);Mi(X,()=>n(z),(fe,re)=>{re(fe,{})}),g(q),D(fe=>de=ne(q,1,"svelte-1ot3duq",null,de,fe),[()=>({mobile:d()})]),b(O,B)},$$slots:{default:!0}}),U(),o()}var u4=Ee('<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 Wv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=u4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function _c(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=j("tooltip_interactive_go_back"),l=m(()=>o()?"hidden":"");zt(t,{get className(){return n(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Wv(d,{})},$$slots:{default:!0}}),U()}var p4=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),f4={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 bc(t,e){F(e,!0),W(t,f4);let[i,o]=De(),r=()=>S(a,"$autoplayNextEnabled$",i),s=h(e,"ref",15,void 0),l=he(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!r(),!0)},v=d("aria_label_autoplay"),p=m(()=>r()?"true":"false");zt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return n(p)},get ref(){return s()},set ref(y){s(y)},children:(y,w)=>{var x=p4(),C=_(x);let T;var E=_(C);{var R=I=>{lr(I,{width:"14",height:"14",fill:"#000"})},A=I=>{Ms(I,{width:"14",height:"14",fill:"#000"})};V(E,I=>{r()?I(R):I(A,!1)})}g(C),g(x),D(I=>T=ne(C,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:r()})]),b(y,x)},$$slots:{default:!0}}),U(),o()}var v4=Ee('<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 Kv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=v4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function $c(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=j("tooltip_interactive_seek"),l=m(()=>o()?"hidden":"");zt(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Kv(d,{})},$$slots:{default:!0}}),U()}var m4=Ee('<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 qv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=m4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var g4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Qv(t,e){W(t,g4);let i=h(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");qv(t,{get"data-testid"(){return n(o)}})}function yc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=h(e,"graphIsOpened",3,!1),d=he().ui.t,a=m(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");zt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=m(()=>!!s());Qv(f,{get isOpened(){return n(p)}})},$$slots:{default:!0}}),U()}var Gv=require("@vkontakte/videoplayer-core/es2018");function xc(t,e){F(e,!0);let[i,o]=De(),r=()=>S(u,"$playbackState$",i),s=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),a=he(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=m(()=>()=>{if(!l()){f();return}r()===Gv.PlaybackState.PAUSED&&v()}),y=m(()=>s()?"":"btn--live btn-full-opacity"),w=m(()=>l()?"btn-live":"btn-live-offset"),x=m(()=>l()&&r()===Gv.PlaybackState.PLAYING);zt(t,{get className(){return n(y)},get testId(){return n(w)},get disabled(){return n(x)},get ariaLabel(){return d()},get click(){return n(p)},children:(C,T)=>{Gd(C,{get isActive(){return l()}})},$$slots:{default:!0}}),U(),o()}var jv=require("@vkontakte/videoplayer-shared/es2018");var h4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),_4=M('<img class="icon" aria-hidden="true"/>');function Wa(t,e){"use strict";let i=Q(!1),o=()=>{N(i,!0)};var r=He(),s=pe(r);{var l=a=>{var u=h4();b(a,u)},d=a=>{var u=_4();D(()=>We(u,"src",e.icon)),Ct("error",u,o),wa(u),b(a,u)};V(s,a=>{n(i)?a(l):a(d,!1)})}b(t,r)}function Yv(t,e){F(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,jv.noop),r=h(e,"ref",15),s=m(()=>o()===jv.noop),l=m(()=>n(s)||i()),d=m(()=>n(s)?"btn-full-opacity":"");Mo(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return r()},set ref(a){r(a)},children:(a,u)=>{let f=m(()=>{var v;return(v=e.testId)!=null?v:e.id});zt(a,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(f)},children:(v,p)=>{Wa(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var B0=t=>!!t.buttonComponent;var Ls={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var lp=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(Un(t,i,r,o))};var dp=require("@vkontakte/videoplayer-shared/es2018"),H0=10,F0=40,Zv=.2,$4=.5,y4=65,x4=114,w4=4,U0=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=m(()=>i?y4:x4),r=Q(!1),s=Q(0),l=Q(0),d=m(()=>n(o)+H0-F0-w4),a=m(()=>(0,dp.interpolate)(n(s),[Zv,1],[0,-n(d)])),u=m(()=>(0,dp.interpolate)(n(s),[Zv,1],[0,F0])),f=m(()=>(0,dp.interpolate)(n(s),[Zv,1],[0,n(o)+H0]));return{progressBarY:()=>n(a),controlsY:()=>n(u),calculatedHeight:()=>n(f),onPointerDown:x=>{var C;N(l,((C=e())==null?void 0:C.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:x=>{if(!n(r))return;let C=Math.max(Math.min(x.clientY-n(l),0),-n(d));N(s,Math.abs(C/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(s,n(s)>=$4?1:0,!0),n(s)===1&&t()},closePreviewTrack:()=>{N(s,0)}}};var S4=t=>t;function ps(t,{delay:e=0,duration:i=400,easing:o=S4}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var C4=M('<span class="root svelte-mx6l45"> </span>'),T4={hash:"svelte-mx6l45",code:".root.svelte-mx6l45 {font-size:13px;line-height:16px;color:rgba(255, 255, 255, 1);box-shadow:0px 8px 24px 0px rgba(0, 0, 0, 0.08);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.08);font-weight:500;}"};function Xv(t,e){W(t,T4);var i=C4(),o=_(i,!0);g(i),D(()=>ve(o,e.time)),b(t,i)}var E4=M('<div class="tooltip-wrapper svelte-1xyyqd0"><div><!></div></div>'),I4={hash:"svelte-1xyyqd0",code:'.tooltip-wrapper.svelte-1xyyqd0 {position:relative;display:block;}.tooltip.svelte-1xyyqd0 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-1xyyqd0:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-1xyyqd0 {opacity:1;visibility:visible;}'};function Jv(t,e){W(t,I4);let i=h(e,"active",3,!1),o=h(e,"pointer",3,!1),r=h(e,"translateXPx",3,0),s=h(e,"translateYPx",3,0),l=h(e,"leftOffset",3,0),d=h(e,"rightOffset",3,0),a=Q(void 0),u=Q(void 0);function f(C){if(!n(u))return 0;let{width:T}=n(u).getBoundingClientRect(),E=T/2;return C<E?E+l():C>e.containerWidth-E?e.containerWidth-E-d():C}let v=m(()=>f(r()));var p=E4(),y=_(p);let w;var x=_(y);_e(x,()=>{var C;return(C=e.children)!=null?C:ce}),g(y),at(y,C=>N(u,C),()=>n(u)),g(p),at(p,C=>N(a,C),()=>n(a)),D(C=>{Je(p,`transform: translate(${n(v)}px, ${s()}px);`),w=ne(y,1,"tooltip svelte-1xyyqd0",null,w,C),Je(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,p)}var z0=t=>Math.abs(t)/90%4===1;var k4=M('<div class="preview svelte-1wqg760"></div>'),A4=M('<div class="time svelte-1wqg760"> </div>'),P4=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),M4={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 em(t,e){F(e,!0),W(t,M4);let[i,o]=De(),r=()=>S(w,"$rotateAlpha",i),s=()=>S(x,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=h(e,"time",3,""),a=h(e,"isMobile",3,!1),u=h(e,"videoEpisodes",19,()=>[]),f=h(e,"progress",3,0),v=h(e,"duration",3,0),p=h(e,"isInteractive",3,!1),y=he(),w=y.ui.rotateAlpha,x=y.ui.playerSize,C=Q(0),T=Q(0),E=Q(""),R=Q(0),A=Q(0),I=Q(0),O=Q(0),H=m(()=>Ju(f(),v(),u())),B=m(()=>Ql(r())),z=m(()=>z0(r())),Z=m(de),ae=m(()=>(n(z)?1:-1)*(n(C)/2-n(T)/2)),q=m(()=>n(ae)*-1);ze(()=>{(Y=>{N(C,Y.width,!0),N(T,Y.height,!0)})(fe())}),ze(()=>{(Y=>{N(E,Y.imgSrc,!0),N(R,Y.imgWidth,!0),N(A,Y.imgHeight,!0),N(I,Y.imgOffsetX,!0),N(O,Y.imgOffsetY,!0)})(re(f()))});function de(){var Ze;let Y=a()?l.MOBILE:l.DESKTOP,{isVertical:oe}=X(),Be=30;return(Ze=n(H))!=null&&Ze.text&&(Be+=16),(oe||n(B))&&(Be+=18,Be+=50),Math.min(Math.max(s().height-Be,0),Y)}function X(){let Y=e.previewThumbsData.frameWidth,oe=e.previewThumbsData.frameHeight,Be=oe>Y;return{width:Y,height:oe,isHorizontal:!Be,isVertical:Be}}function fe(){let{height:Y,isHorizontal:oe,isVertical:Be,width:Ze}=X();return oe&&(Y=Y/Ze*n(Z),Ze=n(Z)),Be&&(Ze=Ze/Y*n(Z),Y=n(Z)),{width:Ze,height:Y}}function re(Y){let oe;e.previewThumbsData.isUV?oe=Math.floor(v()*Y/e.previewThumbsData.frequency):oe=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Y)));let Be=Math.floor(oe/e.previewThumbsData.countPerImage),Ze=Math.floor(oe%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),me=oe%e.previewThumbsData.countPerRow,J=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Be===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(J=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&J++);let Ie=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Be===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ie=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let ge=n(C)*Ie,Fe=n(T)*J,Xe=-me*n(C),Ge=-Ze*n(T);return{imgSrc:e.previewThumbsData.links[Be],imgWidth:ge,imgHeight:Fe,imgOffsetX:Xe,imgOffsetY:Ge}}var le=P4();let Me;var we=_(le);{var te=Y=>{var oe=k4();D(()=>Je(oe,`width: ${n(C)}px; height: ${n(T)}px; background-image: url(${n(E)}); background-size: ${n(R)}px ${n(A)}px; background-position: ${n(I)}px ${n(O)}px;
259
- transform: rotate(${r()}deg) ${n(B)?`translate(${n(ae)}px, ${n(q)}px)`:""};
260
- `)),b(Y,oe)};V(we,Y=>{n(E)&&Y(te)})}var Ne=P(we,2),ue=_(Ne);{var k=Y=>{var oe=He(),Be=pe(oe);{var Ze=J=>{var Ie=ls();D(ge=>ve(Ie,ge),[()=>j("tooltip_episode_unfinished")]),b(J,Ie)},me=J=>{var Ie=ls();D(()=>ve(Ie,n(H).text||"")),b(J,Ie)};V(Be,J=>{p()&&n(H).completed===!1?J(Ze):J(me,!1)})}b(Y,oe)};V(ue,Y=>{n(H)&&Y(k)})}g(Ne);var Ke=P(Ne,2);{var Ve=Y=>{var oe=A4(),Be=_(oe,!0);g(oe),D(()=>ve(Be,d())),b(Y,oe)};V(Ke,Y=>{p()||Y(Ve)})}g(le),D(Y=>{Me=ne(le,1,"timeline-preview svelte-1wqg760",null,Me,Y),Je(le,`width: ${n(B)?n(T):n(C)}px;`)},[()=>({mobile:a()})]),b(t,le),U(),o()}var L4=M('<span class="time svelte-1jr6obn"> </span>'),V4=M("<!> <!>",1),R4={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 tm(t,e){var Pe,It,Oe,ut,yt;F(e,!0),W(t,R4);let[i,o]=De(),r=()=>S(q,"$interactiveEpisodes$",i),s=()=>S(O,"$duration$",i),l=()=>S(I,"$position$",i),d=()=>S(fe,"$isInteractiveExpectation$",i),a=()=>S(X,"$isInteractiveTime$",i),u=()=>S(we,"$previewTrackActive",i),f=()=>S(H,"$isLive$",i),v=()=>S(Me,"$disabledControls$",i),p=()=>S(z,"$isMobile",i),y=()=>S(B,"$isActiveLive$",i),w=()=>S(A,"$bufferedProgress$",i),x=h(e,"showTimeline",3,!1),C=h(e,"withEpisodes",3,!0),T=h(e,"ref",15,void 0),E=he(),R=Rt(),A=E.state.bufferedProgress$,I=E.state.positionWithScrubbing$,O=E.state.duration$,H=E.state.isLive$,B=E.state.isActiveLive$,z=E.ui.isMobile,Z=R.features.episodes&&C()?E.actions.internal.getVideoEpisodes():void 0,ae=E.actions.internal.getPreviewThumbsData(),q=E.state.interactiveEpisodes$,de=E.state.isInteractive,X=E.state.isInteractiveTime$,fe=E.state.isInteractiveExpectation$,re=E.actions.internal.correctSeekTimeToInteractive,le=(Pe=E.callbacks)==null?void 0:Pe.onDisabledTimelineClick,Me=E.ui.controls.disabledControls$,we=E.ui.previewTrackActive,te=(Oe=(It=E.callbacks)==null?void 0:It.uiInfo)==null?void 0:Oe.onTimelineMouseEnter,Ne=(yt=(ut=E.callbacks)==null?void 0:ut.uiInfo)==null?void 0:yt.onTimelineMouseLeave,ue=E.ui.t,k=R.features.interactiveResponsiveUi,Ke=m(()=>de?r():Z),Ve=m(()=>Yo(s())),Y=m(()=>Yo(l())),oe=m(()=>l()/s()),Be=m(()=>d()||a()),Ze=Q(!1),me=Q(""),J=Q(0),Ie=Q(0),ge=Q(0),Fe=m(()=>({containerWidth:n(Ie),translateXPx:n(J),translateYPx:de&&ae?-36:-16,active:n(Ze)&&x()&&!n(Be)&&!k&&!u(),pointer:!R.features.timelinePreview||!ae||f()})),Xe=ue("aria_timeline"),Ge=m(()=>ue("aria_timeline_value",{position:n(Y),duration:n(Ve)}));function ct(ye){return!re||!de?ye:re(ye*s())/s()}function et(ye,ot){var qe;(qe=e.onSliderPointerDown)==null||qe.call(e,ot),E.actions.internal.startScrubbing(ct(ye))}function Bt(ye){a()||E.actions.internal.progressScrubbing(ct(ye))}function rt(ye){var ot;E.actions.internal.completeScrubbing(ct(ye)),N(Ze,!1),(ot=e.onSliderPointerUp)==null||ot.call(e)}function Dt(ye,ot,qe){var lt;(lt=e.onSliderPointerEnter)==null||lt.call(e,ye),ei(ye,ot,qe),N(Ze,!0)}function qt(ye,ot,qe,lt){var ti;(ti=e.onSliderMove)==null||ti.call(e,lt,ye),ei(ye,ot,qe),N(Ze,!0)}function Et(){var ye;N(Ze,!1),(ye=e.onSliderLeave)==null||ye.call(e)}function ei(ye,ot,qe){N(ge,ct(ye),!0),N(J,ot,!0),qe&&N(Ie,qe,!0),N(me,Wt(ye),!0)}function Wt(ye){let ot=Yo((f()?1-ye:ye)*s());return f()?`-${ot}`:ot}let Se=m(()=>v().has("TIMELINE"));var xe=V4(),ee=pe(xe);Jv(ee,Ts(()=>n(Fe),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(ye,ot)=>{var qe=He(),lt=pe(qe);{var ti=fi=>{em(fi,{get time(){return n(me)},get isMobile(){return p()},get videoEpisodes(){return n(Ke)},get previewThumbsData(){return ae},get progress(){return n(ge)},get duration(){return s()},get isInteractive(){return de}})},ni=fi=>{var yi=L4(),ro=_(yi,!0);g(yi),D(()=>ve(ro,n(me))),b(fi,yi)};V(lt,fi=>{R.features.timelinePreview&&ae&&!f()?fi(ti):fi(ni,!1)})}b(ye,qe)},$$slots:{default:!0}}));var Ce=P(ee,2);Fa(Ce,{className:"timeline-slider",get isActiveLive(){return y()},get isMobile(){return p()},get ariaLabel(){return Xe},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return n(Ge)},get loadedProgress(){return w()},get filledProgress(){return n(oe)},get handleProgress(){return n(oe)},get videoEpisodes(){return n(Ke)},onPointerDown:et,onHandleMove:Bt,onPointerMove:qt,onPointerUp:rt,onPointerEnter:Dt,onPointerLeave:Et,get onMouseEnter(){return te},get onMouseLeave(){return Ne},get onDisabledClick(){return le},get isInteractive(){return de},get disabled(){return n(Se)},get handleAlwaysVisible(){return u()},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:rt,get ref(){return T()},set ref(ye){T(ye)}}),b(t,xe),U(),o()}var N4={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 wc(t,e){F(e,!0),W(t,N4);let[i,o]=De(),r=()=>S(a,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"duration",3,0),d=he(),a=d.ui.isMobile,u=d.ui.t,f=m(()=>Yo(l())),v=m(()=>Yo(s())),p=m(()=>s()/l()),y=m(()=>u("aria_timeline_value",{position:n(v),duration:n(f)})),w=m(()=>Math.round(n(p)*100));Fa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(w)},get ariaValueText(){return n(y)},get filledProgress(){return n(p)},hideHandel:!0,get squareBorders(){return r()}}),U(),o()}var O4=M("<div><!></div>"),D4=M("<div></div>"),B4={hash:"svelte-1b7iyrc",code:".timeline.svelte-1b7iyrc {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;box-sizing:border-box;}.timeline.mobile.svelte-1b7iyrc {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1b7iyrc {padding:0;}.timeline-stub.svelte-1b7iyrc {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1b7iyrc {height:8px;}"};function Ka(t,e){F(e,!0),W(t,B4);let[i,o]=De(),r=()=>S(C,"$isLive$",i),s=()=>S(R,"$isMobile",i),l=()=>S(A,"$disabled",i),d=()=>S(E,"$adPosition",i),a=()=>S(T,"$adDuration",i),u=h(e,"isAds",3,!1),f=h(e,"isHidden",3,!1),v=h(e,"timelineNotAvailable",3,!1),p=h(e,"needPadding",3,!0),y=h(e,"ref",15,void 0),w=he(),x=Rt(),C=w.state.isLive$,T=w.ads.duration,E=w.ads.position,R=w.ui.isMobile,A=se(!1),I=m(()=>!v()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var O=He(),H=pe(O);{var B=Z=>{var ae=O4();let q;var de=_(ae);{var X=re=>{wc(re,{get position(){return d()},get duration(){return a()}})},fe=re=>{tm(re,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(I)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return y()},set ref(le){y(le)}})};V(de,re=>{u()?re(X):re(fe,!1)})}g(ae),Cs(ae,()=>Dl(f()&&x.features.usePerformanceFix,A,x.disableInvisibleComponentsTimeout)),D(re=>q=ne(ae,1,"timeline svelte-1b7iyrc",null,q,re),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),b(Z,ae)},z=Z=>{var ae=D4();let q;D(de=>q=ne(ae,1,"timeline-stub svelte-1b7iyrc",null,q,de),[()=>({mobile:s()})]),b(Z,ae)};V(H,Z=>{n(I)?Z(B):Z(z,!1)})}b(t,O),U(),o()}var W0=require("@vkontakte/videoplayer-shared/es2018");var H4=(t,e,i,o,r,s,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),s(l())},F4=M("<div></div>"),U4=M('<div><div class="track svelte-j4sfvm"></div></div>'),z4={hash:"svelte-j4sfvm",code:`.root.svelte-j4sfvm {height:var(--preview-track-frame-height-horizontal);position:relative;overflow:hidden;width:100%;display:flex;}.root.is-vertical-video.svelte-j4sfvm,
258
+ animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function vc(t,e){var j;F(e,!0),W(t,Gy);let[i,o]=Oe(),r=()=>S(C,"$isMobile",i),s=()=>S(A,"$areControlsVisible",i),l=()=>S(O,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),a=()=>S(x,"$interactiveControlsOpacity$",i),u=()=>S(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),v=h(e,"ref",15,void 0),p=Q(void 0),y=ge(),w=$o(),{interactiveControlsOpacity$:x}=w,C=y.ui.isMobile,T=y.ui.isFullscreen,E=y.state.isInteractiveTime$,R=w.showInteractiveTimeIndicatorTooltip$,A=y.ui.controlsVisible,I=(j=y.callbacks)==null?void 0:j.onInteractiveTimeIndicatorClick,O=y.ui.currentGridType$,H=m(()=>!r()&&s()),B=m(()=>Es(l(),"s")),z=m(()=>!d()||!!a()||n(H)),Z=Q(!1);qe(()=>{N(Z,n(z),!0)});let se=()=>{N(Z,!0)},q=()=>{var ie;de(),(ie=n(p))==null||ie.addEventListener("animationiteration",se,{once:!0})},de=()=>{var ie;N(Z,!1),(ie=n(p))==null||ie.removeEventListener("animationiteration",se)},X=ie=>{R.set(ie)},ve=m(()=>u()&&!n(z));qe(()=>{u()?q():de()});let re=()=>{n(z)||(R.set(!0),I==null||I())};rn(()=>{R.clearTimeout(),de()});let ae=()=>{R.set(!1)},Ae=Y("tooltip_interactive_interaction_time_indicator");var $e=Qy();let J;$e.__mousemove=[qy],$e.__click=re;var De=_($e);Ao(De,{get tooltipContent(){return Ae},get tooltipActive(){return n(ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:X,get ref(){return v()},set ref(ie){v(ie)},children:(ie,Be)=>{sc(ie,{completed:!0})},$$slots:{default:!0}});var ue=P(De,2);let k;at(ue,ie=>v(ie),()=>v());var Ge=P(ue,2);let Pe;at(Ge,ie=>N(p,ie),()=>n(p)),g($e),D((ie,Be,Ze)=>{J=ne($e,1,"interactive-episode-icon-animated svelte-od3veb",null,J,ie),k=ne(ue,1,"ref-block svelte-od3veb",null,k,Be),Pe=ne(Ge,1,"pulse svelte-od3veb",null,Pe,Ze)},[()=>({mobile:r(),fullscreen:f(),invisible:n(z),"icon-small":n(B)}),()=>({hidden:n(z)}),()=>({paused:n(Z)})]),xt("mouseleave",$e,ae),b(t,$e),U(),o()}ct(["mousemove","click"]);function sp(t,e){F(e,!0);let i=h(e,"tooltipEnabled",3,!0),o=h(e,"disabled",3,!1),r=h(e,"className",3,void 0),s=h(e,"ref",15);Ao(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return r()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=Ue();let u=m(()=>e.buttonComponent);var f=pe(a);Mi(f,()=>n(u),(v,p)=>{p(v,Ss(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(l,a)},$$slots:{default:!0}}),U()}var ks={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Yy=Ee('<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 zv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function mc(t,e){let i=h(e,"isPrev",3,!1),o=h(e,"isMobile",3,!1),r=h(e,"width",3,"24"),s=h(e,"height",3,"24"),l=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=m(()=>i()?"prev-icon":"next-icon");zv(t,{get style(){return n(l)},get width(){return r()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return n(d)}})}var Zy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Xy=M("<!> <!>",1),Jy={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Ua(t,e){F(e,!0),W(t,Jy);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=ge().ui.t,d=m(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=m(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);zt(t,{get className(){return n(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=Xy(),y=pe(p);{var w=T=>{var E=Zy();b(T,E)};V(y,T=>{o()&&T(w)})}var x=P(y,2);let C=m(()=>e.type==="prev");mc(x,{get isMobile(){return o()},get isPrev(){return n(C)}}),b(f,p)},$$slots:{default:!0}}),U()}var e4=Ee('<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 gc(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=e4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var O0=require("@vkontakte/videoplayer-shared/es2018");var t4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),i4=M("<!> <div><!></div>",1),o4={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 jl(t,e){F(e,!0),W(t,o4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),s=h(e,"className",3,""),l=h(e,"click",3,O0.noop),d=Y("tooltip_restart"),a=m(()=>`${o()?"btn-m--play":""} ${s()}`);zt(t,{get className(){return n(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return ls.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=i4(),p=pe(v);{var y=T=>{var E=t4();b(T,E)};V(p,T=>{o()&&T(y)})}var w=P(p,2);let x;var C=_(w);gc(C,{}),g(w),D(T=>x=ne(w,1,"svelte-1ot3duq",null,x,T),[()=>({mobile:o()})]),b(u,v)},$$slots:{default:!0}}),U()}var n4=Ee('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function sr(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=n4(),d=_(l);g(l),D(()=>{Qe(l,"width",i()),Qe(l,"height",o()),Qe(l,"viewBox",r()),Qe(d,"fill",s())}),b(t,l)}var r4=Ee('<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 As(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=r4(),d=_(l);g(l),D(()=>{Qe(l,"width",i()),Qe(l,"height",o()),Qe(l,"viewBox",r()),Qe(d,"fill",s())}),b(t,l)}var D0=require("@vkontakte/videoplayer-shared/es2018");var s4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),a4=M("<!> <div><!></div>",1),l4={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 Yl(t,e){F(e,!0),W(t,l4);let[i,o]=Oe(),r=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=$o(),l=h(e,"ref",15,void 0),d=h(e,"isMobile",3,!1),a=h(e,"isPlaying",3,!1),u=h(e,"disabled",3,!1),f=h(e,"className",3,""),v=h(e,"click",3,D0.noop),y=ge().ui.t,{toggle:w}=s,x=m(()=>w),C=m(()=>r()!==null),T=m(()=>n(C)?r():a()),E=m(()=>n(T)?y("tooltip_pause"):y("tooltip_play")),R=m(()=>n(T)?As:sr),A=m(()=>`${d()?"btn-m--play":""} ${f()}`),I=m(()=>n(C)?n(x):v());zt(t,{get className(){return n(A)},testId:"btn-play",get click(){return n(I)},get disabled(){return u()},get ariaLabel(){return n(E)},get ariaKeyShortCut(){return ls.KeyK},get ref(){return l()},set ref(O){l(O)},children:(O,H)=>{var B=a4();let z=m(()=>n(R));var Z=pe(B);{var se=ve=>{var re=s4();b(ve,re)};V(Z,ve=>{d()&&ve(se)})}var q=P(Z,2);let de;var X=_(q);Mi(X,()=>n(z),(ve,re)=>{re(ve,{})}),g(q),D(ve=>de=ne(q,1,"svelte-1ot3duq",null,de,ve),[()=>({mobile:d()})]),b(O,B)},$$slots:{default:!0}}),U(),o()}var d4=Ee('<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 Wv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=d4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function hc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=Y("tooltip_interactive_go_back"),l=m(()=>o()?"hidden":"");zt(t,{get className(){return n(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Wv(d,{})},$$slots:{default:!0}}),U()}var c4=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),u4={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 _c(t,e){F(e,!0),W(t,u4);let[i,o]=Oe(),r=()=>S(a,"$autoplayNextEnabled$",i),s=h(e,"ref",15,void 0),l=ge(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!r(),!0)},v=d("aria_label_autoplay"),p=m(()=>r()?"true":"false");zt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return n(p)},get ref(){return s()},set ref(y){s(y)},children:(y,w)=>{var x=c4(),C=_(x);let T;var E=_(C);{var R=I=>{sr(I,{width:"14",height:"14",fill:"#000"})},A=I=>{As(I,{width:"14",height:"14",fill:"#000"})};V(E,I=>{r()?I(R):I(A,!1)})}g(C),g(x),D(I=>T=ne(C,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:r()})]),b(y,x)},$$slots:{default:!0}}),U(),o()}var p4=Ee('<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 Kv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=p4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function bc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=Y("tooltip_interactive_seek"),l=m(()=>o()?"hidden":"");zt(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Kv(d,{})},$$slots:{default:!0}}),U()}var f4=Ee('<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 qv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=f4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var v4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Qv(t,e){W(t,v4);let i=h(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");qv(t,{get"data-testid"(){return n(o)}})}function $c(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=h(e,"graphIsOpened",3,!1),d=ge().ui.t,a=m(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");zt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=m(()=>!!s());Qv(f,{get isOpened(){return n(p)}})},$$slots:{default:!0}}),U()}var Gv=require("@vkontakte/videoplayer-core/es2018");function yc(t,e){F(e,!0);let[i,o]=Oe(),r=()=>S(u,"$playbackState$",i),s=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),a=ge(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=m(()=>()=>{if(!l()){f();return}r()===Gv.PlaybackState.PAUSED&&v()}),y=m(()=>s()?"":"btn--live btn-full-opacity"),w=m(()=>l()?"btn-live":"btn-live-offset"),x=m(()=>l()&&r()===Gv.PlaybackState.PLAYING);zt(t,{get className(){return n(y)},get testId(){return n(w)},get disabled(){return n(x)},get ariaLabel(){return d()},get click(){return n(p)},children:(C,T)=>{Qd(C,{get isActive(){return l()}})},$$slots:{default:!0}}),U(),o()}var jv=require("@vkontakte/videoplayer-shared/es2018");var m4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),g4=M('<img class="icon" aria-hidden="true"/>');function za(t,e){"use strict";let i=Q(!1),o=()=>{N(i,!0)};var r=Ue(),s=pe(r);{var l=a=>{var u=m4();b(a,u)},d=a=>{var u=g4();D(()=>Qe(u,"src",e.icon)),xt("error",u,o),xa(u),b(a,u)};V(s,a=>{n(i)?a(l):a(d,!1)})}b(t,r)}function Yv(t,e){F(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,jv.noop),r=h(e,"ref",15),s=m(()=>o()===jv.noop),l=m(()=>n(s)||i()),d=m(()=>n(s)?"btn-full-opacity":"");Ao(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return r()},set ref(a){r(a)},children:(a,u)=>{let f=m(()=>{var v;return(v=e.testId)!=null?v:e.id});zt(a,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(f)},children:(v,p)=>{za(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var B0=t=>!!t.buttonComponent;var Ps={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var ap=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(Wn(t,i,r,o))};var lp=require("@vkontakte/videoplayer-shared/es2018"),H0=10,F0=40,Zv=.2,_4=.5,b4=65,$4=114,y4=4,U0=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=m(()=>i?b4:$4),r=Q(!1),s=Q(0),l=Q(0),d=m(()=>n(o)+H0-F0-y4),a=m(()=>(0,lp.interpolate)(n(s),[Zv,1],[0,-n(d)])),u=m(()=>(0,lp.interpolate)(n(s),[Zv,1],[0,F0])),f=m(()=>(0,lp.interpolate)(n(s),[Zv,1],[0,n(o)+H0]));return{progressBarY:()=>n(a),controlsY:()=>n(u),calculatedHeight:()=>n(f),onPointerDown:x=>{var C;N(l,((C=e())==null?void 0:C.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:x=>{if(!n(r))return;let C=Math.max(Math.min(x.clientY-n(l),0),-n(d));N(s,Math.abs(C/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(s,n(s)>=_4?1:0,!0),n(s)===1&&t()},closePreviewTrack:()=>{N(s,0)}}};var x4=t=>t;function us(t,{delay:e=0,duration:i=400,easing:o=x4}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var w4=M('<span class="root svelte-mx6l45"> </span>'),S4={hash:"svelte-mx6l45",code:".root.svelte-mx6l45 {font-size:13px;line-height:16px;color:rgba(255, 255, 255, 1);box-shadow:0px 8px 24px 0px rgba(0, 0, 0, 0.08);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.08);font-weight:500;}"};function Xv(t,e){W(t,S4);var i=w4(),o=_(i,!0);g(i),D(()=>fe(o,e.time)),b(t,i)}var C4=M('<div class="tooltip-wrapper svelte-1xyyqd0"><div><!></div></div>'),T4={hash:"svelte-1xyyqd0",code:'.tooltip-wrapper.svelte-1xyyqd0 {position:relative;display:block;}.tooltip.svelte-1xyyqd0 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-1xyyqd0:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-1xyyqd0 {opacity:1;visibility:visible;}'};function Jv(t,e){W(t,T4);let i=h(e,"active",3,!1),o=h(e,"pointer",3,!1),r=h(e,"translateXPx",3,0),s=h(e,"translateYPx",3,0),l=h(e,"leftOffset",3,0),d=h(e,"rightOffset",3,0),a=Q(void 0),u=Q(void 0);function f(C){if(!n(u))return 0;let{width:T}=n(u).getBoundingClientRect(),E=T/2;return C<E?E+l():C>e.containerWidth-E?e.containerWidth-E-d():C}let v=m(()=>f(r()));var p=C4(),y=_(p);let w;var x=_(y);_e(x,()=>{var C;return(C=e.children)!=null?C:ce}),g(y),at(y,C=>N(u,C),()=>n(u)),g(p),at(p,C=>N(a,C),()=>n(a)),D(C=>{tt(p,`transform: translate(${n(v)}px, ${s()}px);`),w=ne(y,1,"tooltip svelte-1xyyqd0",null,w,C),tt(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,p)}var z0=t=>Math.abs(t)/90%4===1;var E4=M('<div class="preview svelte-1wqg760"></div>'),I4=M('<div class="time svelte-1wqg760"> </div>'),k4=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),A4={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 em(t,e){F(e,!0),W(t,A4);let[i,o]=Oe(),r=()=>S(w,"$rotateAlpha",i),s=()=>S(x,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=h(e,"time",3,""),a=h(e,"isMobile",3,!1),u=h(e,"videoEpisodes",19,()=>[]),f=h(e,"progress",3,0),v=h(e,"duration",3,0),p=h(e,"isInteractive",3,!1),y=ge(),w=y.ui.rotateAlpha,x=y.ui.playerSize,C=Q(0),T=Q(0),E=Q(""),R=Q(0),A=Q(0),I=Q(0),O=Q(0),H=m(()=>Zu(f(),v(),u())),B=m(()=>ql(r())),z=m(()=>z0(r())),Z=m(de),se=m(()=>(n(z)?1:-1)*(n(C)/2-n(T)/2)),q=m(()=>n(se)*-1);qe(()=>{(j=>{N(C,j.width,!0),N(T,j.height,!0)})(ve())}),qe(()=>{(j=>{N(E,j.imgSrc,!0),N(R,j.imgWidth,!0),N(A,j.imgHeight,!0),N(I,j.imgOffsetX,!0),N(O,j.imgOffsetY,!0)})(re(f()))});function de(){var Ze;let j=a()?l.MOBILE:l.DESKTOP,{isVertical:ie}=X(),Be=30;return(Ze=n(H))!=null&&Ze.text&&(Be+=16),(ie||n(B))&&(Be+=18,Be+=50),Math.min(Math.max(s().height-Be,0),j)}function X(){let j=e.previewThumbsData.frameWidth,ie=e.previewThumbsData.frameHeight,Be=ie>j;return{width:j,height:ie,isHorizontal:!Be,isVertical:Be}}function ve(){let{height:j,isHorizontal:ie,isVertical:Be,width:Ze}=X();return ie&&(j=j/Ze*n(Z),Ze=n(Z)),Be&&(Ze=Ze/j*n(Z),j=n(Z)),{width:Ze,height:j}}function re(j){let ie;e.previewThumbsData.isUV?ie=Math.floor(v()*j/e.previewThumbsData.frequency):ie=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*j)));let Be=Math.floor(ie/e.previewThumbsData.countPerImage),Ze=Math.floor(ie%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),me=ie%e.previewThumbsData.countPerRow,te=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Be===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(te=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&te++);let Ie=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Be===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ie=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let xe=n(C)*Ie,He=n(T)*te,Xe=-me*n(C),je=-Ze*n(T);return{imgSrc:e.previewThumbsData.links[Be],imgWidth:xe,imgHeight:He,imgOffsetX:Xe,imgOffsetY:je}}var ae=k4();let Ae;var $e=_(ae);{var J=j=>{var ie=E4();D(()=>tt(ie,`width: ${n(C)}px; height: ${n(T)}px; background-image: url(${n(E)}); background-size: ${n(R)}px ${n(A)}px; background-position: ${n(I)}px ${n(O)}px;
259
+ transform: rotate(${r()}deg) ${n(B)?`translate(${n(se)}px, ${n(q)}px)`:""};
260
+ `)),b(j,ie)};V($e,j=>{n(E)&&j(J)})}var De=P($e,2),ue=_(De);{var k=j=>{var ie=Ue(),Be=pe(ie);{var Ze=te=>{var Ie=as();D(xe=>fe(Ie,xe),[()=>Y("tooltip_episode_unfinished")]),b(te,Ie)},me=te=>{var Ie=as();D(()=>fe(Ie,n(H).text||"")),b(te,Ie)};V(Be,te=>{p()&&n(H).completed===!1?te(Ze):te(me,!1)})}b(j,ie)};V(ue,j=>{n(H)&&j(k)})}g(De);var Ge=P(De,2);{var Pe=j=>{var ie=I4(),Be=_(ie,!0);g(ie),D(()=>fe(Be,d())),b(j,ie)};V(Ge,j=>{p()||j(Pe)})}g(ae),D(j=>{Ae=ne(ae,1,"timeline-preview svelte-1wqg760",null,Ae,j),tt(ae,`width: ${n(B)?n(T):n(C)}px;`)},[()=>({mobile:a()})]),b(t,ae),U(),o()}var P4=M('<span class="time svelte-1jr6obn"> </span>'),M4=M("<!> <!>",1),L4={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function tm(t,e){var Le,Mt,Ve,lt,Tt;F(e,!0),W(t,L4);let[i,o]=Oe(),r=()=>S(q,"$interactiveEpisodes$",i),s=()=>S(O,"$duration$",i),l=()=>S(I,"$position$",i),d=()=>S(ve,"$isInteractiveExpectation$",i),a=()=>S(X,"$isInteractiveTime$",i),u=()=>S($e,"$previewTrackActive",i),f=()=>S(H,"$isLive$",i),v=()=>S(Ae,"$disabledControls$",i),p=()=>S(z,"$isMobile",i),y=()=>S(B,"$isActiveLive$",i),w=()=>S(A,"$bufferedProgress$",i),x=h(e,"showTimeline",3,!1),C=h(e,"withEpisodes",3,!0),T=h(e,"ref",15,void 0),E=ge(),R=Rt(),A=E.state.bufferedProgress$,I=E.state.positionWithScrubbing$,O=E.state.duration$,H=E.state.isLive$,B=E.state.isActiveLive$,z=E.ui.isMobile,Z=R.features.episodes&&C()?E.actions.internal.getVideoEpisodes():void 0,se=E.actions.internal.getPreviewThumbsData(),q=E.state.interactiveEpisodes$,de=E.state.isInteractive,X=E.state.isInteractiveTime$,ve=E.state.isInteractiveExpectation$,re=E.actions.internal.correctSeekTimeToInteractive,ae=(Le=E.callbacks)==null?void 0:Le.onDisabledTimelineClick,Ae=E.ui.controls.disabledControls$,$e=E.ui.previewTrackActive,J=(Ve=(Mt=E.callbacks)==null?void 0:Mt.uiInfo)==null?void 0:Ve.onTimelineMouseEnter,De=(Tt=(lt=E.callbacks)==null?void 0:lt.uiInfo)==null?void 0:Tt.onTimelineMouseLeave,ue=E.ui.t,k=R.features.interactiveResponsiveUi,Ge=m(()=>de?r():Z),Pe=m(()=>zo(s())),j=m(()=>zo(l())),ie=m(()=>l()/s()),Be=m(()=>d()||a()),Ze=Q(!1),me=Q(""),te=Q(0),Ie=Q(0),xe=Q(0),He=m(()=>({containerWidth:n(Ie),translateXPx:n(te),translateYPx:de&&se?-36:-16,active:n(Ze)&&x()&&!n(Be)&&!k&&!u(),pointer:!R.features.timelinePreview||!se||f()})),Xe=ue("aria_timeline"),je=m(()=>ue("aria_timeline_value",{position:n(j),duration:n(Pe)}));function Ke(we){return!re||!de?we:re(we*s())/s()}function Ye(we,st){var ze;(ze=e.onSliderPointerDown)==null||ze.call(e,st),E.actions.internal.startScrubbing(Ke(we))}function Dt(we){a()||E.actions.internal.progressScrubbing(Ke(we))}function rt(we){var st;E.actions.internal.completeScrubbing(Ke(we)),N(Ze,!1),(st=e.onSliderPointerUp)==null||st.call(e)}function Bt(we,st,ze){var ut;(ut=e.onSliderPointerEnter)==null||ut.call(e,we),Jt(we,st,ze),N(Ze,!0)}function qt(we,st,ze,ut){var Qt;(Qt=e.onSliderMove)==null||Qt.call(e,ut,we),Jt(we,st,ze),N(Ze,!0)}function Et(){var we;N(Ze,!1),(we=e.onSliderLeave)==null||we.call(e)}function Jt(we,st,ze){N(xe,Ke(we),!0),N(te,st,!0),ze&&N(Ie,ze,!0),N(me,Wt(we),!0)}function Wt(we){let st=zo((f()?1-we:we)*s());return f()?`-${st}`:st}let Se=m(()=>v().has("TIMELINE"));var ye=M4(),ee=pe(ye);Jv(ee,Ss(()=>n(He),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(we,st)=>{var ze=Ue(),ut=pe(ze);{var Qt=pi=>{em(pi,{get time(){return n(me)},get isMobile(){return p()},get videoEpisodes(){return n(Ge)},get previewThumbsData(){return se},get progress(){return n(xe)},get duration(){return s()},get isInteractive(){return de}})},_i=pi=>{var yi=P4(),oo=_(yi,!0);g(yi),D(()=>fe(oo,n(me))),b(pi,yi)};V(ut,pi=>{R.features.timelinePreview&&se&&!f()?pi(Qt):pi(_i,!1)})}b(we,ze)},$$slots:{default:!0}}));var Ce=P(ee,2);Ha(Ce,{className:"timeline-slider",get isActiveLive(){return y()},get isMobile(){return p()},get ariaLabel(){return Xe},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return n(je)},get loadedProgress(){return w()},get filledProgress(){return n(ie)},get handleProgress(){return n(ie)},get videoEpisodes(){return n(Ge)},onPointerDown:Ye,onHandleMove:Dt,onPointerMove:qt,onPointerUp:rt,onPointerEnter:Bt,onPointerLeave:Et,get onMouseEnter(){return J},get onMouseLeave(){return De},get onDisabledClick(){return ae},get isInteractive(){return de},get disabled(){return n(Se)},get handleAlwaysVisible(){return u()},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:rt,get ref(){return T()},set ref(we){T(we)}}),b(t,ye),U(),o()}var V4={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 xc(t,e){F(e,!0),W(t,V4);let[i,o]=Oe(),r=()=>S(a,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"duration",3,0),d=ge(),a=d.ui.isMobile,u=d.ui.t,f=m(()=>zo(l())),v=m(()=>zo(s())),p=m(()=>s()/l()),y=m(()=>u("aria_timeline_value",{position:n(v),duration:n(f)})),w=m(()=>Math.round(n(p)*100));Ha(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(w)},get ariaValueText(){return n(y)},get filledProgress(){return n(p)},hideHandel:!0,get squareBorders(){return r()}}),U(),o()}var R4=M("<div><!></div>"),N4=M("<div></div>"),O4={hash:"svelte-1b7iyrc",code:".timeline.svelte-1b7iyrc {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;box-sizing:border-box;}.timeline.mobile.svelte-1b7iyrc {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1b7iyrc {padding:0;}.timeline-stub.svelte-1b7iyrc {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1b7iyrc {height:8px;}"};function Wa(t,e){F(e,!0),W(t,O4);let[i,o]=Oe(),r=()=>S(C,"$isLive$",i),s=()=>S(R,"$isMobile",i),l=()=>S(A,"$disabled",i),d=()=>S(E,"$adPosition",i),a=()=>S(T,"$adDuration",i),u=h(e,"isAds",3,!1),f=h(e,"isHidden",3,!1),v=h(e,"timelineNotAvailable",3,!1),p=h(e,"needPadding",3,!0),y=h(e,"ref",15,void 0),w=ge(),x=Rt(),C=w.state.isLive$,T=w.ads.duration,E=w.ads.position,R=w.ui.isMobile,A=le(!1),I=m(()=>!v()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var O=Ue(),H=pe(O);{var B=Z=>{var se=R4();let q;var de=_(se);{var X=re=>{xc(re,{get position(){return d()},get duration(){return a()}})},ve=re=>{tm(re,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(I)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return y()},set ref(ae){y(ae)}})};V(de,re=>{u()?re(X):re(ve,!1)})}g(se),ws(se,()=>Ol(f()&&x.features.usePerformanceFix,A,x.disableInvisibleComponentsTimeout)),D(re=>q=ne(se,1,"timeline svelte-1b7iyrc",null,q,re),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),b(Z,se)},z=Z=>{var se=N4();let q;D(de=>q=ne(se,1,"timeline-stub svelte-1b7iyrc",null,q,de),[()=>({mobile:s()})]),b(Z,se)};V(H,Z=>{n(I)?Z(B):Z(z,!1)})}b(t,O),U(),o()}var W0=require("@vkontakte/videoplayer-shared/es2018");var D4=(t,e,i,o,r,s,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),s(l())},B4=M("<div></div>"),H4=M('<div><div class="track svelte-j4sfvm"></div></div>'),F4={hash:"svelte-j4sfvm",code:`.root.svelte-j4sfvm {height:var(--preview-track-frame-height-horizontal);position:relative;overflow:hidden;width:100%;display:flex;}.root.is-vertical-video.svelte-j4sfvm,
261
261
  .root.vertically-rotated.svelte-j4sfvm {height:var(--preview-track-frame-height-vertical);}
262
262
 
263
263
  /**
264
264
  * \u041A\u0430\u0440\u0435\u0442\u043A\u0430, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u043D\u0430 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043A\u0430\u0434\u0440.
265
- */.root.svelte-j4sfvm::after {content:'';height:100%;z-index:1;margin:0 auto;width:3px;background-color:rgba(255, 255, 255, 1);box-shadow:0px 2px 2px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.06);pointer-events:none;}.track.svelte-j4sfvm {position:absolute;bottom:0;left:0;top:0;display:flex;padding:0 50%;}.frame.svelte-j4sfvm {flex-shrink:0;position:absolute;pointer-events:none;background-position-y:calc(-1 * var(--frame-height) * var(--row-index));background-position-x:calc(-1 * var(--column-index)*var(--frame-width));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));width:var(--frame-width);height:var(--frame-height);transform-origin:center;}.vertically-rotated.svelte-j4sfvm .frame:where(.svelte-j4sfvm) {transform-origin:0 0;}.rotate-1.svelte-j4sfvm {transform:rotate(-90deg) translateX(-100%);}.rotate-2.svelte-j4sfvm {transform:rotate(-180deg);}.rotate-3.svelte-j4sfvm {transform:rotate(-270deg) translateY(-100%);}`};function om(t,e){F(e,!0),W(t,z4);let[i,o]=De(),r=()=>S(R,"$rotateAlpha",i),s=()=>S(x,"$position$",i),l=()=>S(w,"$duration$",i),d=he(),{countPerImage:a=0,countPerRow:u=0,countTotal:f=0,links:v=[],frameHeight:p=0,frameWidth:y=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:w,positionWithScrubbing$:x}=d.state,{startScrubbing:C,progressScrubbing:T,completeScrubbing:E}=d.actions.internal,R=d.ui.rotateAlpha,A=Q(void 0),I=Q(!1),O=Q(0),H=Q(0),B=Q(0),z=Q(0),Z=m(()=>p<=y),ae=m(()=>Ql(r())),q=m(()=>n(Z)?!n(ae):n(ae)),de=114,X=65,fe=3,re=m(()=>n(q)?de:X),le=m(()=>n(Z)?de:X),Me=m(()=>n(Z)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),we=m(()=>f*n(re)),te=Q(0);ze(()=>{N(z,Math.ceil(-n(B)/n(re))-1),N(B,-n(we)*s()/l())});let Ne=()=>{E(ue(),!0)},ue=()=>l()*-n(B)/n(we)/l(),k=!1,Ke=Ge=>{if(!n(I))return!1;let ct=Ge.clientX-n(O);N(B,n(H)+ct),N(B,Math.max(Math.min(n(B),0),-n(we)),!0),Math.abs(ct)>1&&(k=!0),T(ue())},Ve=Ge=>{n(I)&&(N(I,!1),!k&&Ge&&N(B,-(Ge.offsetX-n(te)/2)),k=!1,Ne())},Y=()=>{n(I)&&Ve()},oe=m(()=>a/u),Be=(Ge,ct)=>{if(Ge!==v.length-1)return u;let et=0,Bt=ct*u;for(let rt=1;rt<=u;rt++)Ge*a+et+Bt<f&&et++;return et},Ze=m(()=>Math.floor(n(z)/a)),me=m(()=>(0,W0.getRangeAroundIndex)(3,n(Ze),v.length-1)),J=(Ge,ct,et)=>{let Bt=a*n(re);return Ge*Bt+ct*n(re)*u+n(te)/2-fe/2+et*n(re)},Ie=m(()=>[`--row-numbers: ${n(oe)}`,`--column-numbers: ${u}`,`--frame-width: ${n(le)}px`,`--frame-height: ${n(Me)}`].join(";"));var ge=U4();let Fe;var Xe=_(ge);Xe.__pointerdown=[H4,I,O,H,B,C,ue],Xe.__pointermove=Ke,Xe.__pointerup=Ve,Ci(Xe,20,()=>n(me),Ge=>Ge,(Ge,ct)=>{var et=He(),Bt=pe(et);Ci(Bt,16,()=>Array.from({length:n(oe)},(rt,Dt)=>Dt),rt=>rt,(rt,Dt)=>{var qt=He(),Et=pe(qt);Ci(Et,16,()=>Array.from({length:Be(ct,Dt)},(ei,Wt)=>Wt),ei=>ei,(ei,Wt)=>{var Se=F4();D((xe,ee)=>{Je(Se,xe),ne(Se,1,ee,"svelte-j4sfvm")},[()=>`--row-index: ${Dt}; --column-index: ${Wt}; left: ${J(ct,Dt,Wt)}px; background-image: url(${v[ct]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(ei,Se)}),b(rt,qt)}),b(Ge,et)}),g(Xe),g(ge),at(ge,Ge=>N(A,Ge),()=>n(A)),D(Ge=>{Fe=ne(ge,1,"root svelte-j4sfvm",null,Fe,Ge),Je(ge,n(Ie)),Je(Xe,`transform: translateX(${n(B)}px); width: ${n(we)}px;`)},[()=>({"is-vertical-video":!n(Z),"vertically-rotated":n(ae)})]),Ct("mouseleave",Xe,Y),En(ge,"clientWidth",Ge=>N(te,Ge)),b(t,ge),U(),o()}dt(["pointerdown","pointermove","pointerup"]);var W4=M('<div class="notification svelte-1u3ref1"><span class="description svelte-1u3ref1"> </span></div>'),K4={hash:"svelte-1u3ref1",code:".notification.svelte-1u3ref1 {padding:9px 14px 10px 12px;background:var(--notification-bg);border-radius:var(--notification-radius);}.description.svelte-1u3ref1 {line-height:18px;font-size:14px;}"};function nm(t,e){F(e,!1),W(t,K4);let i=340,{ui:{t:o}}=he();jo();var r=W4(),s=_(r),l=_(s,!0);g(s),g(r),D(d=>ve(l,d),[()=>o("preview_track_close_tooltip")],xn),jr(3,r,()=>ps,()=>({duration:i})),b(t,r),U()}var K0=require("@vkontakte/videoplayer-shared/es2018"),q4=M('<div class="preview-track-close tooltip svelte-19h243g"><!></div>'),Q4=M('<div class="preview-track-control svelte-19h243g"><!> <div class="preview-track-close svelte-19h243g"><!></div> <!></div>'),G4=M('<div class="wrapper-preview-track svelte-19h243g"><!></div>'),j4=M('<div class="enriched-timeline svelte-19h243g"><!> <!> <!></div>'),Y4={hash:"svelte-19h243g",code:`.enriched-timeline.svelte-19h243g {padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal)
266
- var(--timeline-padding-vertical-bottom);position:relative;pointer-events:auto;}.preview-track-control.svelte-19h243g {top:calc((var(--timeline-height) + var(--preview-track-controls-top)) * -1);position:absolute;left:0;right:0;padding:0 calc(var(--timeline-padding-horizontal));display:flex;align-items:center;justify-content:center;pointer-events:none;}.preview-track-close.svelte-19h243g {position:absolute;right:calc(var(--timeline-padding-horizontal));pointer-events:auto;}.preview-track-close.tooltip.svelte-19h243g {bottom:32px;opacity:0;transition:opacity 200ms;}.preview-track-close.svelte-19h243g:hover + .tooltip:where(.svelte-19h243g) {opacity:1;}.wrapper-preview-track.svelte-19h243g {position:absolute;left:0;right:0;overflow:hidden;z-index:-1;padding:0 calc(var(--timeline-padding-horizontal));box-sizing:border-box;}`};function rm(t,e){F(e,!0),W(t,Y4);let[i,o]=De(),r=()=>S(x,"$playerSize",i),s=()=>S(w,"$duration$",i),l=()=>S(C,"$previewTrackActive",i),d=()=>S(p,"$position$",i),a=()=>S(y,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),f=he(),v=200,{positionWithScrubbing$:p,isRewindableLive$:y,duration$:w}=f.state,{playerSize:x,previewTrackActive:C}=f.ui,{countPerImage:T=0,links:E=[],frequency:R=0}=f.actions.internal.getPreviewThumbsData()||{},A=m(()=>r().width>100),I=Q(!Y1()),O=()=>{n(I)&&(j1(),N(I,!1))},H=re=>{let le=Math.floor(s()*re/R),Me=Math.floor(le/T),we=(0,K0.getRangeAroundIndex)(3,Me,E.length-1);for(let te of we){let Ne=new Image;Ne.src=E[te]}},B=(re,le)=>{H(le),!l()&&e.onTimelineMove(re)};var z=j4(),Z=_(z);{var ae=re=>{var le=Q4(),Me=_(le);let we=m(()=>Yo(d()));Xv(Me,{get time(){return n(we)}});var te=P(Me,2),Ne=_(te);Is(Ne,{onClick:()=>f.actions.internal.closePreviewTrack()}),g(te);var ue=P(te,2);{var k=Ke=>{var Ve=q4(),Y=_(Ve);nm(Y,{}),g(Ve),b(Ke,Ve)};V(ue,Ke=>{n(I)&&Ke(k)})}g(le),Ct("mouseleave",te,O),jr(3,le,()=>ps,()=>({duration:v})),b(re,le)};V(Z,re=>{l()&&re(ae)})}var q=P(Z,2);let de=m(()=>!n(A));Ka(q,{get isHidden(){return n(de)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return a()},onSliderMove:B,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:H,get ref(){return u()},set ref(re){u(re)}});var X=P(q,2);{var fe=re=>{var le=G4(),Me=_(le);om(Me,{}),g(le),D(()=>Je(le,`height: ${e.animatedPreviewTrackHeight}px;`)),b(re,le)};V(X,re=>{e.previewTrackAvailable&&re(fe)})}g(z),D(()=>Je(z,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,z),U(),o()}var X4=M('<div><!> <div class="controls svelte-1ojrdvx" data-testid="player_controls"><div class="controls-left svelte-1ojrdvx"><!> <!> <!></div> <div class="controls-right svelte-1ojrdvx"></div></div></div> <!>',1),J4={hash:"svelte-1ojrdvx",code:".wrapper-bottom.svelte-1ojrdvx {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1ojrdvx::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-1ojrdvx > :where(.svelte-1ojrdvx) {pointer-events:auto;}.controls.svelte-1ojrdvx {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-1ojrdvx, .controls-right.svelte-1ojrdvx {display:flex;align-content:center;}.controls-left.svelte-1ojrdvx {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1ojrdvx > *:not(:first-child), .controls-right.svelte-1ojrdvx > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1ojrdvx {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1ojrdvx {transition:none;}"};function am(t,e){var ll,da;F(e,!0),W(t,J4);let[i,o]=De(),r=()=>S(Zo,"$disabledControls$",i),s=()=>S(pt,"$adPlaybackState",i),l=()=>S(ni,"$playbackState$",i),d=()=>S(yo,"$currentSubtitle$",i),a=()=>S(ro,"$isEnded$",i),u=()=>S(Xo,"$currentGridType$",i),f=()=>S(po,"$isLive$",i),v=()=>S(je,"$chromecastState$",i),p=()=>S(ki,"$isPictureInPictureActive",i),y=()=>S(jt,"$pictureInPictureType$",i),w=()=>S(xi,"$availableSubtitlesList$",i),x=()=>S(Ht,"$contextMenuOpenedByKeyboard$",i),C=()=>S(kt,"$showContextMenuBtn$",i),T=()=>S(gt,"$isRewindableLive$",i),E=()=>S(di,"$isActiveLive$",i),R=()=>S(ts,"$graphIsOpened$",i),A=()=>S(dn,"$contextMenuVisible$",i),I=()=>S(Vi,"$isFullscreen",i),O=()=>S(so,"$autoplayNextEnabled",i),H=()=>S(n(Ni),"$prevButton",i),B=()=>S(n(Oi),"$replayButton",i),z=()=>S(n(mn),"$playButton",i),Z=()=>S(n(wo),"$nextButton",i),ae=()=>S(n(So),"$playPrevChapterButton",i),q=()=>S(n(vi),"$seekToInteractiveButton",i),de=()=>S(n(Rn),"$interactiveGraphButton",i),X=()=>S(n(ho),"$liveButton",i),fe=()=>S(n(Gn),"$time",i),re=()=>S(n(jn),"$episodes",i),le=()=>S(n(Rr),"$vkLogo",i),Me=()=>S(n(Nr),"$volume",i),we=()=>S(n(gn),"$subtitles",i),te=()=>S(n(hn),"$settings",i),Ne=()=>S(n(gr),"$context",i),ue=()=>S(n(_n),"$fullscreen",i),k=()=>S(n(Or),"$chromecast",i),Ke=()=>S(Vo,"$additionalDesktopControlPanelRightButtons$",i),Ve=()=>S(Fi,"$playerSize",i),Y=()=>S(cn,"$isInteractiveTime$",i),oe=()=>S(ci,"$previewTrackActive",i),Be=()=>S(Tt,"$settingsMenuVisible",i),Ze=()=>S(Yi,"$settingButtonRef$",i),me=()=>S(K,"$startedByKeyboard$",i),J=()=>S(fi,"$isAudioAvailable$",i),Ie=()=>S(xe,"$fakeIsPlaying$",i),ge=()=>S(fs,"$seekToInteractiveDisabledTooltip$",i),Fe=()=>S($e,"$isPreviewTrackHorizontallyAligned$",i),Xe=()=>S($n,"$previewTrackAvailable",i),Ge=()=>S(bo,"$previewTrackDragInProgress",i),ct=()=>S(Gt,"$adPosition",i),et=()=>S(ti,"$position$",i),Bt=()=>S(At,"$adDuration",i),rt=()=>S(lt,"$duration$",i),Dt=h(e,"playerControlsWrapperRef",15,void 0),qt=h(e,"playerControlsRef",15,void 0),Et=h(e,"isAds",3,!1),ei=h(e,"logoTargetUrl",3,""),Wt=h(e,"isOneVideoPlaylist",3,!1),Se=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:xe}=$o(),ee=he(),Ce=$o(),Pe=Rt(),It=ee.actions.internal.toggleMuted,Oe=ee.actions.internal.togglePlay,ut=ee.actions.internal.pause,yt=ee.actions.internal.toggleSubtitle,ye=ee.actions.internal.checkFullscreenSupport,ot=(ll=ee.callbacks)==null?void 0:ll.onAudioDoesNotExistHint,qe=(da=ee.callbacks)==null?void 0:da.onAudioDisabledHint,lt=ee.state.duration$,ti=ee.state.positionWithScrubbing$,ni=ee.state.playbackState$,fi=ee.state.isAudioAvailable$,yi=ee.state.isAudioDisabled,ro=ee.state.isEnded$,po=ee.state.isLive$,di=ee.state.isActiveLive$,gt=ee.state.isRewindableLive$,{isActive$:ki,type$:jt}=Ce.pictureInPicture$,Tt=ee.ui.settingsMenu.visible$,oi=ee.ui.settingsMenu.openedByBtnKeyboard$,Yt=ee.ui.controls,St=ee.actions.internal.getVideoEpisodes(),je=ee.state.chromecastState$,xi=ee.state.availableSubtitlesList$,yo=ee.state.currentSubtitle$,Zo=Yt.disabledControls$,dn=ee.ui.contextMenu.visible$,kt=ee.ui.contextMenu.showContextMenuBtn$,Ht=ee.ui.contextMenu.openedByBtnKeyboard$,K=ee.ui.startedByKeyboard$,Vt=ee.ui.controlBlocks,ii=ee.ui.previewTrackNotificationVisible,vt=ee.ui.t,At=ee.ads.duration,Gt=ee.ads.position,pt=ee.ads.playbackState,Vi=ee.ui.isFullscreen,Fi=ee.ui.playerSize,Xo=ee.ui.currentGridType$,Vo=ee.ui.additionalDesktopControlPanelRightButtons$,so=ee.ui.autoplayNextEnabled$,Ui=ee.actions.internal.getVideoElement,dr=ee.actions.internal.replayInteractive,fo=ee.actions.internal.prevVideoClick,vo=ee.actions.internal.nextVideoClick,Ri=ee.state.isInteractive,cn=ee.state.isInteractiveTime$,Ro=ee.state.showInteractiveGraph,cr=ee.state.showSeekToInteractive,ur=ee.state.showPlayPrevChapter,Sr=ee.state.showInteractiveTimeIndicator,es=ee.state.playPrevChapterDisabledTooltip,fs=Ce.seekToInteractiveDisabledTooltip$,ts=Ce.graphIsOpened$,xo=Pe.features.interactiveResponsiveUi,Wn=m(()=>r().has("EPISODE_BUTTON")),No=m(()=>r().has("GRAPH_BUTTON")),un=m(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),kn=m(()=>r().has("PLAY_BUTTON")),pr=m(()=>r().has("REPLAY_BUTTON")),Cr=m(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Tr=()=>ee.actions.internal.toggleChromecast(),Er=m(()=>Et()?s()==="playing":l()===qa.PlaybackState.PLAYING),Ir=m(()=>d().value!=="off"),ji=m(()=>a()&&!Et()||Ri),kr=m(()=>xo?n(ji)&&io(u(),"m"):n(ji)),An=m(()=>!a()||Ri||Et()),pn=m(()=>io(u(),"m")),mo=m(()=>e.showNextPrevButtons&&io(u(),"m")&&!Et()&&e.nextButtonActive),fr=m(()=>e.showNextPrevButtons&&io(u(),"m")&&!Et()&&e.prevButtonActive),Pn=m(()=>!Et()&&!!f()),ht=m(()=>v()!==qa.ChromecastState.NOT_AVAILABLE&&!(p()&&y()===1)&&io(u(),"m")&&!Ri),pi=m(()=>e.showAutoplayNext&&!Wt()&&io(u(),"s")),Ar=m(()=>w().length>0&&io(u(),"m")),Kn=m(()=>x()||C()),Pr=m(()=>io(u(),"s")&&!Et()),Mn=m(()=>!e.logoHidden&&!Et()),Ln=m(()=>Pe.features.fullscreen&&ye()&&(e.logoHidden||io(u(),xo?"xs":"s"))&&!(p()&&y()===1)&&(Ri?Se():!0)),Oo=m(()=>(!f()||Et())&&!(Pe.features.interactiveHideTime&&Ri)),Do=m(()=>Ro&&io(u(),"m")),fn=m(()=>xo?cr&&io(u(),"s"):cr),go=m(()=>xo?ur&&io(u(),"s"):ur),Bo=m(()=>!Et()&&!f()&&!!(St!=null&&St.length)&&n(pn)&&!n(Wn)),Jo=m(()=>!T()||!!E()),vr=m(()=>R()?vt("tooltip_interactive_graph_on"):vt("tooltip_interactive_graph_off")),Mr=m(()=>A()?vt("tooltip_context_menu_close"):vt("tooltip_context_menu_open")),vn=(bt,$t)=>bt?$t&&$t===qa.PlaybackState.PAUSED?vt("tooltip_play"):"":vt("tooltip_live"),zi=m(()=>vn(n(Jo),l())),mr=m(()=>Pe.logoType==="vk_video"?vt("tooltip_vk_video_logo"):vt("tooltip_vk_logo")),Lr=m(()=>n(Ir)?vt("tooltip_subtitles_on"):vt("tooltip_subtitles_off")),Vn=m(()=>I()?vt("tooltip_fullscreen_on"):vt("tooltip_fullscreen_off")),qn=m(()=>v()===qa.ChromecastState.CONNECTED?vt("tooltip_chromecast_on"):vt("tooltip_chromecast_off")),Vr=m(()=>O()?vt("tooltip_autoplay_on"):vt("tooltip_autoplay_off")),Qn=Q(0),it=ai({}),ri=ai({}),Ni=m(()=>Yt.prevButton),Oi=m(()=>Yt.replayButton),mn=m(()=>Yt.playButton),wo=m(()=>Yt.nextButton),So=m(()=>Yt.playPrevChapterButton),vi=m(()=>Yt.seekToInteractiveButton),Rn=m(()=>Yt.interactiveGraphButton),ho=m(()=>Yt.liveButton),Gn=m(()=>Yt.time),jn=m(()=>Yt.episodes),Rr=m(()=>Yt.vkLogo),Nr=m(()=>Yt.volume),gn=m(()=>Yt.subtitles),hn=m(()=>Yt.settings),gr=m(()=>Yt.context),_n=m(()=>Yt.fullscreen),Or=m(()=>Yt.chromecast),tt=m(()=>({prevButton:H()?H().right-H().left:0,replayButton:B()?B().right-B().left:0,playButton:z()?z().right-z().left:0,nextButton:Z()?Z().right-Z().left:0,playPrevChapterButton:ae()?ae().right-ae().left:0,seekToInteractiveButton:q()?q().right-q().left:0,interactiveGraphButton:de()?de().right-de().left:0,liveButton:X()?X().right-X().left:0,time:fe()?fe().right-fe().left:0,episodes:re()?re().right-re().left:0,vkLogo:le()?le().right-le().left:0,volume:Me()?Me().right-Me().left:0,subtitles:we()?we().right-we().left:0,settings:te()?te().right-te().left:0,context:Ne()?Ne().right-Ne().left:0,fullscreen:ue()?ue().right-ue().left:0,chromecast:k()?k().right-k().left:0,additionalButtons:Ke().length?Ke().reduce(bt=>[...bt,40],[]):[]})),Mt=Q(0);ze(()=>{(!n(Mt)||n(Mt)<n(tt).time)&&Pt(()=>N(Mt,n(tt).time,!0))});let wi=Q(!1);ze(()=>{let bt=0;n(Bo)&&(io(u(),"xl")?bt=n(tt).time:bt=60);let $t=n(tt).prevButton+n(tt).playButton+n(tt).nextButton+n(tt).seekToInteractiveButton+n(tt).interactiveGraphButton+n(tt).liveButton+n(Mt)+bt;N(wi,n(Oo)&&n(Qn)>=$t,!0)});let _o=m(()=>n(wi)&&io(u(),"m")),Ho=(0,sm.debounceFn)(jl,260),Co=(0,sm.debounceFn)(lp,260);ze(()=>{Ve(),Y(),oe(),Ho(Ui(),Yt,it,e.showControls),Co(Ui(),Vt,ri,e.showControls)}),ze(()=>{ri.bottom=Dt()});let Yi=se();ze(()=>{Be(),Ze()&&Pt(()=>Hl(Ze(),Be(),oi))});let Ai;ze(()=>{me(),Pt(()=>sp(K,me(),Ai))});function en(){Xs({isAudioDisabled:yi,isAudioAvailable:J(),isAds:Et(),audioIsNotExistHintCallback:ot,audioDisabledHintCallback:qe})&&It()}let Fo=Ri?dr:Oe,To=m(()=>Ie()!==null),Zi=m(()=>n(To)?Ie():n(Er)),Dr=m(()=>n(Zi)?vt("tooltip_pause"):vt("tooltip_play")),Yn=vt("tooltip_episodes"),Zn=m(()=>{var bt,$t,Ji,Eo;return n(fr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ps.prevButton,buttonComponent:za,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:fo.bind(null,!0)},tooltipEnabled:!(($t=(bt=ee.callbacks)==null?void 0:bt.uiInfo)!=null&&$t.onPrevButtonMouseEnter)&&!((Eo=(Ji=ee.callbacks)==null?void 0:Ji.uiInfo)!=null&&Eo.onPrevButtonMouseLeave),mouseEnter:()=>{var eo,hi,Wi;(Wi=(hi=(eo=ee.callbacks)==null?void 0:eo.uiInfo)==null?void 0:hi.onPrevButtonMouseEnter)==null||Wi.call(hi,Un(Ui(),it,"prevButton",e.showControls))},mouseLeave:()=>{var eo,hi,Wi;(Wi=(hi=(eo=ee.callbacks)==null?void 0:eo.uiInfo)==null?void 0:hi.onPrevButtonMouseLeave)==null||Wi.call(hi,Un(Ui(),it,"prevButton",e.showControls))},tooltipText:vt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),hr=m(()=>n(kr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ps.replayButton,buttonComponent:Yl,buttonComponentProps:{disabled:n(pr),click:Fo},tooltipText:vt("tooltip_restart"),disabled:n(pr)}:void 0),vs=m(()=>n(An)?{id:"playButton",type:"desktop-control-panel-left",weight:Ps.playButton,buttonComponent:Zl,buttonComponentProps:{disabled:n(kn),isPlaying:n(Er),click:Oe},tooltipText:n(Dr),disabled:n(kn)}:void 0),Br=m(()=>{var bt,$t,Ji,Eo;return n(mo)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ps.nextButton,buttonComponent:za,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:vo.bind(null,!0)},tooltipEnabled:!(($t=(bt=ee.callbacks)==null?void 0:bt.uiInfo)!=null&&$t.onNextButtonMouseEnter)&&!((Eo=(Ji=ee.callbacks)==null?void 0:Ji.uiInfo)!=null&&Eo.onNextButtonMouseLeave),mouseEnter:()=>{var eo,hi,Wi;(Wi=(hi=(eo=ee.callbacks)==null?void 0:eo.uiInfo)==null?void 0:hi.onNextButtonMouseEnter)==null||Wi.call(hi,Un(Ui(),it,"nextButton",e.showControls))},mouseLeave:()=>{var eo,hi,Wi;(Wi=(hi=(eo=ee.callbacks)==null?void 0:eo.uiInfo)==null?void 0:hi.onNextButtonMouseLeave)==null||Wi.call(hi,Un(Ui(),it,"nextButton",e.showControls))},tooltipText:vt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),is=m(()=>Ri&&n(go)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ps.playPrevChapterButton,buttonComponent:_c,buttonComponentProps:{disabled:n(Cr),click:e.playPrevChapter},tooltipText:vt("tooltip_interactive_go_back"),disabledTooltipContent:vt(es),disabled:n(Cr)}:void 0),Qe=m(()=>Ri&&n(fn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ps.seekToInteractiveButton,buttonComponent:$c,buttonComponentProps:{disabled:n(un),click:e.seekToInteractive},tooltipText:vt("tooltip_interactive_seek"),disabled:n(un),disabledTooltipContent:vt(ge())}:void 0),Xt=m(()=>Ri&&n(Do)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ps.interactiveGraphButton,buttonComponent:yc,buttonComponentProps:{disabled:n(No),click:ts.toggle,graphIsOpened:R()},tooltipText:n(vr)}:void 0),gi=m(()=>n(Pn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ps.liveButton,buttonComponent:xc,buttonComponentProps:{isLiveActive:n(Jo),ariaLabel:n(zi)},tooltipText:n(zi),disabled:n(Jo)&&l()===qa.PlaybackState.PLAYING}:void 0),bn=m(()=>[n(Zn),n(hr),n(vs),n(Br),n(is),n(Qe),n(Xt),n(gi)].filter(bt=>!!bt).sort(Na)),Uo=m(()=>n(Mn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ls.vkLogo,buttonComponent:cc,buttonComponentProps:{targetUrl:ei(),logoClickable:e.logoClickable,click:ut},tooltipText:n(mr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Hr=m(()=>n(pi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ls.autoplayNext,buttonComponent:bc,tooltipText:n(Vr)}:void 0),tn=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ls.volume,buttonComponent:Ev,buttonComponentProps:{click:en,isAds:Et()}})),Fr=m(()=>n(Ar)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ls.subtitles,buttonComponent:wv,buttonComponentProps:{isSubtitlesEnabled:n(Ir),click:yt},tooltipText:n(Lr)}:void 0),Rs=m(()=>n(Pr)?{id:"settings",type:"desktop-control-panel-right",weight:Ls.settings,buttonComponent:Kl,buttonComponentProps:{ref$:Yi},tooltipText:Be()?void 0:vt("tooltip_settings_off")}:void 0),Xi=m(()=>Pe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ls.context,buttonComponent:Uv,buttonComponentProps:{ariaLabel:vt("aria_label_context_menu")},className:n(Kn)?"":"out-of-view",tooltipText:n(Mr)}:void 0),Ur=m(()=>n(Ln)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ls.fullscreen,buttonComponent:dc,buttonComponentProps:{isFullscreen:I(),click:e.toggleFullscreen},tooltipText:n(Vn)}:void 0),oa=m(()=>n(ht)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ls.chromecast,buttonComponent:uc,buttonComponentProps:{state:v(),click:Tr},tooltipText:n(qn)}:void 0),_t=m(()=>[n(Uo),n(Hr),n(tn),n(Fr),n(Rs),n(Xi),n(Ur),n(oa),...Ke()].filter(bt=>!!bt).sort(Na)),ci=ee.ui.previewTrackActive,bo=ee.ui.previewTrackDragInProgress,$n=ee.ui.previewTrackAvailable,$e=ee.ui.isPreviewTrackHorizontallyAligned,mt=m(()=>U0({onPreviewTrackOpened:ee.actions.internal.previewTrackOpened,getTimelineRef:()=>it.timeline,isHorizontal:Fe()})),si=m(()=>n(mt).progressBarY),Si=m(()=>n(mt).controlsY),ui=m(()=>n(mt).onPointerDown),Jt=m(()=>n(mt).onPointerMove),Ei=m(()=>n(mt).onPointerUp),yn=m(()=>n(mt).calculatedHeight),on=m(()=>n(mt).closePreviewTrack);ze(()=>{oe()?ii.set(!1):n(on)()});let Pi;Ot(()=>()=>Pi&&clearTimeout(Pi));let ol=bt=>{oe()||!Xe()||(n(ui)(bt),Pi=setTimeout(()=>{ee.actions.internal.previewTrackDragStarted()},200))},na=()=>{oe()||n(Ei)(),Pi&&clearTimeout(Pi),Ge()&&ee.actions.internal.previewTrackDragFinished()},ra=bt=>{n(Jt)(bt),!oe()&&Xe()&&!oe()&&ii.set(!0)},sa=()=>{ii.set(!1)};var Xn=X4(),ms=pe(Xn);let aa;var _r=_(ms);{var nl=bt=>{let $t=m(()=>n(si)()),Ji=m(()=>n(yn)());rm(bt,{get animatedOffsetY(){return n($t)},get animatedPreviewTrackHeight(){return n(Ji)},get canRewindLive(){return e.canRewindLive},get isAds(){return Et()},onTimelineMove:ra,onTimelinePointerDown:ol,onTimelinePointerUp:na,onTimelinePointerLeave:sa,get previewTrackAvailable(){return Xe()},get timelineRef(){return it.timeline},set timelineRef(Eo){it.timeline=Eo}})};V(_r,bt=>{e.showControls&&bt(nl)})}var gs=P(_r,2),hs=_(gs),rl=_(hs);Ci(rl,17,()=>n(bn),bt=>bt.id,(bt,$t)=>{ap(bt,{get buttonComponent(){return n($t).buttonComponent},get buttonComponentProps(){return n($t).buttonComponentProps},get tooltipText(){return n($t).tooltipText},get disabledTooltipContent(){return n($t).disabledTooltipContent},get disabled(){return n($t).disabled},get className(){return n($t).className},get tooltipEnabled(){return n($t).tooltipEnabled},get mouseEnter(){return n($t).mouseEnter},get mouseLeave(){return n($t).mouseLeave},get ref(){return it[n($t).id]},set ref(Ji){it[n($t).id]=Ji}})});var la=P(rl,2);{var ld=bt=>{let $t=m(()=>!e.showControls),Ji=m(()=>Et()?ct():et()),Eo=m(()=>Et()?Bt():rt());sc(bt,{get isHidden(){return n($t)},isMobile:!1,get showDuration(){return n(_o)},get position(){return n(Ji)},get duration(){return n(Eo)},get ref(){return it.time},set ref(eo){it.time=eo}})};V(la,bt=>{n(Oo)&&bt(ld)})}var sl=P(la,2);let dd=m(()=>!n(Bo));Mo(sl,{className:"w-max",get disabled(){return n(dd)},get tooltipContent(){return Yn},get ref(){return it.episodes},set ref(bt){it.episodes=bt},children:(bt,$t)=>{var Ji=He(),Eo=pe(Ji);{var eo=hi=>{pc(hi,{get position(){return et()},get duration(){return rt()},get timeCodes(){return St}})};V(Eo,hi=>{n(Bo)&&hi(eo)})}b(bt,Ji)},$$slots:{default:!0}}),g(hs);var Jn=P(hs,2);Ci(Jn,21,()=>n(_t),bt=>bt.id,(bt,$t)=>{var Ji=He(),Eo=pe(Ji);{var eo=Wi=>{ap(Wi,{get buttonComponent(){return n($t).buttonComponent},get buttonComponentProps(){return n($t).buttonComponentProps},get tooltipText(){return n($t).tooltipText},get disabledTooltipContent(){return n($t).disabledTooltipContent},get disabled(){return n($t).disabled},get className(){return n($t).className},get ref(){return it[n($t).id]},set ref(Ns){it[n($t).id]=Ns}})},hi=Wi=>{let Ns=m(()=>!!n($t).disabled);Yv(Wi,{get id(){return n($t).id},get testId(){return n($t).testId},get icon(){return n($t).icon},get ariaLabel(){return n($t).ariaLabel},get tooltipText(){return n($t).tooltipText},get disabledTooltipContent(){return n($t).disabledTooltipContent},get disabled(){return n(Ns)},get onClick(){return n($t).onClick},get disableMouseupTooltipShow(){return n($t).disableMouseupTooltipShow},get ref(){return it[n($t).id]},set ref(ud){it[n($t).id]=ud}})};V(Eo,Wi=>{B0(n($t))?Wi(eo):Wi(hi,!1)})}b(bt,Ji)}),g(Jn),g(gs),at(gs,bt=>qt(bt),()=>qt()),g(ms),at(ms,bt=>Dt(bt),()=>Dt());var cd=P(ms,2);{var al=bt=>{mc(bt,{get ref(){return it.interactiveTimeIndicator},set ref($t){it.interactiveTimeIndicator=$t}})};V(cd,bt=>{Sr&&bt(al)})}D((bt,$t)=>{aa=ne(ms,1,"wrapper-bottom svelte-1ojrdvx",null,aa,bt),Je(gs,$t),gs.inert=oe()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Ge()}),()=>`transform: translateY(${n(Si)()}px);`]),En(hs,"clientWidth",bt=>N(Qn,bt)),b(t,Xn),U(),o()}var Xl=require("@vkontakte/videoplayer-core/es2018");var lm=require("@vkontakte/videoplayer-shared/es2018");var e3=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),t3=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),i3={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 dm(t,e){W(t,i3);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,lm.noop),r=m(()=>o()===lm.noop),s=m(()=>n(r)||i()),l=Q(!1),d=()=>{N(l,!0)},a=m(()=>n(r)?"btn-full-opacity":"");zt(t,{get className(){return n(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(u,f)=>{var v=He(),p=pe(v);{var y=x=>{var C=e3();b(x,C)},w=x=>{var C=t3();D(()=>We(C,"src",e.iconUrl)),Ct("error",C,d),wa(C),b(x,C)};V(p,x=>{n(l)?x(y):x(w,!1)})}b(u,v)},$$slots:{default:!0}})}var o3=Ee('<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 cm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=o3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var q0=require("@vkontakte/videoplayer-shared/es2018");var n3=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),r3={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function cp(t,e){F(e,!0),W(t,r3);let i=h(e,"muted",3,!1),o=h(e,"click",3,q0.noop),r=h(e,"ref",15,void 0),l=he().ui.t,d=m(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=m(()=>i()?cm:ea),u=m(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");zt(t,{get testId(){return n(u)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(f){r(f)},children:(f,v)=>{var p=n3();let y=m(()=>n(a));var w=_(p);Mi(w,()=>n(y),(x,C)=>{C(x,{})}),g(p),b(f,p)},$$slots:{default:!0}}),U()}var s3=Ee('<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 um(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=s3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(3),g(o),b(t,o)}var a3={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
267
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function pm(t,e){W(t,a3);let i=h(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),r=m(()=>i()?"pip-icon--active":"pip-icon");um(t,{get style(){return n(o)},get"data-testid"(){return n(r)}})}var Q0=require("@vkontakte/videoplayer-shared/es2018");function fm(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,Q0.noop),s=j("menu_pip");zt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{pm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}var vm=require("@vkontakte/videoplayer-shared/es2018");var l3=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},d3=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},c3=M("<div><!></div>"),u3=M("<div><!></div>"),p3=M("<div><!></div>"),f3=M("<!> <!> <!>",1),v3=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),m3=M('<div class="wrapper-middle svelte-tg0ura"><!></div>'),g3=M("<div><!></div> <!> <div><!></div>",1),h3=M('<div aria-hidden="true">\xB7</div> <!>',1),_3=M('<!> <!> <div><div><div class="controls mobile svelte-tg0ura"><div class="controls-group contain svelte-tg0ura"><!> <!> <!> <!></div> <div class="controls-group svelte-tg0ura"><!> <!> <!></div></div> <!></div></div> <!>',1),b3={hash:"svelte-tg0ura",code:`.wrapper-bottom.svelte-tg0ura {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-tg0ura::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-tg0ura > :where(.svelte-tg0ura) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-tg0ura {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-tg0ura {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-tg0ura {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-tg0ura {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-tg0ura,
265
+ */.root.svelte-j4sfvm::after {content:'';height:100%;z-index:1;margin:0 auto;width:3px;background-color:rgba(255, 255, 255, 1);box-shadow:0px 2px 2px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.06);pointer-events:none;}.track.svelte-j4sfvm {position:absolute;bottom:0;left:0;top:0;display:flex;padding:0 50%;}.frame.svelte-j4sfvm {flex-shrink:0;position:absolute;pointer-events:none;background-position-y:calc(-1 * var(--frame-height) * var(--row-index));background-position-x:calc(-1 * var(--column-index)*var(--frame-width));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));width:var(--frame-width);height:var(--frame-height);transform-origin:center;}.vertically-rotated.svelte-j4sfvm .frame:where(.svelte-j4sfvm) {transform-origin:0 0;}.rotate-1.svelte-j4sfvm {transform:rotate(-90deg) translateX(-100%);}.rotate-2.svelte-j4sfvm {transform:rotate(-180deg);}.rotate-3.svelte-j4sfvm {transform:rotate(-270deg) translateY(-100%);}`};function om(t,e){F(e,!0),W(t,F4);let[i,o]=Oe(),r=()=>S(R,"$rotateAlpha",i),s=()=>S(x,"$position$",i),l=()=>S(w,"$duration$",i),d=ge(),{countPerImage:a=0,countPerRow:u=0,countTotal:f=0,links:v=[],frameHeight:p=0,frameWidth:y=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:w,positionWithScrubbing$:x}=d.state,{startScrubbing:C,progressScrubbing:T,completeScrubbing:E}=d.actions.internal,R=d.ui.rotateAlpha,A=Q(void 0),I=Q(!1),O=Q(0),H=Q(0),B=Q(0),z=Q(0),Z=m(()=>p<=y),se=m(()=>ql(r())),q=m(()=>n(Z)?!n(se):n(se)),de=114,X=65,ve=3,re=m(()=>n(q)?de:X),ae=m(()=>n(Z)?de:X),Ae=m(()=>n(Z)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),$e=m(()=>f*n(re)),J=Q(0);qe(()=>{N(z,Math.ceil(-n(B)/n(re))-1),N(B,-n($e)*s()/l())});let De=()=>{E(ue(),!0)},ue=()=>l()*-n(B)/n($e)/l(),k=!1,Ge=je=>{if(!n(I))return!1;let Ke=je.clientX-n(O);N(B,n(H)+Ke),N(B,Math.max(Math.min(n(B),0),-n($e)),!0),Math.abs(Ke)>1&&(k=!0),T(ue())},Pe=je=>{n(I)&&(N(I,!1),!k&&je&&N(B,-(je.offsetX-n(J)/2)),k=!1,De())},j=()=>{n(I)&&Pe()},ie=m(()=>a/u),Be=(je,Ke)=>{if(je!==v.length-1)return u;let Ye=0,Dt=Ke*u;for(let rt=1;rt<=u;rt++)je*a+Ye+Dt<f&&Ye++;return Ye},Ze=m(()=>Math.floor(n(z)/a)),me=m(()=>(0,W0.getRangeAroundIndex)(3,n(Ze),v.length-1)),te=(je,Ke,Ye)=>{let Dt=a*n(re);return je*Dt+Ke*n(re)*u+n(J)/2-ve/2+Ye*n(re)},Ie=m(()=>[`--row-numbers: ${n(ie)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ae)}px`,`--frame-height: ${n(Ae)}`].join(";"));var xe=H4();let He;var Xe=_(xe);Xe.__pointerdown=[D4,I,O,H,B,C,ue],Xe.__pointermove=Ge,Xe.__pointerup=Pe,Ci(Xe,20,()=>n(me),je=>je,(je,Ke)=>{var Ye=Ue(),Dt=pe(Ye);Ci(Dt,16,()=>Array.from({length:n(ie)},(rt,Bt)=>Bt),rt=>rt,(rt,Bt)=>{var qt=Ue(),Et=pe(qt);Ci(Et,16,()=>Array.from({length:Be(Ke,Bt)},(Jt,Wt)=>Wt),Jt=>Jt,(Jt,Wt)=>{var Se=B4();D((ye,ee)=>{tt(Se,ye),ne(Se,1,ee,"svelte-j4sfvm")},[()=>`--row-index: ${Bt}; --column-index: ${Wt}; left: ${te(Ke,Bt,Wt)}px; background-image: url(${v[Ke]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(Jt,Se)}),b(rt,qt)}),b(je,Ye)}),g(Xe),g(xe),at(xe,je=>N(A,je),()=>n(A)),D(je=>{He=ne(xe,1,"root svelte-j4sfvm",null,He,je),tt(xe,n(Ie)),tt(Xe,`transform: translateX(${n(B)}px); width: ${n($e)}px;`)},[()=>({"is-vertical-video":!n(Z),"vertically-rotated":n(se)})]),xt("mouseleave",Xe,j),In(xe,"clientWidth",je=>N(J,je)),b(t,xe),U(),o()}ct(["pointerdown","pointermove","pointerup"]);var U4=M('<div class="notification svelte-1u3ref1"><span class="description svelte-1u3ref1"> </span></div>'),z4={hash:"svelte-1u3ref1",code:".notification.svelte-1u3ref1 {padding:9px 14px 10px 12px;background:var(--notification-bg);border-radius:var(--notification-radius);}.description.svelte-1u3ref1 {line-height:18px;font-size:14px;}"};function nm(t,e){F(e,!1),W(t,z4);let i=340,{ui:{t:o}}=ge();Uo();var r=U4(),s=_(r),l=_(s,!0);g(s),g(r),D(d=>fe(l,d),[()=>o("preview_track_close_tooltip")],wn),Wr(3,r,()=>us,()=>({duration:i})),b(t,r),U()}var K0=require("@vkontakte/videoplayer-shared/es2018"),W4=M('<div class="preview-track-close tooltip svelte-19h243g"><!></div>'),K4=M('<div class="preview-track-control svelte-19h243g"><!> <div class="preview-track-close svelte-19h243g"><!></div> <!></div>'),q4=M('<div class="wrapper-preview-track svelte-19h243g"><!></div>'),Q4=M('<div class="enriched-timeline svelte-19h243g"><!> <!> <!></div>'),G4={hash:"svelte-19h243g",code:`.enriched-timeline.svelte-19h243g {padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal)
266
+ var(--timeline-padding-vertical-bottom);position:relative;pointer-events:auto;}.preview-track-control.svelte-19h243g {top:calc((var(--timeline-height) + var(--preview-track-controls-top)) * -1);position:absolute;left:0;right:0;padding:0 calc(var(--timeline-padding-horizontal));display:flex;align-items:center;justify-content:center;pointer-events:none;}.preview-track-close.svelte-19h243g {position:absolute;right:calc(var(--timeline-padding-horizontal));pointer-events:auto;}.preview-track-close.tooltip.svelte-19h243g {bottom:32px;opacity:0;transition:opacity 200ms;}.preview-track-close.svelte-19h243g:hover + .tooltip:where(.svelte-19h243g) {opacity:1;}.wrapper-preview-track.svelte-19h243g {position:absolute;left:0;right:0;overflow:hidden;z-index:-1;padding:0 calc(var(--timeline-padding-horizontal));box-sizing:border-box;}`};function rm(t,e){F(e,!0),W(t,G4);let[i,o]=Oe(),r=()=>S(x,"$playerSize",i),s=()=>S(w,"$duration$",i),l=()=>S(C,"$previewTrackActive",i),d=()=>S(p,"$position$",i),a=()=>S(y,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),f=ge(),v=200,{positionWithScrubbing$:p,isRewindableLive$:y,duration$:w}=f.state,{playerSize:x,previewTrackActive:C}=f.ui,{countPerImage:T=0,links:E=[],frequency:R=0}=f.actions.internal.getPreviewThumbsData()||{},A=m(()=>r().width>100),I=Q(!Y1()),O=()=>{n(I)&&(j1(),N(I,!1))},H=re=>{let ae=Math.floor(s()*re/R),Ae=Math.floor(ae/T),$e=(0,K0.getRangeAroundIndex)(3,Ae,E.length-1);for(let J of $e){let De=new Image;De.src=E[J]}},B=(re,ae)=>{H(ae),!l()&&e.onTimelineMove(re)};var z=Q4(),Z=_(z);{var se=re=>{var ae=K4(),Ae=_(ae);let $e=m(()=>zo(d()));Xv(Ae,{get time(){return n($e)}});var J=P(Ae,2),De=_(J);Ts(De,{onClick:()=>f.actions.internal.closePreviewTrack()}),g(J);var ue=P(J,2);{var k=Ge=>{var Pe=W4(),j=_(Pe);nm(j,{}),g(Pe),b(Ge,Pe)};V(ue,Ge=>{n(I)&&Ge(k)})}g(ae),xt("mouseleave",J,O),Wr(3,ae,()=>us,()=>({duration:v})),b(re,ae)};V(Z,re=>{l()&&re(se)})}var q=P(Z,2);let de=m(()=>!n(A));Wa(q,{get isHidden(){return n(de)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return a()},onSliderMove:B,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:H,get ref(){return u()},set ref(re){u(re)}});var X=P(q,2);{var ve=re=>{var ae=q4(),Ae=_(ae);om(Ae,{}),g(ae),D(()=>tt(ae,`height: ${e.animatedPreviewTrackHeight}px;`)),b(re,ae)};V(X,re=>{e.previewTrackAvailable&&re(ve)})}g(z),D(()=>tt(z,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,z),U(),o()}var Y4=M('<div><!> <div class="controls svelte-1ojrdvx" data-testid="player_controls"><div class="controls-left svelte-1ojrdvx"><!> <!> <!></div> <div class="controls-right svelte-1ojrdvx"></div></div></div> <!>',1),Z4={hash:"svelte-1ojrdvx",code:".wrapper-bottom.svelte-1ojrdvx {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1ojrdvx::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-1ojrdvx > :where(.svelte-1ojrdvx) {pointer-events:auto;}.controls.svelte-1ojrdvx {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-1ojrdvx, .controls-right.svelte-1ojrdvx {display:flex;align-content:center;}.controls-left.svelte-1ojrdvx {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1ojrdvx > *:not(:first-child), .controls-right.svelte-1ojrdvx > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1ojrdvx {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1ojrdvx {transition:none;}"};function am(t,e){var ll,aa;F(e,!0),W(t,Z4);let[i,o]=Oe(),r=()=>S(Wo,"$disabledControls$",i),s=()=>S(pt,"$adPlaybackState",i),l=()=>S(_i,"$playbackState$",i),d=()=>S(yo,"$currentSubtitle$",i),a=()=>S(oo,"$isEnded$",i),u=()=>S(Ko,"$currentGridType$",i),f=()=>S(no,"$isLive$",i),v=()=>S(Je,"$chromecastState$",i),p=()=>S(bi,"$isPictureInPictureActive",i),y=()=>S(li,"$pictureInPictureType$",i),w=()=>S(Ti,"$availableSubtitlesList$",i),x=()=>S(Ht,"$contextMenuOpenedByKeyboard$",i),C=()=>S(It,"$showContextMenuBtn$",i),T=()=>S(gt,"$isRewindableLive$",i),E=()=>S(di,"$isActiveLive$",i),R=()=>S(ln,"$graphIsOpened$",i),A=()=>S(an,"$contextMenuVisible$",i),I=()=>S(Hi,"$isFullscreen",i),O=()=>S(ro,"$autoplayNextEnabled",i),H=()=>S(n(Vi),"$prevButton",i),B=()=>S(n(Ri),"$replayButton",i),z=()=>S(n(fn),"$playButton",i),Z=()=>S(n(So),"$nextButton",i),se=()=>S(n(co),"$playPrevChapterButton",i),q=()=>S(n(Zt),"$seekToInteractiveButton",i),de=()=>S(n(Nn),"$interactiveGraphButton",i),X=()=>S(n(Jo),"$liveButton",i),ve=()=>S(n(br),"$time",i),re=()=>S(n(Zr),"$episodes",i),ae=()=>S(n(Xr),"$vkLogo",i),Ae=()=>S(n(Jr),"$volume",i),$e=()=>S(n(vn),"$subtitles",i),J=()=>S(n(mn),"$settings",i),De=()=>S(n($r),"$context",i),ue=()=>S(n(gn),"$fullscreen",i),k=()=>S(n(Lr),"$chromecast",i),Ge=()=>S(xo,"$additionalDesktopControlPanelRightButtons$",i),Pe=()=>S(Fi,"$playerSize",i),j=()=>S(qo,"$isInteractiveTime$",i),ie=()=>S(ti,"$previewTrackActive",i),Be=()=>S($t,"$settingsMenuVisible",i),Ze=()=>S(Yi,"$settingButtonRef$",i),me=()=>S(K,"$startedByKeyboard$",i),te=()=>S(pi,"$isAudioAvailable$",i),Ie=()=>S(ye,"$fakeIsPlaying$",i),xe=()=>S(fs,"$seekToInteractiveDisabledTooltip$",i),He=()=>S(he,"$isPreviewTrackHorizontallyAligned$",i),Xe=()=>S(Zn,"$previewTrackAvailable",i),je=()=>S(Ro,"$previewTrackDragInProgress",i),Ke=()=>S(jt,"$adPosition",i),Ye=()=>S(Qt,"$position$",i),Dt=()=>S(At,"$adDuration",i),rt=()=>S(ut,"$duration$",i),Bt=h(e,"playerControlsWrapperRef",15,void 0),qt=h(e,"playerControlsRef",15,void 0),Et=h(e,"isAds",3,!1),Jt=h(e,"logoTargetUrl",3,""),Wt=h(e,"isOneVideoPlaylist",3,!1),Se=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:ye}=$o(),ee=ge(),Ce=$o(),Le=Rt(),Mt=ee.actions.internal.toggleMuted,Ve=ee.actions.internal.togglePlay,lt=ee.actions.internal.pause,Tt=ee.actions.internal.toggleSubtitle,we=ee.actions.internal.checkFullscreenSupport,st=(ll=ee.callbacks)==null?void 0:ll.onAudioDoesNotExistHint,ze=(aa=ee.callbacks)==null?void 0:aa.onAudioDisabledHint,ut=ee.state.duration$,Qt=ee.state.positionWithScrubbing$,_i=ee.state.playbackState$,pi=ee.state.isAudioAvailable$,yi=ee.state.isAudioDisabled,oo=ee.state.isEnded$,no=ee.state.isLive$,di=ee.state.isActiveLive$,gt=ee.state.isRewindableLive$,{isActive$:bi,type$:li}=Ce.pictureInPicture$,$t=ee.ui.settingsMenu.visible$,fi=ee.ui.settingsMenu.openedByBtnKeyboard$,Yt=ee.ui.controls,wt=ee.actions.internal.getVideoEpisodes(),Je=ee.state.chromecastState$,Ti=ee.state.availableSubtitlesList$,yo=ee.state.currentSubtitle$,Wo=Yt.disabledControls$,an=ee.ui.contextMenu.visible$,It=ee.ui.contextMenu.showContextMenuBtn$,Ht=ee.ui.contextMenu.openedByBtnKeyboard$,K=ee.ui.startedByKeyboard$,kt=ee.ui.controlBlocks,ii=ee.ui.previewTrackNotificationVisible,ht=ee.ui.t,At=ee.ads.duration,jt=ee.ads.position,pt=ee.ads.playbackState,Hi=ee.ui.isFullscreen,Fi=ee.ui.playerSize,Ko=ee.ui.currentGridType$,xo=ee.ui.additionalDesktopControlPanelRightButtons$,ro=ee.ui.autoplayNextEnabled$,Ui=ee.actions.internal.getVideoElement,kr=ee.actions.internal.replayInteractive,ho=ee.actions.internal.prevVideoClick,so=ee.actions.internal.nextVideoClick,zi=ee.state.isInteractive,qo=ee.state.isInteractiveTime$,Qo=ee.state.showInteractiveGraph,ar=ee.state.showSeekToInteractive,lr=ee.state.showPlayPrevChapter,dr=ee.state.showInteractiveTimeIndicator,ps=ee.state.playPrevChapterDisabledTooltip,fs=Ce.seekToInteractiveDisabledTooltip$,ln=Ce.graphIsOpened$,dn=Le.features.interactiveResponsiveUi,qn=m(()=>r().has("EPISODE_BUTTON")),Go=m(()=>r().has("GRAPH_BUTTON")),jo=m(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),cr=m(()=>r().has("PLAY_BUTTON")),ur=m(()=>r().has("REPLAY_BUTTON")),Ar=m(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),pr=()=>ee.actions.internal.toggleChromecast(),jr=m(()=>Et()?s()==="playing":l()===Ka.PlaybackState.PLAYING),fr=m(()=>d().value!=="off"),ao=m(()=>a()&&!Et()||zi),vr=m(()=>dn?n(ao)&&eo(u(),"m"):n(ao)),An=m(()=>!a()||zi||Et()),Pn=m(()=>eo(u(),"m")),lo=m(()=>e.showNextPrevButtons&&eo(u(),"m")&&!Et()&&e.nextButtonActive),mr=m(()=>e.showNextPrevButtons&&eo(u(),"m")&&!Et()&&e.prevButtonActive),Yo=m(()=>!Et()&&!!f()),yt=m(()=>v()!==Ka.ChromecastState.NOT_AVAILABLE&&!(p()&&y()===1)&&eo(u(),"m")&&!zi),vi=m(()=>e.showAutoplayNext&&!Wt()&&eo(u(),"s")),gr=m(()=>w().length>0&&eo(u(),"m")),Qn=m(()=>x()||C()),Yr=m(()=>eo(u(),"s")&&!Et()),Zo=m(()=>!e.logoHidden&&!Et()),Mn=m(()=>Le.features.fullscreen&&we()&&(e.logoHidden||eo(u(),dn?"xs":"s"))&&!(p()&&y()===1)&&(zi?Se():!0)),Ii=m(()=>(!f()||Et())&&!(Le.features.interactiveHideTime&&zi)),Wi=m(()=>Qo&&eo(u(),"m")),Xo=m(()=>dn?ar&&eo(u(),"s"):ar),Gn=m(()=>dn?lr&&eo(u(),"s"):lr),cn=m(()=>!Et()&&!f()&&!!(wt!=null&&wt.length)&&n(Pn)&&!n(qn)),un=m(()=>!T()||!!E()),jn=m(()=>R()?ht("tooltip_interactive_graph_on"):ht("tooltip_interactive_graph_off")),pn=m(()=>A()?ht("tooltip_context_menu_close"):ht("tooltip_context_menu_open")),Ln=(_t,bt)=>_t?bt&&bt===Ka.PlaybackState.PAUSED?ht("tooltip_play"):"":ht("tooltip_live"),wo=m(()=>Ln(n(un),l())),hr=m(()=>Le.logoType==="vk_video"?ht("tooltip_vk_video_logo"):ht("tooltip_vk_logo")),Pr=m(()=>n(fr)?ht("tooltip_subtitles_on"):ht("tooltip_subtitles_off")),Vn=m(()=>I()?ht("tooltip_fullscreen_on"):ht("tooltip_fullscreen_off")),Rn=m(()=>v()===Ka.ChromecastState.CONNECTED?ht("tooltip_chromecast_on"):ht("tooltip_chromecast_off")),Mr=m(()=>O()?ht("tooltip_autoplay_on"):ht("tooltip_autoplay_off")),_r=Q(0),ot=si({}),ni=si({}),Vi=m(()=>Yt.prevButton),Ri=m(()=>Yt.replayButton),fn=m(()=>Yt.playButton),So=m(()=>Yt.nextButton),co=m(()=>Yt.playPrevChapterButton),Zt=m(()=>Yt.seekToInteractiveButton),Nn=m(()=>Yt.interactiveGraphButton),Jo=m(()=>Yt.liveButton),br=m(()=>Yt.time),Zr=m(()=>Yt.episodes),Xr=m(()=>Yt.vkLogo),Jr=m(()=>Yt.volume),vn=m(()=>Yt.subtitles),mn=m(()=>Yt.settings),$r=m(()=>Yt.context),gn=m(()=>Yt.fullscreen),Lr=m(()=>Yt.chromecast),it=m(()=>({prevButton:H()?H().right-H().left:0,replayButton:B()?B().right-B().left:0,playButton:z()?z().right-z().left:0,nextButton:Z()?Z().right-Z().left:0,playPrevChapterButton:se()?se().right-se().left:0,seekToInteractiveButton:q()?q().right-q().left:0,interactiveGraphButton:de()?de().right-de().left:0,liveButton:X()?X().right-X().left:0,time:ve()?ve().right-ve().left:0,episodes:re()?re().right-re().left:0,vkLogo:ae()?ae().right-ae().left:0,volume:Ae()?Ae().right-Ae().left:0,subtitles:$e()?$e().right-$e().left:0,settings:J()?J().right-J().left:0,context:De()?De().right-De().left:0,fullscreen:ue()?ue().right-ue().left:0,chromecast:k()?k().right-k().left:0,additionalButtons:Ge().length?Ge().reduce(_t=>[..._t,40],[]):[]})),Lt=Q(0);qe(()=>{(!n(Lt)||n(Lt)<n(it).time)&&Pt(()=>N(Lt,n(it).time,!0))});let xi=Q(!1);qe(()=>{let _t=0;n(cn)&&(eo(u(),"xl")?_t=n(it).time:_t=60);let bt=n(it).prevButton+n(it).playButton+n(it).nextButton+n(it).seekToInteractiveButton+n(it).interactiveGraphButton+n(it).liveButton+n(Lt)+_t;N(xi,n(Ii)&&n(_r)>=bt,!0)});let _o=m(()=>n(xi)&&eo(u(),"m")),bo=(0,sm.debounceFn)(Gl,260),uo=(0,sm.debounceFn)(ap,260);qe(()=>{Pe(),j(),ie(),bo(Ui(),Yt,ot,e.showControls),uo(Ui(),kt,ni,e.showControls)}),qe(()=>{ni.bottom=Bt()});let Yi=le();qe(()=>{Be(),Ze()&&Pt(()=>Bl(Ze(),Be(),fi))});let Ni;qe(()=>{me(),Pt(()=>rp(K,me(),Ni))});function hn(){Ys({isAudioDisabled:yi,isAudioAvailable:te(),isAds:Et(),audioIsNotExistHintCallback:st,audioDisabledHintCallback:ze})&&Mt()}let po=zi?kr:Ve,Mo=m(()=>Ie()!==null),Lo=m(()=>n(Mo)?Ie():n(jr)),Yn=m(()=>n(Lo)?ht("tooltip_pause"):ht("tooltip_play")),On=ht("tooltip_episodes"),Vr=m(()=>{var _t,bt,Zi,Co;return n(mr)?{id:"prevButton",type:"desktop-control-panel-left",weight:ks.prevButton,buttonComponent:Ua,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:ho.bind(null,!0)},tooltipEnabled:!((bt=(_t=ee.callbacks)==null?void 0:_t.uiInfo)!=null&&bt.onPrevButtonMouseEnter)&&!((Co=(Zi=ee.callbacks)==null?void 0:Zi.uiInfo)!=null&&Co.onPrevButtonMouseLeave),mouseEnter:()=>{var Xi,mi,Ki;(Ki=(mi=(Xi=ee.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:mi.onPrevButtonMouseEnter)==null||Ki.call(mi,Wn(Ui(),ot,"prevButton",e.showControls))},mouseLeave:()=>{var Xi,mi,Ki;(Ki=(mi=(Xi=ee.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:mi.onPrevButtonMouseLeave)==null||Ki.call(mi,Wn(Ui(),ot,"prevButton",e.showControls))},tooltipText:ht("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),yr=m(()=>n(vr)?{id:"replayButton",type:"desktop-control-panel-left",weight:ks.replayButton,buttonComponent:jl,buttonComponentProps:{disabled:n(ur),click:po},tooltipText:ht("tooltip_restart"),disabled:n(ur)}:void 0),es=m(()=>n(An)?{id:"playButton",type:"desktop-control-panel-left",weight:ks.playButton,buttonComponent:Yl,buttonComponentProps:{disabled:n(cr),isPlaying:n(jr),click:Ve},tooltipText:n(Yn),disabled:n(cr)}:void 0),Rr=m(()=>{var _t,bt,Zi,Co;return n(lo)?{id:"nextButton",type:"desktop-control-panel-left",weight:ks.nextButton,buttonComponent:Ua,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:so.bind(null,!0)},tooltipEnabled:!((bt=(_t=ee.callbacks)==null?void 0:_t.uiInfo)!=null&&bt.onNextButtonMouseEnter)&&!((Co=(Zi=ee.callbacks)==null?void 0:Zi.uiInfo)!=null&&Co.onNextButtonMouseLeave),mouseEnter:()=>{var Xi,mi,Ki;(Ki=(mi=(Xi=ee.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:mi.onNextButtonMouseEnter)==null||Ki.call(mi,Wn(Ui(),ot,"nextButton",e.showControls))},mouseLeave:()=>{var Xi,mi,Ki;(Ki=(mi=(Xi=ee.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:mi.onNextButtonMouseLeave)==null||Ki.call(mi,Wn(Ui(),ot,"nextButton",e.showControls))},tooltipText:ht("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),ts=m(()=>zi&&n(Gn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ks.playPrevChapterButton,buttonComponent:hc,buttonComponentProps:{disabled:n(Ar),click:e.playPrevChapter},tooltipText:ht("tooltip_interactive_go_back"),disabledTooltipContent:ht(ps),disabled:n(Ar)}:void 0),We=m(()=>zi&&n(Xo)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ks.seekToInteractiveButton,buttonComponent:bc,buttonComponentProps:{disabled:n(jo),click:e.seekToInteractive},tooltipText:ht("tooltip_interactive_seek"),disabled:n(jo),disabledTooltipContent:ht(xe())}:void 0),ei=m(()=>zi&&n(Wi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ks.interactiveGraphButton,buttonComponent:$c,buttonComponentProps:{disabled:n(Go),click:ln.toggle,graphIsOpened:R()},tooltipText:n(jn)}:void 0),ki=m(()=>n(Yo)?{id:"liveButton",type:"desktop-control-panel-left",weight:ks.liveButton,buttonComponent:yc,buttonComponentProps:{isLiveActive:n(un),ariaLabel:n(wo)},tooltipText:n(wo),disabled:n(un)&&l()===Ka.PlaybackState.PLAYING}:void 0),_n=m(()=>[n(Vr),n(yr),n(es),n(Rr),n(ts),n(We),n(ei),n(ki)].filter(_t=>!!_t).sort(Ra)),en=m(()=>n(Zo)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ps.vkLogo,buttonComponent:dc,buttonComponentProps:{targetUrl:Jt(),logoClickable:e.logoClickable,click:lt},tooltipText:n(hr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Nr=m(()=>n(vi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ps.autoplayNext,buttonComponent:_c,tooltipText:n(Mr)}:void 0),tn=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ps.volume,buttonComponent:Ev,buttonComponentProps:{click:hn,isAds:Et()}})),Vo=m(()=>n(gr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ps.subtitles,buttonComponent:wv,buttonComponentProps:{isSubtitlesEnabled:n(fr),click:Tt},tooltipText:n(Pr)}:void 0),Or=m(()=>n(Yr)?{id:"settings",type:"desktop-control-panel-right",weight:Ps.settings,buttonComponent:Wl,buttonComponentProps:{ref$:Yi},tooltipText:Be()?void 0:ht("tooltip_settings_off")}:void 0),bn=m(()=>Le.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ps.context,buttonComponent:Uv,buttonComponentProps:{ariaLabel:ht("aria_label_context_menu")},className:n(Qn)?"":"out-of-view",tooltipText:n(pn)}:void 0),Ls=m(()=>n(Mn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ps.fullscreen,buttonComponent:lc,buttonComponentProps:{isFullscreen:I(),click:e.toggleFullscreen},tooltipText:n(Vn)}:void 0),ta=m(()=>n(yt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ps.chromecast,buttonComponent:cc,buttonComponentProps:{state:v(),click:pr},tooltipText:n(Rn)}:void 0),ft=m(()=>[n(en),n(Nr),n(tn),n(Vo),n(Or),n(bn),n(Ls),n(ta),...Ge()].filter(_t=>!!_t).sort(Ra)),ti=ee.ui.previewTrackActive,Ro=ee.ui.previewTrackDragInProgress,Zn=ee.ui.previewTrackAvailable,he=ee.ui.isPreviewTrackHorizontallyAligned,vt=m(()=>U0({onPreviewTrackOpened:ee.actions.internal.previewTrackOpened,getTimelineRef:()=>ot.timeline,isHorizontal:He()})),ri=m(()=>n(vt).progressBarY),wi=m(()=>n(vt).controlsY),ci=m(()=>n(vt).onPointerDown),oi=m(()=>n(vt).onPointerMove),Si=m(()=>n(vt).onPointerUp),$n=m(()=>n(vt).calculatedHeight),Dn=m(()=>n(vt).closePreviewTrack);qe(()=>{ie()?ii.set(!1):n(Dn)()});let Ai;Ot(()=>()=>Ai&&clearTimeout(Ai));let ia=_t=>{ie()||!Xe()||(n(ci)(_t),Ai=setTimeout(()=>{ee.actions.internal.previewTrackDragStarted()},200))},il=()=>{ie()||n(Si)(),Ai&&clearTimeout(Ai),je()&&ee.actions.internal.previewTrackDragFinished()},xr=_t=>{n(oi)(_t),!ie()&&Xe()&&!ie()&&ii.set(!0)},ol=()=>{ii.set(!1)};var oa=Y4(),yn=pe(oa);let na;var nl=_(yn);{var rl=_t=>{let bt=m(()=>n(ri)()),Zi=m(()=>n($n)());rm(_t,{get animatedOffsetY(){return n(bt)},get animatedPreviewTrackHeight(){return n(Zi)},get canRewindLive(){return e.canRewindLive},get isAds(){return Et()},onTimelineMove:xr,onTimelinePointerDown:ia,onTimelinePointerUp:il,onTimelinePointerLeave:ol,get previewTrackAvailable(){return Xe()},get timelineRef(){return ot.timeline},set timelineRef(Co){ot.timeline=Co}})};V(nl,_t=>{e.showControls&&_t(rl)})}var vs=P(nl,2),ms=_(vs),sl=_(ms);Ci(sl,17,()=>n(_n),_t=>_t.id,(_t,bt)=>{sp(_t,{get buttonComponent(){return n(bt).buttonComponent},get buttonComponentProps(){return n(bt).buttonComponentProps},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(bt).disabled},get className(){return n(bt).className},get tooltipEnabled(){return n(bt).tooltipEnabled},get mouseEnter(){return n(bt).mouseEnter},get mouseLeave(){return n(bt).mouseLeave},get ref(){return ot[n(bt).id]},set ref(Zi){ot[n(bt).id]=Zi}})});var ra=P(sl,2);{var ad=_t=>{let bt=m(()=>!e.showControls),Zi=m(()=>Et()?Ke():Ye()),Co=m(()=>Et()?Dt():rt());rc(_t,{get isHidden(){return n(bt)},isMobile:!1,get showDuration(){return n(_o)},get position(){return n(Zi)},get duration(){return n(Co)},get ref(){return ot.time},set ref(Xi){ot.time=Xi}})};V(ra,_t=>{n(Ii)&&_t(ad)})}var wr=P(ra,2);let ld=m(()=>!n(cn));Ao(wr,{className:"w-max",get disabled(){return n(ld)},get tooltipContent(){return On},get ref(){return ot.episodes},set ref(_t){ot.episodes=_t},children:(_t,bt)=>{var Zi=Ue(),Co=pe(Zi);{var Xi=mi=>{uc(mi,{get position(){return Ye()},get duration(){return rt()},get timeCodes(){return wt}})};V(Co,mi=>{n(cn)&&mi(Xi)})}b(_t,Zi)},$$slots:{default:!0}}),g(ms);var sa=P(ms,2);Ci(sa,21,()=>n(ft),_t=>_t.id,(_t,bt)=>{var Zi=Ue(),Co=pe(Zi);{var Xi=Ki=>{sp(Ki,{get buttonComponent(){return n(bt).buttonComponent},get buttonComponentProps(){return n(bt).buttonComponentProps},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(bt).disabled},get className(){return n(bt).className},get ref(){return ot[n(bt).id]},set ref(Vs){ot[n(bt).id]=Vs}})},mi=Ki=>{let Vs=m(()=>!!n(bt).disabled);Yv(Ki,{get id(){return n(bt).id},get testId(){return n(bt).testId},get icon(){return n(bt).icon},get ariaLabel(){return n(bt).ariaLabel},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(Vs)},get onClick(){return n(bt).onClick},get disableMouseupTooltipShow(){return n(bt).disableMouseupTooltipShow},get ref(){return ot[n(bt).id]},set ref(cd){ot[n(bt).id]=cd}})};V(Co,Ki=>{B0(n(bt))?Ki(Xi):Ki(mi,!1)})}b(_t,Zi)}),g(sa),g(vs),at(vs,_t=>qt(_t),()=>qt()),g(yn),at(yn,_t=>Bt(_t),()=>Bt());var dd=P(yn,2);{var al=_t=>{vc(_t,{get ref(){return ot.interactiveTimeIndicator},set ref(bt){ot.interactiveTimeIndicator=bt}})};V(dd,_t=>{dr&&_t(al)})}D((_t,bt)=>{na=ne(yn,1,"wrapper-bottom svelte-1ojrdvx",null,na,_t),tt(vs,bt),vs.inert=ie()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||je()}),()=>`transform: translateY(${n(wi)()}px);`]),In(ms,"clientWidth",_t=>N(_r,_t)),b(t,oa),U(),o()}var Zl=require("@vkontakte/videoplayer-core/es2018");var lm=require("@vkontakte/videoplayer-shared/es2018");var X4=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),J4=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),e3={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 dm(t,e){W(t,e3);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,lm.noop),r=m(()=>o()===lm.noop),s=m(()=>n(r)||i()),l=Q(!1),d=()=>{N(l,!0)},a=m(()=>n(r)?"btn-full-opacity":"");zt(t,{get className(){return n(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(u,f)=>{var v=Ue(),p=pe(v);{var y=x=>{var C=X4();b(x,C)},w=x=>{var C=J4();D(()=>Qe(C,"src",e.iconUrl)),xt("error",C,d),xa(C),b(x,C)};V(p,x=>{n(l)?x(y):x(w,!1)})}b(u,v)},$$slots:{default:!0}})}var t3=Ee('<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 cm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=t3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var q0=require("@vkontakte/videoplayer-shared/es2018");var i3=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),o3={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function dp(t,e){F(e,!0),W(t,o3);let i=h(e,"muted",3,!1),o=h(e,"click",3,q0.noop),r=h(e,"ref",15,void 0),l=ge().ui.t,d=m(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=m(()=>i()?cm:Xs),u=m(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");zt(t,{get testId(){return n(u)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(f){r(f)},children:(f,v)=>{var p=i3();let y=m(()=>n(a));var w=_(p);Mi(w,()=>n(y),(x,C)=>{C(x,{})}),g(p),b(f,p)},$$slots:{default:!0}}),U()}var n3=Ee('<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 um(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=n3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(3),g(o),b(t,o)}var r3={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
267
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function pm(t,e){W(t,r3);let i=h(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),r=m(()=>i()?"pip-icon--active":"pip-icon");um(t,{get style(){return n(o)},get"data-testid"(){return n(r)}})}var Q0=require("@vkontakte/videoplayer-shared/es2018");function fm(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,Q0.noop),s=Y("menu_pip");zt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{pm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}var vm=require("@vkontakte/videoplayer-shared/es2018");var s3=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},a3=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},l3=M("<div><!></div>"),d3=M("<div><!></div>"),c3=M("<div><!></div>"),u3=M("<!> <!> <!>",1),p3=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),f3=M('<div class="wrapper-middle svelte-tg0ura"><!></div>'),v3=M("<div><!></div> <!> <div><!></div>",1),m3=M('<div aria-hidden="true">\xB7</div> <!>',1),g3=M('<!> <!> <div><div><div class="controls mobile svelte-tg0ura"><div class="controls-group contain svelte-tg0ura"><!> <!> <!> <!></div> <div class="controls-group svelte-tg0ura"><!> <!> <!></div></div> <!></div></div> <!>',1),h3={hash:"svelte-tg0ura",code:`.wrapper-bottom.svelte-tg0ura {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-tg0ura::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-tg0ura > :where(.svelte-tg0ura) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-tg0ura {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-tg0ura {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-tg0ura {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-tg0ura {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-tg0ura,
268
268
  .wrapper-middle-left-second.svelte-tg0ura,
269
269
  .wrapper-middle-right.svelte-tg0ura {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-tg0ura {left:12px;}.wrapper-middle-left-second.svelte-tg0ura {left:64px;}.wrapper-middle-right.svelte-tg0ura {right:12px;}.controls.svelte-tg0ura {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-tg0ura {display:flex;}.controls-group.contain.svelte-tg0ura {min-width:0;}.controls-group.svelte-tg0ura > *:not(:first-child) {margin-left:8px;}.hidden.svelte-tg0ura {visibility:hidden;opacity:0;}.controls-hidden.svelte-tg0ura {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-tg0ura {transition:none;}.overlay-mobile.svelte-tg0ura {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
270
270
 
@@ -272,7 +272,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
272
272
  }
273
273
 
274
274
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-tg0ura {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-tg0ura {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-tg0ura {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-tg0ura {left:96px;}.wrapper-middle-right.fullscreen.svelte-tg0ura {right:44px;}.controls-wrapper.fullscreen.svelte-tg0ura {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
275
- }`};function mm(t,e){var _n,Or;F(e,!0),W(t,b3);let[i,o]=De(),r=()=>S(Fi,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(Yt,"$disabledControls$",i),l=()=>S(Wt,"$playbackState$",i),d=()=>S(Zo,"$adPlaybackState",i),a=()=>S(ee,"$isEnded$",i),u=()=>S(kt,"$playerSize",i),f=()=>S(yt,"$scrubbingInProgress",i),v=()=>S(Tt,"$chromecastState$",i),p=()=>S(ot,"$isPictureInPictureActive",i),y=()=>S(qe,"$pictureInPictureType$",i),w=()=>S(ye,"$mobileNotReportControlHidden$",i),x=()=>S(gt,"$chromecastHidden",i),C=()=>S(qt,"$playerPhase",i),T=()=>S(po,"$pipHidden",i),E=()=>S(je,"$currentGridType$",i),R=()=>S(yi,"$vkLogoHidden",i),A=()=>S(fi,"$volumeHidden",i),I=()=>S(Ce,"$isLive$",i),O=()=>S(lt,"$settingsMenuVisible",i),H=()=>S(ut,"$isRewindableLive$",i),B=()=>S(Oe,"$isActiveLive$",i),z=()=>S(Se,"$isAudioAvailable$",i),Z=()=>S(It,"$muted$",i),ae=()=>S(Pe,"$volume$",i),q=()=>S(vt,"$isInteractiveTime$",i),de=()=>S(fn,"$settingButtonRef$",i),X=()=>S(St,"$startedByKeyboard$",i),fe=()=>S(dn,"$isFullscreen",i),re=()=>S(Ht,"$additionalButtons$",i),le=()=>S(ro,"$autoplayNextToggleHidden",i),Me=()=>S(oi,"$crashed$",i),we=()=>S(di,"$settingsHidden",i),te=()=>S(Xo,"$graphIsOpened$",i),Ne=()=>S(yo,"$adPosition",i),ue=()=>S(xi,"$adDuration",i),k=()=>S(ei,"$position$",i),Ke=()=>S(Et,"$duration$",i),Ve=h(e,"playerControlsWrapperRef",15,void 0),Y=h(e,"playerControlsRef",15,void 0),oe=h(e,"isAds",3,!1),Be=h(e,"logoTargetUrl",3,""),Ze=h(e,"isOneVideoPlaylist",3,!1),me=h(e,"customFullscreenSupported",3,!0),J=he(),Ie=$o(),ge=Rt(),Fe=J.actions.internal.toggleMuted,Xe=J.actions.internal.togglePlay,Ge=J.actions.internal.pause,ct=J.actions.internal.prevVideoClick,et=J.actions.internal.nextVideoClick,Bt=J.actions.internal.checkFullscreenSupport,rt=(_n=J.callbacks)==null?void 0:_n.onAudioDoesNotExistHint,Dt=(Or=J.callbacks)==null?void 0:Or.onAudioDisabledHint,qt=J.playerPhase,Et=J.state.duration$,ei=J.state.positionWithScrubbing$,Wt=J.state.playbackState$,Se=J.state.isAudioAvailable$,xe=J.state.isAudioDisabled,ee=J.state.isEnded$,Ce=J.state.isLive$,Pe=J.state.volume$,It=J.state.muted$,Oe=J.state.isActiveLive$,ut=J.state.isRewindableLive$,yt=J.ui.scrubbingInProgress,ye=J.ui.mobileNotReportControlHidden$,{isActive$:ot,type$:qe}=Ie.pictureInPicture$,lt=J.ui.settingsMenu.visible$,ti=J.ui.settingsMenu.openedByBtnKeyboard$,ni=J.ui.controls,{volume:fi,vkLogo:yi,autoplayNextToggle:ro,pip:po,settings:di,chromecast:gt}=J.ui.hiddenControls,ki=J.actions.internal.getVideoEpisodes(),jt=J.webApi.pictureInPictureApi,Tt=J.state.chromecastState$,oi=J.state.crashed$,Yt=ni.disabledControls$,St=J.ui.startedByKeyboard$,je=J.ui.currentGridType$,xi=J.ads.duration,yo=J.ads.position,Zo=J.ads.playbackState,dn=J.ui.isFullscreen,kt=J.ui.playerSize,Ht=J.ui.additionalButtonsDeprecated$,K=J.actions.internal.getVideoElement,Vt=J.actions.internal.replayInteractive,ii=J.state.isInteractive,vt=J.state.isInteractiveTime$,At=J.state.showInteractiveGraph,Gt=J.state.showSeekToInteractive,pt=J.state.showPlayPrevChapter,Vi=J.state.showInteractiveTimeIndicator,Fi=Ie.seekToInteractiveDisabledTooltip$,Xo=Ie.graphIsOpened$,Vo=J.ui.controlBlocks,so=m(()=>j(J.state.playPrevChapterDisabledTooltip)),Ui=m(()=>j(r())),dr=m(()=>s().has("EPISODE_BUTTON")),fo=m(()=>s().has("GRAPH_BUTTON")),vo=m(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Ri=m(()=>s().has("PLAY_BUTTON")),cn=m(()=>s().has("REPLAY_BUTTON")),Ro=m(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),cr=m(()=>l()===Xl.PlaybackState.PLAYING),ur=m(()=>d()==="paused"),Sr=m(()=>a()&&!oe()&&!ii),es=m(()=>!a()||oe()),fs=m(()=>e.showNextPrevButtons&&!oe()&&e.prevButtonActive),ts=m(()=>e.showNextPrevButtons&&!oe()&&e.nextButtonActive),xo=m(()=>u().width>300),Wn=m(()=>u().width>400),No=m(f),un=m(()=>v()!==Xl.ChromecastState.NOT_AVAILABLE&&!(p()&&y()===1)&&!w()&&!ii&&!x()),kn=m(()=>C()==="LiveWaitingStart"),pr=m(()=>!!jt&&v()!==Xl.ChromecastState.CONNECTED&&!w()&&(y()===1&&n(kn)||!n(kn))&&!n(No)&&!ii&&!T()),Cr=Q(!1);Ot(()=>{let tt=jt==null?void 0:jt.info.isActive$.subscribe(Mt=>N(Cr,Mt,!0));return()=>tt==null?void 0:tt.unsubscribe()});let Tr=m(()=>!n(No)&&io(E(),"s")),Er=m(()=>!e.logoHidden&&u().width>350&&!R()),Ir=m(()=>ge.features.fullscreen&&Bt()&&!(p()&&y()===1)&&(ii?me():!0)&&!n(No)&&!n(Cr)),ji=m(()=>!A()&&!n(No)),kr=m(()=>(!I()||oe())&&u().width>260&&!n(No)&&!(ge.features.interactiveHideTime&&ii)),An=m(()=>O()||e.showControls),pn=m(()=>!oe()&&!I()&&!!(ki!=null&&ki.length)&&n(xo)&&!n(dr)&&!n(No)),mo=m(()=>!H()||!!B()),fr=m(()=>At&&io(E(),"m")),Pn=m(()=>!z()||Z()||ae()===0),ht=ai({}),pi=ai({}),Ar=(0,vm.debounceFn)(jl,260),Kn=(0,vm.debounceFn)(lp,260);ze(()=>{u(),q(),Ar(K(),ni,ht,e.showControls),Kn(K(),Vo,pi,e.showControls)});let Pr=()=>J.actions.internal.toggleChromecast();async function Mn(){jt!=null&&jt.isActive()?await(jt==null?void 0:jt.exit()):await(jt==null?void 0:jt.request())}function Ln(){Xs({isAudioDisabled:xe,audioDisabledHintCallback:Dt,isAudioAvailable:z(),audioIsNotExistHintCallback:rt,isAds:oe()})&&Fe()}let Oo=Q(""),Do=(tt,Mt)=>{if(!tt){N(Oo,j("tooltip_live"),!0);return}Mt&&Mt===Xl.PlaybackState.PAUSED&&N(Oo,j("tooltip_play"),!0)};ze(()=>{Do(n(mo),l())});let fn=se();ze(()=>{de()&&Hl(de(),O(),ti)}),ze(()=>{sp(St,X(),ht.playButton)}),ze(()=>{pi.bottom=Ve()});var go=_3(),Bo=pe(go);{var Jo=tt=>{var Mt=v3(),wi=pe(Mt);let _o;var Ho=P(wi,2);let Co;at(Ho,_t=>pi.topLeft=_t,()=>pi==null?void 0:pi.topLeft);var Yi=P(Ho,2);let Ai;var en=_(Yi);Ci(en,1,re,({iconUrl:_t,ariaLabel:ci,testId:bo,onClick:$n,tooltip:$e})=>_t,(_t,ci)=>{let bo=()=>n(ci).iconUrl,$n=()=>n(ci).ariaLabel,$e=()=>n(ci).testId,mt=()=>n(ci).onClick,si=()=>n(ci).tooltip,Si=m(()=>{var ui;return(ui=$n())!=null?ui:si()});dm(_t,{get iconUrl(){return bo()},get ariaLabel(){return n(Si)},get testId(){return $e()},get onClick(){return mt()}})});var Fo=P(en,2);{var To=_t=>{bc(_t,{get ref(){return ht.autoplayNextToggle},set ref(ci){ht.autoplayNextToggle=ci}})};V(Fo,_t=>{e.showAutoplayNext&&!Ze()&&!le()&&_t(To)})}var Zi=P(Fo,2);{var Dr=_t=>{uc(_t,{isMobile:!0,click:Pr,get state(){return v()},get ref(){return ht.chromecast},set ref(ci){ht.chromecast=ci}})};V(Zi,_t=>{n(un)&&_t(Dr)})}var Yn=P(Zi,2);{var Zn=_t=>{fm(_t,{click:Mn,get isPictureInPictureActive(){return p()},get ref(){return ht.pip},set ref(ci){ht.pip=ci}})};V(Yn,_t=>{n(pr)&&_t(Zn)})}var hr=P(Yn,2);{var vs=_t=>{Kl(_t,{get ref$(){return fn}})};V(hr,_t=>{Me()&&!we()&&_t(vs)})}var Br=P(hr,2);{var is=_t=>{cc(_t,{get click(){return Ge},get targetUrl(){return Be()},get logoClickable(){return e.logoClickable},get ref(){return ht.vkLogo},set ref(ci){ht.vkLogo=ci}})};V(Br,_t=>{n(Er)&&_t(is)})}g(Yi),at(Yi,_t=>pi.topRight=_t,()=>pi==null?void 0:pi.topRight);var Qe=P(Yi,2);let Xt;var gi=_(Qe);{var bn=_t=>{let ci=m(()=>ct.bind(null,!0));za(_t,{get click(){return n(ci)},type:"prev",isMobile:!0,get ref(){return ht.prevButton},set ref(bo){ht.prevButton=bo}})};V(gi,_t=>{n(fs)&&_t(bn)})}var Uo=P(gi,2);{var Hr=_t=>{Zl(_t,{get disabled(){return n(Ri)},get click(){return Xe},isMobile:!0,get isPlaying(){return n(cr)},get ref(){return ht.playButton},set ref(ci){ht.playButton=ci}})};V(Uo,_t=>{n(es)&&_t(Hr)})}var tn=P(Uo,2);{var Fr=_t=>{Yl(_t,{get disabled(){return n(cn)},get click(){return Xe},isMobile:!0,get ref(){return ht.replayButton},set ref(ci){ht.replayButton=ci}})};V(tn,_t=>{n(Sr)&&_t(Fr)})}var Rs=P(tn,2);{var Xi=_t=>{let ci=m(()=>et.bind(null,!0));za(_t,{get click(){return n(ci)},type:"next",isMobile:!0,get ref(){return ht.nextButton},set ref(bo){ht.nextButton=bo}})};V(Rs,_t=>{n(ts)&&_t(Xi)})}g(Qe),at(Qe,_t=>pi.middle=_t,()=>pi==null?void 0:pi.middle);var Ur=P(Qe,2);{var oa=_t=>{var ci=f3(),bo=pe(ci);{var $n=ui=>{var Jt=c3();let Ei;Jt.__click=[l3,Ro,e,so];var yn=_(Jt);let on=m(()=>!e.showControls);_c(yn,{get hidden(){return n(on)},get disabled(){return n(Ro)},get click(){return e.playPrevChapter},get ref(){return ht.playPrevChapterButton},set ref(Pi){ht.playPrevChapterButton=Pi}}),g(Jt),D(Pi=>Ei=ne(Jt,1,"wrapper-middle-left svelte-tg0ura",null,Ei,Pi),[()=>({fullscreen:fe(),hidden:!e.showControls})]),b(ui,Jt)};V(bo,ui=>{pt&&ui($n)})}var $e=P(bo,2);{var mt=ui=>{var Jt=u3();let Ei;var yn=_(Jt);let on=m(()=>!e.showControls&&!te());yc(yn,{get hidden(){return n(on)},get disabled(){return n(fo)},get click(){return Xo.toggle},get graphIsOpened(){return te()},get ref(){return ht.interactiveGraphButton},set ref(Pi){ht.interactiveGraphButton=Pi}}),g(Jt),D(Pi=>Ei=ne(Jt,1,Rd(pt?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",Ei,Pi),[()=>({fullscreen:fe(),hidden:!e.showControls&&!te()})]),b(ui,Jt)};V($e,ui=>{n(fr)&&ui(mt)})}var si=P($e,2);{var Si=ui=>{var Jt=p3();let Ei;Jt.__click=[d3,vo,e,Ui];var yn=_(Jt);let on=m(()=>!e.showControls);$c(yn,{get hidden(){return n(on)},get disabled(){return n(vo)},get click(){return e.seekToInteractive},get ref(){return ht.seekToInteractiveButton},set ref(Pi){ht.seekToInteractiveButton=Pi}}),g(Jt),D(Pi=>Ei=ne(Jt,1,"wrapper-middle-right svelte-tg0ura",null,Ei,Pi),[()=>({fullscreen:fe(),hidden:!e.showControls})]),b(ui,Jt)};V(si,ui=>{Gt&&ui(Si)})}b(_t,ci)};V(Ur,_t=>{ii&&!f()&&_t(oa)})}D((_t,ci,bo,$n)=>{_o=ne(wi,1,"overlay-mobile svelte-tg0ura",null,_o,_t),Co=ne(Ho,1,"wrapper-top-left svelte-tg0ura",null,Co,ci),Ai=ne(Yi,1,"wrapper-top-right svelte-tg0ura",null,Ai,bo),Xt=ne(Qe,1,"wrapper-middle svelte-tg0ura",null,Xt,$n)},[()=>({hidden:!n(An)}),()=>({hidden:!e.showControls,fullscreen:fe()}),()=>({hidden:!e.showControls&&!w(),fullscreen:fe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(tt,Mt)};V(Bo,tt=>{oe()||tt(Jo)})}var vr=P(Bo,2);{var Mr=tt=>{var Mt=g3(),wi=pe(Mt);let _o;var Ho=_(wi);cp(Ho,{get muted(){return Z()},click:Ln,get ref(){return ht.volume},set ref(To){ht.volume=To}}),g(wi);var Co=P(wi,2);{var Yi=To=>{var Zi=m3(),Dr=_(Zi);let Yn=m(()=>!n(ur));Zl(Dr,{get disabled(){return n(Ri)},get click(){return Xe},isMobile:!0,get isPlaying(){return n(Yn)},get ref(){return ht.playButton},set ref(Zn){ht.playButton=Zn}}),g(Zi),b(To,Zi)};V(Co,To=>{n(ur)&&To(Yi)})}var Ai=P(Co,2);let en;var Fo=_(Ai);wc(Fo,{get position(){return Ne()},get duration(){return ue()}}),g(Ai),D((To,Zi)=>{_o=ne(wi,1,"wrapper-top-right svelte-tg0ura",null,_o,To),en=ne(Ai,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,en,Zi)},[()=>({fullscreen:fe()}),()=>({fullscreen:fe()})]),b(tt,Mt)};V(vr,tt=>{oe()&&d()!=="inactive"&&tt(Mr)})}var vn=P(vr,2);let zi;var mr=_(vn);let Lr;var Vn=_(mr),qn=_(Vn),Vr=_(qn);{var Qn=tt=>{Mo(tt,{get disabled(){return n(cn)},get ref(){return ht.replayButton},set ref(Mt){ht.replayButton=Mt},children:(Mt,wi)=>{Yl(Mt,{get disabled(){return n(cn)},get click(){return Vt}})},$$slots:{default:!0}})};V(Vr,tt=>{ii&&tt(Qn)})}var it=P(Vr,2);{var ri=tt=>{Mo(tt,{get ref(){return ht.liveButton},set ref(Mt){ht.liveButton=Mt},children:(Mt,wi)=>{xc(Mt,{get isLiveActive(){return n(mo)},isMobile:!0,get ariaLabel(){return n(Oo)}})},$$slots:{default:!0}})};V(it,tt=>{!oe()&&I()&&tt(ri)})}var Ni=P(it,2);{var Oi=tt=>{let Mt=m(()=>oe()?Ne():k()),wi=m(()=>oe()?ue():Ke()),_o=m(()=>!e.showControls);sc(tt,{get showDuration(){return n(Wn)},get position(){return n(Mt)},get duration(){return n(wi)},isMobile:!0,get isHidden(){return n(_o)},get ref(){return ht.time},set ref(Ho){ht.time=Ho}})};V(Ni,tt=>{n(kr)&&tt(Oi)})}var mn=P(Ni,2);let wo=m(()=>!n(pn));Mo(mn,{className:"w-max",get disabled(){return n(wo)},get ref(){return ht.episodes},set ref(tt){ht.episodes=tt},children:(tt,Mt)=>{var wi=He(),_o=pe(wi);{var Ho=Co=>{var Yi=h3(),Ai=P(pe(Yi),2);pc(Ai,{get position(){return k()},get duration(){return Ke()},get timeCodes(){return ki}}),b(Co,Yi)};V(_o,Co=>{n(pn)&&Co(Ho)})}b(tt,wi)},$$slots:{default:!0}}),g(qn),at(qn,tt=>pi.bottomLeft=tt,()=>pi==null?void 0:pi.bottomLeft);var So=P(qn,2),vi=_(So);{var Rn=tt=>{Mo(tt,{get ref(){return ht.volume},set ref(Mt){ht.volume=Mt},children:(Mt,wi)=>{cp(Mt,{get muted(){return n(Pn)},click:Ln})},$$slots:{default:!0}})};V(vi,tt=>{n(ji)&&tt(Rn)})}var ho=P(vi,2);{var Gn=tt=>{Mo(tt,{get ref(){return ht.settings},set ref(Mt){ht.settings=Mt},children:(Mt,wi)=>{Kl(Mt,{get ref$(){return fn}})},$$slots:{default:!0}})};V(ho,tt=>{n(Tr)&&tt(Gn)})}var jn=P(ho,2);{var Rr=tt=>{Mo(tt,{get ref(){return ht.fullscreen},set ref(Mt){ht.fullscreen=Mt},children:(Mt,wi)=>{dc(Mt,{get click(){return e.toggleFullscreen},get isFullscreen(){return fe()}})},$$slots:{default:!0}})};V(jn,tt=>{n(Ir)&&tt(Rr)})}g(So),at(So,tt=>pi.bottomRight=tt,()=>pi==null?void 0:pi.bottomRight),g(Vn),at(Vn,tt=>Y(tt),()=>Y());var Nr=P(Vn,2);let gn=m(()=>!e.showControls);Ka(Nr,{get isHidden(){return n(gn)},get isAds(){return oe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return H()},get ref(){return ht.timeline},set ref(tt){ht.timeline=tt}}),g(mr),g(vn),at(vn,tt=>Ve(tt),()=>Ve());var hn=P(vn,2);{var gr=tt=>{mc(tt,{get ref(){return ht.interactiveTimeIndicator},set ref(Mt){ht.interactiveTimeIndicator=Mt}})};V(hn,tt=>{Vi&&tt(gr)})}D((tt,Mt)=>{zi=ne(vn,1,"wrapper-bottom mobile svelte-tg0ura",null,zi,tt),Lr=ne(mr,1,"controls-wrapper svelte-tg0ura",null,Lr,Mt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:fe()})]),b(t,go),U(),o()}dt(["click"]);function Sc(t,e){F(e,!0);let[i,o]=De(),r=()=>S(T,"$isMobile",i),s=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),a=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),f=h(e,"showAutoplayNext",3,!1),v=h(e,"isOneVideoPlaylist",3,!1),p=h(e,"customFullscreenSupported",3,!0),y=h(e,"endScreenShown",3,!1),w=h(e,"onDisabledPlayPrevChapterClick",3,gm.noop),x=h(e,"onDisabledSeekToInteractiveClick",3,gm.noop),T=he().ui.isMobile,E=Q(!1);Ot(()=>{let O=setTimeout(()=>N(E,!0),0);return()=>clearTimeout(O)});var R=He(),A=pe(R);{var I=O=>{var H=He(),B=pe(H);{var z=ae=>{mm(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},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 p()},get endScreenShown(){return y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return x()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(q){l(q)},get playerControlsRef(){return d()},set playerControlsRef(q){d(q)}})},Z=ae=>{am(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},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 p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(q){l(q)},get playerControlsRef(){return d()},set playerControlsRef(q){d(q)}})};V(B,ae=>{r()?ae(z):ae(Z,!1)})}b(O,H)};V(A,O=>{n(E)&&O(I)})}b(t,R),U(),o()}var $3=Ee('<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 hm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=$3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function _m(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);hm(t,{get style(){return n(o)}})}var y3=Ee('<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 bm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=y3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var x3=Ee('<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 $m(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=x3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function up(t,e){let i=h(e,"isOff",3,!1);var o=He(),r=pe(o);{var s=d=>{$m(d,{})},l=d=>{bm(d,{})};V(r,d=>{i()?d(s):d(l,!1)})}b(t,o)}var w3=Ee('<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 ym(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=w3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function xm(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);ym(t,{get style(){return n(o)}})}var S3=Ee('<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 wm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=S3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function Sm(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);wm(t,{get style(){return n(o)}})}var C3=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),T3=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),E3=M("<div><!></div>"),I3={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;
275
+ }`};function mm(t,e){var gn,Lr;F(e,!0),W(t,h3);let[i,o]=Oe(),r=()=>S(Fi,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(Yt,"$disabledControls$",i),l=()=>S(Wt,"$playbackState$",i),d=()=>S(Wo,"$adPlaybackState",i),a=()=>S(ee,"$isEnded$",i),u=()=>S(It,"$playerSize",i),f=()=>S(Tt,"$scrubbingInProgress",i),v=()=>S($t,"$chromecastState$",i),p=()=>S(st,"$isPictureInPictureActive",i),y=()=>S(ze,"$pictureInPictureType$",i),w=()=>S(we,"$mobileNotReportControlHidden$",i),x=()=>S(gt,"$chromecastHidden",i),C=()=>S(qt,"$playerPhase",i),T=()=>S(no,"$pipHidden",i),E=()=>S(Je,"$currentGridType$",i),R=()=>S(yi,"$vkLogoHidden",i),A=()=>S(pi,"$volumeHidden",i),I=()=>S(Ce,"$isLive$",i),O=()=>S(ut,"$settingsMenuVisible",i),H=()=>S(lt,"$isRewindableLive$",i),B=()=>S(Ve,"$isActiveLive$",i),z=()=>S(Se,"$isAudioAvailable$",i),Z=()=>S(Mt,"$muted$",i),se=()=>S(Le,"$volume$",i),q=()=>S(ht,"$isInteractiveTime$",i),de=()=>S(Xo,"$settingButtonRef$",i),X=()=>S(wt,"$startedByKeyboard$",i),ve=()=>S(an,"$isFullscreen",i),re=()=>S(Ht,"$additionalButtons$",i),ae=()=>S(oo,"$autoplayNextToggleHidden",i),Ae=()=>S(fi,"$crashed$",i),$e=()=>S(di,"$settingsHidden",i),J=()=>S(Ko,"$graphIsOpened$",i),De=()=>S(yo,"$adPosition",i),ue=()=>S(Ti,"$adDuration",i),k=()=>S(Jt,"$position$",i),Ge=()=>S(Et,"$duration$",i),Pe=h(e,"playerControlsWrapperRef",15,void 0),j=h(e,"playerControlsRef",15,void 0),ie=h(e,"isAds",3,!1),Be=h(e,"logoTargetUrl",3,""),Ze=h(e,"isOneVideoPlaylist",3,!1),me=h(e,"customFullscreenSupported",3,!0),te=ge(),Ie=$o(),xe=Rt(),He=te.actions.internal.toggleMuted,Xe=te.actions.internal.togglePlay,je=te.actions.internal.pause,Ke=te.actions.internal.prevVideoClick,Ye=te.actions.internal.nextVideoClick,Dt=te.actions.internal.checkFullscreenSupport,rt=(gn=te.callbacks)==null?void 0:gn.onAudioDoesNotExistHint,Bt=(Lr=te.callbacks)==null?void 0:Lr.onAudioDisabledHint,qt=te.playerPhase,Et=te.state.duration$,Jt=te.state.positionWithScrubbing$,Wt=te.state.playbackState$,Se=te.state.isAudioAvailable$,ye=te.state.isAudioDisabled,ee=te.state.isEnded$,Ce=te.state.isLive$,Le=te.state.volume$,Mt=te.state.muted$,Ve=te.state.isActiveLive$,lt=te.state.isRewindableLive$,Tt=te.ui.scrubbingInProgress,we=te.ui.mobileNotReportControlHidden$,{isActive$:st,type$:ze}=Ie.pictureInPicture$,ut=te.ui.settingsMenu.visible$,Qt=te.ui.settingsMenu.openedByBtnKeyboard$,_i=te.ui.controls,{volume:pi,vkLogo:yi,autoplayNextToggle:oo,pip:no,settings:di,chromecast:gt}=te.ui.hiddenControls,bi=te.actions.internal.getVideoEpisodes(),li=te.webApi.pictureInPictureApi,$t=te.state.chromecastState$,fi=te.state.crashed$,Yt=_i.disabledControls$,wt=te.ui.startedByKeyboard$,Je=te.ui.currentGridType$,Ti=te.ads.duration,yo=te.ads.position,Wo=te.ads.playbackState,an=te.ui.isFullscreen,It=te.ui.playerSize,Ht=te.ui.additionalButtonsDeprecated$,K=te.actions.internal.getVideoElement,kt=te.actions.internal.replayInteractive,ii=te.state.isInteractive,ht=te.state.isInteractiveTime$,At=te.state.showInteractiveGraph,jt=te.state.showSeekToInteractive,pt=te.state.showPlayPrevChapter,Hi=te.state.showInteractiveTimeIndicator,Fi=Ie.seekToInteractiveDisabledTooltip$,Ko=Ie.graphIsOpened$,xo=te.ui.controlBlocks,ro=m(()=>Y(te.state.playPrevChapterDisabledTooltip)),Ui=m(()=>Y(r())),kr=m(()=>s().has("EPISODE_BUTTON")),ho=m(()=>s().has("GRAPH_BUTTON")),so=m(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),zi=m(()=>s().has("PLAY_BUTTON")),qo=m(()=>s().has("REPLAY_BUTTON")),Qo=m(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),ar=m(()=>l()===Zl.PlaybackState.PLAYING),lr=m(()=>d()==="paused"),dr=m(()=>a()&&!ie()&&!ii),ps=m(()=>!a()||ie()),fs=m(()=>e.showNextPrevButtons&&!ie()&&e.prevButtonActive),ln=m(()=>e.showNextPrevButtons&&!ie()&&e.nextButtonActive),dn=m(()=>u().width>300),qn=m(()=>u().width>400),Go=m(f),jo=m(()=>v()!==Zl.ChromecastState.NOT_AVAILABLE&&!(p()&&y()===1)&&!w()&&!ii&&!x()),cr=m(()=>C()==="LiveWaitingStart"),ur=m(()=>!!li&&v()!==Zl.ChromecastState.CONNECTED&&!w()&&(y()===1&&n(cr)||!n(cr))&&!n(Go)&&!ii&&!T()),Ar=Q(!1);Ot(()=>{let it=li==null?void 0:li.info.isActive$.subscribe(Lt=>N(Ar,Lt,!0));return()=>it==null?void 0:it.unsubscribe()});let pr=m(()=>!n(Go)&&eo(E(),"s")),jr=m(()=>!e.logoHidden&&u().width>350&&!R()),fr=m(()=>xe.features.fullscreen&&Dt()&&!(p()&&y()===1)&&(ii?me():!0)&&!n(Go)&&!n(Ar)),ao=m(()=>!A()&&!n(Go)),vr=m(()=>(!I()||ie())&&u().width>260&&!n(Go)&&!(xe.features.interactiveHideTime&&ii)),An=m(()=>O()||e.showControls),Pn=m(()=>!ie()&&!I()&&!!(bi!=null&&bi.length)&&n(dn)&&!n(kr)&&!n(Go)),lo=m(()=>!H()||!!B()),mr=m(()=>At&&eo(E(),"m")),Yo=m(()=>!z()||Z()||se()===0),yt=si({}),vi=si({}),gr=(0,vm.debounceFn)(Gl,260),Qn=(0,vm.debounceFn)(ap,260);qe(()=>{u(),q(),gr(K(),_i,yt,e.showControls),Qn(K(),xo,vi,e.showControls)});let Yr=()=>te.actions.internal.toggleChromecast();async function Zo(){li!=null&&li.isActive()?await(li==null?void 0:li.exit()):await(li==null?void 0:li.request())}function Mn(){Ys({isAudioDisabled:ye,audioDisabledHintCallback:Bt,isAudioAvailable:z(),audioIsNotExistHintCallback:rt,isAds:ie()})&&He()}let Ii=Q(""),Wi=(it,Lt)=>{if(!it){N(Ii,Y("tooltip_live"),!0);return}Lt&&Lt===Zl.PlaybackState.PAUSED&&N(Ii,Y("tooltip_play"),!0)};qe(()=>{Wi(n(lo),l())});let Xo=le();qe(()=>{de()&&Bl(de(),O(),Qt)}),qe(()=>{rp(wt,X(),yt.playButton)}),qe(()=>{vi.bottom=Pe()});var Gn=g3(),cn=pe(Gn);{var un=it=>{var Lt=p3(),xi=pe(Lt);let _o;var bo=P(xi,2);let uo;at(bo,ft=>vi.topLeft=ft,()=>vi==null?void 0:vi.topLeft);var Yi=P(bo,2);let Ni;var hn=_(Yi);Ci(hn,1,re,({iconUrl:ft,ariaLabel:ti,testId:Ro,onClick:Zn,tooltip:he})=>ft,(ft,ti)=>{let Ro=()=>n(ti).iconUrl,Zn=()=>n(ti).ariaLabel,he=()=>n(ti).testId,vt=()=>n(ti).onClick,ri=()=>n(ti).tooltip,wi=m(()=>{var ci;return(ci=Zn())!=null?ci:ri()});dm(ft,{get iconUrl(){return Ro()},get ariaLabel(){return n(wi)},get testId(){return he()},get onClick(){return vt()}})});var po=P(hn,2);{var Mo=ft=>{_c(ft,{get ref(){return yt.autoplayNextToggle},set ref(ti){yt.autoplayNextToggle=ti}})};V(po,ft=>{e.showAutoplayNext&&!Ze()&&!ae()&&ft(Mo)})}var Lo=P(po,2);{var Yn=ft=>{cc(ft,{isMobile:!0,click:Yr,get state(){return v()},get ref(){return yt.chromecast},set ref(ti){yt.chromecast=ti}})};V(Lo,ft=>{n(jo)&&ft(Yn)})}var On=P(Lo,2);{var Vr=ft=>{fm(ft,{click:Zo,get isPictureInPictureActive(){return p()},get ref(){return yt.pip},set ref(ti){yt.pip=ti}})};V(On,ft=>{n(ur)&&ft(Vr)})}var yr=P(On,2);{var es=ft=>{Wl(ft,{get ref$(){return Xo}})};V(yr,ft=>{Ae()&&!$e()&&ft(es)})}var Rr=P(yr,2);{var ts=ft=>{dc(ft,{get click(){return je},get targetUrl(){return Be()},get logoClickable(){return e.logoClickable},get ref(){return yt.vkLogo},set ref(ti){yt.vkLogo=ti}})};V(Rr,ft=>{n(jr)&&ft(ts)})}g(Yi),at(Yi,ft=>vi.topRight=ft,()=>vi==null?void 0:vi.topRight);var We=P(Yi,2);let ei;var ki=_(We);{var _n=ft=>{let ti=m(()=>Ke.bind(null,!0));Ua(ft,{get click(){return n(ti)},type:"prev",isMobile:!0,get ref(){return yt.prevButton},set ref(Ro){yt.prevButton=Ro}})};V(ki,ft=>{n(fs)&&ft(_n)})}var en=P(ki,2);{var Nr=ft=>{Yl(ft,{get disabled(){return n(zi)},get click(){return Xe},isMobile:!0,get isPlaying(){return n(ar)},get ref(){return yt.playButton},set ref(ti){yt.playButton=ti}})};V(en,ft=>{n(ps)&&ft(Nr)})}var tn=P(en,2);{var Vo=ft=>{jl(ft,{get disabled(){return n(qo)},get click(){return Xe},isMobile:!0,get ref(){return yt.replayButton},set ref(ti){yt.replayButton=ti}})};V(tn,ft=>{n(dr)&&ft(Vo)})}var Or=P(tn,2);{var bn=ft=>{let ti=m(()=>Ye.bind(null,!0));Ua(ft,{get click(){return n(ti)},type:"next",isMobile:!0,get ref(){return yt.nextButton},set ref(Ro){yt.nextButton=Ro}})};V(Or,ft=>{n(ln)&&ft(bn)})}g(We),at(We,ft=>vi.middle=ft,()=>vi==null?void 0:vi.middle);var Ls=P(We,2);{var ta=ft=>{var ti=u3(),Ro=pe(ti);{var Zn=ci=>{var oi=l3();let Si;oi.__click=[s3,Qo,e,ro];var $n=_(oi);let Dn=m(()=>!e.showControls);hc($n,{get hidden(){return n(Dn)},get disabled(){return n(Qo)},get click(){return e.playPrevChapter},get ref(){return yt.playPrevChapterButton},set ref(Ai){yt.playPrevChapterButton=Ai}}),g(oi),D(Ai=>Si=ne(oi,1,"wrapper-middle-left svelte-tg0ura",null,Si,Ai),[()=>({fullscreen:ve(),hidden:!e.showControls})]),b(ci,oi)};V(Ro,ci=>{pt&&ci(Zn)})}var he=P(Ro,2);{var vt=ci=>{var oi=d3();let Si;var $n=_(oi);let Dn=m(()=>!e.showControls&&!J());$c($n,{get hidden(){return n(Dn)},get disabled(){return n(ho)},get click(){return Ko.toggle},get graphIsOpened(){return J()},get ref(){return yt.interactiveGraphButton},set ref(Ai){yt.interactiveGraphButton=Ai}}),g(oi),D(Ai=>Si=ne(oi,1,Vd(pt?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",Si,Ai),[()=>({fullscreen:ve(),hidden:!e.showControls&&!J()})]),b(ci,oi)};V(he,ci=>{n(mr)&&ci(vt)})}var ri=P(he,2);{var wi=ci=>{var oi=c3();let Si;oi.__click=[a3,so,e,Ui];var $n=_(oi);let Dn=m(()=>!e.showControls);bc($n,{get hidden(){return n(Dn)},get disabled(){return n(so)},get click(){return e.seekToInteractive},get ref(){return yt.seekToInteractiveButton},set ref(Ai){yt.seekToInteractiveButton=Ai}}),g(oi),D(Ai=>Si=ne(oi,1,"wrapper-middle-right svelte-tg0ura",null,Si,Ai),[()=>({fullscreen:ve(),hidden:!e.showControls})]),b(ci,oi)};V(ri,ci=>{jt&&ci(wi)})}b(ft,ti)};V(Ls,ft=>{ii&&!f()&&ft(ta)})}D((ft,ti,Ro,Zn)=>{_o=ne(xi,1,"overlay-mobile svelte-tg0ura",null,_o,ft),uo=ne(bo,1,"wrapper-top-left svelte-tg0ura",null,uo,ti),Ni=ne(Yi,1,"wrapper-top-right svelte-tg0ura",null,Ni,Ro),ei=ne(We,1,"wrapper-middle svelte-tg0ura",null,ei,Zn)},[()=>({hidden:!n(An)}),()=>({hidden:!e.showControls,fullscreen:ve()}),()=>({hidden:!e.showControls&&!w(),fullscreen:ve()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(it,Lt)};V(cn,it=>{ie()||it(un)})}var jn=P(cn,2);{var pn=it=>{var Lt=v3(),xi=pe(Lt);let _o;var bo=_(xi);dp(bo,{get muted(){return Z()},click:Mn,get ref(){return yt.volume},set ref(Mo){yt.volume=Mo}}),g(xi);var uo=P(xi,2);{var Yi=Mo=>{var Lo=f3(),Yn=_(Lo);let On=m(()=>!n(lr));Yl(Yn,{get disabled(){return n(zi)},get click(){return Xe},isMobile:!0,get isPlaying(){return n(On)},get ref(){return yt.playButton},set ref(Vr){yt.playButton=Vr}}),g(Lo),b(Mo,Lo)};V(uo,Mo=>{n(lr)&&Mo(Yi)})}var Ni=P(uo,2);let hn;var po=_(Ni);xc(po,{get position(){return De()},get duration(){return ue()}}),g(Ni),D((Mo,Lo)=>{_o=ne(xi,1,"wrapper-top-right svelte-tg0ura",null,_o,Mo),hn=ne(Ni,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,hn,Lo)},[()=>({fullscreen:ve()}),()=>({fullscreen:ve()})]),b(it,Lt)};V(jn,it=>{ie()&&d()!=="inactive"&&it(pn)})}var Ln=P(jn,2);let wo;var hr=_(Ln);let Pr;var Vn=_(hr),Rn=_(Vn),Mr=_(Rn);{var _r=it=>{Ao(it,{get disabled(){return n(qo)},get ref(){return yt.replayButton},set ref(Lt){yt.replayButton=Lt},children:(Lt,xi)=>{jl(Lt,{get disabled(){return n(qo)},get click(){return kt}})},$$slots:{default:!0}})};V(Mr,it=>{ii&&it(_r)})}var ot=P(Mr,2);{var ni=it=>{Ao(it,{get ref(){return yt.liveButton},set ref(Lt){yt.liveButton=Lt},children:(Lt,xi)=>{yc(Lt,{get isLiveActive(){return n(lo)},isMobile:!0,get ariaLabel(){return n(Ii)}})},$$slots:{default:!0}})};V(ot,it=>{!ie()&&I()&&it(ni)})}var Vi=P(ot,2);{var Ri=it=>{let Lt=m(()=>ie()?De():k()),xi=m(()=>ie()?ue():Ge()),_o=m(()=>!e.showControls);rc(it,{get showDuration(){return n(qn)},get position(){return n(Lt)},get duration(){return n(xi)},isMobile:!0,get isHidden(){return n(_o)},get ref(){return yt.time},set ref(bo){yt.time=bo}})};V(Vi,it=>{n(vr)&&it(Ri)})}var fn=P(Vi,2);let So=m(()=>!n(Pn));Ao(fn,{className:"w-max",get disabled(){return n(So)},get ref(){return yt.episodes},set ref(it){yt.episodes=it},children:(it,Lt)=>{var xi=Ue(),_o=pe(xi);{var bo=uo=>{var Yi=m3(),Ni=P(pe(Yi),2);uc(Ni,{get position(){return k()},get duration(){return Ge()},get timeCodes(){return bi}}),b(uo,Yi)};V(_o,uo=>{n(Pn)&&uo(bo)})}b(it,xi)},$$slots:{default:!0}}),g(Rn),at(Rn,it=>vi.bottomLeft=it,()=>vi==null?void 0:vi.bottomLeft);var co=P(Rn,2),Zt=_(co);{var Nn=it=>{Ao(it,{get ref(){return yt.volume},set ref(Lt){yt.volume=Lt},children:(Lt,xi)=>{dp(Lt,{get muted(){return n(Yo)},click:Mn})},$$slots:{default:!0}})};V(Zt,it=>{n(ao)&&it(Nn)})}var Jo=P(Zt,2);{var br=it=>{Ao(it,{get ref(){return yt.settings},set ref(Lt){yt.settings=Lt},children:(Lt,xi)=>{Wl(Lt,{get ref$(){return Xo}})},$$slots:{default:!0}})};V(Jo,it=>{n(pr)&&it(br)})}var Zr=P(Jo,2);{var Xr=it=>{Ao(it,{get ref(){return yt.fullscreen},set ref(Lt){yt.fullscreen=Lt},children:(Lt,xi)=>{lc(Lt,{get click(){return e.toggleFullscreen},get isFullscreen(){return ve()}})},$$slots:{default:!0}})};V(Zr,it=>{n(fr)&&it(Xr)})}g(co),at(co,it=>vi.bottomRight=it,()=>vi==null?void 0:vi.bottomRight),g(Vn),at(Vn,it=>j(it),()=>j());var Jr=P(Vn,2);let vn=m(()=>!e.showControls);Wa(Jr,{get isHidden(){return n(vn)},get isAds(){return ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return H()},get ref(){return yt.timeline},set ref(it){yt.timeline=it}}),g(hr),g(Ln),at(Ln,it=>Pe(it),()=>Pe());var mn=P(Ln,2);{var $r=it=>{vc(it,{get ref(){return yt.interactiveTimeIndicator},set ref(Lt){yt.interactiveTimeIndicator=Lt}})};V(mn,it=>{Hi&&it($r)})}D((it,Lt)=>{wo=ne(Ln,1,"wrapper-bottom mobile svelte-tg0ura",null,wo,it),Pr=ne(hr,1,"controls-wrapper svelte-tg0ura",null,Pr,Lt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:ve()})]),b(t,Gn),U(),o()}ct(["click"]);function wc(t,e){F(e,!0);let[i,o]=Oe(),r=()=>S(T,"$isMobile",i),s=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),a=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),f=h(e,"showAutoplayNext",3,!1),v=h(e,"isOneVideoPlaylist",3,!1),p=h(e,"customFullscreenSupported",3,!0),y=h(e,"endScreenShown",3,!1),w=h(e,"onDisabledPlayPrevChapterClick",3,gm.noop),x=h(e,"onDisabledSeekToInteractiveClick",3,gm.noop),T=ge().ui.isMobile,E=Q(!1);Ot(()=>{let O=setTimeout(()=>N(E,!0),0);return()=>clearTimeout(O)});var R=Ue(),A=pe(R);{var I=O=>{var H=Ue(),B=pe(H);{var z=se=>{mm(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},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 p()},get endScreenShown(){return y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return x()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(q){l(q)},get playerControlsRef(){return d()},set playerControlsRef(q){d(q)}})},Z=se=>{am(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},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 p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(q){l(q)},get playerControlsRef(){return d()},set playerControlsRef(q){d(q)}})};V(B,se=>{r()?se(z):se(Z,!1)})}b(O,H)};V(A,O=>{n(E)&&O(I)})}b(t,R),U(),o()}var _3=Ee('<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 hm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=_3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function _m(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);hm(t,{get style(){return n(o)}})}var b3=Ee('<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 bm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=b3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var $3=Ee('<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 $m(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=$3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function cp(t,e){let i=h(e,"isOff",3,!1);var o=Ue(),r=pe(o);{var s=d=>{$m(d,{})},l=d=>{bm(d,{})};V(r,d=>{i()?d(s):d(l,!1)})}b(t,o)}var y3=Ee('<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 ym(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=y3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function xm(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);ym(t,{get style(){return n(o)}})}var x3=Ee('<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 wm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=x3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function Sm(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);wm(t,{get style(){return n(o)}})}var w3=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),S3=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),C3=M("<div><!></div>"),T3={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
276
276
  animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
277
277
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
278
278
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -287,23 +287,23 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
287
287
  @keyframes svelte-1ad3n06-fadeOut {
288
288
  0% {opacity:1;}
289
289
  100% {opacity:0;}
290
- }`};function Cm(t,e){F(e,!0),W(t,I3);let[i,o]=De(),r=()=>S(e.data,"$data",i),s=he(),{features:l}=Rt(),d=s.ui.t,a=m(()=>!r()),u=m(()=>{var T;return((T=r())==null?void 0:T.type)==="BACKWARD_SEEK"}),f=m(()=>{var T;return((T=r())==null?void 0:T.type)==="FORWARD_SEEK"}),v=m(()=>{var T;return(T=r())==null?void 0:T.type}),p=m(()=>{var T,E;return(T=r())!=null&&T.t?d(r().t.key,{value:r().t.value||""}):(E=r())==null?void 0:E.text});var y=E3();let w;var x=_(y);{var C=T=>{var E=T3(),R=pe(E),A=_(R);{var I=Y=>{let oe=m(()=>n(v)==="FORWARD_SEEK");_m(Y,{get reversed(){return n(oe)}})};V(A,Y=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(v))&&Y(I)})}var O=P(A,2);{var H=Y=>{Ms(Y,{})};V(O,Y=>{n(v)==="PAUSE"&&!l.playbackStatusShow&&Y(H)})}var B=P(O,2);{var z=Y=>{lr(Y,{})};V(B,Y=>{n(v)==="PLAY"&&!l.playbackStatusShow&&Y(z)})}var Z=P(B,2);{var ae=Y=>{hc(Y,{})};V(Z,Y=>{n(v)==="REPLAY"&&!l.playbackStatusShow&&Y(ae)})}var q=P(Z,2);{var de=Y=>{up(Y,{isOff:!0})};V(q,Y=>{n(v)==="SUBTITLES_OFF"&&Y(de)})}var X=P(q,2);{var fe=Y=>{up(Y,{})};V(X,Y=>{n(v)==="SUBTITLES_ON"&&Y(fe)})}var re=P(X,2);{var le=Y=>{let oe=m(()=>n(v)==="RATE_UP");xm(Y,{get reversed(){return n(oe)}})};V(re,Y=>{["RATE_DOWN","RATE_UP"].includes(n(v))&&Y(le)})}var Me=P(re,2);{var we=Y=>{let oe=m(()=>n(v)==="EPISODE_NEXT");Sm(Y,{get reversed(){return n(oe)}})};V(Me,Y=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(v))&&Y(we)})}var te=P(Me,2);{var Ne=Y=>{ea(Y,{volume:0})};V(te,Y=>{n(v)==="MUTE"&&Y(Ne)})}var ue=P(te,2);{var k=Y=>{ea(Y,{volume:1})};V(ue,Y=>{n(v)==="VOLUME"&&Y(k)})}g(R);var Ke=P(R,2);{var Ve=Y=>{var oe=C3(),Be=_(oe,!0);g(oe),D(()=>ve(Be,n(p))),b(Y,oe)};V(Ke,Y=>{n(p)&&Y(Ve)})}b(T,E)};V(x,T=>{!n(a)&&n(v)&&T(C)})}g(y),D(T=>w=ne(y,1,"hot-key-helpers-container svelte-1ad3n06",null,w,T),[()=>({hidden:n(a),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(f)})]),b(t,y),U(),o()}var k3=Ee('<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 Tm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=k3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var A3=Ee('<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 Em(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=A3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function ta(t,e){F(e,!0);let i=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=m(()=>["up","down"].includes(i())),s=m(()=>["right","down"].includes(i())),l=m(()=>(()=>{let v="";return n(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=He(),a=pe(d);{var u=v=>{let p=m(()=>n(s)?"chevron-icon--down":"chevron-icon--up");Tm(v,{get style(){return n(l)},get"data-testid"(){return n(p)}})},f=v=>{let p=m(()=>n(s)?"chevron-icon--right":"chevron-icon--left");Em(v,{get style(){return n(l)},get"data-testid"(){return n(p)}})};V(a,v=>{n(r)?v(u):v(f,!1)})}b(t,d),U()}var P3=(t,e,i,o,r,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":s();break}},M3=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},L3=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>'),V3={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function Cc(t,e){F(e,!0),W(t,V3);let i=h(e,"isShifted",3,!1),o=he(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=j("aria_label_spherical_control");var v=L3();let p;v.__keydown=[P3,r,s,l,a,d],v.__keyup=[M3,r,u];var y=_(v),w=_(y),x=_(w);x.__mousedown=s,x.__mouseup=u;var C=_(x);ta(C,{direction:"up",useBtnColor:!0}),g(x);var T=P(x,2);T.__mousedown=d,T.__mouseup=u;var E=_(T);ta(E,{direction:"up",useBtnColor:!0}),g(T),g(w);var R=P(w,2),A=_(R);A.__mousedown=a,A.__mouseup=u;var I=_(A);ta(I,{direction:"up",useBtnColor:!0}),g(A);var O=P(A,2);O.__mousedown=l,O.__mouseup=u;var H=_(O);ta(H,{direction:"up",useBtnColor:!0}),g(O),g(R),g(y),g(v),D(B=>{p=ne(v,1,"immersive-controls svelte-1yzc86r",null,p,B),We(v,"aria-label",f)},[()=>({"m-shifted":i()})]),Ct("mouseleave",x,u),Ct("mouseleave",T,u),Ct("mouseleave",A,u),Ct("mouseleave",O,u),b(t,v),U()}dt(["keydown","keyup","mousedown","mouseup"]);var Vs=require("@vkontakte/videoplayer-shared/es2018");var G0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var pp=class{constructor(){this.flickeringTimeout=G0(1e3);this.subscriptions=new Vs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Vs.ValueSubject([]);this.captionsPrepared$=new Vs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Vs.filter)(()=>this.isEnabled()),(0,Vs.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((r,{type:s,value:l},d)=>(o&&!d||(s==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var R3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),N3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"></span></span>'),O3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),D3=M('<div><span class="caption svelte-1i1hgvc"><!></span></div>'),B3=M("<div><!></div>"),H3={hash:"svelte-1i1hgvc",code:`.subtitles-container.svelte-1i1hgvc {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-1i1hgvc {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-container.preview-track-active.svelte-1i1hgvc {transform:translateY(calc(var(--preview-track-height) * -1));}.preview-track-active.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {bottom:var(--preview-track-controls-top-offset);}.subtitles-caption.svelte-1i1hgvc {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-1i1hgvc {bottom:8%;}.subtitles-container.auto.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-1i1hgvc {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-1i1hgvc .caption:where(.svelte-1i1hgvc) {width:100%;}.caption-line.svelte-1i1hgvc {display:block;text-align:center;}.subtitles-container.auto.svelte-1i1hgvc .caption-line:where(.svelte-1i1hgvc) {text-align:left;}.caption-segment.svelte-1i1hgvc {display:inline-block;line-height:1.2;font-size:13px;
291
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ga(t,e){F(e,!0),W(t,H3);let[i,o]=De(),r=()=>S(p,"$currentSubtitle$",i),s=()=>S(w,"$isLive$",i),l=()=>S(x,"$isFullscreen",i),d=()=>S(C,"$previewTrackActive",i),a=()=>S(y,"$isAutoSubtitleCaptionVisible$",i),u=h(e,"isMobile",3,!1),f=he(),v=Rt(),p=f.state.currentSubtitle$,y=f.state.isAutoSubtitleCaptionVisible$,w=f.state.isLive$,x=f.ui.isFullscreen,C=f.ui.previewTrackActive,T=m(()=>!!r().isAuto),E=m(()=>!!s()),R=m(()=>e.playerSize.width*.02),A=m(()=>u()&&!l()||n(R)<=v.minSubtitlesFontSize?v.minSubtitlesFontSize:n(R)),I=Q(null);ze(()=>{var q,de,X;(q=n(I))==null||q.setIsAuto(n(T)),(de=n(I))==null||de.setIsLive(n(E)),(X=n(I))==null||X.setCaptions(e.captions)});let O=Q(ai([[]]));Ot(()=>{N(I,new pp().subscribe(),!0);let q=n(I).captionsPrepared$.subscribe(de=>{N(O,de,!0)});return()=>{var de;(de=n(I))==null||de.destroy(),q.unsubscribe()}}),Ot(()=>{if(n(T)){let q=window.setTimeout(()=>{y.set(!1)},v.autoSubtitlesTimeout);return()=>{window.clearTimeout(q)}}else y.set(!1)});let H=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=B3();let z;var Z=_(B);{var ae=q=>{var de=D3();let X;var fe=_(de),re=_(fe);{var le=we=>{var te=R3(),Ne=_(te),ue=_(Ne,!0);g(Ne),g(te),D(k=>{var Ke;Je(Ne,`font-size: ${(Ke=n(A))!=null?Ke:""}px`),ve(ue,k)},[()=>j("subtitles_auto_caption")]),b(we,te)},Me=(we,te)=>{{var Ne=k=>{var Ke=He(),Ve=pe(Ke);Ci(Ve,17,()=>n(O),Ld,(Y,oe)=>{var Be=N3(),Ze=_(Be);Ci(Ze,21,()=>n(oe),({value:me,timeAppeared:J})=>J,(me,J)=>{let Ie=()=>n(J).value,ge=()=>n(J).timeAppeared;var Fe=He(),Xe=pe(Fe);{var Ge=ct=>{var et=ls();D(()=>ve(et,Ie())),b(ct,et)};V(Xe,ct=>{(!ge()||ge()<=e.position)&&ct(Ge)})}b(me,Fe)}),g(Ze),g(Be),D(()=>{var me;return Je(Ze,`font-size: ${(me=n(A))!=null?me:""}px`)}),b(Y,Be)}),b(k,Ke)},ue=k=>{var Ke=He(),Ve=pe(Ke);Ci(Ve,17,()=>e.captions,({value:Y})=>Y,(Y,oe)=>{let Be=()=>n(oe).value;var Ze=O3(),me=_(Ze),J=_(me,!0);g(me),g(Ze),D(()=>{var Ie;Je(me,`font-size: ${(Ie=n(A))!=null?Ie:""}px`),ve(J,Be())}),b(Y,Ze)}),b(k,Ke)};V(we,k=>{var Ke;n(T)&&((Ke=n(O))!=null&&Ke.length)?k(Ne):k(ue,!1)},te)}};V(re,we=>{n(T)&&a()?we(le):we(Me,!1)})}g(fe),g(de),D(we=>{var te;X=ne(de,1,"subtitles-caption svelte-1i1hgvc",null,X,we),Je(de,`--subtitles-caption-margin: ${(te=n(H))!=null?te:""}%`)},[()=>({mobile:u()})]),b(q,de)};V(Z,q=>{var de;(e.captions.length||(de=n(O))!=null&&de.length)&&q(ae)})}g(B),D(q=>z=ne(B,1,"subtitles-container svelte-1i1hgvc",null,z,q),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(T)&&!n(E)&&!a()})]),b(t,B),U(),o()}var F3=M('<div class="text svelte-raurnb"> </div>'),U3=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>'),z3={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 Tc(t,e){F(e,!0),W(t,z3);let i=Rt();var o=U3();let r;var s=P(_(o),2);{var l=d=>{var a=F3(),u=_(a);g(a),D(()=>{var f;return ve(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,a)};V(s,d=>{e.chromecastDeviceName&&d(l)})}g(o),D(d=>{r=ne(o,1,"wrapper svelte-raurnb",null,r,d),Je(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),U()}var W3=Ee('<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 Im(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=W3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var K3=M('<div class="container svelte-13zpvm8"><!></div>'),q3={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 ja(t){W(t,q3);var e=K3(),i=_(e);Im(i,{}),g(e),b(t,e)}var Q3=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),G3=M("<div><!></div>"),j3={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,
290
+ }`};function Cm(t,e){F(e,!0),W(t,T3);let[i,o]=Oe(),r=()=>S(e.data,"$data",i),s=ge(),{features:l}=Rt(),d=s.ui.t,a=m(()=>!r()),u=m(()=>{var T;return((T=r())==null?void 0:T.type)==="BACKWARD_SEEK"}),f=m(()=>{var T;return((T=r())==null?void 0:T.type)==="FORWARD_SEEK"}),v=m(()=>{var T;return(T=r())==null?void 0:T.type}),p=m(()=>{var T,E;return(T=r())!=null&&T.t?d(r().t.key,{value:r().t.value||""}):(E=r())==null?void 0:E.text});var y=C3();let w;var x=_(y);{var C=T=>{var E=S3(),R=pe(E),A=_(R);{var I=j=>{let ie=m(()=>n(v)==="FORWARD_SEEK");_m(j,{get reversed(){return n(ie)}})};V(A,j=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(v))&&j(I)})}var O=P(A,2);{var H=j=>{As(j,{})};V(O,j=>{n(v)==="PAUSE"&&!l.playbackStatusShow&&j(H)})}var B=P(O,2);{var z=j=>{sr(j,{})};V(B,j=>{n(v)==="PLAY"&&!l.playbackStatusShow&&j(z)})}var Z=P(B,2);{var se=j=>{gc(j,{})};V(Z,j=>{n(v)==="REPLAY"&&!l.playbackStatusShow&&j(se)})}var q=P(Z,2);{var de=j=>{cp(j,{isOff:!0})};V(q,j=>{n(v)==="SUBTITLES_OFF"&&j(de)})}var X=P(q,2);{var ve=j=>{cp(j,{})};V(X,j=>{n(v)==="SUBTITLES_ON"&&j(ve)})}var re=P(X,2);{var ae=j=>{let ie=m(()=>n(v)==="RATE_UP");xm(j,{get reversed(){return n(ie)}})};V(re,j=>{["RATE_DOWN","RATE_UP"].includes(n(v))&&j(ae)})}var Ae=P(re,2);{var $e=j=>{let ie=m(()=>n(v)==="EPISODE_NEXT");Sm(j,{get reversed(){return n(ie)}})};V(Ae,j=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(v))&&j($e)})}var J=P(Ae,2);{var De=j=>{Xs(j,{volume:0})};V(J,j=>{n(v)==="MUTE"&&j(De)})}var ue=P(J,2);{var k=j=>{Xs(j,{volume:1})};V(ue,j=>{n(v)==="VOLUME"&&j(k)})}g(R);var Ge=P(R,2);{var Pe=j=>{var ie=w3(),Be=_(ie,!0);g(ie),D(()=>fe(Be,n(p))),b(j,ie)};V(Ge,j=>{n(p)&&j(Pe)})}b(T,E)};V(x,T=>{!n(a)&&n(v)&&T(C)})}g(y),D(T=>w=ne(y,1,"hot-key-helpers-container svelte-1ad3n06",null,w,T),[()=>({hidden:n(a),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(f)})]),b(t,y),U(),o()}var E3=Ee('<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 Tm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=E3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var I3=Ee('<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 Em(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=I3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function Js(t,e){F(e,!0);let i=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=m(()=>["up","down"].includes(i())),s=m(()=>["right","down"].includes(i())),l=m(()=>(()=>{let v="";return n(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Ue(),a=pe(d);{var u=v=>{let p=m(()=>n(s)?"chevron-icon--down":"chevron-icon--up");Tm(v,{get style(){return n(l)},get"data-testid"(){return n(p)}})},f=v=>{let p=m(()=>n(s)?"chevron-icon--right":"chevron-icon--left");Em(v,{get style(){return n(l)},get"data-testid"(){return n(p)}})};V(a,v=>{n(r)?v(u):v(f,!1)})}b(t,d),U()}var k3=(t,e,i,o,r,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":s();break}},A3=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},P3=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>'),M3={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 Sc(t,e){F(e,!0),W(t,M3);let i=h(e,"isShifted",3,!1),o=ge(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=Y("aria_label_spherical_control");var v=P3();let p;v.__keydown=[k3,r,s,l,a,d],v.__keyup=[A3,r,u];var y=_(v),w=_(y),x=_(w);x.__mousedown=s,x.__mouseup=u;var C=_(x);Js(C,{direction:"up",useBtnColor:!0}),g(x);var T=P(x,2);T.__mousedown=d,T.__mouseup=u;var E=_(T);Js(E,{direction:"up",useBtnColor:!0}),g(T),g(w);var R=P(w,2),A=_(R);A.__mousedown=a,A.__mouseup=u;var I=_(A);Js(I,{direction:"up",useBtnColor:!0}),g(A);var O=P(A,2);O.__mousedown=l,O.__mouseup=u;var H=_(O);Js(H,{direction:"up",useBtnColor:!0}),g(O),g(R),g(y),g(v),D(B=>{p=ne(v,1,"immersive-controls svelte-1yzc86r",null,p,B),Qe(v,"aria-label",f)},[()=>({"m-shifted":i()})]),xt("mouseleave",x,u),xt("mouseleave",T,u),xt("mouseleave",A,u),xt("mouseleave",O,u),b(t,v),U()}ct(["keydown","keyup","mousedown","mouseup"]);var Ms=require("@vkontakte/videoplayer-shared/es2018");var G0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var up=class{constructor(){this.flickeringTimeout=G0(1e3);this.subscriptions=new Ms.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Ms.ValueSubject([]);this.captionsPrepared$=new Ms.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Ms.filter)(()=>this.isEnabled()),(0,Ms.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((r,{type:s,value:l},d)=>(o&&!d||(s==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var L3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),V3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"></span></span>'),R3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),N3=M('<div><span class="caption svelte-1i1hgvc"><!></span></div>'),O3=M("<div><!></div>"),D3={hash:"svelte-1i1hgvc",code:`.subtitles-container.svelte-1i1hgvc {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-1i1hgvc {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-container.preview-track-active.svelte-1i1hgvc {transform:translateY(calc(var(--preview-track-height) * -1));}.preview-track-active.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {bottom:var(--preview-track-controls-top-offset);}.subtitles-caption.svelte-1i1hgvc {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-1i1hgvc {bottom:8%;}.subtitles-container.auto.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-1i1hgvc {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-1i1hgvc .caption:where(.svelte-1i1hgvc) {width:100%;}.caption-line.svelte-1i1hgvc {display:block;text-align:center;}.subtitles-container.auto.svelte-1i1hgvc .caption-line:where(.svelte-1i1hgvc) {text-align:left;}.caption-segment.svelte-1i1hgvc {display:inline-block;line-height:1.2;font-size:13px;
291
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Qa(t,e){F(e,!0),W(t,D3);let[i,o]=Oe(),r=()=>S(p,"$currentSubtitle$",i),s=()=>S(w,"$isLive$",i),l=()=>S(x,"$isFullscreen",i),d=()=>S(C,"$previewTrackActive",i),a=()=>S(y,"$isAutoSubtitleCaptionVisible$",i),u=h(e,"isMobile",3,!1),f=ge(),v=Rt(),p=f.state.currentSubtitle$,y=f.state.isAutoSubtitleCaptionVisible$,w=f.state.isLive$,x=f.ui.isFullscreen,C=f.ui.previewTrackActive,T=m(()=>!!r().isAuto),E=m(()=>!!s()),R=m(()=>e.playerSize.width*.02),A=m(()=>u()&&!l()||n(R)<=v.minSubtitlesFontSize?v.minSubtitlesFontSize:n(R)),I=Q(null);qe(()=>{var q,de,X;(q=n(I))==null||q.setIsAuto(n(T)),(de=n(I))==null||de.setIsLive(n(E)),(X=n(I))==null||X.setCaptions(e.captions)});let O=Q(si([[]]));Ot(()=>{N(I,new up().subscribe(),!0);let q=n(I).captionsPrepared$.subscribe(de=>{N(O,de,!0)});return()=>{var de;(de=n(I))==null||de.destroy(),q.unsubscribe()}}),Ot(()=>{if(n(T)){let q=window.setTimeout(()=>{y.set(!1)},v.autoSubtitlesTimeout);return()=>{window.clearTimeout(q)}}else y.set(!1)});let H=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=O3();let z;var Z=_(B);{var se=q=>{var de=N3();let X;var ve=_(de),re=_(ve);{var ae=$e=>{var J=L3(),De=_(J),ue=_(De,!0);g(De),g(J),D(k=>{var Ge;tt(De,`font-size: ${(Ge=n(A))!=null?Ge:""}px`),fe(ue,k)},[()=>Y("subtitles_auto_caption")]),b($e,J)},Ae=($e,J)=>{{var De=k=>{var Ge=Ue(),Pe=pe(Ge);Ci(Pe,17,()=>n(O),Md,(j,ie)=>{var Be=V3(),Ze=_(Be);Ci(Ze,21,()=>n(ie),({value:me,timeAppeared:te})=>te,(me,te)=>{let Ie=()=>n(te).value,xe=()=>n(te).timeAppeared;var He=Ue(),Xe=pe(He);{var je=Ke=>{var Ye=as();D(()=>fe(Ye,Ie())),b(Ke,Ye)};V(Xe,Ke=>{(!xe()||xe()<=e.position)&&Ke(je)})}b(me,He)}),g(Ze),g(Be),D(()=>{var me;return tt(Ze,`font-size: ${(me=n(A))!=null?me:""}px`)}),b(j,Be)}),b(k,Ge)},ue=k=>{var Ge=Ue(),Pe=pe(Ge);Ci(Pe,17,()=>e.captions,({value:j})=>j,(j,ie)=>{let Be=()=>n(ie).value;var Ze=R3(),me=_(Ze),te=_(me,!0);g(me),g(Ze),D(()=>{var Ie;tt(me,`font-size: ${(Ie=n(A))!=null?Ie:""}px`),fe(te,Be())}),b(j,Ze)}),b(k,Ge)};V($e,k=>{var Ge;n(T)&&((Ge=n(O))!=null&&Ge.length)?k(De):k(ue,!1)},J)}};V(re,$e=>{n(T)&&a()?$e(ae):$e(Ae,!1)})}g(ve),g(de),D($e=>{var J;X=ne(de,1,"subtitles-caption svelte-1i1hgvc",null,X,$e),tt(de,`--subtitles-caption-margin: ${(J=n(H))!=null?J:""}%`)},[()=>({mobile:u()})]),b(q,de)};V(Z,q=>{var de;(e.captions.length||(de=n(O))!=null&&de.length)&&q(se)})}g(B),D(q=>z=ne(B,1,"subtitles-container svelte-1i1hgvc",null,z,q),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(T)&&!n(E)&&!a()})]),b(t,B),U(),o()}var B3=M('<div class="text svelte-raurnb"> </div>'),H3=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>'),F3={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 Cc(t,e){F(e,!0),W(t,F3);let i=Rt();var o=H3();let r;var s=P(_(o),2);{var l=d=>{var a=B3(),u=_(a);g(a),D(()=>{var f;return fe(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,a)};V(s,d=>{e.chromecastDeviceName&&d(l)})}g(o),D(d=>{r=ne(o,1,"wrapper svelte-raurnb",null,r,d),tt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),U()}var U3=Ee('<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 Im(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=U3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var z3=M('<div class="container svelte-13zpvm8"><!></div>'),W3={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 Ga(t){W(t,W3);var e=z3(),i=_(e);Im(i,{}),g(e),b(t,e)}var K3=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),q3=M("<div><!></div>"),Q3={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
292
292
  visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
293
- transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Ya(t,e){F(e,!0),W(t,j3);let i=h(e,"iconVisible",3,!0),o=he(),r=Rt(),s=o.ui.startedByKeyboard$,l=j("tooltip_play"),d=y=>{var x;let w=y.code;["Enter","Space"].includes(w)&&(y.stopPropagation(),y.preventDefault(),s.set(!0),(x=e.startVideo)==null||x.call(e))},a=y=>{var w,x;y.stopPropagation(),(w=e.startVideo)==null||w.call(e),(x=e.onClick)==null||x.call(e,y)};var u=G3();let f;u.__click=a,u.__contextmenu=function(...y){var w;(w=e.onContextMenu)==null||w.apply(this,y)};var v=_(u);{var p=y=>{var w=Q3();w.__keydown=d;var x=P(_(w),2);lr(x,{}),g(w),D(()=>We(w,"aria-label",l)),b(y,w)};V(v,y=>{i()&&y(p)})}return g(u),D(y=>{f=ne(u,1,"container svelte-1ciju45",null,f,y),Je(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),U({handlePressKey:d,handleClick:a})}dt(["click","contextmenu","keydown"]);var Y3=M('<div data-testid="video_title"><span> </span></div>'),Z3={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(
293
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function ja(t,e){F(e,!0),W(t,Q3);let i=h(e,"iconVisible",3,!0),o=ge(),r=Rt(),s=o.ui.startedByKeyboard$,l=Y("tooltip_play"),d=y=>{var x;let w=y.code;["Enter","Space"].includes(w)&&(y.stopPropagation(),y.preventDefault(),s.set(!0),(x=e.startVideo)==null||x.call(e))},a=y=>{var w,x;y.stopPropagation(),(w=e.startVideo)==null||w.call(e),(x=e.onClick)==null||x.call(e,y)};var u=q3();let f;u.__click=a,u.__contextmenu=function(...y){var w;(w=e.onContextMenu)==null||w.apply(this,y)};var v=_(u);{var p=y=>{var w=K3();w.__keydown=d;var x=P(_(w),2);sr(x,{}),g(w),D(()=>Qe(w,"aria-label",l)),b(y,w)};V(v,y=>{i()&&y(p)})}return g(u),D(y=>{f=ne(u,1,"container svelte-1ciju45",null,f,y),tt(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),U({handlePressKey:d,handleClick:a})}ct(["click","contextmenu","keydown"]);var G3=M('<div data-testid="video_title"><span> </span></div>'),j3={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
294
294
  0deg,
295
295
  rgba(0, 0, 0, 0) 0%,
296
296
  rgba(0, 0, 0, 0.02) 19%,
297
297
  rgba(0, 0, 0, 0.1) 34%,
298
298
  rgba(0, 0, 0, 0.4) 60%,
299
299
  rgba(0, 0, 0, 0.6) 100%
300
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function km(t,e){F(e,!0),W(t,Z3);let i=h(e,"title",3,""),o=h(e,"isHidden",3,!1),r=h(e,"ref",15),s=Q(void 0);Ot(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var y;p.propertyName==="transform"&&((y=e.onVisibilityChanged)==null||y.call(e,!o()))}return(v=n(s))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=n(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=Y3();let d;var a=_(l),u=_(a,!0);g(a),at(a,f=>r(f),()=>r()),g(l),at(l,f=>N(s,f),()=>n(s)),D(f=>{d=ne(l,1,"title svelte-14hk510",null,d,f),ve(u,i())},[()=>({hidden:o()})]),b(t,l),U()}var j0=require("@vkontakte/videoplayer-shared/es2018");var X3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),J3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),ex=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),tx=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),ix=M("<div><!> <!> <!> <!></div>"),ox={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function Am(t,e){F(e,!0),W(t,ox);let i=Q(""),o=Q(""),r=Q(""),s=Q(""),l,d=32,a=d/2,u=B=>String(B).padStart(2,"0"),f=B=>Math.max(B.length,1),v=B=>`${(e.isSmallSize?a:d)*f(B)}px`,p=B=>{let z=Math.floor(B/86400);z&&(B-=z*86400,N(i,u(z),!0));let Z=Math.floor(B/3600);N(o,u(Z),!0);let ae=Math.floor(B/60)%60;N(r,u(ae),!0);let q=B%60;N(s,u(q),!0)},y=()=>{let B=Math.floor(Date.now()/1e3),z=e.startTime-B;p(z),z>=1?l=requestAnimationFrame(y):e.onTimerOver()};Ot(()=>{l=requestAnimationFrame(y)}),an(()=>{cancelAnimationFrame(l)});var w=ix();let x;var C=_(w);{var T=B=>{var z=X3(),Z=pe(z);let ae;var q=_(Z),de=_(q,!0);g(q);var X=P(q,2),fe=_(X,!0);g(X),g(Z);var re=P(Z,2),le=_(re,!0);g(re),D((Me,we,te)=>{ae=Je(Z,"",ae,{width:Me}),ve(de,n(i)),ve(fe,we),ve(le,te)},[()=>v(n(i)),()=>j("waiting_live_day_value"),()=>j("waiting_live_colon")]),b(B,z)};V(C,B=>{n(i)&&B(T)})}var E=P(C,2);{var R=B=>{var z=J3(),Z=pe(z);let ae;var q=_(Z),de=_(q,!0);g(q);var X=P(q,2),fe=_(X,!0);g(X),g(Z);var re=P(Z,2),le=_(re,!0);g(re),D((Me,we,te)=>{ae=Je(Z,"",ae,{width:Me}),ve(de,n(o)),ve(fe,we),ve(le,te)},[()=>v(n(o)),()=>j("waiting_live_hour_value"),()=>j("waiting_live_colon")]),b(B,z)};V(E,B=>{n(o)&&B(R)})}var A=P(E,2);{var I=B=>{var z=ex(),Z=pe(z);let ae;var q=_(Z),de=_(q,!0);g(q);var X=P(q,2),fe=_(X,!0);g(X),g(Z);var re=P(Z,2),le=_(re,!0);g(re),D((Me,we,te)=>{ae=Je(Z,"",ae,{width:Me}),ve(de,n(r)),ve(fe,we),ve(le,te)},[()=>v(n(r)),()=>j("waiting_live_minute_value"),()=>j("waiting_live_colon")]),b(B,z)};V(A,B=>{n(r)&&B(I)})}var O=P(A,2);{var H=B=>{var z=tx();let Z;var ae=_(z),q=_(ae,!0);g(ae);var de=P(ae,2),X=_(de,!0);g(de),g(z),D((fe,re)=>{Z=Je(z,"",Z,{width:fe}),ve(q,n(s)),ve(X,re)},[()=>v(n(s)),()=>j("waiting_live_second_value")]),b(B,z)};V(O,B=>{n(s)&&B(H)})}g(w),D(B=>x=ne(w,1,"timer__container svelte-gt98rn",null,x,B),[()=>({small:e.isSmallSize})]),b(t,w),U()}var nx=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),rx=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),sx=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),ax={hash:"svelte-17m8dcd",code:".waiting-container.svelte-17m8dcd {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-17m8dcd::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-17m8dcd {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-17m8dcd {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-17m8dcd {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-17m8dcd {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-17m8dcd {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-17m8dcd {font-size:15px;}.medium.svelte-17m8dcd {font-size:17px;}"};function Ec(t,e){F(e,!0),W(t,ax);let i=h(e,"startTime",3,0),o=m(()=>i()<Math.floor(Date.now()/1e3)),r=Q(void 0),s=Q(void 0),l=0,d=Q(void 0),a=Q(void 0),u=m(()=>{var C,T;return((C=n(d))!=null?C:1/0)<=509||((T=n(a))!=null?T:1/0)<=320}),f=m(()=>{var C,T;return!n(u)&&(((C=n(d))!=null?C:1/0)<=699||((T=n(a))!=null?T:1/0)<=599)}),v=e.onUpcomingLiveViewStateChanged?(0,j0.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let C={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"},T=n(o)?n(r):n(s);e.onUpcomingLiveViewStateChanged(C,T)})},300):void 0;ze(()=>{n(a),n(d),n(o),v==null||v()}),an(()=>{if(cancelAnimationFrame(l),v==null||v.cancel(),e.onUpcomingLiveViewStateChanged){let C={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(C)}});var p=sx();p.__contextmenu=function(...C){var T;(T=e.onContextMenu)==null||T.apply(this,C)},p.__click=function(...C){var T;(T=e.onClick)==null||T.apply(this,C)};var y=_(p);{var w=C=>{var T=nx(),E=_(T);let R;var A=_(E,!0);g(E),g(T),at(T,I=>N(r,I),()=>n(r)),D((I,O)=>{R=ne(E,1,"waiting__title svelte-17m8dcd",null,R,I),ve(A,O)},[()=>({medium:n(f),small:n(u)}),()=>j("waiting_live_upcoming_title")]),b(C,T)},x=C=>{var T=rx(),E=_(T);let R;var A=_(E,!0);g(E);var I=P(E,2);let O=m(()=>n(u)||n(f)),H=m(()=>i()||0);Am(I,{get isSmallSize(){return n(O)},get startTime(){return n(H)},onTimerOver:()=>N(o,!0)}),g(T),at(T,B=>N(s,B),()=>n(s)),D((B,z)=>{R=ne(E,1,"timer__title svelte-17m8dcd",null,R,B),ve(A,z)},[()=>({medium:n(f),small:n(u)}),()=>j("waiting_live_timer_title")]),b(C,T)};V(y,C=>{n(o)?C(w):C(x,!1)})}g(p),D(()=>Je(p,`background-image: url(${e.thumbUrl})`)),En(p,"clientWidth",C=>N(d,C)),En(p,"clientHeight",C=>N(a,C)),b(t,p),U()}dt(["contextmenu","click"]);var lx=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),dx={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 Za(t,e){F(e,!0),W(t,dx);let i=h(e,"thumbUrl",3,""),o={recover:j("waiting_live_recover_title"),record:j("waiting_record_title")},r=m(()=>o[e.kind]||"");var s=lx();s.__contextmenu=function(...f){var v;(v=e.onContextMenu)==null||v.apply(this,f)},s.__click=function(...f){var v;(v=e.onClick)==null||v.apply(this,f)};var l=_(s),d=_(l);Da(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=_(a,!0);g(a),g(l),g(s),D(()=>{Je(s,`background-image: url('${i()}')`),ve(u,n(r))}),b(t,s),U()}dt(["contextmenu","click"]);var cx=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function Pm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=cx();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var ux=M('<div class="select-icon svelte-124aexk"><!></div>'),px={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Ic(t){W(t,px);var e=ux(),i=_(e);Pm(i,{}),g(e),b(t,e)}var fx=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},vx=(t,e)=>{Fl(t,()=>e.item.selectItem(e.item.value))},mx=M("<p> </p>"),gx=M('<p class="sublabel svelte-1t7rx2m"> </p>'),hx=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),_x={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;
300
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function km(t,e){F(e,!0),W(t,j3);let i=h(e,"title",3,""),o=h(e,"isHidden",3,!1),r=h(e,"ref",15),s=Q(void 0);Ot(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var y;p.propertyName==="transform"&&((y=e.onVisibilityChanged)==null||y.call(e,!o()))}return(v=n(s))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=n(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=G3();let d;var a=_(l),u=_(a,!0);g(a),at(a,f=>r(f),()=>r()),g(l),at(l,f=>N(s,f),()=>n(s)),D(f=>{d=ne(l,1,"title svelte-14hk510",null,d,f),fe(u,i())},[()=>({hidden:o()})]),b(t,l),U()}var j0=require("@vkontakte/videoplayer-shared/es2018");var Y3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),Z3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),X3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),J3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),ex=M("<div><!> <!> <!> <!></div>"),tx={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function Am(t,e){F(e,!0),W(t,tx);let i=Q(""),o=Q(""),r=Q(""),s=Q(""),l,d=32,a=d/2,u=B=>String(B).padStart(2,"0"),f=B=>Math.max(B.length,1),v=B=>`${(e.isSmallSize?a:d)*f(B)}px`,p=B=>{let z=Math.floor(B/86400);z&&(B-=z*86400,N(i,u(z),!0));let Z=Math.floor(B/3600);N(o,u(Z),!0);let se=Math.floor(B/60)%60;N(r,u(se),!0);let q=B%60;N(s,u(q),!0)},y=()=>{let B=Math.floor(Date.now()/1e3),z=e.startTime-B;p(z),z>=1?l=requestAnimationFrame(y):e.onTimerOver()};Ot(()=>{l=requestAnimationFrame(y)}),rn(()=>{cancelAnimationFrame(l)});var w=ex();let x;var C=_(w);{var T=B=>{var z=Y3(),Z=pe(z);let se;var q=_(Z),de=_(q,!0);g(q);var X=P(q,2),ve=_(X,!0);g(X),g(Z);var re=P(Z,2),ae=_(re,!0);g(re),D((Ae,$e,J)=>{se=tt(Z,"",se,{width:Ae}),fe(de,n(i)),fe(ve,$e),fe(ae,J)},[()=>v(n(i)),()=>Y("waiting_live_day_value"),()=>Y("waiting_live_colon")]),b(B,z)};V(C,B=>{n(i)&&B(T)})}var E=P(C,2);{var R=B=>{var z=Z3(),Z=pe(z);let se;var q=_(Z),de=_(q,!0);g(q);var X=P(q,2),ve=_(X,!0);g(X),g(Z);var re=P(Z,2),ae=_(re,!0);g(re),D((Ae,$e,J)=>{se=tt(Z,"",se,{width:Ae}),fe(de,n(o)),fe(ve,$e),fe(ae,J)},[()=>v(n(o)),()=>Y("waiting_live_hour_value"),()=>Y("waiting_live_colon")]),b(B,z)};V(E,B=>{n(o)&&B(R)})}var A=P(E,2);{var I=B=>{var z=X3(),Z=pe(z);let se;var q=_(Z),de=_(q,!0);g(q);var X=P(q,2),ve=_(X,!0);g(X),g(Z);var re=P(Z,2),ae=_(re,!0);g(re),D((Ae,$e,J)=>{se=tt(Z,"",se,{width:Ae}),fe(de,n(r)),fe(ve,$e),fe(ae,J)},[()=>v(n(r)),()=>Y("waiting_live_minute_value"),()=>Y("waiting_live_colon")]),b(B,z)};V(A,B=>{n(r)&&B(I)})}var O=P(A,2);{var H=B=>{var z=J3();let Z;var se=_(z),q=_(se,!0);g(se);var de=P(se,2),X=_(de,!0);g(de),g(z),D((ve,re)=>{Z=tt(z,"",Z,{width:ve}),fe(q,n(s)),fe(X,re)},[()=>v(n(s)),()=>Y("waiting_live_second_value")]),b(B,z)};V(O,B=>{n(s)&&B(H)})}g(w),D(B=>x=ne(w,1,"timer__container svelte-gt98rn",null,x,B),[()=>({small:e.isSmallSize})]),b(t,w),U()}var ix=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),ox=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),nx=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),rx={hash:"svelte-17m8dcd",code:".waiting-container.svelte-17m8dcd {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-17m8dcd::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-17m8dcd {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-17m8dcd {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-17m8dcd {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-17m8dcd {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-17m8dcd {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-17m8dcd {font-size:15px;}.medium.svelte-17m8dcd {font-size:17px;}"};function Tc(t,e){F(e,!0),W(t,rx);let i=h(e,"startTime",3,0),o=m(()=>i()<Math.floor(Date.now()/1e3)),r=Q(void 0),s=Q(void 0),l=0,d=Q(void 0),a=Q(void 0),u=m(()=>{var C,T;return((C=n(d))!=null?C:1/0)<=509||((T=n(a))!=null?T:1/0)<=320}),f=m(()=>{var C,T;return!n(u)&&(((C=n(d))!=null?C:1/0)<=699||((T=n(a))!=null?T:1/0)<=599)}),v=e.onUpcomingLiveViewStateChanged?(0,j0.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let C={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"},T=n(o)?n(r):n(s);e.onUpcomingLiveViewStateChanged(C,T)})},300):void 0;qe(()=>{n(a),n(d),n(o),v==null||v()}),rn(()=>{if(cancelAnimationFrame(l),v==null||v.cancel(),e.onUpcomingLiveViewStateChanged){let C={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(C)}});var p=nx();p.__contextmenu=function(...C){var T;(T=e.onContextMenu)==null||T.apply(this,C)},p.__click=function(...C){var T;(T=e.onClick)==null||T.apply(this,C)};var y=_(p);{var w=C=>{var T=ix(),E=_(T);let R;var A=_(E,!0);g(E),g(T),at(T,I=>N(r,I),()=>n(r)),D((I,O)=>{R=ne(E,1,"waiting__title svelte-17m8dcd",null,R,I),fe(A,O)},[()=>({medium:n(f),small:n(u)}),()=>Y("waiting_live_upcoming_title")]),b(C,T)},x=C=>{var T=ox(),E=_(T);let R;var A=_(E,!0);g(E);var I=P(E,2);let O=m(()=>n(u)||n(f)),H=m(()=>i()||0);Am(I,{get isSmallSize(){return n(O)},get startTime(){return n(H)},onTimerOver:()=>N(o,!0)}),g(T),at(T,B=>N(s,B),()=>n(s)),D((B,z)=>{R=ne(E,1,"timer__title svelte-17m8dcd",null,R,B),fe(A,z)},[()=>({medium:n(f),small:n(u)}),()=>Y("waiting_live_timer_title")]),b(C,T)};V(y,C=>{n(o)?C(w):C(x,!1)})}g(p),D(()=>tt(p,`background-image: url(${e.thumbUrl})`)),In(p,"clientWidth",C=>N(d,C)),In(p,"clientHeight",C=>N(a,C)),b(t,p),U()}ct(["contextmenu","click"]);var sx=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),ax={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 Ya(t,e){F(e,!0),W(t,ax);let i=h(e,"thumbUrl",3,""),o={recover:Y("waiting_live_recover_title"),record:Y("waiting_record_title")},r=m(()=>o[e.kind]||"");var s=sx();s.__contextmenu=function(...f){var v;(v=e.onContextMenu)==null||v.apply(this,f)},s.__click=function(...f){var v;(v=e.onClick)==null||v.apply(this,f)};var l=_(s),d=_(l);Oa(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=_(a,!0);g(a),g(l),g(s),D(()=>{tt(s,`background-image: url('${i()}')`),fe(u,n(r))}),b(t,s),U()}ct(["contextmenu","click"]);var lx=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function Pm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=lx();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var dx=M('<div class="select-icon svelte-124aexk"><!></div>'),cx={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Ec(t){W(t,cx);var e=dx(),i=_(e);Pm(i,{}),g(e),b(t,e)}var ux=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},px=(t,e)=>{Hl(t,()=>e.item.selectItem(e.item.value))},fx=M("<p> </p>"),vx=M('<p class="sublabel svelte-1t7rx2m"> </p>'),mx=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),gx={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
301
301
 
302
302
  /**
303
303
  * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
304
304
  * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
305
305
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
306
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Mm(t,e){F(e,!0),W(t,_x);let i=h(e,"isMobile",3,!1);var o=hx();let r;o.__click=[fx,e],o.__keydown=[vx,e];var s=_(o);{var l=w=>{Ic(w,{})};V(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var u=_(d);{var f=w=>{var x=He(),C=pe(x);Mi(C,()=>e.item.valueComponent,(T,E)=>{E(T,Ts(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),b(w,x)},v=w=>{var x=mx();let C;var T=_(x,!0);g(x),D(E=>{var R;C=ne(x,1,"label svelte-1t7rx2m",null,C,E),ve(T,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),b(w,x)};V(u,w=>{e.item.valueComponent?w(f):w(v,!1)})}var p=P(u,2);{var y=w=>{var x=gx(),C=_(x,!0);g(x),D(()=>ve(C,e.item.sublabel)),b(w,x)};V(p,w=>{e.item.sublabel&&w(y)})}g(d),g(o),D((w,x,C)=>{r=ne(o,1,"item",null,r,w),We(o,"data-value",e.item.value),We(o,"aria-label",x),We(o,"data-testid",e.item.dataTestid),a=ne(d,1,"menu-item-value svelte-1t7rx2m",null,a,C),We(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,x;return(x=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?x:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),U()}dt(["click","keydown"]);var bx=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Lm(t,e){F(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=m(()=>()=>e.openSubMenuList(e.item.children)),s=m(()=>x=>qu(x,n(r)));var l=bx();let d;l.__click=function(...x){var C;(C=n(r))==null||C.apply(this,x)},l.__keydown=function(...x){var C;(C=n(s))==null||C.apply(this,x)};var a=_(l);{var u=x=>{Ic(x,{})};V(a,x=>{e.item.selected&&x(u)})}var f=P(a,2);let v;var p=_(f);{var y=x=>{var C=He();let T=m(()=>e.item.valueComponent);var E=pe(C);Mi(E,()=>n(T),(R,A)=>{A(R,Ts(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),b(x,C)},w=x=>{var C=ls();D(()=>ve(C,e.item.label)),b(x,C)};V(p,x=>{e.item.valueComponent?x(y):x(w,!1)})}g(f),g(l),at(l,x=>o(o()[e.item.id]=x,!0),()=>{var x;return(x=o())==null?void 0:x[e.item.id]}),D((x,C)=>{var T;d=ne(l,1,"item",null,d,x),We(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),We(l,"data-testid",e.item.id),v=ne(f,1,"menu-item-value",null,v,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),U()}dt(["click","keydown"]);var Jr={"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 yx=(t,e)=>{p0(t,e.returnFromSubMenu,e.closeSettingsMenu)},xx=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},wx=(t,e)=>{Zd(t)&&(wr(t),e.returnFromSubMenu())},Sx=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>'),Cx={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
306
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Mm(t,e){F(e,!0),W(t,gx);let i=h(e,"isMobile",3,!1);var o=mx();let r;o.__click=[ux,e],o.__keydown=[px,e];var s=_(o);{var l=w=>{Ec(w,{})};V(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var u=_(d);{var f=w=>{var x=Ue(),C=pe(x);Mi(C,()=>e.item.valueComponent,(T,E)=>{E(T,Ss(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),b(w,x)},v=w=>{var x=fx();let C;var T=_(x,!0);g(x),D(E=>{var R;C=ne(x,1,"label svelte-1t7rx2m",null,C,E),fe(T,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),b(w,x)};V(u,w=>{e.item.valueComponent?w(f):w(v,!1)})}var p=P(u,2);{var y=w=>{var x=vx(),C=_(x,!0);g(x),D(()=>fe(C,e.item.sublabel)),b(w,x)};V(p,w=>{e.item.sublabel&&w(y)})}g(d),g(o),D((w,x,C)=>{r=ne(o,1,"item",null,r,w),Qe(o,"data-value",e.item.value),Qe(o,"aria-label",x),Qe(o,"data-testid",e.item.dataTestid),a=ne(d,1,"menu-item-value svelte-1t7rx2m",null,a,C),Qe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,x;return(x=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?x:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),U()}ct(["click","keydown"]);var hx=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Lm(t,e){F(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=m(()=>()=>e.openSubMenuList(e.item.children)),s=m(()=>x=>Wu(x,n(r)));var l=hx();let d;l.__click=function(...x){var C;(C=n(r))==null||C.apply(this,x)},l.__keydown=function(...x){var C;(C=n(s))==null||C.apply(this,x)};var a=_(l);{var u=x=>{Ec(x,{})};V(a,x=>{e.item.selected&&x(u)})}var f=P(a,2);let v;var p=_(f);{var y=x=>{var C=Ue();let T=m(()=>e.item.valueComponent);var E=pe(C);Mi(E,()=>n(T),(R,A)=>{A(R,Ss(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),b(x,C)},w=x=>{var C=as();D(()=>fe(C,e.item.label)),b(x,C)};V(p,x=>{e.item.valueComponent?x(y):x(w,!1)})}g(f),g(l),at(l,x=>o(o()[e.item.id]=x,!0),()=>{var x;return(x=o())==null?void 0:x[e.item.id]}),D((x,C)=>{var T;d=ne(l,1,"item",null,d,x),Qe(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Qe(l,"data-testid",e.item.id),v=ne(f,1,"menu-item-value",null,v,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),U()}ct(["click","keydown"]);var Gr={"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 bx=(t,e)=>{p0(t,e.returnFromSubMenu,e.closeSettingsMenu)},$x=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},yx=(t,e)=>{Yd(t)&&(Ir(t),e.returnFromSubMenu())},xx=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>'),wx={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
307
307
  /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
308
308
  /**
309
309
  * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
@@ -313,14 +313,14 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
313
313
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
314
314
  1px
315
315
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
316
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Rm(t,e){F(e,!0),W(t,Cx);let[i,o]=De(),r=()=>S(v,"$isFullscreen",i),s=()=>S(p,"$playerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),a=h(e,"ariaLabelReturnFromSubMenu",19,()=>j("aria_label_submenu_back")),u=h(e,"listRef",15);Ot(()=>{let q=e.items.findIndex(de=>de.selected);u().children[q+1].focus()});let f=he(),v=f.ui.isFullscreen,p=f.ui.playerSize,y=Q(void 0),w=Q(0),x=Q(0),C=m(()=>l()&&r()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-n(x)-d()}px; overflow: auto;`),T=m(()=>Math.max(e.minWidth,n(w)));var E=Sx();let R;var A=_(E);let I;A.__keydown=[yx,e];var O=_(A);let H;O.__click=[xx,e],O.__keydown=[wx,e];var B=_(O);ta(B,{direction:"left"});var z=P(B,2),Z=_(z,!0);g(z),g(O),at(O,q=>N(y,q),()=>n(y));var ae=P(O,2);Ci(ae,17,()=>e.items,Ld,(q,de)=>{var X=He(),fe=pe(X);{var re=Me=>{Mm(Me,{get item(){return n(de)},get isMobile(){return l()}})},le=(Me,we)=>{{var te=Ne=>{Lm(Ne,{get isMobile(){return l()},get item(){return n(de)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Me,Ne=>{n(de).type==="OPEN_SUB_MENU"&&Ne(te)},we)}};V(fe,Me=>{n(de).type==="SELECT_VALUE"?Me(re):Me(le,!1)})}b(q,X)}),g(A),at(A,q=>u(q),()=>u()),g(E),D((q,de,X)=>{R=ne(E,1,"sub-menu menu svelte-7dfsuh",null,R,q),We(E,"data-testid",`sub-menu-${e.id}`),Je(E,`min-width: ${n(T)}px`),I=ne(A,1,"items svelte-7dfsuh",null,I,de),Je(A,n(C)),H=ne(O,1,"item header back svelte-7dfsuh",null,H,X),We(O,"aria-label",a()),ve(Z,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),En(O,"clientWidth",q=>N(w,q)),En(O,"clientHeight",q=>N(x,q)),b(t,E),U(),o()}dt(["keydown","click"]);var Z0=require("@vkontakte/videoplayer-shared/es2018");var Tx=(t,e)=>qu(t,e()),Ex=(t,e)=>{t.stopPropagation(),e()()},Ix=M('<div class="value svelte-1ikfjte"> </div>'),kx=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),Ax={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Nm(t,e){F(e,!0),W(t,Ax);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,Z0.noop),r=h(e,"valueComponent",3,void 0),s=h(e,"ref",15);var l=kx();let d;l.__click=[Ex,o],l.__keydown=[Tx,o];var a=_(l),u=_(a);{var f=T=>{Wa(T,{get icon(){return e.icon}})},v=T=>{var E=He();let R=m(()=>e.icon);var A=pe(E);Mi(A,()=>n(R),(I,O)=>{O(I,{})}),b(T,E)};V(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var p=P(a,2),y=_(p,!0);g(p);var w=P(p,2);{var x=T=>{var E=He();let R=m(r);var A=pe(E);Mi(A,()=>n(R),(I,O)=>{O(I,{})}),b(T,E)},C=T=>{var E=Ix(),R=_(E,!0);g(E),D(()=>ve(R,e.value)),b(T,E)};V(w,T=>{r()?T(x):T(C,!1)})}g(l),at(l,T=>s(T),()=>s()),D(T=>{d=ne(l,1,"item",null,d,T),We(l,"aria-label",e.ariaLabel),We(l,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),b(t,l),U()}dt(["click","keydown"]);var Om=require("@vkontakte/videoplayer-shared/es2018");var Px=(t,e)=>{Fl(t,()=>e())},Mx=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Lx=M('<img class="icon" aria-hidden="true"/>'),Vx=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),Rx={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Dm(t,e){F(e,!0),W(t,Rx);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,Om.noop),r=h(e,"closeSettings",3,Om.noop),s=Q(!1),l=()=>{N(s,!0)},d=C=>{C==null||C.stopPropagation(),o()(),r()()};var a=Vx();let u;a.__click=d,a.__keydown=[Px,d];var f=_(a),v=_(f);{var p=C=>{var T=He(),E=pe(T);{var R=I=>{var O=Mx();b(I,O)},A=I=>{var O=Lx();D(()=>We(O,"src",e.icon)),Ct("error",O,l),wa(O),b(I,O)};V(E,I=>{n(s)?I(R):I(A,!1)})}b(C,T)},y=C=>{var T=He();let E=m(()=>e.icon);var R=pe(T);Mi(R,()=>n(E),(A,I)=>{I(A,{})}),b(C,T)};V(v,C=>{typeof e.icon=="string"?C(p):C(y,!1)})}g(f);var w=P(f,2),x=_(w,!0);g(w),g(a),D(C=>{var T;u=ne(a,1,"item",null,u,C),We(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),We(a,"data-testid",e.id),ve(x,e.label)},[()=>({mobile:i()})]),b(t,a),U()}dt(["click","keydown"]);var X0=require("@vkontakte/videoplayer-shared/es2018");var Nx=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),Ox={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function Bm(t,e){W(t,Ox);let i=h(e,"enabled",3,!1);var o=Nx(),r=_(o);let s;Te(2),g(o),D(l=>s=ne(r,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),b(t,o)}var Dx=(t,e,i)=>{f0(t,e(),o=>i()(o))},Bx=(t,e,i)=>{t.stopPropagation(),e()(!i())},Hx=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),Fx=M('<li role="menuitem" tabindex="0"><!></li>');function Hm(t,e){F(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,X0.noop),r=h(e,"enabled",3,!1),s=h(e,"tooltipText",3,void 0),l=h(e,"maxTooltipWidth",3,void 0);var d=Fx();let a;d.__click=[Bx,o,r],d.__keydown=[Dx,r,o];var u=_(d);Ha(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=Hx();let y;var w=_(p),x=_(w);{var C=I=>{Wa(I,{get icon(){return e.icon}})},T=I=>{var O=He();let H=m(()=>e.icon);var B=pe(O);Mi(B,()=>n(H),(z,Z)=>{Z(z,{})}),b(I,O)};V(x,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var E=P(w,2),R=_(E,!0);g(E);var A=P(E,2);Bm(A,{get enabled(){return r()}}),g(p),D(I=>{y=ne(p,1,"switch-wrapper",null,y,I),ve(R,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),g(d),D(f=>{var v;a=ne(d,1,"item switch-item",null,a,f),We(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),We(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),U()}dt(["click","keydown"]);var Ac=require("@vkontakte/videoplayer-shared/es2018");var J0=()=>{let t=Q(ai([])),e=m(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{N(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var Ux=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),zx=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),Wx={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 Xa(t,e){F(e,!0),W(t,Wx);let i=h(e,"isSubCase",3,!1),o=m(()=>Zu(e.quality));var r=zx(),s=_(r);let l;var d=_(s,!0);g(s);var a=P(s,2);{var u=f=>{var v=Ux();let p=m(()=>n(o));var y=_(v);Mi(y,()=>n(p),(w,x)=>{x(w,{})}),g(v),b(f,v)};V(a,f=>{n(o)&&!e.isMobile&&f(u)})}g(r),D(f=>{l=ne(s,1,"svelte-t2qk8t",null,l,f),ve(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,r),U()}var o_=require("@vkontakte/videoplayer-shared/es2018");var Fm=require("@vkontakte/videoplayer-core/es2018");var e_=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},t_=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=e_({quality:t,availableQualities:e});return i?t===Fm.VideoQuality.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:o}):o},i_=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Fm.VideoQuality.INVARIANT?i:`${i}${e_({quality:t,availableQualities:e})}`:"...";var Kx=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),qx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Jl(t,e){F(e,!0),W(t,qx);let[i,o]=De(),r=()=>S(a,"$currentQuality$",i),s=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=he(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=m(()=>e.prefix+(e.selected&&r()!==o_.VideoQuality.INVARIANT?v:"")),y=m(()=>i_({prefix:n(p),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var w=Kx(),x=_(w);let C=m(()=>e.selected?r():void 0);Xa(x,{get quality(){return n(C)},get label(){return n(y)},get isMobile(){return l()},isSubCase:!0}),g(w),b(t,w),U(),o()}var Qx=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},Gx={br:!0,span:!0},Um=(t,e={})=>{var d,a,u,f,v,p,y;if(!t)return t;let i={...Gx,...e},o=Object.keys(i);if(!o.length)return t;let r=Qx(o),s=[],l=0;for(let w of t.matchAll(r)){let x=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){s.push(t.slice(l,T)),l=T+x.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?Um(w.groups.childrenhtml,i):"",R=(p=w.groups)!=null&&p.childrenhtml?x.replace(new RegExp((y=w.groups)==null?void 0:y.childrenhtml),()=>E||""):x;s.push(t.slice(l,T),R),l=T+x.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function kc(t,e){F(e,!1);let i=h(e,"message",8),o=Um(i());jo();var r=He(),s=pe(r);{var l=d=>{var a=He(),u=pe(a);Vd(u,()=>o),b(d,a)};V(s,d=>{o&&d(l)})}b(t,r),U()}var jx=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),Yx={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 zm(t,e){F(e,!1),W(t,Yx),jo();var i=jx(),o=_(i);let r=xn(()=>j("quality_applience",{action:`<span>${j("quality_applience_action")}</span>`}));kc(o,{get message(){return n(r)}}),g(i),b(t,i),U()}var r_=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Jl,valueComponentParams:{prefix:j("other_quality"),selected:o},children:"QUALITY"}},Wm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:j("auto_quality_limit"),valueComponent:e?Jl:void 0,valueComponentParams:{prefix:j("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),s_=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:zm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Km=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:j("high_quality"),valueComponent:t?Jl:void 0,valueComponentParams:{prefix:j("high_quality"),selected:i},sublabel:j("high_quality_description")}),qm=({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:j("traffic_saving_quality"),valueComponent:t?Jl:void 0,valueComponentParams:{prefix:j("traffic_saving_quality"),selected:i},sublabel:j("traffic_saving_quality_description")});var fp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),vp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=fc(i))!=null?l:i),o&&i&&r){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return j("audio_stream_display_language_label",{language:r,label:o});{let a=fp(t,d);return j("audio_stream_display_language_label_index",{language:r,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=fp(t,d);return j("audio_stream_display_label_index",{label:o,index:a})}}if(i&&r){let d=e.filter(a=>a.language===i);if(d.length===1)return r;{let a=fp(t,d);return j("audio_stream_display_language_index",{language:r,index:a})}}let s=fp(t,e);return j("audio_stream_display_unknown",{index:s})};var Zx={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:Wm,selected:e&&!o&&!r||!1}),s.push({handler:qm,selected:o},{handler:Km,selected:r}),{title:j("submenu_quality"),id:"QUALITY_DETAILS",items:[s_(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),r_(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:j("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:Xa,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:j("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Wm,selected:((i=Ru())==null?void 0:i.type)==="auto_quality"},{handler:qm,selected:((o=Ru())==null?void 0:o.type)==="traffic_saving"},{handler:Km,selected:((r=Ru())==null?void 0:r.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:j("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:vp(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:j("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:j("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Fn?"sub_off":void 0}))})},a_=({subMenuId:t,context:e})=>t?[Zx[t](e)]:[];var Xx=Ee('<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 Qm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Xx();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var Jx=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Gm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Jx();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var e5=Ee('<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 jm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=e5();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var t5=Ee('<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 Ym(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=t5();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var i5=Ee('<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 Zm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=i5();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var o5=Ee('<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 mp(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=o5();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var n5=Ee('<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 Xm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=n5();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var r5=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),s5={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Jm(t,e){F(e,!0),W(t,s5);let[i,o]=De(),r=()=>S(u,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(v,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=he(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,y=m(()=>t_({quality:r(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=r5(),x=_(w);Xa(x,{get quality(){return r()},get label(){return n(y)},get isMobile(){return d()}}),g(w),b(t,w),U(),o()}var l5={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?j("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_quality",{actual:o}),icon:nc,label:j("menu_quality"),value:e,valueComponent:Jm,weight:Jr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Jr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:j("aria_label_submenu_traffic_saving"),icon:Qm,label:j("menu_traffic_saving"),enabled:t,tooltipText:j("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=vp(t,e);return{id:"AUDIO_LANGUAGES",weight:Jr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_audio_languages",{actual:i}),icon:Gm,label:j("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Jr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_rate",{actual:i}),icon:jm,label:j("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Jr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_subtitle",{actual:t.displayValue}),icon:rc,label:j("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Jr.download,type:"CLICK",onClick:t,label:j("download_video_caption"),ariaLabel:j("aria_label_menu_download"),icon:Ym}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Jr.report,type:"CLICK",onClick:t,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,icon:Zm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Jr["copy-data"],type:"CLICK",onClick:t,label:j("menu_copy_debug"),ariaLabel:j("menu_copy_debug"),icon:mp,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Jr["save-trace-info"],type:"CLICK",onClick:t,label:j("menu_save_debug"),ariaLabel:j("menu_save_debug"),icon:mp,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Jr["debug-info"],type:"CLICK",onClick:t,ariaLabel:j("aria_label_menu_debug_overlay"),label:j("menu_debug_overlay"),icon:Xm,isHiddenFor:["desktop"]})},l_=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>l5[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>{var s,l,d;return!((s=r==null?void 0:r.isHiddenFor)!=null&&s.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Na)};var c5=(t,e)=>{Ku(t,e)},u5=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),p5=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),f5=M("<div><!> <!></div>"),v5={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 {
316
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Rm(t,e){F(e,!0),W(t,wx);let[i,o]=Oe(),r=()=>S(v,"$isFullscreen",i),s=()=>S(p,"$playerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),a=h(e,"ariaLabelReturnFromSubMenu",19,()=>Y("aria_label_submenu_back")),u=h(e,"listRef",15);Ot(()=>{let q=e.items.findIndex(de=>de.selected);u().children[q+1].focus()});let f=ge(),v=f.ui.isFullscreen,p=f.ui.playerSize,y=Q(void 0),w=Q(0),x=Q(0),C=m(()=>l()&&r()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-n(x)-d()}px; overflow: auto;`),T=m(()=>Math.max(e.minWidth,n(w)));var E=xx();let R;var A=_(E);let I;A.__keydown=[bx,e];var O=_(A);let H;O.__click=[$x,e],O.__keydown=[yx,e];var B=_(O);Js(B,{direction:"left"});var z=P(B,2),Z=_(z,!0);g(z),g(O),at(O,q=>N(y,q),()=>n(y));var se=P(O,2);Ci(se,17,()=>e.items,Md,(q,de)=>{var X=Ue(),ve=pe(X);{var re=Ae=>{Mm(Ae,{get item(){return n(de)},get isMobile(){return l()}})},ae=(Ae,$e)=>{{var J=De=>{Lm(De,{get isMobile(){return l()},get item(){return n(de)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Ae,De=>{n(de).type==="OPEN_SUB_MENU"&&De(J)},$e)}};V(ve,Ae=>{n(de).type==="SELECT_VALUE"?Ae(re):Ae(ae,!1)})}b(q,X)}),g(A),at(A,q=>u(q),()=>u()),g(E),D((q,de,X)=>{R=ne(E,1,"sub-menu menu svelte-7dfsuh",null,R,q),Qe(E,"data-testid",`sub-menu-${e.id}`),tt(E,`min-width: ${n(T)}px`),I=ne(A,1,"items svelte-7dfsuh",null,I,de),tt(A,n(C)),H=ne(O,1,"item header back svelte-7dfsuh",null,H,X),Qe(O,"aria-label",a()),fe(Z,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),In(O,"clientWidth",q=>N(w,q)),In(O,"clientHeight",q=>N(x,q)),b(t,E),U(),o()}ct(["keydown","click"]);var Z0=require("@vkontakte/videoplayer-shared/es2018");var Sx=(t,e)=>Wu(t,e()),Cx=(t,e)=>{t.stopPropagation(),e()()},Tx=M('<div class="value svelte-1ikfjte"> </div>'),Ex=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),Ix={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Nm(t,e){F(e,!0),W(t,Ix);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,Z0.noop),r=h(e,"valueComponent",3,void 0),s=h(e,"ref",15);var l=Ex();let d;l.__click=[Cx,o],l.__keydown=[Sx,o];var a=_(l),u=_(a);{var f=T=>{za(T,{get icon(){return e.icon}})},v=T=>{var E=Ue();let R=m(()=>e.icon);var A=pe(E);Mi(A,()=>n(R),(I,O)=>{O(I,{})}),b(T,E)};V(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var p=P(a,2),y=_(p,!0);g(p);var w=P(p,2);{var x=T=>{var E=Ue();let R=m(r);var A=pe(E);Mi(A,()=>n(R),(I,O)=>{O(I,{})}),b(T,E)},C=T=>{var E=Tx(),R=_(E,!0);g(E),D(()=>fe(R,e.value)),b(T,E)};V(w,T=>{r()?T(x):T(C,!1)})}g(l),at(l,T=>s(T),()=>s()),D(T=>{d=ne(l,1,"item",null,d,T),Qe(l,"aria-label",e.ariaLabel),Qe(l,"data-testid",e.id),fe(y,e.label)},[()=>({mobile:i()})]),b(t,l),U()}ct(["click","keydown"]);var Om=require("@vkontakte/videoplayer-shared/es2018");var kx=(t,e)=>{Hl(t,()=>e())},Ax=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Px=M('<img class="icon" aria-hidden="true"/>'),Mx=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),Lx={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Dm(t,e){F(e,!0),W(t,Lx);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,Om.noop),r=h(e,"closeSettings",3,Om.noop),s=Q(!1),l=()=>{N(s,!0)},d=C=>{C==null||C.stopPropagation(),o()(),r()()};var a=Mx();let u;a.__click=d,a.__keydown=[kx,d];var f=_(a),v=_(f);{var p=C=>{var T=Ue(),E=pe(T);{var R=I=>{var O=Ax();b(I,O)},A=I=>{var O=Px();D(()=>Qe(O,"src",e.icon)),xt("error",O,l),xa(O),b(I,O)};V(E,I=>{n(s)?I(R):I(A,!1)})}b(C,T)},y=C=>{var T=Ue();let E=m(()=>e.icon);var R=pe(T);Mi(R,()=>n(E),(A,I)=>{I(A,{})}),b(C,T)};V(v,C=>{typeof e.icon=="string"?C(p):C(y,!1)})}g(f);var w=P(f,2),x=_(w,!0);g(w),g(a),D(C=>{var T;u=ne(a,1,"item",null,u,C),Qe(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Qe(a,"data-testid",e.id),fe(x,e.label)},[()=>({mobile:i()})]),b(t,a),U()}ct(["click","keydown"]);var X0=require("@vkontakte/videoplayer-shared/es2018");var Vx=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),Rx={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function Bm(t,e){W(t,Rx);let i=h(e,"enabled",3,!1);var o=Vx(),r=_(o);let s;Te(2),g(o),D(l=>s=ne(r,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),b(t,o)}var Nx=(t,e,i)=>{f0(t,e(),o=>i()(o))},Ox=(t,e,i)=>{t.stopPropagation(),e()(!i())},Dx=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),Bx=M('<li role="menuitem" tabindex="0"><!></li>');function Hm(t,e){F(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,X0.noop),r=h(e,"enabled",3,!1),s=h(e,"tooltipText",3,void 0),l=h(e,"maxTooltipWidth",3,void 0);var d=Bx();let a;d.__click=[Ox,o,r],d.__keydown=[Nx,r,o];var u=_(d);Ba(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=Dx();let y;var w=_(p),x=_(w);{var C=I=>{za(I,{get icon(){return e.icon}})},T=I=>{var O=Ue();let H=m(()=>e.icon);var B=pe(O);Mi(B,()=>n(H),(z,Z)=>{Z(z,{})}),b(I,O)};V(x,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var E=P(w,2),R=_(E,!0);g(E);var A=P(E,2);Bm(A,{get enabled(){return r()}}),g(p),D(I=>{y=ne(p,1,"switch-wrapper",null,y,I),fe(R,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),g(d),D(f=>{var v;a=ne(d,1,"item switch-item",null,a,f),Qe(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Qe(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),U()}ct(["click","keydown"]);var kc=require("@vkontakte/videoplayer-shared/es2018");var J0=()=>{let t=Q(si([])),e=m(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{N(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var Hx=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),Fx=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),Ux={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function Za(t,e){F(e,!0),W(t,Ux);let i=h(e,"isSubCase",3,!1),o=m(()=>ju(e.quality));var r=Fx(),s=_(r);let l;var d=_(s,!0);g(s);var a=P(s,2);{var u=f=>{var v=Hx();let p=m(()=>n(o));var y=_(v);Mi(y,()=>n(p),(w,x)=>{x(w,{})}),g(v),b(f,v)};V(a,f=>{n(o)&&!e.isMobile&&f(u)})}g(r),D(f=>{l=ne(s,1,"svelte-t2qk8t",null,l,f),fe(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,r),U()}var o_=require("@vkontakte/videoplayer-shared/es2018");var Fm=require("@vkontakte/videoplayer-core/es2018");var e_=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},t_=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=e_({quality:t,availableQualities:e});return i?t===Fm.VideoQuality.INVARIANT?Y("auto_quality_invariant"):Y("auto_quality",{actual:o}):o},i_=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Fm.VideoQuality.INVARIANT?i:`${i}${e_({quality:t,availableQualities:e})}`:"...";var zx=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Wx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Xl(t,e){F(e,!0),W(t,Wx);let[i,o]=Oe(),r=()=>S(a,"$currentQuality$",i),s=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=ge(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=m(()=>e.prefix+(e.selected&&r()!==o_.VideoQuality.INVARIANT?v:"")),y=m(()=>i_({prefix:n(p),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var w=zx(),x=_(w);let C=m(()=>e.selected?r():void 0);Za(x,{get quality(){return n(C)},get label(){return n(y)},get isMobile(){return l()},isSubCase:!0}),g(w),b(t,w),U(),o()}var Kx=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},qx={br:!0,span:!0},Um=(t,e={})=>{var d,a,u,f,v,p,y;if(!t)return t;let i={...qx,...e},o=Object.keys(i);if(!o.length)return t;let r=Kx(o),s=[],l=0;for(let w of t.matchAll(r)){let x=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){s.push(t.slice(l,T)),l=T+x.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?Um(w.groups.childrenhtml,i):"",R=(p=w.groups)!=null&&p.childrenhtml?x.replace(new RegExp((y=w.groups)==null?void 0:y.childrenhtml),()=>E||""):x;s.push(t.slice(l,T),R),l=T+x.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Ic(t,e){F(e,!1);let i=h(e,"message",8),o=Um(i());Uo();var r=Ue(),s=pe(r);{var l=d=>{var a=Ue(),u=pe(a);Ld(u,()=>o),b(d,a)};V(s,d=>{o&&d(l)})}b(t,r),U()}var Qx=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),Gx={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 zm(t,e){F(e,!1),W(t,Gx),Uo();var i=Qx(),o=_(i);let r=wn(()=>Y("quality_applience",{action:`<span>${Y("quality_applience_action")}</span>`}));Ic(o,{get message(){return n(r)}}),g(i),b(t,i),U()}var r_=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Xl,valueComponentParams:{prefix:Y("other_quality"),selected:o},children:"QUALITY"}},Wm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:Y("auto_quality_limit"),valueComponent:e?Xl:void 0,valueComponentParams:{prefix:Y("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),s_=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:zm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Km=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:Y("high_quality"),valueComponent:t?Xl:void 0,valueComponentParams:{prefix:Y("high_quality"),selected:i},sublabel:Y("high_quality_description")}),qm=({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:Y("traffic_saving_quality"),valueComponent:t?Xl:void 0,valueComponentParams:{prefix:Y("traffic_saving_quality"),selected:i},sublabel:Y("traffic_saving_quality_description")});var pp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),fp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=pc(i))!=null?l:i),o&&i&&r){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return Y("audio_stream_display_language_label",{language:r,label:o});{let a=pp(t,d);return Y("audio_stream_display_language_label_index",{language:r,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=pp(t,d);return Y("audio_stream_display_label_index",{label:o,index:a})}}if(i&&r){let d=e.filter(a=>a.language===i);if(d.length===1)return r;{let a=pp(t,d);return Y("audio_stream_display_language_index",{language:r,index:a})}}let s=pp(t,e);return Y("audio_stream_display_unknown",{index:s})};var jx={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:Wm,selected:e&&!o&&!r||!1}),s.push({handler:qm,selected:o},{handler:Km,selected:r}),{title:Y("submenu_quality"),id:"QUALITY_DETAILS",items:[s_(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),r_(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:Y("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:Za,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:Y("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Wm,selected:((i=Lu())==null?void 0:i.type)==="auto_quality"},{handler:qm,selected:((o=Lu())==null?void 0:o.type)==="traffic_saving"},{handler:Km,selected:((r=Lu())==null?void 0:r.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:Y("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:fp(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:Y("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:Y("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===np?"sub_off":void 0}))})},a_=({subMenuId:t,context:e})=>t?[jx[t](e)]:[];var Yx=Ee('<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 Qm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Yx();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var Zx=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Gm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Zx();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var Xx=Ee('<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 jm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Xx();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var Jx=Ee('<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 Ym(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Jx();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var e5=Ee('<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 Zm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=e5();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var t5=Ee('<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 vp(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=t5();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var i5=Ee('<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 Xm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=i5();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var o5=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),n5={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Jm(t,e){F(e,!0),W(t,n5);let[i,o]=Oe(),r=()=>S(u,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(v,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=ge(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,y=m(()=>t_({quality:r(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=o5(),x=_(w);Za(x,{get quality(){return r()},get label(){return n(y)},get isMobile(){return d()}}),g(w),b(t,w),U(),o()}var s5={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?Y("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_quality",{actual:o}),icon:oc,label:Y("menu_quality"),value:e,valueComponent:Jm,weight:Gr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Gr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Y("aria_label_submenu_traffic_saving"),icon:Qm,label:Y("menu_traffic_saving"),enabled:t,tooltipText:Y("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=fp(t,e);return{id:"AUDIO_LANGUAGES",weight:Gr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_audio_languages",{actual:i}),icon:Gm,label:Y("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Gr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_rate",{actual:i}),icon:jm,label:Y("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Gr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_subtitle",{actual:t.displayValue}),icon:nc,label:Y("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Gr.download,type:"CLICK",onClick:t,label:Y("download_video_caption"),ariaLabel:Y("aria_label_menu_download"),icon:Ym}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Gr.report,type:"CLICK",onClick:t,label:Y("menu_report"),ariaLabel:`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`,icon:Zm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Gr["copy-data"],type:"CLICK",onClick:t,label:Y("menu_copy_debug"),ariaLabel:Y("menu_copy_debug"),icon:vp,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Gr["save-trace-info"],type:"CLICK",onClick:t,label:Y("menu_save_debug"),ariaLabel:Y("menu_save_debug"),icon:vp,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Gr["debug-info"],type:"CLICK",onClick:t,ariaLabel:Y("aria_label_menu_debug_overlay"),label:Y("menu_debug_overlay"),icon:Xm,isHiddenFor:["desktop"]})},l_=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>s5[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>{var s,l,d;return!((s=r==null?void 0:r.isHiddenFor)!=null&&s.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Ra)};var l5=(t,e)=>{zu(t,e)},d5=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),c5=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),u5=M("<div><!> <!></div>"),p5={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
317
317
  /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
318
318
  .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
319
319
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
320
- .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Pc(t,e){F(e,!0),W(t,v5);let[i,o]=De(),r=()=>S(Ze,"$settingsMenuVisible",i),s=()=>S(me,"$settingsMenuOpenedByKeyboard",i),l=()=>S(et,"$debugPanelVisible",i),d=()=>S(Ie,"$isMobile",i),a=()=>S(ct,"$playerSize",i),u=()=>S(Be,"$hasMpegSources$",i),f=()=>S(ge,"$mobileNotReportControlHidden$",i),v=()=>S(te,"$autoQualityLimitingAvailable$",i),p=()=>S(Y,"$availableSubtitlesList$",i),y=()=>S(Fe,"$isLiveWithPlaybackSpeed",i),w=()=>S(le,"$availableAudioStreams$",i),x=()=>S(Ke,"$availablePlaybackRates$",i),C=()=>S(re,"$currentAudioStream$",i),T=()=>S(k,"$currentPlaybackRate$",i),E=()=>S(Xe,"$trafficSavingEnabled",i),R=()=>S(Me,"$currentQuality$",i),A=()=>S(Ne,"$isAutoQualityEnabled$",i),I=()=>S(Ve,"$currentSubtitle$",i),O=()=>S(rt,"$additionalSettingsMenuItems$",i),H=()=>S(ue,"$isAutoQualityAvailable$",i),B=()=>S(we,"$availableQualities$",i),z=()=>S(Ge,"$highQualityEnabled",i),Z=h(e,"ref",15,void 0),ae=h(e,"playerControlsHeight",3,0),q=ai({}),de=ai({}),X=he(),fe=Rt(),re=X.state.audioStream$,le=X.state.availableAudioStreams$,Me=X.state.currentQuality$,we=X.state.availableQualities$,te=X.state.autoQualityLimitingAvailable$,Ne=X.state.isAutoQualityEnabled$,ue=X.state.isAutoQualityAvailable$,k=X.state.currentPlaybackRate$,Ke=X.state.availablePlaybackRates$,Ve=X.state.currentSubtitle$,Y=X.state.availableSubtitlesList$,oe=X.state.canDownload,Be=X.state.hasMpegSources$,Ze=X.ui.settingsMenu.visible$,me=X.ui.settingsMenu.openedByBtnKeyboard$,J=X.ui.settingsMenu.ref$,Ie=X.ui.isMobile,ge=X.ui.mobileNotReportControlHidden$,Fe=X.state.canChangePlaybackSpeed$,Xe=X.state.trafficSavingEnabled$,Ge=X.state.highQualityEnabled$,ct=X.ui.playerSize,et=X.ui.debugPanelVisible,Bt=X.state.isInteractiveTime$,rt=X.ui.additionalSettingsMenuItems$,Dt=X.ui.t,qt=X.actions.internal.downloadVideo,Et=X.actions.internal.closeSettingsMenu,ei=X.actions.internal.openSettingsSubMenu,Wt=X.actions.internal.closeSettingsSubMenu,Se=Q(!1),xe=Q(void 0),ee=J0();ze(()=>{!r()&&ee.current&&(Wt(de[ee.current]),ee.popAllSubMenus())}),ze(()=>{r()||N(xe,void 0)}),ze(()=>{!ee.current&&n(xe)&&u0(q,n(xe))}),ze(()=>{Z()&&J.set(Z())});async function Ce(kt){var K;ee.pushSubMenu(kt),await Ao(),ei(kt,de[kt]);let Ht=(K=Z())==null?void 0:K.firstElementChild;Ht&&nv(Ht)}function Pe(kt){var Ht;kt==null||kt.stopPropagation(),s()||(Ht=e.returnFocus)==null||Ht.call(e),Et(),N(Se,!1)}function It(kt,Ht){X.actions.internal.setQuality(kt,{appliesTo:Ht}),Pe()}function Oe(kt){X.actions.internal.setAudioStream(kt),Pe()}function ut(kt,Ht){X.actions.internal.setTrafficSavingEnabled(kt,Ht),fe.features.qualityDetailsSubMenuEnabled&&Pe()}function yt(kt,Ht){X.actions.internal.setHighQualityEnabled(kt,Ht),Pe()}function ye(kt){X.actions.internal.setPlaybackRate(kt),Pe()}function ot(kt){X.actions.internal.setSubtitle(kt),Pe()}function qe(){qt()}function lt(){(0,Ac.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),X.actions.internal.reportProblem(),X.actions.internal.pause()}function ti(){Bl(X.actions.internal.getDebugTextData())}let ni=()=>{let kt=X.actions.internal.getTraceTextData(),Ht=new Blob([...kt],{type:"application/json"}),K=window.URL.createObjectURL(Ht);Aa(K,"vk_player_trace_info","json")};function fi(){et.set(!l())}function yi(){N(Se,!0)}function ro(){N(Se,!1)}function po(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-ae()}px; overflow: auto;`}let di=m(()=>oe&&u()&&!f()),gt=m(()=>fe.features.trafficSaving&&!f()&&v()&&!fe.features.qualityDetailsSubMenuEnabled),ki=m(()=>p().length>0&&!f()),jt=m(()=>!!y()&&!f()),Tt=m(()=>fe.features.audioLanguages&&w().length>=2&&!f()),oi=m(()=>!f());Ot(()=>Bt.subscribe(kt=>{kt&&!d()&&!n(Se)&&!s()&&Pe()}));let Yt=m(()=>{let kt=[n(oi)&&"QUALITY_SETTINGS",n(Tt)&&"AUDIO_LANGUAGES",n(jt)&&"PLAYBACK_RATE",n(ki)&&"SUBTITLES",n(gt)&&"TRAFFIC_SAVING_SWITCH",n(di)&&"DOWNLOAD",fe.showSupport&&"SHOW_SUPPORT","COPY_DATA",fe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ht=>!!Ht);return l_({items:kt,context:{qualityDetailsSubMenuEnabled:fe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:ye,trafficSavingEnabled:E(),toggleTrafficSaving:ut,currentQuality:R()||Ac.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:qe,onCopyDataClick:ti,onReportProblemClick:lt,onSaveTraceDataClick:ni,toggleShowDebugInfo:fi},additionalSettingsMenuItems:O()})}),St=m(()=>a_({subMenuId:ee.current,context:{availablePlaybackRates:x(),selectPlaybackRate:ye,trafficSavingEnabled:E(),toggleTrafficSaving:ut,currentQuality:R()||Ac.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:H()||!1,availableQualities:B(),highQualityEnabled:z(),toggleHighQuality:yt,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Et,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Oe,selectQuality:It,selectSubtitle:ot}}));var je=f5();let xi;var yo=_(je);{var Zo=kt=>{var Ht=p5();let K;Ht.__keydown=[c5,Et];var Vt=_(Ht);{var ii=Gt=>{var pt=u5();let Vi;var Fi=_(pt),Xo=_(Fi,!0);g(Fi);var Vo=P(Fi,2);Vo.__click=Pe,g(pt),D((so,Ui)=>{Vi=ne(pt,1,"item header svelte-17or3al",null,Vi,so),ve(Xo,Ui)},[()=>({mobile:d()}),()=>Dt("submenu_settings")]),b(Gt,pt)};V(Vt,Gt=>{d()&&Gt(ii)})}var vt=P(Vt,2);let At;Ci(vt,21,()=>n(Yt),Gt=>Gt.id,(Gt,pt)=>{var Vi=He(),Fi=pe(Vi);{var Xo=so=>{Nm(so,{get isMobile(){return d()},get id(){return n(pt).id},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},get value(){return n(pt).value},get valueComponent(){return n(pt).valueComponent},onClick:()=>{Ce(n(pt).children),N(xe,n(pt).id,!0)},get ref(){return q[n(pt).id]},set ref(Ui){q[n(pt).id]=Ui}})},Vo=(so,Ui)=>{{var dr=vo=>{Dm(vo,{get isMobile(){return d()},get id(){return n(pt).id},get onClick(){return n(pt).onClick},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},closeSettings:Pe})},fo=(vo,Ri)=>{{var cn=Ro=>{Hm(Ro,{get isMobile(){return d()},get id(){return n(pt).id},get onClick(){return n(pt).onClick},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},get enabled(){return n(pt).enabled},get tooltipText(){return n(pt).tooltipText},get maxTooltipWidth(){return n(pt).maxTooltipWidth}})};V(vo,Ro=>{n(pt).type==="SWITCH"&&Ro(cn)},Ri)}};V(so,vo=>{n(pt).type==="CLICK"?vo(dr):vo(fo,!1)},Ui)}};V(Fi,so=>{n(pt).type==="OPEN_SUB_MENU"?so(Xo):so(Vo,!1)})}b(Gt,Vi)}),g(vt),at(vt,Gt=>Z(Gt),()=>Z()),g(Ht),D((Gt,pt,Vi)=>{K=ne(Ht,1,"settings-menu menu svelte-17or3al",null,K,Gt),At=ne(vt,1,"items",null,At,pt),Je(vt,Vi)},[()=>({desktop:!d(),mobile:d(),hidden:!!ee.current}),()=>({mobile:d()}),po]),Ct("mouseenter",Ht,yi),Ct("mouseleave",Ht,ro),b(kt,Ht)};V(yo,kt=>{r()&&kt(Zo)})}var dn=P(yo,2);Ci(dn,17,()=>n(St),kt=>kt.id,(kt,Ht)=>{let K=m(()=>{var Vt;return(Vt=n(Ht).minWidth)!=null?Vt:137});Rm(kt,{get isMobile(){return d()},get playerControlsHeight(){return ae()},get returnFromSubMenu(){return ee.popSubMenu},get id(){return n(Ht).id},get title(){return n(Ht).title},get closeSettingsMenu(){return Et},openSubMenuList:Ce,get items(){return n(Ht).items},get minWidth(){return n(K)},get refMenuItems(){return q},get listRef(){return de[n(Ht).id]},set listRef(Vt){de[n(Ht).id]=Vt}})}),g(je),D(kt=>xi=ne(je,1,"settings-menu-container svelte-17or3al",null,xi,kt),[()=>({mobile:d(),hidden:!r()})]),b(t,je),U(),o()}dt(["keydown","click"]);var m5=M('<button class="btn svelte-1f0voc7"> </button>'),g5={hash:"svelte-1f0voc7",code:"button.btn.svelte-1f0voc7 {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function eg(t,e){W(t,g5);var i=m5();i.__click=function(...r){var s;(s=e.onClick)==null||s.apply(this,r)};var o=_(i,!0);g(i),D(()=>ve(o,e.label)),b(t,i)}dt(["click"]);var h5=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),_5={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
320
+ .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Ac(t,e){F(e,!0),W(t,p5);let[i,o]=Oe(),r=()=>S(Ze,"$settingsMenuVisible",i),s=()=>S(me,"$settingsMenuOpenedByKeyboard",i),l=()=>S(Ye,"$debugPanelVisible",i),d=()=>S(Ie,"$isMobile",i),a=()=>S(Ke,"$playerSize",i),u=()=>S(Be,"$hasMpegSources$",i),f=()=>S(xe,"$mobileNotReportControlHidden$",i),v=()=>S(J,"$autoQualityLimitingAvailable$",i),p=()=>S(j,"$availableSubtitlesList$",i),y=()=>S(He,"$isLiveWithPlaybackSpeed",i),w=()=>S(ae,"$availableAudioStreams$",i),x=()=>S(Ge,"$availablePlaybackRates$",i),C=()=>S(re,"$currentAudioStream$",i),T=()=>S(k,"$currentPlaybackRate$",i),E=()=>S(Xe,"$trafficSavingEnabled",i),R=()=>S(Ae,"$currentQuality$",i),A=()=>S(De,"$isAutoQualityEnabled$",i),I=()=>S(Pe,"$currentSubtitle$",i),O=()=>S(rt,"$additionalSettingsMenuItems$",i),H=()=>S(ue,"$isAutoQualityAvailable$",i),B=()=>S($e,"$availableQualities$",i),z=()=>S(je,"$highQualityEnabled",i),Z=h(e,"ref",15,void 0),se=h(e,"playerControlsHeight",3,0),q=si({}),de=si({}),X=ge(),ve=Rt(),re=X.state.audioStream$,ae=X.state.availableAudioStreams$,Ae=X.state.currentQuality$,$e=X.state.availableQualities$,J=X.state.autoQualityLimitingAvailable$,De=X.state.isAutoQualityEnabled$,ue=X.state.isAutoQualityAvailable$,k=X.state.currentPlaybackRate$,Ge=X.state.availablePlaybackRates$,Pe=X.state.currentSubtitle$,j=X.state.availableSubtitlesList$,ie=X.state.canDownload,Be=X.state.hasMpegSources$,Ze=X.ui.settingsMenu.visible$,me=X.ui.settingsMenu.openedByBtnKeyboard$,te=X.ui.settingsMenu.ref$,Ie=X.ui.isMobile,xe=X.ui.mobileNotReportControlHidden$,He=X.state.canChangePlaybackSpeed$,Xe=X.state.trafficSavingEnabled$,je=X.state.highQualityEnabled$,Ke=X.ui.playerSize,Ye=X.ui.debugPanelVisible,Dt=X.state.isInteractiveTime$,rt=X.ui.additionalSettingsMenuItems$,Bt=X.ui.t,qt=X.actions.internal.downloadVideo,Et=X.actions.internal.closeSettingsMenu,Jt=X.actions.internal.openSettingsSubMenu,Wt=X.actions.internal.closeSettingsSubMenu,Se=Q(!1),ye=Q(void 0),ee=J0();qe(()=>{!r()&&ee.current&&(Wt(de[ee.current]),ee.popAllSubMenus())}),qe(()=>{r()||N(ye,void 0)}),qe(()=>{!ee.current&&n(ye)&&u0(q,n(ye))}),qe(()=>{Z()&&te.set(Z())});async function Ce(It){var K;ee.pushSubMenu(It),await go(),Jt(It,de[It]);let Ht=(K=Z())==null?void 0:K.firstElementChild;Ht&&nv(Ht)}function Le(It){var Ht;It==null||It.stopPropagation(),s()||(Ht=e.returnFocus)==null||Ht.call(e),Et(),N(Se,!1)}function Mt(It,Ht){X.actions.internal.setQuality(It,{appliesTo:Ht}),Le()}function Ve(It){X.actions.internal.setAudioStream(It),Le()}function lt(It,Ht){X.actions.internal.setTrafficSavingEnabled(It,Ht),ve.features.qualityDetailsSubMenuEnabled&&Le()}function Tt(It,Ht){X.actions.internal.setHighQualityEnabled(It,Ht),Le()}function we(It){X.actions.internal.setPlaybackRate(It),Le()}function st(It){X.actions.internal.setSubtitle(It),Le()}function ze(){qt()}function ut(){(0,kc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),X.actions.internal.reportProblem(),X.actions.internal.pause()}function Qt(){Dl(X.actions.internal.getDebugTextData())}let _i=()=>{let It=X.actions.internal.getTraceTextData(),Ht=new Blob([...It],{type:"application/json"}),K=window.URL.createObjectURL(Ht);ka(K,"vk_player_trace_info","json")};function pi(){Ye.set(!l())}function yi(){N(Se,!0)}function oo(){N(Se,!1)}function no(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-se()}px; overflow: auto;`}let di=m(()=>ie&&u()&&!f()),gt=m(()=>ve.features.trafficSaving&&!f()&&v()&&!ve.features.qualityDetailsSubMenuEnabled),bi=m(()=>p().length>0&&!f()),li=m(()=>!!y()&&!f()),$t=m(()=>ve.features.audioLanguages&&w().length>=2&&!f()),fi=m(()=>!f());Ot(()=>Dt.subscribe(It=>{It&&!d()&&!n(Se)&&!s()&&Le()}));let Yt=m(()=>{let It=[n(fi)&&"QUALITY_SETTINGS",n($t)&&"AUDIO_LANGUAGES",n(li)&&"PLAYBACK_RATE",n(bi)&&"SUBTITLES",n(gt)&&"TRAFFIC_SAVING_SWITCH",n(di)&&"DOWNLOAD",ve.showSupport&&"SHOW_SUPPORT","COPY_DATA",ve.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ht=>!!Ht);return l_({items:It,context:{qualityDetailsSubMenuEnabled:ve.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:we,trafficSavingEnabled:E(),toggleTrafficSaving:lt,currentQuality:R()||kc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:ze,onCopyDataClick:Qt,onReportProblemClick:ut,onSaveTraceDataClick:_i,toggleShowDebugInfo:pi},additionalSettingsMenuItems:O()})}),wt=m(()=>a_({subMenuId:ee.current,context:{availablePlaybackRates:x(),selectPlaybackRate:we,trafficSavingEnabled:E(),toggleTrafficSaving:lt,currentQuality:R()||kc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:H()||!1,availableQualities:B(),highQualityEnabled:z(),toggleHighQuality:Tt,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Et,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Ve,selectQuality:Mt,selectSubtitle:st}}));var Je=u5();let Ti;var yo=_(Je);{var Wo=It=>{var Ht=c5();let K;Ht.__keydown=[l5,Et];var kt=_(Ht);{var ii=jt=>{var pt=d5();let Hi;var Fi=_(pt),Ko=_(Fi,!0);g(Fi);var xo=P(Fi,2);xo.__click=Le,g(pt),D((ro,Ui)=>{Hi=ne(pt,1,"item header svelte-17or3al",null,Hi,ro),fe(Ko,Ui)},[()=>({mobile:d()}),()=>Bt("submenu_settings")]),b(jt,pt)};V(kt,jt=>{d()&&jt(ii)})}var ht=P(kt,2);let At;Ci(ht,21,()=>n(Yt),jt=>jt.id,(jt,pt)=>{var Hi=Ue(),Fi=pe(Hi);{var Ko=ro=>{Nm(ro,{get isMobile(){return d()},get id(){return n(pt).id},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},get value(){return n(pt).value},get valueComponent(){return n(pt).valueComponent},onClick:()=>{Ce(n(pt).children),N(ye,n(pt).id,!0)},get ref(){return q[n(pt).id]},set ref(Ui){q[n(pt).id]=Ui}})},xo=(ro,Ui)=>{{var kr=so=>{Dm(so,{get isMobile(){return d()},get id(){return n(pt).id},get onClick(){return n(pt).onClick},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},closeSettings:Le})},ho=(so,zi)=>{{var qo=Qo=>{Hm(Qo,{get isMobile(){return d()},get id(){return n(pt).id},get onClick(){return n(pt).onClick},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},get enabled(){return n(pt).enabled},get tooltipText(){return n(pt).tooltipText},get maxTooltipWidth(){return n(pt).maxTooltipWidth}})};V(so,Qo=>{n(pt).type==="SWITCH"&&Qo(qo)},zi)}};V(ro,so=>{n(pt).type==="CLICK"?so(kr):so(ho,!1)},Ui)}};V(Fi,ro=>{n(pt).type==="OPEN_SUB_MENU"?ro(Ko):ro(xo,!1)})}b(jt,Hi)}),g(ht),at(ht,jt=>Z(jt),()=>Z()),g(Ht),D((jt,pt,Hi)=>{K=ne(Ht,1,"settings-menu menu svelte-17or3al",null,K,jt),At=ne(ht,1,"items",null,At,pt),tt(ht,Hi)},[()=>({desktop:!d(),mobile:d(),hidden:!!ee.current}),()=>({mobile:d()}),no]),xt("mouseenter",Ht,yi),xt("mouseleave",Ht,oo),b(It,Ht)};V(yo,It=>{r()&&It(Wo)})}var an=P(yo,2);Ci(an,17,()=>n(wt),It=>It.id,(It,Ht)=>{let K=m(()=>{var kt;return(kt=n(Ht).minWidth)!=null?kt:137});Rm(It,{get isMobile(){return d()},get playerControlsHeight(){return se()},get returnFromSubMenu(){return ee.popSubMenu},get id(){return n(Ht).id},get title(){return n(Ht).title},get closeSettingsMenu(){return Et},openSubMenuList:Ce,get items(){return n(Ht).items},get minWidth(){return n(K)},get refMenuItems(){return q},get listRef(){return de[n(Ht).id]},set listRef(kt){de[n(Ht).id]=kt}})}),g(Je),D(It=>Ti=ne(Je,1,"settings-menu-container svelte-17or3al",null,Ti,It),[()=>({mobile:d(),hidden:!r()})]),b(t,Je),U(),o()}ct(["keydown","click"]);var f5=M('<button class="btn svelte-1f0voc7"> </button>'),v5={hash:"svelte-1f0voc7",code:"button.btn.svelte-1f0voc7 {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function eg(t,e){W(t,v5);var i=f5();i.__click=function(...r){var s;(s=e.onClick)==null||s.apply(this,r)};var o=_(i,!0);g(i),D(()=>fe(o,e.label)),b(t,i)}ct(["click"]);var m5=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),g5={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
321
321
  /**
322
322
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
323
- */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Mc(t,e){F(e,!0),W(t,_5);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Rt(),{ui:{t:r}}=he(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=h5(),d=_(l),a=_(d),u=_(a),f=_(u);kc(f,{get message(){return s}}),g(u);var v=P(u,2);{var p=w=>{let x=m(()=>r("slow_video_notification_button"));eg(w,{get label(){return n(x)},get onClick(){return e.onSelectAutoQuality}})};V(v,w=>{o||w(p)})}g(a);var y=P(a,2);Is(y,{get onClick(){return e.onClose}}),g(d),g(l),jr(3,d,()=>ps,()=>({duration:i})),b(t,l),U()}var Lc=require("@vkontakte/videoplayer-shared/es2018"),Ja="annotation",gp=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",Ja),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let r=this.slots.get(e);if(!r)return;let s=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(v=>v.forEach(()=>{let p=As(s,this.shadowRootContainer);o.forEach(y=>{let w=l==null?void 0:l[y],x=w?be(w):null,C=d==null?void 0:d[y];x&&(C==null||C.set((0,Lc.isIntersecting)(x,p)))})}));a.observe(s,{childList:!0,subtree:!0}),r.observer=a;let u=new Lc.Subscription;o.forEach(v=>{l&&u.add(l[v].subscribe(p=>{let y=d==null?void 0:d[v];p&&p.isDisplayed?y==null||y.set((0,Lc.isIntersecting)(p,As(s,this.shadowRootContainer))):y==null||y.set(!1)}))}),r.subs=u}async findSlotElement(e,i,o){return new Promise(r=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),r(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[r,s].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var p,y;(y=(p=this.store)==null?void 0:p.ui.hiddenControls[v])==null||y.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var b5=M('<div class="container svelte-16aykgd"><!></div>'),$5={hash:"svelte-16aykgd",code:`.container.svelte-16aykgd {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
323
+ */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Pc(t,e){F(e,!0),W(t,g5);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Rt(),{ui:{t:r}}=ge(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=m5(),d=_(l),a=_(d),u=_(a),f=_(u);Ic(f,{get message(){return s}}),g(u);var v=P(u,2);{var p=w=>{let x=m(()=>r("slow_video_notification_button"));eg(w,{get label(){return n(x)},get onClick(){return e.onSelectAutoQuality}})};V(v,w=>{o||w(p)})}g(a);var y=P(a,2);Ts(y,{get onClick(){return e.onClose}}),g(d),g(l),Wr(3,d,()=>us,()=>({duration:i})),b(t,l),U()}var Mc=require("@vkontakte/videoplayer-shared/es2018"),Xa="annotation",mp=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",Xa),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let r=this.slots.get(e);if(!r)return;let s=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(v=>v.forEach(()=>{let p=Is(s,this.shadowRootContainer);o.forEach(y=>{let w=l==null?void 0:l[y],x=w?be(w):null,C=d==null?void 0:d[y];x&&(C==null||C.set((0,Mc.isIntersecting)(x,p)))})}));a.observe(s,{childList:!0,subtree:!0}),r.observer=a;let u=new Mc.Subscription;o.forEach(v=>{l&&u.add(l[v].subscribe(p=>{let y=d==null?void 0:d[v];p&&p.isDisplayed?y==null||y.set((0,Mc.isIntersecting)(p,Is(s,this.shadowRootContainer))):y==null||y.set(!1)}))}),r.subs=u}async findSlotElement(e,i,o){return new Promise(r=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),r(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[r,s].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var p,y;(y=(p=this.store)==null?void 0:p.ui.hiddenControls[v])==null||y.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var h5=M('<div class="container svelte-16aykgd"><!></div>'),_5={hash:"svelte-16aykgd",code:`.container.svelte-16aykgd {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
324
324
 
325
325
  animation-name: svelte-16aykgd-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
326
326
 
@@ -351,11 +351,11 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
351
351
  opacity: 0;
352
352
  scale: 0;
353
353
  }
354
- }`};function Vc(t,e){W(t,$5);let i=h(e,"isPrev",3,!1);var o=He(),r=pe(o);ws(r,()=>e.Icon,s=>{var l=b5(),d=_(l);Mi(d,()=>e.Icon,(a,u)=>{u(a,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return i()}})}),g(l),D(()=>Je(l,`animation-duration: ${e.duration}ms`)),b(s,l)}),b(t,o)}var tg=require("@vkontakte/videoplayer-core/es2018"),y5=M('<div class="container svelte-1sw36pi"><!></div>'),x5={hash:"svelte-1sw36pi",code:".container.svelte-1sw36pi {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}"};function ig(t,e){F(e,!0),W(t,x5);let[i,o]=De(),r=()=>S(a,"$playbackState$",i),s=()=>S(f,"$previewTrackActive",i),l=()=>S(v,"$previewTrackDragInProgress",i),d=()=>S(u,"$isPlaying$",i),{state:{playbackState$:a,isPlaying$:u},ui:{previewTrackActive:f,previewTrackDragInProgress:v}}=he(),{features:{playbackStatusShow:p},playbackStatusAnimationDuration:y}=Rt(),w=0,x=Q(null),C=Q(!1);ze(()=>{r()===tg.PlaybackState.PLAYING?N(x,lr,!0):r()===tg.PlaybackState.PAUSED?N(x,Ms,!0):N(x,null)}),ze(()=>{if(!(!p||s()||l()))return w=window.setTimeout(()=>{w=0,N(x,null)},y),()=>{w&&(window.clearTimeout(w),w=0)}}),ze(()=>{d()&&!n(C)&&(N(C,!0),N(x,null))});var T=He(),E=pe(T);{var R=A=>{var I=y5(),O=_(I);Vc(O,{get duration(){return y},get Icon(){return n(x)}}),g(I),b(A,I)};V(E,A=>{n(x)&&p&&A(R)})}b(t,T),U(),o()}var w5=M('<div><div data-testid="video-container"></div></div>'),S5={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
355
- .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function el(t,e){F(e,!0),W(t,S5);let[i,o]=De(),r=()=>S(f,"$rotateAlpha",i),s=()=>S(v,"$playerSize",i),l=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),a=h(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=he(),{isSmoothVideoRotate:y}=Rt(),w=m(()=>a()&&r()%180?s().height/s().width:1);var x=w5();let C;x.__contextmenu=function(...R){var A;(A=e.onContextMenu)==null||A.apply(this,R)},x.__mousedown=function(...R){var A;(A=e.onMouseDown)==null||A.apply(this,R)},x.__mouseup=function(...R){var A;(A=e.onMouseUp)==null||A.apply(this,R)},x.__click=function(...R){var A;(A=e.onClick)==null||A.apply(this,R)},x.__dblclick=function(...R){var A;(A=e.onDblClick)==null||A.apply(this,R)};var T=_(x);let E;at(T,R=>a(R),()=>a()),g(x),D((R,A)=>{C=ne(x,1,"video-wrapper svelte-1czns9r",null,C,R),E=ne(T,1,"video-container svelte-1czns9r",null,E,A),Je(T,`transform: rotate(${r()}deg) scale(${n(w)})`),We(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),b(t,x),U(),o()}dt(["contextmenu","mousedown","mouseup","click","dblclick"]);var C5=Ee('<svg><!><path fill="currentColor" d="M8 7.389V5.725c0-.52.57-.84 1.015-.569l3.721 2.275a.667.667 0 0 1 0 1.138l-3.721 2.275A.667.667 0 0 1 8 10.275V8.611l-3.652 2.233a.667.667 0 0 1-1.014-.569v-4.55c0-.52.57-.84 1.014-.569z"></path></svg>');function og(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=C5();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var T5=M('<div><span class="text svelte-1gi6268"> </span> <!></div>'),E5={hash:"svelte-1gi6268",code:".root.svelte-1gi6268 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:var(--white);display:flex;border-radius:100px;position:absolute;top:24px;left:50%;transform:translateX(-50%);transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden;opacity:0;pointer-events:none;}.root.visible.svelte-1gi6268 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1gi6268 {font-size:13px;line-height:16px;font-weight:600;}"};function ng(t,e){F(e,!0),W(t,E5);let{ui:{t:i}}=he();var o=T5();let r;var s=_(o),l=_(s,!0);g(s);var d=P(s,2);og(d,{}),g(o),D((a,u)=>{r=ne(o,1,"root svelte-1gi6268",null,r,a),ve(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),U()}var I5=M('<div class="container svelte-1k32wyl" role="button"><div class="icon svelte-1k32wyl"><!></div></div>'),k5={hash:"svelte-1k32wyl",code:".container.svelte-1k32wyl {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;background-color:rgba(0, 0, 0, 0.48);cursor:pointer;}.icon.svelte-1k32wyl {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;transition:transform 0.2s;transition-timing-function:ease-out;will-change:transform;}.container.svelte-1k32wyl:hover .icon:where(.svelte-1k32wyl) {transform:scale(1.15);}"};function rg(t,e){F(e,!1),W(t,k5);let o=he().actions.internal.closePreviewTrack,r=200,s=u=>{u.stopPropagation(),o()};jo();var l=I5();l.__click=s;var d=_(l),a=_(d);return lr(a,{width:"40",height:"40",viewBox:"0 0 24 24"}),g(d),g(l),jr(3,l,()=>ps,()=>({duration:r})),b(t,l),Cf(e,"handleClick",s),U({handleClick:s})}dt(["click"]);var A5=M('<div class="container svelte-17g9o6z"><div class="notification svelte-17g9o6z"><span class="text svelte-17g9o6z"> </span></div></div>'),P5={hash:"svelte-17g9o6z",code:`.container.svelte-17g9o6z {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
354
+ }`};function Lc(t,e){W(t,_5);let i=h(e,"isPrev",3,!1);var o=Ue(),r=pe(o);ys(r,()=>e.Icon,s=>{var l=h5(),d=_(l);Mi(d,()=>e.Icon,(a,u)=>{u(a,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return i()}})}),g(l),D(()=>tt(l,`animation-duration: ${e.duration}ms`)),b(s,l)}),b(t,o)}var tg=require("@vkontakte/videoplayer-core/es2018"),b5=M('<div class="container svelte-1sw36pi"><!></div>'),$5={hash:"svelte-1sw36pi",code:".container.svelte-1sw36pi {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}"};function ig(t,e){F(e,!0),W(t,$5);let[i,o]=Oe(),r=()=>S(a,"$playbackState$",i),s=()=>S(f,"$previewTrackActive",i),l=()=>S(v,"$previewTrackDragInProgress",i),d=()=>S(u,"$isPlaying$",i),{state:{playbackState$:a,isPlaying$:u},ui:{previewTrackActive:f,previewTrackDragInProgress:v}}=ge(),{features:{playbackStatusShow:p},playbackStatusAnimationDuration:y}=Rt(),w=0,x=Q(null),C=Q(!1);qe(()=>{r()===tg.PlaybackState.PLAYING?N(x,sr,!0):r()===tg.PlaybackState.PAUSED?N(x,As,!0):N(x,null)}),qe(()=>{if(!(!p||s()||l()))return w=window.setTimeout(()=>{w=0,N(x,null)},y),()=>{w&&(window.clearTimeout(w),w=0)}}),qe(()=>{d()&&!n(C)&&(N(C,!0),N(x,null))});var T=Ue(),E=pe(T);{var R=A=>{var I=b5(),O=_(I);Lc(O,{get duration(){return y},get Icon(){return n(x)}}),g(I),b(A,I)};V(E,A=>{n(x)&&p&&A(R)})}b(t,T),U(),o()}var y5=M('<div><div data-testid="video-container"></div></div>'),x5={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
355
+ .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Ja(t,e){F(e,!0),W(t,x5);let[i,o]=Oe(),r=()=>S(f,"$rotateAlpha",i),s=()=>S(v,"$playerSize",i),l=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),a=h(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=ge(),{isSmoothVideoRotate:y}=Rt(),w=m(()=>a()&&r()%180?s().height/s().width:1);var x=y5();let C;x.__contextmenu=function(...R){var A;(A=e.onContextMenu)==null||A.apply(this,R)},x.__mousedown=function(...R){var A;(A=e.onMouseDown)==null||A.apply(this,R)},x.__mouseup=function(...R){var A;(A=e.onMouseUp)==null||A.apply(this,R)},x.__click=function(...R){var A;(A=e.onClick)==null||A.apply(this,R)},x.__dblclick=function(...R){var A;(A=e.onDblClick)==null||A.apply(this,R)};var T=_(x);let E;at(T,R=>a(R),()=>a()),g(x),D((R,A)=>{C=ne(x,1,"video-wrapper svelte-1czns9r",null,C,R),E=ne(T,1,"video-container svelte-1czns9r",null,E,A),tt(T,`transform: rotate(${r()}deg) scale(${n(w)})`),Qe(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),b(t,x),U(),o()}ct(["contextmenu","mousedown","mouseup","click","dblclick"]);var w5=Ee('<svg><!><path fill="currentColor" d="M8 7.389V5.725c0-.52.57-.84 1.015-.569l3.721 2.275a.667.667 0 0 1 0 1.138l-3.721 2.275A.667.667 0 0 1 8 10.275V8.611l-3.652 2.233a.667.667 0 0 1-1.014-.569v-4.55c0-.52.57-.84 1.014-.569z"></path></svg>');function og(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=w5();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var S5=M('<div><span class="text svelte-1gi6268"> </span> <!></div>'),C5={hash:"svelte-1gi6268",code:".root.svelte-1gi6268 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:var(--white);display:flex;border-radius:100px;position:absolute;top:24px;left:50%;transform:translateX(-50%);transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden;opacity:0;pointer-events:none;}.root.visible.svelte-1gi6268 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1gi6268 {font-size:13px;line-height:16px;font-weight:600;}"};function ng(t,e){F(e,!0),W(t,C5);let{ui:{t:i}}=ge();var o=S5();let r;var s=_(o),l=_(s,!0);g(s);var d=P(s,2);og(d,{}),g(o),D((a,u)=>{r=ne(o,1,"root svelte-1gi6268",null,r,a),fe(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),U()}var T5=M('<div class="container svelte-1k32wyl" role="button"><div class="icon svelte-1k32wyl"><!></div></div>'),E5={hash:"svelte-1k32wyl",code:".container.svelte-1k32wyl {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;background-color:rgba(0, 0, 0, 0.48);cursor:pointer;}.icon.svelte-1k32wyl {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;transition:transform 0.2s;transition-timing-function:ease-out;will-change:transform;}.container.svelte-1k32wyl:hover .icon:where(.svelte-1k32wyl) {transform:scale(1.15);}"};function rg(t,e){F(e,!1),W(t,E5);let o=ge().actions.internal.closePreviewTrack,r=200,s=u=>{u.stopPropagation(),o()};Uo();var l=T5();l.__click=s;var d=_(l),a=_(d);return sr(a,{width:"40",height:"40",viewBox:"0 0 24 24"}),g(d),g(l),Wr(3,l,()=>us,()=>({duration:r})),b(t,l),Cf(e,"handleClick",s),U({handleClick:s})}ct(["click"]);var I5=M('<div class="container svelte-17g9o6z"><div class="notification svelte-17g9o6z"><span class="text svelte-17g9o6z"> </span></div></div>'),k5={hash:"svelte-17g9o6z",code:`.container.svelte-17g9o6z {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
356
356
  /**
357
357
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
358
- */pointer-events:none;}.notification.svelte-17g9o6z {padding:10px 16px;background-color:var(--black-alpha-40);border-radius:var(--notification-radius);}.text.svelte-17g9o6z {line-height:18px;font-size:14px;font-weight:500;}`};function sg(t,e){F(e,!1),W(t,P5);let{ui:{t:i}}=he();jo();var o=A5(),r=_(o),s=_(r),l=_(s,!0);g(s),g(r),g(o),D(d=>ve(l,d),[()=>i("preview_track_notification_text")],xn),jr(3,r,()=>ps,()=>({duration:340})),b(t,o),U()}var M5=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},L5=M("<div><!></div>"),V5=M('<div class="spherical-video-icon svelte-nqua3g"><!></div>'),R5=M("<div><!></div>"),N5=M('<div class="settings-menu svelte-nqua3g"><!></div>'),O5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),D5=M("<!> <!> <!>",1),B5=M('<div class="blocked svelte-nqua3g"></div>'),H5=M('<div class="player-wrapper svelte-nqua3g"><!> <div class="overlay-container"></div></div> <!>',1),F5={hash:"svelte-nqua3g",code:".player-wrapper.svelte-nqua3g {position:absolute;width:100%;height:100%;}.blocked.svelte-nqua3g {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-nqua3g .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-nqua3g {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-nqua3g {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-nqua3g {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-nqua3g {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s;}"};function lg(t,e){F(e,!0),W(t,F5);let[i,o]=De(),r=()=>S(pi,"$notificationsToShow$",i),s=()=>S(di,"$playerPhase",i),l=()=>S(yo,"$isLoaderVisible",i),d=()=>S(yi,"$adPlaybackState",i),a=()=>S(ii,"$crashed",i),u=()=>S(so,"$isInteractiveTime$",i),f=()=>S(Tt,"$settingsMenuVisible",i),v=()=>S(Ui,"$isInteractiveExpectation$",i),p=()=>S(jt,"$controlsVisible",i),y=()=>S(fo,"$touched",i),w=()=>S(Ir,"$graphIsOpened$",i),x=()=>S(gt,"$isFullscreen",i),C=()=>S(fs,"$autoplayNextEnabled$",i),T=()=>S(Ht,"$postrollPassed",i),E=()=>S(Zo,"$isEnded$",i),R=()=>S(go,"$cursorInside",i),A=()=>S(xo,"$isControlsAvailable",i),I=()=>S(No,"$doubleForwardOn$",i),O=()=>S(Tr,"$fakeIsPlaying$",i),H=()=>S(Ln,"$bottomNoSmooth",i),B=()=>S(Ro,"$interactiveTimeIndicator",i),z=()=>S(Vi,"$playerSize",i),Z=()=>S(Fi,"$is3DVideo",i),ae=()=>S(un,"$doubleForwardAvailable$",i),q=()=>S(je,"$contextMenuVisible$",i),de=()=>S(fi,"$playbackState$",i),X=()=>S(vo,"$hotKeyMapData",i),fe=()=>S(Yt,"$scrubbingInProgress",i),re=()=>S(St,"$volumeChangingInProgress",i),le=()=>S(dn,"$chromecastConnected$",i),Me=()=>S(Do,"$controlsTimeoutActive",i),we=()=>S(oi,"$settingsMenuOpenedByKeyboard",i),te=()=>S(Br,"$contextMenuOpenedByKeyboard$",i),Ne=()=>S(Xt,"$contextMenuOpenedByHotKey$",i),ue=()=>S(is,"$contextMenuButtonRef$",i),k=()=>S(gi,"$contextMenuLastActiveElem$",i),Ke=()=>S(ki,"$isFullscreenOpenedByKeyboard",i),Ve=()=>S(ni,"$language$",i),Y=()=>S(bn,"$previewTrackActive$",i),oe=()=>S(Xo,"$icon3DVideoVisible",i),Be=()=>S(kt,"$chromecastDeviceName$",i),Ze=()=>S(Gt,"$currentSubtitle$",i),me=()=>S(pt,"$currentSubtitleCaptions$",i),J=()=>S(ro,"$position$",i),Ie=()=>S(po,"$duration$",i),ge=()=>S(K,"$isLive$",i),Fe=()=>S(Vt,"$isPlaying$",i),Xe=()=>S(ur,"$contextMenuPosition$",i),Ge=()=>S(kn,"$previewTrackNotificationVisible$",i),ct=()=>S(Ri,"$showHotKeyMap",i),et=()=>S(xi,"$debugPanelVisible",i),Bt=()=>S(ts,"$userActionsDisabled$",i),rt=h(e,"videoContainer",15),Dt=h(e,"adsSlotId",3,void 0),qt=h(e,"adsParams",3,void 0),Et=h(e,"adsAutoplayParam",3,void 0),ei=h(e,"duration",3,void 0),Wt=h(e,"logoTargetUrl",3,""),Se=h(e,"showNextPrevButtons",3,!1),xe=h(e,"nextButtonActive",3,!1),ee=h(e,"prevButtonActive",3,!1),Ce=h(e,"endScreenVideoTitle",3,void 0),Pe=h(e,"endScreenVideoThumb",3,void 0),It=h(e,"isOneVideoPlaylist",3,!1),Oe=h(e,"shadowRootContainer",3,void 0),ut=h(e,"outerContainerRef",3,void 0),yt=h(e,"playerStarted",3,!1),ye=h(e,"fullScreenTarget",3,void 0),ot=h(e,"showMiniTimer",3,!1),qe=h(e,"showEndScreen",3,!0),lt=h(e,"keyboardControls",15),ti=e.store.getLogger().createComponentLog("Root component"),ni=e.store.interfaceLanguage$,fi=e.store.state.playbackState$,yi=e.store.ads.playbackState,ro=e.store.state.positionWithScrubbing$,po=e.store.state.duration$,di=e.store.playerPhase,gt=e.store.ui.isFullscreen,ki=e.store.ui.isFullscreenOpenedByKeyboard,jt=e.store.ui.controlsVisible,Tt=e.store.ui.settingsMenu.visible$,oi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Yt=e.store.ui.scrubbingInProgress,St=e.store.ui.volumeChangingInProgress,je=e.store.ui.contextMenu.visible$,xi=e.store.ui.debugPanelVisible,yo=e.store.state.isLoaderVisible,Zo=e.store.state.isEnded$,dn=e.store.state.chromecastConnected$,kt=e.store.state.chromecastDeviceName$,Ht=e.store.ads.postrollPassed,K=e.store.state.isLive$,Vt=e.store.state.isPlaying$,ii=e.store.state.crashed$,vt=e.store.webApi.annotationsApi,At=e.store.webApi.pictureInPictureApi,Gt=e.store.state.currentSubtitle$,pt=e.store.state.currentSubtitleCaptions$,Vi=e.store.ui.playerSize,Fi=e.store.ui.is3DVideo,Xo=e.store.ui.icon3DVideoVisible,Vo=e.store.state.isInteractive,so=e.store.state.isInteractiveTime$,Ui=e.store.state.isInteractiveExpectation$,dr=e.store.state.hasInteractiveBranches,fo=e.store.ui.touched,vo=e.store.ui.modals.hotKeyMap.data,Ri=e.store.ui.modals.hotKeyMap.show,cn=e.store.ui.overlayContainer$,Ro=e.store.ui.controls.interactiveTimeIndicator,cr=e.store.state.showInteractiveTimeIndicator,ur=e.store.ui.contextMenu.position$,Sr=e.store.actions.internal.setQuality,es=e.store.actions.internal.closeSettingsMenu,fs=e.store.ui.autoplayNextEnabled$,ts=e.store.ui.userActionsDisabled,xo=e.store.ui.isControlsAvailable,Wn=e.store.ui.videoTitleInfo,No=e.store.ui.doubleForwardOn$,un=e.store.ui.doubleForwardAvailable$,kn=e.store.ui.previewTrackNotificationVisible,pr=e.store.actions.internal.getVideoElement,Cr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Tr,notifications$:Er,graphIsOpened$:Ir}=$o(),ji=Q(void 0),kr=Q(void 0),An=Q(void 0),pn=Q(void 0),mo,fr,Pn;vo.set(r0());let{closeNotification:ht,notificationsToShow$:pi}=Er,Ar=m(()=>!!r().slow_video),Kn=()=>ht("slow_video"),Pr=m(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),Mn=Q(void 0),Ln=se(!1),Oo,Do=se(!1),fn=se(),go=se(!1),Bo=Q(!1),Jo=Q(!1),vr=Q(!1),Mr=Q(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),vn=m(()=>u()&&!f()&&!(n(Bo)||n(Jo))&&!(n(vr)&&!v())),zi=!0,mr=m(()=>e.uiConfig.features.thumbTimer&&ot()&&s()==="video"&&!p()&&!a()&&!Vo&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Lr=m(()=>s()==="video"&&!w()&&x()),Vn=Q(!1),qn=m(()=>(qe()||e.showAutoplayNext&&C())&&!!Ce()&&!!Pe()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!n(Vn)),Vr=m(()=>R()&&!(p()||n(qn))&&!u()&&A()&&!I()),Qn=Q(!1),it=m(()=>O()!==null),{toggle:ri}=Tr,Ni=!1,Oi=null;At==null||At.setContext(hd());let mn=()=>{e.autoplay&&!Vo&&e.uiConfig.controls.showOnStartupAtAutoplay&&vi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:mn});let wo=()=>{window.clearTimeout(mo),Do.set(!1)},So=()=>{window.clearTimeout(fr),fn.set(null)},vi=$e=>{wo(),Do.set(!0),mo=window.setTimeout(()=>Do.set(!1),$e);let mt=$e-100;Oo=window.setTimeout(()=>{H()&&Ln.set(!1)},mt>0?mt:$e)},Rn=($e,mt)=>{So(),fn.set(mt),fr=window.setTimeout(()=>fn.set(null),$e)},ho=Fi.subscribe($e=>{Xo.set($e),$e&&(window.clearTimeout(Pn),Pn=window.setTimeout(()=>Xo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Gn=async()=>{var mt,si,Si,ui;let $e=Gs();if($e){let Jt=Kd(),Ei=Nr();$e=Jt===Ei||Jt===Oe()}if($e){vi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(At==null?void 0:At.exit())}catch(Jt){ti({message:String(Jt)})}}gt.set($e),e.store.getAdmanWrapper().setFullscreen($e),x()?(si=(mt=e.store.callbacks)==null?void 0:mt.onFullscreenEnter)==null||si.call(mt):(ui=(Si=e.store.callbacks)==null?void 0:Si.onFullscreenExit)==null||ui.call(Si)},jn=$e=>{let{width:mt,height:si}=$e.target;Vi.set({width:mt,height:si})},Rr=()=>{let{width:$e,height:mt}=n(ji).getBoundingClientRect();Vi.set({width:$e,height:mt})};Ot(()=>{var mt;return zu(Gn),e.uiConfig.features.annotationsInside&&(vt==null||vt.init(n(ji))),Va(At)&&(At==null||At.assignPlayerContainer(n(ji)),At==null||At.setExternalEventHandlers({resize:jn,leavepictureinpicture:Rr})),e.interactiveContainer&&((mt=rt().parentElement)==null||mt.insertBefore(e.interactiveContainer,rt().nextSibling)),()=>{window.clearTimeout(mo),window.clearTimeout(Oo),window.clearTimeout(fr),window.clearTimeout(Pn),ho(),At==null||At.dispose().catch(si=>{ti({message:String(si)})}),Wu(Gn)}});let Nr=()=>{let $e=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ut()?n(ji):ut(),mt=$e.getRootNode(),si=mt instanceof ShadowRoot?mt.host:mt,Si=ye()instanceof HTMLElement&&ye().contains(si);return e.uiConfig.allowChangingFullscreenTarget&&ye()&&Si?ye():$e},gn=()=>{je.set(!1)},hn=()=>{es(),gn()},gr=async()=>{if(!Cr()){ti({message:"fullscreen disabled"});return}gn(),Gs()?(await Uu(document),ti({message:"exit fullscreen"})):(ti({message:"request fullscreen"}),await Fu(Nr()))},_n=$e=>{w()||($e.preventDefault(),je.set(!0),ur.set({left:$e.clientX,top:$e.clientY}))};function Or(){go.set(!0),Vo||vi(e.uiConfig.controls.hideTimeoutCursor)}function tt($e){var ui,Jt;let{relatedTarget:mt}=$e,Si=!!(mt&&((ui=n(An))!=null&&ui.contains(mt)))&&((Jt=lt())==null?void 0:Jt.isFocused());!Vo&&!Si&&(Ln.set(!0),vi(e.uiConfig.controls.hideTimeoutCursor))}function Mt(){go.set(!1),N(Jo,!1),N(Bo,!1),Ni=!1,e.store.actions.internal.releaseCamera(),vi(e.uiConfig.controls.hideTimeout),I()&&Fo()}function wi($e){return $e?$e.offsetTop+wi($e.offsetParent):0}function _o($e){return $e?$e.offsetLeft+_o($e.offsetParent):0}function Ho($e){if(B()&&cr){let mt=$e.currentTarget,si=wi(mt),Si=_o(mt),ui=$e.pageX-Si,Jt=$e.pageY-si,{left:Ei,bottom:yn,right:on}=B(),Pi=on-Ei;return ui>=Ei-Pi&&Jt<=yn+Pi}}function Co($e){if(n(ji)){let mt=wi($e.currentTarget),si=z().height,Si=$e.pageY-mt;if(Ho($e)){N(Jo,!1);return}Si<40?N(Jo,!0):Si>si-40?N(Bo,!0):(N(Jo,!1),f()||N(Bo,!1))}}function Yi($e){Co($e),!n(vn)&&!I()&&vi(e.uiConfig.controls.hideTimeoutCursor),Z()&&Ni&&Oi&&e.store.actions.internal.moveCameraFocusPX(Oi.clientX-$e.clientX,Oi.clientY-$e.clientY,$e.timeStamp-Oi.timeStamp),Oi=$e}let Ai=null,en=()=>{Ai=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),wo()},e.uiConfig.doubleForwardActivationTime)},Fo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Ai&&clearTimeout(Ai),Ai=null},To=$e=>{$e.preventDefault(),$e.button===0&&(Ni=!0,e.store.actions.internal.holdCamera(),ae()&&en()),!Ni&&vi(e.uiConfig.controls.hideTimeoutCursor)},Zi=$e=>{$e.preventDefault(),$e.button===0&&(Oi=$e,Ni=!1,e.store.actions.internal.releaseCamera()),!I()&&vi(e.uiConfig.controls.hideTimeoutCursor)},Dr=$e=>{$e.preventDefault(),zi&&(ti({message:"double click on video"}),gr(),vi(e.uiConfig.controls.hideTimeoutCursor))},Yn=$e=>{var mt;if($e.preventDefault(),I()){Fo();return}if(Ai&&Fo(),q()||f()){hn();return}if(!(E()&&!dr)){if(n(it))return ri();if((mt=lt())==null||mt.focus(),!yt()){e.firstStart(),vi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||de()!==ag.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),vi(e.uiConfig.controls.hideTimeoutCursor)}},Zn=$e=>{hn(),fo.set(!0),vi(e.uiConfig.controls.hideTimeout),$e&&Rn(e.uiConfig.controls.hideHotKeyHelpers,$e)},hr=()=>{var $e,mt;hn(),($e=e.store.callbacks)!=null&&$e.onOpenHotKeyMap?(mt=e.store.callbacks)==null||mt.onOpenHotKeyMap(X()):Ri.update(si=>!si)},vs=()=>{fo.set(!0)},Br=e.store.ui.contextMenu.openedByBtnKeyboard$,is=e.store.ui.contextMenu.btnRef$,Qe=Q(void 0),Xt=e.store.ui.contextMenu.openedByHotKey$,gi=e.store.ui.contextMenu.lastActiveElem$,bn=e.store.ui.previewTrackActive;ze(()=>{cn.set(n(Mn))}),ze(()=>{N(vr,n(Mr)&&de()!==ag.PlaybackState.PLAYING,!0),n(Mr)||Pt(()=>N(Mr,!0))}),ze(()=>{var mt,si;let $e=(n(vr)||E()||f()||fe()||re()||le()||Me())&&!n(vn)&&(s()==="video"||s()==="ads")&&!a()&&A();jt.set($e),!$e&&!Me()&&e.uiConfig.returnFocusOnControlsHide&&((mt=n(An))!=null&&mt.contains(Yu()))&&((si=lt())==null||si.focus())}),ze(()=>{!fe()&&n(Qn)&&!u()&&vi(e.uiConfig.controls.hideTimeoutCursor),Pt(()=>N(Qn,fe(),!0))}),ze(()=>{n(pn),f(),we(),Pt(()=>Xd(n(pn),f(),we()))}),ze(()=>{n(Qe),q(),te(),Ne(),Pt(()=>{let $e=te()||Ne();Xd(n(Qe),q(),$e)})}),ze(()=>{let $e=ue();$e&&(q(),Pt(()=>Hl($e,q(),Br)))}),ze(()=>{let $e=k();$e&&(q(),Pt(()=>c0($e,q(),Xt)))}),ze(()=>{var $e;!Ke()&&x()&&(Pt(()=>ki.set(!1)),($e=lt())==null||$e.focus())}),ze(()=>{w()&&hn()});let Uo=j("video360"),Hr=Q(void 0),tn=$e=>{Wn.set(Un(pr(),{title:n(Hr)},"title",$e))},Fr=($e,mt)=>{var Jt,Ei;let si=(Ei=(Jt=e.store.callbacks)==null?void 0:Jt.uiInfo)==null?void 0:Ei.onUpcomingLiveViewStateChanged;if(!si)return;let Si=!!mt,ui={...Un(n(ji),{upcomingLiveScreen:mt},"upcomingLiveScreen",Si),...$e};si(ui)};var Rs=H5();Ct("blur",ba,hn);var Xi=pe(Rs);Xi.__mousemove=Yi;var Ur=_(Xi);let oa=m(()=>s()==="ads"),_t=m(()=>n(it)?ri:void 0);at(pv(Ur,{startDoubleForwardActivationTimer:en,stopDoubleForward:Fo,toggleFullscreen:gr,hideContextMenu:hn,showHotKeyHelpers:Zn,showKeyMap:hr,get isAds(){return n(oa)},get fakePlayButtonHandler(){return n(_t)},get nextButtonActive(){return xe()},get prevButtonActive(){return ee()},children:($e,mt)=>{var si=D5(),Si=pe(si);el(Si,{get hideCursor(){return n(Vr)},onClick:Yn,onContextMenu:_n,onMouseDown:To,onMouseUp:Zi,onDblClick:Dr,get videoContainer(){return rt()},set videoContainer(Ei){rt(Ei)}});var ui=P(Si,2);Ca(ui,()=>"slot",!1,(Ei,yn)=>{ke(Ei,()=>({name:Ja}))});var Jt=P(ui,2);ws(Jt,Ve,Ei=>{var yn=O5(),on=pe(yn);let Pi=m(()=>s()!=="thumb"||a()||Vo&&e.autoplay);Ya(on,{get hidden(){return n(Pi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:_n,onClick:gn});var ol=P(on,2);{var na=Ue=>{rg(Ue,{})};V(ol,Ue=>{Y()&&Ue(na)})}var ra=P(ol,2);ig(ra,{});var sa=P(ra,2);ng(sa,{get isVisible(){return I()}});var Xn=P(sa,2);{var ms=Ue=>{let _i=m(()=>{var ao;return(ao=e.live)==null?void 0:ao.startTime});Ec(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(_i)},onUpcomingLiveViewStateChanged:Fr,onContextMenu:_n,onClick:gn})};V(Xn,Ue=>{s()==="LiveWaitingStart"&&Ue(ms)})}var aa=P(Xn,2);{var _r=Ue=>{Za(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:_n,onClick:gn})};V(aa,Ue=>{s()==="LiveWaitingRecover"&&Ue(_r)})}var nl=P(aa,2);{var gs=Ue=>{Za(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:_n,onClick:gn})};V(nl,Ue=>{s()==="LiveWaitingRecord"&&Ue(gs)})}var hs=P(nl,2);{var rl=Ue=>{var _i=L5();let ao;var ua=_(_i);Qd(ua,{get adsSlotId(){return Dt()},get adsParams(){return qt()},get adsAutoplayParam(){return Et()},get duration(){return ei()},get adsExternalApi(){return e.adsExternalApi}}),g(_i),D(nn=>ao=ne(_i,1,"ads-container svelte-nqua3g",null,ao,nn),[()=>({hidden:s()!=="ads"})]),b(Ue,_i)};V(hs,Ue=>{e.showAds&&yt()&&Ue(rl)})}var la=P(hs,2);{var ld=Ue=>{let _i=m(()=>!qe()&&e.showAutoplayNext&&C());dv(Ue,{get title(){return Ce()},get thumb(){return Pe()},get isHide(){return n(_i)},clickCloseIcon:()=>N(Vn,!0)})};V(la,Ue=>{n(qn)&&Ce()&&Pe()&&Ue(ld)})}var sl=P(la,2);{var dd=Ue=>{let _i=m(()=>!p());km(Ue,{get title(){return e.title},get isHidden(){return n(_i)},onVisibilityChanged:tn,get ref(){return n(Hr)},set ref(ao){N(Hr,ao,!0)}})};V(sl,Ue=>{n(Lr)&&Ue(dd)})}var Jn=P(sl,2);{var cd=Ue=>{let _i=m(()=>s()==="video"&&p());Cc(Ue,{get isShifted(){return n(_i)}})};V(Jn,Ue=>{Z()&&Ue(cd)})}var al=P(Jn,2);{var ll=Ue=>{var _i=V5(),ao=_(_i);Wd(ao,{get"aria-label"(){return Uo}}),g(_i),b(Ue,_i)};V(al,Ue=>{oe()&&Ue(ll)})}var da=P(al,2);{var bt=Ue=>{Tc(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Be()}})};V(da,Ue=>{le()&&Ue(bt)})}var $t=P(da,2);{var Ji=Ue=>{Ga(Ue,{get shifted(){return p()},get captions(){return me()},get position(){return J()},get playerSize(){return z()}})};V($t,Ue=>{Ze().value!=="off"&&Ue(Ji)})}var Eo=P($t,2);{var eo=Ue=>{var _i=R5();_i.__contextmenu=_n,_i.__click=[M5,q,je,f,Tt,hn];var ao=_(_i);ja(ao,{}),g(_i),b(Ue,_i)};V(Eo,Ue=>{a()&&Ue(eo)})}var hi=P(Eo,2);{var Wi=Ue=>{let _i=m(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),ao=m(()=>s()==="ads"),ua=m(()=>e.canRewindLive&&Ie()!==0);Sc(Ue,{get bottomHidden(){return n(_i)},get bottomNoSmooth(){return H()},get showControls(){return p()},get isAds(){return n(ao)},get canRewindLive(){return n(ua)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Wt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Se()},get nextButtonActive(){return xe()},get prevButtonActive(){return ee()},get isOneVideoPlaylist(){return It()},customFullscreenSupported:zi,toggleFullscreen:gr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(kr)},set playerControlsWrapperRef(nn){N(kr,nn,!0)},get playerControlsRef(){return n(An)},set playerControlsRef(nn){N(An,nn,!0)}})};V(hi,Ue=>{yt()&&Ue(Wi)})}var Ns=P(hi,2);{var ud=Ue=>{var _i=N5(),ao=_(_i);let ua=m(()=>{var nn;return(nn=n(An))==null?void 0:nn.clientHeight});Pc(ao,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(ua)},returnFocus:()=>{var nn;return(nn=lt())==null?void 0:nn.focus()},get ref(){return n(pn)},set ref(nn){N(pn,nn,!0)}}),g(_i),b(Ue,_i)};V(Ns,Ue=>{!le()&&s()!=="ads"&&Ue(ud)})}var Kc=P(Ns,2);let Mp=m(()=>!n(mr));Yd(Kc,{get isLive(){return ge()},get isHidden(){return n(Mp)},get isPlaying(){return Fe()},get position(){return J()},get duration(){return Ie()}});var ca=P(Kc,2);Cm(ca,{get data(){return fn}});var qc=P(ca,2);av(qc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ue;return(Ue=lt())==null?void 0:Ue.focus()},get visible(){return q()},get playerContainerRef(){return n(ji)},get position(){return Xe()},get menuElementRef(){return n(Qe)},set menuElementRef(Ue){N(Qe,Ue,!0)}});var Os=P(qc,2);{var dl=Ue=>{Mc(Ue,{onClose:Kn,onSelectAutoQuality:()=>{Sr("auto"),Kn()}})};V(Os,Ue=>{n(Ar)&&Ue(dl)})}var Qc=P(Os,2);{var Gc=Ue=>{sg(Ue,{})};V(Qc,Ue=>{Ge()&&Ue(Gc)})}var cl=P(Qc,2);{var jc=Ue=>{Da(Ue,{})};V(cl,Ue=>{n(Pr)&&Ue(jc)})}var Yc=P(cl,2);{var Zc=Ue=>{mv(Ue,{})};V(Yc,Ue=>{ct()&&Ue(Zc)})}var Lp=P(Yc,2);{var Vp=Ue=>{ec(Ue,{})};V(Lp,Ue=>{et()&&Ue(Vp)})}b(Ei,yn)}),b($e,si)},$$slots:{default:!0}}),$e=>lt($e),()=>lt());var ci=P(Ur,2);at(ci,$e=>N(Mn,$e),()=>n(Mn)),g(Xi),at(Xi,$e=>N(ji,$e),()=>n(ji));var bo=P(Xi,2);{var $n=$e=>{var mt=B5();b($e,mt)};V(bo,$e=>{Bt()&&$e($n)})}Ct("mouseenter",Xi,Or),Ct("mouseleave",Xi,Mt),Ct("click",Xi,vs,!0),Ct("focusin",Xi,tt,!0),b(t,Rs),U(),o()}dt(["mousemove","contextmenu","click"]);var ia=require("@vkontakte/videoplayer-core/es2018"),m_=require("@vkontakte/videoplayer-shared/es2018");var U5=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),z5=M("<div><!></div>"),W5={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;
358
+ */pointer-events:none;}.notification.svelte-17g9o6z {padding:10px 16px;background-color:var(--black-alpha-40);border-radius:var(--notification-radius);}.text.svelte-17g9o6z {line-height:18px;font-size:14px;font-weight:500;}`};function sg(t,e){F(e,!1),W(t,k5);let{ui:{t:i}}=ge();Uo();var o=I5(),r=_(o),s=_(r),l=_(s,!0);g(s),g(r),g(o),D(d=>fe(l,d),[()=>i("preview_track_notification_text")],wn),Wr(3,r,()=>us,()=>({duration:340})),b(t,o),U()}var A5=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},P5=M("<div><!></div>"),M5=M('<div class="spherical-video-icon svelte-nqua3g"><!></div>'),L5=M("<div><!></div>"),V5=M('<div class="settings-menu svelte-nqua3g"><!></div>'),R5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),N5=M("<!> <!> <!>",1),O5=M('<div class="blocked svelte-nqua3g"></div>'),D5=M('<div class="player-wrapper svelte-nqua3g"><!> <div class="overlay-container"></div></div> <!>',1),B5={hash:"svelte-nqua3g",code:".player-wrapper.svelte-nqua3g {position:absolute;width:100%;height:100%;}.blocked.svelte-nqua3g {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-nqua3g .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-nqua3g {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-nqua3g {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-nqua3g {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-nqua3g {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s;}"};function lg(t,e){F(e,!0),W(t,B5);let[i,o]=Oe(),r=()=>S(vi,"$notificationsToShow$",i),s=()=>S(di,"$playerPhase",i),l=()=>S(yo,"$isLoaderVisible",i),d=()=>S(yi,"$adPlaybackState",i),a=()=>S(ii,"$crashed",i),u=()=>S(ro,"$isInteractiveTime$",i),f=()=>S($t,"$settingsMenuVisible",i),v=()=>S(Ui,"$isInteractiveExpectation$",i),p=()=>S(li,"$controlsVisible",i),y=()=>S(ho,"$touched",i),w=()=>S(fr,"$graphIsOpened$",i),x=()=>S(gt,"$isFullscreen",i),C=()=>S(fs,"$autoplayNextEnabled$",i),T=()=>S(Ht,"$postrollPassed",i),E=()=>S(Wo,"$isEnded$",i),R=()=>S(Gn,"$cursorInside",i),A=()=>S(dn,"$isControlsAvailable",i),I=()=>S(Go,"$doubleForwardOn$",i),O=()=>S(pr,"$fakeIsPlaying$",i),H=()=>S(Mn,"$bottomNoSmooth",i),B=()=>S(Qo,"$interactiveTimeIndicator",i),z=()=>S(Hi,"$playerSize",i),Z=()=>S(Fi,"$is3DVideo",i),se=()=>S(jo,"$doubleForwardAvailable$",i),q=()=>S(Je,"$contextMenuVisible$",i),de=()=>S(pi,"$playbackState$",i),X=()=>S(so,"$hotKeyMapData",i),ve=()=>S(Yt,"$scrubbingInProgress",i),re=()=>S(wt,"$volumeChangingInProgress",i),ae=()=>S(an,"$chromecastConnected$",i),Ae=()=>S(Wi,"$controlsTimeoutActive",i),$e=()=>S(fi,"$settingsMenuOpenedByKeyboard",i),J=()=>S(Rr,"$contextMenuOpenedByKeyboard$",i),De=()=>S(ei,"$contextMenuOpenedByHotKey$",i),ue=()=>S(ts,"$contextMenuButtonRef$",i),k=()=>S(ki,"$contextMenuLastActiveElem$",i),Ge=()=>S(bi,"$isFullscreenOpenedByKeyboard",i),Pe=()=>S(_i,"$language$",i),j=()=>S(_n,"$previewTrackActive$",i),ie=()=>S(Ko,"$icon3DVideoVisible",i),Be=()=>S(It,"$chromecastDeviceName$",i),Ze=()=>S(jt,"$currentSubtitle$",i),me=()=>S(pt,"$currentSubtitleCaptions$",i),te=()=>S(oo,"$position$",i),Ie=()=>S(no,"$duration$",i),xe=()=>S(K,"$isLive$",i),He=()=>S(kt,"$isPlaying$",i),Xe=()=>S(lr,"$contextMenuPosition$",i),je=()=>S(cr,"$previewTrackNotificationVisible$",i),Ke=()=>S(zi,"$showHotKeyMap",i),Ye=()=>S(Ti,"$debugPanelVisible",i),Dt=()=>S(ln,"$userActionsDisabled$",i),rt=h(e,"videoContainer",15),Bt=h(e,"adsSlotId",3,void 0),qt=h(e,"adsParams",3,void 0),Et=h(e,"adsAutoplayParam",3,void 0),Jt=h(e,"duration",3,void 0),Wt=h(e,"logoTargetUrl",3,""),Se=h(e,"showNextPrevButtons",3,!1),ye=h(e,"nextButtonActive",3,!1),ee=h(e,"prevButtonActive",3,!1),Ce=h(e,"endScreenVideoTitle",3,void 0),Le=h(e,"endScreenVideoThumb",3,void 0),Mt=h(e,"isOneVideoPlaylist",3,!1),Ve=h(e,"shadowRootContainer",3,void 0),lt=h(e,"outerContainerRef",3,void 0),Tt=h(e,"playerStarted",3,!1),we=h(e,"fullScreenTarget",3,void 0),st=h(e,"showMiniTimer",3,!1),ze=h(e,"showEndScreen",3,!0),ut=h(e,"keyboardControls",15),Qt=e.store.getLogger().createComponentLog("Root component"),_i=e.store.interfaceLanguage$,pi=e.store.state.playbackState$,yi=e.store.ads.playbackState,oo=e.store.state.positionWithScrubbing$,no=e.store.state.duration$,di=e.store.playerPhase,gt=e.store.ui.isFullscreen,bi=e.store.ui.isFullscreenOpenedByKeyboard,li=e.store.ui.controlsVisible,$t=e.store.ui.settingsMenu.visible$,fi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Yt=e.store.ui.scrubbingInProgress,wt=e.store.ui.volumeChangingInProgress,Je=e.store.ui.contextMenu.visible$,Ti=e.store.ui.debugPanelVisible,yo=e.store.state.isLoaderVisible,Wo=e.store.state.isEnded$,an=e.store.state.chromecastConnected$,It=e.store.state.chromecastDeviceName$,Ht=e.store.ads.postrollPassed,K=e.store.state.isLive$,kt=e.store.state.isPlaying$,ii=e.store.state.crashed$,ht=e.store.webApi.annotationsApi,At=e.store.webApi.pictureInPictureApi,jt=e.store.state.currentSubtitle$,pt=e.store.state.currentSubtitleCaptions$,Hi=e.store.ui.playerSize,Fi=e.store.ui.is3DVideo,Ko=e.store.ui.icon3DVideoVisible,xo=e.store.state.isInteractive,ro=e.store.state.isInteractiveTime$,Ui=e.store.state.isInteractiveExpectation$,kr=e.store.state.hasInteractiveBranches,ho=e.store.ui.touched,so=e.store.ui.modals.hotKeyMap.data,zi=e.store.ui.modals.hotKeyMap.show,qo=e.store.ui.overlayContainer$,Qo=e.store.ui.controls.interactiveTimeIndicator,ar=e.store.state.showInteractiveTimeIndicator,lr=e.store.ui.contextMenu.position$,dr=e.store.actions.internal.setQuality,ps=e.store.actions.internal.closeSettingsMenu,fs=e.store.ui.autoplayNextEnabled$,ln=e.store.ui.userActionsDisabled,dn=e.store.ui.isControlsAvailable,qn=e.store.ui.videoTitleInfo,Go=e.store.ui.doubleForwardOn$,jo=e.store.ui.doubleForwardAvailable$,cr=e.store.ui.previewTrackNotificationVisible,ur=e.store.actions.internal.getVideoElement,Ar=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:pr,notifications$:jr,graphIsOpened$:fr}=$o(),ao=Q(void 0),vr=Q(void 0),An=Q(void 0),Pn=Q(void 0),lo,mr,Yo;so.set(r0());let{closeNotification:yt,notificationsToShow$:vi}=jr,gr=m(()=>!!r().slow_video),Qn=()=>yt("slow_video"),Yr=m(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),Zo=Q(void 0),Mn=le(!1),Ii,Wi=le(!1),Xo=le(),Gn=le(!1),cn=Q(!1),un=Q(!1),jn=Q(!1),pn=Q(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Ln=m(()=>u()&&!f()&&!(n(cn)||n(un))&&!(n(jn)&&!v())),wo=!0,hr=m(()=>e.uiConfig.features.thumbTimer&&st()&&s()==="video"&&!p()&&!a()&&!xo&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Pr=m(()=>s()==="video"&&!w()&&x()),Vn=Q(!1),Rn=m(()=>(ze()||e.showAutoplayNext&&C())&&!!Ce()&&!!Le()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!n(Vn)),Mr=m(()=>R()&&!(p()||n(Rn))&&!u()&&A()&&!I()),_r=Q(!1),ot=m(()=>O()!==null),{toggle:ni}=pr,Vi=!1,Ri=null;At==null||At.setContext(gd());let fn=()=>{e.autoplay&&!xo&&e.uiConfig.controls.showOnStartupAtAutoplay&&Zt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:fn});let So=()=>{window.clearTimeout(lo),Wi.set(!1)},co=()=>{window.clearTimeout(mr),Xo.set(null)},Zt=he=>{So(),Wi.set(!0),lo=window.setTimeout(()=>Wi.set(!1),he);let vt=he-100;Ii=window.setTimeout(()=>{H()&&Mn.set(!1)},vt>0?vt:he)},Nn=(he,vt)=>{co(),Xo.set(vt),mr=window.setTimeout(()=>Xo.set(null),he)},Jo=Fi.subscribe(he=>{Ko.set(he),he&&(window.clearTimeout(Yo),Yo=window.setTimeout(()=>Ko.set(!1),e.uiConfig.controls.hide360IconTimeout))}),br=async()=>{var vt,ri,wi,ci;let he=qs();if(he){let oi=Wd(),Si=Jr();he=oi===Si||oi===Ve()}if(he){Zt(e.uiConfig.controls.hideTimeoutFullscreen);try{await(At==null?void 0:At.exit())}catch(oi){Qt({message:String(oi)})}}gt.set(he),e.store.getAdmanWrapper().setFullscreen(he),x()?(ri=(vt=e.store.callbacks)==null?void 0:vt.onFullscreenEnter)==null||ri.call(vt):(ci=(wi=e.store.callbacks)==null?void 0:wi.onFullscreenExit)==null||ci.call(wi)},Zr=he=>{let{width:vt,height:ri}=he.target;Hi.set({width:vt,height:ri})},Xr=()=>{let{width:he,height:vt}=n(ao).getBoundingClientRect();Hi.set({width:he,height:vt})};Ot(()=>{var vt;return Fu(br),e.uiConfig.features.annotationsInside&&(ht==null||ht.init(n(ao))),La(At)&&(At==null||At.assignPlayerContainer(n(ao)),At==null||At.setExternalEventHandlers({resize:Zr,leavepictureinpicture:Xr})),e.interactiveContainer&&((vt=rt().parentElement)==null||vt.insertBefore(e.interactiveContainer,rt().nextSibling)),()=>{window.clearTimeout(lo),window.clearTimeout(Ii),window.clearTimeout(mr),window.clearTimeout(Yo),Jo(),At==null||At.dispose().catch(ri=>{Qt({message:String(ri)})}),Uu(br)}});let Jr=()=>{let he=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!lt()?n(ao):lt(),vt=he.getRootNode(),ri=vt instanceof ShadowRoot?vt.host:vt,wi=we()instanceof HTMLElement&&we().contains(ri);return e.uiConfig.allowChangingFullscreenTarget&&we()&&wi?we():he},vn=()=>{Je.set(!1)},mn=()=>{ps(),vn()},$r=async()=>{if(!Ar()){Qt({message:"fullscreen disabled"});return}vn(),qs()?(await Hu(document),Qt({message:"exit fullscreen"})):(Qt({message:"request fullscreen"}),await Bu(Jr()))},gn=he=>{w()||(he.preventDefault(),Je.set(!0),lr.set({left:he.clientX,top:he.clientY}))};function Lr(){Gn.set(!0),xo||Zt(e.uiConfig.controls.hideTimeoutCursor)}function it(he){var ci,oi;let{relatedTarget:vt}=he,wi=!!(vt&&((ci=n(An))!=null&&ci.contains(vt)))&&((oi=ut())==null?void 0:oi.isFocused());!xo&&!wi&&(Mn.set(!0),Zt(e.uiConfig.controls.hideTimeoutCursor))}function Lt(){Gn.set(!1),N(un,!1),N(cn,!1),Vi=!1,e.store.actions.internal.releaseCamera(),Zt(e.uiConfig.controls.hideTimeout),I()&&po()}function xi(he){return he?he.offsetTop+xi(he.offsetParent):0}function _o(he){return he?he.offsetLeft+_o(he.offsetParent):0}function bo(he){if(B()&&ar){let vt=he.currentTarget,ri=xi(vt),wi=_o(vt),ci=he.pageX-wi,oi=he.pageY-ri,{left:Si,bottom:$n,right:Dn}=B(),Ai=Dn-Si;return ci>=Si-Ai&&oi<=$n+Ai}}function uo(he){if(n(ao)){let vt=xi(he.currentTarget),ri=z().height,wi=he.pageY-vt;if(bo(he)){N(un,!1);return}wi<40?N(un,!0):wi>ri-40?N(cn,!0):(N(un,!1),f()||N(cn,!1))}}function Yi(he){uo(he),!n(Ln)&&!I()&&Zt(e.uiConfig.controls.hideTimeoutCursor),Z()&&Vi&&Ri&&e.store.actions.internal.moveCameraFocusPX(Ri.clientX-he.clientX,Ri.clientY-he.clientY,he.timeStamp-Ri.timeStamp),Ri=he}let Ni=null,hn=()=>{Ni=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),So()},e.uiConfig.doubleForwardActivationTime)},po=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Ni&&clearTimeout(Ni),Ni=null},Mo=he=>{he.preventDefault(),he.button===0&&(Vi=!0,e.store.actions.internal.holdCamera(),se()&&hn()),!Vi&&Zt(e.uiConfig.controls.hideTimeoutCursor)},Lo=he=>{he.preventDefault(),he.button===0&&(Ri=he,Vi=!1,e.store.actions.internal.releaseCamera()),!I()&&Zt(e.uiConfig.controls.hideTimeoutCursor)},Yn=he=>{he.preventDefault(),wo&&(Qt({message:"double click on video"}),$r(),Zt(e.uiConfig.controls.hideTimeoutCursor))},On=he=>{var vt;if(he.preventDefault(),I()){po();return}if(Ni&&po(),q()||f()){mn();return}if(!(E()&&!kr)){if(n(ot))return ni();if((vt=ut())==null||vt.focus(),!Tt()){e.firstStart(),Zt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||de()!==ag.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Zt(e.uiConfig.controls.hideTimeoutCursor)}},Vr=he=>{mn(),ho.set(!0),Zt(e.uiConfig.controls.hideTimeout),he&&Nn(e.uiConfig.controls.hideHotKeyHelpers,he)},yr=()=>{var he,vt;mn(),(he=e.store.callbacks)!=null&&he.onOpenHotKeyMap?(vt=e.store.callbacks)==null||vt.onOpenHotKeyMap(X()):zi.update(ri=>!ri)},es=()=>{ho.set(!0)},Rr=e.store.ui.contextMenu.openedByBtnKeyboard$,ts=e.store.ui.contextMenu.btnRef$,We=Q(void 0),ei=e.store.ui.contextMenu.openedByHotKey$,ki=e.store.ui.contextMenu.lastActiveElem$,_n=e.store.ui.previewTrackActive;qe(()=>{qo.set(n(Zo))}),qe(()=>{N(jn,n(pn)&&de()!==ag.PlaybackState.PLAYING,!0),n(pn)||Pt(()=>N(pn,!0))}),qe(()=>{var vt,ri;let he=(n(jn)||E()||f()||ve()||re()||ae()||Ae())&&!n(Ln)&&(s()==="video"||s()==="ads")&&!a()&&A();li.set(he),!he&&!Ae()&&e.uiConfig.returnFocusOnControlsHide&&((vt=n(An))!=null&&vt.contains(Gu()))&&((ri=ut())==null||ri.focus())}),qe(()=>{!ve()&&n(_r)&&!u()&&Zt(e.uiConfig.controls.hideTimeoutCursor),Pt(()=>N(_r,ve(),!0))}),qe(()=>{n(Pn),f(),$e(),Pt(()=>Zd(n(Pn),f(),$e()))}),qe(()=>{n(We),q(),J(),De(),Pt(()=>{let he=J()||De();Zd(n(We),q(),he)})}),qe(()=>{let he=ue();he&&(q(),Pt(()=>Bl(he,q(),Rr)))}),qe(()=>{let he=k();he&&(q(),Pt(()=>c0(he,q(),ei)))}),qe(()=>{var he;!Ge()&&x()&&(Pt(()=>bi.set(!1)),(he=ut())==null||he.focus())}),qe(()=>{w()&&mn()});let en=Y("video360"),Nr=Q(void 0),tn=he=>{qn.set(Wn(ur(),{title:n(Nr)},"title",he))},Vo=(he,vt)=>{var oi,Si;let ri=(Si=(oi=e.store.callbacks)==null?void 0:oi.uiInfo)==null?void 0:Si.onUpcomingLiveViewStateChanged;if(!ri)return;let wi=!!vt,ci={...Wn(n(ao),{upcomingLiveScreen:vt},"upcomingLiveScreen",wi),...he};ri(ci)};var Or=D5();xt("blur",_a,mn);var bn=pe(Or);bn.__mousemove=Yi;var Ls=_(bn);let ta=m(()=>s()==="ads"),ft=m(()=>n(ot)?ni:void 0);at(pv(Ls,{startDoubleForwardActivationTimer:hn,stopDoubleForward:po,toggleFullscreen:$r,hideContextMenu:mn,showHotKeyHelpers:Vr,showKeyMap:yr,get isAds(){return n(ta)},get fakePlayButtonHandler(){return n(ft)},get nextButtonActive(){return ye()},get prevButtonActive(){return ee()},children:(he,vt)=>{var ri=N5(),wi=pe(ri);Ja(wi,{get hideCursor(){return n(Mr)},onClick:On,onContextMenu:gn,onMouseDown:Mo,onMouseUp:Lo,onDblClick:Yn,get videoContainer(){return rt()},set videoContainer(Si){rt(Si)}});var ci=P(wi,2);Sa(ci,()=>"slot",!1,(Si,$n)=>{ke(Si,()=>({name:Xa}))});var oi=P(ci,2);ys(oi,Pe,Si=>{var $n=R5(),Dn=pe($n);let Ai=m(()=>s()!=="thumb"||a()||xo&&e.autoplay);ja(Dn,{get hidden(){return n(Ai)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:gn,onClick:vn});var ia=P(Dn,2);{var il=Fe=>{rg(Fe,{})};V(ia,Fe=>{j()&&Fe(il)})}var xr=P(ia,2);ig(xr,{});var ol=P(xr,2);ng(ol,{get isVisible(){return I()}});var oa=P(ol,2);{var yn=Fe=>{let gi=m(()=>{var To;return(To=e.live)==null?void 0:To.startTime});Tc(Fe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(gi)},onUpcomingLiveViewStateChanged:Vo,onContextMenu:gn,onClick:vn})};V(oa,Fe=>{s()==="LiveWaitingStart"&&Fe(yn)})}var na=P(oa,2);{var nl=Fe=>{Ya(Fe,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:gn,onClick:vn})};V(na,Fe=>{s()==="LiveWaitingRecover"&&Fe(nl)})}var rl=P(na,2);{var vs=Fe=>{Ya(Fe,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:gn,onClick:vn})};V(rl,Fe=>{s()==="LiveWaitingRecord"&&Fe(vs)})}var ms=P(rl,2);{var sl=Fe=>{var gi=P5();let To;var ca=_(gi);qd(ca,{get adsSlotId(){return Bt()},get adsParams(){return qt()},get adsAutoplayParam(){return Et()},get duration(){return Jt()},get adsExternalApi(){return e.adsExternalApi}}),g(gi),D(xn=>To=ne(gi,1,"ads-container svelte-nqua3g",null,To,xn),[()=>({hidden:s()!=="ads"})]),b(Fe,gi)};V(ms,Fe=>{e.showAds&&Tt()&&Fe(sl)})}var ra=P(ms,2);{var ad=Fe=>{let gi=m(()=>!ze()&&e.showAutoplayNext&&C());dv(Fe,{get title(){return Ce()},get thumb(){return Le()},get isHide(){return n(gi)},clickCloseIcon:()=>N(Vn,!0)})};V(ra,Fe=>{n(Rn)&&Ce()&&Le()&&Fe(ad)})}var wr=P(ra,2);{var ld=Fe=>{let gi=m(()=>!p());km(Fe,{get title(){return e.title},get isHidden(){return n(gi)},onVisibilityChanged:tn,get ref(){return n(Nr)},set ref(To){N(Nr,To,!0)}})};V(wr,Fe=>{n(Pr)&&Fe(ld)})}var sa=P(wr,2);{var dd=Fe=>{let gi=m(()=>s()==="video"&&p());Sc(Fe,{get isShifted(){return n(gi)}})};V(sa,Fe=>{Z()&&Fe(dd)})}var al=P(sa,2);{var ll=Fe=>{var gi=M5(),To=_(gi);zd(To,{get"aria-label"(){return en}}),g(gi),b(Fe,gi)};V(al,Fe=>{ie()&&Fe(ll)})}var aa=P(al,2);{var _t=Fe=>{Cc(Fe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Be()}})};V(aa,Fe=>{ae()&&Fe(_t)})}var bt=P(aa,2);{var Zi=Fe=>{Qa(Fe,{get shifted(){return p()},get captions(){return me()},get position(){return te()},get playerSize(){return z()}})};V(bt,Fe=>{Ze().value!=="off"&&Fe(Zi)})}var Co=P(bt,2);{var Xi=Fe=>{var gi=L5();gi.__contextmenu=gn,gi.__click=[A5,q,Je,f,$t,mn];var To=_(gi);Ga(To,{}),g(gi),b(Fe,gi)};V(Co,Fe=>{a()&&Fe(Xi)})}var mi=P(Co,2);{var Ki=Fe=>{let gi=m(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),To=m(()=>s()==="ads"),ca=m(()=>e.canRewindLive&&Ie()!==0);wc(Fe,{get bottomHidden(){return n(gi)},get bottomNoSmooth(){return H()},get showControls(){return p()},get isAds(){return n(To)},get canRewindLive(){return n(ca)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Wt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Se()},get nextButtonActive(){return ye()},get prevButtonActive(){return ee()},get isOneVideoPlaylist(){return Mt()},customFullscreenSupported:wo,toggleFullscreen:$r,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(vr)},set playerControlsWrapperRef(xn){N(vr,xn,!0)},get playerControlsRef(){return n(An)},set playerControlsRef(xn){N(An,xn,!0)}})};V(mi,Fe=>{Tt()&&Fe(Ki)})}var Vs=P(mi,2);{var cd=Fe=>{var gi=V5(),To=_(gi);let ca=m(()=>{var xn;return(xn=n(An))==null?void 0:xn.clientHeight});Ac(To,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(ca)},returnFocus:()=>{var xn;return(xn=ut())==null?void 0:xn.focus()},get ref(){return n(Pn)},set ref(xn){N(Pn,xn,!0)}}),g(gi),b(Fe,gi)};V(Vs,Fe=>{!ae()&&s()!=="ads"&&Fe(cd)})}var la=P(Vs,2);let Pp=m(()=>!n(hr));jd(la,{get isLive(){return xe()},get isHidden(){return n(Pp)},get isPlaying(){return He()},get position(){return te()},get duration(){return Ie()}});var Rs=P(la,2);Cm(Rs,{get data(){return Xo}});var da=P(Rs,2);av(da,{get supportLink(){return e.supportLink},returnFocus:()=>{var Fe;return(Fe=ut())==null?void 0:Fe.focus()},get visible(){return q()},get playerContainerRef(){return n(ao)},get position(){return Xe()},get menuElementRef(){return n(We)},set menuElementRef(Fe){N(We,Fe,!0)}});var Wc=P(da,2);{var Kc=Fe=>{Pc(Fe,{onClose:Qn,onSelectAutoQuality:()=>{dr("auto"),Qn()}})};V(Wc,Fe=>{n(gr)&&Fe(Kc)})}var dl=P(Wc,2);{var qc=Fe=>{sg(Fe,{})};V(dl,Fe=>{je()&&Fe(qc)})}var Qc=P(dl,2);{var Gc=Fe=>{Oa(Fe,{})};V(Qc,Fe=>{n(Yr)&&Fe(Gc)})}var jc=P(Qc,2);{var Mp=Fe=>{mv(Fe,{})};V(jc,Fe=>{Ke()&&Fe(Mp)})}var Lp=P(jc,2);{var Vp=Fe=>{Jd(Fe,{})};V(Lp,Fe=>{Ye()&&Fe(Vp)})}b(Si,$n)}),b(he,ri)},$$slots:{default:!0}}),he=>ut(he),()=>ut());var ti=P(Ls,2);at(ti,he=>N(Zo,he),()=>n(Zo)),g(bn),at(bn,he=>N(ao,he),()=>n(ao));var Ro=P(bn,2);{var Zn=he=>{var vt=O5();b(he,vt)};V(Ro,he=>{Dt()&&he(Zn)})}xt("mouseenter",bn,Lr),xt("mouseleave",bn,Lt),xt("click",bn,es,!0),xt("focusin",bn,it,!0),b(t,Or),U(),o()}ct(["mousemove","contextmenu","click"]);var ea=require("@vkontakte/videoplayer-core/es2018"),m_=require("@vkontakte/videoplayer-shared/es2018");var H5=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),F5=M("<div><!></div>"),U5={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
359
359
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
360
360
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
361
361
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -371,7 +371,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
371
371
  100% {
372
372
  opacity: 0;
373
373
  }
374
- }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function hp(t,e){F(e,!0),W(t,W5);let i=h(e,"seekStep",3,0),o=Q(!1),r=0,s=0,l=Q(ai(i())),d=v=>{v.stopPropagation(),s+=1,N(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,N(o,!1)},300)};an(()=>{window.clearTimeout(r)});var a=z5();a.__click=d;var u=_(a);{var f=v=>{var p=U5(),y=pe(p),w=P(y,2),x=_(w),C=_(x),T=P(C,2),E=P(T,2);g(x);var R=P(x,2),A=_(R,!0);g(R),g(w),D(I=>{var O,H,B,z;ne(y,1,`semicircle ${(O=e.side)!=null?O:""}`,"svelte-nhq2ld"),ne(C,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ne(T,1,`triangle ${(B=e.side)!=null?B:""}`,"svelte-nhq2ld"),ne(E,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),ve(A,I)},[()=>j("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(v,p)};V(u,v=>{n(o)&&v(f)})}g(a),D(()=>{var v;return ne(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),U()}dt(["click"]);var K5=(t,e,i)=>{e(!1),i()},q5=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),Q5={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 dg(t,e){F(e,!0),W(t,Q5);let[i,o]=De(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=he(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},x=()=>{e.clickCloseIcon(),y()};Ot(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=He(),T=pe(C);{var E=R=>{var A=q5(),I=P(pe(A),2),O=_(I),H=_(O),B=_(H,!0);g(H);var z=P(H,2);Is(z,{onClick:x}),g(O);var Z=P(O,2);Z.__click=[K5,u,v];var ae=_(Z),q=_(ae),de=_(q);let X;var fe=P(de,2);{var re=te=>{tc(te,{get isRunning(){return s()},onTimerEnded:w})};V(fe,te=>{r()&&te(re)})}g(q),g(ae);var le=P(ae,2),Me=_(le),we=_(Me,!0);g(Me),g(le),g(Z),g(I),D((te,Ne)=>{ve(B,te),Je(q,`background-image: url('${e.thumb}')`),X=ne(de,1,"thumb-overlay svelte-1qdxi6t",null,X,Ne),ve(we,e.title)},[()=>r()?j("end_screen_next_video"):j("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(R,A)};V(T,R=>{e.isHide||R(E)})}b(t,C),U(),o()}dt(["click"]);var c_=require("@vkontakte/videoplayer-core/es2018");var u_=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ot(()=>{c_.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),an(()=>{i==null||i(),clearTimeout(o)})};var p_=require("@vkontakte/videoplayer-core/es2018");var _p=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 f_=require("@vkontakte/videoplayer-core/es2018"),v_=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>f_.clientChecker.device.isIOS&&be(l)===p_.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=y=>{if(v(),!f()||!y)return;let w=u();if(!w)return;let x=new _p(w),C=be(d),T=be(s),E=be(r);for(let I of C)T.some(H=>H.value===I.id)&&x.attach(I,E.value===I.id);let R=d.subscribe(I=>{for(let O of I)x.updateSrc(O)}),A=()=>{let I=x.getCurrentShowingId();o(be(s).find(O=>O.value===I))};w.textTracks.addEventListener("change",A),a=()=>{R(),x.detachAll(),w.textTracks.removeEventListener("change",A)}};Ot(()=>i.subscribe(p)),an(v)};var G5=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},j5=M("<!> <!>",1),Y5=M("<div><!></div>"),Z5=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),X5=M("<div><!></div>"),J5=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),ew=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),tw=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),iw={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 cg(t,e){var Vr,Qn;F(e,!0),W(t,iw);let[i,o]=De(),r=()=>S(Oe,"$playerPhase",i),s=()=>S(yi,"$isLoaderVisible",i),l=()=>S(Ce,"$adPlaybackState",i),d=()=>S(Yt,"$crashed",i),a=()=>S(fs,"$notificationsToShow$",i),u=()=>S(ee,"$playbackState$",i),f=()=>S(Wt,"$graphIsOpened$",i),v=()=>S(ot,"$interactiveHideMobileControls",i),p=()=>S(ro,"$isEnded$",i),y=()=>S(vt,"$isInteractiveExpectation$",i),w=()=>S(yt,"$controlsVisible",i),x=()=>S(pt,"$touched",i),C=()=>S(Fi,"$autoplayNextEnabled$",i),T=()=>S(gt,"$postrollPassed",i),E=()=>S(Wn,"$bottomNoSmooth",i),R=()=>S(xi,"$videoSize",i),A=()=>S(kt,"$playerSize",i),I=()=>S(ut,"$isFullscreen",i),O=()=>S(Pe,"$position$",i),H=()=>S(It,"$duration$",i),B=()=>S(Xo,"$loadedMetadata",i),z=()=>S(qe,"$settingsMenuVisible",i),Z=()=>S(ti,"$scrubbingInProgress",i),ae=()=>S(ni,"$volumeChangingInProgress",i),q=()=>S(po,"$chromecastConnected$",i),de=()=>S(ye,"$isControlsAvailable",i),X=()=>S(ii,"$isInteractiveTime$",i),fe=()=>S(Tt,"$isActiveLive",i),re=()=>S(lt,"$settingsMenuOpenedByKeyboard",i),le=()=>S(xe,"$language$",i),Me=()=>S(Gt,"$disabledControls$",i),we=()=>S(Ht,"$is3DVideo",i),te=()=>S(K,"$icon3DVideoVisible",i),Ne=()=>S(di,"$chromecastDeviceName$",i),ue=()=>S(yo,"$currentSubtitle$",i),k=()=>S(Zo,"$currentSubtitleCaptions$",i),Ke=()=>S(dn,"$realDuration$",i),Ve=()=>S(ki,"$isLive$",i),Y=()=>S(jt,"$isPlaying$",i),oe=()=>S(fi,"$debugPanelVisible",i),Be=h(e,"videoContainer",15),Ze=h(e,"adsSlotId",3,void 0),me=h(e,"adsParams",3,void 0),J=h(e,"adsAutoplayParam",3,void 0),Ie=h(e,"duration",3,void 0),ge=h(e,"logoTargetUrl",3,""),Fe=h(e,"showNextPrevButtons",3,!1),Xe=h(e,"nextButtonActive",3,!1),Ge=h(e,"prevButtonActive",3,!1),ct=h(e,"endScreenVideoTitle",3,void 0),et=h(e,"endScreenVideoThumb",3,void 0),Bt=h(e,"isOneVideoPlaylist",3,!1),rt=h(e,"showMiniTimer",3,!1),Dt=h(e,"fullScreenTarget",3,void 0),qt=h(e,"playerStarted",3,!1),Et=h(e,"showEndScreen",3,!0),{notifications$:ei,graphIsOpened$:Wt}=$o(),Se=e.store.getLogger().createComponentLog("Root component"),xe=e.store.interfaceLanguage$,ee=e.store.state.playbackState$,Ce=e.store.ads.playbackState,Pe=e.store.state.positionWithScrubbing$,It=e.store.state.duration$,Oe=e.store.playerPhase,ut=e.store.ui.isFullscreen,yt=e.store.ui.controlsVisible,ye=e.store.ui.isControlsAvailable,ot=e.store.ui.interactiveHideMobileControls,qe=e.store.ui.settingsMenu.visible$,lt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ti=e.store.ui.scrubbingInProgress,ni=e.store.ui.volumeChangingInProgress,fi=e.store.ui.debugPanelVisible,yi=e.store.state.isLoaderVisible,ro=e.store.state.isEnded$,po=e.store.state.chromecastConnected$,di=e.store.state.chromecastDeviceName$,gt=e.store.ads.postrollPassed,ki=e.store.state.isLive$,jt=e.store.state.isPlaying$,Tt=e.store.state.isActiveLive$,oi=e.store.state.isRewindableLive$,Yt=e.store.state.crashed$,St=e.store.webApi.annotationsApi,je=e.store.webApi.pictureInPictureApi,xi=e.store.state.videoSize$,yo=e.store.state.currentSubtitle$,Zo=e.store.state.currentSubtitleCaptions$,dn=e.store.state.duration$,kt=e.store.ui.playerSize,Ht=e.store.ui.is3DVideo,K=e.store.ui.icon3DVideoVisible,Vt=e.store.state.isInteractive,ii=e.store.state.isInteractiveTime$,vt=e.store.state.isInteractiveExpectation$,At=e.store.state.hasInteractiveBranches,Gt=e.store.ui.controls.disabledControls$,pt=e.store.ui.touched,Vi=e.store.ui.overlayContainer$,Fi=e.store.ui.autoplayNextEnabled$,Xo=e.store.state.loadedMetadata$,Vo=e.store.actions.internal.closeSettingsMenu,so=(Vr=e.store.callbacks)==null?void 0:Vr.onDisabledPlayPrevChapterClick,Ui=(Qn=e.store.callbacks)==null?void 0:Qn.onDisabledSeekToInteractiveClick,dr=e.store.actions.internal.setQuality,fo=Q(void 0),vo=Q(void 0),Ri=Q(void 0),cn=Q(void 0),Ro,cr,ur=m(()=>(r()==="video"&&s()||r()==="ads"&&l()==="inactive")&&!d()),Sr=Q(void 0),{closeNotification:es,notificationsToShow$:fs}=ei,ts=m(()=>!!a().slow_video),xo=()=>es("slow_video"),Wn=se(!1),No,un=Q(!1),kn=m(()=>u()!==ia.PlaybackState.PLAYING),pr=Q(!1),Cr=m(()=>f()||v()||!n(un)&&(p()&&!!At||n(kn)&&y())),Tr=Q(!0),Er=m(()=>e.uiConfig.features.thumbTimer&&rt()&&r()==="video"&&!w()&&!d()&&!Vt&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Ir=Q(!1),ji=m(()=>(Et()||e.showAutoplayNext&&C())&&!!ct()&&!!et()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!n(Ir)),kr=Q(!1);je==null||je.setContext(hd());let An=it=>{it&&!Vt&&mo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:An});let pn=()=>{clearTimeout(Ro),N(un,!1),v()&&ot.set(!1)},mo=it=>{pn(),N(un,!0),Ro=setTimeout(()=>N(un,!1),it);let ri=it-100;No=setTimeout(()=>{E()&&Wn.set(!1)},ri>0?ri:it)},fr=Ht.subscribe(it=>{K.set(it),it&&(clearTimeout(cr),cr=setTimeout(()=>K.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Pn=async(it=Gs())=>{var ri,Ni,Oi,mn,wo,So;if(it&&!ia.clientChecker.device.isIOS){let vi=Kd(),Rn=Mn(),ho=ia.clientChecker.browser.isSamsungBrowser&&vi===e.shadowRootContainer;it=vi===Rn||ho}if(it){mo(e.uiConfig.controls.hideTimeoutFullscreen);try{await(je==null?void 0:je.exit())}catch(vi){Se({message:String(vi)})}try{let vi=(ri=R())!=null&&ri.width&&((Ni=R())!=null&&Ni.height)?R():A();await n0(vi)}catch(vi){Se({message:String(vi)})}}ut.set(it),e.store.getAdmanWrapper().setFullscreen(it),I()?(mn=(Oi=e.store.callbacks)==null?void 0:Oi.onFullscreenEnter)==null||mn.call(Oi):(So=(wo=e.store.callbacks)==null?void 0:wo.onFullscreenExit)==null||So.call(wo)},ht=it=>{let ri=it,{width:Ni,height:Oi}=ri.target;kt.set({width:Ni,height:Oi})},pi=()=>{let{width:it,height:ri}=n(fo).getBoundingClientRect();kt.set({width:it,height:ri})};Ot(()=>{var it;return zu(Pn),e.uiConfig.features.annotationsInside&&(St==null||St.init(n(fo))),Va(je)&&(je==null||je.assignPlayerContainer(n(fo)),je==null||je.setExternalEventHandlers({resize:ht,leavepictureinpicture:pi})),N(Tr,!ia.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((it=Be().parentElement)==null||it.insertBefore(e.interactiveContainer,Be().nextSibling)),()=>{clearTimeout(Ro),clearTimeout(No),clearTimeout(cr),fr(),je==null||je.dispose().catch(ri=>{Se({message:String(ri)})}),Wu(Pn)}});let Ar=Q(!0),Kn=Q(!0),Pr=it=>{let ri=O()+(it==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ri<0?(N(Ar,!1),ri=0):ri>=H()&&(N(Kn,!1),ri=H()),N(pr,!0),e.seekTime(ri)},Mn=()=>ia.clientChecker.device.isIOS?n(fo):!e.uiConfig.allowChangingFullscreenTarget||!Dt()?e.outerContainerRef:Dt().contains(e.outerContainerRef)?Dt():e.outerContainerRef,Ln=async()=>{try{if(Gs())await Uu(document),Se({message:"exit fullscreen"});else{if(Se({message:"request fullscreen"}),ia.clientChecker.device.isIOS&&!B())return;await Fu(Mn())}}catch(it){Se({message:String(it)})}},Oo=()=>{Vo()},Do=it=>{if(it.preventDefault(),z()){Oo();return}if(!qt()){e.firstStart(),mo(e.uiConfig.controls.hideTimeoutCursor);return}N(pr,!1),w()?pn():mo(e.uiConfig.controls.hideTimeoutMobile)},fn=()=>{pt.set(!0)},go=()=>{Vt||(Wn.set(!0),mo(e.uiConfig.controls.hideTimeoutCursor))},Bo=it=>{so&&(so(it),mo(e.uiConfig.controls.hideTimeoutMobile))},Jo=it=>{Ui&&(Ui(it),mo(e.uiConfig.controls.hideTimeoutMobile))};ze(()=>{Vi.set(n(Sr))}),ze(()=>{yt.set((n(kn)||z()||Z()||ae()||q()||!n(ji)&&(p()||n(un)&&!n(pr)))&&!n(Cr)&&r()==="video"&&!d()&&de())}),ze(()=>{!Z()&&n(kr)&&!X()&&mo(e.uiConfig.controls.hideTimeoutMobile),N(kr,Z(),!0)}),ze(()=>{N(Ar,O()>0),N(Kn,!fe()&&O()<H(),!0)}),ze(()=>{Xd(n(cn),z(),re(),!0)});let vr=j("aria_label_video_player"),Mr=j("video360");u_({fullScreenChangeHandler:Pn,getFullscreenTarget:Mn}),v_({store:e.store,getFullscreenTarget:Mn});let vn=(it,ri)=>{var wo,So;let Ni=(So=(wo=e.store.callbacks)==null?void 0:wo.uiInfo)==null?void 0:So.onUpcomingLiveViewStateChanged;if(!Ni)return;let Oi=!!ri,mn={...Un(n(fo),{upcomingLiveScreen:ri},"upcomingLiveScreen",Oi),...it};Ni(mn)};var zi=tw();Ct("blur",ba,Oo);var mr=_(zi);el(mr,{onClick:Do,get videoContainer(){return Be()},set videoContainer(it){Be(it)}});var Lr=P(mr,2);Ca(Lr,()=>"slot",!1,(it,ri)=>{ke(it,()=>({name:Ja}))});var Vn=P(Lr,2);ws(Vn,le,it=>{var ri=ew(),Ni=pe(ri);let Oi=m(()=>r()!=="thumb"||d()||Vt&&e.autoplay);Ya(Ni,{get hidden(){return n(Oi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var mn=P(Ni,2);{var wo=Qe=>{var Xt=j5(),gi=pe(Xt);{var bn=tn=>{let Fr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);hp(tn,{side:"left",get seekStep(){return n(Fr)},handleSingleFirstClick:Do,handleSecondClick:()=>Pr("backward")})};V(gi,tn=>{n(Ar)&&tn(bn)})}var Uo=P(gi,2);{var Hr=tn=>{let Fr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);hp(tn,{side:"right",get seekStep(){return n(Fr)},handleSingleFirstClick:Do,handleSecondClick:()=>Pr("forward")})};V(Uo,tn=>{n(Kn)&&tn(Hr)})}b(Qe,Xt)};V(mn,Qe=>{e.canRewindLive&&oi&&!Me().has("TIMELINE")&&Qe(wo)})}var So=P(mn,2);{var vi=Qe=>{let Xt=m(()=>{var gi;return(gi=e.live)==null?void 0:gi.startTime});Ec(Qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Xt)},onUpcomingLiveViewStateChanged:vn})};V(So,Qe=>{r()==="LiveWaitingStart"&&Qe(vi)})}var Rn=P(So,2);{var ho=Qe=>{Za(Qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Rn,Qe=>{r()==="LiveWaitingRecover"&&Qe(ho)})}var Gn=P(Rn,2);{var jn=Qe=>{Za(Qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Gn,Qe=>{r()==="LiveWaitingRecord"&&Qe(jn)})}var Rr=P(Gn,2);{var Nr=Qe=>{var Xt=Y5();let gi;var bn=_(Xt);Qd(bn,{get adsSlotId(){return Ze()},get adsParams(){return me()},get adsAutoplayParam(){return J()},get duration(){return Ie()},get adsExternalApi(){return e.adsExternalApi}}),g(Xt),D(Uo=>gi=ne(Xt,1,"ads-container svelte-7yl31d",null,gi,Uo),[()=>({hidden:r()!=="ads"})]),b(Qe,Xt)};V(Rr,Qe=>{e.showAds&&qt()&&Qe(Nr)})}var gn=P(Rr,2);{var hn=Qe=>{let Xt=m(()=>!Et()&&e.showAutoplayNext&&C());dg(Qe,{get title(){return ct()},get thumb(){return et()},get isHide(){return n(Xt)},clickCloseIcon:()=>N(Ir,!0)})};V(gn,Qe=>{n(ji)&&ct()&&et()&&Qe(hn)})}var gr=P(gn,2);{var _n=Qe=>{Cc(Qe,{})};V(gr,Qe=>{we()&&Qe(_n)})}var Or=P(gr,2);{var tt=Qe=>{var Xt=Z5(),gi=_(Xt);Wd(gi,{get"aria-label"(){return Mr}}),g(Xt),b(Qe,Xt)};V(Or,Qe=>{te()&&Qe(tt)})}var Mt=P(Or,2);{var wi=Qe=>{Tc(Qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};V(Mt,Qe=>{q()&&Qe(wi)})}var _o=P(Mt,2);{var Ho=Qe=>{Ga(Qe,{get shifted(){return w()},get captions(){return k()},get position(){return O()},get playerSize(){return A()},isMobile:!0})};V(_o,Qe=>{ue().value!=="off"&&Qe(Ho)})}var Co=P(_o,2);{var Yi=Qe=>{var Xt=X5();Xt.__click=[G5,z,qe,Oo];var gi=_(Xt);ja(gi,{}),g(Xt),b(Qe,Xt)};V(Co,Qe=>{d()&&Qe(Yi)})}var Ai=P(Co,2);{var en=Qe=>{let Xt=m(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),gi=m(()=>r()==="ads"),bn=m(()=>e.canRewindLive&&Ke()!==0);Sc(Qe,{get bottomHidden(){return n(Xt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return n(gi)},get canRewindLive(){return n(bn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return ge()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Fe()},get nextButtonActive(){return Xe()},get prevButtonActive(){return Ge()},get isOneVideoPlaylist(){return Bt()},get customFullscreenSupported(){return n(Tr)},get endScreenShown(){return n(ji)},toggleFullscreen:Ln,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Bo,onDisabledSeekToInteractiveClick:Jo,get playerControlsWrapperRef(){return n(vo)},set playerControlsWrapperRef(Uo){N(vo,Uo,!0)},get playerControlsRef(){return n(Ri)},set playerControlsRef(Uo){N(Ri,Uo,!0)}})};V(Ai,Qe=>{qt()&&Qe(en)})}var Fo=P(Ai,2);{var To=Qe=>{var Xt=J5(),gi=_(Xt);Pc(gi,{get supportLink(){return e.supportLink},get returnFocus(){return m_.noop},get ref(){return n(cn)},set ref(bn){N(cn,bn,!0)}}),g(Xt),b(Qe,Xt)};V(Fo,Qe=>{z()&&Qe(To)})}var Zi=P(Fo,2);let Dr=m(()=>!n(Er));Yd(Zi,{get isLive(){return Ve()},get isHidden(){return n(Dr)},get isPlaying(){return Y()},get position(){return O()},get duration(){return H()}});var Yn=P(Zi,2);{var Zn=Qe=>{Da(Qe,{})};V(Yn,Qe=>{n(ur)&&Qe(Zn)})}var hr=P(Yn,2);{var vs=Qe=>{ec(Qe,{})};V(hr,Qe=>{oe()&&Qe(vs)})}var Br=P(hr,2);{var is=Qe=>{Mc(Qe,{onClose:xo,onSelectAutoQuality:()=>{dr("auto"),xo()}})};V(Br,Qe=>{n(ts)&&Qe(is)})}b(it,ri)});var qn=P(Vn,2);at(qn,it=>N(Sr,it),()=>n(Sr)),g(zi),at(zi,it=>N(fo,it),()=>n(fo)),D(()=>We(zi,"aria-label",vr)),Ct("click",zi,fn,!0),Ct("focusin",zi,go,!0),b(t,zi),U(),o()}dt(["click"]);function bp(t){let e="";return no(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),no(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),no(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),no(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),no(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),no(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),no(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),no(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),no(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),no(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),no(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),no(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),no(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),no(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),no(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),no(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),no(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),no(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),no(t.font)&&(e+=`--font:${t.font};`),no(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),no(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function no(t){return typeof t=="string"&&!t.includes(";")}var g_=require("@vkontakte/videoplayer-shared/es2018");var ow=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),nw={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 ug(t,e){F(e,!0),W(t,nw);let[i,o]=De(),r=()=>S(ae,"$playerSize",i),s=()=>S(I,"$isPlaying$",i),l=()=>S(R,"$duration$",i),d=()=>S(B,"$positionWithScrubbing$",i),a=()=>S(T,"$playerPhase",i),u=()=>S(E,"$crashed$",i),f=()=>S(O,"$currentSubtitle$",i),v=()=>S(H,"$currentSubtitleCaptions$",i),p=()=>S(A,"$positionExact$",i),y=()=>S(z,"$isLive$",i),w=()=>S(Z,"$isRewindableLive$",i),x=h(e,"outsideDuration",3,0),C=h(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:R,positionExact$:A,isPlaying$:I,currentSubtitle$:O,currentSubtitleCaptions$:H,positionWithScrubbing$:B,isLive$:z,isRewindableLive$:Z},ui:{playerSize:ae,controls:q},actions:{internal:{getVideoElement:de}}}=he(),X=8,fe=Q(!1),re=ai({}),le=()=>{N(fe,!0)},Me=()=>{N(fe,!1)},we=(0,g_.debounceFn)(jl,260);ze(()=>{r(),we(de(),q,re,n(fe))});let te=m(()=>s()?Yo(l()-d()):Yo(isFinite(l())?l():x()));var Ne=ow(),ue=_(Ne);el(ue,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(ge){C(ge)}});var k=P(ue,2);Ca(k,()=>"slot",!1,(ge,Fe)=>{ke(ge,()=>({name:Ja}))});var Ke=P(k,2);let Ve=m(()=>a()!=="thumb"||u());Ya(Ke,{get hidden(){return n(Ve)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Y=P(Ke,2);{var oe=ge=>{Ga(ge,{shifted:!1,get captions(){return v()},get position(){return p()},get playerSize(){return r()}})};V(Y,ge=>{f().value!=="off"&&ge(oe)})}var Be=P(Y,2),Ze=_(Be);jd(Ze,{get isLive(){return y()},get isPlaying(){return s()},get time(){return n(te)}}),g(Be);var me=P(Be,2);let J;var Ie=_(me);Ka(Ie,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:X,tooltipRightOffset:X,get ref(){return re.timeline},set ref(ge){re.timeline=ge}}),g(me),g(Ne),D(ge=>J=ne(me,1,"timeline svelte-1qfjf44",null,J,ge),[()=>({visible:n(fe)})]),Ct("mouseenter",Ne,le),Ct("mouseleave",Ne,Me),b(t,Ne),U(),o()}var rw=M("<div><!></div>"),sw={hash:"svelte-3c0y7j",code:`.vk-vp-root.svelte-3c0y7j {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
374
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function gp(t,e){F(e,!0),W(t,U5);let i=h(e,"seekStep",3,0),o=Q(!1),r=0,s=0,l=Q(si(i())),d=v=>{v.stopPropagation(),s+=1,N(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,N(o,!1)},300)};rn(()=>{window.clearTimeout(r)});var a=F5();a.__click=d;var u=_(a);{var f=v=>{var p=H5(),y=pe(p),w=P(y,2),x=_(w),C=_(x),T=P(C,2),E=P(T,2);g(x);var R=P(x,2),A=_(R,!0);g(R),g(w),D(I=>{var O,H,B,z;ne(y,1,`semicircle ${(O=e.side)!=null?O:""}`,"svelte-nhq2ld"),ne(C,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ne(T,1,`triangle ${(B=e.side)!=null?B:""}`,"svelte-nhq2ld"),ne(E,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),fe(A,I)},[()=>Y("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(v,p)};V(u,v=>{n(o)&&v(f)})}g(a),D(()=>{var v;return ne(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),U()}ct(["click"]);var z5=(t,e,i)=>{e(!1),i()},W5=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),K5={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 dg(t,e){F(e,!0),W(t,K5);let[i,o]=Oe(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=ge(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},x=()=>{e.clickCloseIcon(),y()};Ot(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=Ue(),T=pe(C);{var E=R=>{var A=W5(),I=P(pe(A),2),O=_(I),H=_(O),B=_(H,!0);g(H);var z=P(H,2);Ts(z,{onClick:x}),g(O);var Z=P(O,2);Z.__click=[z5,u,v];var se=_(Z),q=_(se),de=_(q);let X;var ve=P(de,2);{var re=J=>{ec(J,{get isRunning(){return s()},onTimerEnded:w})};V(ve,J=>{r()&&J(re)})}g(q),g(se);var ae=P(se,2),Ae=_(ae),$e=_(Ae,!0);g(Ae),g(ae),g(Z),g(I),D((J,De)=>{fe(B,J),tt(q,`background-image: url('${e.thumb}')`),X=ne(de,1,"thumb-overlay svelte-1qdxi6t",null,X,De),fe($e,e.title)},[()=>r()?Y("end_screen_next_video"):Y("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(R,A)};V(T,R=>{e.isHide||R(E)})}b(t,C),U(),o()}ct(["click"]);var c_=require("@vkontakte/videoplayer-core/es2018");var u_=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ot(()=>{c_.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),rn(()=>{i==null||i(),clearTimeout(o)})};var p_=require("@vkontakte/videoplayer-core/es2018");var hp=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 f_=require("@vkontakte/videoplayer-core/es2018"),v_=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>f_.clientChecker.device.isIOS&&be(l)===p_.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=y=>{if(v(),!f()||!y)return;let w=u();if(!w)return;let x=new hp(w),C=be(d),T=be(s),E=be(r);for(let I of C)T.some(H=>H.value===I.id)&&x.attach(I,E.value===I.id);let R=d.subscribe(I=>{for(let O of I)x.updateSrc(O)}),A=()=>{let I=x.getCurrentShowingId();o(be(s).find(O=>O.value===I))};w.textTracks.addEventListener("change",A),a=()=>{R(),x.detachAll(),w.textTracks.removeEventListener("change",A)}};Ot(()=>i.subscribe(p)),rn(v)};var q5=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Q5=M("<!> <!>",1),G5=M("<div><!></div>"),j5=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Y5=M("<div><!></div>"),Z5=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),X5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),J5=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),ew={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 cg(t,e){var Mr,_r;F(e,!0),W(t,ew);let[i,o]=Oe(),r=()=>S(Ve,"$playerPhase",i),s=()=>S(yi,"$isLoaderVisible",i),l=()=>S(Ce,"$adPlaybackState",i),d=()=>S(Yt,"$crashed",i),a=()=>S(fs,"$notificationsToShow$",i),u=()=>S(ee,"$playbackState$",i),f=()=>S(Wt,"$graphIsOpened$",i),v=()=>S(st,"$interactiveHideMobileControls",i),p=()=>S(oo,"$isEnded$",i),y=()=>S(ht,"$isInteractiveExpectation$",i),w=()=>S(Tt,"$controlsVisible",i),x=()=>S(pt,"$touched",i),C=()=>S(Fi,"$autoplayNextEnabled$",i),T=()=>S(gt,"$postrollPassed",i),E=()=>S(qn,"$bottomNoSmooth",i),R=()=>S(Ti,"$videoSize",i),A=()=>S(It,"$playerSize",i),I=()=>S(lt,"$isFullscreen",i),O=()=>S(Le,"$position$",i),H=()=>S(Mt,"$duration$",i),B=()=>S(Ko,"$loadedMetadata",i),z=()=>S(ze,"$settingsMenuVisible",i),Z=()=>S(Qt,"$scrubbingInProgress",i),se=()=>S(_i,"$volumeChangingInProgress",i),q=()=>S(no,"$chromecastConnected$",i),de=()=>S(we,"$isControlsAvailable",i),X=()=>S(ii,"$isInteractiveTime$",i),ve=()=>S($t,"$isActiveLive",i),re=()=>S(ut,"$settingsMenuOpenedByKeyboard",i),ae=()=>S(ye,"$language$",i),Ae=()=>S(jt,"$disabledControls$",i),$e=()=>S(Ht,"$is3DVideo",i),J=()=>S(K,"$icon3DVideoVisible",i),De=()=>S(di,"$chromecastDeviceName$",i),ue=()=>S(yo,"$currentSubtitle$",i),k=()=>S(Wo,"$currentSubtitleCaptions$",i),Ge=()=>S(an,"$realDuration$",i),Pe=()=>S(bi,"$isLive$",i),j=()=>S(li,"$isPlaying$",i),ie=()=>S(pi,"$debugPanelVisible",i),Be=h(e,"videoContainer",15),Ze=h(e,"adsSlotId",3,void 0),me=h(e,"adsParams",3,void 0),te=h(e,"adsAutoplayParam",3,void 0),Ie=h(e,"duration",3,void 0),xe=h(e,"logoTargetUrl",3,""),He=h(e,"showNextPrevButtons",3,!1),Xe=h(e,"nextButtonActive",3,!1),je=h(e,"prevButtonActive",3,!1),Ke=h(e,"endScreenVideoTitle",3,void 0),Ye=h(e,"endScreenVideoThumb",3,void 0),Dt=h(e,"isOneVideoPlaylist",3,!1),rt=h(e,"showMiniTimer",3,!1),Bt=h(e,"fullScreenTarget",3,void 0),qt=h(e,"playerStarted",3,!1),Et=h(e,"showEndScreen",3,!0),{notifications$:Jt,graphIsOpened$:Wt}=$o(),Se=e.store.getLogger().createComponentLog("Root component"),ye=e.store.interfaceLanguage$,ee=e.store.state.playbackState$,Ce=e.store.ads.playbackState,Le=e.store.state.positionWithScrubbing$,Mt=e.store.state.duration$,Ve=e.store.playerPhase,lt=e.store.ui.isFullscreen,Tt=e.store.ui.controlsVisible,we=e.store.ui.isControlsAvailable,st=e.store.ui.interactiveHideMobileControls,ze=e.store.ui.settingsMenu.visible$,ut=e.store.ui.settingsMenu.openedByBtnKeyboard$,Qt=e.store.ui.scrubbingInProgress,_i=e.store.ui.volumeChangingInProgress,pi=e.store.ui.debugPanelVisible,yi=e.store.state.isLoaderVisible,oo=e.store.state.isEnded$,no=e.store.state.chromecastConnected$,di=e.store.state.chromecastDeviceName$,gt=e.store.ads.postrollPassed,bi=e.store.state.isLive$,li=e.store.state.isPlaying$,$t=e.store.state.isActiveLive$,fi=e.store.state.isRewindableLive$,Yt=e.store.state.crashed$,wt=e.store.webApi.annotationsApi,Je=e.store.webApi.pictureInPictureApi,Ti=e.store.state.videoSize$,yo=e.store.state.currentSubtitle$,Wo=e.store.state.currentSubtitleCaptions$,an=e.store.state.duration$,It=e.store.ui.playerSize,Ht=e.store.ui.is3DVideo,K=e.store.ui.icon3DVideoVisible,kt=e.store.state.isInteractive,ii=e.store.state.isInteractiveTime$,ht=e.store.state.isInteractiveExpectation$,At=e.store.state.hasInteractiveBranches,jt=e.store.ui.controls.disabledControls$,pt=e.store.ui.touched,Hi=e.store.ui.overlayContainer$,Fi=e.store.ui.autoplayNextEnabled$,Ko=e.store.state.loadedMetadata$,xo=e.store.actions.internal.closeSettingsMenu,ro=(Mr=e.store.callbacks)==null?void 0:Mr.onDisabledPlayPrevChapterClick,Ui=(_r=e.store.callbacks)==null?void 0:_r.onDisabledSeekToInteractiveClick,kr=e.store.actions.internal.setQuality,ho=Q(void 0),so=Q(void 0),zi=Q(void 0),qo=Q(void 0),Qo,ar,lr=m(()=>(r()==="video"&&s()||r()==="ads"&&l()==="inactive")&&!d()),dr=Q(void 0),{closeNotification:ps,notificationsToShow$:fs}=Jt,ln=m(()=>!!a().slow_video),dn=()=>ps("slow_video"),qn=le(!1),Go,jo=Q(!1),cr=m(()=>u()!==ea.PlaybackState.PLAYING),ur=Q(!1),Ar=m(()=>f()||v()||!n(jo)&&(p()&&!!At||n(cr)&&y())),pr=Q(!0),jr=m(()=>e.uiConfig.features.thumbTimer&&rt()&&r()==="video"&&!w()&&!d()&&!kt&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),fr=Q(!1),ao=m(()=>(Et()||e.showAutoplayNext&&C())&&!!Ke()&&!!Ye()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!n(fr)),vr=Q(!1);Je==null||Je.setContext(gd());let An=ot=>{ot&&!kt&&lo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:An});let Pn=()=>{clearTimeout(Qo),N(jo,!1),v()&&st.set(!1)},lo=ot=>{Pn(),N(jo,!0),Qo=setTimeout(()=>N(jo,!1),ot);let ni=ot-100;Go=setTimeout(()=>{E()&&qn.set(!1)},ni>0?ni:ot)},mr=Ht.subscribe(ot=>{K.set(ot),ot&&(clearTimeout(ar),ar=setTimeout(()=>K.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Yo=async(ot=qs())=>{var ni,Vi,Ri,fn,So,co;if(ot&&!ea.clientChecker.device.isIOS){let Zt=Wd(),Nn=Zo(),Jo=ea.clientChecker.browser.isSamsungBrowser&&Zt===e.shadowRootContainer;ot=Zt===Nn||Jo}if(ot){lo(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Je==null?void 0:Je.exit())}catch(Zt){Se({message:String(Zt)})}try{let Zt=(ni=R())!=null&&ni.width&&((Vi=R())!=null&&Vi.height)?R():A();await n0(Zt)}catch(Zt){Se({message:String(Zt)})}}lt.set(ot),e.store.getAdmanWrapper().setFullscreen(ot),I()?(fn=(Ri=e.store.callbacks)==null?void 0:Ri.onFullscreenEnter)==null||fn.call(Ri):(co=(So=e.store.callbacks)==null?void 0:So.onFullscreenExit)==null||co.call(So)},yt=ot=>{let ni=ot,{width:Vi,height:Ri}=ni.target;It.set({width:Vi,height:Ri})},vi=()=>{let{width:ot,height:ni}=n(ho).getBoundingClientRect();It.set({width:ot,height:ni})};Ot(()=>{var ot;return Fu(Yo),e.uiConfig.features.annotationsInside&&(wt==null||wt.init(n(ho))),La(Je)&&(Je==null||Je.assignPlayerContainer(n(ho)),Je==null||Je.setExternalEventHandlers({resize:yt,leavepictureinpicture:vi})),N(pr,!ea.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((ot=Be().parentElement)==null||ot.insertBefore(e.interactiveContainer,Be().nextSibling)),()=>{clearTimeout(Qo),clearTimeout(Go),clearTimeout(ar),mr(),Je==null||Je.dispose().catch(ni=>{Se({message:String(ni)})}),Uu(Yo)}});let gr=Q(!0),Qn=Q(!0),Yr=ot=>{let ni=O()+(ot==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ni<0?(N(gr,!1),ni=0):ni>=H()&&(N(Qn,!1),ni=H()),N(ur,!0),e.seekTime(ni)},Zo=()=>ea.clientChecker.device.isIOS?n(ho):!e.uiConfig.allowChangingFullscreenTarget||!Bt()?e.outerContainerRef:Bt().contains(e.outerContainerRef)?Bt():e.outerContainerRef,Mn=async()=>{try{if(qs())await Hu(document),Se({message:"exit fullscreen"});else{if(Se({message:"request fullscreen"}),ea.clientChecker.device.isIOS&&!B())return;await Bu(Zo())}}catch(ot){Se({message:String(ot)})}},Ii=()=>{xo()},Wi=ot=>{if(ot.preventDefault(),z()){Ii();return}if(!qt()){e.firstStart(),lo(e.uiConfig.controls.hideTimeoutCursor);return}N(ur,!1),w()?Pn():lo(e.uiConfig.controls.hideTimeoutMobile)},Xo=()=>{pt.set(!0)},Gn=()=>{kt||(qn.set(!0),lo(e.uiConfig.controls.hideTimeoutCursor))},cn=ot=>{ro&&(ro(ot),lo(e.uiConfig.controls.hideTimeoutMobile))},un=ot=>{Ui&&(Ui(ot),lo(e.uiConfig.controls.hideTimeoutMobile))};qe(()=>{Hi.set(n(dr))}),qe(()=>{Tt.set((n(cr)||z()||Z()||se()||q()||!n(ao)&&(p()||n(jo)&&!n(ur)))&&!n(Ar)&&r()==="video"&&!d()&&de())}),qe(()=>{!Z()&&n(vr)&&!X()&&lo(e.uiConfig.controls.hideTimeoutMobile),N(vr,Z(),!0)}),qe(()=>{N(gr,O()>0),N(Qn,!ve()&&O()<H(),!0)}),qe(()=>{Zd(n(qo),z(),re(),!0)});let jn=Y("aria_label_video_player"),pn=Y("video360");u_({fullScreenChangeHandler:Yo,getFullscreenTarget:Zo}),v_({store:e.store,getFullscreenTarget:Zo});let Ln=(ot,ni)=>{var So,co;let Vi=(co=(So=e.store.callbacks)==null?void 0:So.uiInfo)==null?void 0:co.onUpcomingLiveViewStateChanged;if(!Vi)return;let Ri=!!ni,fn={...Wn(n(ho),{upcomingLiveScreen:ni},"upcomingLiveScreen",Ri),...ot};Vi(fn)};var wo=J5();xt("blur",_a,Ii);var hr=_(wo);Ja(hr,{onClick:Wi,get videoContainer(){return Be()},set videoContainer(ot){Be(ot)}});var Pr=P(hr,2);Sa(Pr,()=>"slot",!1,(ot,ni)=>{ke(ot,()=>({name:Xa}))});var Vn=P(Pr,2);ys(Vn,ae,ot=>{var ni=X5(),Vi=pe(ni);let Ri=m(()=>r()!=="thumb"||d()||kt&&e.autoplay);ja(Vi,{get hidden(){return n(Ri)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var fn=P(Vi,2);{var So=We=>{var ei=Q5(),ki=pe(ei);{var _n=tn=>{let Vo=m(()=>e.uiConfig.controls.seekStepMobile/1e3);gp(tn,{side:"left",get seekStep(){return n(Vo)},handleSingleFirstClick:Wi,handleSecondClick:()=>Yr("backward")})};V(ki,tn=>{n(gr)&&tn(_n)})}var en=P(ki,2);{var Nr=tn=>{let Vo=m(()=>e.uiConfig.controls.seekStepMobile/1e3);gp(tn,{side:"right",get seekStep(){return n(Vo)},handleSingleFirstClick:Wi,handleSecondClick:()=>Yr("forward")})};V(en,tn=>{n(Qn)&&tn(Nr)})}b(We,ei)};V(fn,We=>{e.canRewindLive&&fi&&!Ae().has("TIMELINE")&&We(So)})}var co=P(fn,2);{var Zt=We=>{let ei=m(()=>{var ki;return(ki=e.live)==null?void 0:ki.startTime});Tc(We,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(ei)},onUpcomingLiveViewStateChanged:Ln})};V(co,We=>{r()==="LiveWaitingStart"&&We(Zt)})}var Nn=P(co,2);{var Jo=We=>{Ya(We,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Nn,We=>{r()==="LiveWaitingRecover"&&We(Jo)})}var br=P(Nn,2);{var Zr=We=>{Ya(We,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(br,We=>{r()==="LiveWaitingRecord"&&We(Zr)})}var Xr=P(br,2);{var Jr=We=>{var ei=G5();let ki;var _n=_(ei);qd(_n,{get adsSlotId(){return Ze()},get adsParams(){return me()},get adsAutoplayParam(){return te()},get duration(){return Ie()},get adsExternalApi(){return e.adsExternalApi}}),g(ei),D(en=>ki=ne(ei,1,"ads-container svelte-7yl31d",null,ki,en),[()=>({hidden:r()!=="ads"})]),b(We,ei)};V(Xr,We=>{e.showAds&&qt()&&We(Jr)})}var vn=P(Xr,2);{var mn=We=>{let ei=m(()=>!Et()&&e.showAutoplayNext&&C());dg(We,{get title(){return Ke()},get thumb(){return Ye()},get isHide(){return n(ei)},clickCloseIcon:()=>N(fr,!0)})};V(vn,We=>{n(ao)&&Ke()&&Ye()&&We(mn)})}var $r=P(vn,2);{var gn=We=>{Sc(We,{})};V($r,We=>{$e()&&We(gn)})}var Lr=P($r,2);{var it=We=>{var ei=j5(),ki=_(ei);zd(ki,{get"aria-label"(){return pn}}),g(ei),b(We,ei)};V(Lr,We=>{J()&&We(it)})}var Lt=P(Lr,2);{var xi=We=>{Cc(We,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return De()}})};V(Lt,We=>{q()&&We(xi)})}var _o=P(Lt,2);{var bo=We=>{Qa(We,{get shifted(){return w()},get captions(){return k()},get position(){return O()},get playerSize(){return A()},isMobile:!0})};V(_o,We=>{ue().value!=="off"&&We(bo)})}var uo=P(_o,2);{var Yi=We=>{var ei=Y5();ei.__click=[q5,z,ze,Ii];var ki=_(ei);Ga(ki,{}),g(ei),b(We,ei)};V(uo,We=>{d()&&We(Yi)})}var Ni=P(uo,2);{var hn=We=>{let ei=m(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),ki=m(()=>r()==="ads"),_n=m(()=>e.canRewindLive&&Ge()!==0);wc(We,{get bottomHidden(){return n(ei)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return n(ki)},get canRewindLive(){return n(_n)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return xe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return He()},get nextButtonActive(){return Xe()},get prevButtonActive(){return je()},get isOneVideoPlaylist(){return Dt()},get customFullscreenSupported(){return n(pr)},get endScreenShown(){return n(ao)},toggleFullscreen:Mn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:cn,onDisabledSeekToInteractiveClick:un,get playerControlsWrapperRef(){return n(so)},set playerControlsWrapperRef(en){N(so,en,!0)},get playerControlsRef(){return n(zi)},set playerControlsRef(en){N(zi,en,!0)}})};V(Ni,We=>{qt()&&We(hn)})}var po=P(Ni,2);{var Mo=We=>{var ei=Z5(),ki=_(ei);Ac(ki,{get supportLink(){return e.supportLink},get returnFocus(){return m_.noop},get ref(){return n(qo)},set ref(_n){N(qo,_n,!0)}}),g(ei),b(We,ei)};V(po,We=>{z()&&We(Mo)})}var Lo=P(po,2);let Yn=m(()=>!n(jr));jd(Lo,{get isLive(){return Pe()},get isHidden(){return n(Yn)},get isPlaying(){return j()},get position(){return O()},get duration(){return H()}});var On=P(Lo,2);{var Vr=We=>{Oa(We,{})};V(On,We=>{n(lr)&&We(Vr)})}var yr=P(On,2);{var es=We=>{Jd(We,{})};V(yr,We=>{ie()&&We(es)})}var Rr=P(yr,2);{var ts=We=>{Pc(We,{onClose:dn,onSelectAutoQuality:()=>{kr("auto"),dn()}})};V(Rr,We=>{n(ln)&&We(ts)})}b(ot,ni)});var Rn=P(Vn,2);at(Rn,ot=>N(dr,ot),()=>n(dr)),g(wo),at(wo,ot=>N(ho,ot),()=>n(ho)),D(()=>Qe(wo,"aria-label",jn)),xt("click",wo,Xo,!0),xt("focusin",wo,Gn,!0),b(t,wo),U(),o()}ct(["click"]);function _p(t){let e="";return io(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),io(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),io(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),io(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),io(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),io(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),io(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),io(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),io(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),io(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),io(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),io(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),io(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),io(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),io(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),io(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),io(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),io(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),io(t.font)&&(e+=`--font:${t.font};`),io(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),io(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function io(t){return typeof t=="string"&&!t.includes(";")}var g_=require("@vkontakte/videoplayer-shared/es2018");var tw=M('<div class="time-container svelte-1qfjf44"><!></div>'),iw=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),ow={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 ug(t,e){F(e,!0),W(t,ow);let[i,o]=Oe(),r=()=>S(X,"$scrubbingInProgress",i),s=()=>S(q,"$playerSize",i),l=()=>S(O,"$isPlaying$",i),d=()=>S(A,"$duration$",i),a=()=>S(z,"$positionWithScrubbing$",i),u=()=>S(E,"$playerPhase",i),f=()=>S(R,"$crashed$",i),v=()=>S(H,"$currentSubtitle$",i),p=()=>S(B,"$currentSubtitleCaptions$",i),y=()=>S(I,"$positionExact$",i),w=()=>S(Z,"$isLive$",i),x=()=>S(se,"$isRewindableLive$",i),C=h(e,"outsideDuration",3,0),T=h(e,"videoContainer",15),{playerPhase:E,state:{crashed$:R,duration$:A,positionExact$:I,isPlaying$:O,currentSubtitle$:H,currentSubtitleCaptions$:B,positionWithScrubbing$:z,isLive$:Z,isRewindableLive$:se},ui:{playerSize:q,controls:de,scrubbingInProgress:X},actions:{internal:{getVideoElement:ve}}}=ge(),re=8,ae=Q(!1),Ae=si({}),$e=Q(!1),J=m(()=>!r()&&!n($e)),De=()=>{N(ae,!0)},ue=()=>{N(ae,!1)},k=(0,g_.debounceFn)(Gl,260);qe(()=>{s(),k(ve(),de,Ae,n(ae))});let Ge=m(()=>l()?zo(d()-a()):zo(isFinite(d())?d():C()));var Pe=iw(),j=_(Pe);Ja(j,{hideCursor:!1,get videoContainer(){return T()},set videoContainer(Ke){T(Ke)}});var ie=P(j,2);Sa(ie,()=>"slot",!1,(Ke,Ye)=>{ke(Ke,()=>({name:Xa}))});var Be=P(ie,2);let Ze=m(()=>u()!=="thumb"||f());ja(Be,{get hidden(){return n(Ze)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var me=P(Be,2);{var te=Ke=>{Qa(Ke,{shifted:!1,get captions(){return p()},get position(){return y()},get playerSize(){return s()}})};V(me,Ke=>{v().value!=="off"&&n(J)&&Ke(te)})}var Ie=P(me,2);{var xe=Ke=>{var Ye=tw(),Dt=_(Ye);Gd(Dt,{get isLive(){return w()},get isPlaying(){return l()},get time(){return n(Ge)}}),g(Ye),b(Ke,Ye)};V(Ie,Ke=>{n(J)&&Ke(xe)})}var He=P(Ie,2);let Xe;var je=_(He);Wa(je,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return x()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:re,tooltipRightOffset:re,get ref(){return Ae.timeline},set ref(Ke){Ae.timeline=Ke}}),g(He),g(Pe),D(Ke=>Xe=ne(He,1,"timeline svelte-1qfjf44",null,Xe,Ke),[()=>({visible:n(ae)})]),xt("mouseenter",Pe,De),xt("mouseleave",Pe,ue),xt("mouseenter",He,()=>N($e,!0)),xt("mouseleave",He,()=>N($e,!1)),b(t,Pe),U(),o()}var nw=M("<div><!></div>"),rw={hash:"svelte-3c0y7j",code:`.vk-vp-root.svelte-3c0y7j {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
375
375
 
376
376
  /* USER DEFINED COLORS */
377
377
 
@@ -404,5 +404,5 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
404
404
  /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}.vk-vp-root.svelte-3c0y7j *:focus, .vk-vp-root.svelte-3c0y7j *:focus-visible {outline:none;}.vk-vp-root.svelte-3c0y7j *:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}.vk-vp-root.svelte-3c0y7j *.focus-hidden:focus-visible {box-shadow:none;}
405
405
  /* css reset end */.vk-vp-root.svelte-3c0y7j .hidden {visibility:hidden;opacity:0;}.vk-vp-root.svelte-3c0y7j .out-of-flow {content-visibility:hidden !important;}.vk-vp-root.svelte-3c0y7j .overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
406
406
 
407
- /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.vk-vp-root.svelte-3c0y7j .out-of-view {position:absolute !important;left:-1000vh !important;}.vk-vp-root.svelte-3c0y7j .icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function pg(t,e){F(e,!0),W(t,sw);let[i,o]=De(),r=()=>S(qt,"$isLive$",i),s=()=>S(St,"$availableSubtitlesList$",i),l=()=>S(je,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),a=h(e,"store",7),u=h(e,"microStoresRoot",7),f=h(e,"videoConfig",7),v=h(e,"uiConfig",7),p=h(e,"title",7),y=h(e,"thumbUrl",7),w=h(e,"interactiveContainer",7),x=h(e,"interactiveController",7),C=h(e,"subtitles",7),T=h(e,"subtitlesForcedLanguage",7),E=h(e,"live",7),R=h(e,"preload",7),A=h(e,"autoplay",7),I=h(e,"volume",7,void 0),O=h(e,"muted",7,void 0),H=h(e,"fromTime",7),B=h(e,"canRewindLive",7),z=h(e,"showAds",7),Z=h(e,"adsSlotId",7,void 0),ae=h(e,"adsParams",7,void 0),q=h(e,"adsAutoplayParam",7,void 0),de=h(e,"duration",7,void 0),X=h(e,"logoClickable",7),fe=h(e,"logoHidden",7),re=h(e,"isMobile",7),le=h(e,"showNextPrevButtons",7,!1),Me=h(e,"nextButtonActive",7,!1),we=h(e,"prevButtonActive",7,!1),te=h(e,"endScreenVideoTitle",7,void 0),Ne=h(e,"endScreenVideoThumb",7,void 0),ue=h(e,"isOneVideoPlaylist",7,!1),k=h(e,"supportLink",7),Ke=h(e,"shadowRootContainer",7),Ve=h(e,"outerContainerRef",7),Y=h(e,"fullScreenTarget",7,void 0),oe=h(e,"failoverHosts",7,void 0),Be=h(e,"showMiniTimer",7,!1),Ze=h(e,"saveRate",7),me=h(e,"seekToInteractive",7,tl.noop),J=h(e,"playPrevChapter",7,tl.noop),Ie=h(e,"volumeMultiplier",7),ge=h(e,"showAutoplayNext",7),Fe=h(e,"showEndScreen",7,!0),Xe=h(e,"keyboardControls",15,void 0),{subscribers:Ge,stores:ct}=u();f1(v());let et=Rt(),Bt=v().logoLink,rt=a().ui.debugPanelVisible,Dt=a().ui.playerSize,qt=a().state.isLive$,ei=a().state.isInteractive&&ed.clientChecker.device.isAndroid,Wt=Q(void 0),Se=null,xe=Q(!1);a().getAdmanWrapper().init({switchFromAdsToVideo:a().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:a().actions.internal.switchFromVideoToAds,setMuted:a().actions.external.setMuted},a().ads,{vsid:a().vsid}),S1(a(),ct),ze(()=>{var K,Vt;a().ui.isMobile.set(re()),(Vt=(K=f().callbacks)==null?void 0:K.onDomReady)==null||Vt.call(K)});let ee=(K=!1)=>{N(xe,!0),K?a().actions.external.firstStart(z()):a().actions.internal.firstStart(z())},Ce=()=>{if(et.features.qualityDetailsSubMenuEnabled){let K=q1(a().videoId);if(K)switch(K.type){case"high_quality":a().actions.internal.setHighQualityEnabled(!0,K.appliesTo);break;case"traffic_saving":a().actions.internal.setTrafficSavingEnabled(!0,K.appliesTo);break;case"exact_quality":a().actions.internal.setQuality(K.quality);break}}else{Q1(a().videoId),Ff()&&a().actions.internal.setTrafficSavingEnabled(!0);let Vt=Of(a().videoId);Vt&&a().actions.internal.setQuality(Vt)}};function Pe(K){var Gt,pt,Vi;let Vt=d()||K;Vt&&a().initVideo({container:n(Wt),sources:Vt,failoverHosts:oe(),subtitles:C(),subtitlesForcedLanguage:T(),volumeMultiplier:Ie()});let ii=tl.safeStorage.get(Bd)==="true";rt.set(ii),H()>0&&a().actions.external.seekTime(H());let vt=re()?et.volumeDefault:(pt=(Gt=I())!=null?Gt:Mu())!=null?pt:et.volumeDefault,At=(Vi=O())!=null?Vi:H1();if(a().actions.external.setVolume(vt),a().actions.external.setMuted(At),a().getAdmanWrapper().setInitialVolume(At?0:vt),Ce(),et.features.saveRate&&Ze()){let Fi=z1();Fi&&!r()&&a().actions.internal.setPlaybackRate(Fi)}if(ge()){let Fi=K1();Fi&&a().actions.internal.setAutoplayNextEnabled(Fi)}a().ui.isAutoplay.set(A()),A()&&ee(),R()&&et.features.preload&&a().actions.internal.preload()}let It=K=>{if(window.ResizeObserver){let Vt,ii;Se=new ResizeObserver((0,tl.throttleFn)(vt=>{let At=vt[0];if(At.contentBoxSize){let Gt=Array.isArray(At.contentBoxSize)?At.contentBoxSize[0]:At.contentBoxSize;Vt=Gt.inlineSize,ii=Gt.blockSize}else At.contentRect&&(Vt=At.contentRect.width,ii=At.contentRect.height);Dt.set({width:Vt,height:ii})},300)),Se.observe(K)}Dt.set({width:K.clientWidth,height:K.clientHeight})},Oe=()=>{document.hidden&&a().actions.external.stop()};Ot(()=>{var ii,vt,At,Gt;ei&&document.addEventListener("visibilitychange",Oe),et.debugLog&&a().actions.internal.startLogging(),It(n(Wt));let K=Ge.map(pt=>pt.init({store:a(),microStores:ct,config:f(),interactiveController:x(),uiConfig:v()})),Vt=()=>{ei&&document.removeEventListener("visibilitychange",Oe),Se==null||Se.disconnect(),K.forEach(pt=>pt.unsubscribe()),a().destroy()};return((ii=E())==null?void 0:ii.status)==="upcoming"?(a().actions.internal.setLiveWaitingStart(!0),Vt):((vt=E())==null?void 0:vt.status)==="waiting"?(a().actions.internal.setLiveWaitingRecover(!0),Vt):(((At=E())==null?void 0:At.status)==="finished"||((Gt=E())==null?void 0:Gt.status)==="postlive")&&!(d()&&(0,ed.areValidLiveRecordSources)(d()))?(a().actions.internal.setLiveWaitingRecord(!0),Vt):(Pe(),Vt)});function ut(){n(xe)?a().actions.external.play():ee(!0)}function yt(){a().actions.external.pause()}function ye(K){a().actions.external.setMuted(K)}function ot(){a().actions.external.toggleSubtitle()}function qe(K,Vt){a().actions.external.changeSubtitle(K,Vt)}function lt(K){a().actions.external.changeAudioStream(K)}function ti(){var K;(K=a().webApi.slotsApi)!=null&&K.haveSlots()&&a().actions.external.hideControls()}function ni(){var K;(K=a().webApi.slotsApi)!=null&&K.haveSlots()&&a().actions.external.showControls()}function fi(K){re()||K>=0&&K<=1&&a().actions.external.setVolume(K)}function yi(K){a().actions.internal.seekTime(K,h_.SeekAction.UNKNOWN)}function ro(K){a().actions.external.seekEpisodeStartTime(K)}function po(){a().actions.external.returnFocusToEpisodes()}function di(K){a().actions.external.setPlaybackRate(K)}function gt(K){a().actions.external.setAutoQualityLimits(K)}function ki(){a().actions.external.setQuality("auto")}function jt(K){a().actions.external.setTrafficSavingEnabled(K)}function Tt(K){a().actions.external.setHighQualityEnabled(K)}let oi=bp(et.view),Yt=f().playerView==="preview",St=a().state.availableSubtitlesList$;if(et.features.initSubtitles){let K=!1;ze(()=>{var Vt;if(!K&&s().length){K=!0;let ii;if(et.features.userVideoPrefs&&a().videoId){let At=Nu(et.userSalt,String(a().videoId));At!=null&&At.subtitleTrackId&&(ii=s().find(Gt=>Gt.value===At.subtitleTrackId))}let vt=(Vt=T())!=null?Vt:zf();vt&&(ii=s().find(At=>At.language===vt)),a().actions.internal.setSubtitle(ii)}})}let je=a().ui.isPreviewTrackHorizontallyAligned;var xi=rw();let yo;var Zo=_(xi);{var dn=K=>{cg(K,{get store(){return a()},get uiConfig(){return et},get thumbUrl(){return y()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return z()},get adsSlotId(){return Z()},get adsParams(){return ae()},get adsAutoplayParam(){return q()},get duration(){return de()},get logoClickable(){return X()},get logoHidden(){return fe()},get logoTargetUrl(){return Bt},get nextButtonActive(){return Me()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return te()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return ue()},get supportLink(){return k()},get shadowRootContainer(){return Ke()},get outerContainerRef(){return Ve()},get fullScreenTarget(){return Y()},get showMiniTimer(){return Be()},get playerStarted(){return n(xe)},get seekToInteractive(){return me()},get playPrevChapter(){return J()},firstStart:ee,seekTime:yi,get showEndScreen(){return Fe()},get showAutoplayNext(){return ge()},get showNextPrevButtons(){return le()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Wt)},set videoContainer(Vt){N(Wt,Vt,!0)}})},kt=K=>{var Vt=He(),ii=pe(Vt);{var vt=Gt=>{ug(Gt,{get thumbUrl(){return y()},get outsideDuration(){return de()},get canRewindLive(){return B()},get videoContainer(){return n(Wt)},set videoContainer(pt){N(Wt,pt,!0)}})},At=Gt=>{lg(Gt,{get store(){return a()},get uiConfig(){return et},get title(){return p()},get thumbUrl(){return y()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return z()},get adsSlotId(){return Z()},get adsParams(){return ae()},get adsAutoplayParam(){return q()},get duration(){return de()},get logoClickable(){return X()},get logoHidden(){return fe()},get logoTargetUrl(){return Bt},get nextButtonActive(){return Me()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return te()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return ue()},get supportLink(){return k()},get shadowRootContainer(){return Ke()},get outerContainerRef(){return Ve()},get fullScreenTarget(){return Y()},get showMiniTimer(){return Be()},get playerStarted(){return n(xe)},get seekToInteractive(){return me()},get playPrevChapter(){return J()},firstStart:ee,get showEndScreen(){return Fe()},get showAutoplayNext(){return ge()},get showNextPrevButtons(){return le()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Wt)},set videoContainer(pt){N(Wt,pt,!0)},get keyboardControls(){return Xe()},set keyboardControls(pt){Xe(pt)}})};V(ii,Gt=>{Yt?Gt(vt):Gt(At,!1)})}b(K,Vt)};V(Zo,K=>{re()?K(dn):K(kt,!1)})}g(xi),D(K=>{yo=ne(xi,1,"vk-vp-root svelte-3c0y7j",null,yo,K),Je(xi,oi)},[()=>({"root--miui-browser":ed.clientChecker.device.isMobile&&ed.clientChecker.browser.isMiuiBrowser,"visible-outside":Yt,"preview-track-horizontally-alinged":l()})]),b(t,xi);var Ht=U({initVideo:Pe,play:ut,pause:yt,setMuted:ye,toggleSubtitle:ot,changeSubtitle:qe,changeAudioStream:lt,hideControls:ti,showControls:ni,setVolume:fi,seekTime:yi,seekEpisodeStartTime:ro,returnFocusToEpisodes:po,setPlaybackRate:di,setAutoQualityLimits:gt,setAutoQuality:ki,toggleTrafficSaving:jt,toggleHighQuality:Tt,get sources(){return d()},set sources(K){d(K)},get store(){return a()},set store(K){a(K)},get microStoresRoot(){return u()},set microStoresRoot(K){u(K)},get videoConfig(){return f()},set videoConfig(K){f(K)},get uiConfig(){return v()},set uiConfig(K){v(K)},get title(){return p()},set title(K){p(K)},get thumbUrl(){return y()},set thumbUrl(K){y(K)},get interactiveContainer(){return w()},set interactiveContainer(K){w(K)},get interactiveController(){return x()},set interactiveController(K){x(K)},get subtitles(){return C()},set subtitles(K){C(K)},get subtitlesForcedLanguage(){return T()},set subtitlesForcedLanguage(K){T(K)},get live(){return E()},set live(K){E(K)},get preload(){return R()},set preload(K){R(K)},get autoplay(){return A()},set autoplay(K){A(K)},get volume(){return I()},set volume(K){I(K)},get muted(){return O()},set muted(K){O(K)},get fromTime(){return H()},set fromTime(K){H(K)},get canRewindLive(){return B()},set canRewindLive(K){B(K)},get showAds(){return z()},set showAds(K){z(K)},get adsSlotId(){return Z()},set adsSlotId(K){Z(K)},get adsParams(){return ae()},set adsParams(K){ae(K)},get adsAutoplayParam(){return q()},set adsAutoplayParam(K){q(K)},get duration(){return de()},set duration(K){de(K)},get logoClickable(){return X()},set logoClickable(K){X(K)},get logoHidden(){return fe()},set logoHidden(K){fe(K)},get isMobile(){return re()},set isMobile(K){re(K)},get showNextPrevButtons(){return le()},set showNextPrevButtons(K){le(K)},get nextButtonActive(){return Me()},set nextButtonActive(K){Me(K)},get prevButtonActive(){return we()},set prevButtonActive(K){we(K)},get endScreenVideoTitle(){return te()},set endScreenVideoTitle(K){te(K)},get endScreenVideoThumb(){return Ne()},set endScreenVideoThumb(K){Ne(K)},get isOneVideoPlaylist(){return ue()},set isOneVideoPlaylist(K){ue(K)},get supportLink(){return k()},set supportLink(K){k(K)},get shadowRootContainer(){return Ke()},set shadowRootContainer(K){Ke(K)},get outerContainerRef(){return Ve()},set outerContainerRef(K){Ve(K)},get fullScreenTarget(){return Y()},set fullScreenTarget(K){Y(K)},get failoverHosts(){return oe()},set failoverHosts(K){oe(K)},get showMiniTimer(){return Be()},set showMiniTimer(K){Be(K)},get saveRate(){return Ze()},set saveRate(K){Ze(K)},get showAutoplayNext(){return ge()},set showAutoplayNext(K){ge(K)},get seekToInteractive(){return me()},set seekToInteractive(K){me(K)},get playPrevChapter(){return J()},set playPrevChapter(K){J(K)},get volumeMultiplier(){return Ie()},set volumeMultiplier(K){Ie(K)},get showEndScreen(){return Fe()},set showEndScreen(K){Fe(K)},get keyboardControls(){return Xe()},set keyboardControls(K){Xe(K)}});return o(),Ht}var aw=Ee('<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 fg(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=aw();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function vg(t,e){let i=h(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");fg(t,{get style(){return n(o)}})}var lw=M('<div class="title svelte-1y9fytq"> </div>'),dw=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),cw={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 mg(t,e){W(t,cw);var i=dw(),o=_(i);{var r=d=>{var a=lw(),u=_(a,!0);g(a),D(()=>ve(u,e.title)),b(d,a)};V(o,d=>{e.title&&d(r)})}var s=P(o,2);{var l=d=>{let a=m(()=>!!e.thumbUrl);vg(d,{get isWhite(){return n(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),D(()=>Je(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var uw=M('<div class="playerError svelte-m5iv29"><!></div>'),pw={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 gg(t){W(t,pw);var e=uw(),i=_(e);ja(i,{}),g(e),b(t,e)}var Ap=require("@vkontakte/videoplayer-shared/es2018"),Hi=require("@vkontakte/videoplayer-shared/es2018"),Wc=require("@vkontakte/videoplayer-core/es2018"),sd=require("@vkontakte/videoplayer-statistics/es2018");var yp=require("@vkontakte/videoplayer-shared/es2018"),$p=class{constructor(){this.subscription=new yp.Subscription,this.logger=new yp.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[r,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,s)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=be(e.state.currentPlaybackRate$),r=be(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var id=require("@vkontakte/videoplayer-shared/es2018");var fw=Ee('<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 hg(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=fw();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var vw=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),mw={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 _g(t,e){F(e,!0),W(t,mw);let[i,o]=De(),r=()=>S(u,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=he(),d=Rt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=m(()=>r()&&v("pip_dummy_title")),y=bp(d.view);var w=vw();let x;var C=_(w);let T;var E=_(C);hg(E,{}),g(C);var R=P(C,2),A=_(R,!0);g(R),g(w),D((I,O)=>{x=ne(w,1,"player-pip-dummy svelte-1pbsod4",null,x,I),Je(w,y),T=ne(C,1,"dummy-image svelte-1pbsod4",null,T,O),ve(A,n(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),b(t,w),U(),o()}var gw=Object.defineProperty,hw=(t,e,i)=>e in t?gw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,td=(t,e,i)=>hw(t,typeof e!="symbol"?e+"":e,i),_w=460,bw=280,Rc=class{constructor({enabled:e=!0}={enabled:!0}){td(this,"playerDomElement"),td(this,"playerParentShadowRoot"),td(this,"playerDummyElement"),td(this,"svelteContext"),td(this,"pipWindow"),td(this,"info",{isActive$:new id.ValueSubject(!1),isEnabled$:new id.ValueSubject(!1),type:1}),this.info.isEnabled$=new id.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,id.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:_w,height:bw,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
408
- `),r=document.createElement("style");r.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Qr(_g,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Sa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function __(t){return t instanceof Rc}var xp=class{static getLatestSupportedVersion(e){let i=new La(e),o=new Rc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Nc(t,e){var r,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(r=e[l])!=null?r:t[l])!=null?s:void 0;return o}var b_="Inner error. Unexpectedly root annotation container null reference exception",$_="Annotation with such name already exists",y_="Annotation with such name does not exist";var od=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var nd=require("@vkontakte/videoplayer-shared/es2018"),$w="1",yw=100,wp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new nd.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,nd.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"},yw);this.subscriptions.add((0,nd.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new od(b_);if(this.annotations.has(e))throw new od($_);i.style.zIndex=(o=i.style.zIndex)!=null?o:$w,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 od(y_);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 r=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||s<0||s+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var il=require("@vkontakte/videoplayer-shared/es2018"),ln=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,il.assertNonNullable)(e),(0,il.assertNonNullable)(i),(0,il.assertNonNullable)(r),r.interactiveData&&(0,il.assertNonNullable)(o),this.subscription=new il.Subscription,this.subscription}};var Oc=class extends ln{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var Dc=class extends ln{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:s}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,v=be(f),p=()=>v&&be(u);return o.add(u.subscribe(y=>{if(!v)return;let w=be(l);be(a)?this.state$.set(y):w!==null&&this.state$.set(!w||y)})),o.add(a.subscribe(y=>{this.state$.set(!y||p())})),o.add(l.subscribe(y=>{if(y===null)return;let w=be(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!y)})),o}};var Bc=class extends ln{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=se("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var x_=require("@vkontakte/videoplayer-shared/es2018"),bg=se(!1),Sp=null,Hc=class extends ln{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...bg,set:(i,o=!1)=>{i!==be(bg)&&(this.clearTimeout(),bg.set(i),!i&&Sp&&(Sp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,a=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(a.subscribe(v=>{be(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,x_.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:y})=>{var w,x;if(!(!v||!(y!=null&&y.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Sp===null&&(Sp=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(x=(w=r.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||x.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Cp=require("@vkontakte/videoplayer-shared/es2018");var Fc=class extends ln{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...se(null),toggle:Cp.noop};this.checkIfShouldHide=i=>ks(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(be(l)))return;let a=be(this.state$),{isEnded$:u,playbackState$:f}=r.state,{disabledControls$:v}=r.ui.controls,p=be(u),y=be(f);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),v.remove(Af),!p&&this.graphMadePause&&r.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{await(s==null?void 0:s.toggleGraphView(!0)),this.state$.set(!0),v.add(Af),!p&&this.graphMadePause&&r.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Cp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}})),o}};var $g=require("@vkontakte/videoplayer-shared/es2018"),Uc=class extends ln{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:se(!1),isEnabled$:se(!1),type$:se(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new $g.ValueSubject(!1),isEnabled$:new $g.ValueSubject(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var Ep=require("@vkontakte/videoplayer-shared/es2018");var Tp=require("@vkontakte/videoplayer-shared/es2018"),w_=({maxShowCount:t,timeout:e})=>{let i=[t!==0?xw({maxCount:t}):void 0,e!==0?ww({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},xw=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Tp.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},ww=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Tp.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>Tp.safeStorage.set(e,JSON.stringify(s)),r=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&r(s),d}else return!0}}};var zc=class extends ln{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:se({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=w_({maxShowCount:s,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Ep.filterChanged)(),(0,Ep.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var S_=()=>[Oc,Dc,Bc,Hc,Fc,Uc,zc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var rd=require("@vkontakte/videoplayer-shared/es2018");var Ip=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 Sw=M('<div class="root svelte-9ubj1t"><!></div>'),Cw={hash:"svelte-9ubj1t",code:".root.svelte-9ubj1t {position:absolute;display:flex;inset:0;align-items:center;justify-content:center;pointer-events:none;z-index:1;}"};function yg(t,e){F(e,!0),W(t,Cw);let i=null,o=Q(null);ze(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(a){e.playbackStatusShow&&N(o,a?"prev":"next",!0)}var s=He(),l=pe(s);{var d=a=>{var u=He(),f=pe(u);ws(f,()=>n(o),v=>{var p=Sw(),y=_(p);let w=m(()=>n(o)==="prev");Vc(y,{get duration(){return e.animationDuration},get Icon(){return gc},get isPrev(){return n(w)}}),g(p),b(v,p)}),b(a,u)};V(l,a=>{e.playbackStatusShow&&n(o)&&a(d)})}return b(t,s),U({startVideoChangedAnimation:r})}var Tw=Object.defineProperty,Ew=(t,e,i)=>e in t?Tw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Zt=(t,e,i)=>Ew(t,typeof e!="symbol"?e+"":e,i),Iw={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Hi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Wc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},zn=Q(void 0),xg=ai({animationDuration:0,playbackStatusShow:!1}),kp=class extends HTMLElement{constructor(){super(),Zt(this,"svelteStubComponent"),Zt(this,"svelteRootComponent"),Zt(this,"sveltePersistentLayerComponent"),Zt(this,"svelteErrorComponent"),Zt(this,"store"),Zt(this,"microStoresRoot"),Zt(this,"statistics"),Zt(this,"sentry"),Zt(this,"_shadowRoot"),Zt(this,"playerContainer"),Zt(this,"rootContainer"),Zt(this,"shadowRootContainer"),Zt(this,"playerId"),Zt(this,"uiConfig"),Zt(this,"coreConfig"),Zt(this,"statisticsConfig"),Zt(this,"interactiveController"),Zt(this,"interactiveContainer"),Zt(this,"graphMadePause"),Zt(this,"currentPlayingVideoIndex",0),Zt(this,"needToRepeatPlaylist",!1),Zt(this,"videoConfig"),Zt(this,"pictureInPictureApi"),Zt(this,"mediaSessionApi"),Zt(this,"unsubscribePlayerPhaseSubscription"),Zt(this,"logger"),Zt(this,"log"),Zt(this,"subscription"),Zt(this,"interactiveSubscription"),Zt(this,"annotationsApi"),Zt(this,"slotsApi"),Zt(this,"focusManager"),Zt(this,"prevIsid"),Zt(this,"isInited",!1),Zt(this,"internalsExposure",null),Zt(this,"shadowDOMCallbacksDisabled",!1),Zt(this,"fatalError$",new Ap.ValueSubject(null)),Zt(this,"createOneStat",(e,i={})=>{var o,r,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:y,isMobile:w,isTouch:x,refDomain:C,deviceId:T,interactiveData:E}=Nc(this.videoConfig,i),R=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,A=(s=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?s:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:O=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new sd.OneStat({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=y&&!this.interactiveController)!=null?l:!1,mobile:x!=null?x:w,clip:O,refDomain:C,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview",...R&&(!this.isInited||A)&&{projectId:Number(R)}},{refreshAuthToken:p,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(B){console.error(B),this.log({message:B.message})}}),rd.devNull.create("ui"),this.logger=new Hi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Hi.Subscription,this.interactiveSubscription=new Hi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Qr(gg,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=ai({title:o,thumbUrl:r}),l={target:this.playerContainer,props:s};this.svelteStubComponent=Qr(mg,l),this.sveltePersistentLayerComponent=Qr(yg,{target:this.playerContainer,props:xg})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;xg.animationDuration=e,xg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),rd.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:r,refreshStatAuthToken:s}=Nc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new sd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var r,s,l,d,a,u,f,v,p,y;if(!this.videoConfig)return;let{albumId:w,statPlace:x,statAuthToken:C,preload:T,autoplay:E,volume:R,muted:A,fromTime:I,canRewindLive:O,supportLink:H,showAds:B,adsSlotId:z,adsParams:Z={},adsAutoplayParam:ae,interfaceLanguage:q,isCyrillicRelatedInterface:de,logoClickable:X,logoHidden:fe,isMobile:re,isTouch:le,isAudioDisabled:Me,isLiveCatchUpMode:we,fullScreenTarget:te,failoverHosts:Ne,canDownload:ue,callbacks:k,interactiveData:Ke,showThumbTimer:Ve,additionalButtons:Y=[],additionalSettingsMenuItems:oe=[],additionalContextMenuItems:Be=[],repeat:Ze,loop:me,saveRate:J,volumeMultiplier:Ie,showEndScreen:ge,showAutoplayNext:Fe,mediascopePixels:Xe}=Nc(this.videoConfig,i),{sources:Ge,title:ct,thumbUrl:et,unitedVideoId:Bt,isClip:rt=!1,duration:Dt,adsParams:qt={},videoEpisodes:Et,previewThumbsData:ei,subtitles:Wt,subtitlesForcedLanguage:Se,live:xe,adsExternalApi:ee}=e;if(!Ge&&!xe){let di=new Error("empty sources and live");this.fatalError$.next(di),(r=k.onCrashed)==null||r.call(k,di.message);return}let Ce={...Z,...qt},Pe=this.getNextVideoInfo(),It={sources:Ge,title:ct,thumbUrl:et,subtitles:Wt,subtitlesForcedLanguage:Se,unitedVideoId:Bt,isClip:rt,live:xe,albumId:w,statPlace:x,autoplay:E,muted:A,volume:R,fromTime:I,canRewindLive:O,showAds:B,adsSlotId:z,adsParams:Ce,adsAutoplayParam:ae,duration:Dt,logoClickable:X,logoHidden:fe,isTouch:le!=null?le:re,repeat:Ze,loop:me,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Pe.nextVideoTitle,endScreenVideoThumb:Pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Oe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(It)}`});let ut=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),yt=(ut==null?void 0:ut.oneStat)||this.createOneStat(e,i),ye=this.createThinOneStat(e,i),ot;Xe&&(ot=new sd.MediascopePixel({pixels:Xe})),(yt||ye)&&(this.statistics=new rp(yt,ye,ot,ut==null?void 0:ut.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ma(this.uiConfig.sentry,{version:ka,env:ku},{movieId:Bt,albumId:w,place:x,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:le!=null?le:re,clip:rt}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...Ma.getInstance()};let lt=!!Ke,ti=[],ni="tooltip_interactive_go_back_disabled_first";if(lt&&this.interactiveController){let di=this.interactiveController.state.isInitialChapter$.getValue(),gt=this.interactiveController.getHistoryState();di&&ti.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ti.push("SEEK_TO_INTERACTIVE_BUTTON"),gt.hasPrevChapter$.getValue()||(ti.push("PLAY_PREV_CHAPTER_BUTTON"),di||(gt.isGoBackLimited$.getValue()?ni="tooltip_interactive_go_back_disabled_limit":ni="tooltip_interactive_go_back_disabled"))}let fi=()=>{var di;this.isInited=!1,this.prevIsid=void 0;let gt=(o==null?void 0:o.info.isEnded$.getValue())&&((di=this.interactiveController)==null?void 0:di.state.isEndChapter$.getValue());k.onReplayInteractiveVideo&&!gt?k.onReplayInteractiveVideo():this.replayInteractiveVideo()},yi=Ze&&this.videoConfig.videos.length===1;this.store=N0({player:o,interfaceLanguage:q,isCyrillicRelatedInterface:de,videoId:Bt,isClip:rt,isLiveCatchUpMode:we,isAudioDisabled:Me,statAuthToken:C,callbacks:k,webApi:Oe,videoEpisodes:Et,previewThumbsData:ei,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ti,isInteractive:lt,saveRate:J,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:!!((y=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?Y:[],additionalSettingsMenuItems:oe!=null?oe:[],additionalContextMenuItems:Be!=null?Be:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:di=>{var gt;return(gt=this.sveltePersistentLayerComponent)==null?void 0:gt.startVideoChangedAnimation(di)},looped:this.uiConfig.features.useLoopSetting?me:yi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:ro}=this.microStoresRoot=S_(),po=()=>{var di,gt,ki,jt,Tt,oi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(St=>{var je;return(je=k==null?void 0:k.onCurrentFormatChanged)==null?void 0:je.call(k,St)})),this.subscription.add(ro.interactiveControlsOpacity$.subscribe(St=>{var je;St!==null&&((je=this==null?void 0:this.interactiveController)==null||je.setDisabledControls(St))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(St=>{var je;return(je=k==null?void 0:k.onThroughputEstimationChanged)==null?void 0:je.call(k,St)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(St=>{var je;return(je=k==null?void 0:k.onTrafficSavingEnabledChanged)==null?void 0:je.call(k,St)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(St=>{var je;return(je=k==null?void 0:k.onHighQualityEnabledChanged)==null?void 0:je.call(k,St)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(St=>{var je;return(je=k==null?void 0:k.onAutoQualityEnabledChanged)==null?void 0:je.call(k,!!St)})),this.subscription.add(new Hi.Observable(St=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(je=>St.next(je)))}).pipe((0,Hi.skip)(1)).subscribe(St=>{var je;return(je=k==null?void 0:k.onCurrentPlaybackRateChanged)==null?void 0:je.call(k,St)})),this.subscription.add(this.store.state.volume$.subscribe(St=>{var je;return(je=k==null?void 0:k.onVolumeChange)==null?void 0:je.call(k,St)})),this.subscription.add(this.store.state.muted$.subscribe(St=>{var je,xi,yo,Zo;if(St)(je=k==null?void 0:k.onMute)==null||je.call(k);else{let dn=(yo=((xi=this.store)==null?void 0:xi.state.volume$)&&be(this.store.state.volume$))!=null?yo:0;(Zo=k==null?void 0:k.onUnmute)==null||Zo.call(k,dn)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(St=>{var je;return(je=k==null?void 0:k.onVideoBitrateChanged)==null?void 0:je.call(k,St)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(St=>{var je;let xi=(je=this.store)==null?void 0:je.ui.controls.disabledControls$;xi&&(St&&!xi.includes(Hd)&&xi.add(Hd),St||xi.remove(Hd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async St=>{var je;if(!Wc.clientChecker.browser.isSamsungBrowser||!St||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((je=this.videoConfig)==null?void 0:je.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(St=>{var je;return(je=k==null?void 0:k.onVSIDChanged)==null?void 0:je.call(k,St)})),this.initMediaSession(),N(zn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ge,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ct,thumbUrl:et,subtitles:Wt,subtitlesForcedLanguage:Se,live:xe,preload:T,autoplay:E,muted:A,volume:R,fromTime:I,canRewindLive:O,supportLink:H,showAds:B,adsSlotId:z,adsParams:Ce,adsAutoplayParam:ae,duration:Dt,logoClickable:X,logoHidden:fe,isMobile:le!=null?le:re,failoverHosts:Ne,fullScreenTarget:te,saveRate:J,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ve,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Pe.nextVideoTitle,endScreenVideoThumb:Pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ie,showEndScreen:ge,showAutoplayNext:Fe,adsExternalApi:ee},!0);let Yt={target:this.playerContainer,props:n(zn)};this.svelteRootComponent=Qr(pg,Yt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ki=(gt=(di=this.videoConfig)==null?void 0:di.callbacks)==null?void 0:gt.onInited)==null||ki.call(gt)),(jt=this.internalsExposure)==null||jt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((oi=(Tt=this.videoConfig)==null?void 0:Tt.callbacks)!=null&&oi.onDevNullLog)?rd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):rd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Wc.clientChecker.isInited$.subscribe(di=>{di&&(console.log("UI SDK async start"),po())}):po()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,Hi.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{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,r,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?be(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:p,vkVideoLoader:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:x}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(x.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let C=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(f==null?void 0:f.title)||T.config.title};let E=C?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),C&&(C=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var R,A,I,O,H,B;if(!this.store||!this.microStoresRoot)return;let z=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Fd)),T==="action-choice-canceled"){let Z=be(this.store.state.isPlaying$)||z;if(((I=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?I:(A=this.videoConfig)!=null&&A.isMobile)&&Z){this.store.ui.interactiveHideMobileControls.set(!0);return}(B=(O=this.videoConfig)==null?void 0:(H=O.callbacks).onDisabledInteractiveClick)==null||B.call(H)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:E})=>{this.store&&T==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(Fd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var R,A,I;E.length&&((I=(A=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||I.call(A,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,R,A;(A=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveChapterChanged)==null||A.call(R,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,R,A;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,r,s,l,d,a,u,f,v,p,y,w,x,C,T,E,R,A,I,O,H,B,z,Z,ae,q,de,X;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let fe=new Error("empty videos");this.fatalError$.next(fe),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,fe.message);return}else this.fatalError$.next(null);if(this.videoConfig=Nc(Iw,(0,Hi.cloneDeepWith)(e,fe=>fe instanceof HTMLElement?fe:void 0)),this.playerId=(0,Hi.getPlayerId)(e.playerId),this.uiConfig=p1((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),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&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Hi.InternalsExposure("ui",this.playerId))),rd.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,Ap.now)()]}),(0,Hi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),(0,Hi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(C=(x=this.uiConfig.features.dpip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?C:!0),this.uiConfig.ads.paramsOverride={preview:(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(R=(E=this.uiConfig.isMobile)!=null?E:this.videoConfig.isTouch)!=null?R: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=(O=this.uiConfig.ads.slot)!=null?O:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((H=this.uiConfig.showLogo)!=null?H:!this.videoConfig.logoHidden),(B=this.videoConfig).canRewindLive&&(B.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Z=this.uiConfig.features.endScreen)!=null?Z:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(ae=this.uiConfig.features.autoplayNext)!=null?ae:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(q=this.uiConfig.features.nextPrevButtons)!=null?q:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((de=this.videoConfig.videos)!=null&&de[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let fe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=xp.getLatestSupportedVersion(fe):this.pictureInPictureApi=new La(fe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new $p:void 0,this.slotsApi=this.uiConfig.features.slots?new gp:void 0,this.annotationsApi=this.uiConfig.features.annotations?new wp(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]),__(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(X=this.slotsApi)==null||X.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Ip(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(zn)&&(n(zn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(zn).nextButtonActive=this.isNextButtonActive(),n(zn).prevButtonActive=this.isPrevButtonActive(),n(zn).endScreenVideoTitle=o.nextVideoTitle,n(zn).endScreenVideoThumb=o.nextVideoThumb,n(zn).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",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,r;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"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(zn)&&(n(zn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(zn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(zn).nextButtonActive=this.isNextButtonActive(),n(zn).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,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(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;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((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.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||r(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=be(this.store.state.positionExact$),l=be(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Hi.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),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)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Sa(e)}};var ad=require("@vkontakte/videoplayer-shared/es2018"),Pp=require("@vkontakte/videoplayer-core/es2018"),kw=()=>{window.customElements.define("vk-video-player",kp)};
407
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.vk-vp-root.svelte-3c0y7j .out-of-view {position:absolute !important;left:-1000vh !important;}.vk-vp-root.svelte-3c0y7j .icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function pg(t,e){F(e,!0),W(t,rw);let[i,o]=Oe(),r=()=>S(qt,"$isLive$",i),s=()=>S(wt,"$availableSubtitlesList$",i),l=()=>S(Je,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),a=h(e,"store",7),u=h(e,"microStoresRoot",7),f=h(e,"videoConfig",7),v=h(e,"uiConfig",7),p=h(e,"title",7),y=h(e,"thumbUrl",7),w=h(e,"interactiveContainer",7),x=h(e,"interactiveController",7),C=h(e,"subtitles",7),T=h(e,"subtitlesForcedLanguage",7),E=h(e,"live",7),R=h(e,"preload",7),A=h(e,"autoplay",7),I=h(e,"volume",7,void 0),O=h(e,"muted",7,void 0),H=h(e,"fromTime",7),B=h(e,"canRewindLive",7),z=h(e,"showAds",7),Z=h(e,"adsSlotId",7,void 0),se=h(e,"adsParams",7,void 0),q=h(e,"adsAutoplayParam",7,void 0),de=h(e,"duration",7,void 0),X=h(e,"logoClickable",7),ve=h(e,"logoHidden",7),re=h(e,"isMobile",7),ae=h(e,"showNextPrevButtons",7,!1),Ae=h(e,"nextButtonActive",7,!1),$e=h(e,"prevButtonActive",7,!1),J=h(e,"endScreenVideoTitle",7,void 0),De=h(e,"endScreenVideoThumb",7,void 0),ue=h(e,"isOneVideoPlaylist",7,!1),k=h(e,"supportLink",7),Ge=h(e,"shadowRootContainer",7),Pe=h(e,"outerContainerRef",7),j=h(e,"fullScreenTarget",7,void 0),ie=h(e,"failoverHosts",7,void 0),Be=h(e,"showMiniTimer",7,!1),Ze=h(e,"saveRate",7),me=h(e,"seekToInteractive",7,el.noop),te=h(e,"playPrevChapter",7,el.noop),Ie=h(e,"volumeMultiplier",7),xe=h(e,"showAutoplayNext",7),He=h(e,"showEndScreen",7,!0),Xe=h(e,"keyboardControls",15,void 0),{subscribers:je,stores:Ke}=u();f1(v());let Ye=Rt(),Dt=v().logoLink,rt=a().ui.debugPanelVisible,Bt=a().ui.playerSize,qt=a().state.isLive$,Jt=a().state.isInteractive&&Jl.clientChecker.device.isAndroid,Wt=Q(void 0),Se=null,ye=Q(!1);a().getAdmanWrapper().init({switchFromAdsToVideo:a().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:a().actions.internal.switchFromVideoToAds,setMuted:a().actions.external.setMuted},a().ads,{vsid:a().vsid}),S1(a(),Ke),qe(()=>{var K,kt;a().ui.isMobile.set(re()),(kt=(K=f().callbacks)==null?void 0:K.onDomReady)==null||kt.call(K)});let ee=(K=!1)=>{N(ye,!0),K?a().actions.external.firstStart(z()):a().actions.internal.firstStart(z())},Ce=()=>{if(Ye.features.qualityDetailsSubMenuEnabled){let K=q1(a().videoId);if(K)switch(K.type){case"high_quality":a().actions.internal.setHighQualityEnabled(!0,K.appliesTo);break;case"traffic_saving":a().actions.internal.setTrafficSavingEnabled(!0,K.appliesTo);break;case"exact_quality":a().actions.internal.setQuality(K.quality);break}}else{Q1(a().videoId),Ff()&&a().actions.internal.setTrafficSavingEnabled(!0);let kt=Of(a().videoId);kt&&a().actions.internal.setQuality(kt)}};function Le(K){var jt,pt,Hi;let kt=d()||K;kt&&a().initVideo({container:n(Wt),sources:kt,failoverHosts:ie(),subtitles:C(),subtitlesForcedLanguage:T(),volumeMultiplier:Ie()});let ii=el.safeStorage.get(Dd)==="true";rt.set(ii),H()>0&&a().actions.external.seekTime(H());let ht=re()?Ye.volumeDefault:(pt=(jt=I())!=null?jt:Au())!=null?pt:Ye.volumeDefault,At=(Hi=O())!=null?Hi:H1();if(a().actions.external.setVolume(ht),a().actions.external.setMuted(At),a().getAdmanWrapper().setInitialVolume(At?0:ht),Ce(),Ye.features.saveRate&&Ze()){let Fi=z1();Fi&&!r()&&a().actions.internal.setPlaybackRate(Fi)}if(xe()){let Fi=K1();Fi&&a().actions.internal.setAutoplayNextEnabled(Fi)}a().ui.isAutoplay.set(A()),A()&&ee(),R()&&Ye.features.preload&&a().actions.internal.preload()}let Mt=K=>{if(window.ResizeObserver){let kt,ii;Se=new ResizeObserver((0,el.throttleFn)(ht=>{let At=ht[0];if(At.contentBoxSize){let jt=Array.isArray(At.contentBoxSize)?At.contentBoxSize[0]:At.contentBoxSize;kt=jt.inlineSize,ii=jt.blockSize}else At.contentRect&&(kt=At.contentRect.width,ii=At.contentRect.height);Bt.set({width:kt,height:ii})},300)),Se.observe(K)}Bt.set({width:K.clientWidth,height:K.clientHeight})},Ve=()=>{document.hidden&&a().actions.external.stop()};Ot(()=>{var ii,ht,At,jt;Jt&&document.addEventListener("visibilitychange",Ve),Ye.debugLog&&a().actions.internal.startLogging(),Mt(n(Wt));let K=je.map(pt=>pt.init({store:a(),microStores:Ke,config:f(),interactiveController:x(),uiConfig:v()})),kt=()=>{Jt&&document.removeEventListener("visibilitychange",Ve),Se==null||Se.disconnect(),K.forEach(pt=>pt.unsubscribe()),a().destroy()};return((ii=E())==null?void 0:ii.status)==="upcoming"?(a().actions.internal.setLiveWaitingStart(!0),kt):((ht=E())==null?void 0:ht.status)==="waiting"?(a().actions.internal.setLiveWaitingRecover(!0),kt):(((At=E())==null?void 0:At.status)==="finished"||((jt=E())==null?void 0:jt.status)==="postlive")&&!(d()&&(0,Jl.areValidLiveRecordSources)(d()))?(a().actions.internal.setLiveWaitingRecord(!0),kt):(Le(),kt)});function lt(){n(ye)?a().actions.external.play():ee(!0)}function Tt(){a().actions.external.pause()}function we(K){a().actions.external.setMuted(K)}function st(){a().actions.external.toggleSubtitle()}function ze(K,kt){a().actions.external.changeSubtitle(K,kt)}function ut(K){a().actions.external.changeAudioStream(K)}function Qt(){var K;(K=a().webApi.slotsApi)!=null&&K.haveSlots()&&a().actions.external.hideControls()}function _i(){var K;(K=a().webApi.slotsApi)!=null&&K.haveSlots()&&a().actions.external.showControls()}function pi(K){re()||K>=0&&K<=1&&a().actions.external.setVolume(K)}function yi(K){a().actions.internal.seekTime(K,h_.SeekAction.UNKNOWN)}function oo(K){a().actions.external.seekEpisodeStartTime(K)}function no(){a().actions.external.returnFocusToEpisodes()}function di(K){a().actions.external.setPlaybackRate(K)}function gt(K){a().actions.external.setAutoQualityLimits(K)}function bi(){a().actions.external.setQuality("auto")}function li(K){a().actions.external.setTrafficSavingEnabled(K)}function $t(K){a().actions.external.setHighQualityEnabled(K)}let fi=_p(Ye.view),Yt=f().playerView==="preview",wt=a().state.availableSubtitlesList$;if(Ye.features.initSubtitles){let K=!1;qe(()=>{var kt;if(!K&&s().length){K=!0;let ii;if(Ye.features.userVideoPrefs&&a().videoId){let At=Vu(Ye.userSalt,String(a().videoId));At!=null&&At.subtitleTrackId&&(ii=s().find(jt=>jt.value===At.subtitleTrackId))}let ht=(kt=T())!=null?kt:zf();ht&&(ii=s().find(At=>At.language===ht)),a().actions.internal.setSubtitle(ii)}})}let Je=a().ui.isPreviewTrackHorizontallyAligned;var Ti=nw();let yo;var Wo=_(Ti);{var an=K=>{cg(K,{get store(){return a()},get uiConfig(){return Ye},get thumbUrl(){return y()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return z()},get adsSlotId(){return Z()},get adsParams(){return se()},get adsAutoplayParam(){return q()},get duration(){return de()},get logoClickable(){return X()},get logoHidden(){return ve()},get logoTargetUrl(){return Dt},get nextButtonActive(){return Ae()},get prevButtonActive(){return $e()},get endScreenVideoTitle(){return J()},get endScreenVideoThumb(){return De()},get isOneVideoPlaylist(){return ue()},get supportLink(){return k()},get shadowRootContainer(){return Ge()},get outerContainerRef(){return Pe()},get fullScreenTarget(){return j()},get showMiniTimer(){return Be()},get playerStarted(){return n(ye)},get seekToInteractive(){return me()},get playPrevChapter(){return te()},firstStart:ee,seekTime:yi,get showEndScreen(){return He()},get showAutoplayNext(){return xe()},get showNextPrevButtons(){return ae()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Wt)},set videoContainer(kt){N(Wt,kt,!0)}})},It=K=>{var kt=Ue(),ii=pe(kt);{var ht=jt=>{ug(jt,{get thumbUrl(){return y()},get outsideDuration(){return de()},get canRewindLive(){return B()},get videoContainer(){return n(Wt)},set videoContainer(pt){N(Wt,pt,!0)}})},At=jt=>{lg(jt,{get store(){return a()},get uiConfig(){return Ye},get title(){return p()},get thumbUrl(){return y()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return z()},get adsSlotId(){return Z()},get adsParams(){return se()},get adsAutoplayParam(){return q()},get duration(){return de()},get logoClickable(){return X()},get logoHidden(){return ve()},get logoTargetUrl(){return Dt},get nextButtonActive(){return Ae()},get prevButtonActive(){return $e()},get endScreenVideoTitle(){return J()},get endScreenVideoThumb(){return De()},get isOneVideoPlaylist(){return ue()},get supportLink(){return k()},get shadowRootContainer(){return Ge()},get outerContainerRef(){return Pe()},get fullScreenTarget(){return j()},get showMiniTimer(){return Be()},get playerStarted(){return n(ye)},get seekToInteractive(){return me()},get playPrevChapter(){return te()},firstStart:ee,get showEndScreen(){return He()},get showAutoplayNext(){return xe()},get showNextPrevButtons(){return ae()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Wt)},set videoContainer(pt){N(Wt,pt,!0)},get keyboardControls(){return Xe()},set keyboardControls(pt){Xe(pt)}})};V(ii,jt=>{Yt?jt(ht):jt(At,!1)})}b(K,kt)};V(Wo,K=>{re()?K(an):K(It,!1)})}g(Ti),D(K=>{yo=ne(Ti,1,"vk-vp-root svelte-3c0y7j",null,yo,K),tt(Ti,fi)},[()=>({"root--miui-browser":Jl.clientChecker.device.isMobile&&Jl.clientChecker.browser.isMiuiBrowser,"visible-outside":Yt,"preview-track-horizontally-alinged":l()})]),b(t,Ti);var Ht=U({initVideo:Le,play:lt,pause:Tt,setMuted:we,toggleSubtitle:st,changeSubtitle:ze,changeAudioStream:ut,hideControls:Qt,showControls:_i,setVolume:pi,seekTime:yi,seekEpisodeStartTime:oo,returnFocusToEpisodes:no,setPlaybackRate:di,setAutoQualityLimits:gt,setAutoQuality:bi,toggleTrafficSaving:li,toggleHighQuality:$t,get sources(){return d()},set sources(K){d(K)},get store(){return a()},set store(K){a(K)},get microStoresRoot(){return u()},set microStoresRoot(K){u(K)},get videoConfig(){return f()},set videoConfig(K){f(K)},get uiConfig(){return v()},set uiConfig(K){v(K)},get title(){return p()},set title(K){p(K)},get thumbUrl(){return y()},set thumbUrl(K){y(K)},get interactiveContainer(){return w()},set interactiveContainer(K){w(K)},get interactiveController(){return x()},set interactiveController(K){x(K)},get subtitles(){return C()},set subtitles(K){C(K)},get subtitlesForcedLanguage(){return T()},set subtitlesForcedLanguage(K){T(K)},get live(){return E()},set live(K){E(K)},get preload(){return R()},set preload(K){R(K)},get autoplay(){return A()},set autoplay(K){A(K)},get volume(){return I()},set volume(K){I(K)},get muted(){return O()},set muted(K){O(K)},get fromTime(){return H()},set fromTime(K){H(K)},get canRewindLive(){return B()},set canRewindLive(K){B(K)},get showAds(){return z()},set showAds(K){z(K)},get adsSlotId(){return Z()},set adsSlotId(K){Z(K)},get adsParams(){return se()},set adsParams(K){se(K)},get adsAutoplayParam(){return q()},set adsAutoplayParam(K){q(K)},get duration(){return de()},set duration(K){de(K)},get logoClickable(){return X()},set logoClickable(K){X(K)},get logoHidden(){return ve()},set logoHidden(K){ve(K)},get isMobile(){return re()},set isMobile(K){re(K)},get showNextPrevButtons(){return ae()},set showNextPrevButtons(K){ae(K)},get nextButtonActive(){return Ae()},set nextButtonActive(K){Ae(K)},get prevButtonActive(){return $e()},set prevButtonActive(K){$e(K)},get endScreenVideoTitle(){return J()},set endScreenVideoTitle(K){J(K)},get endScreenVideoThumb(){return De()},set endScreenVideoThumb(K){De(K)},get isOneVideoPlaylist(){return ue()},set isOneVideoPlaylist(K){ue(K)},get supportLink(){return k()},set supportLink(K){k(K)},get shadowRootContainer(){return Ge()},set shadowRootContainer(K){Ge(K)},get outerContainerRef(){return Pe()},set outerContainerRef(K){Pe(K)},get fullScreenTarget(){return j()},set fullScreenTarget(K){j(K)},get failoverHosts(){return ie()},set failoverHosts(K){ie(K)},get showMiniTimer(){return Be()},set showMiniTimer(K){Be(K)},get saveRate(){return Ze()},set saveRate(K){Ze(K)},get showAutoplayNext(){return xe()},set showAutoplayNext(K){xe(K)},get seekToInteractive(){return me()},set seekToInteractive(K){me(K)},get playPrevChapter(){return te()},set playPrevChapter(K){te(K)},get volumeMultiplier(){return Ie()},set volumeMultiplier(K){Ie(K)},get showEndScreen(){return He()},set showEndScreen(K){He(K)},get keyboardControls(){return Xe()},set keyboardControls(K){Xe(K)}});return o(),Ht}var sw=Ee('<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 fg(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=sw();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function vg(t,e){let i=h(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");fg(t,{get style(){return n(o)}})}var aw=M('<div class="title svelte-1y9fytq"> </div>'),lw=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),dw={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 mg(t,e){W(t,dw);var i=lw(),o=_(i);{var r=d=>{var a=aw(),u=_(a,!0);g(a),D(()=>fe(u,e.title)),b(d,a)};V(o,d=>{e.title&&d(r)})}var s=P(o,2);{var l=d=>{let a=m(()=>!!e.thumbUrl);vg(d,{get isWhite(){return n(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),D(()=>tt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var cw=M('<div class="playerError svelte-m5iv29"><!></div>'),uw={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 gg(t){W(t,uw);var e=cw(),i=_(e);Ga(i,{}),g(e),b(t,e)}var kp=require("@vkontakte/videoplayer-shared/es2018"),Bi=require("@vkontakte/videoplayer-shared/es2018"),zc=require("@vkontakte/videoplayer-core/es2018"),rd=require("@vkontakte/videoplayer-statistics/es2018");var $p=require("@vkontakte/videoplayer-shared/es2018"),bp=class{constructor(){this.subscription=new $p.Subscription,this.logger=new $p.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[r,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,s)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=be(e.state.currentPlaybackRate$),r=be(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var td=require("@vkontakte/videoplayer-shared/es2018");var pw=Ee('<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 hg(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=pw();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var fw=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),vw={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 _g(t,e){F(e,!0),W(t,vw);let[i,o]=Oe(),r=()=>S(u,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=ge(),d=Rt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=m(()=>r()&&v("pip_dummy_title")),y=_p(d.view);var w=fw();let x;var C=_(w);let T;var E=_(C);hg(E,{}),g(C);var R=P(C,2),A=_(R,!0);g(R),g(w),D((I,O)=>{x=ne(w,1,"player-pip-dummy svelte-1pbsod4",null,x,I),tt(w,y),T=ne(C,1,"dummy-image svelte-1pbsod4",null,T,O),fe(A,n(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),b(t,w),U(),o()}var mw=Object.defineProperty,gw=(t,e,i)=>e in t?mw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ed=(t,e,i)=>gw(t,typeof e!="symbol"?e+"":e,i),hw=460,_w=280,Vc=class{constructor({enabled:e=!0}={enabled:!0}){ed(this,"playerDomElement"),ed(this,"playerParentShadowRoot"),ed(this,"playerDummyElement"),ed(this,"svelteContext"),ed(this,"pipWindow"),ed(this,"info",{isActive$:new td.ValueSubject(!1),isEnabled$:new td.ValueSubject(!1),type:1}),this.info.isEnabled$=new td.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,td.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:hw,height:_w,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
408
+ `),r=document.createElement("style");r.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Ur(_g,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(wa(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 __(t){return t instanceof Vc}var yp=class{static getLatestSupportedVersion(e){let i=new Ma(e),o=new Vc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Rc(t,e){var r,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(r=e[l])!=null?r:t[l])!=null?s:void 0;return o}var b_="Inner error. Unexpectedly root annotation container null reference exception",$_="Annotation with such name already exists",y_="Annotation with such name does not exist";var id=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var od=require("@vkontakte/videoplayer-shared/es2018"),bw="1",$w=100,xp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new od.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,od.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"},$w);this.subscriptions.add((0,od.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new id(b_);if(this.annotations.has(e))throw new id($_);i.style.zIndex=(o=i.style.zIndex)!=null?o:bw,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 id(y_);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 r=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||s<0||s+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var tl=require("@vkontakte/videoplayer-shared/es2018"),sn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,tl.assertNonNullable)(e),(0,tl.assertNonNullable)(i),(0,tl.assertNonNullable)(r),r.interactiveData&&(0,tl.assertNonNullable)(o),this.subscription=new tl.Subscription,this.subscription}};var Nc=class extends sn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...le(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var Oc=class extends sn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...le(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:s}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,v=be(f),p=()=>v&&be(u);return o.add(u.subscribe(y=>{if(!v)return;let w=be(l);be(a)?this.state$.set(y):w!==null&&this.state$.set(!w||y)})),o.add(a.subscribe(y=>{this.state$.set(!y||p())})),o.add(l.subscribe(y=>{if(y===null)return;let w=be(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!y)})),o}};var Dc=class extends sn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=le("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var x_=require("@vkontakte/videoplayer-shared/es2018"),bg=le(!1),wp=null,Bc=class extends sn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...bg,set:(i,o=!1)=>{i!==be(bg)&&(this.clearTimeout(),bg.set(i),!i&&wp&&(wp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,a=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(a.subscribe(v=>{be(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,x_.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:y})=>{var w,x;if(!(!v||!(y!=null&&y.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&wp===null&&(wp=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(x=(w=r.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||x.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Sp=require("@vkontakte/videoplayer-shared/es2018");var Hc=class extends sn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...le(null),toggle:Sp.noop};this.checkIfShouldHide=i=>Es(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(be(l)))return;let a=be(this.state$),{isEnded$:u,playbackState$:f}=r.state,{disabledControls$:v}=r.ui.controls,p=be(u),y=be(f);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),v.remove(Af),!p&&this.graphMadePause&&r.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{await(s==null?void 0:s.toggleGraphView(!0)),this.state$.set(!0),v.add(Af),!p&&this.graphMadePause&&r.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Sp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}})),o}};var $g=require("@vkontakte/videoplayer-shared/es2018"),Fc=class extends sn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:le(!1),isEnabled$:le(!1),type$:le(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new $g.ValueSubject(!1),isEnabled$:new $g.ValueSubject(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var Tp=require("@vkontakte/videoplayer-shared/es2018");var Cp=require("@vkontakte/videoplayer-shared/es2018"),w_=({maxShowCount:t,timeout:e})=>{let i=[t!==0?yw({maxCount:t}):void 0,e!==0?xw({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},yw=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Cp.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},xw=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Cp.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>Cp.safeStorage.set(e,JSON.stringify(s)),r=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&r(s),d}else return!0}}};var Uc=class extends sn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:le({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=w_({maxShowCount:s,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Tp.filterChanged)(),(0,Tp.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var S_=()=>[Nc,Oc,Dc,Bc,Hc,Fc,Uc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var nd=require("@vkontakte/videoplayer-shared/es2018");var Ep=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 ww=M('<div class="root svelte-9ubj1t"><!></div>'),Sw={hash:"svelte-9ubj1t",code:".root.svelte-9ubj1t {position:absolute;display:flex;inset:0;align-items:center;justify-content:center;pointer-events:none;z-index:1;}"};function yg(t,e){F(e,!0),W(t,Sw);let i=null,o=Q(null);qe(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(a){e.playbackStatusShow&&N(o,a?"prev":"next",!0)}var s=Ue(),l=pe(s);{var d=a=>{var u=Ue(),f=pe(u);ys(f,()=>n(o),v=>{var p=ww(),y=_(p);let w=m(()=>n(o)==="prev");Lc(y,{get duration(){return e.animationDuration},get Icon(){return mc},get isPrev(){return n(w)}}),g(p),b(v,p)}),b(a,u)};V(l,a=>{e.playbackStatusShow&&n(o)&&a(d)})}return b(t,s),U({startVideoChangedAnimation:r})}var Cw=Object.defineProperty,Tw=(t,e,i)=>e in t?Cw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Xt=(t,e,i)=>Tw(t,typeof e!="symbol"?e+"":e,i),Ew={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Bi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,zc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Kn=Q(void 0),xg=si({animationDuration:0,playbackStatusShow:!1}),Ip=class extends HTMLElement{constructor(){super(),Xt(this,"svelteStubComponent"),Xt(this,"svelteRootComponent"),Xt(this,"sveltePersistentLayerComponent"),Xt(this,"svelteErrorComponent"),Xt(this,"store"),Xt(this,"microStoresRoot"),Xt(this,"statistics"),Xt(this,"sentry"),Xt(this,"_shadowRoot"),Xt(this,"playerContainer"),Xt(this,"rootContainer"),Xt(this,"shadowRootContainer"),Xt(this,"playerId"),Xt(this,"uiConfig"),Xt(this,"coreConfig"),Xt(this,"statisticsConfig"),Xt(this,"interactiveController"),Xt(this,"interactiveContainer"),Xt(this,"graphMadePause"),Xt(this,"currentPlayingVideoIndex",0),Xt(this,"needToRepeatPlaylist",!1),Xt(this,"videoConfig"),Xt(this,"pictureInPictureApi"),Xt(this,"mediaSessionApi"),Xt(this,"unsubscribePlayerPhaseSubscription"),Xt(this,"logger"),Xt(this,"log"),Xt(this,"subscription"),Xt(this,"interactiveSubscription"),Xt(this,"annotationsApi"),Xt(this,"slotsApi"),Xt(this,"focusManager"),Xt(this,"prevIsid"),Xt(this,"isInited",!1),Xt(this,"internalsExposure",null),Xt(this,"shadowDOMCallbacksDisabled",!1),Xt(this,"fatalError$",new kp.ValueSubject(null)),Xt(this,"createOneStat",(e,i={})=>{var o,r,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:y,isMobile:w,isTouch:x,refDomain:C,deviceId:T,interactiveData:E}=Rc(this.videoConfig,i),R=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,A=(s=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?s:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:O=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new rd.OneStat({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=y&&!this.interactiveController)!=null?l:!1,mobile:x!=null?x:w,clip:O,refDomain:C,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview",...R&&(!this.isInited||A)&&{projectId:Number(R)}},{refreshAuthToken:p,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(B){console.error(B),this.log({message:B.message})}}),nd.devNull.create("ui"),this.logger=new Bi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Bi.Subscription,this.interactiveSubscription=new Bi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Ur(gg,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=si({title:o,thumbUrl:r}),l={target:this.playerContainer,props:s};this.svelteStubComponent=Ur(mg,l),this.sveltePersistentLayerComponent=Ur(yg,{target:this.playerContainer,props:xg})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;xg.animationDuration=e,xg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),nd.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:r,refreshStatAuthToken:s}=Rc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new rd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var r,s,l,d,a,u,f,v,p,y;if(!this.videoConfig)return;let{albumId:w,statPlace:x,statAuthToken:C,preload:T,autoplay:E,volume:R,muted:A,fromTime:I,canRewindLive:O,supportLink:H,showAds:B,adsSlotId:z,adsParams:Z={},adsAutoplayParam:se,interfaceLanguage:q,isCyrillicRelatedInterface:de,logoClickable:X,logoHidden:ve,isMobile:re,isTouch:ae,isAudioDisabled:Ae,isLiveCatchUpMode:$e,fullScreenTarget:J,failoverHosts:De,canDownload:ue,callbacks:k,interactiveData:Ge,showThumbTimer:Pe,additionalButtons:j=[],additionalSettingsMenuItems:ie=[],additionalContextMenuItems:Be=[],repeat:Ze,loop:me,saveRate:te,volumeMultiplier:Ie,showEndScreen:xe,showAutoplayNext:He,mediascopePixels:Xe}=Rc(this.videoConfig,i),{sources:je,title:Ke,thumbUrl:Ye,unitedVideoId:Dt,isClip:rt=!1,duration:Bt,adsParams:qt={},videoEpisodes:Et,previewThumbsData:Jt,subtitles:Wt,subtitlesForcedLanguage:Se,live:ye,adsExternalApi:ee}=e;if(!je&&!ye){let di=new Error("empty sources and live");this.fatalError$.next(di),(r=k.onCrashed)==null||r.call(k,di.message);return}let Ce={...Z,...qt},Le=this.getNextVideoInfo(),Mt={sources:je,title:Ke,thumbUrl:Ye,subtitles:Wt,subtitlesForcedLanguage:Se,unitedVideoId:Dt,isClip:rt,live:ye,albumId:w,statPlace:x,autoplay:E,muted:A,volume:R,fromTime:I,canRewindLive:O,showAds:B,adsSlotId:z,adsParams:Ce,adsAutoplayParam:se,duration:Bt,logoClickable:X,logoHidden:ve,isTouch:ae!=null?ae:re,repeat:Ze,loop:me,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Le.nextVideoTitle,endScreenVideoThumb:Le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ve={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Mt)}`});let lt=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),Tt=(lt==null?void 0:lt.oneStat)||this.createOneStat(e,i),we=this.createThinOneStat(e,i),st;Xe&&(st=new rd.MediascopePixel({pixels:Xe})),(Tt||we)&&(this.statistics=new op(Tt,we,st,lt==null?void 0:lt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Pa(this.uiConfig.sentry,{version:Ia,env:Eu},{movieId:Dt,albumId:w,place:x,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:ae!=null?ae:re,clip:rt}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...Pa.getInstance()};let ut=!!Ge,Qt=[],_i="tooltip_interactive_go_back_disabled_first";if(ut&&this.interactiveController){let di=this.interactiveController.state.isInitialChapter$.getValue(),gt=this.interactiveController.getHistoryState();di&&Qt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Qt.push("SEEK_TO_INTERACTIVE_BUTTON"),gt.hasPrevChapter$.getValue()||(Qt.push("PLAY_PREV_CHAPTER_BUTTON"),di||(gt.isGoBackLimited$.getValue()?_i="tooltip_interactive_go_back_disabled_limit":_i="tooltip_interactive_go_back_disabled"))}let pi=()=>{var di;this.isInited=!1,this.prevIsid=void 0;let gt=(o==null?void 0:o.info.isEnded$.getValue())&&((di=this.interactiveController)==null?void 0:di.state.isEndChapter$.getValue());k.onReplayInteractiveVideo&&!gt?k.onReplayInteractiveVideo():this.replayInteractiveVideo()},yi=Ze&&this.videoConfig.videos.length===1;this.store=N0({player:o,interfaceLanguage:q,isCyrillicRelatedInterface:de,videoId:Dt,isClip:rt,isLiveCatchUpMode:$e,isAudioDisabled:Ae,statAuthToken:C,callbacks:k,webApi:Ve,videoEpisodes:Et,previewThumbsData:Jt,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Qt,isInteractive:ut,saveRate:te,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:pi,playPrevChapterDisabledTooltip:_i,hasInteractiveBranches:!!((y=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?j:[],additionalSettingsMenuItems:ie!=null?ie:[],additionalContextMenuItems:Be!=null?Be:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:di=>{var gt;return(gt=this.sveltePersistentLayerComponent)==null?void 0:gt.startVideoChangedAnimation(di)},looped:this.uiConfig.features.useLoopSetting?me:yi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:oo}=this.microStoresRoot=S_(),no=()=>{var di,gt,bi,li,$t,fi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(wt=>{var Je;return(Je=k==null?void 0:k.onCurrentFormatChanged)==null?void 0:Je.call(k,wt)})),this.subscription.add(oo.interactiveControlsOpacity$.subscribe(wt=>{var Je;wt!==null&&((Je=this==null?void 0:this.interactiveController)==null||Je.setDisabledControls(wt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(wt=>{var Je;return(Je=k==null?void 0:k.onThroughputEstimationChanged)==null?void 0:Je.call(k,wt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(wt=>{var Je;return(Je=k==null?void 0:k.onTrafficSavingEnabledChanged)==null?void 0:Je.call(k,wt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(wt=>{var Je;return(Je=k==null?void 0:k.onHighQualityEnabledChanged)==null?void 0:Je.call(k,wt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(wt=>{var Je;return(Je=k==null?void 0:k.onAutoQualityEnabledChanged)==null?void 0:Je.call(k,!!wt)})),this.subscription.add(new Bi.Observable(wt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Je=>wt.next(Je)))}).pipe((0,Bi.skip)(1)).subscribe(wt=>{var Je;return(Je=k==null?void 0:k.onCurrentPlaybackRateChanged)==null?void 0:Je.call(k,wt)})),this.subscription.add(this.store.state.volume$.subscribe(wt=>{var Je;return(Je=k==null?void 0:k.onVolumeChange)==null?void 0:Je.call(k,wt)})),this.subscription.add(this.store.state.muted$.subscribe(wt=>{var Je,Ti,yo,Wo;if(wt)(Je=k==null?void 0:k.onMute)==null||Je.call(k);else{let an=(yo=((Ti=this.store)==null?void 0:Ti.state.volume$)&&be(this.store.state.volume$))!=null?yo:0;(Wo=k==null?void 0:k.onUnmute)==null||Wo.call(k,an)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(wt=>{var Je;return(Je=k==null?void 0:k.onVideoBitrateChanged)==null?void 0:Je.call(k,wt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(wt=>{var Je;let Ti=(Je=this.store)==null?void 0:Je.ui.controls.disabledControls$;Ti&&(wt&&!Ti.includes(Bd)&&Ti.add(Bd),wt||Ti.remove(Bd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async wt=>{var Je;if(!zc.clientChecker.browser.isSamsungBrowser||!wt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((Je=this.videoConfig)==null?void 0:Je.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(wt=>{var Je;return(Je=k==null?void 0:k.onVSIDChanged)==null?void 0:Je.call(k,wt)})),this.initMediaSession(),N(Kn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:je,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ke,thumbUrl:Ye,subtitles:Wt,subtitlesForcedLanguage:Se,live:ye,preload:T,autoplay:E,muted:A,volume:R,fromTime:I,canRewindLive:O,supportLink:H,showAds:B,adsSlotId:z,adsParams:Ce,adsAutoplayParam:se,duration:Bt,logoClickable:X,logoHidden:ve,isMobile:ae!=null?ae:re,failoverHosts:De,fullScreenTarget:J,saveRate:te,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Pe,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Le.nextVideoTitle,endScreenVideoThumb:Le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ie,showEndScreen:xe,showAutoplayNext:He,adsExternalApi:ee},!0);let Yt={target:this.playerContainer,props:n(Kn)};this.svelteRootComponent=Ur(pg,Yt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(bi=(gt=(di=this.videoConfig)==null?void 0:di.callbacks)==null?void 0:gt.onInited)==null||bi.call(gt)),(li=this.internalsExposure)==null||li.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((fi=($t=this.videoConfig)==null?void 0:$t.callbacks)!=null&&fi.onDevNullLog)?nd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):nd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?zc.clientChecker.isInited$.subscribe(di=>{di&&(console.log("UI SDK async start"),no())}):no()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,Bi.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{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,r,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?be(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:p,vkVideoLoader:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:x}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(x.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let C=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(f==null?void 0:f.title)||T.config.title};let E=C?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),C&&(C=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var R,A,I,O,H,B;if(!this.store||!this.microStoresRoot)return;let z=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Hd)),T==="action-choice-canceled"){let Z=be(this.store.state.isPlaying$)||z;if(((I=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?I:(A=this.videoConfig)!=null&&A.isMobile)&&Z){this.store.ui.interactiveHideMobileControls.set(!0);return}(B=(O=this.videoConfig)==null?void 0:(H=O.callbacks).onDisabledInteractiveClick)==null||B.call(H)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:E})=>{this.store&&T==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(Hd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var R,A,I;E.length&&((I=(A=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||I.call(A,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,R,A;(A=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveChapterChanged)==null||A.call(R,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,R,A;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,r,s,l,d,a,u,f,v,p,y,w,x,C,T,E,R,A,I,O,H,B,z,Z,se,q,de,X;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let ve=new Error("empty videos");this.fatalError$.next(ve),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,ve.message);return}else this.fatalError$.next(null);if(this.videoConfig=Rc(Ew,(0,Bi.cloneDeepWith)(e,ve=>ve instanceof HTMLElement?ve:void 0)),this.playerId=(0,Bi.getPlayerId)(e.playerId),this.uiConfig=p1((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),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&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Bi.InternalsExposure("ui",this.playerId))),nd.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,kp.now)()]}),(0,Bi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),(0,Bi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(C=(x=this.uiConfig.features.dpip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?C:!0),this.uiConfig.ads.paramsOverride={preview:(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(R=(E=this.uiConfig.isMobile)!=null?E:this.videoConfig.isTouch)!=null?R: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=(O=this.uiConfig.ads.slot)!=null?O:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((H=this.uiConfig.showLogo)!=null?H:!this.videoConfig.logoHidden),(B=this.videoConfig).canRewindLive&&(B.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Z=this.uiConfig.features.endScreen)!=null?Z:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(se=this.uiConfig.features.autoplayNext)!=null?se:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(q=this.uiConfig.features.nextPrevButtons)!=null?q:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((de=this.videoConfig.videos)!=null&&de[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ve={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=yp.getLatestSupportedVersion(ve):this.pictureInPictureApi=new Ma(ve)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new bp:void 0,this.slotsApi=this.uiConfig.features.slots?new mp:void 0,this.annotationsApi=this.uiConfig.features.annotations?new xp(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]),__(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(X=this.slotsApi)==null||X.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Ep(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Kn)&&(n(Kn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Kn).nextButtonActive=this.isNextButtonActive(),n(Kn).prevButtonActive=this.isPrevButtonActive(),n(Kn).endScreenVideoTitle=o.nextVideoTitle,n(Kn).endScreenVideoThumb=o.nextVideoThumb,n(Kn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){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",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,r;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"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Kn)&&(n(Kn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Kn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Kn).nextButtonActive=this.isNextButtonActive(),n(Kn).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,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(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;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((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.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||r(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=be(this.store.state.positionExact$),l=be(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Bi.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),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)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&wa(e)}};var sd=require("@vkontakte/videoplayer-shared/es2018"),Ap=require("@vkontakte/videoplayer-core/es2018"),Iw=()=>{window.customElements.define("vk-video-player",Ip)};