@vkontakte/videoplayer 1.1.67 → 1.1.68-dev.7fa93348.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2015.esm.js CHANGED
@@ -1,59 +1,59 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.67
3
- * Wed, 23 Jul 2025 12:20:48 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-67/doc/
2
+ * @vkontakte/videoplayer v1.1.68-dev.7fa93348.0
3
+ * Fri, 25 Jul 2025 10:34:16 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-68/doc/
5
5
  */
6
- var d0=Object.defineProperty,c0=Object.defineProperties;var u0=Object.getOwnPropertyDescriptors;var mv=Object.getOwnPropertySymbols;var p0=Object.prototype.hasOwnProperty,f0=Object.prototype.propertyIsEnumerable;var vv=t=>{throw TypeError(t)};var Uu=(t,e,i)=>e in t?d0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,W=(t,e)=>{for(var i in e||(e={}))p0.call(e,i)&&Uu(t,i,e[i]);if(mv)for(var i of mv(e))f0.call(e,i)&&Uu(t,i,e[i]);return t},Ot=(t,e)=>c0(t,u0(e));var Kn=(t,e,i)=>Uu(t,typeof e!="symbol"?e+"":e,i),zu=(t,e,i)=>e.has(t)||vv("Cannot "+i);var Pi=(t,e,i)=>(zu(t,e,"read from private field"),i?i.call(t):e.get(t)),Es=(t,e,i)=>e.has(t)?vv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),La=(t,e,i,o)=>(zu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),gv=(t,e,i)=>(zu(t,e,"access private method"),i);var yt=(t,e,i)=>new Promise((o,n)=>{var r=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(r,l);d((i=i.apply(t,e)).next())});var Is="[",ks="[!",Qs="]",Yr={};var ji=Symbol(),yn=Symbol("filename"),hv=Symbol("hmr"),_v="http://www.w3.org/1999/xhtml",sc="http://www.w3.org/2000/svg";var Wu="@attach";var ac=!0;var $v,yv,bv=(yv=($v=globalThis.process)==null?void 0:$v.env)==null?void 0:yv.NODE_ENV,Ae=bv&&!bv.toLowerCase().startsWith("prod");var Qn=Array.isArray,xv=Array.prototype.indexOf,wl=Array.from,qu=Object.keys,to=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,lc=Object.getOwnPropertyDescriptors,Ku=Object.prototype,wv=Array.prototype,Gs=Object.getPrototypeOf,Qu=Object.isExtensible;function Ps(t){return typeof t=="function"}var re=()=>{};function Cv(t){return t()}function As(t){for(var e=0;e<t.length;e++)t[e]()}var Po=Symbol("$state"),Va=Symbol("legacy props"),Sv=Symbol(""),dc=Symbol("proxy path"),cc=1,Ra=3,Gn=8;function uc(t){return t===this.v}function Na(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Tv(t,e){return t!==e}function Ba(t){return!Na(t,this.v)}function Ev(){if(Ae){let t=new Error(`derived_references_self
6
+ var d0=Object.defineProperty,c0=Object.defineProperties;var u0=Object.getOwnPropertyDescriptors;var vv=Object.getOwnPropertySymbols;var p0=Object.prototype.hasOwnProperty,f0=Object.prototype.propertyIsEnumerable;var gv=t=>{throw TypeError(t)};var zu=(t,e,i)=>e in t?d0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,W=(t,e)=>{for(var i in e||(e={}))p0.call(e,i)&&zu(t,i,e[i]);if(vv)for(var i of vv(e))f0.call(e,i)&&zu(t,i,e[i]);return t},Dt=(t,e)=>c0(t,u0(e));var zn=(t,e,i)=>zu(t,typeof e!="symbol"?e+"":e,i),Wu=(t,e,i)=>e.has(t)||gv("Cannot "+i);var Li=(t,e,i)=>(Wu(t,e,"read from private field"),i?i.call(t):e.get(t)),Cs=(t,e,i)=>e.has(t)?gv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Va=(t,e,i,o)=>(Wu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),hv=(t,e,i)=>(Wu(t,e,"access private method"),i);var wt=(t,e,i)=>new Promise((o,n)=>{var r=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(r,l);d((i=i.apply(t,e)).next())});var Ts="[",Es="[!",Ks="]",Gr={};var Xi=Symbol(),bn=Symbol("filename"),_v=Symbol("hmr"),bv="http://www.w3.org/1999/xhtml",sc="http://www.w3.org/2000/svg";var qu="@attach";var ac=!0;var yv,xv,$v=(xv=(yv=globalThis.process)==null?void 0:yv.env)==null?void 0:xv.NODE_ENV,Ae=$v&&!$v.toLowerCase().startsWith("prod");var Wn=Array.isArray,wv=Array.prototype.indexOf,wl=Array.from,Ku=Object.keys,no=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,lc=Object.getOwnPropertyDescriptors,Qu=Object.prototype,Sv=Array.prototype,Qs=Object.getPrototypeOf,Gu=Object.isExtensible;function Is(t){return typeof t=="function"}var re=()=>{};function Cv(t){return t()}function ks(t){for(var e=0;e<t.length;e++)t[e]()}var Lo=Symbol("$state"),Ra=Symbol("legacy props"),Tv=Symbol(""),dc=Symbol("proxy path"),cc=1,Na=3,qn=8;function uc(t){return t===this.v}function Ba(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ev(t,e){return t!==e}function Oa(t){return!Ba(t,this.v)}function Iv(){if(Ae){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
8
- https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function Iv(t){if(Ae){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 kv(t){if(Ae){let e=new Error(`effect_in_teardown
9
9
  \`${t}\` cannot be used inside an effect cleanup function
10
- https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function kv(){if(Ae){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Pv(t){if(Ae){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 Pv(){if(Ae){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Av(t){if(Ae){let e=new Error(`effect_orphan
11
11
  \`${t}\` can only be used inside an effect (e.g. during component initialisation)
12
- https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Av(){if(Ae){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 Mv(){if(Ae){let t=new Error(`effect_update_depth_exceeded
13
13
  Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
14
- https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Mv(){if(Ae){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 Lv(){if(Ae){let t=new Error(`hydration_failed
15
15
  Failed to hydrate the application
16
- https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function Lv(){if(Ae){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Vv(t){if(Ae){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 Vv(){if(Ae){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Rv(t){if(Ae){let e=new Error(`props_invalid_value
17
17
  Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
18
- https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function Rv(t){if(Ae){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 Nv(t){if(Ae){let e=new Error(`props_rest_readonly
19
19
  Rest element properties of \`$props()\` such as \`${t}\` are readonly
20
- https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function Nv(t){if(Ae){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 Bv(t){if(Ae){let e=new Error(`rune_outside_svelte
21
21
  The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
22
- https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Bv(){if(Ae){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ov(){if(Ae){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Dv(){if(Ae){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var jr=!1,Zr=!1;function Hv(){jr=!0}var Cl=null;function ds(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 Ov(){if(Ae){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Dv(){if(Ae){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Hv(){if(Ae){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Yr=!1,jr=!1;function Fv(){Yr=!0}var Sl=null;function ls(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
- `];for(let r=0;r<o.length;r++){let l=o[r];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;to(e,"stack",{value:n.join(`
25
- `)}),to(e,"name",{value:`${t}Error`})}return e}function kr(t,e){return t.label=e,pc(t.v,e),t}function pc(t,e){var i;return(i=t==null?void 0:t[dc])==null||i.call(t,e),t}function Oa(t){if(Ae){let e=new Error(`lifecycle_outside_component
24
+ `];for(let r=0;r<o.length;r++){let l=o[r];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;no(e,"stack",{value:n.join(`
25
+ `)}),no(e,"name",{value:`${t}Error`})}return e}function Ir(t,e){return t.label=e,pc(t.v,e),t}function pc(t,e){var i;return(i=t==null?void 0:t[dc])==null||i.call(t,e),t}function Da(t){if(Ae){let e=new Error(`lifecycle_outside_component
26
26
  \`${t}(...)\` can only be used during component initialisation
27
- https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Nt=null;function Sl(t){Nt=t}var Yn=null;function Tl(t){Yn=t}function Da(t){return ju("getContext").get(t)}function Ha(t,e){return ju("setContext").set(t,e),e}function El(){return ju("getAllContexts")}function D(t,e=!1,i){var o=Nt={p:Nt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};jr&&!e&&(Nt.l={s:null,u:null,r1:[],r2:gr(!1)}),Ao(()=>{o.d=!0}),Ae&&(Nt.function=i,Yn=i)}function H(t){var l,d;let e=Nt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=mt,o=kt;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];io(r.effect),Di(r.reaction),_o(r.fn)}}finally{io(i),Di(o)}}Nt=e.p,Ae&&(Yn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Xr(){return!jr||Nt!==null&&Nt.l===null}function ju(t){var e;return Nt===null&&Oa(t),(e=Nt.c)!=null?e:Nt.c=new Map(v0(Nt)||void 0)}function v0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var g0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ri(t){if(typeof t!="object"||t===null||Po in t)return t;let e=Gs(t);if(e!==Ku&&e!==wv)return t;var i=new Map,o=Qn(t),n=Z(0),r=Ae&&Zr?ds("CreatedAt"):null,l=kt,d=f=>{var v=kt;Di(l);var p=f();return Di(v),p};o&&i.set("length",Z(t.length,r));var a="";function u(f){a=f,kr(n,`${a} version`);for(let[v,p]of i)kr(p,Ys(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Bv();var y=i.get(v);return y===void 0?y=d(()=>{var w=Z(p.value,r);return i.set(v,w),Ae&&typeof v=="string"&&kr(w,Ys(a,v)),w}):B(y,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let $=d(()=>Z(ji,r));i.set(v,$),Zu(n),Ae&&kr($,Ys(a,v))}}else{if(o&&typeof v=="string"){var y=i.get("length"),w=Number(v);Number.isInteger(w)&&w<y.v&&B(y,w)}B(p,ji),Zu(n)}return!0},get(f,v,p){var S;if(v===Po)return t;if(Ae&&v===dc)return u;var y=i.get(v),w=v in f;if(y===void 0&&(!w||(S=jo(f,v))!=null&&S.writable)&&(y=d(()=>{var T=ri(w?f[v]:ji),k=Z(T,r);return Ae&&kr(k,Ys(a,v)),k}),i.set(v,y)),y!==void 0){var $=s(y);return $===ji?void 0:$}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=s(y))}else if(p===void 0){var w=i.get(v),$=w==null?void 0:w.v;if(w!==void 0&&$!==ji)return{enumerable:!0,configurable:!0,value:$,writable:!0}}return p},has(f,v){var $;if(v===Po)return!0;var p=i.get(v),y=p!==void 0&&p.v!==ji||Reflect.has(f,v);if(p!==void 0||mt!==null&&(!y||($=jo(f,v))!=null&&$.writable)){p===void 0&&(p=d(()=>{var S=y?ri(f[v]):ji,T=Z(S,r);return Ae&&kr(T,Ys(a,v)),T}),i.set(v,p));var w=s(p);if(w===ji)return!1}return y},set(f,v,p,y){var L;var w=i.get(v),$=v in f;if(o&&v==="length")for(var S=p;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?B(T,ji):S in f&&(T=d(()=>Z(ji,r)),i.set(S+"",T),Ae&&kr(T,Ys(a,S)))}if(w===void 0)(!$||(L=jo(f,v))!=null&&L.writable)&&(w=d(()=>Z(void 0,r)),B(w,ri(p)),i.set(v,w),Ae&&kr(w,Ys(a,v)));else{$=w.v!==ji;var k=d(()=>ri(p));B(w,k)}var P=Reflect.getOwnPropertyDescriptor(f,v);if(P!=null&&P.set&&P.set.call(y,p),!$){if(o&&typeof v=="string"){var I=i.get("length"),E=Number(v);Number.isInteger(E)&&E>=I.v&&B(I,E+1)}Zu(n)}return!0},ownKeys(f){s(n);var v=Reflect.ownKeys(f).filter(w=>{var $=i.get(w);return $===void 0||$.v!==ji});for(var[p,y]of i)y.v!==ji&&!(p in f)&&v.push(p);return v},setPrototypeOf(){Ov()}})}function Ys(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:g0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Zu(t,e=1){B(t,t.v+e)}function Fa(t){try{if(t!==null&&typeof t=="object"&&Po in t)return t[Po]}catch(e){}return t}function Xu(t,e){return Object.is(Fa(t),Fa(e))}function Pr(t){var e=2050,i=kt!==null&&(kt.f&2)!==0?kt:null;mt===null||i!==null&&(i.f&256)!==0?e|=256:mt.f|=1048576;let o={ctx:Nt,deps:null,effects:null,equals:uc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:mt};return Ae&&Zr&&(o.created=ds("CreatedAt")),o}function h(t){let e=Pr(t);return vc(e),e}function Ar(t){let e=Pr(t);return e.equals=Ba,e}function fc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Hi(e[i])}}var Ju=[];function h0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function ip(t){var e,i=mt;if(io(h0(t)),Ae){let o=js;ep(new Set);try{Ju.includes(t)&&Ev(),Ju.push(t),fc(t),e=mc(t)}finally{io(i),ep(o),Ju.pop()}}else try{fc(t),e=mc(t)}finally{io(i)}return e}function op(t){var e=ip(t);if(t.equals(e)||(t.v=e,t.wv=Il()),!cs){var i=(us||(t.f&256)!==0)&&t.deps!==null?4096:1024;un(t,i)}}var js=new Set,Ua=new Map;function ep(t){js=t}function gr(t,e){var i={f:0,v:t,reactions:null,equals:uc,rv:0,wv:0};return Ae&&Zr&&(i.created=e!=null?e:ds("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Z(t,e){let i=gr(t,e);return vc(i),i}function Jr(t,e=!1,i=!0){var n,r;let o=gr(t);return e||(o.equals=Ba),jr&&i&&Nt!==null&&Nt.l!==null&&((r=(n=Nt.l).s)!=null?r:n.s=[]).push(o),o}function B(t,e,i=!1){var n;kt!==null&&(!Xn||(kt.f&262144)!==0)&&Xr()&&(kt.f&262162)!==0&&!((n=Lo)!=null&&n[1].includes(t)&&Lo[0]===kt)&&Dv();let o=i?ri(e):e;return Ae&&pc(o,t.label),za(t,o)}function za(t,e){if(!t.equals(e)){var i=t.v;if(cs?Ua.set(t,e):Ua.set(t,i),t.v=e,Ae&&Zr&&(t.updated=ds("UpdatedAt"),mt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&ip(t),un(t,(t.f&256)===0?1024:4096)),t.wv=Il(),Uv(t,2048),Xr()&&mt!==null&&(mt.f&1024)!==0&&(mt.f&96)===0&&(Zn===null?zv([t]):Zn.push(t)),Ae&&js.size>0){let o=Array.from(js);for(let n of o)(n.f&1024)!==0&&un(n,4096),Xs(n)&&Wa(n);js.clear()}}return e}function Uv(t,e){var i=t.reactions;if(i!==null)for(var o=Xr(),n=i.length,r=0;r<n;r++){var l=i[r],d=l.f;if((d&2048)===0&&!(!o&&l===mt)){if(Ae&&(d&262144)!==0){js.add(l);continue}un(l,e),(d&1280)!==0&&((d&2)!==0?Uv(l,4096):Pl(l))}}}var qa="font-weight: bold",Ka="font-weight: normal";function Wv(t,e,i){Ae?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 Bt=null;function Cl(t){Bt=t}var Kn=null;function Tl(t){Kn=t}function Ha(t){return Zu("getContext").get(t)}function Fa(t,e){return Zu("setContext").set(t,e),e}function El(){return Zu("getAllContexts")}function D(t,e=!1,i){var o=Bt={p:Bt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Yr&&!e&&(Bt.l={s:null,u:null,r1:[],r2:fr(!1)}),Vo(()=>{o.d=!0}),Ae&&(Bt.function=i,Kn=i)}function H(t){var l,d;let e=Bt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=_t,o=Pt;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];ro(r.effect),Hi(r.reaction),yo(r.fn)}}finally{ro(i),Hi(o)}}Bt=e.p,Ae&&(Kn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Zr(){return!Yr||Bt!==null&&Bt.l===null}function Zu(t){var e;return Bt===null&&Da(t),(e=Bt.c)!=null?e:Bt.c=new Map(v0(Bt)||void 0)}function v0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var g0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ri(t){if(typeof t!="object"||t===null||Lo in t)return t;let e=Qs(t);if(e!==Qu&&e!==Sv)return t;var i=new Map,o=Wn(t),n=Z(0),r=Ae&&jr?ls("CreatedAt"):null,l=Pt,d=f=>{var v=Pt;Hi(l);var p=f();return Hi(v),p};o&&i.set("length",Z(t.length,r));var a="";function u(f){a=f,Ir(n,`${a} version`);for(let[v,p]of i)Ir(p,Gs(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Ov();var b=i.get(v);return b===void 0?b=d(()=>{var x=Z(p.value,r);return i.set(v,x),Ae&&typeof v=="string"&&Ir(x,Gs(a,v)),x}):B(b,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let y=d(()=>Z(Xi,r));i.set(v,y),Xu(n),Ae&&Ir(y,Gs(a,v))}}else{if(o&&typeof v=="string"){var b=i.get("length"),x=Number(v);Number.isInteger(x)&&x<b.v&&B(b,x)}B(p,Xi),Xu(n)}return!0},get(f,v,p){var C;if(v===Lo)return t;if(Ae&&v===dc)return u;var b=i.get(v),x=v in f;if(b===void 0&&(!x||(C=Xo(f,v))!=null&&C.writable)&&(b=d(()=>{var T=ri(x?f[v]:Xi),I=Z(T,r);return Ae&&Ir(I,Gs(a,v)),I}),i.set(v,b)),b!==void 0){var y=s(b);return y===Xi?void 0:y}return Reflect.get(f,v,p)},getOwnPropertyDescriptor(f,v){var p=Reflect.getOwnPropertyDescriptor(f,v);if(p&&"value"in p){var b=i.get(v);b&&(p.value=s(b))}else if(p===void 0){var x=i.get(v),y=x==null?void 0:x.v;if(x!==void 0&&y!==Xi)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return p},has(f,v){var y;if(v===Lo)return!0;var p=i.get(v),b=p!==void 0&&p.v!==Xi||Reflect.has(f,v);if(p!==void 0||_t!==null&&(!b||(y=Xo(f,v))!=null&&y.writable)){p===void 0&&(p=d(()=>{var C=b?ri(f[v]):Xi,T=Z(C,r);return Ae&&Ir(T,Gs(a,v)),T}),i.set(v,p));var x=s(p);if(x===Xi)return!1}return b},set(f,v,p,b){var L;var x=i.get(v),y=v in f;if(o&&v==="length")for(var C=p;C<x.v;C+=1){var T=i.get(C+"");T!==void 0?B(T,Xi):C in f&&(T=d(()=>Z(Xi,r)),i.set(C+"",T),Ae&&Ir(T,Gs(a,C)))}if(x===void 0)(!y||(L=Xo(f,v))!=null&&L.writable)&&(x=d(()=>Z(void 0,r)),B(x,ri(p)),i.set(v,x),Ae&&Ir(x,Gs(a,v)));else{y=x.v!==Xi;var I=d(()=>ri(p));B(x,I)}var P=Reflect.getOwnPropertyDescriptor(f,v);if(P!=null&&P.set&&P.set.call(b,p),!y){if(o&&typeof v=="string"){var k=i.get("length"),E=Number(v);Number.isInteger(E)&&E>=k.v&&B(k,E+1)}Xu(n)}return!0},ownKeys(f){s(n);var v=Reflect.ownKeys(f).filter(x=>{var y=i.get(x);return y===void 0||y.v!==Xi});for(var[p,b]of i)b.v!==Xi&&!(p in f)&&v.push(p);return v},setPrototypeOf(){Dv()}})}function Gs(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:g0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Xu(t,e=1){B(t,t.v+e)}function Ua(t){try{if(t!==null&&typeof t=="object"&&Lo in t)return t[Lo]}catch(e){}return t}function Ju(t,e){return Object.is(Ua(t),Ua(e))}function kr(t){var e=2050,i=Pt!==null&&(Pt.f&2)!==0?Pt:null;_t===null||i!==null&&(i.f&256)!==0?e|=256:_t.f|=1048576;let o={ctx:Bt,deps:null,effects:null,equals:uc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:_t};return Ae&&jr&&(o.created=ls("CreatedAt")),o}function h(t){let e=kr(t);return vc(e),e}function Pr(t){let e=kr(t);return e.equals=Oa,e}function fc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Fi(e[i])}}var ep=[];function h0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function op(t){var e,i=_t;if(ro(h0(t)),Ae){let o=Ys;tp(new Set);try{ep.includes(t)&&Iv(),ep.push(t),fc(t),e=mc(t)}finally{ro(i),tp(o),ep.pop()}}else try{fc(t),e=mc(t)}finally{ro(i)}return e}function np(t){var e=op(t);if(t.equals(e)||(t.v=e,t.wv=Il()),!ds){var i=(cs||(t.f&256)!==0)&&t.deps!==null?4096:1024;cn(t,i)}}var Ys=new Set,za=new Map;function tp(t){Ys=t}function fr(t,e){var i={f:0,v:t,reactions:null,equals:uc,rv:0,wv:0};return Ae&&jr&&(i.created=e!=null?e:ls("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Z(t,e){let i=fr(t,e);return vc(i),i}function Xr(t,e=!1,i=!0){var n,r;let o=fr(t);return e||(o.equals=Oa),Yr&&i&&Bt!==null&&Bt.l!==null&&((r=(n=Bt.l).s)!=null?r:n.s=[]).push(o),o}function B(t,e,i=!1){var n;Pt!==null&&(!Yn||(Pt.f&262144)!==0)&&Zr()&&(Pt.f&262162)!==0&&!((n=No)!=null&&n[1].includes(t)&&No[0]===Pt)&&Hv();let o=i?ri(e):e;return Ae&&pc(o,t.label),Wa(t,o)}function Wa(t,e){if(!t.equals(e)){var i=t.v;if(ds?za.set(t,e):za.set(t,i),t.v=e,Ae&&jr&&(t.updated=ls("UpdatedAt"),_t!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&op(t),cn(t,(t.f&256)===0?1024:4096)),t.wv=Il(),zv(t,2048),Zr()&&_t!==null&&(_t.f&1024)!==0&&(_t.f&96)===0&&(Gn===null?Wv([t]):Gn.push(t)),Ae&&Ys.size>0){let o=Array.from(Ys);for(let n of o)(n.f&1024)!==0&&cn(n,4096),Zs(n)&&qa(n);Ys.clear()}}return e}function zv(t,e){var i=t.reactions;if(i!==null)for(var o=Zr(),n=i.length,r=0;r<n;r++){var l=i[r],d=l.f;if((d&2048)===0&&!(!o&&l===_t)){if(Ae&&(d&262144)!==0){Ys.add(l);continue}cn(l,e),(d&1280)!==0&&((d&2)!==0?zv(l,4096):Pl(l))}}}var Ka="font-weight: bold",Qa="font-weight: normal";function qv(t,e,i){Ae?console.warn(`%c[svelte] hydration_attribute_changed
28
28
  %cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
29
- https://svelte.dev/e/hydration_attribute_changed`,qa,Ka):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function qv(t){Ae?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,Ka,Qa):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Kv(t){Ae?console.warn(`%c[svelte] hydration_html_changed
30
30
  %c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
31
- https://svelte.dev/e/hydration_html_changed`,qa,Ka):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ms(t){Ae?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,Ka,Qa):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ps(t){Ae?console.warn(`%c[svelte] hydration_mismatch
32
32
  %c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
33
- https://svelte.dev/e/hydration_mismatch`,qa,Ka):console.warn("https://svelte.dev/e/hydration_mismatch")}function Kv(){Ae?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,Ka,Qa):console.warn("https://svelte.dev/e/hydration_mismatch")}function Qv(){Ae?console.warn(`%c[svelte] lifecycle_double_unmount
34
34
  %cTried to unmount a component that was not mounted
35
- https://svelte.dev/e/lifecycle_double_unmount`,qa,Ka):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Qv(){Ae?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",qa,Ka):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function gc(t){Ae?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,Ka,Qa):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Gv(){Ae?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",Ka,Qa):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function gc(t){Ae?console.warn(`%c[svelte] state_proxy_equality_mismatch
36
36
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
37
- https://svelte.dev/e/state_proxy_equality_mismatch`,qa,Ka):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ze=!1;function oo(t){Ze=t}var vt;function mi(t){if(t===null)throw Ms(),Yr;return vt=t}function Fi(){return mi(Vo(vt))}function g(t){if(Ze){if(Vo(vt)!==null)throw Ms(),Yr;vt=t}}function Ce(t=1){if(Ze){for(var e=t,i=vt;e--;)i=Vo(i);vt=i}}function Js(){for(var t=0,e=vt;;){if(e.nodeType===Gn){var i=e.data;if(i===Qs){if(t===0)return e;t-=1}else(i===Is||i===ks)&&(t+=1)}var o=Vo(e);e.remove(),e=o}}function hc(t){if(!t||t.nodeType!==Gn)throw Ms(),Yr;return t.data}function Gv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Fa(this[a])===r){gc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Fa(this[a])===r){gc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Fa(this[a])===r){gc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ea,Yv,Al,jv,Zv;function _c(){if(ea===void 0){ea=window,Yv=document,Al=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;jv=jo(e,"firstChild").get,Zv=jo(e,"nextSibling").get,Qu(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Qu(i)&&(i.__t=void 0),Ae&&(t.__svelte_meta=null,Gv())}}function pn(t=""){return document.createTextNode(t)}function hi(t){return jv.call(t)}function Vo(t){return Zv.call(t)}function _(t,e){if(!Ze)return hi(t);var i=hi(vt);if(i===null)i=vt.appendChild(pn());else if(e&&i.nodeType!==Ra){var o=pn();return i==null||i.before(o),mi(o),o}return mi(i),i}function ge(t,e){var n,r;if(!Ze){var i=hi(t);return i.nodeType===8&&i.data===""?Vo(i):i}if(e&&((n=vt)==null?void 0:n.nodeType)!==Ra){var o=pn();return(r=vt)==null||r.before(o),mi(o),o}return vt}function A(t,e=1,i=!1){let o=Ze?vt:t;for(var n;e--;)n=o,o=Vo(o);if(!Ze)return o;if(i&&(o==null?void 0:o.nodeType)!==Ra){var r=pn();return o===null?n==null||n.after(r):o.before(r),mi(r),r}return mi(o),o}function Ml(t){t.textContent=""}function sp(t){mt===null&&kt===null&&Pv(t),kt!==null&&(kt.f&256)!==0&&mt===null&&kv(),cs&&Iv(t)}function _0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ta(t,e,i,o=!0){var a;var n=mt;if(Ae)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var r={ctx:Nt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Ae&&(r.component_function=Yn),i)try{Wa(r),r.f|=32768}catch(u){throw Hi(r),u}else e!==null&&Pl(r);var l=i&&r.deps===null&&r.first===null&&r.nodes_start===null&&r.teardown===null&&(r.f&1048704)===0;if(!l&&o&&(n!==null&&_0(r,n),kt!==null&&(kt.f&2)!==0)){var d=kt;((a=d.effects)!=null?a:d.effects=[]).push(r)}return r}function Ao(t){let e=ta(8,null,!1);return un(e,1024),e.teardown=t,e}function We(t){var n;sp("$effect");var e=mt!==null&&(mt.f&32)!==0&&Nt!==null&&!Nt.m;if(Ae&&to(t,"name",{value:"$effect"}),e){var i=Nt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:mt,reaction:kt})}else{var o=_o(t);return o}}function Rl(t){return sp("$effect.pre"),Ae&&to(t,"name",{value:"$effect.pre"}),Ro(t)}function yc(t){let e=ta(64,t,!0);return()=>{Hi(e)}}function Jv(t){let e=ta(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Sn(e,()=>{Hi(e),o(void 0)}):(Hi(e),o(void 0))})}function _o(t){return ta(4,t,!1)}function Ro(t){return ta(8,t,!0)}function O(t,e=[],i=Pr){if(Ae)return Ro(()=>{var n=mt,r=()=>t(...l.map(s));to(n.fn,"name",{value:"{expression}"}),to(r,"name",{value:"{expression}"});let l=e.map(i);Ui(r)});let o=e.map(i);return Ui(()=>t(...o.map(s)))}function Ui(t,e=0){return ta(24|e,t,!0)}function Ai(t,e=!0){return ta(40,t,!0,e)}function ap(t){var e=t.teardown;if(e!==null){let i=cs,o=kt;np(!0),Di(null);try{e.call(null)}finally{np(i),Di(o)}}}function lp(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:Hi(i,e),i=o}}function eg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Hi(e),e=i}}function Hi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(dp(t.nodes_start,t.nodes_end),i=!0),lp(t,e&&!i),Nl(t,0),un(t,16384);var o=t.transitions;if(o!==null)for(let r of o)r.stop();ap(t);var n=t.parent;n!==null&&n.first!==null&&cp(t),Ae&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function dp(t,e){for(;t!==null;){var i=t===e?null:Vo(t);t.remove(),t=i}}function cp(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 Sn(t,e){var i=[];xc(t,i,!0),up(i,()=>{Hi(t),e&&e()})}function up(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function xc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;xc(o,e,r?i:!1),o=n}}}function fs(t){tg(t,!0)}function tg(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;tg(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}var Bl=[],pp=[];function ig(){var t=Bl;Bl=[],As(t)}function b0(){var t=pp;pp=[],As(t)}function fn(t){Bl.length===0&&queueMicrotask(ig),Bl.push(t)}function og(){Bl.length>0&&ig(),pp.length>0&&b0()}function rg(t){var e=mt;if(Ae&&t instanceof Error&&$0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Ol(t,e)}function Ol(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var ng=new WeakSet;function $0(t,e){var l,d;if(ng.has(t))return;ng.add(t);let i=jo(t,"message");if(!(i&&!i.configurable)){for(var o=Al?" ":" ",n=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Ka,Qa):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ze=!1;function so(t){Ze=t}var bt;function vi(t){if(t===null)throw Ps(),Gr;return bt=t}function Ui(){return vi(Bo(bt))}function g(t){if(Ze){if(Bo(bt)!==null)throw Ps(),Gr;bt=t}}function Ce(t=1){if(Ze){for(var e=t,i=bt;e--;)i=Bo(i);bt=i}}function Xs(){for(var t=0,e=bt;;){if(e.nodeType===qn){var i=e.data;if(i===Ks){if(t===0)return e;t-=1}else(i===Ts||i===Es)&&(t+=1)}var o=Bo(e);e.remove(),e=o}}function hc(t){if(!t||t.nodeType!==qn)throw Ps(),Gr;return t.data}function Yv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Ua(this[a])===r){gc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Ua(this[a])===r){gc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Ua(this[a])===r){gc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Js,jv,Al,Zv,Xv;function _c(){if(Js===void 0){Js=window,jv=document,Al=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Zv=Xo(e,"firstChild").get,Xv=Xo(e,"nextSibling").get,Gu(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Gu(i)&&(i.__t=void 0),Ae&&(t.__svelte_meta=null,Yv())}}function un(t=""){return document.createTextNode(t)}function _i(t){return Zv.call(t)}function Bo(t){return Xv.call(t)}function _(t,e){if(!Ze)return _i(t);var i=_i(bt);if(i===null)i=bt.appendChild(un());else if(e&&i.nodeType!==Na){var o=un();return i==null||i.before(o),vi(o),o}return vi(i),i}function ge(t,e){var n,r;if(!Ze){var i=_i(t);return i.nodeType===8&&i.data===""?Bo(i):i}if(e&&((n=bt)==null?void 0:n.nodeType)!==Na){var o=un();return(r=bt)==null||r.before(o),vi(o),o}return bt}function A(t,e=1,i=!1){let o=Ze?bt:t;for(var n;e--;)n=o,o=Bo(o);if(!Ze)return o;if(i&&(o==null?void 0:o.nodeType)!==Na){var r=un();return o===null?n==null||n.after(r):o.before(r),vi(r),r}return vi(o),o}function Ml(t){t.textContent=""}function ap(t){_t===null&&Pt===null&&Av(t),Pt!==null&&(Pt.f&256)!==0&&_t===null&&Pv(),ds&&kv(t)}function _0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ea(t,e,i,o=!0){var a;var n=_t;if(Ae)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var r={ctx:Bt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Ae&&(r.component_function=Kn),i)try{qa(r),r.f|=32768}catch(u){throw Fi(r),u}else e!==null&&Pl(r);var l=i&&r.deps===null&&r.first===null&&r.nodes_start===null&&r.teardown===null&&(r.f&1048704)===0;if(!l&&o&&(n!==null&&_0(r,n),Pt!==null&&(Pt.f&2)!==0)){var d=Pt;((a=d.effects)!=null?a:d.effects=[]).push(r)}return r}function Vo(t){let e=ea(8,null,!1);return cn(e,1024),e.teardown=t,e}function qe(t){var n;ap("$effect");var e=_t!==null&&(_t.f&32)!==0&&Bt!==null&&!Bt.m;if(Ae&&no(t,"name",{value:"$effect"}),e){var i=Bt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:_t,reaction:Pt})}else{var o=yo(t);return o}}function Rl(t){return ap("$effect.pre"),Ae&&no(t,"name",{value:"$effect.pre"}),Oo(t)}function yc(t){let e=ea(64,t,!0);return()=>{Fi(e)}}function eg(t){let e=ea(64,t,!0);return(i={})=>new Promise(o=>{i.outro?wn(e,()=>{Fi(e),o(void 0)}):(Fi(e),o(void 0))})}function yo(t){return ea(4,t,!1)}function Oo(t){return ea(8,t,!0)}function O(t,e=[],i=kr){if(Ae)return Oo(()=>{var n=_t,r=()=>t(...l.map(s));no(n.fn,"name",{value:"{expression}"}),no(r,"name",{value:"{expression}"});let l=e.map(i);zi(r)});let o=e.map(i);return zi(()=>t(...o.map(s)))}function zi(t,e=0){return ea(24|e,t,!0)}function Vi(t,e=!0){return ea(40,t,!0,e)}function lp(t){var e=t.teardown;if(e!==null){let i=ds,o=Pt;rp(!0),Hi(null);try{e.call(null)}finally{rp(i),Hi(o)}}}function dp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Fi(i,e),i=o}}function tg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Fi(e),e=i}}function Fi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(cp(t.nodes_start,t.nodes_end),i=!0),dp(t,e&&!i),Nl(t,0),cn(t,16384);var o=t.transitions;if(o!==null)for(let r of o)r.stop();lp(t);var n=t.parent;n!==null&&n.first!==null&&up(t),Ae&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function cp(t,e){for(;t!==null;){var i=t===e?null:Bo(t);t.remove(),t=i}}function up(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function wn(t,e){var i=[];xc(t,i,!0),pp(i,()=>{Fi(t),e&&e()})}function pp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function xc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;xc(o,e,r?i:!1),o=n}}}function ps(t){ig(t,!0)}function ig(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;ig(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}var Bl=[],fp=[];function og(){var t=Bl;Bl=[],ks(t)}function b0(){var t=fp;fp=[],ks(t)}function pn(t){Bl.length===0&&queueMicrotask(og),Bl.push(t)}function ng(){Bl.length>0&&og(),fp.length>0&&b0()}function sg(t){var e=_t;if(Ae&&t instanceof Error&&$0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Ol(t,e)}function Ol(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var rg=new WeakSet;function $0(t,e){var l,d;if(rg.has(t))return;rg.add(t);let i=Xo(t,"message");if(!(i&&!i.configurable)){for(var o=Al?" ":" ",n=`
38
38
  ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,r=e.ctx;r!==null;)n+=`
39
- ${o}in ${(d=r.function)==null?void 0:d[yn].split("/").pop()}`,r=r.p;to(t,"message",{value:t.message+`
39
+ ${o}in ${(d=r.function)==null?void 0:d[bn].split("/").pop()}`,r=r.p;no(t,"message",{value:t.message+`
40
40
  ${n}
41
- `}),t.stack&&to(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&no(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var ia=!1,Qa=null,oa=!1,cs=!1;function np(t){cs=t}var Dl=[],Hl=[],kt=null,Xn=!1;function Di(t){kt=t}var mt=null;function io(t){mt=t}var Lo=null;function vc(t){kt!==null&&kt.f&2097152&&(Lo===null?Lo=[kt,[t]]:Lo[1].push(t))}var mn=null,Jn=0,Zn=null;function zv(t){Zn=t}var lg=1,Cc=0,us=!1,Sc=null;function Il(){return++lg}function Xs(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 n,r,l=(e&512)!==0,d=o&&mt!==null&&!us,a=i.length;if(l||d){var u=t,f=u.parent;for(n=0;n<a;n++)r=i[n],(l||!((v=r==null?void 0:r.reactions)!=null&&v.includes(u)))&&((p=r.reactions)!=null?p:r.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<a;n++)if(r=i[n],Xs(r)&&op(r),r.wv>t.wv)return!0}(!o||mt!==null&&!us)&&un(t,1024)}return!1}function dg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];Lo!=null&&Lo[1].includes(t)&&Lo[0]===kt||((r.f&2)!==0?dg(r,e,!1):e===r&&(i?un(r,2048):(r.f&1024)!==0&&un(r,4096),Pl(r)))}}function mc(t){var y,w;var e=mn,i=Jn,o=Zn,n=kt,r=us,l=Lo,d=Nt,a=Xn,u=t.f;mn=null,Jn=0,Zn=null,us=(u&256)!==0&&(Xn||!oa||kt===null),kt=(u&96)===0?t:null,Lo=null,Sl(t.ctx),Xn=!1,Cc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(mn!==null){var p;if(Nl(t,Jn),v!==null&&Jn>0)for(v.length=Jn+mn.length,p=0;p<mn.length;p++)v[Jn+p]=mn[p];else t.deps=v=mn;if(!us||(u&2)!==0&&t.reactions!==null)for(p=Jn;p<v.length;p++)((w=(y=v[p]).reactions)!=null?w:y.reactions=[]).push(t)}else v!==null&&Jn<v.length&&(Nl(t,Jn),v.length=Jn);if(Xr()&&Zn!==null&&!Xn&&v!==null&&(t.f&6146)===0)for(p=0;p<Zn.length;p++)dg(Zn[p],t);return n!==null&&n!==t&&(Cc++,Zn!==null&&(o===null?o=Zn:o.push(...Zn))),f}catch($){rg($)}finally{mn=e,Jn=i,Zn=o,kt=n,us=r,Lo=l,Sl(d),Xn=a,t.f^=2097152}}function y0(t,e){let i=e.reactions;if(i!==null){var o=xv.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(mn===null||!mn.includes(e))&&(un(e,4096),(e.f&768)===0&&(e.f^=512),fc(e),Nl(e,0))}function Nl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)y0(t,i[o])}function Wa(t){var e=t.f;if((e&16384)===0){un(t,1024);var i=mt,o=oa;if(mt=t,oa=!0,Ae){var n=Yn;Tl(t.component_function)}try{(e&16)!==0?eg(t):lp(t),ap(t);var r=mc(t);if(t.teardown=typeof r=="function"?r:null,t.wv=lg,Ae&&Zr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Il(),l.set_during_effect=!1);Ae&&Hl.push(t)}finally{oa=o,mt=i,Ae&&Tl(n)}}}function sg(){console.error("Last ten effects were: ",Hl.slice(-10).map(t=>t.fn)),Hl=[]}function x0(){try{Av()}catch(t){if(Ae&&to(t,"stack",{value:""}),Qa!==null)if(Ae)try{Ol(t,Qa)}catch(e){throw sg(),e}else Ol(t,Qa);else throw Ae&&sg(),t}}function mp(){var t=oa;try{var e=0;for(oa=!0;Dl.length>0;){e++>1e3&&x0();var i=Dl,o=i.length;Dl=[];for(var n=0;n<o;n++){var r=C0(i[n]);w0(r)}Ua.clear()}}finally{ia=!1,oa=t,Qa=null,Ae&&(Hl=[])}}function w0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Xs(o)&&(Wa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?cp(o):o.fn=null))}}function Pl(t){ia||(ia=!0,queueMicrotask(mp));for(var e=Qa=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Dl.push(e)}function C0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,r=n&&(o&1024)!==0;if(!r&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:Xs(i)&&Wa(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 Ga(t){var e;for(t&&(ia=!0,mp(),ia=!0,e=t());;){if(og(),Dl.length===0)return ia=!1,Qa=null,Ae&&(Hl=[]),e;ia=!0,mp()}}function bo(){return yt(this,null,function*(){yield Promise.resolve(),Ga()})}function s(t){var e=t.f,i=(e&2)!==0;if(Sc!==null&&Sc.add(t),kt!==null&&!Xn){if(!(Lo!=null&&Lo[1].includes(t))||Lo[0]!==kt){var o=kt.deps;t.rv<Cc&&(t.rv=Cc,mn===null&&o!==null&&o[Jn]===t?Jn++:mn===null?mn=[t]:(!us||!mn.includes(t))&&mn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&(r.f&256)===0&&(n.f^=256)}if(i&&(n=t,Xs(n)&&op(n)),Ae&&Zr&&!Xn&&Cl!==null&&kt!==null&&Cl.reaction===kt)if(t.trace)t.trace();else{var l=ds("TracedAt");if(l){var d=Cl.entries.get(t);d===void 0&&(d={traces:[]},Cl.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return cs&&Ua.has(t)?Ua.get(t):t.v}function Et(t){var e=Xn;try{return Xn=!0,t()}finally{Xn=e}}var S0=-7169;function un(t,e){t.f=t.f&S0|e}function Ec(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Po in t)Tc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Po in i&&Tc(i)}}}function Tc(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{Tc(t[o],e)}catch(n){}let i=Gs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=lc(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}function vp(t,e){if(e){let i=document.body;t.autofocus=!0,fn(()=>{document.activeElement===i&&t.focus()})}}function Fl(t){var e=kt,i=mt;Di(null),io(null);try{return t()}finally{Di(e),io(i)}}var gp=new Set,Ic=new Set;function na(t){if(!Ze)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function hp(t,e,i,o={}){function n(r){if(o.capture||Ya.call(e,r),!r.cancelBubble)return Fl(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?fn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Ct(t,e,i,o,n){var r={capture:o,passive:n},l=hp(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ao(()=>{e.removeEventListener(t,l,r)})}function lt(t){for(var e=0;e<t.length;e++)gp.add(t[e]);for(var i of Ic)i(t)}function Ya(t){var k;var e=this,i=e.ownerDocument,o=t.type,n=((k=t.composedPath)==null?void 0:k.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(r=n[l]||t.target,r!==e){to(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=kt,v=mt;Di(null),io(null);try{for(var p,y=[];r!==null;){var w=r.assignedSlot||r.parentNode||r.host||null;try{var $=r["__"+o];if($!=null&&(!r.disabled||t.target===r))if(Qn($)){var[S,...T]=$;S.apply(r,[t,...T])}else $.call(r,t)}catch(P){p?y.push(P):p=P}if(t.cancelBubble||w===e||w===null)break;r=w}if(p){for(let P of y)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,Di(f),io(v)}}}var E0;function cg(){E0=void 0}function ja(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function $o(t,e){var i=mt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(Ze)return $o(vt,null),vt;n===void 0&&(n=ja(r?t:"<!>"+t),i||(n=hi(n)));var l=o||Al?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=hi(l),a=l.lastChild;$o(d,a)}else $o(l,l);return l}}function P0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Ze)return $o(vt,null),vt;if(!l){var d=ja(r),a=hi(d);if(n)for(l=document.createDocumentFragment();hi(a);)l.appendChild(hi(a));else l=hi(a)}var u=l.cloneNode(!0);if(n){var f=hi(u),v=u.lastChild;$o(f,v)}else $o(u,u);return u}}function Se(t,e){return P0(t,e,"svg")}function es(t=""){if(!Ze){var e=pn(t+"");return $o(e,e),e}var i=vt;return i.nodeType!==Ra&&(i.before(i=pn()),mi(i)),$o(i,i),i}function Fe(){if(Ze)return $o(vt,null),vt;var t=document.createDocumentFragment(),e=document.createComment(""),i=pn();return t.append(e,i),$o(e,i),t}function b(t,e){if(Ze){mt.nodes_end=vt,Fi();return}t!==null&&t.before(e)}var A0=/\r/g;function pg(t){t=t.replace(A0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function fg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var M0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function mg(t){return M0.includes(t)}var L0=["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 V0={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 vg(t){var e;return t=t.toLowerCase(),(e=V0[t])!=null?e:t}var q9=[...L0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var R0=["touchstart","touchmove"];function gg(t){return R0.includes(t)}var N0=["$state","$state.raw","$derived","$derived.by"],K9=[...N0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var B0=["textarea","script","style","title"];function hg(t){return B0.includes(t)}function kc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Ul=!0;function Pc(t){Ul=t}function _e(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function ms(t,e){return _g(t,e)}function bp(t,e){var l;_c(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Ze,n=vt;try{for(var r=hi(i);r&&(r.nodeType!==Gn||r.data!==Is);)r=Vo(r);if(!r)throw Yr;oo(!0),mi(r),Fi();let d=_g(t,Ot(W({},e),{anchor:r}));if(vt===null||vt.nodeType!==Gn||vt.data!==Qs)throw Ms(),Yr;return oo(!1),d}catch(d){if(d===Yr)return e.recover===!1&&Mv(),_c(),Ml(i),oo(!1),ms(t,e);throw d}finally{oo(o),mi(n),cg()}}var Za=new Map;function _g(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){_c();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=gg(y);e.addEventListener(y,Ya,{passive:w});var $=Za.get(y);$===void 0?(document.addEventListener(y,Ya,{passive:w}),Za.set(y,1)):Za.set(y,$+1)}}};a(wl(gp)),Ic.add(a);var u=void 0,f=Jv(()=>{var v=i!=null?i:e.appendChild(pn());return Ai(()=>{if(r){D({});var p=Nt;p.c=r}n&&(o.$$events=n),Ze&&$o(v,null),Ul=l,u=t(v,o)||{},Ul=!0,Ze&&(mt.nodes_end=vt),r&&H()}),()=>{var w;for(var p of d){e.removeEventListener(p,Ya);var y=Za.get(p);--y===0?(document.removeEventListener(p,Ya),Za.delete(p)):Za.set(p,y)}Ic.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return _p.set(u,f),u}var _p=new WeakMap;function ra(t,e){let i=_p.get(t);return i?(_p.delete(t),i(e)):(Ae&&Kv(),Promise.resolve())}function be(t,e,...i){var o=t,n=re,r;Ui(()=>{n!==(n=e())&&(r&&(Hi(r),r=null),Ae&&n==null&&Lv(),r=Ai(()=>n(o,...i)))},65536),Ze&&(o=vt)}if(Ae){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Nv(e)},set:o=>{i=o}})}};F0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var F0;function Dt(t){Nt===null&&Oa("onMount"),jr&&Nt.l!==null?H0(Nt).m.push(t):We(()=>{let e=Et(t);if(typeof e=="function")return e})}function Tn(t){Nt===null&&Oa("onDestroy"),Dt(()=>()=>Et(t))}function H0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var bg=new Map;function $g(t,e){var i=bg.get(t);i||(i=new Set,bg.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){Ze&&i===0&&Fi();var n=t,r=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(Ze&&o!==-1){if(i===0){let S=hc(n);S===Is?o=0:S===ks?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let $=o>i;!!d===$&&(n=Js(),mi(n),oo(!1),w=!0,o=-1)}d?(r?fs(r):y&&(r=Ai(()=>y(n))),l&&Sn(l,()=>{l=null})):(l?fs(l):y&&(l=Ai(()=>y(n,[i+1,o]))),r&&Sn(r,()=>{r=null})),w&&oo(!0)};Ui(()=>{u=!1,e(f),u||v(null,null)},a),Ze&&(n=vt)}function sa(t,e,i){Ze&&Fi();var o=t,n=ji,r,l=Xr()?Tv:Na;Ui(()=>{l(n,n=e())&&(r&&Sn(r),r=Ai(()=>i(o)))}),Ze&&(o=vt)}var Vs=null;function xp(t){Vs=t}function zl(t,e){return e}function W0(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)xc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Ml(a),a.append(i),o.clear(),Ls(t,e[0].prev,e[r-1].next)}up(n,()=>{for(var u=0;u<r;u++){var f=e[u];d||(o.delete(f.k),Ls(t,f.prev,f.next)),Hi(f.e,!d)}})}function wi(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=Ze?mi(hi(u)):u.appendChild(pn())}Ze&&Fi();var f=null,v=!1,p=Ar(()=>{var y=i();return Qn(y)?y:y==null?[]:wl(y)});Ui(()=>{var y=s(p),w=y.length;if(v&&w===0)return;v=w===0;let $=!1;if(Ze){var S=hc(l)===ks;S!==(w===0)&&(l=Js(),mi(l),oo(!1),$=!0)}if(Ze){for(var T=null,k,P=0;P<w;P++){if(vt.nodeType===Gn&&vt.data===Qs){l=vt,$=!0,oo(!1);break}var I=y[P],E=o(I,P);k=wg(vt,d,T,null,I,E,P,n,e,i),d.items.set(E,k),T=k}w>0&&mi(Js())}Ze||q0(y,d,l,n,e,o,i),r!==null&&(w===0?f?fs(f):f=Ai(()=>r(l)):f!==null&&Sn(f,()=>{f=null})),$&&oo(!0),s(p)}),Ze&&(l=vt)}function q0(t,e,i,o,n,r,l){var le,Me,Re,ve;var d=(n&8)!==0,a=(n&3)!==0,u=t.length,f=e.items,v=e.first,p=v,y,w=null,$,S=[],T=[],k,P,I,E;if(d)for(E=0;E<u;E+=1)k=t[E],P=r(k,E),I=f.get(P),I!==void 0&&((le=I.a)==null||le.measure(),($!=null?$:$=new Set).add(I));for(E=0;E<u;E+=1){if(k=t[E],P=r(k,E),I=f.get(P),I===void 0){var L=p?p.e.nodes_start:i;w=wg(L,e,w,w===null?e.first:w.next,k,P,E,o,n,l),f.set(P,w),S=[],T=[],p=w.next;continue}if(a&&K0(I,k,E,n),(I.e.f&8192)!==0&&(fs(I.e),d&&((Me=I.a)==null||Me.unfix(),($!=null?$:$=new Set).delete(I))),I!==p){if(y!==void 0&&y.has(I)){if(S.length<T.length){var K=T[0],z;w=K.prev;var U=S[0],Y=S[S.length-1];for(z=0;z<S.length;z+=1)yg(S[z],K,i);for(z=0;z<T.length;z+=1)y.delete(T[z]);Ls(e,U.prev,Y.next),Ls(e,w,U),Ls(e,Y,K),p=K,w=Y,E-=1,S=[],T=[]}else y.delete(I),yg(I,p,i),Ls(e,I.prev,I.next),Ls(e,I,w===null?e.first:w.next),Ls(e,w,I),w=I;continue}for(S=[],T=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&(y!=null?y:y=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;I=p}S.push(I),w=I,p=I.next}if(p!==null||y!==void 0){for(var se=y===void 0?[]:wl(y);p!==null;)(p.e.f&8192)===0&&se.push(p),p=p.next;var j=se.length;if(j>0){var ue=(n&4)!==0&&u===0?i:null;if(d){for(E=0;E<j;E+=1)(Re=se[E].a)==null||Re.measure();for(E=0;E<j;E+=1)(ve=se[E].a)==null||ve.fix()}W0(e,se,ue,f)}}d&&fn(()=>{var pe;if($!==void 0)for(I of $)(pe=I.a)==null||pe.apply()}),mt.first=e.first&&e.first.e,mt.last=w&&w.e}function K0(t,e,i,o){(o&1)!==0&&za(t.v,e),(o&2)!==0?za(t.i,i):t.i=i}function wg(t,e,i,o,n,r,l,d,a,u){var f=Vs,v=(a&1)!==0,p=(a&16)===0,y=v?p?Jr(n,!1,!1):gr(n):n,w=(a&2)===0?l:gr(l);Ae&&v&&(y.trace=()=>{var S=typeof w=="number"?l:w.v;u()[S]});var $={i:w,v:y,k:r,a:null,e:null,prev:i,next:o};Vs=$;try{return $.e=Ai(()=>d(t,y,w,u),Ze),$.e.prev=i&&i.e,$.e.next=o&&o.e,i===null?e.first=$:(i.next=$,i.e.next=$.e),o!==null&&(o.prev=$,o.e.prev=$.e),$}finally{Vs=f}}function yg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Vo(r);n.before(r),r=l}}function Ls(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function Q0(t,e,i){var r,l;if(!e||e===pg(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Yn)!=null&&l[yn]&&(o=`in ${Yn[yn]}`),qv(kc(o))}function Wl(t,e,i=!1,o=!1,n=!1){var r=t,l="";O(()=>{var y;var d=mt;if(l===(l=(y=e())!=null?y:"")){Ze&&Fi();return}if(d.nodes_start!==null&&(dp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Ze){for(var a=vt.data,u=Fi(),f=u;u!==null&&(u.nodeType!==Gn||u.data!=="");)f=u,u=Vo(u);if(u===null)throw Ms(),Yr;Ae&&!n&&Q0(u.parentNode,a,l),$o(vt,f),r=mi(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=ja(v);if((i||o)&&(p=hi(p)),$o(hi(p),p.lastChild),i||o)for(;hi(p);)r.before(hi(p));else r.before(p)}})}function Ci(t,e,i){Ze&&Fi();var o=t,n,r;Ui(()=>{n!==(n=e())&&(r&&(Sn(r),r=null),n&&(r=Ai(()=>i(o,n))))},65536),Ze&&(o=vt)}function aa(t,e,i,o,n,r){var w;let l=Ze;Ze&&Fi();var d=Ae&&r&&((w=Nt)==null?void 0:w.function[yn]),a,u,f=null;Ze&&vt.nodeType===cc&&(f=vt,Fi());var v=Ze?vt:t,p,y=Vs;Ui(()=>{let $=e()||null;var S=n?n():i||$==="svg"?sc:null;if($!==a){var T=Vs;xp(y),p&&($===null?Sn(p,()=>{p=null,u=null}):$===u?fs(p):(Hi(p),Pc(!1))),$&&$!==u&&(p=Ai(()=>{if(f=Ze?f:S?document.createElementNS(S,$):document.createElement($),Ae&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),$o(f,f),o){Ze&&hg($)&&f.append(document.createComment(""));var k=Ze?hi(f):f.appendChild(pn());Ze&&(k===null?oo(!1):mi(k)),o(f,k)}mt.nodes_end=f,v.before(f)})),a=$,a&&(u=a),Pc(!0),xp(T)}},65536),l&&(oo(!0),mi(v))}var Cp;function Cg(t){return Cp=t.target,new wp(t)}var vs,hr,wp=class{constructor(e){Es(this,vs);Es(this,hr);var r,l;var i=new Map,o=(d,a)=>{var u=Jr(a,!1,!1);return i.set(d,u),u};let n=new Proxy(Ot(W({},e.props||{}),{$$events:{}}),{get(d,a){var u;return s((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===Va?!0:(s((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return B((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});La(this,hr,(e.hydrate?bp:ms)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Ga(),La(this,vs,n.$$events);for(let d of Object.keys(Pi(this,hr)))d==="$set"||d==="$destroy"||d==="$on"||to(this,d,{get(){return Pi(this,hr)[d]},set(a){Pi(this,hr)[d]=a},enumerable:!0});Pi(this,hr).$set=d=>{Object.assign(n,d)},Pi(this,hr).$destroy=()=>{ra(Pi(this,hr))}}$set(e){Pi(this,hr).$set(e)}$on(e,i){Pi(this,vs)[e]=Pi(this,vs)[e]||[];let o=(...n)=>i.call(this,...n);return Pi(this,vs)[e].push(o),()=>{Pi(this,vs)[e]=Pi(this,vs)[e].filter(n=>n!==o)}}$destroy(){Pi(this,hr).$destroy()}};vs=new WeakMap,hr=new WeakMap;function q(t,e){fn(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=Cp)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ae&&$g(e.hash,d)}})}function Sp(t,e){var i=void 0,o;Ui(()=>{i!==(i=e())&&(o&&(Hi(o),o=null),i&&(o=Ai(()=>{_o(()=>i(t))})))})}function Sg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Sg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Tg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Sg(t))&&(o&&(o+=" "),o+=e);return o}function ql(t){return typeof t=="object"?Tg(t):t!=null?t:""}var Eg=[...`
44
- \r\f\xA0\v\uFEFF`];function kg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var r=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+r;(l===0||Eg.includes(o[l-1]))&&(d===o.length||Eg.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Ig(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var r=t[n];r!=null&&r!==""&&(o+=" "+n+": "+r+i)}return o}function Tp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Pg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var r=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(Tp)),n&&a.push(...Object.keys(n).map(Tp));var u=0,f=-1;let $=t.length;for(var v=0;v<$;v++){var p=t[v];if(d?p==="/"&&t[v-1]==="*"&&(d=!1):r?r===p&&(r=!1):p==="/"&&t[v+1]==="*"?d=!0:p==='"'||p==="'"?r=p:p==="("?l++:p===")"&&l--,!d&&r===!1&&l===0){if(p===":"&&f===-1)f=v;else if(p===";"||v===$-1){if(f!==-1){var y=Tp(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+=Ig(o)),n&&(i+=Ig(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,n,r){var l=t.__className;if(Ze||l!==i||l===void 0){var d=kg(i,o,r);(!Ze||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(r&&n!==r)for(var a in r){var u=!!r[a];(n==null||u!==!!n[a])&&t.classList.toggle(a,u)}return r}function Ep(t,e={},i,o){for(var n in i){var r=i[n];e[n]!==r&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,r,o))}}function st(t,e,i,o){var n=t.__style;if(Ze||n!==e){var r=Pg(e,o);(!Ze||r!==t.getAttribute("style"))&&(r==null?t.removeAttribute("style"):t.style.cssText=r),t.__style=e}else o&&(Array.isArray(o)?(Ep(t,i==null?void 0:i[0],o[0]),Ep(t,i==null?void 0:i[1],o[1],"important")):Ep(t,i,o));return o}function Kl(t,e,i){if(t.multiple){if(e==null)return;if(!Qn(e))return Qv();for(var o of t.options)o.selected=e.includes(Ag(o));return}for(o of t.options){var n=Ag(o);if(Xu(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Ip(t){var e=new MutationObserver(()=>{Kl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ao(()=>{e.disconnect()})}function Ag(t){return"__value"in t?t.__value:t.value}var Xa=Symbol("class"),Ja=Symbol("style"),Vg=Symbol("is custom element"),Rg=Symbol("is html");function Ng(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Be(t,e,i,o){var n=Og(t);if(Ze&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||t_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Sv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Dg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Bg(t,e,i,o,n=!1){var I;var r=Og(t),l=r[Vg],d=!r[Rg];let a=Ze&&l;a&&oo(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=ql(i.class):(o||i[Xa])&&(i.class=null),i[Ja]&&((I=i.style)!=null||(i.style=null));var p=Dg(t);for(let E in i){let L=i[E];if(f&&E==="value"&&L==null){t.value=t.__value="",u[E]=L;continue}if(E==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,y,L,o,e==null?void 0:e[Xa],i[Xa]),u[E]=L,u[Xa]=i[Xa];continue}if(E==="style"){st(t,L,e==null?void 0:e[Ja],i[Ja]),u[E]=L,u[Ja]=i[Ja];continue}var w=u[E];if(!(L===w&&!(L===void 0&&t.hasAttribute(E)))){u[E]=L;var $=E[0]+E[1];if($!=="$$")if($==="on"){let K={},z="$$"+E,U=E.slice(2);var S=mg(U);if(fg(U)&&(U=U.slice(0,-7),K.capture=!0),!S&&w){if(L!=null)continue;t.removeEventListener(U,u[z],K),u[z]=null}if(L!=null)if(S)t[`__${U}`]=L,lt([U]);else{let Y=function(se){u[E].call(this,se)};var P=Y;u[z]=hp(U,t,Y,K)}else S&&(t[`__${U}`]=void 0)}else if(E==="style")Be(t,E,L);else if(E==="autofocus")vp(t,!!L);else if(!l&&(E==="__value"||E==="value"&&L!=null))t.value=t.__value=L;else if(E==="selected"&&f)Ng(t,L);else{var T=E;d||(T=vg(T));var k=T==="defaultValue"||T==="defaultChecked";if(L==null&&!l&&!k)if(r[E]=null,T==="value"||T==="checked"){let K=t,z=e===void 0;if(T==="value"){let U=K.defaultValue;K.removeAttribute(T),K.defaultValue=U,K.value=K.__value=z?U:null}else{let U=K.defaultChecked;K.removeAttribute(T),K.defaultChecked=U,K.checked=z?U:!1}}else t.removeAttribute(E);else k||p.includes(T)&&(l||typeof L!="string")?t[T]=L:typeof L!="function"&&Be(t,T,L,n)}}}return a&&oo(!0),u}function Pe(t,e,i=[],o,n=!1,r=Pr){let l=i.map(r);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Ui(()=>{var p=e(...l.map(s)),y=Bg(t,d,p,o,n);f&&u&&"value"in p&&Kl(t,p.value,!1);for(let $ of Object.getOwnPropertySymbols(a))p[$]||Hi(a[$]);for(let $ of Object.getOwnPropertySymbols(p)){var w=p[$];$.description===Wu&&(!d||w!==d[$])&&(a[$]&&Hi(a[$]),a[$]=Ai(()=>Sp(t,()=>w))),y[$]=w}d=y}),u){var v=t;_o(()=>{Kl(v,d.value),Ip(v)})}f=!0}function Og(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Vg]:t.nodeName.includes("-"),[Rg]:t.namespaceURI===_v}}var Mg=new Map;function Dg(t){var e=Mg.get(t.nodeName);if(e)return e;Mg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=lc(o);for(var r in i)i[r].set&&e.push(r);o=Gs(o)}return e}function t_(t,e,i){var o;Ae&&(e==="srcset"&&i_(t,i)||kp((o=t.getAttribute(e))!=null?o:"",i)||Wv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function kp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Lg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function i_(t,e){var i=Lg(t.srcset),o=Lg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(kp(i[l][0],n)||kp(n,i[l][0])))}var o_=ac?()=>performance.now():()=>Date.now(),Vr={tick:t=>(ac?requestAnimationFrame:re)(t),now:()=>o_(),tasks:new Set};function Hg(){let t=Vr.now();Vr.tasks.forEach(e=>{e.c(t)||(Vr.tasks.delete(e),e.f())}),Vr.tasks.size!==0&&Vr.tick(Hg)}function Fg(t){let e;return Vr.tasks.size===0&&Vr.tick(Hg),{promise:new Promise(i=>{Vr.tasks.add(e={c:t,f:i})}),abort(){Vr.tasks.delete(e)}}}function Ac(t,e){Fl(()=>{t.dispatchEvent(new CustomEvent(e))})}function a_(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Ug(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=a_(n.trim());e[l]=r.trim()}return e}var l_=t=>t;function Ap(t,e,i,o){var P;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",u,f=e.inert,v=e.style.overflow,p,y;function w(){var L;var I=kt,E=mt;Di(null),io(null);try{return u!=null?u:u=i()(e,(L=o==null?void 0:o())!=null?L:{},{direction:a})}finally{Di(I),io(E)}}var $={is_global:d,in(){var I;if(e.inert=f,!n){y==null||y.abort(),(I=y==null?void 0:y.reset)==null||I.call(y);return}r||p==null||p.abort(),Ac(e,"introstart"),p=Pp(e,w(),y,1,()=>{Ac(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(I){if(!r){I==null||I(),u=void 0;return}e.inert=!0,Ac(e,"outrostart"),y=Pp(e,w(),p,0,()=>{Ac(e,"outroend"),I==null||I()})},stop:()=>{p==null||p.abort(),y==null||y.abort()}},S=mt;if(((P=S.transitions)!=null?P:S.transitions=[]).push($),n&&Ul){var T=d;if(!T){for(var k=S.parent;k&&(k.f&65536)!==0;)for(;(k=k.parent)&&(k.f&16)===0;);T=!k||(k.f&32768)!==0}T&&_o(()=>{Et(()=>$.in())})}}function Pp(t,e,i,o,n){var r=o===1;if(Ps(e)){var l,d=!1;return fn(()=>{if(!d){var S=e({direction:r?"in":"out"});l=Pp(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:re,deactivate:re,reset:re,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=l_}=e;var p=[];if(r&&i===void 0&&(f&&f(0,1),u)){var y=Ug(u(0,1));p.push(y,y)}var w=()=>1-o,$=t.animate(p,{duration:a,fill:"forwards"});return $.onfinish=()=>{var U;$.cancel();var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var T=o-S,k=e.duration*Math.abs(T),P=[];if(k>0){var I=!1;if(u)for(var E=Math.ceil(k/16.666666666666668),L=0;L<=E;L+=1){var K=S+T*v(L/E),z=Ug(u(K,1-K));P.push(z),I||(I=z.overflow==="hidden")}I&&(t.style.overflow="hidden"),w=()=>{var Y=$.currentTime;return S+T*v(Y/k)},f&&Fg(()=>{if($.playState!=="running")return!1;var Y=w();return f(Y,1-Y),!0})}$=t.animate(P,{duration:k,fill:"forwards"}),$.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{$&&($.cancel(),$.effect=null,$.onfinish=re)},deactivate:()=>{n=re},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Rs,el,Ql,Lc,zg,Vc=class Vc{constructor(e){Es(this,Lc);Es(this,Rs,new WeakMap);Es(this,el);Es(this,Ql);La(this,Ql,e)}observe(e,i){var o=Pi(this,Rs).get(e)||new Set;return o.add(i),Pi(this,Rs).set(e,o),gv(this,Lc,zg).call(this).observe(e,Pi(this,Ql)),()=>{var n=Pi(this,Rs).get(e);n.delete(i),n.size===0&&(Pi(this,Rs).delete(e),Pi(this,el).unobserve(e))}}};Rs=new WeakMap,el=new WeakMap,Ql=new WeakMap,Lc=new WeakSet,zg=function(){var e;return(e=Pi(this,el))!=null?e:La(this,el,new ResizeObserver(i=>{for(var o of i){Vc.entries.set(o.target,o);for(var n of Pi(this,Rs).get(o.target)||[])n(o)}}))},Kn(Vc,"entries",new WeakMap);var Mp=Vc;var d_=new Mp({box:"border-box"});function ts(t,e,i){var o=d_.observe(t,()=>i(t[e]));_o(()=>(Et(()=>i(t[e])),o))}function Wg(t,e){return t===e||(t==null?void 0:t[Po])===e}function ot(t={},e,i,o){return _o(()=>{var n,r;return Ro(()=>{n=r,r=(o==null?void 0:o())||[],Et(()=>{t!==i(...r)&&(e(t,...r),n&&Wg(i(...n),t)&&e(null,...n))})}),()=>{fn(()=>{r&&Wg(i(...r),t)&&e(null,...r)})}}),t}function Rr(t=!1){let e=Nt,i=e.l.u;if(!i)return;let o=()=>Ec(e.s);if(t){let n=0,r={},l=Pr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==r[u]&&(r[u]=a[u],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Rl(()=>{qg(e,o),As(i.b)}),We(()=>{let n=Et(()=>i.m.map(Cv));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&We(()=>{qg(e,o),As(i.a)})}function qg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function Gl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),re;let o=Et(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var tl=[];function _r(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=re){let i=null,o=new Set;function n(d){if(Na(t,d)&&(t=d,i)){let a=!tl.length;for(let u of o)u[1](),tl.push(u,t);if(a){for(let u=0;u<tl.length;u+=2)tl[u][0](tl[u+1]);tl.length=0}}}function r(d){n(d(t))}function l(d,a=re){let u=[d,a];return o.add(u),o.size===1&&(i=e(n,r)||re),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function _i(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return _r(i,(l,d)=>{let a=!1,u=[],f=0,v=re,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);r?l(w):v=typeof w=="function"?w:re},y=n.map((w,$)=>Gl(w,S=>{u[$]=S,f&=~(1<<$),a&&p()},()=>{f|=1<<$}));return a=!0,p(),function(){As(y),v(),a=!1}})}function ye(t){let e;return Gl(t,i=>e=i)(),e}var Rc=!1,Lp=Symbol();function C(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:Jr(void 0),unsubscribe:re};if(o.store!==t&&!(Lp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=re;else{var n=!0;o.unsubscribe=Gl(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&Lp in i?ye(t):s(o.source)}function Oe(){let t={};function e(){Ao(()=>{for(var i in t)t[i].unsubscribe();to(t,Lp,{enumerable:!1,value:!0})})}return[t,e]}function Vp(t){var e=Rc;try{return Rc=!1,[t(),Rc]}finally{Rc=e}}var g_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ae&&Rv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Le(t,e,i){return new Proxy(Ae?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},g_)}var h_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Ps(n)&&(n=n());let r=jo(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=jo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Po||e===Va)return!1;for(let i of t.props)if(Ps(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ps(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function gs(...t){return new Proxy({props:t},h_)}function Kg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var K,z;var n=(i&1)!==0,r=!jr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=Vp(()=>t[e]):u=t[e];var f=Po in t||Va in t,v=l&&((z=(K=jo(t,e))==null?void 0:K.set)!=null?z:f&&e in t&&(U=>t[e]=U))||void 0,p=o,y=!0,w=!1,$=()=>(w=!0,y&&(y=!1,d?p=Et(o):p=o),p);u===void 0&&o!==void 0&&(v&&r&&Vv(e),u=$(),v&&v(u));var S;if(r)S=()=>{var U=t[e];return U===void 0?$():(y=!0,w=!1,U)};else{var T=(n?Pr:Ar)(()=>t[e]);T.f|=131072,S=()=>{var U=s(T);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0&&r)return S;if(v){var k=t.$$legacy;return function(U,Y){return arguments.length>0?((!r||!Y||k||a)&&v(Y?S():U),U):S()}}var P=!1,I=!1,E=Jr(u),L=Pr(()=>{var U=S(),Y=s(E);return P?(P=!1,I=!0,Y):(I=!1,E.v=U)});return l&&s(L),n||(L.equals=Ba),function(U,Y){if(Sc!==null&&(P=I,S(),s(E)),arguments.length>0){let se=Y?s(L):r&&l?ri(U):U;if(!L.equals(se)){if(P=!0,B(E,se),w&&p!==void 0&&(p=se),Kg(L))return U;Et(()=>s(L))}return U}return Kg(L)?L.v:s(L)}}var __;typeof HTMLElement=="function"&&(__=class extends HTMLElement{constructor(e,i,o){super();Kn(this,"$$ctor");Kn(this,"$$s");Kn(this,"$$c");Kn(this,"$$cn",!1);Kn(this,"$$d",{});Kn(this,"$$r",!1);Kn(this,"$$p_d",{});Kn(this,"$$l",{});Kn(this,"$$l_u",new Map);Kn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return yt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),b(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=b_(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Rp(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Cg({component:this.$$ctor,target:this.shadowRoot||this,props:Ot(W({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=yc(()=>{Ro(()=>{var r;this.$$r=!0;for(let l of qu(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Rp(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Rp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return qu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Rp(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function b_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Qg="5";var Gg,Yg,jg;typeof window!="undefined"&&((jg=(Yg=(Gg=window.__svelte)!=null?Gg:window.__svelte={}).v)!=null?jg:Yg.v=new Set).add(Qg);import{areValidLiveRecordSources as r5,clientChecker as Xm}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as Y1,safeStorage as s5,throttleFn as a5}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as l5}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as $_,fillWithDefault as y_,VideoQuality as Zg}from"@vkontakte/videoplayer-shared/es2015";var x_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:$_.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:Zg.Q_480P,highQualityLimit:Zg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null}},Xg=t=>y_(t,x_),Jg=t=>Ha("ui-config",t),zt=()=>Da("ui-config");var Yl="vk_player_debug_panel_opened";var eh="videoplayer",th="videoplayer";var is={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ih=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),oh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),nh=new Set(["ShiftRight","ShiftLeft"]);var rh=["TIMELINE"],jl=[...rh,"GRAPH_BUTTON"],Np=[...rh,"PLAY_BUTTON"],Zl=[...jl,"PLAY_BUTTON"];var os=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(os||{}),da={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as sh,VERSION as w_}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as C_}from"@vkontakte/videoplayer-core/es2015";import{VERSION as S_}from"@vkontakte/videoplayer-statistics/es2015";var Nc="prod",il="1.1.67";var ca=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var ah=Symbol("storeContext"),lh=Symbol("microStoresContext"),dh=(t,e)=>{Ha(ah,t),Ha(lh,e),Nc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Da(ah);return sh(t,"Store context is empty!"),t},uo=()=>{let t=Da(lh);return sh(t,"MicroStores context is empty!"),t},ei=(t,e)=>Oc(t,t.getValue(),e),Oc=(t,e,i)=>_r(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),ch=(t,e,i,o)=>{var L,K,z,U,Y,se,j,ue;let n=t.info,{width:r,height:l}=ye(i.ui.playerSize),d=(K=(L=n.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?K:0,a=(U=(z=n.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?U:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${il} (core: ${C_}, stat: ${S_}, shared: ${w_})`,v=ye(i.state.errorLog$),p=v.length?`
45
- `+v.map((le,Me)=>{var Ve;let Re=`${Me}) Type: ${le.id}
43
+ `)})}}var ta=!1,Ga=null,ia=!1,ds=!1;function rp(t){ds=t}var Dl=[],Hl=[],Pt=null,Yn=!1;function Hi(t){Pt=t}var _t=null;function ro(t){_t=t}var No=null;function vc(t){Pt!==null&&Pt.f&2097152&&(No===null?No=[Pt,[t]]:No[1].push(t))}var fn=null,jn=0,Gn=null;function Wv(t){Gn=t}var dg=1,Sc=0,cs=!1,Cc=null;function Il(){return++dg}function Zs(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 n,r,l=(e&512)!==0,d=o&&_t!==null&&!cs,a=i.length;if(l||d){var u=t,f=u.parent;for(n=0;n<a;n++)r=i[n],(l||!((v=r==null?void 0:r.reactions)!=null&&v.includes(u)))&&((p=r.reactions)!=null?p:r.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<a;n++)if(r=i[n],Zs(r)&&np(r),r.wv>t.wv)return!0}(!o||_t!==null&&!cs)&&cn(t,1024)}return!1}function cg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];No!=null&&No[1].includes(t)&&No[0]===Pt||((r.f&2)!==0?cg(r,e,!1):e===r&&(i?cn(r,2048):(r.f&1024)!==0&&cn(r,4096),Pl(r)))}}function mc(t){var b,x;var e=fn,i=jn,o=Gn,n=Pt,r=cs,l=No,d=Bt,a=Yn,u=t.f;fn=null,jn=0,Gn=null,cs=(u&256)!==0&&(Yn||!ia||Pt===null),Pt=(u&96)===0?t:null,No=null,Cl(t.ctx),Yn=!1,Sc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(fn!==null){var p;if(Nl(t,jn),v!==null&&jn>0)for(v.length=jn+fn.length,p=0;p<fn.length;p++)v[jn+p]=fn[p];else t.deps=v=fn;if(!cs||(u&2)!==0&&t.reactions!==null)for(p=jn;p<v.length;p++)((x=(b=v[p]).reactions)!=null?x:b.reactions=[]).push(t)}else v!==null&&jn<v.length&&(Nl(t,jn),v.length=jn);if(Zr()&&Gn!==null&&!Yn&&v!==null&&(t.f&6146)===0)for(p=0;p<Gn.length;p++)cg(Gn[p],t);return n!==null&&n!==t&&(Sc++,Gn!==null&&(o===null?o=Gn:o.push(...Gn))),f}catch(y){sg(y)}finally{fn=e,jn=i,Gn=o,Pt=n,cs=r,No=l,Cl(d),Yn=a,t.f^=2097152}}function y0(t,e){let i=e.reactions;if(i!==null){var o=wv.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(fn===null||!fn.includes(e))&&(cn(e,4096),(e.f&768)===0&&(e.f^=512),fc(e),Nl(e,0))}function Nl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)y0(t,i[o])}function qa(t){var e=t.f;if((e&16384)===0){cn(t,1024);var i=_t,o=ia;if(_t=t,ia=!0,Ae){var n=Kn;Tl(t.component_function)}try{(e&16)!==0?tg(t):dp(t),lp(t);var r=mc(t);if(t.teardown=typeof r=="function"?r:null,t.wv=dg,Ae&&jr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Il(),l.set_during_effect=!1);Ae&&Hl.push(t)}finally{ia=o,_t=i,Ae&&Tl(n)}}}function ag(){console.error("Last ten effects were: ",Hl.slice(-10).map(t=>t.fn)),Hl=[]}function x0(){try{Mv()}catch(t){if(Ae&&no(t,"stack",{value:""}),Ga!==null)if(Ae)try{Ol(t,Ga)}catch(e){throw ag(),e}else Ol(t,Ga);else throw Ae&&ag(),t}}function vp(){var t=ia;try{var e=0;for(ia=!0;Dl.length>0;){e++>1e3&&x0();var i=Dl,o=i.length;Dl=[];for(var n=0;n<o;n++){var r=S0(i[n]);w0(r)}za.clear()}}finally{ta=!1,ia=t,Ga=null,Ae&&(Hl=[])}}function w0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Zs(o)&&(qa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?up(o):o.fn=null))}}function Pl(t){ta||(ta=!0,queueMicrotask(vp));for(var e=Ga=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Dl.push(e)}function S0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,r=n&&(o&1024)!==0;if(!r&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:Zs(i)&&qa(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 Ya(t){var e;for(t&&(ta=!0,vp(),ta=!0,e=t());;){if(ng(),Dl.length===0)return ta=!1,Ga=null,Ae&&(Hl=[]),e;ta=!0,vp()}}function xo(){return wt(this,null,function*(){yield Promise.resolve(),Ya()})}function s(t){var e=t.f,i=(e&2)!==0;if(Cc!==null&&Cc.add(t),Pt!==null&&!Yn){if(!(No!=null&&No[1].includes(t))||No[0]!==Pt){var o=Pt.deps;t.rv<Sc&&(t.rv=Sc,fn===null&&o!==null&&o[jn]===t?jn++:fn===null?fn=[t]:(!cs||!fn.includes(t))&&fn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&(r.f&256)===0&&(n.f^=256)}if(i&&(n=t,Zs(n)&&np(n)),Ae&&jr&&!Yn&&Sl!==null&&Pt!==null&&Sl.reaction===Pt)if(t.trace)t.trace();else{var l=ls("TracedAt");if(l){var d=Sl.entries.get(t);d===void 0&&(d={traces:[]},Sl.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return ds&&za.has(t)?za.get(t):t.v}function It(t){var e=Yn;try{return Yn=!0,t()}finally{Yn=e}}var C0=-7169;function cn(t,e){t.f=t.f&C0|e}function Ec(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Lo in t)Tc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Lo in i&&Tc(i)}}}function Tc(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{Tc(t[o],e)}catch(n){}let i=Qs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=lc(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}function gp(t,e){if(e){let i=document.body;t.autofocus=!0,pn(()=>{document.activeElement===i&&t.focus()})}}function Fl(t){var e=Pt,i=_t;Hi(null),ro(null);try{return t()}finally{Hi(e),ro(i)}}var hp=new Set,Ic=new Set;function oa(t){if(!Ze)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function _p(t,e,i,o={}){function n(r){if(o.capture||ja.call(e,r),!r.cancelBubble)return Fl(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?pn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Ct(t,e,i,o,n){var r={capture:o,passive:n},l=_p(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Vo(()=>{e.removeEventListener(t,l,r)})}function dt(t){for(var e=0;e<t.length;e++)hp.add(t[e]);for(var i of Ic)i(t)}function ja(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(r=n[l]||t.target,r!==e){no(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=Pt,v=_t;Hi(null),ro(null);try{for(var p,b=[];r!==null;){var x=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!=null&&(!r.disabled||t.target===r))if(Wn(y)){var[C,...T]=y;C.apply(r,[t,...T])}else y.call(r,t)}catch(P){p?b.push(P):p=P}if(t.cancelBubble||x===e||x===null)break;r=x}if(p){for(let P of b)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,Hi(f),ro(v)}}}var E0;function ug(){E0=void 0}function Za(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function wo(t,e){var i=_t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(Ze)return wo(bt,null),bt;n===void 0&&(n=Za(r?t:"<!>"+t),i||(n=_i(n)));var l=o||Al?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=_i(l),a=l.lastChild;wo(d,a)}else wo(l,l);return l}}function P0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Ze)return wo(bt,null),bt;if(!l){var d=Za(r),a=_i(d);if(n)for(l=document.createDocumentFragment();_i(a);)l.appendChild(_i(a));else l=_i(a)}var u=l.cloneNode(!0);if(n){var f=_i(u),v=u.lastChild;wo(f,v)}else wo(u,u);return u}}function Te(t,e){return P0(t,e,"svg")}function Jr(t=""){if(!Ze){var e=un(t+"");return wo(e,e),e}var i=bt;return i.nodeType!==Na&&(i.before(i=un()),vi(i)),wo(i,i),i}function Ue(){if(Ze)return wo(bt,null),bt;var t=document.createDocumentFragment(),e=document.createComment(""),i=un();return t.append(e,i),wo(e,i),t}function $(t,e){if(Ze){_t.nodes_end=bt,Ui();return}t!==null&&t.before(e)}var A0=/\r/g;function fg(t){t=t.replace(A0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function mg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var M0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function vg(t){return M0.includes(t)}var L0=["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 V0={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 gg(t){var e;return t=t.toLowerCase(),(e=V0[t])!=null?e:t}var q9=[...L0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var R0=["touchstart","touchmove"];function hg(t){return R0.includes(t)}var N0=["$state","$state.raw","$derived","$derived.by"],K9=[...N0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var B0=["textarea","script","style","title"];function _g(t){return B0.includes(t)}function kc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Ul=!0;function Pc(t){Ul=t}function be(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function fs(t,e){return bg(t,e)}function $p(t,e){var l;_c(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Ze,n=bt;try{for(var r=_i(i);r&&(r.nodeType!==qn||r.data!==Ts);)r=Bo(r);if(!r)throw Gr;so(!0),vi(r),Ui();let d=bg(t,Dt(W({},e),{anchor:r}));if(bt===null||bt.nodeType!==qn||bt.data!==Ks)throw Ps(),Gr;return so(!1),d}catch(d){if(d===Gr)return e.recover===!1&&Lv(),_c(),Ml(i),so(!1),fs(t,e);throw d}finally{so(o),vi(n),ug()}}var Xa=new Map;function bg(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){_c();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var b=v[p];if(!d.has(b)){d.add(b);var x=hg(b);e.addEventListener(b,ja,{passive:x});var y=Xa.get(b);y===void 0?(document.addEventListener(b,ja,{passive:x}),Xa.set(b,1)):Xa.set(b,y+1)}}};a(wl(hp)),Ic.add(a);var u=void 0,f=eg(()=>{var v=i!=null?i:e.appendChild(un());return Vi(()=>{if(r){D({});var p=Bt;p.c=r}n&&(o.$$events=n),Ze&&wo(v,null),Ul=l,u=t(v,o)||{},Ul=!0,Ze&&(_t.nodes_end=bt),r&&H()}),()=>{var x;for(var p of d){e.removeEventListener(p,ja);var b=Xa.get(p);--b===0?(document.removeEventListener(p,ja),Xa.delete(p)):Xa.set(p,b)}Ic.delete(a),v!==i&&((x=v.parentNode)==null||x.removeChild(v))}});return bp.set(u,f),u}var bp=new WeakMap;function na(t,e){let i=bp.get(t);return i?(bp.delete(t),i(e)):(Ae&&Qv(),Promise.resolve())}function $e(t,e,...i){var o=t,n=re,r;zi(()=>{n!==(n=e())&&(r&&(Fi(r),r=null),Ae&&n==null&&Vv(),r=Vi(()=>n(o,...i)))},65536),Ze&&(o=bt)}if(Ae){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Bv(e)},set:o=>{i=o}})}};F0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var F0;function Ht(t){Bt===null&&Da("onMount"),Yr&&Bt.l!==null?H0(Bt).m.push(t):qe(()=>{let e=It(t);if(typeof e=="function")return e})}function Sn(t){Bt===null&&Da("onDestroy"),Ht(()=>()=>It(t))}function H0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var $g=new Map;function yg(t,e){var i=$g.get(t);i||(i=new Set,$g.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){Ze&&i===0&&Ui();var n=t,r=null,l=null,d=Xi,a=i>0?65536:0,u=!1;let f=(p,b=!0)=>{u=!0,v(b,p)},v=(p,b)=>{if(d===(d=p))return;let x=!1;if(Ze&&o!==-1){if(i===0){let C=hc(n);C===Ts?o=0:C===Es?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Xs(),vi(n),so(!1),x=!0,o=-1)}d?(r?ps(r):b&&(r=Vi(()=>b(n))),l&&wn(l,()=>{l=null})):(l?ps(l):b&&(l=Vi(()=>b(n,[i+1,o]))),r&&wn(r,()=>{r=null})),x&&so(!0)};zi(()=>{u=!1,e(f),u||v(null,null)},a),Ze&&(n=bt)}function ra(t,e,i){Ze&&Ui();var o=t,n=Xi,r,l=Zr()?Ev:Ba;zi(()=>{l(n,n=e())&&(r&&wn(r),r=Vi(()=>i(o)))}),Ze&&(o=bt)}var Ms=null;function wp(t){Ms=t}function zl(t,e){return e}function W0(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)xc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Ml(a),a.append(i),o.clear(),As(t,e[0].prev,e[r-1].next)}pp(n,()=>{for(var u=0;u<r;u++){var f=e[u];d||(o.delete(f.k),As(t,f.prev,f.next)),Fi(f.e,!d)}})}function Ti(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=Ze?vi(_i(u)):u.appendChild(un())}Ze&&Ui();var f=null,v=!1,p=Pr(()=>{var b=i();return Wn(b)?b:b==null?[]:wl(b)});zi(()=>{var b=s(p),x=b.length;if(v&&x===0)return;v=x===0;let y=!1;if(Ze){var C=hc(l)===Es;C!==(x===0)&&(l=Xs(),vi(l),so(!1),y=!0)}if(Ze){for(var T=null,I,P=0;P<x;P++){if(bt.nodeType===qn&&bt.data===Ks){l=bt,y=!0,so(!1);break}var k=b[P],E=o(k,P);I=Sg(bt,d,T,null,k,E,P,n,e,i),d.items.set(E,I),T=I}x>0&&vi(Xs())}Ze||q0(b,d,l,n,e,o,i),r!==null&&(x===0?f?ps(f):f=Vi(()=>r(l)):f!==null&&wn(f,()=>{f=null})),y&&so(!0),s(p)}),Ze&&(l=bt)}function q0(t,e,i,o,n,r,l){var le,Me,Ne,ve;var d=(n&8)!==0,a=(n&3)!==0,u=t.length,f=e.items,v=e.first,p=v,b,x=null,y,C=[],T=[],I,P,k,E;if(d)for(E=0;E<u;E+=1)I=t[E],P=r(I,E),k=f.get(P),k!==void 0&&((le=k.a)==null||le.measure(),(y!=null?y:y=new Set).add(k));for(E=0;E<u;E+=1){if(I=t[E],P=r(I,E),k=f.get(P),k===void 0){var L=p?p.e.nodes_start:i;x=Sg(L,e,x,x===null?e.first:x.next,I,P,E,o,n,l),f.set(P,x),C=[],T=[],p=x.next;continue}if(a&&K0(k,I,E,n),(k.e.f&8192)!==0&&(ps(k.e),d&&((Me=k.a)==null||Me.unfix(),(y!=null?y:y=new Set).delete(k))),k!==p){if(b!==void 0&&b.has(k)){if(C.length<T.length){var K=T[0],z;x=K.prev;var U=C[0],Y=C[C.length-1];for(z=0;z<C.length;z+=1)xg(C[z],K,i);for(z=0;z<T.length;z+=1)b.delete(T[z]);As(e,U.prev,Y.next),As(e,x,U),As(e,Y,K),p=K,x=Y,E-=1,C=[],T=[]}else b.delete(k),xg(k,p,i),As(e,k.prev,k.next),As(e,k,x===null?e.first:x.next),As(e,x,k),x=k;continue}for(C=[],T=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&(b!=null?b:b=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;k=p}C.push(k),x=k,p=k.next}if(p!==null||b!==void 0){for(var se=b===void 0?[]:wl(b);p!==null;)(p.e.f&8192)===0&&se.push(p),p=p.next;var j=se.length;if(j>0){var ue=(n&4)!==0&&u===0?i:null;if(d){for(E=0;E<j;E+=1)(Ne=se[E].a)==null||Ne.measure();for(E=0;E<j;E+=1)(ve=se[E].a)==null||ve.fix()}W0(e,se,ue,f)}}d&&pn(()=>{var pe;if(y!==void 0)for(k of y)(pe=k.a)==null||pe.apply()}),_t.first=e.first&&e.first.e,_t.last=x&&x.e}function K0(t,e,i,o){(o&1)!==0&&Wa(t.v,e),(o&2)!==0?Wa(t.i,i):t.i=i}function Sg(t,e,i,o,n,r,l,d,a,u){var f=Ms,v=(a&1)!==0,p=(a&16)===0,b=v?p?Xr(n,!1,!1):fr(n):n,x=(a&2)===0?l:fr(l);Ae&&v&&(b.trace=()=>{var C=typeof x=="number"?l:x.v;u()[C]});var y={i:x,v:b,k:r,a:null,e:null,prev:i,next:o};Ms=y;try{return y.e=Vi(()=>d(t,b,x,u),Ze),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Ms=f}}function xg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Bo(r);n.before(r),r=l}}function As(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function Q0(t,e,i){var r,l;if(!e||e===fg(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Kn)!=null&&l[bn]&&(o=`in ${Kn[bn]}`),Kv(kc(o))}function Wl(t,e,i=!1,o=!1,n=!1){var r=t,l="";O(()=>{var b;var d=_t;if(l===(l=(b=e())!=null?b:"")){Ze&&Ui();return}if(d.nodes_start!==null&&(cp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Ze){for(var a=bt.data,u=Ui(),f=u;u!==null&&(u.nodeType!==qn||u.data!=="");)f=u,u=Bo(u);if(u===null)throw Ps(),Gr;Ae&&!n&&Q0(u.parentNode,a,l),wo(bt,f),r=vi(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=Za(v);if((i||o)&&(p=_i(p)),wo(_i(p),p.lastChild),i||o)for(;_i(p);)r.before(_i(p));else r.before(p)}})}function Ei(t,e,i){Ze&&Ui();var o=t,n,r;zi(()=>{n!==(n=e())&&(r&&(wn(r),r=null),n&&(r=Vi(()=>i(o,n))))},65536),Ze&&(o=bt)}function sa(t,e,i,o,n,r){var x;let l=Ze;Ze&&Ui();var d=Ae&&r&&((x=Bt)==null?void 0:x.function[bn]),a,u,f=null;Ze&&bt.nodeType===cc&&(f=bt,Ui());var v=Ze?bt:t,p,b=Ms;zi(()=>{let y=e()||null;var C=n?n():i||y==="svg"?sc:null;if(y!==a){var T=Ms;wp(b),p&&(y===null?wn(p,()=>{p=null,u=null}):y===u?ps(p):(Fi(p),Pc(!1))),y&&y!==u&&(p=Vi(()=>{if(f=Ze?f:C?document.createElementNS(C,y):document.createElement(y),Ae&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),wo(f,f),o){Ze&&_g(y)&&f.append(document.createComment(""));var I=Ze?_i(f):f.appendChild(un());Ze&&(I===null?so(!1):vi(I)),o(f,I)}_t.nodes_end=f,v.before(f)})),a=y,a&&(u=a),Pc(!0),wp(T)}},65536),l&&(so(!0),vi(v))}var Cp;function Cg(t){return Cp=t.target,new Sp(t)}var ms,mr,Sp=class{constructor(e){Cs(this,ms);Cs(this,mr);var r,l;var i=new Map,o=(d,a)=>{var u=Xr(a,!1,!1);return i.set(d,u),u};let n=new Proxy(Dt(W({},e.props||{}),{$$events:{}}),{get(d,a){var u;return s((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===Ra?!0:(s((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return B((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});Va(this,mr,(e.hydrate?$p:fs)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Ya(),Va(this,ms,n.$$events);for(let d of Object.keys(Li(this,mr)))d==="$set"||d==="$destroy"||d==="$on"||no(this,d,{get(){return Li(this,mr)[d]},set(a){Li(this,mr)[d]=a},enumerable:!0});Li(this,mr).$set=d=>{Object.assign(n,d)},Li(this,mr).$destroy=()=>{na(Li(this,mr))}}$set(e){Li(this,mr).$set(e)}$on(e,i){Li(this,ms)[e]=Li(this,ms)[e]||[];let o=(...n)=>i.call(this,...n);return Li(this,ms)[e].push(o),()=>{Li(this,ms)[e]=Li(this,ms)[e].filter(n=>n!==o)}}$destroy(){Li(this,mr).$destroy()}};ms=new WeakMap,mr=new WeakMap;function q(t,e){pn(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=Cp)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ae&&yg(e.hash,d)}})}function Tp(t,e){var i=void 0,o;zi(()=>{i!==(i=e())&&(o&&(Fi(o),o=null),i&&(o=Vi(()=>{yo(()=>i(t))})))})}function Tg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Tg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Eg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Tg(t))&&(o&&(o+=" "),o+=e);return o}function ql(t){return typeof t=="object"?Eg(t):t!=null?t:""}var Ig=[...`
44
+ \r\f\xA0\v\uFEFF`];function Pg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var r=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+r;(l===0||Ig.includes(o[l-1]))&&(d===o.length||Ig.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function kg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var r=t[n];r!=null&&r!==""&&(o+=" "+n+": "+r+i)}return o}function Ep(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Ag(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var r=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(Ep)),n&&a.push(...Object.keys(n).map(Ep));var u=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var p=t[v];if(d?p==="/"&&t[v-1]==="*"&&(d=!1):r?r===p&&(r=!1):p==="/"&&t[v+1]==="*"?d=!0:p==='"'||p==="'"?r=p:p==="("?l++:p===")"&&l--,!d&&r===!1&&l===0){if(p===":"&&f===-1)f=v;else if(p===";"||v===y-1){if(f!==-1){var b=Ep(t.substring(u,f).trim());if(!a.includes(b)){p!==";"&&v++;var x=t.substring(u,v).trim();i+=" "+x+";"}}u=v+1,f=-1}}}}return o&&(i+=kg(o)),n&&(i+=kg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,n,r){var l=t.__className;if(Ze||l!==i||l===void 0){var d=Pg(i,o,r);(!Ze||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(r&&n!==r)for(var a in r){var u=!!r[a];(n==null||u!==!!n[a])&&t.classList.toggle(a,u)}return r}function Ip(t,e={},i,o){for(var n in i){var r=i[n];e[n]!==r&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,r,o))}}function at(t,e,i,o){var n=t.__style;if(Ze||n!==e){var r=Ag(e,o);(!Ze||r!==t.getAttribute("style"))&&(r==null?t.removeAttribute("style"):t.style.cssText=r),t.__style=e}else o&&(Array.isArray(o)?(Ip(t,i==null?void 0:i[0],o[0]),Ip(t,i==null?void 0:i[1],o[1],"important")):Ip(t,i,o));return o}function Kl(t,e,i){if(t.multiple){if(e==null)return;if(!Wn(e))return Gv();for(var o of t.options)o.selected=e.includes(Mg(o));return}for(o of t.options){var n=Mg(o);if(Ju(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function kp(t){var e=new MutationObserver(()=>{Kl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Vo(()=>{e.disconnect()})}function Mg(t){return"__value"in t?t.__value:t.value}var Ja=Symbol("class"),el=Symbol("style"),Rg=Symbol("is custom element"),Ng=Symbol("is html");function Bg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=Dg(t);if(Ze&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||t_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Tv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Hg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Og(t,e,i,o,n=!1){var k;var r=Dg(t),l=r[Rg],d=!r[Ng];let a=Ze&&l;a&&so(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=ql(i.class):(o||i[Ja])&&(i.class=null),i[el]&&((k=i.style)!=null||(i.style=null));var p=Hg(t);for(let E in i){let L=i[E];if(f&&E==="value"&&L==null){t.value=t.__value="",u[E]=L;continue}if(E==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,b,L,o,e==null?void 0:e[Ja],i[Ja]),u[E]=L,u[Ja]=i[Ja];continue}if(E==="style"){at(t,L,e==null?void 0:e[el],i[el]),u[E]=L,u[el]=i[el];continue}var x=u[E];if(!(L===x&&!(L===void 0&&t.hasAttribute(E)))){u[E]=L;var y=E[0]+E[1];if(y!=="$$")if(y==="on"){let K={},z="$$"+E,U=E.slice(2);var C=vg(U);if(mg(U)&&(U=U.slice(0,-7),K.capture=!0),!C&&x){if(L!=null)continue;t.removeEventListener(U,u[z],K),u[z]=null}if(L!=null)if(C)t[`__${U}`]=L,dt([U]);else{let Y=function(se){u[E].call(this,se)};var P=Y;u[z]=_p(U,t,Y,K)}else C&&(t[`__${U}`]=void 0)}else if(E==="style")De(t,E,L);else if(E==="autofocus")gp(t,!!L);else if(!l&&(E==="__value"||E==="value"&&L!=null))t.value=t.__value=L;else if(E==="selected"&&f)Bg(t,L);else{var T=E;d||(T=gg(T));var I=T==="defaultValue"||T==="defaultChecked";if(L==null&&!l&&!I)if(r[E]=null,T==="value"||T==="checked"){let K=t,z=e===void 0;if(T==="value"){let U=K.defaultValue;K.removeAttribute(T),K.defaultValue=U,K.value=K.__value=z?U:null}else{let U=K.defaultChecked;K.removeAttribute(T),K.defaultChecked=U,K.checked=z?U:!1}}else t.removeAttribute(E);else I||p.includes(T)&&(l||typeof L!="string")?t[T]=L:typeof L!="function"&&De(t,T,L,n)}}}return a&&so(!0),u}function Pe(t,e,i=[],o,n=!1,r=kr){let l=i.map(r);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(zi(()=>{var p=e(...l.map(s)),b=Og(t,d,p,o,n);f&&u&&"value"in p&&Kl(t,p.value,!1);for(let y of Object.getOwnPropertySymbols(a))p[y]||Fi(a[y]);for(let y of Object.getOwnPropertySymbols(p)){var x=p[y];y.description===qu&&(!d||x!==d[y])&&(a[y]&&Fi(a[y]),a[y]=Vi(()=>Tp(t,()=>x))),b[y]=x}d=b}),u){var v=t;yo(()=>{Kl(v,d.value),kp(v)})}f=!0}function Dg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Rg]:t.nodeName.includes("-"),[Ng]:t.namespaceURI===bv}}var Lg=new Map;function Hg(t){var e=Lg.get(t.nodeName);if(e)return e;Lg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=lc(o);for(var r in i)i[r].set&&e.push(r);o=Qs(o)}return e}function t_(t,e,i){var o;Ae&&(e==="srcset"&&i_(t,i)||Pp((o=t.getAttribute(e))!=null?o:"",i)||qv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Pp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Vg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function i_(t,e){var i=Vg(t.srcset),o=Vg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(Pp(i[l][0],n)||Pp(n,i[l][0])))}var o_=ac?()=>performance.now():()=>Date.now(),Lr={tick:t=>(ac?requestAnimationFrame:re)(t),now:()=>o_(),tasks:new Set};function Fg(){let t=Lr.now();Lr.tasks.forEach(e=>{e.c(t)||(Lr.tasks.delete(e),e.f())}),Lr.tasks.size!==0&&Lr.tick(Fg)}function Ug(t){let e;return Lr.tasks.size===0&&Lr.tick(Fg),{promise:new Promise(i=>{Lr.tasks.add(e={c:t,f:i})}),abort(){Lr.tasks.delete(e)}}}function Ac(t,e){Fl(()=>{t.dispatchEvent(new CustomEvent(e))})}function a_(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function zg(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=a_(n.trim());e[l]=r.trim()}return e}var l_=t=>t;function Mp(t,e,i,o){var P;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",u,f=e.inert,v=e.style.overflow,p,b;function x(){var L;var k=Pt,E=_t;Hi(null),ro(null);try{return u!=null?u:u=i()(e,(L=o==null?void 0:o())!=null?L:{},{direction:a})}finally{Hi(k),ro(E)}}var y={is_global:d,in(){var k;if(e.inert=f,!n){b==null||b.abort(),(k=b==null?void 0:b.reset)==null||k.call(b);return}r||p==null||p.abort(),Ac(e,"introstart"),p=Ap(e,x(),b,1,()=>{Ac(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(k){if(!r){k==null||k(),u=void 0;return}e.inert=!0,Ac(e,"outrostart"),b=Ap(e,x(),p,0,()=>{Ac(e,"outroend"),k==null||k()})},stop:()=>{p==null||p.abort(),b==null||b.abort()}},C=_t;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Ul){var T=d;if(!T){for(var I=C.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&yo(()=>{It(()=>y.in())})}}function Ap(t,e,i,o,n){var r=o===1;if(Is(e)){var l,d=!1;return pn(()=>{if(!d){var C=e({direction:r?"in":"out"});l=Ap(t,C,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:re,deactivate:re,reset:re,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=l_}=e;var p=[];if(r&&i===void 0&&(f&&f(0,1),u)){var b=zg(u(0,1));p.push(b,b)}var x=()=>1-o,y=t.animate(p,{duration:a,fill:"forwards"});return y.onfinish=()=>{var U;y.cancel();var C=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var T=o-C,I=e.duration*Math.abs(T),P=[];if(I>0){var k=!1;if(u)for(var E=Math.ceil(I/16.666666666666668),L=0;L<=E;L+=1){var K=C+T*v(L/E),z=zg(u(K,1-K));P.push(z),k||(k=z.overflow==="hidden")}k&&(t.style.overflow="hidden"),x=()=>{var Y=y.currentTime;return C+T*v(Y/I)},f&&Ug(()=>{if(y.playState!=="running")return!1;var Y=x();return f(Y,1-Y),!0})}y=t.animate(P,{duration:I,fill:"forwards"}),y.onfinish=()=>{x=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=re)},deactivate:()=>{n=re},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>x()}}var Ls,tl,Ql,Lc,Wg,Vc=class Vc{constructor(e){Cs(this,Lc);Cs(this,Ls,new WeakMap);Cs(this,tl);Cs(this,Ql);Va(this,Ql,e)}observe(e,i){var o=Li(this,Ls).get(e)||new Set;return o.add(i),Li(this,Ls).set(e,o),hv(this,Lc,Wg).call(this).observe(e,Li(this,Ql)),()=>{var n=Li(this,Ls).get(e);n.delete(i),n.size===0&&(Li(this,Ls).delete(e),Li(this,tl).unobserve(e))}}};Ls=new WeakMap,tl=new WeakMap,Ql=new WeakMap,Lc=new WeakSet,Wg=function(){var e;return(e=Li(this,tl))!=null?e:Va(this,tl,new ResizeObserver(i=>{for(var o of i){Vc.entries.set(o.target,o);for(var n of Li(this,Ls).get(o.target)||[])n(o)}}))},zn(Vc,"entries",new WeakMap);var Lp=Vc;var d_=new Lp({box:"border-box"});function es(t,e,i){var o=d_.observe(t,()=>i(t[e]));yo(()=>(It(()=>i(t[e])),o))}function qg(t,e){return t===e||(t==null?void 0:t[Lo])===e}function tt(t={},e,i,o){return yo(()=>{var n,r;return Oo(()=>{n=r,r=(o==null?void 0:o())||[],It(()=>{t!==i(...r)&&(e(t,...r),n&&qg(i(...n),t)&&e(null,...n))})}),()=>{pn(()=>{r&&qg(i(...r),t)&&e(null,...r)})}}),t}function Vr(t=!1){let e=Bt,i=e.l.u;if(!i)return;let o=()=>Ec(e.s);if(t){let n=0,r={},l=kr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==r[u]&&(r[u]=a[u],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Rl(()=>{Kg(e,o),ks(i.b)}),qe(()=>{let n=It(()=>i.m.map(Cv));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&qe(()=>{Kg(e,o),ks(i.a)})}function Kg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function Gl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),re;let o=It(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var il=[];function vr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=re){let i=null,o=new Set;function n(d){if(Ba(t,d)&&(t=d,i)){let a=!il.length;for(let u of o)u[1](),il.push(u,t);if(a){for(let u=0;u<il.length;u+=2)il[u][0](il[u+1]);il.length=0}}}function r(d){n(d(t))}function l(d,a=re){let u=[d,a];return o.add(u),o.size===1&&(i=e(n,r)||re),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function bi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return vr(i,(l,d)=>{let a=!1,u=[],f=0,v=re,p=()=>{if(f)return;v();let x=e(o?u[0]:u,l,d);r?l(x):v=typeof x=="function"?x:re},b=n.map((x,y)=>Gl(x,C=>{u[y]=C,f&=~(1<<y),a&&p()},()=>{f|=1<<y}));return a=!0,p(),function(){ks(b),v(),a=!1}})}function xe(t){let e;return Gl(t,i=>e=i)(),e}var Rc=!1,Vp=Symbol();function S(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:Xr(void 0),unsubscribe:re};if(o.store!==t&&!(Vp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=re;else{var n=!0;o.unsubscribe=Gl(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&Vp in i?xe(t):s(o.source)}function Oe(){let t={};function e(){Vo(()=>{for(var i in t)t[i].unsubscribe();no(t,Vp,{enumerable:!1,value:!0})})}return[t,e]}function Rp(t){var e=Rc;try{return Rc=!1,[t(),Rc]}finally{Rc=e}}var g_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ae&&Nv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Le(t,e,i){return new Proxy(Ae?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},g_)}var h_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Is(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Is(n)&&(n=n());let r=Xo(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Is(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Xo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Lo||e===Ra)return!1;for(let i of t.props)if(Is(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Is(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function vs(...t){return new Proxy({props:t},h_)}function Qg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var K,z;var n=(i&1)!==0,r=!Yr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=Rp(()=>t[e]):u=t[e];var f=Lo in t||Ra in t,v=l&&((z=(K=Xo(t,e))==null?void 0:K.set)!=null?z:f&&e in t&&(U=>t[e]=U))||void 0,p=o,b=!0,x=!1,y=()=>(x=!0,b&&(b=!1,d?p=It(o):p=o),p);u===void 0&&o!==void 0&&(v&&r&&Rv(e),u=y(),v&&v(u));var C;if(r)C=()=>{var U=t[e];return U===void 0?y():(b=!0,x=!1,U)};else{var T=(n?kr:Pr)(()=>t[e]);T.f|=131072,C=()=>{var U=s(T);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0&&r)return C;if(v){var I=t.$$legacy;return function(U,Y){return arguments.length>0?((!r||!Y||I||a)&&v(Y?C():U),U):C()}}var P=!1,k=!1,E=Xr(u),L=kr(()=>{var U=C(),Y=s(E);return P?(P=!1,k=!0,Y):(k=!1,E.v=U)});return l&&s(L),n||(L.equals=Oa),function(U,Y){if(Cc!==null&&(P=k,C(),s(E)),arguments.length>0){let se=Y?s(L):r&&l?ri(U):U;if(!L.equals(se)){if(P=!0,B(E,se),x&&p!==void 0&&(p=se),Qg(L))return U;It(()=>s(L))}return U}return Qg(L)?L.v:s(L)}}var __;typeof HTMLElement=="function"&&(__=class extends HTMLElement{constructor(e,i,o){super();zn(this,"$$ctor");zn(this,"$$s");zn(this,"$$c");zn(this,"$$cn",!1);zn(this,"$$d",{});zn(this,"$$r",!1);zn(this,"$$p_d",{});zn(this,"$$l",{});zn(this,"$$l_u",new Map);zn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),$(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=b_(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Np(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Cg({component:this.$$ctor,target:this.shadowRoot||this,props:Dt(W({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=yc(()=>{Oo(()=>{var r;this.$$r=!0;for(let l of Ku(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Np(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Np(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ku(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Np(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function b_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Gg="5";var Yg,jg,Zg;typeof window!="undefined"&&((Zg=(jg=(Yg=window.__svelte)!=null?Yg:window.__svelte={}).v)!=null?Zg:jg.v=new Set).add(Gg);import{areValidLiveRecordSources as r5,clientChecker as Jm}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as j1,safeStorage as s5,throttleFn as a5}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as l5}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as $_,fillWithDefault as y_,VideoQuality as Xg}from"@vkontakte/videoplayer-shared/es2015";var x_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:$_.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:Xg.Q_480P,highQualityLimit:Xg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null}},Jg=t=>y_(t,x_),eh=t=>Fa("ui-config",t),Wt=()=>Ha("ui-config");var Yl="vk_player_debug_panel_opened";var th="videoplayer",ih="videoplayer";var ts={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},oh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),nh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),rh=new Set(["ShiftRight","ShiftLeft"]);var sh=["TIMELINE"],jl=[...sh,"GRAPH_BUTTON"],Bp=[...sh,"PLAY_BUTTON"],Zl=[...jl,"PLAY_BUTTON"];var is=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(is||{}),la={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as ah,VERSION as w_}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as S_}from"@vkontakte/videoplayer-core/es2015";import{VERSION as C_}from"@vkontakte/videoplayer-statistics/es2015";var Nc="prod",ol="1.1.68-dev.7fa93348.0";var da=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var lh=Symbol("storeContext"),dh=Symbol("microStoresContext"),ch=(t,e)=>{Fa(lh,t),Fa(dh,e),Nc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Ha(lh);return ah(t,"Store context is empty!"),t},fo=()=>{let t=Ha(dh);return ah(t,"MicroStores context is empty!"),t},ii=(t,e)=>Oc(t,t.getValue(),e),Oc=(t,e,i)=>vr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),uh=(t,e,i,o)=>{var L,K,z,U,Y,se,j,ue;let n=t.info,{width:r,height:l}=xe(i.ui.playerSize),d=(K=(L=n.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?K:0,a=(U=(z=n.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?U:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${ol} (core: ${S_}, stat: ${C_}, shared: ${w_})`,v=xe(i.state.errorLog$),p=v.length?`
45
+ `+v.map((le,Me)=>{var Re;let Ne=`${Me}) Type: ${le.id}
46
46
  `,ve=`Message: ${le.message} (${le.thrown})
47
- `,pe=`Trace: ${(Ve=le.thrown)==null?void 0:Ve.stack}
48
- `;return Re+ve+pe}).join(`
49
- `):void 0,y=i.state.isAudioDisabled?"disabled":ye(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),$=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(Y=w==null?void 0:w.codec)!=null?Y:""}`+(w!=null&&w.hdr?" (HDR)":"")),$&&S.push(`Audio: ${(se=$==null?void 0:$.codec)!=null?se:""}`+($!=null&&$.language?` (${$.language})`:""));let T=n.currentQuality$.getValue(),k="";if(T){let le=n.availableQualitiesFps$.getValue()[T];k=le?`${le}fps`:""}let P=(ue=(j=n.currentBuffer$.getValue())==null?void 0:j.end)!=null?ue:0,I=Math.max(P-ye(i.state.positionExact$),0),E={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:ye(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${u} ${T} ${k}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:y,Position:`${ye(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${ye(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${r}x${l}`,URL:window.location.href,Errors:p};return Object.entries(E).filter(([le,Me])=>Me!==void 0).map(([le,Me])=>`${le}: ${Me}`).join(`
50
- `)},uh=(t,e,i)=>{var K,z,U,Y;let o=t.info,{width:n,height:r}=ye(i.ui.playerSize),l={version:il,viewport:`${n}x${r}`,volume:Math.round(ye(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let 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-ye(i.state.positionExact$),0)),l.position=ye(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let $=o.liveLatency$.getValue();$&&(l.liveLatency=$);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let k=ye(i.vsid);typeof k=="string"&&(l.vsid=k);let P=(K=t.info.currentVideoStream$.getValue())==null?void 0:K.codec;P&&(l.videoCodec=P);let I=(z=t.info.currentAudioStream$.getValue())==null?void 0:z.codec;I&&(l.audioCodec=I),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(l.hdr=!0);let L=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.language;return L&&(l.audioLanguage=L),l},ph=(t,e)=>ca(t,e,"mp4"),fh=t=>!t.type,mh=t=>!!t.type,vh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Bc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return yt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as Dp,safeStorage as yo}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-core/es2015";var gh="vk_player_prefer_traffic_saving_enabled",hh="vk_player_preferred_volume",_h="vk_player_prefer_volume_mute",Hp="vk_player_preferred_quality",Bp="vk_player_preferred_default_quality_settings",Op="vk_player_preferred_quality_settings_by_video",bh="vk_player_preferred_stream_language",$h="vk_player_preferred_rate",yh="vk_player_preferred_autoplay_next",xh=t=>t>1?1:t<0?0:t,Fp=t=>yo.set(hh,xh(t).toString(10)),Dc=()=>{let t=yo.get(hh);return Dp(t)?void 0:xh(parseFloat(t))},Up=(t,e)=>yo.set(Hp,JSON.stringify({videoId:t,value:e})),Jl=()=>yo.remove(Hp),zp=t=>{let e=yo.get(Hp);if(Dp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Jl();return}return o},Wp=(t,e)=>{e?yo.set(t,"true"):yo.remove(t)},qp=t=>yo.get(t)==="true",Kp=t=>Wp(_h,t),wh=()=>qp(_h),Xl=t=>Wp(gh,t),Qp=()=>qp(gh),Ch=()=>yo.get(bh),Gp=t=>yo.set(bh,t),Sh=t=>yo.set($h,JSON.stringify({rate:t})),Th=()=>{let t=yo.get($h);if(Dp(t))return;let{rate:e}=JSON.parse(t);return e},Eh=t=>Wp(yh,t),Ih=()=>qp(yh),T_=()=>{let t=f=>{yo.set(Bp,JSON.stringify(f))},e=()=>{try{let f=yo.get(Bp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=yo.get(Op);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{yo.set(Op,JSON.stringify(f))},n=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return Ot(W({},v),{appliesTo:"to-video"});v&&r();let p=e();return p?Ot(W({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},r=()=>{yo.remove(Op)},l=()=>{yo.remove(Bp)},d=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":Xl(!0);break;case"exact_quality":Up(f,v.quality)}r(),l()}},u=f=>{let v=zp(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}Qp()&&t({type:"traffic_saving",videoId:f}),Xl(!1),Jl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:r,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:kh,migrateSettingsToLegacyWay:Ph,savePreferredQualitySettings:Hc,savePreferredDefaultQualitySettings:bM,removePreferredQualitySettingsByVideo:$M,getPreferredDefaultQualitySettings:Fc}=T_();import{PlaybackState as K1}from"@vkontakte/videoplayer-core/es2015";var E_=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function ed(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=E_();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}import{isNullable as Lh,InterfaceLanguage as Vh}from"@vkontakte/videoplayer-shared/es2015";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",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
47
+ `,pe=`Trace: ${(Re=le.thrown)==null?void 0:Re.stack}
48
+ `;return Ne+ve+pe}).join(`
49
+ `):void 0,b=i.state.isAudioDisabled?"disabled":xe(i.state.isAudioAvailable$)?void 0:"unavailable",x=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),C=[];x&&C.push(`Video: ${(Y=x==null?void 0:x.codec)!=null?Y:""}`+(x!=null&&x.hdr?" (HDR)":"")),y&&C.push(`Audio: ${(se=y==null?void 0:y.codec)!=null?se:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=n.currentQuality$.getValue(),I="";if(T){let le=n.availableQualitiesFps$.getValue()[T];I=le?`${le}fps`:""}let P=(ue=(j=n.currentBuffer$.getValue())==null?void 0:j.end)!=null?ue:0,k=Math.max(P-xe(i.state.positionExact$),0),E={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:xe(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${u} ${T} ${I}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:b,Position:`${xe(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${xe(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${r}x${l}`,URL:window.location.href,Errors:p};return Object.entries(E).filter(([le,Me])=>Me!==void 0).map(([le,Me])=>`${le}: ${Me}`).join(`
50
+ `)},ph=(t,e,i)=>{var K,z,U,Y;let o=t.info,{width:n,height:r}=xe(i.ui.playerSize),l={version:ol,viewport:`${n}x${r}`,volume:Math.round(xe(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let 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-xe(i.state.positionExact$),0)),l.position=xe(i.state.positionExact$);let b=o.throughputEstimation$.getValue();b&&(l.speed=b);let x=o.videoBitrate$.getValue();x&&(l.bitrate=x);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let I=xe(i.vsid);typeof I=="string"&&(l.vsid=I);let P=(K=t.info.currentVideoStream$.getValue())==null?void 0:K.codec;P&&(l.videoCodec=P);let k=(z=t.info.currentAudioStream$.getValue())==null?void 0:z.codec;k&&(l.audioCodec=k),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(l.hdr=!0);let L=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.language;return L&&(l.audioLanguage=L),l},fh=(t,e)=>da(t,e,"mp4"),mh=t=>!t.type,vh=t=>!!t.type,gh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Bc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return wt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as Hp,safeStorage as So}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-core/es2015";var hh="vk_player_prefer_traffic_saving_enabled",_h="vk_player_preferred_volume",bh="vk_player_prefer_volume_mute",Fp="vk_player_preferred_quality",Op="vk_player_preferred_default_quality_settings",Dp="vk_player_preferred_quality_settings_by_video",$h="vk_player_preferred_stream_language",yh="vk_player_preferred_rate",xh="vk_player_preferred_autoplay_next",wh=t=>t>1?1:t<0?0:t,Up=t=>So.set(_h,wh(t).toString(10)),Dc=()=>{let t=So.get(_h);return Hp(t)?void 0:wh(parseFloat(t))},zp=(t,e)=>So.set(Fp,JSON.stringify({videoId:t,value:e})),Jl=()=>So.remove(Fp),Wp=t=>{let e=So.get(Fp);if(Hp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Jl();return}return o},qp=(t,e)=>{e?So.set(t,"true"):So.remove(t)},Kp=t=>So.get(t)==="true",Qp=t=>qp(bh,t),Sh=()=>Kp(bh),Xl=t=>qp(hh,t),Gp=()=>Kp(hh),Ch=()=>So.get($h),Yp=t=>So.set($h,t),Th=t=>So.set(yh,JSON.stringify({rate:t})),Eh=()=>{let t=So.get(yh);if(Hp(t))return;let{rate:e}=JSON.parse(t);return e},Ih=t=>qp(xh,t),kh=()=>Kp(xh),T_=()=>{let t=f=>{So.set(Op,JSON.stringify(f))},e=()=>{try{let f=So.get(Op);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=So.get(Dp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{So.set(Dp,JSON.stringify(f))},n=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return Dt(W({},v),{appliesTo:"to-video"});v&&r();let p=e();return p?Dt(W({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},r=()=>{So.remove(Dp)},l=()=>{So.remove(Op)},d=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":Xl(!0);break;case"exact_quality":zp(f,v.quality)}r(),l()}},u=f=>{let v=Wp(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}Gp()&&t({type:"traffic_saving",videoId:f}),Xl(!1),Jl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:r,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Ph,migrateSettingsToLegacyWay:Ah,savePreferredQualitySettings:Hc,savePreferredDefaultQualitySettings:bM,removePreferredQualitySettingsByVideo:$M,getPreferredDefaultQualitySettings:Fc}=T_();import{PlaybackState as Q1}from"@vkontakte/videoplayer-core/es2015";var E_=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function ed(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=E_();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}import{isNullable as Vh,InterfaceLanguage as Rh}from"@vkontakte/videoplayer-shared/es2015";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",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
51
51
  \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
52
- \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},Ah=I_;var k_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
52
+ \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},Mh=I_;var k_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
53
53
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
- Try switching the\xA0quality to\xA0Auto.`},Mh=k_;var hs=new Map;hs.set(Vh.EN,Mh);hs.set(Vh.RU,Ah);var Rh=new Map,Yp=({language:t,pack:e,fallback:i})=>{if(hs.has(t)){let o=hs.get(t);hs.set(t,W(W({},o),e))}else hs.set(t,e);Rh.set(t,i)},jp=t=>hs.has(t),Zp=(t,e,i,o)=>{var l;let n=hs.get(t),r=n==null?void 0:n[e];if(Lh(r)){let d=(l=Rh.get(t))!=null?l:o,a=d?hs.get(d):void 0;r=a==null?void 0:a[e]}return Lh(r)?e+Object.values(i!=null?i:{}).join(" "):i?r.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):r},F=(t,e)=>{let{interfaceLanguage$:i}=Ie(),o=ye(i),n=zt();return Zp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2015";var ol;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ol||(ol={}));var P_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,A_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,M_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Uc="?",L_="X-Sentry-Auth",V_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function R_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
- `),o,n;for(let r=0;r<i.length;++r){if(o=P_.exec(i[r]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Uc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=M_.exec(i[r]))n={filename:o[2],function:o[1]||Uc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=A_.exec(i[r]))r===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Uc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Uc),e.push(n)}return e.length?{value:Nh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Nh(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function N_(t){try{let e=R_(t);if(e)return e}catch(e){}return{value:Nh(t),type:t&&t.name,stacktrace:{frames:[]}}}function B_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var zc=class{constructor(e){if(e&&e.dsn){let i=V_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),r=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(r?"/"+r:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return Ot(W({},this.getRequestBlank()),{exception:{values:[N_(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(L_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:B_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Bh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function O_(){return window}var Wc=class t extends zc{constructor(e,i=O_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",W({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",W({},e)),this}setUser(e){return this.setKeyState("user",W({},e)),this}clone(){let e=new t(Ot(W({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[W({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Ot(W({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>Bh(i,o))):!1}getRequestBlank(){return W(Ot(W({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(W({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Bh(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],r=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return Ot(W({},i),{[o]:r||d?[...r||[],...d||[]]:W(W({},typeof n!="string"?n:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as qc,Subscription as D_}from"@vkontakte/videoplayer-shared/es2015";var Kc=null,ua=class{constructor(e,i,o={}){!Kc&&e.dsn&&(this.sentryClient=new Wc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new D_,this.options=e,this.context=o,Kc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Kc=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:r,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:y}=i;if(qc(y)&&v.includes(y)||qc(p)&&f.includes(p))return;if(Math.random()<=d||qc(y)&&u.includes(y)||qc(p)&&a.includes(p)){Object.keys(i).length&&n.setTags(W({version:this.version},i)),(Object.keys(r).length||Object.keys(o).length)&&n.setExtras(W(W({},r),o));try{p&&n.captureMessage(p,i.fatal?ol.fatal:ol.error),n.report(e)}catch($){console.error($)}}}static getInstance(){return Kc}};var _s=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(_s||{});var Qc=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Gc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Oh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},td=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ns=()=>!!td(),Yc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},jc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Dh=t=>{let e=window.screen;return(n=>yt(null,null,function*(){return e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject()}))(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as Hh}from"@vkontakte/videoplayer-core/es2015";var Fh=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:Hh.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:Hh.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as H_,ValueSubject as Xp}from"@vkontakte/videoplayer-shared/es2015";var pa=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:H_(this.onResize.bind(this),300)};this.info={isActive$:new Xp(!1),isEnabled$:new Xp(!1),type:0};this.info.isEnabled$=new Xp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return yt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return yt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return yt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=W({},e)}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return yt(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).enterpictureinpicture)==null||r.call(n,e))}onLeavePictureInPicture(e){var n,r,l;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).leavepictureinpicture)==null||r.call(n,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function fa(t){return t instanceof pa}import{devNull as Uh,now as zh}from"@vkontakte/videoplayer-shared/es2015";Hv();function tf(t,e){D(e,!1);let i=Ie();Dt(()=>{i.getAdmanWrapper().startPostroll()}),Rr(),H()}import{noop as F_}from"@vkontakte/videoplayer-shared/es2015";var U_=(t,e)=>{t.stopPropagation(),e()()},z_=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>'),W_=M("<div><!></div>"),q_={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 of(t,e){D(e,!0),q(t,q_);let[i,o]=Oe(),n=()=>C(u,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,F_),u=Ie().ui.isMobile,f=h(()=>r()>0&&r()>=l());var v=W_();let p;var y=_(v);{var w=S=>{var T=z_();T.__click=[U_,d];var k=_(T);Ce(),g(T),O(P=>_e(k,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),b(S,T)},$=S=>{var T=es();O(k=>_e(T,k),[()=>F("skip_ads_after",{time:Math.ceil(l()-r()).toFixed(0)})]),b(S,T)};V(y,S=>{s(f)?S(w):S($,!1)})}g(v),O(S=>p=ee(v,1,"container svelte-1k4i25s",null,p,S),[()=>({"container-mobile":n(),skippable:s(f)})]),b(t,v),H(),o()}lt(["click"]);var K_=M('<button class="svelte-1wy3dql"> </button>'),Q_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function nf(t,e){D(e,!1),q(t,Q_),Rr();var i=K_(),o=_(i,!0);g(i),O(n=>_e(o,n),[()=>F("visit_advertiser")],Ar),b(t,i),H()}var G_=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),Y_=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),j_={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.`},Lh=k_;var gs=new Map;gs.set(Rh.EN,Lh);gs.set(Rh.RU,Mh);var Nh=new Map,jp=({language:t,pack:e,fallback:i})=>{if(gs.has(t)){let o=gs.get(t);gs.set(t,W(W({},o),e))}else gs.set(t,e);Nh.set(t,i)},Zp=t=>gs.has(t),Xp=(t,e,i,o)=>{var l;let n=gs.get(t),r=n==null?void 0:n[e];if(Vh(r)){let d=(l=Nh.get(t))!=null?l:o,a=d?gs.get(d):void 0;r=a==null?void 0:a[e]}return Vh(r)?e+Object.values(i!=null?i:{}).join(" "):i?r.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):r},F=(t,e)=>{let{interfaceLanguage$:i}=Ie(),o=xe(i),n=Wt();return Xp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2015";var nl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(nl||(nl={}));var P_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,A_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,M_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Uc="?",L_="X-Sentry-Auth",V_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function R_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,n;for(let r=0;r<i.length;++r){if(o=P_.exec(i[r]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Uc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=M_.exec(i[r]))n={filename:o[2],function:o[1]||Uc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=A_.exec(i[r]))r===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Uc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Uc),e.push(n)}return e.length?{value:Bh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Bh(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function N_(t){try{let e=R_(t);if(e)return e}catch(e){}return{value:Bh(t),type:t&&t.name,stacktrace:{frames:[]}}}function B_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var zc=class{constructor(e){if(e&&e.dsn){let i=V_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),r=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(r?"/"+r:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return Dt(W({},this.getRequestBlank()),{exception:{values:[N_(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(L_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:B_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Oh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function O_(){return window}var Wc=class t extends zc{constructor(e,i=O_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",W({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",W({},e)),this}setUser(e){return this.setKeyState("user",W({},e)),this}clone(){let e=new t(Dt(W({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[W({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Dt(W({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>Oh(i,o))):!1}getRequestBlank(){return W(Dt(W({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(W({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Oh(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],r=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return Dt(W({},i),{[o]:r||d?[...r||[],...d||[]]:W(W({},typeof n!="string"?n:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as qc,Subscription as D_}from"@vkontakte/videoplayer-shared/es2015";var Kc=null,ca=class{constructor(e,i,o={}){!Kc&&e.dsn&&(this.sentryClient=new Wc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new D_,this.options=e,this.context=o,Kc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Kc=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:r,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:b}=i;if(qc(b)&&v.includes(b)||qc(p)&&f.includes(p))return;if(Math.random()<=d||qc(b)&&u.includes(b)||qc(p)&&a.includes(p)){Object.keys(i).length&&n.setTags(W({version:this.version},i)),(Object.keys(r).length||Object.keys(o).length)&&n.setExtras(W(W({},r),o));try{p&&n.captureMessage(p,i.fatal?nl.fatal:nl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Kc}};var hs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(hs||{});var Qc=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Gc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Dh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},td=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Vs=()=>!!td(),Yc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},jc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Hh=t=>{let e=window.screen;return(n=>wt(null,null,function*(){return e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject()}))(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as Fh}from"@vkontakte/videoplayer-core/es2015";var Uh=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:Fh.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:Fh.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as H_,ValueSubject as Jp}from"@vkontakte/videoplayer-shared/es2015";var ua=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:H_(this.onResize.bind(this),300)};this.info={isActive$:new Jp(!1),isEnabled$:new Jp(!1),type:0};this.info.isEnabled$=new Jp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return wt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return wt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return wt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=W({},e)}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return wt(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).enterpictureinpicture)==null||r.call(n,e))}onLeavePictureInPicture(e){var n,r,l;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).leavepictureinpicture)==null||r.call(n,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function pa(t){return t instanceof ua}import{devNull as zh,now as Wh}from"@vkontakte/videoplayer-shared/es2015";Fv();function of(t,e){D(e,!1);let i=Ie();Ht(()=>{i.getAdmanWrapper().startPostroll()}),Vr(),H()}import{noop as F_}from"@vkontakte/videoplayer-shared/es2015";var U_=(t,e)=>{t.stopPropagation(),e()()},z_=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>'),W_=M("<div><!></div>"),q_={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function nf(t,e){D(e,!0),q(t,q_);let[i,o]=Oe(),n=()=>S(u,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,F_),u=Ie().ui.isMobile,f=h(()=>r()>0&&r()>=l());var v=W_();let p;var b=_(v);{var x=C=>{var T=z_();T.__click=[U_,d];var I=_(T);Ce(),g(T),O(P=>be(I,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),$(C,T)},y=C=>{var T=Jr();O(I=>be(T,I),[()=>F("skip_ads_after",{time:Math.ceil(l()-r()).toFixed(0)})]),$(C,T)};V(b,C=>{s(f)?C(x):C(y,!1)})}g(v),O(C=>p=ee(v,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":n(),skippable:s(f)})]),$(t,v),H(),o()}dt(["click"]);var K_=M('<button class="svelte-1wy3dql"> </button>'),Q_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function rf(t,e){D(e,!1),q(t,Q_),Vr();var i=K_(),o=_(i,!0);g(i),O(n=>be(o,n),[()=>F("visit_advertiser")],Pr),$(t,i),H()}var G_=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),Y_=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),j_={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.`},Mh=k_;var hs=new Map;hs.set(Vh.EN,Mh)
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 id(t,e){D(e,!0),q(t,j_);let[i,o]=Oe(),n=()=>C(z,"$canSkipAd",i),r=()=>C(K,"$adPlaybackState",i),l=()=>C(k,"$isMobile",i),d=()=>C(U,"$adPosition",i),a=()=>C(Y,"$secondsToWatchBeforeSkipAd",i),u=()=>C(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),p=m(e,"adsPreviewParam",3,void 0),y=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),$=Ie(),S=zt(),T=$.state.isEnded$,k=$.ui.isMobile,P=S.ads.isMobileGoToSiteButton,I=Z(void 0),E=Z(void 0),L=!1,K=$.ads.playbackState,z=$.ads.canSkip,U=$.ads.position,Y=$.ads.secondsToWatchBeforeSkip,se=h(()=>n()&&r()!=="inactive"),j=h(()=>l()&&r()!=="inactive"&&P);Dt(()=>{var ne;let te=$.getAdmanWrapper();if(Uh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[zh(),f()]}),!f()){te.onAdmanLoadingError();return}let qe=Ee=>{te.initAdman(Ee),L=!0},de=new AbortController,fe=()=>{de.abort()},{width:$e,height:X}=ye($.ui.playerSize),Ke=ye($.ui.isFullscreen),Xe=(ne=y())!=null?ne:ye($.ui.isAutoplay),ke={width:$e,height:X,isFullscreen:Ke,isAutoplay:Xe,adsContainer:s(I),adsVideoElement:s(E),slotId:f(),params:v(),previewParam:p(),duration:w()};return window.AdmanHTML?qe(ke):te.loadAdman(de.signal).then(()=>{qe(ke)}).catch(()=>{te.onAdmanLoadingError()}),()=>{Uh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[zh(),f()]}),!L&&fe()}});var ue=Y_(),le=_(ue);{var Me=te=>{var qe=G_();b(te,qe)};V(le,te=>{l()&&te(Me)})}var Re=A(le,2);ot(Re,te=>B(E,te),()=>s(E));var ve=A(Re,2);{var pe=te=>{of(te,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return $.actions.internal.skipAd}})};V(ve,te=>{s(se)&&te(pe)})}var Ve=A(ve,2);{var ie=te=>{tf(te,{})};V(Ve,te=>{u()&&te(ie)})}var N=A(Ve,2);{var Ge=te=>{nf(te,{})};V(N,te=>{s(j)&&te(Ge)})}g(ue),ot(ue,te=>B(I,te),()=>s(I)),b(t,ue),H(),o()}var vn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(r=>String(r).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var Z_=Se('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function rf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Z_();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}var X_=Se('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function sf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=X_();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}function od(t,e){let i=m(e,"isActive",3,!1);var o=Fe(),n=ge(o);{var r=d=>{sf(d,{})},l=d=>{rf(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var J_=M('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),eb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),tb=M('<span class="text svelte-1s15d2i"> </span>'),ib=M("<div><!> <!></div>"),ob={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 id(t,e){D(e,!0),q(t,j_);let[i,o]=Oe(),n=()=>S(z,"$canSkipAd",i),r=()=>S(K,"$adPlaybackState",i),l=()=>S(I,"$isMobile",i),d=()=>S(U,"$adPosition",i),a=()=>S(Y,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),p=m(e,"adsPreviewParam",3,void 0),b=m(e,"adsAutoplayParam",3,void 0),x=m(e,"duration",3,0),y=Ie(),C=Wt(),T=y.state.isEnded$,I=y.ui.isMobile,P=C.ads.isMobileGoToSiteButton,k=Z(void 0),E=Z(void 0),L=!1,K=y.ads.playbackState,z=y.ads.canSkip,U=y.ads.position,Y=y.ads.secondsToWatchBeforeSkip,se=h(()=>n()&&r()!=="inactive"),j=h(()=>l()&&r()!=="inactive"&&P);Ht(()=>{var ne;let te=y.getAdmanWrapper();if(zh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Wh(),f()]}),!f()){te.onAdmanLoadingError();return}let Ke=Ee=>{te.initAdman(Ee),L=!0},de=new AbortController,fe=()=>{de.abort()},{width:ye,height:X}=xe(y.ui.playerSize),Qe=xe(y.ui.isFullscreen),Xe=(ne=b())!=null?ne:xe(y.ui.isAutoplay),ke={width:ye,height:X,isFullscreen:Qe,isAutoplay:Xe,adsContainer:s(k),adsVideoElement:s(E),slotId:f(),params:v(),previewParam:p(),duration:x()};return window.AdmanHTML?Ke(ke):te.loadAdman(de.signal).then(()=>{Ke(ke)}).catch(()=>{te.onAdmanLoadingError()}),()=>{zh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Wh(),f()]}),!L&&fe()}});var ue=Y_(),le=_(ue);{var Me=te=>{var Ke=G_();$(te,Ke)};V(le,te=>{l()&&te(Me)})}var Ne=A(le,2);tt(Ne,te=>B(E,te),()=>s(E));var ve=A(Ne,2);{var pe=te=>{nf(te,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};V(ve,te=>{s(se)&&te(pe)})}var Re=A(ve,2);{var ie=te=>{of(te,{})};V(Re,te=>{u()&&te(ie)})}var N=A(Re,2);{var Ye=te=>{rf(te,{})};V(N,te=>{s(j)&&te(Ye)})}g(ue),tt(ue,te=>B(k,te),()=>s(k)),$(t,ue),H(),o()}var mn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(r=>String(r).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var Z_=Te('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function sf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Z_();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}var X_=Te('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function af(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=X_();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}function od(t,e){let i=m(e,"isActive",3,!1);var o=Ue(),n=ge(o);{var r=d=>{af(d,{})},l=d=>{sf(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}$(t,o)}var J_=M('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),eb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),tb=M('<span class="text svelte-1s15d2i"> </span>'),ib=M("<div><!> <!></div>"),ob={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.`},Mh=k_;var hs=new Map;hs.set(Vh.EN,Mh)
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 nd(t,e){q(t,ob);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var r=ib();let l;var d=_(r);{var a=p=>{var y=J_();b(p,y)};V(d,p=>{i()&&p(a)})}var u=A(d,2);{var f=p=>{var y=eb(),w=_(y);od(w,{isActive:!0}),g(y),b(p,y)},v=p=>{var y=tb(),w=_(y,!0);g(y),O(()=>_e(w,e.time)),b(p,y)};V(u,p=>{o()?p(f):p(v,!1)})}g(r),O(p=>l=ee(r,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:n()})]),b(t,r)}var nb=M('<div role="timer" data-testid="thumb-timer"><!></div>'),rb={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
- opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function rd(t,e){D(e,!0),q(t,rb);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),r=h(()=>vn(e.duration-e.position));var l=nb();let d;var a=_(l);nd(a,{get time(){return s(r)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(l),O(u=>d=ee(l,1,"thumb-timer svelte-1b40w20",null,d,u),[()=>({hidden:i()})]),b(t,l),H()}var nl=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as gb}from"@vkontakte/videoplayer-core/es2015";import{clientChecker as Wh}from"@vkontakte/videoplayer-core/es2015";var af="focus-hidden";var br=t=>{t.stopPropagation(),t.preventDefault()},lf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(af)},ab=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},lb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},db=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},cb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},qh=t=>t.code==="Escape",ub=t=>t.code==="ArrowLeft",sd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Kh=t=>{db(t)?(br(t),lb(t.target)):cb(t)&&(br(t),ab(t.target))},Ds=t=>!Wh.device.isAndroid&&(t==null?void 0:t.detail)===0||Wh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",rl=(t,e,i)=>yt(null,null,function*(){yield bo(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(yield bo(),i.set(!1),t.focus())}),Qh=(t,e,i)=>yt(null,null,function*(){yield bo(),t&&!e&&ye(i)&&(i.set(!1),t.focus())}),ad=(t,e,i,o=!1)=>yt(null,null,function*(){if(yield bo(),!!t&&e&&!o){let r=t.children[0];r==null||r.classList.toggle(af,!i),r==null||r.focus()}}),Gh=(t,e)=>yt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Zc=(t,e)=>{Kh(t),lf(t.target),qh(t)&&(br(t),e())},Xc=(t,e)=>yt(null,null,function*(){sd(t,["ArrowRight"])&&(br(t),e())}),Yh=(t,e,i)=>yt(null,null,function*(){if(Kh(t),ub(t)){br(t),e();return}qh(t)&&(br(t),i())}),sl=(t,e)=>{sd(t)&&(br(t),e())},jh=(t,e,i)=>{if(sd(t))br(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),br(t);return}o==="ArrowRight"&&!e&&(i(!0),br(t))}},Zh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Xh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Jc,isValidURL as hb}from"@vkontakte/videoplayer-shared/es2015";var Nr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as Jh}from"@vkontakte/videoplayer-shared/es2015";var fb=(t,e)=>{sl(t,()=>e())},mb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),vb={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 df(t,e){D(e,!0),q(t,vb);let i=m(e,"onClick",3,Jh),o=m(e,"closeContextMenu",3,Jh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var r=mb();r.__click=n,r.__keydown=[fb,n];var l=_(r,!0);g(r),O(()=>{var d;Be(r,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Be(r,"data-testid",e.id),_e(l,e.label)}),b(t,r),H()}lt(["click","keydown"]);var va=(t,e)=>t.weight-e.weight;var ld=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ld||{});var _b=(t,e)=>{Zc(t,e)},bb=t=>{t.preventDefault()},$b=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),yb={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 cf(t,e){D(e,!0),q(t,yb);let[i,o]=Oe(),n=()=>C(se,"$isLive$",i),r=()=>C(Me,"$isPiPEnabled$",i),l=()=>C(Y,"$chromecastState$",i),d=()=>C(Re,"$pictureInPictureApiIsActive$",i),a=()=>C(le,"$isLooped$",i),u=()=>C(j,"$positionExact$",i),f=()=>C(K,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),p=m(e,"position",19,()=>({top:0,left:0})),y=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),$=m(e,"menuElementRef",15,void 0),S=Z(0),T=Z(0),k=Ie(),{pictureInPicture$:P}=uo(),I=zt(),E=k.ui.contextMenu.visible$,L=k.ui.debugPanelVisible,K=k.ui.additionalContextMenuItems$,z=k.ui.t,U=k.actions.internal.togglePictureInPicture,Y=k.state.chromecastState$,se=k.state.isLive$,j=k.state.positionExact$,ue=k.state.isInteractive,le=k.state.looped$,{isEnabled$:Me,isActive$:Re}=P,ve=h(()=>{var me;return I.features.copyVideoLink&&((me=k.callbacks)==null?void 0:me.onCopyVideoLink)}),pe=h(()=>s(ve)&&!n()&&!ue),Ve=h(()=>{var me;return!!((me=k.callbacks)!=null&&me.onCopyEmbedCodeClicked)}),ie=h(()=>r()&&l()!==gb.CONNECTED&&!ue),N=h(()=>I.features.videoRotate&&!ue),Ge=h(()=>I.showSupport&&!d()),te=h(()=>I.features.saveTraceInfoToFile),qe=()=>{var me;E.set(!1),(me=e.returnFocus)==null||me.call(e)},de=(me,Ne)=>{if(!$()||!y()||!w())return;let Je=$().getBoundingClientRect(),Ue=y().getBoundingClientRect();B(S,me-Ue.left),B(T,Ne-Ue.top),s(S)+Je.width>Ue.width&&B(S,Ue.width-Je.width),s(T)+Je.height>Ue.height&&B(T,Ue.height-Je.height),B(S,Math.max(s(S),0),!0),B(T,Math.max(s(T),0),!0)};We(()=>{yt(null,null,function*(){if($()&&y()&&w()){yield bo();let{top:Ne,left:Je,bottom:Ue,right:Mt}=p(),Tt=Je!=null?Je:0,xt=Ne!=null?Ne:0,ft=$().getBoundingClientRect();Jc(Je)&&!Jc(Mt)&&(Tt=Mt-ft.width),Jc(Ne)&&!Jc(Ue)&&(xt=Ue-ft.height),Tt=Math.max(Tt,0),xt=Math.max(xt,0),de(Tt,xt)}})});let fe=()=>{k.actions.internal.videoRotate()},$e=()=>{hb(e.supportLink)&&window.open(e.supportLink,"_blank"),k.actions.internal.reportProblem(),k.actions.internal.pause()},X=()=>{let me=k.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let Ne=new Blob([...me],{type:"plain/text"}),Je=window.URL.createObjectURL(Ne);ca(Je,"vk_player_debug_info","txt")}else nl(k.actions.internal.getDebugTextData())},Ke=()=>{let me=k.actions.internal.getTraceTextData(),Ne=new Blob([...me],{type:"application/json"}),Je=window.URL.createObjectURL(Ne);ca(Je,"vk_player_trace_info","json")},Xe=()=>{L.set(!0)},ke=()=>yt(null,null,function*(){var me;try{U()}finally{(me=e.returnFocus)==null||me.call(e)}}),ne=()=>{k.actions.internal.setLooped(!a())},Ee=()=>{var me,Ne;if(s(Ve)){let Je=(Ne=(me=k.callbacks)==null?void 0:me.onCopyEmbedCodeClicked)==null?void 0:Ne.call(me);Je&&nl(Je)}},Qe=(me=!1)=>{var Ne,Je;if((Ne=k.callbacks)!=null&&Ne.onCopyVideoLink){let Ue=(Je=k.callbacks)==null?void 0:Je.onCopyVideoLink(me,u());Ue&&nl(Ue)}},rt=h(()=>I.features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug")),nt=h(()=>s(ve)?{id:"copy-link",weight:Nr["copy-link"],label:z("menu_copy_video_link"),onClick:()=>Qe()}:void 0),Lt=h(()=>s(pe)?{id:"copy-link-timestamp",weight:Nr["copy-link-timestamp"],label:z("menu_copy_video_link_with_timestamp"),onClick:()=>Qe(!0)}:void 0),et=h(()=>s(Ve)?{id:"copy-embed-code",weight:Nr["copy-embed-code"],label:z("menu_copy_embed_code"),onClick:Ee}:void 0),ct=h(()=>s(ie)?{id:"pip",weight:Nr.pip,label:d()?z("menu_pip_close"):z("menu_pip"),onClick:ke}:void 0),Gt=h(()=>({id:"video-loop",weight:Nr["video-loop"],label:a()?z("menu_video_loop_off"):z("menu_video_loop_on"),ariaLabel:z("aria_label_menu_loop"),onClick:ne})),si=h(()=>s(N)?{id:"rotate",weight:Nr.rotate,label:z("menu_video_rotate"),ariaLabel:z("aria_label_menu_rotate"),onClick:fe}:void 0),Qt=h(()=>s(Ge)?{id:"report",weight:Nr.report,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,onClick:$e}:void 0),St=h(()=>({id:"save-debug",weight:Nr["save-debug"],label:s(rt),onClick:X})),oe=h(()=>s(te)?{id:"save-trace",weight:Nr["save-trace"],label:z("menu_save_debug"),onClick:Ke}:void 0),Vt=h(()=>({id:"debug-info",weight:Nr["debug-info"],label:z("menu_debug_overlay"),ariaLabel:z("aria_label_menu_debug_overlay"),onClick:Xe})),he=h(()=>[s(nt),s(Lt),s(et),s(ct),s(Gt),s(si),s(Qt),s(St),s(oe),s(Vt),...f()].filter(me=>!!me).sort(va));var J=Fe(),we=ge(J);{var He=me=>{var Ne=$b();Ne.__contextmenu=[bb],Ne.__keydown=[_b,qe],wi(Ne,21,()=>s(he),Je=>Je.id,(Je,Ue)=>{df(Je,{get id(){return s(Ue).id},get label(){return s(Ue).label},get ariaLabel(){return s(Ue).ariaLabel},get onClick(){return s(Ue).onClick},closeContextMenu:qe})}),g(Ne),ot(Ne,Je=>$(Je),()=>$()),O(()=>{var Je,Ue;return st(Ne,`top: ${(Je=s(T))!=null?Je:""}px; left: ${(Ue=s(S))!=null?Ue:""}px;`)}),b(me,Ne)};V(we,me=>{v()&&me(He)})}b(t,J),H(),o()}lt(["contextmenu","keydown"]);var eu=class{constructor(e){this.value=e,this.next=null}};var al=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new eu(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var xb=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),wb={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 dd(t,e){D(e,!0),q(t,wb);let i=m(e,"values",19,()=>[]),o=Z(void 0),n=Z(null),r=16,l=120,d=60,a=l/d;Dt(()=>{s(o).width=l,s(o).height=r,B(n,s(o).getContext("2d"),!0)});function u(p,y,w,$,S){S===0&&(S=1),p.fillStyle="#fff",p.fillRect(y,w,$,S)}We(()=>{let p="";if(s(n)){let y=i()[0];for(let $=1;$<i().length;$++)i()[$]>y&&(y=i()[$]);s(n).clearRect(0,0,l,r);let w=d-1;for(let $=i().length-1;$>=0;$--){let S=w*a,T=y>0?r*(i()[$]/y):0;u(s(n),S,0,a,T),p=T+" "+p,w--}}});var f=xb(),v=_(f);ot(v,p=>B(o,p),()=>s(o)),g(f),b(t,f),H()}import{safeStorage as e1}from"@vkontakte/videoplayer-shared/es2015";var Cb=(t,e)=>{t.stopPropagation(),e1.remove(Yl),e.set(!1)},Sb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Tb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Eb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Ib=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),kb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Pb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Ab=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Mb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Lb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Vb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Rb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Nb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Bb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Ob=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Db=M('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),Hb={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function cd(t,e){D(e,!0),q(t,Hb);let[i,o]=Oe(),n=()=>C(d,"$isMobile",i),r=Ie(),l=r.ui.debugPanelVisible,d=r.ui.isMobile,a=Z(ri(r.actions.internal.getDebugPanelData())),u=r.actions.internal.getVideoElement(),f=Z(0),v=Z(0),p=Z(0),y=new al(60),w=new al(60),$=new al(60),S=Z(ri([])),T=Z(ri([])),k=Z(ri([])),P=F("aria_label_debug_panel");Dt(()=>{e1.set(Yl,"true"),r.actions.internal.startLogging(),u&&(B(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),B(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let he=window.setInterval(()=>{B(a,r.actions.internal.getDebugPanelData(),!0)},500),J;return u&&(J=window.setInterval(()=>{if(u){B(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let we=u.getVideoPlaybackQuality().totalVideoFrames;B(p,we-s(f)),B(f,we,!0),y.push(s(p)),s(a).speed&&w.push(s(a).speed),s(a).bitrate&&$.push(s(a).bitrate),B(S,y.getValuesFromBottom(),!0),B(T,w.getValuesFromBottom(),!0),B(k,$.getValuesFromBottom(),!0)}},1e3)),()=>{r.actions.internal.stopLogging(),clearInterval(he),J&&clearInterval(J)}});var I=Db();let E;var L=_(I);L.__click=[Cb,l];var K=A(L,2),z=_(K),U=A(_(z),2),Y=_(U,!0);g(U),g(z);var se=A(z,2);{var j=he=>{var J=Sb(),we=A(_(J),2),He=_(we,!0);g(we),g(J),O(()=>_e(He,s(a).id)),b(he,J)};V(se,he=>{s(a).id&&he(j)})}var ue=A(se,2);{var le=he=>{var J=Tb(),we=A(_(J),2),He=_(we,!0);g(we),g(J),O(()=>_e(He,s(a).vsid)),b(he,J)};V(ue,he=>{s(a).vsid&&he(le)})}var Me=A(ue,2);{var Re=he=>{var J=Eb(),we=A(_(J),2),He=_(we,!0);g(we),g(J),O(()=>_e(He,s(a).provider)),b(he,J)};V(Me,he=>{s(a).provider&&he(Re)})}var ve=A(Me,2);{var pe=he=>{var J=Ib(),we=A(_(J),2),He=_(we);g(we),g(J),O(()=>{var me,Ne;return _e(He,`Video: ${(me=s(a).videoCodec||"")!=null?me:""} ${s(a).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function nd(t,e){q(t,ob);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var r=ib();let l;var d=_(r);{var a=p=>{var b=J_();$(p,b)};V(d,p=>{i()&&p(a)})}var u=A(d,2);{var f=p=>{var b=eb(),x=_(b);od(x,{isActive:!0}),g(b),$(p,b)},v=p=>{var b=tb(),x=_(b,!0);g(b),O(()=>be(x,e.time)),$(p,b)};V(u,p=>{o()?p(f):p(v,!1)})}g(r),O(p=>l=ee(r,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:n()})]),$(t,r)}var nb=M('<div role="timer" data-testid="thumb-timer"><!></div>'),rb={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
+ opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function rd(t,e){D(e,!0),q(t,rb);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),r=h(()=>mn(e.duration-e.position));var l=nb();let d;var a=_(l);nd(a,{get time(){return s(r)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(l),O(u=>d=ee(l,1,"thumb-timer svelte-1b40w20",null,d,u),[()=>({hidden:i()})]),$(t,l),H()}var rl=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as gb}from"@vkontakte/videoplayer-core/es2015";import{clientChecker as qh}from"@vkontakte/videoplayer-core/es2015";var lf="focus-hidden";var gr=t=>{t.stopPropagation(),t.preventDefault()},df=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(lf)},ab=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},lb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},db=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},cb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Kh=t=>t.code==="Escape",ub=t=>t.code==="ArrowLeft",sd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Qh=t=>{db(t)?(gr(t),lb(t.target)):cb(t)&&(gr(t),ab(t.target))},Bs=t=>!qh.device.isAndroid&&(t==null?void 0:t.detail)===0||qh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",sl=(t,e,i)=>wt(null,null,function*(){yield xo(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(yield xo(),i.set(!1),t.focus())}),Gh=(t,e,i)=>wt(null,null,function*(){yield xo(),t&&!e&&xe(i)&&(i.set(!1),t.focus())}),ad=(t,e,i,o=!1)=>wt(null,null,function*(){if(yield xo(),!!t&&e&&!o){let r=t.children[0];r==null||r.classList.toggle(lf,!i),r==null||r.focus()}}),Yh=(t,e)=>wt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Zc=(t,e)=>{Qh(t),df(t.target),Kh(t)&&(gr(t),e())},Xc=(t,e)=>wt(null,null,function*(){sd(t,["ArrowRight"])&&(gr(t),e())}),jh=(t,e,i)=>wt(null,null,function*(){if(Qh(t),ub(t)){gr(t),e();return}Kh(t)&&(gr(t),i())}),al=(t,e)=>{sd(t)&&(gr(t),e())},Zh=(t,e,i)=>{if(sd(t))gr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),gr(t);return}o==="ArrowRight"&&!e&&(i(!0),gr(t))}},Xh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Jh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Jc,isValidURL as hb}from"@vkontakte/videoplayer-shared/es2015";var Rr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as e1}from"@vkontakte/videoplayer-shared/es2015";var fb=(t,e)=>{al(t,()=>e())},mb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),vb={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 cf(t,e){D(e,!0),q(t,vb);let i=m(e,"onClick",3,e1),o=m(e,"closeContextMenu",3,e1),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var r=mb();r.__click=n,r.__keydown=[fb,n];var l=_(r,!0);g(r),O(()=>{var d;De(r,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(r,"data-testid",e.id),be(l,e.label)}),$(t,r),H()}dt(["click","keydown"]);var ma=(t,e)=>t.weight-e.weight;var ld=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ld||{});var _b=(t,e)=>{Zc(t,e)},bb=t=>{t.preventDefault()},$b=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),yb={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 uf(t,e){D(e,!0),q(t,yb);let[i,o]=Oe(),n=()=>S(se,"$isLive$",i),r=()=>S(Me,"$isPiPEnabled$",i),l=()=>S(Y,"$chromecastState$",i),d=()=>S(Ne,"$pictureInPictureApiIsActive$",i),a=()=>S(le,"$isLooped$",i),u=()=>S(j,"$positionExact$",i),f=()=>S(K,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),p=m(e,"position",19,()=>({top:0,left:0})),b=m(e,"playerContainerRef",3,void 0),x=m(e,"controlsContainerRef",3,void 0),y=m(e,"menuElementRef",15,void 0),C=Z(0),T=Z(0),I=Ie(),{pictureInPicture$:P}=fo(),k=Wt(),E=I.ui.contextMenu.visible$,L=I.ui.debugPanelVisible,K=I.ui.additionalContextMenuItems$,z=I.ui.t,U=I.actions.internal.togglePictureInPicture,Y=I.state.chromecastState$,se=I.state.isLive$,j=I.state.positionExact$,ue=I.state.isInteractive,le=I.state.looped$,{isEnabled$:Me,isActive$:Ne}=P,ve=h(()=>{var me;return k.features.copyVideoLink&&((me=I.callbacks)==null?void 0:me.onCopyVideoLink)}),pe=h(()=>s(ve)&&!n()&&!ue),Re=h(()=>{var me;return!!((me=I.callbacks)!=null&&me.onCopyEmbedCodeClicked)}),ie=h(()=>r()&&l()!==gb.CONNECTED&&!ue),N=h(()=>k.features.videoRotate&&!ue),Ye=h(()=>k.showSupport&&!d()),te=h(()=>k.features.saveTraceInfoToFile),Ke=()=>{var me;E.set(!1),(me=e.returnFocus)==null||me.call(e)},de=(me,Be)=>{if(!y()||!b()||!x())return;let Je=y().getBoundingClientRect(),ze=b().getBoundingClientRect();B(C,me-ze.left),B(T,Be-ze.top),s(C)+Je.width>ze.width&&B(C,ze.width-Je.width),s(T)+Je.height>ze.height&&B(T,ze.height-Je.height),B(C,Math.max(s(C),0),!0),B(T,Math.max(s(T),0),!0)};qe(()=>{wt(null,null,function*(){if(y()&&b()&&x()){yield xo();let{top:Be,left:Je,bottom:ze,right:Lt}=p(),Et=Je!=null?Je:0,St=Be!=null?Be:0,ht=y().getBoundingClientRect();Jc(Je)&&!Jc(Lt)&&(Et=Lt-ht.width),Jc(Be)&&!Jc(ze)&&(St=ze-ht.height),Et=Math.max(Et,0),St=Math.max(St,0),de(Et,St)}})});let fe=()=>{I.actions.internal.videoRotate()},ye=()=>{hb(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},X=()=>{let me=I.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let Be=new Blob([...me],{type:"plain/text"}),Je=window.URL.createObjectURL(Be);da(Je,"vk_player_debug_info","txt")}else rl(I.actions.internal.getDebugTextData())},Qe=()=>{let me=I.actions.internal.getTraceTextData(),Be=new Blob([...me],{type:"application/json"}),Je=window.URL.createObjectURL(Be);da(Je,"vk_player_trace_info","json")},Xe=()=>{L.set(!0)},ke=()=>wt(null,null,function*(){var me;try{U()}finally{(me=e.returnFocus)==null||me.call(e)}}),ne=()=>{I.actions.internal.setLooped(!a())},Ee=()=>{var me,Be;if(s(Re)){let Je=(Be=(me=I.callbacks)==null?void 0:me.onCopyEmbedCodeClicked)==null?void 0:Be.call(me);Je&&rl(Je)}},Ge=(me=!1)=>{var Be,Je;if((Be=I.callbacks)!=null&&Be.onCopyVideoLink){let ze=(Je=I.callbacks)==null?void 0:Je.onCopyVideoLink(me,u());ze&&rl(ze)}},rt=h(()=>k.features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug")),nt=h(()=>s(ve)?{id:"copy-link",weight:Rr["copy-link"],label:z("menu_copy_video_link"),onClick:()=>Ge()}:void 0),Rt=h(()=>s(pe)?{id:"copy-link-timestamp",weight:Rr["copy-link-timestamp"],label:z("menu_copy_video_link_with_timestamp"),onClick:()=>Ge(!0)}:void 0),et=h(()=>s(Re)?{id:"copy-embed-code",weight:Rr["copy-embed-code"],label:z("menu_copy_embed_code"),onClick:Ee}:void 0),pt=h(()=>s(ie)?{id:"pip",weight:Rr.pip,label:d()?z("menu_pip_close"):z("menu_pip"),onClick:ke}:void 0),Yt=h(()=>({id:"video-loop",weight:Rr["video-loop"],label:a()?z("menu_video_loop_off"):z("menu_video_loop_on"),ariaLabel:z("aria_label_menu_loop"),onClick:ne})),si=h(()=>s(N)?{id:"rotate",weight:Rr.rotate,label:z("menu_video_rotate"),ariaLabel:z("aria_label_menu_rotate"),onClick:fe}:void 0),Qt=h(()=>s(Ye)?{id:"report",weight:Rr.report,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,onClick:ye}:void 0),Tt=h(()=>({id:"save-debug",weight:Rr["save-debug"],label:s(rt),onClick:X})),oe=h(()=>s(te)?{id:"save-trace",weight:Rr["save-trace"],label:z("menu_save_debug"),onClick:Qe}:void 0),Nt=h(()=>({id:"debug-info",weight:Rr["debug-info"],label:z("menu_debug_overlay"),ariaLabel:z("aria_label_menu_debug_overlay"),onClick:Xe})),he=h(()=>[s(nt),s(Rt),s(et),s(pt),s(Yt),s(si),s(Qt),s(Tt),s(oe),s(Nt),...f()].filter(me=>!!me).sort(ma));var J=Ue(),we=ge(J);{var Fe=me=>{var Be=$b();Be.__contextmenu=[bb],Be.__keydown=[_b,Ke],Ti(Be,21,()=>s(he),Je=>Je.id,(Je,ze)=>{cf(Je,{get id(){return s(ze).id},get label(){return s(ze).label},get ariaLabel(){return s(ze).ariaLabel},get onClick(){return s(ze).onClick},closeContextMenu:Ke})}),g(Be),tt(Be,Je=>y(Je),()=>y()),O(()=>{var Je,ze;return at(Be,`top: ${(Je=s(T))!=null?Je:""}px; left: ${(ze=s(C))!=null?ze:""}px;`)}),$(me,Be)};V(we,me=>{v()&&me(Fe)})}$(t,J),H(),o()}dt(["contextmenu","keydown"]);var eu=class{constructor(e){this.value=e,this.next=null}};var ll=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new eu(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var xb=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),wb={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 dd(t,e){D(e,!0),q(t,wb);let i=m(e,"values",19,()=>[]),o=Z(void 0),n=Z(null),r=16,l=120,d=60,a=l/d;Ht(()=>{s(o).width=l,s(o).height=r,B(n,s(o).getContext("2d"),!0)});function u(p,b,x,y,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(b,x,y,C)}qe(()=>{let p="";if(s(n)){let b=i()[0];for(let y=1;y<i().length;y++)i()[y]>b&&(b=i()[y]);s(n).clearRect(0,0,l,r);let x=d-1;for(let y=i().length-1;y>=0;y--){let C=x*a,T=b>0?r*(i()[y]/b):0;u(s(n),C,0,a,T),p=T+" "+p,x--}}});var f=xb(),v=_(f);tt(v,p=>B(o,p),()=>s(o)),g(f),$(t,f),H()}import{safeStorage as t1}from"@vkontakte/videoplayer-shared/es2015";var Sb=(t,e)=>{t.stopPropagation(),t1.remove(Yl),e.set(!1)},Cb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Tb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Eb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Ib=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),kb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Pb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Ab=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Mb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Lb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Vb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Rb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Nb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Bb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Ob=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Db=M('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),Hb={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function cd(t,e){D(e,!0),q(t,Hb);let[i,o]=Oe(),n=()=>S(d,"$isMobile",i),r=Ie(),l=r.ui.debugPanelVisible,d=r.ui.isMobile,a=Z(ri(r.actions.internal.getDebugPanelData())),u=r.actions.internal.getVideoElement(),f=Z(0),v=Z(0),p=Z(0),b=new ll(60),x=new ll(60),y=new ll(60),C=Z(ri([])),T=Z(ri([])),I=Z(ri([])),P=F("aria_label_debug_panel");Ht(()=>{t1.set(Yl,"true"),r.actions.internal.startLogging(),u&&(B(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),B(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let he=window.setInterval(()=>{B(a,r.actions.internal.getDebugPanelData(),!0)},500),J;return u&&(J=window.setInterval(()=>{if(u){B(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let we=u.getVideoPlaybackQuality().totalVideoFrames;B(p,we-s(f)),B(f,we,!0),b.push(s(p)),s(a).speed&&x.push(s(a).speed),s(a).bitrate&&y.push(s(a).bitrate),B(C,b.getValuesFromBottom(),!0),B(T,x.getValuesFromBottom(),!0),B(I,y.getValuesFromBottom(),!0)}},1e3)),()=>{r.actions.internal.stopLogging(),clearInterval(he),J&&clearInterval(J)}});var k=Db();let E;var L=_(k);L.__click=[Sb,l];var K=A(L,2),z=_(K),U=A(_(z),2),Y=_(U,!0);g(U),g(z);var se=A(z,2);{var j=he=>{var J=Cb(),we=A(_(J),2),Fe=_(we,!0);g(we),g(J),O(()=>be(Fe,s(a).id)),$(he,J)};V(se,he=>{s(a).id&&he(j)})}var ue=A(se,2);{var le=he=>{var J=Tb(),we=A(_(J),2),Fe=_(we,!0);g(we),g(J),O(()=>be(Fe,s(a).vsid)),$(he,J)};V(ue,he=>{s(a).vsid&&he(le)})}var Me=A(ue,2);{var Ne=he=>{var J=Eb(),we=A(_(J),2),Fe=_(we,!0);g(we),g(J),O(()=>be(Fe,s(a).provider)),$(he,J)};V(Me,he=>{s(a).provider&&he(Ne)})}var ve=A(Me,2);{var pe=he=>{var J=Ib(),we=A(_(J),2),Fe=_(we);g(we),g(J),O(()=>{var me,Be;return be(Fe,`Video: ${(me=s(a).videoCodec||"")!=null?me:""} ${s(a).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(Ne=s(a).audioCodec||"")!=null?Ne:""} ${s(a).audioLanguage?`(${s(a).audioLanguage})`:""}`)}),b(he,J)};V(ve,he=>{(s(a).videoCodec||s(a).audioCodec)&&he(pe)})}var Ve=A(ve,2);{var ie=he=>{var J=kb(),we=A(_(J),2),He=_(we,!0);g(we),g(J),O(()=>_e(He,s(a).viewport)),b(he,J)};V(Ve,he=>{s(a).viewport&&he(ie)})}var N=A(Ve,2);{var Ge=he=>{var J=Pb(),we=A(_(J),2),He=_(we,!0);g(we),g(J),O(()=>_e(He,s(a).videoSize)),b(he,J)};V(N,he=>{s(a).videoSize&&he(Ge)})}var te=A(N,2);{var qe=he=>{var J=Ab(),we=A(_(J),2),He=_(we,!0);g(we),g(J),O(()=>_e(He,s(a).cdn)),b(he,J)};V(te,he=>{s(a).cdn&&he(qe)})}var de=A(te,2);{var fe=he=>{var J=Mb(),we=A(_(J),2),He=_(we);g(we),g(J),O(()=>{var me;return _e(He,`${(me=s(a).volume)!=null?me:""} %`)}),b(he,J)};V(de,he=>{s(a).volume&&he(fe)})}var $e=A(de,2);{var X=he=>{var J=Lb(),we=A(_(J),2),He=_(we);g(we),g(J),O(me=>_e(He,`${me!=null?me:""} s`),[()=>s(a).position.toFixed(2)]),b(he,J)};V($e,he=>{s(a).position&&he(X)})}var Ke=A($e,2);{var Xe=he=>{var J=Vb(),we=A(_(J),2),He=_(we);g(we),g(J),O(me=>_e(He,`${me!=null?me:""} s`),[()=>s(a).buffer.toFixed(2)]),b(he,J)};V(Ke,he=>{s(a).buffer&&he(Xe)})}var ke=A(Ke,2);{var ne=he=>{var J=Rb(),we=A(_(J),2),He=_(we);g(we),g(J),O(me=>_e(He,`${me!=null?me:""} s`),[()=>s(a).liveLatency.toFixed(2)]),b(he,J)};V(ke,he=>{s(a).liveLatency&&he(ne)})}var Ee=A(ke,2);{var Qe=he=>{var J=Nb(),we=A(_(J),2),He=_(we,!0);g(we),g(J),O(me=>_e(He,me),[()=>[{value:s(a).currentVideoSegmentLength,title:"Video:"},{value:s(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:me})=>me).map(({value:me,title:Ne})=>`${Ne} ${((me!=null?me:0)/1e3).toFixed(2)} s`).join(" & ")]),b(he,J)};V(Ee,he=>{(s(a).currentVideoSegmentLength||s(a).currentAudioSegmentLength)&&he(Qe)})}var rt=A(Ee,2),nt=A(_(rt),2),Lt=_(nt);g(nt),g(rt);var et=A(rt,2);{var ct=he=>{var J=Bb(),we=A(_(J),2);dd(we,{get values(){return s(T)}});var He=A(we,2),me=_(He);g(He),g(J),O(Ne=>_e(me,`${Ne!=null?Ne:""} Kbps`),[()=>s(a).speed.toFixed(2)]),b(he,J)};V(et,he=>{s(a).speed&&he(ct)})}var Gt=A(et,2);{var si=he=>{var J=Ob(),we=A(_(J),2);dd(we,{get values(){return s(k)}});var He=A(we,2),me=_(He);g(He),g(J),O(Ne=>_e(me,`${Ne!=null?Ne:""} Kbps`),[()=>s(a).bitrate.toFixed(2)]),b(he,J)};V(Gt,he=>{s(a).bitrate&&he(si)})}var Qt=A(Gt,2),St=A(_(Qt),2);dd(St,{get values(){return s(S)}});var oe=A(St,2),Vt=_(oe,!0);g(oe),g(Qt),g(K),g(I),O(he=>{var J,we;E=ee(I,1,"container svelte-4deykz",null,E,he),Be(I,"aria-label",P),_e(Y,s(a).version),_e(Lt,`${(J=s(v))!=null?J:""} / ${(we=s(f))!=null?we:""} frames`),_e(Vt,s(p))},[()=>({"container-mobile":n()})]),b(t,I),H(),o()}lt(["click"]);import{noop as Fb}from"@vkontakte/videoplayer-shared/es2015";var Ub=(t,e)=>{t.stopPropagation(),e()()},zb=M('<div class="close svelte-1ome55p"></div>'),Wb={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 ga(t,e){D(e,!0),q(t,Wb);let i=m(e,"onClick",3,Fb);var o=zb();o.__click=[Ub,i],b(t,o),H()}lt(["click"]);import{noop as qb}from"@vkontakte/videoplayer-shared/es2015";var Kb=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>'),Qb={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 ud(t,e){D(e,!0),q(t,Qb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,qb),n=5e3,r=Z(void 0),l,d,a=Z(0),u;We(()=>{i()&&(d=Date.now(),B(a,requestAnimationFrame(v),!0))});let f=()=>{s(a)&&(cancelAnimationFrame(s(a)),B(a,0))},v=()=>{if(!i()){f();return}u=(Date.now()-d)/n,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(),B(a,requestAnimationFrame(v),!0)):o()()};Dt(()=>{if(l=s(r).getContext("2d"),!!l)return l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff",()=>{f()}}),Tn(()=>{f()});var p=Kb(),y=_(p);ot(y,w=>B(r,w),()=>s(r)),Ce(2),g(p),b(t,p),H()}var Gb=(t,e,i)=>{e(!1),i()},Yb=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),jb={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 uf(t,e){D(e,!0),q(t,jb);let[i,o]=Oe(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>C(a,"$timerNextVideoRunning$",i),l=Ie(),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=()=>{n()&&(u(!1),p())},$=()=>{e.clickCloseIcon(),y()};Dt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=Fe(),T=ge(S);{var k=P=>{var I=Yb(),E=A(ge(I),2),L=_(E),K=_(L),z=_(K,!0);g(K);var U=A(K,2);ga(U,{onClick:$}),g(L);var Y=A(L,2);Y.__click=[Gb,u,v];var se=_(Y),j=_(se),ue=_(j);let le;var Me=A(ue,2);{var Re=ie=>{let N=h(()=>r()&&n());ud(ie,{get isRunning(){return s(N)},onTimerEnded:w})};V(Me,ie=>{n()&&ie(Re)})}g(j),g(se);var ve=A(se,2),pe=_(ve),Ve=_(pe,!0);g(pe),g(ve),g(Y),g(E),O((ie,N)=>{_e(z,ie),st(j,`background-image: url('${e.thumb}')`),le=ee(ue,1,"thumb-overlay svelte-jfbaax",null,le,N),_e(Ve,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,I)};V(T,P=>{e.isHide||P(k)})}b(t,S),H(),o()}lt(["click"]);import{PlaybackState as ha}from"@vkontakte/videoplayer-core/es2015";import{checkNever as Xb}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as En}from"@vkontakte/videoplayer-statistics/es2015";var pf=(t,e)=>Math.min(+(t+e).toFixed(2),1),ff=(t,e)=>Math.max(+(t-e).toFixed(2),0),tu=(t,e,i)=>{let o=pf(e,i);e<1?t.actions.internal.setVolume(o):ye(t.state.muted$)&&t.actions.external.setMuted(!1)},iu=(t,e,i)=>{let o=ff(e,i);e>0&&t.actions.internal.setVolume(o)};var Hs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var Jb=(t,e)=>{e(t)},e$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),t$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function mf(t,e){var Qt,St;D(e,!0),q(t,t$);let[i,o]=Oe(),n=()=>C(z,"$playbackState$",i),r=()=>C(U,"$adPlaybackState",i),l=()=>C(ue,"$disabledControls$",i),d=()=>C(Y,"$positionExact$",i),a=()=>C(se,"$duration$",i),u=()=>C(fe,"$isAudioAvailable$",i),f=()=>C(j,"$volume$",i),v=()=>C(ve,"$availablePlaybackRates$",i),p=()=>C(Re,"$currentPlaybackRate$",i),y=()=>C(X,"$isInteractiveTime$",i),w=()=>C(Ke,"$showInteractiveTimeIndicatorTooltip$",i),$=()=>C(Ge,"$isEnded$",i),S=()=>C(le,"$muted$",i),T=()=>C(Me,"$currentSubtitle$",i),k=()=>C(te,"$overlayContainer$",i),P=m(e,"nextButtonActive",3,!1),I=m(e,"prevButtonActive",3,!1),E=Ie(),L=zt(),K=E.getLogger().createComponentLog("KeyboardControls component"),z=E.state.playbackState$,U=E.ads.playbackState,Y=E.state.positionExact$,se=E.state.duration$,j=E.state.volume$,ue=E.ui.controls.disabledControls$,le=E.state.muted$,Me=E.state.currentSubtitle$,Re=E.state.currentPlaybackRate$,ve=E.state.availablePlaybackRates$,pe=E.ui.contextMenu.openedByHotKey$,Ve=E.ui.contextMenu.lastActiveElem$,ie=E.ui.contextMenu.visible$,N=E.ui.contextMenu.position$,Ge=E.state.isEnded$,te=E.ui.overlayContainer$,qe=(Qt=E.callbacks)==null?void 0:Qt.onAudioDoesNotExistHint,de=(St=E.callbacks)==null?void 0:St.onAudioDisabledHint,fe=E.state.isAudioAvailable$,$e=E.state.isAudioDisabled,X=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ke}=uo(),Xe=0,ke=!0,ne=Z(void 0),Ee=oe=>(oe!==ke&&(ke=oe,Xe=0),Xe+=1,(L.controls.seekStepKeyboard+L.controls.seekStepKeyboard*Xe)/1e3),Qe=(oe,Vt=!1)=>{var Mi,pi;let he=oe.target,J=(Mi=he==null?void 0:he.getAttribute("role"))==null?void 0:Mi.includes("menuitem"),we=he.classList.contains("btn"),He=oe.code;if(we&&He==="Space")return!1;let me=oh.has(He);if(J&&me)return!1;let Ne=!ih.has(He);if(oe.ctrlKey&&Ne||oe.altKey&&Ne||oe.metaKey)return!1;let Je=J&&He==="Escape";nh.has(He)||Je||e.hideContextMenu();let Ue=n()===ha.PLAYING||n()===ha.PAUSED,Mt=e.isAds&&(r()==="paused"||r()==="playing"),Tt=!Mt&&!l().has("TIMELINE");if(!(Ue||Mt))return!1;K({message:`key down, code: ${He}, isExternal = ${Vt}`});let xt=!1,ft=()=>{xt=!0,Vt||oe.preventDefault()};switch(He){case"KeyJ":case"ArrowLeft":{if(!Tt)break;if(oe.ctrlKey||oe.altKey){let it=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(it),it&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:it.text}),ft()}else{let it=oe.shiftKey?Ee(!1):L.controls.seekStepKeyboard/1e3,Ht=Math.max(d()-it,0);d()>0&&(E.actions.internal.seekTime(Ht,En.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:it.toString()}),ft())}break}case"KeyL":case"ArrowRight":{if(!Tt)break;if(oe.ctrlKey||oe.altKey){let it=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(it),it&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:it.text}),ft()}else{let it=oe.shiftKey?Ee(!0):L.controls.seekStepKeyboard/1e3,Ht=Math.min(d()+it,a());Math.round(d())<Math.round(a())&&(E.actions.internal.seekTime(Ht,En.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:it.toString()}),ft())}break}case"ArrowUp":{if(Hs({isAudioDisabled:$e,audioDisabledHintCallback:de,isAudioAvailable:u(),audioIsNotExistHintCallback:qe,isAds:e.isAds})){let it=f(),Ht=L.controls.volumeStepKeyboard,vi=it<=1;if(tu(E,it,Ht),vi){let zi=Math.round(pf(it,Ht)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:zi}})}}ft();break}case"ArrowDown":{if(Hs({isAudioDisabled:$e,audioDisabledHintCallback:de,isAudioAvailable:u(),audioIsNotExistHintCallback:qe,isAds:e.isAds})){let it=f(),Ht=L.controls.volumeStepKeyboard,vi=it>=0;if(iu(E,it,Ht),vi){let zi=Math.round(ff(it,Ht)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:zi}})}}ft();break}case"Comma":{if(oe.shiftKey){E.actions.internal.decrementPlaybackRate();let it=v().find(Ht=>Ht.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:it==null?void 0:it.displayValue}),ft()}else{if(Mt||n()!==ha.PAUSED)break;let it=Math.max(d()-L.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(it,En.DOUBLE_TAP),ft())}break}case"Period":{if(oe.shiftKey){E.actions.internal.incrementPlaybackRate();let it=v().find(Ht=>Ht.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:it==null?void 0:it.displayValue}),ft()}else{if(Mt||n()!==ha.PAUSED)break;let it=Math.min(d()+L.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(it,En.DOUBLE_TAP),ft())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(y()&&w()&&Ke.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let it="PLAY";n()===ha.PAUSED?it="PAUSE":$()&&(it="REPLAY"),e.showHotKeyHelpers({type:it})}ft();break;case"KeyM":{Hs({isAudioDisabled:$e,audioDisabledHintCallback:de,isAudioAvailable:u(),audioIsNotExistHintCallback:qe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),ft();break}case"KeyF":e.toggleFullscreen(),ft();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(pi=T())==null?void 0:pi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ft();break;case"KeyI":E.actions.internal.togglePictureInPicture(),ft();break;case"Digit1":case"Numpad1":if(oe.shiftKey){let it=Xh(k());N.set(it),Ve.set(he),pe.set(!0),ie.set(!0),ft();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,En.DOUBLE_TAP),ft();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,En.DOUBLE_TAP),ft();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,En.DOUBLE_TAP),ft();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,En.DOUBLE_TAP),ft();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,En.DOUBLE_TAP),ft();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,En.DOUBLE_TAP),ft();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,En.DOUBLE_TAP),ft();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,En.DOUBLE_TAP),ft();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,En.DOUBLE_TAP),ft();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,En.DOUBLE_TAP),ft();break;case"Slash":{oe.shiftKey&&L.features.hotKeyMapModal&&(e.showKeyMap(),ft());break}case"KeyN":oe.shiftKey&&P()&&(E.actions.internal.nextVideoClick(),ft());break;case"KeyP":oe.shiftKey&&I()&&(E.actions.internal.prevVideoClick(),ft());break;case"ShiftLeft":case"ShiftRight":ft();break;case"Tab":case"Escape":case"Enter":break;default:Xb(He);break}return xt},rt=oe=>{let Vt=oe.code;if(oe.ctrlKey||oe.altKey||oe.metaKey)return;let he=n()===ha.PLAYING||n()===ha.PAUSED,J=e.isAds&&(r()==="paused"||r()==="playing");if(he||J)switch(Vt){case"ShiftLeft":case"ShiftRight":Xe=0;break}},nt=F("aria_label_video_player"),Lt=()=>{var oe;return(oe=s(ne))==null?void 0:oe.focus()},et=oe=>oe.type==="keydown"?Qe(oe,!0):(oe.type==="keyup"&&rt(oe),!1);var ct=e$();ct.__keyup=rt,ct.__keydown=[Jb,Qe];var Gt=_(ct);be(Gt,()=>{var oe;return(oe=e.children)!=null?oe:re}),g(ct),ot(ct,oe=>B(ne,oe),()=>s(ne)),O(()=>Be(ct,"aria-label",nt)),b(t,ct);var si=H({focus:Lt,handleExternalKeyboardEvent:et});return o(),si}lt(["keyup","keydown"]);var i$=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>'),o$={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: ${(Be=s(a).audioCodec||"")!=null?Be:""} ${s(a).audioLanguage?`(${s(a).audioLanguage})`:""}`)}),$(he,J)};V(ve,he=>{(s(a).videoCodec||s(a).audioCodec)&&he(pe)})}var Re=A(ve,2);{var ie=he=>{var J=kb(),we=A(_(J),2),Fe=_(we,!0);g(we),g(J),O(()=>be(Fe,s(a).viewport)),$(he,J)};V(Re,he=>{s(a).viewport&&he(ie)})}var N=A(Re,2);{var Ye=he=>{var J=Pb(),we=A(_(J),2),Fe=_(we,!0);g(we),g(J),O(()=>be(Fe,s(a).videoSize)),$(he,J)};V(N,he=>{s(a).videoSize&&he(Ye)})}var te=A(N,2);{var Ke=he=>{var J=Ab(),we=A(_(J),2),Fe=_(we,!0);g(we),g(J),O(()=>be(Fe,s(a).cdn)),$(he,J)};V(te,he=>{s(a).cdn&&he(Ke)})}var de=A(te,2);{var fe=he=>{var J=Mb(),we=A(_(J),2),Fe=_(we);g(we),g(J),O(()=>{var me;return be(Fe,`${(me=s(a).volume)!=null?me:""} %`)}),$(he,J)};V(de,he=>{s(a).volume&&he(fe)})}var ye=A(de,2);{var X=he=>{var J=Lb(),we=A(_(J),2),Fe=_(we);g(we),g(J),O(me=>be(Fe,`${me!=null?me:""} s`),[()=>s(a).position.toFixed(2)]),$(he,J)};V(ye,he=>{s(a).position&&he(X)})}var Qe=A(ye,2);{var Xe=he=>{var J=Vb(),we=A(_(J),2),Fe=_(we);g(we),g(J),O(me=>be(Fe,`${me!=null?me:""} s`),[()=>s(a).buffer.toFixed(2)]),$(he,J)};V(Qe,he=>{s(a).buffer&&he(Xe)})}var ke=A(Qe,2);{var ne=he=>{var J=Rb(),we=A(_(J),2),Fe=_(we);g(we),g(J),O(me=>be(Fe,`${me!=null?me:""} s`),[()=>s(a).liveLatency.toFixed(2)]),$(he,J)};V(ke,he=>{s(a).liveLatency&&he(ne)})}var Ee=A(ke,2);{var Ge=he=>{var J=Nb(),we=A(_(J),2),Fe=_(we,!0);g(we),g(J),O(me=>be(Fe,me),[()=>[{value:s(a).currentVideoSegmentLength,title:"Video:"},{value:s(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:me})=>me).map(({value:me,title:Be})=>`${Be} ${((me!=null?me:0)/1e3).toFixed(2)} s`).join(" & ")]),$(he,J)};V(Ee,he=>{(s(a).currentVideoSegmentLength||s(a).currentAudioSegmentLength)&&he(Ge)})}var rt=A(Ee,2),nt=A(_(rt),2),Rt=_(nt);g(nt),g(rt);var et=A(rt,2);{var pt=he=>{var J=Bb(),we=A(_(J),2);dd(we,{get values(){return s(T)}});var Fe=A(we,2),me=_(Fe);g(Fe),g(J),O(Be=>be(me,`${Be!=null?Be:""} Kbps`),[()=>s(a).speed.toFixed(2)]),$(he,J)};V(et,he=>{s(a).speed&&he(pt)})}var Yt=A(et,2);{var si=he=>{var J=Ob(),we=A(_(J),2);dd(we,{get values(){return s(I)}});var Fe=A(we,2),me=_(Fe);g(Fe),g(J),O(Be=>be(me,`${Be!=null?Be:""} Kbps`),[()=>s(a).bitrate.toFixed(2)]),$(he,J)};V(Yt,he=>{s(a).bitrate&&he(si)})}var Qt=A(Yt,2),Tt=A(_(Qt),2);dd(Tt,{get values(){return s(C)}});var oe=A(Tt,2),Nt=_(oe,!0);g(oe),g(Qt),g(K),g(k),O(he=>{var J,we;E=ee(k,1,"container svelte-4deykz",null,E,he),De(k,"aria-label",P),be(Y,s(a).version),be(Rt,`${(J=s(v))!=null?J:""} / ${(we=s(f))!=null?we:""} frames`),be(Nt,s(p))},[()=>({"container-mobile":n()})]),$(t,k),H(),o()}dt(["click"]);import{noop as Fb}from"@vkontakte/videoplayer-shared/es2015";var Ub=(t,e)=>{t.stopPropagation(),e()()},zb=M('<div class="close svelte-1ome55p"></div>'),Wb={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 va(t,e){D(e,!0),q(t,Wb);let i=m(e,"onClick",3,Fb);var o=zb();o.__click=[Ub,i],$(t,o),H()}dt(["click"]);import{noop as qb}from"@vkontakte/videoplayer-shared/es2015";var Kb=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>'),Qb={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 ud(t,e){D(e,!0),q(t,Qb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,qb),n=5e3,r=Z(void 0),l,d,a=Z(0),u;qe(()=>{i()&&(d=Date.now(),B(a,requestAnimationFrame(v),!0))});let f=()=>{s(a)&&(cancelAnimationFrame(s(a)),B(a,0))},v=()=>{if(!i()){f();return}u=(Date.now()-d)/n,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(),B(a,requestAnimationFrame(v),!0)):o()()};Ht(()=>{if(l=s(r).getContext("2d"),!!l)return l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff",()=>{f()}}),Sn(()=>{f()});var p=Kb(),b=_(p);tt(b,x=>B(r,x),()=>s(r)),Ce(2),g(p),$(t,p),H()}var Gb=(t,e,i)=>{e(!1),i()},Yb=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),jb={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 pf(t,e){D(e,!0),q(t,jb);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),r=()=>S(a,"$timerNextVideoRunning$",i),l=Ie(),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,b=l.actions.internal.nextVideoAnnouncementCancel,x=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),b()};Ht(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=Ue(),T=ge(C);{var I=P=>{var k=Yb(),E=A(ge(k),2),L=_(E),K=_(L),z=_(K,!0);g(K);var U=A(K,2);va(U,{onClick:y}),g(L);var Y=A(L,2);Y.__click=[Gb,u,v];var se=_(Y),j=_(se),ue=_(j);let le;var Me=A(ue,2);{var Ne=ie=>{let N=h(()=>r()&&n());ud(ie,{get isRunning(){return s(N)},onTimerEnded:x})};V(Me,ie=>{n()&&ie(Ne)})}g(j),g(se);var ve=A(se,2),pe=_(ve),Re=_(pe,!0);g(pe),g(ve),g(Y),g(E),O((ie,N)=>{be(z,ie),at(j,`background-image: url('${e.thumb}')`),le=ee(ue,1,"thumb-overlay svelte-jfbaax",null,le,N),be(Re,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),$(P,k)};V(T,P=>{e.isHide||P(I)})}$(t,C),H(),o()}dt(["click"]);import{PlaybackState as ga}from"@vkontakte/videoplayer-core/es2015";import{checkNever as Xb}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Cn}from"@vkontakte/videoplayer-statistics/es2015";var ff=(t,e)=>Math.min(+(t+e).toFixed(2),1),mf=(t,e)=>Math.max(+(t-e).toFixed(2),0),tu=(t,e,i)=>{let o=ff(e,i);e<1?t.actions.internal.setVolume(o):xe(t.state.muted$)&&t.actions.external.setMuted(!1)},iu=(t,e,i)=>{let o=mf(e,i);e>0&&t.actions.internal.setVolume(o)};var Os=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var Jb=(t,e)=>{e(t)},e$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),t$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function vf(t,e){var Qt,Tt;D(e,!0),q(t,t$);let[i,o]=Oe(),n=()=>S(z,"$playbackState$",i),r=()=>S(U,"$adPlaybackState",i),l=()=>S(ue,"$disabledControls$",i),d=()=>S(Y,"$positionExact$",i),a=()=>S(se,"$duration$",i),u=()=>S(fe,"$isAudioAvailable$",i),f=()=>S(j,"$volume$",i),v=()=>S(ve,"$availablePlaybackRates$",i),p=()=>S(Ne,"$currentPlaybackRate$",i),b=()=>S(X,"$isInteractiveTime$",i),x=()=>S(Qe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(Ye,"$isEnded$",i),C=()=>S(le,"$muted$",i),T=()=>S(Me,"$currentSubtitle$",i),I=()=>S(te,"$overlayContainer$",i),P=m(e,"nextButtonActive",3,!1),k=m(e,"prevButtonActive",3,!1),E=Ie(),L=Wt(),K=E.getLogger().createComponentLog("KeyboardControls component"),z=E.state.playbackState$,U=E.ads.playbackState,Y=E.state.positionExact$,se=E.state.duration$,j=E.state.volume$,ue=E.ui.controls.disabledControls$,le=E.state.muted$,Me=E.state.currentSubtitle$,Ne=E.state.currentPlaybackRate$,ve=E.state.availablePlaybackRates$,pe=E.ui.contextMenu.openedByHotKey$,Re=E.ui.contextMenu.lastActiveElem$,ie=E.ui.contextMenu.visible$,N=E.ui.contextMenu.position$,Ye=E.state.isEnded$,te=E.ui.overlayContainer$,Ke=(Qt=E.callbacks)==null?void 0:Qt.onAudioDoesNotExistHint,de=(Tt=E.callbacks)==null?void 0:Tt.onAudioDisabledHint,fe=E.state.isAudioAvailable$,ye=E.state.isAudioDisabled,X=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Qe}=fo(),Xe=0,ke=!0,ne=Z(void 0),Ee=oe=>(oe!==ke&&(ke=oe,Xe=0),Xe+=1,(L.controls.seekStepKeyboard+L.controls.seekStepKeyboard*Xe)/1e3),Ge=(oe,Nt=!1)=>{var Ri,pi;let he=oe.target,J=(Ri=he==null?void 0:he.getAttribute("role"))==null?void 0:Ri.includes("menuitem"),we=he.classList.contains("btn"),Fe=oe.code;if(we&&Fe==="Space")return!1;let me=nh.has(Fe);if(J&&me)return!1;let Be=!oh.has(Fe);if(oe.ctrlKey&&Be||oe.altKey&&Be||oe.metaKey)return!1;let Je=J&&Fe==="Escape";rh.has(Fe)||Je||e.hideContextMenu();let ze=n()===ga.PLAYING||n()===ga.PAUSED,Lt=e.isAds&&(r()==="paused"||r()==="playing"),Et=!Lt&&!l().has("TIMELINE");if(!(ze||Lt))return!1;K({message:`key down, code: ${Fe}, isExternal = ${Nt}`});let St=!1,ht=()=>{St=!0,Nt||oe.preventDefault()};switch(Fe){case"KeyJ":case"ArrowLeft":{if(!Et)break;if(oe.ctrlKey||oe.altKey){let ot=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(ot),ot&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:ot.text}),ht()}else{let ot=oe.shiftKey?Ee(!1):L.controls.seekStepKeyboard/1e3,Ft=Math.max(d()-ot,0);d()>0&&(E.actions.internal.seekTime(Ft,Cn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:ot.toString()}),ht())}break}case"KeyL":case"ArrowRight":{if(!Et)break;if(oe.ctrlKey||oe.altKey){let ot=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(ot),ot&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:ot.text}),ht()}else{let ot=oe.shiftKey?Ee(!0):L.controls.seekStepKeyboard/1e3,Ft=Math.min(d()+ot,a());Math.round(d())<Math.round(a())&&(E.actions.internal.seekTime(Ft,Cn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:ot.toString()}),ht())}break}case"ArrowUp":{if(Os({isAudioDisabled:ye,audioDisabledHintCallback:de,isAudioAvailable:u(),audioIsNotExistHintCallback:Ke,isAds:e.isAds})){let ot=f(),Ft=L.controls.volumeStepKeyboard,gi=ot<=1;if(tu(E,ot,Ft),gi){let Wi=Math.round(ff(ot,Ft)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Wi}})}}ht();break}case"ArrowDown":{if(Os({isAudioDisabled:ye,audioDisabledHintCallback:de,isAudioAvailable:u(),audioIsNotExistHintCallback:Ke,isAds:e.isAds})){let ot=f(),Ft=L.controls.volumeStepKeyboard,gi=ot>=0;if(iu(E,ot,Ft),gi){let Wi=Math.round(mf(ot,Ft)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Wi}})}}ht();break}case"Comma":{if(oe.shiftKey){E.actions.internal.decrementPlaybackRate();let ot=v().find(Ft=>Ft.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:ot==null?void 0:ot.displayValue}),ht()}else{if(Lt||n()!==ga.PAUSED)break;let ot=Math.max(d()-L.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(ot,Cn.DOUBLE_TAP),ht())}break}case"Period":{if(oe.shiftKey){E.actions.internal.incrementPlaybackRate();let ot=v().find(Ft=>Ft.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:ot==null?void 0:ot.displayValue}),ht()}else{if(Lt||n()!==ga.PAUSED)break;let ot=Math.min(d()+L.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(ot,Cn.DOUBLE_TAP),ht())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(b()&&x()&&Qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let ot="PLAY";n()===ga.PAUSED?ot="PAUSE":y()&&(ot="REPLAY"),e.showHotKeyHelpers({type:ot})}ht();break;case"KeyM":{Os({isAudioDisabled:ye,audioDisabledHintCallback:de,isAudioAvailable:u(),audioIsNotExistHintCallback:Ke,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),ht();break}case"KeyF":e.toggleFullscreen(),ht();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(pi=T())==null?void 0:pi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ht();break;case"KeyI":E.actions.internal.togglePictureInPicture(),ht();break;case"Digit1":case"Numpad1":if(oe.shiftKey){let ot=Jh(I());N.set(ot),Re.set(he),pe.set(!0),ie.set(!0),ht();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,Cn.DOUBLE_TAP),ht();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,Cn.DOUBLE_TAP),ht();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,Cn.DOUBLE_TAP),ht();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,Cn.DOUBLE_TAP),ht();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,Cn.DOUBLE_TAP),ht();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,Cn.DOUBLE_TAP),ht();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,Cn.DOUBLE_TAP),ht();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,Cn.DOUBLE_TAP),ht();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,Cn.DOUBLE_TAP),ht();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,Cn.DOUBLE_TAP),ht();break;case"Slash":{oe.shiftKey&&L.features.hotKeyMapModal&&(e.showKeyMap(),ht());break}case"KeyN":oe.shiftKey&&P()&&(E.actions.internal.nextVideoClick(),ht());break;case"KeyP":oe.shiftKey&&k()&&(E.actions.internal.prevVideoClick(),ht());break;case"ShiftLeft":case"ShiftRight":ht();break;case"Tab":case"Escape":case"Enter":break;default:Xb(Fe);break}return St},rt=oe=>{let Nt=oe.code;if(oe.ctrlKey||oe.altKey||oe.metaKey)return;let he=n()===ga.PLAYING||n()===ga.PAUSED,J=e.isAds&&(r()==="paused"||r()==="playing");if(he||J)switch(Nt){case"ShiftLeft":case"ShiftRight":Xe=0;break}},nt=F("aria_label_video_player"),Rt=()=>{var oe;return(oe=s(ne))==null?void 0:oe.focus()},et=oe=>oe.type==="keydown"?Ge(oe,!0):(oe.type==="keyup"&&rt(oe),!1);var pt=e$();pt.__keyup=rt,pt.__keydown=[Jb,Ge];var Yt=_(pt);$e(Yt,()=>{var oe;return(oe=e.children)!=null?oe:re}),g(pt),tt(pt,oe=>B(ne,oe),()=>s(ne)),O(()=>De(pt,"aria-label",nt)),$(t,pt);var si=H({focus:Rt,handleExternalKeyboardEvent:et});return o(),si}dt(["keyup","keydown"]);var i$=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>'),o$={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.`},Mh=k_;var hs=new Map;hs.set(Vh.EN,Mh)
150
150
  opacity: 0.2;
151
151
  }
152
152
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
153
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function _a(t,e){q(t,o$);let i=m(e,"style",3,"");var o=i$();O(()=>st(o,i())),b(t,o)}var n$=Se('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function vf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=n$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}import{noop as ll}from"@vkontakte/videoplayer-shared/es2015";var r$=t=>{t.stopPropagation()},s$=M("<button><!></button>"),a$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
153
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ha(t,e){q(t,o$);let i=m(e,"style",3,"");var o=i$();O(()=>at(o,i())),$(t,o)}var n$=Te('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function gf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=n$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}import{noop as dl}from"@vkontakte/videoplayer-shared/es2015";var r$=t=>{t.stopPropagation()},s$=M("<button><!></button>"),a$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
154
154
 
155
155
  /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
156
156
 
@@ -158,22 +158,22 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=k_;var hs=new Map;hs.set(Vh.EN,Mh)
158
158
  /* mobile */
159
159
  /* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
160
160
  .btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
161
- /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Bt(t,e){D(e,!0),q(t,a$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),r=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),u=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),p=m(e,"click",3,ll),y=m(e,"focus",3,ll),w=m(e,"blur",3,ll),$=h(()=>p()===ll?null:I=>{I.stopPropagation(),p()(I)}),S=h(()=>y()===ll?null:I=>{I.preventDefault(),y()()}),T=h(()=>w()===ll?null:I=>{I.preventDefault(),w()()});var k=s$();k.__pointerdown=[r$],k.__click=function(...I){var E;(E=s($))==null||E.apply(this,I)};var P=_(k);be(P,()=>{var I;return(I=e.children)!=null?I:re}),g(k),ot(k,I=>a(I),()=>a()),O(()=>{var I,E,L,K,z,U,Y,se;ee(k,1,`btn ${(I=i())!=null?I:""}`,"svelte-wr0kwr"),st(k,o()||null),k.disabled=(E=n())!=null?E:null,Be(k,"aria-hidden",(L=l())!=null?L:null),Be(k,"aria-label",(K=d())!=null?K:null),Be(k,"aria-keyshortcuts",(z=u())!=null?z:null),Be(k,"aria-expanded",(U=f())!=null?U:null),Be(k,"data-testid",(Y=r())!=null?Y:null),Be(k,"tabindex",v()),Be(k,"role",e.role),Be(k,"aria-checked",(se=e.areaChecked)!=null?se:null)}),Ct("focus",k,function(...I){var E;(E=s(S))==null||E.apply(this,I)}),Ct("blur",k,function(...I){var E;(E=s(T))==null||E.apply(this,I)}),b(t,k),H()}lt(["pointerdown","click"]);var l$=M('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),d$=M('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),c$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function gf(t,e){D(e,!0),q(t,c$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var r=d$(),l=_(r),d=_(l);{var a=p=>{var y=l$(),w=_(y),$=_(w,!0);g(w);var S=A(w,2);{var T=k=>{Bt(k,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(P,I)=>{vf(P,{})},$$slots:{default:!0}})};V(S,k=>{o()&&k(T)})}g(y),O(()=>_e($,e.title)),b(p,y)};V(d,p=>{i()&&p(a)})}var u=A(d,2),f=_(u),v=_(f);be(v,()=>{var p;return(p=e.children)!=null?p:re}),g(f),g(u),g(l),g(r),b(t,r),H()}var u$=new Set(["BR"]),t1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],l=r.tagName;u$.has(l)||(n=r.parentElement)==null||n.removeChild(r)}return e.innerHTML};var p$=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>'),f$=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>'),m$=M('<div class="hot-key-map svelte-quklnq"></div>'),v$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
161
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Ot(t,e){D(e,!0),q(t,a$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),r=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),u=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),p=m(e,"click",3,dl),b=m(e,"focus",3,dl),x=m(e,"blur",3,dl),y=h(()=>p()===dl?null:k=>{k.stopPropagation(),p()(k)}),C=h(()=>b()===dl?null:k=>{k.preventDefault(),b()()}),T=h(()=>x()===dl?null:k=>{k.preventDefault(),x()()});var I=s$();I.__pointerdown=[r$],I.__click=function(...k){var E;(E=s(y))==null||E.apply(this,k)};var P=_(I);$e(P,()=>{var k;return(k=e.children)!=null?k:re}),g(I),tt(I,k=>a(k),()=>a()),O(()=>{var k,E,L,K,z,U,Y,se;ee(I,1,`btn ${(k=i())!=null?k:""}`,"svelte-wr0kwr"),at(I,o()||null),I.disabled=(E=n())!=null?E:null,De(I,"aria-hidden",(L=l())!=null?L:null),De(I,"aria-label",(K=d())!=null?K:null),De(I,"aria-keyshortcuts",(z=u())!=null?z:null),De(I,"aria-expanded",(U=f())!=null?U:null),De(I,"data-testid",(Y=r())!=null?Y:null),De(I,"tabindex",v()),De(I,"role",e.role),De(I,"aria-checked",(se=e.areaChecked)!=null?se:null)}),Ct("focus",I,function(...k){var E;(E=s(C))==null||E.apply(this,k)}),Ct("blur",I,function(...k){var E;(E=s(T))==null||E.apply(this,k)}),$(t,I),H()}dt(["pointerdown","click"]);var l$=M('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),d$=M('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),c$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function hf(t,e){D(e,!0),q(t,c$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var r=d$(),l=_(r),d=_(l);{var a=p=>{var b=l$(),x=_(b),y=_(x,!0);g(x);var C=A(x,2);{var T=I=>{Ot(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(P,k)=>{gf(P,{})},$$slots:{default:!0}})};V(C,I=>{o()&&I(T)})}g(b),O(()=>be(y,e.title)),$(p,b)};V(d,p=>{i()&&p(a)})}var u=A(d,2),f=_(u),v=_(f);$e(v,()=>{var p;return(p=e.children)!=null?p:re}),g(f),g(u),g(l),g(r),$(t,r),H()}var u$=new Set(["BR"]),i1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],l=r.tagName;u$.has(l)||(n=r.parentElement)==null||n.removeChild(r)}return e.innerHTML};var p$=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>'),f$=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>'),m$=M('<div class="hot-key-map svelte-quklnq"></div>'),v$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
162
162
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
163
- .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function hf(t,e){D(e,!1),q(t,v$);let[i,o]=Oe(),n=()=>C(l,"$data",i),r=Ie(),{data:l,show:d}=r.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Rr(),gf(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var v=m$();wi(v,5,()=>n().groups,({title:p,items:y})=>p,(p,y)=>{let w=()=>s(y).title,$=()=>s(y).items;var S=f$(),T=_(S),k=_(T,!0);g(T);var P=A(T,2);wi(P,5,$,({description:I,value:E})=>E,(I,E)=>{let L=()=>s(E).description,K=()=>s(E).value;var z=p$(),U=_(z),Y=_(U);Wl(Y,()=>t1(L())),g(U);var se=A(U,2),j=_(se,!0);g(se),g(z),O(()=>_e(j,K())),b(I,z)}),g(P),g(S),O(()=>_e(k,w())),b(p,S)}),g(v),b(u,v)},$$slots:{default:!0}}),H(),o()}import{noop as E1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as y1,PlaybackState as im}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-shared/es2015";var g$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),h$={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 _f(t,e){q(t,h$);var i=g$(),o=_(i);be(o,()=>{var n;return(n=e.children)!=null?n:re}),g(i),b(t,i)}import{VideoQuality as md}from"@vkontakte/videoplayer-shared/es2015";var _$=Se('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function bf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=_$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}var b$=Se('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function $f(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=b$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}var $$=Se('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function yf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=$$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var y$=Se('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function pd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=y$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var x$=Se('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function fd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=x$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}var ou=t=>{switch(t){case md.Q_720P:return yf;case md.Q_1080P:return pd;case md.Q_1440P:return fd;case md.Q_2160P:return bf;case md.Q_4320P:return $f}};var w$=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function xf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=w$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var C$=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function wf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=C$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}var S$=M('<div aria-hidden="true"><!> <!></div>'),T$={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 vd(t,e){D(e,!0),q(t,T$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=h(()=>ou(o())),r=h(()=>!!s(n)&&[pd,fd].includes(s(n)));var l=Fe(),d=ge(l);{var a=f=>{xf(f,{})},u=f=>{var v=S$();let p;var y=_(v);{var w=T=>{_f(T,{children:(k,P)=>{var I=Fe(),E=ge(I);Ci(E,()=>s(n),(L,K)=>{K(L,{})}),b(k,I)},$$slots:{default:!0}})};V(y,T=>{s(n)&&T(w)})}var $=A(y,2);let S=h(()=>s(n)?"settings-icon--labeled":"settings-icon");wf($,{get"data-testid"(){return s(S)},fill:"var(--btn-color, #fff)"}),g(v),O(T=>p=ee(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:s(r)})]),b(f,v)};V(d,f=>{i()?f(a):f(u,!1)})}b(t,l),H()}var E$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),I$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function dl(t,e){D(e,!0),q(t,I$);let[i,o]=Oe(),n=()=>C(e.ref$,"$ref$",i),r=()=>C(f,"$settingsMenuVisible",i),l=()=>C(y,"$isMobile",i),d=()=>C(u,"$currentQuality",i),a=Ie(),u=a.state.currentQuality$,f=a.ui.settingsMenu.visible$,v=a.actions.internal.openSettingsMenu,p=a.actions.internal.closeSettingsMenu,y=a.ui.isMobile,w=a.ui.t,$=Z(void 0);We(()=>{n()&&Et(()=>{e.ref$.set(s($))})});let S=w("aria_label_settings");function T(P){return yt(this,null,function*(){let I=Ds(P);r()?p():v(I,bo)})}let k=h(()=>r()?"opened":"");Bt(t,{get className(){return s(k)},testId:"btn-settings",click:T,get ariaLabel(){return S},get ariaExpanded(){return r()},get ref(){return s($)},set ref(P){B($,P,!0)},children:(P,I)=>{var E=E$(),L=_(E);vd(L,{get isMobile(){return l()},get currentQuality(){return d()}}),g(E),b(P,E)},$$slots:{default:!0}}),H(),o()}var k$=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function Cf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=k$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var P$=Se('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function gd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=P$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}function Sf(t,e){D(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ie().ui.t,r=h(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Bt(t,{testId:"btn-Subtitles",get ariaLabel(){return s(r)},get click(){return e.click},get ariaKeyShortCut(){return is.KeyC},role:"button",children:(l,d)=>{var a=Fe(),u=ge(a);{var f=p=>{Cf(p,{})},v=p=>{gd(p,{})};V(u,p=>{i()?p(f):p(v,!1)})}b(l,a)},$$slots:{default:!0}}),H()}var A$=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),M$=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),L$={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 hd(t,e){D(e,!0),q(t,L$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),r=h(()=>vn(e.duration)),l=h(()=>vn(e.position));var d=M$();let a;var u=_(d),f=_(u,!0);g(u);var v=A(u,2);{var p=y=>{var w=A$(),$=_(w,!0);g(w),O(()=>_e($,s(r))),b(y,w)};V(v,y=>{o()&&y(p)})}g(d),ot(d,y=>n(y),()=>n()),O(y=>{a=ee(d,1,"time svelte-sz9er7",null,a,y),_e(f,s(l))},[()=>({mobile:i()})]),b(t,d),H()}import{noop as nu}from"@vkontakte/videoplayer-shared/es2015";var V$=Se('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),R$={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
163
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function _f(t,e){D(e,!1),q(t,v$);let[i,o]=Oe(),n=()=>S(l,"$data",i),r=Ie(),{data:l,show:d}=r.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Vr(),hf(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var v=m$();Ti(v,5,()=>n().groups,({title:p,items:b})=>p,(p,b)=>{let x=()=>s(b).title,y=()=>s(b).items;var C=f$(),T=_(C),I=_(T,!0);g(T);var P=A(T,2);Ti(P,5,y,({description:k,value:E})=>E,(k,E)=>{let L=()=>s(E).description,K=()=>s(E).value;var z=p$(),U=_(z),Y=_(U);Wl(Y,()=>i1(L())),g(U);var se=A(U,2),j=_(se,!0);g(se),g(z),O(()=>be(j,K())),$(k,z)}),g(P),g(C),O(()=>be(I,x())),$(p,C)}),g(v),$(u,v)},$$slots:{default:!0}}),H(),o()}import{noop as I1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as x1,PlaybackState as om}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-shared/es2015";var g$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),h$={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 bf(t,e){q(t,h$);var i=g$(),o=_(i);$e(o,()=>{var n;return(n=e.children)!=null?n:re}),g(i),$(t,i)}import{VideoQuality as md}from"@vkontakte/videoplayer-shared/es2015";var _$=Te('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function $f(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=_$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}var b$=Te('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function yf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=b$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}var $$=Te('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function xf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=$$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var y$=Te('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function pd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=y$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var x$=Te('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function fd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=x$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}var ou=t=>{switch(t){case md.Q_720P:return xf;case md.Q_1080P:return pd;case md.Q_1440P:return fd;case md.Q_2160P:return $f;case md.Q_4320P:return yf}};var w$=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function wf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=w$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var S$=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function Sf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=S$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}var C$=M('<div aria-hidden="true"><!> <!></div>'),T$={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 vd(t,e){D(e,!0),q(t,T$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=h(()=>ou(o())),r=h(()=>!!s(n)&&[pd,fd].includes(s(n)));var l=Ue(),d=ge(l);{var a=f=>{wf(f,{})},u=f=>{var v=C$();let p;var b=_(v);{var x=T=>{bf(T,{children:(I,P)=>{var k=Ue(),E=ge(k);Ei(E,()=>s(n),(L,K)=>{K(L,{})}),$(I,k)},$$slots:{default:!0}})};V(b,T=>{s(n)&&T(x)})}var y=A(b,2);let C=h(()=>s(n)?"settings-icon--labeled":"settings-icon");Sf(y,{get"data-testid"(){return s(C)},fill:"var(--btn-color, #fff)"}),g(v),O(T=>p=ee(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:s(r)})]),$(f,v)};V(d,f=>{i()?f(a):f(u,!1)})}$(t,l),H()}var E$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),I$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function cl(t,e){D(e,!0),q(t,I$);let[i,o]=Oe(),n=()=>S(e.ref$,"$ref$",i),r=()=>S(f,"$settingsMenuVisible",i),l=()=>S(b,"$isMobile",i),d=()=>S(u,"$currentQuality",i),a=Ie(),u=a.state.currentQuality$,f=a.ui.settingsMenu.visible$,v=a.actions.internal.openSettingsMenu,p=a.actions.internal.closeSettingsMenu,b=a.ui.isMobile,x=a.ui.t,y=Z(void 0);qe(()=>{n()&&It(()=>{e.ref$.set(s(y))})});let C=x("aria_label_settings");function T(P){return wt(this,null,function*(){let k=Bs(P);r()?p():v(k,xo)})}let I=h(()=>r()?"opened":"");Ot(t,{get className(){return s(I)},testId:"btn-settings",click:T,get ariaLabel(){return C},get ariaExpanded(){return r()},get ref(){return s(y)},set ref(P){B(y,P,!0)},children:(P,k)=>{var E=E$(),L=_(E);vd(L,{get isMobile(){return l()},get currentQuality(){return d()}}),g(E),$(P,E)},$$slots:{default:!0}}),H(),o()}var k$=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function Cf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=k$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var P$=Te('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function gd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=P$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}function Tf(t,e){D(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ie().ui.t,r=h(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Ot(t,{testId:"btn-Subtitles",get ariaLabel(){return s(r)},get click(){return e.click},get ariaKeyShortCut(){return ts.KeyC},role:"button",children:(l,d)=>{var a=Ue(),u=ge(a);{var f=p=>{Cf(p,{})},v=p=>{gd(p,{})};V(u,p=>{i()?p(f):p(v,!1)})}$(l,a)},$$slots:{default:!0}}),H()}var A$=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),M$=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),L$={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 hd(t,e){D(e,!0),q(t,L$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),r=h(()=>mn(e.duration)),l=h(()=>mn(e.position));var d=M$();let a;var u=_(d),f=_(u,!0);g(u);var v=A(u,2);{var p=b=>{var x=A$(),y=_(x,!0);g(x),O(()=>be(y,s(r))),$(b,x)};V(v,b=>{o()&&b(p)})}g(d),tt(d,b=>n(b),()=>n()),O(b=>{a=ee(d,1,"time svelte-sz9er7",null,a,b),be(f,s(l))},[()=>({mobile:i()})]),$(t,d),H()}import{noop as nu}from"@vkontakte/videoplayer-shared/es2015";var V$=Te('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),R$={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
164
164
  .icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
165
- .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Fs(t,e){q(t,R$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",r=h(()=>n(i(),o()));var l=V$();O(()=>{var d;Be(l,"data-value",s(r)),Be(l,"data-testid",`volume-${(d=s(r))!=null?d:""}-icon`)}),b(t,l)}import{isNonNullable as o1,noop as er}from"@vkontakte/videoplayer-shared/es2015";import{noop as Ef}from"@vkontakte/videoplayer-shared/es2015";import{noop as B$}from"@vkontakte/videoplayer-shared/es2015";var N$=M('<div class="overlay"><!></div>');function Tf(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C(l,"$overlayContainer$",i),l=Ie().ui.overlayContainer$,d=Z(void 0),a=p=>{!p||!s(d)||!p.contains(s(d))||p.removeChild(s(d))},u=p=>{!p||!s(d)||p.contains(s(d))||p.appendChild(s(d))};We(()=>{u(n())}),Dt(()=>(u(n()),()=>a(n())));var f=N$(),v=_(f);be(v,()=>{var p;return(p=e.children)!=null?p:re}),g(f),ot(f,p=>B(d,p),()=>s(d)),b(t,f),H(),o()}var O$=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),D$=M("<div><!></div> <!>",1),H$={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){D(e,!0),q(t,H$);let[i,o]=Oe(),n=()=>C(Y,"$overlayContainer$",i),r=()=>C(U,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),u=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),p=m(e,"maxTooltipWidth",3,void 0),y=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,B$),$=5,S=Z(void 0),T=Z(void 0),k,P=Z(0),I=Z(0),E=Z(0),L=Z(0),K=zt(),z=Ie(),U=z.ui.playerSize,Y=z.ui.overlayContainer$;We(()=>{Et(()=>{w()(a())})});let se=z.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!s(T)||!s(S))return;B(I,$);let ke=n().getBoundingClientRect(),ne=s(S).getBoundingClientRect(),Ee=ne.width,Qe=s(T).clientWidth,rt=r().width,nt=(Ee-Qe)/2,Lt=ne.left+u()-ke.left,et=Lt+nt,ct=ne.top+f()-ke.top,Gt=Qe/2-$,si=et<8,Qt=et+Qe>rt-8;si&&(et=8,Gt=Lt+ne.width/2-2.5*$),Qt&&(et=rt-8-Qe,Gt=ne.left-ke.left+ne.width/2-et-$),B(E,et,!0),B(L,ct),B(P,Gt,!0)},ue=()=>{!n()||!s(T)||!s(S)||B(I,-$)},le=()=>{if(!n()||!s(T)||!s(S))return;B(P,$);let ke=n().getBoundingClientRect(),ne=s(S).getBoundingClientRect(),Ee=ne.height,Qe=s(T).clientHeight,rt=(Ee-Qe)/2+Qe,nt=ne.left+u()-ke.left-s(T).clientWidth,Lt=2,et=nt-$;et<8&&(et=8);let Gt=ne.top+f()-ke.top+rt,si=Lt-rt/2,Qt=Lt-$;B(E,et,!0),B(L,Gt),B(I,si),B(P,Qt)},Me=()=>{!n()||!s(T)||!s(S)||B(P,-$)},Re=()=>{switch(y()){case"top":j();break;case"bottom":ue();break;case"left":le();break;default:Me()}},ve=()=>{try{if(!n()||!s(S))return;Re(),a(!0)}catch(ke){se({message:String(ke)})}},pe=()=>{a(!1)},Ve=()=>{s(T)&&(k||(k=window.setTimeout(ve,K.controls.hideTimeoutTooltips)),a()&&ve())},ie=()=>{pe(),window.clearTimeout(k),k=void 0},N=(ke,ne,Ee)=>{let Qe="";switch(y()){case"top":Qe=`transform: translate(${ke}px, ${ne}px);`;break;case"bottom":Qe=`transform: translate(${ke}px, ${ne}px); top: auto; bottom: 100%;`;break;case"left":Qe=`transform: translate(${ke}px, ${ne}px); left: 0; right: auto;`;break;default:Qe=`transform: translate(${ke}px, ${ne}px);`}return Qe+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Qe+=` opacity: ${Ee?1:0}; visibility: ${Ee?"visible":"hidden"}`,Qe},Ge=(ke,ne)=>{let Ee="";switch(y()){case"top":Ee=`transform: translate(${ke}px, ${ne}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ee=`transform: translate(${ke}px, ${ne}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ee=`transform: translate(${ke}px, ${ne}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ee=`transform: translate(${ke}px, ${ne}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ee},te=h(()=>N(s(E),s(L),a())),qe=h(()=>Ge(s(P),s(I)));Dt(Re),Tn(()=>window.clearTimeout(k));var de=D$(),fe=ge(de);let $e;fe.__mousemove=Ve,fe.__mousedown=ie,fe.__mouseup=Ve;var X=_(fe);be(X,()=>{var ke;return(ke=e.children)!=null?ke:re}),g(fe),ot(fe,ke=>B(S,ke),()=>s(S));var Ke=A(fe,2);{var Xe=ke=>{Tf(ke,{children:(ne,Ee)=>{var Qe=O$(),rt=_(Qe),nt=_(rt,!0);g(rt);var Lt=A(rt,2);g(Qe),ot(Qe,et=>B(T,et),()=>s(T)),O(()=>{st(Qe,s(te)),_e(nt,d()),st(Lt,s(qe))}),b(ne,Qe)},$$slots:{default:!0}})};V(Ke,ke=>{d()&&!l()&&ke(Xe)})}O(ke=>$e=ee(fe,1,"tooltip-wrapper svelte-hxlyne",null,$e,ke),[()=>({"full-width":v()})]),Ct("mouseenter",fe,Ve),Ct("mouseleave",fe,ie),b(t,de),H(),o()}lt(["mousemove","mousedown","mouseup"]);var i1=t=>{t.stopPropagation()},F$=M("<div><!></div>"),U$={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function No(t,e){D(e,!0),q(t,U$);let[i,o]=Oe(),n=()=>C(u,"$isGraphOpened$",i),r=()=>C(a,"$isMobile",i),l=Ie(),d=uo(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),p=m(e,"disabled",3,!1),y=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),$=m(e,"width",15,void 0),S=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),k=m(e,"tooltipActive",3,!1),P=m(e,"tooltipPlacement",3,"top"),I=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),L=m(e,"onTooltipVisibilityChange",3,Ef),K=m(e,"initialTranslateXPx",3,0),z=m(e,"initialTranslateYPx",19,()=>-18),U=m(e,"mouseEnter",3,Ef),Y=m(e,"mouseLeave",3,Ef),se=h(()=>p()?n()?f("tooltip_disabled_when_graph_on"):I():T());var j=F$();j.__pointerdown=[i1],j.__click=[i1];var ue=_(j);{var le=Re=>{ba(Re,{get content(){return s(se)},get translateX(){return K()},get translateY(){return z()},get isFullWidthWrapper(){return S()},get active(){return k()},get placement(){return P()},get onVisibilityChange(){return L()},children:(ve,pe)=>{var Ve=Fe(),ie=ge(Ve);be(ie,()=>{var N;return(N=e.children)!=null?N:re}),b(ve,Ve)},$$slots:{default:!0}})},Me=Re=>{var ve=Fe(),pe=ge(ve);be(pe,()=>{var Ve;return(Ve=e.children)!=null?Ve:re}),b(Re,ve)};V(ue,Re=>{y()&&s(se)&&!r()?Re(le):Re(Me,!1)})}g(j),ot(j,Re=>w(Re),()=>w()),O(()=>{var Re;ee(j,1,`btn-container ${(Re=v())!=null?Re:""}`,"svelte-p9r045"),Be(j,"aria-hidden",E()||null)}),Ct("mouseenter",j,function(...Re){var ve;(ve=U())==null||ve.apply(this,Re)}),Ct("mouseleave",j,function(...Re){var ve;(ve=Y())==null||ve.apply(this,Re)}),ts(j,"clientWidth",$),b(t,j),H(),o()}lt(["pointerdown","click"]);var z$=Se('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function _d(t,e){"use strict";var i=z$(),o=_(i),n=A(o);g(i),O(()=>{Be(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Be(o,"fill-opacity",e.completed?1:.24),Be(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var W$=M("<div><!></div>"),q$={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 If(t,e){D(e,!0),q(t,q$);let o=Ie().ui.t,n=Z(0),r=h(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));No(t,{get tooltipContent(){return s(r)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return s(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=W$();let u;var f=_(a);let v=h(()=>!!e.videoEpisode.completed);_d(f,{get completed(){return s(v)}}),g(a),O(p=>{u=ee(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),st(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),ts(a,"clientWidth",p=>B(n,p)),b(l,a)},$$slots:{default:!0}}),H()}var K$=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),Q$=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),G$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
165
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Ds(t,e){q(t,R$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",r=h(()=>n(i(),o()));var l=V$();O(()=>{var d;De(l,"data-value",s(r)),De(l,"data-testid",`volume-${(d=s(r))!=null?d:""}-icon`)}),$(t,l)}import{isNonNullable as n1,noop as Zn}from"@vkontakte/videoplayer-shared/es2015";import{noop as If}from"@vkontakte/videoplayer-shared/es2015";import{noop as B$}from"@vkontakte/videoplayer-shared/es2015";var N$=M('<div class="overlay"><!></div>');function Ef(t,e){D(e,!0);let[i,o]=Oe(),n=()=>S(l,"$overlayContainer$",i),l=Ie().ui.overlayContainer$,d=Z(void 0),a=p=>{!p||!s(d)||!p.contains(s(d))||p.removeChild(s(d))},u=p=>{!p||!s(d)||p.contains(s(d))||p.appendChild(s(d))};qe(()=>{u(n())}),Ht(()=>(u(n()),()=>a(n())));var f=N$(),v=_(f);$e(v,()=>{var p;return(p=e.children)!=null?p:re}),g(f),tt(f,p=>B(d,p),()=>s(d)),$(t,f),H(),o()}var O$=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),D$=M("<div><!></div> <!>",1),H$={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 _a(t,e){D(e,!0),q(t,H$);let[i,o]=Oe(),n=()=>S(Y,"$overlayContainer$",i),r=()=>S(U,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),u=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),p=m(e,"maxTooltipWidth",3,void 0),b=m(e,"placement",3,"top"),x=m(e,"onVisibilityChange",3,B$),y=5,C=Z(void 0),T=Z(void 0),I,P=Z(0),k=Z(0),E=Z(0),L=Z(0),K=Wt(),z=Ie(),U=z.ui.playerSize,Y=z.ui.overlayContainer$;qe(()=>{It(()=>{x()(a())})});let se=z.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!s(T)||!s(C))return;B(k,y);let ke=n().getBoundingClientRect(),ne=s(C).getBoundingClientRect(),Ee=ne.width,Ge=s(T).clientWidth,rt=r().width,nt=(Ee-Ge)/2,Rt=ne.left+u()-ke.left,et=Rt+nt,pt=ne.top+f()-ke.top,Yt=Ge/2-y,si=et<8,Qt=et+Ge>rt-8;si&&(et=8,Yt=Rt+ne.width/2-2.5*y),Qt&&(et=rt-8-Ge,Yt=ne.left-ke.left+ne.width/2-et-y),B(E,et,!0),B(L,pt),B(P,Yt,!0)},ue=()=>{!n()||!s(T)||!s(C)||B(k,-y)},le=()=>{if(!n()||!s(T)||!s(C))return;B(P,y);let ke=n().getBoundingClientRect(),ne=s(C).getBoundingClientRect(),Ee=ne.height,Ge=s(T).clientHeight,rt=(Ee-Ge)/2+Ge,nt=ne.left+u()-ke.left-s(T).clientWidth,Rt=2,et=nt-y;et<8&&(et=8);let Yt=ne.top+f()-ke.top+rt,si=Rt-rt/2,Qt=Rt-y;B(E,et,!0),B(L,Yt),B(k,si),B(P,Qt)},Me=()=>{!n()||!s(T)||!s(C)||B(P,-y)},Ne=()=>{switch(b()){case"top":j();break;case"bottom":ue();break;case"left":le();break;default:Me()}},ve=()=>{try{if(!n()||!s(C))return;Ne(),a(!0)}catch(ke){se({message:String(ke)})}},pe=()=>{a(!1)},Re=()=>{s(T)&&(I||(I=window.setTimeout(ve,K.controls.hideTimeoutTooltips)),a()&&ve())},ie=()=>{pe(),window.clearTimeout(I),I=void 0},N=(ke,ne,Ee)=>{let Ge="";switch(b()){case"top":Ge=`transform: translate(${ke}px, ${ne}px);`;break;case"bottom":Ge=`transform: translate(${ke}px, ${ne}px); top: auto; bottom: 100%;`;break;case"left":Ge=`transform: translate(${ke}px, ${ne}px); left: 0; right: auto;`;break;default:Ge=`transform: translate(${ke}px, ${ne}px);`}return Ge+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Ge+=` opacity: ${Ee?1:0}; visibility: ${Ee?"visible":"hidden"}`,Ge},Ye=(ke,ne)=>{let Ee="";switch(b()){case"top":Ee=`transform: translate(${ke}px, ${ne}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ee=`transform: translate(${ke}px, ${ne}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ee=`transform: translate(${ke}px, ${ne}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ee=`transform: translate(${ke}px, ${ne}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ee},te=h(()=>N(s(E),s(L),a())),Ke=h(()=>Ye(s(P),s(k)));Ht(Ne),Sn(()=>window.clearTimeout(I));var de=D$(),fe=ge(de);let ye;fe.__mousemove=Re,fe.__mousedown=ie,fe.__mouseup=Re;var X=_(fe);$e(X,()=>{var ke;return(ke=e.children)!=null?ke:re}),g(fe),tt(fe,ke=>B(C,ke),()=>s(C));var Qe=A(fe,2);{var Xe=ke=>{Ef(ke,{children:(ne,Ee)=>{var Ge=O$(),rt=_(Ge),nt=_(rt,!0);g(rt);var Rt=A(rt,2);g(Ge),tt(Ge,et=>B(T,et),()=>s(T)),O(()=>{at(Ge,s(te)),be(nt,d()),at(Rt,s(Ke))}),$(ne,Ge)},$$slots:{default:!0}})};V(Qe,ke=>{d()&&!l()&&ke(Xe)})}O(ke=>ye=ee(fe,1,"tooltip-wrapper svelte-hxlyne",null,ye,ke),[()=>({"full-width":v()})]),Ct("mouseenter",fe,Re),Ct("mouseleave",fe,ie),$(t,de),H(),o()}dt(["mousemove","mousedown","mouseup"]);var o1=t=>{t.stopPropagation()},F$=M("<div><!></div>"),U$={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 Do(t,e){D(e,!0),q(t,U$);let[i,o]=Oe(),n=()=>S(u,"$isGraphOpened$",i),r=()=>S(a,"$isMobile",i),l=Ie(),d=fo(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),p=m(e,"disabled",3,!1),b=m(e,"hasTooltip",3,!0),x=m(e,"ref",15,void 0),y=m(e,"width",15,void 0),C=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),I=m(e,"tooltipActive",3,!1),P=m(e,"tooltipPlacement",3,"top"),k=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),L=m(e,"onTooltipVisibilityChange",3,If),K=m(e,"initialTranslateXPx",3,0),z=m(e,"initialTranslateYPx",19,()=>-18),U=m(e,"mouseEnter",3,If),Y=m(e,"mouseLeave",3,If),se=h(()=>p()?n()?f("tooltip_disabled_when_graph_on"):k():T());var j=F$();j.__pointerdown=[o1],j.__click=[o1];var ue=_(j);{var le=Ne=>{_a(Ne,{get content(){return s(se)},get translateX(){return K()},get translateY(){return z()},get isFullWidthWrapper(){return C()},get active(){return I()},get placement(){return P()},get onVisibilityChange(){return L()},children:(ve,pe)=>{var Re=Ue(),ie=ge(Re);$e(ie,()=>{var N;return(N=e.children)!=null?N:re}),$(ve,Re)},$$slots:{default:!0}})},Me=Ne=>{var ve=Ue(),pe=ge(ve);$e(pe,()=>{var Re;return(Re=e.children)!=null?Re:re}),$(Ne,ve)};V(ue,Ne=>{b()&&s(se)&&!r()?Ne(le):Ne(Me,!1)})}g(j),tt(j,Ne=>x(Ne),()=>x()),O(()=>{var Ne;ee(j,1,`btn-container ${(Ne=v())!=null?Ne:""}`,"svelte-p9r045"),De(j,"aria-hidden",E()||null)}),Ct("mouseenter",j,function(...Ne){var ve;(ve=U())==null||ve.apply(this,Ne)}),Ct("mouseleave",j,function(...Ne){var ve;(ve=Y())==null||ve.apply(this,Ne)}),es(j,"clientWidth",y),$(t,j),H(),o()}dt(["pointerdown","click"]);var z$=Te('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function _d(t,e){"use strict";var i=z$(),o=_(i),n=A(o);g(i),O(()=>{De(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),De(o,"fill-opacity",e.completed?1:.24),De(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var W$=M("<div><!></div>"),q$={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 kf(t,e){D(e,!0),q(t,q$);let o=Ie().ui.t,n=Z(0),r=h(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Do(t,{get tooltipContent(){return s(r)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return s(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=W$();let u;var f=_(a);let v=h(()=>!!e.videoEpisode.completed);_d(f,{get completed(){return s(v)}}),g(a),O(p=>{u=ee(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),at(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),es(a,"clientWidth",p=>B(n,p)),$(l,a)},$$slots:{default:!0}}),H()}var K$=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),Q$=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),G$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
166
166
  .video-episode-loaded.svelte-1u6kv8l,
167
- .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function kf(t,e){q(t,G$);let i=m(e,"videoEpisodes",19,()=>[]);var o=Q$();wi(o,21,i,n=>n.from,(n,r)=>{var l=K$();let d;var a=_(l),u=_(a),f=A(u,2);let v;g(a),g(l),O((p,y)=>{d=ee(l,1,"video-episode svelte-1u6kv8l",null,d,p),st(l,`left: ${s(r).from}%; width: ${s(r).width}%`),st(u,`transform: translateX(${s(r).loadedWidth/s(r).width*100}%)`),v=ee(f,1,"video-episode-filled svelte-1u6kv8l",null,v,y),st(f,`transform: translateX(${s(r).filledWidth/s(r).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,l)}),g(o),b(t,o)}function Y$(t,e,i,o,n,r,l){if(t.preventDefault(),e()&&B(i,e().getBoundingClientRect(),!0),o()||s(n)||!e())return;B(n,!0);let d=r(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function j$(t,e,i,o,n,r,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);n()(a,u,s(r).width),s(l)&&d()(a)}function Z$(t,e,i,o,n){if(t.preventDefault(),e()||!s(i))return;B(i,!1);let r=o(t.clientX,t.clientY);n()(r)}function X$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var J$=M("<div></div>"),e2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),t2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),i2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
167
+ .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Pf(t,e){q(t,G$);let i=m(e,"videoEpisodes",19,()=>[]);var o=Q$();Ti(o,21,i,n=>n.from,(n,r)=>{var l=K$();let d;var a=_(l),u=_(a),f=A(u,2);let v;g(a),g(l),O((p,b)=>{d=ee(l,1,"video-episode svelte-1u6kv8l",null,d,p),at(l,`left: ${s(r).from}%; width: ${s(r).width}%`),at(u,`transform: translateX(${s(r).loadedWidth/s(r).width*100}%)`),v=ee(f,1,"video-episode-filled svelte-1u6kv8l",null,v,b),at(f,`transform: translateX(${s(r).filledWidth/s(r).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,l)}),g(o),$(t,o)}function Y$(t,e,i,o,n,r,l){if(t.preventDefault(),e()&&B(i,e().getBoundingClientRect(),!0),o()||s(n)||!e())return;B(n,!0);let d=r(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function j$(t,e,i,o,n,r,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);n()(a,u,s(r).width),s(l)&&d()(a)}function Z$(t,e,i,o,n){if(t.preventDefault(),e()||!s(i))return;B(i,!1);let r=o(t.clientX,t.clientY);n()(r)}function X$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var J$=M("<div></div>"),e2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),t2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),i2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
168
168
  /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
169
169
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
170
170
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
171
171
  .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
172
- .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function $a(t,e){D(e,!0),q(t,i2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),r=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),u=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),p=m(e,"isInteractive",3,!1),y=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),$=m(e,"onPointerDown",3,er),S=m(e,"onHandleMove",3,er),T=m(e,"onPointerUp",3,er),k=m(e,"onPointerEnter",3,er),P=m(e,"onPointerMove",3,er),I=m(e,"onPointerLeave",3,er),E=m(e,"onMouseEnter",3,er),L=m(e,"onMouseLeave",3,er),K=m(e,"onWheelUp",3,er),z=m(e,"onWheelDown",3,er),U=m(e,"onWheelLeft",3,er),Y=m(e,"onWheelRight",3,er),se=m(e,"onDisabledClick",3,er),j=m(e,"loadedProgress",3,0),ue=m(e,"filledProgress",3,0),le=m(e,"handleProgress",3,0),Me=m(e,"ariaLabel",3,""),Re=m(e,"ariaValueMin",3,void 0),ve=m(e,"ariaValueMax",3,void 0),pe=m(e,"ariaValueNow",3,void 0),Ve=m(e,"ariaValueText",3,""),ie=zt(),N=Z(void 0),Ge=Z(!1),te=h(()=>{var J;return(J=ve())!=null?J:0}),qe=h(()=>{var J;return o1(f())&&((J=f()[f().length-1])==null?void 0:J.time)<s(te)}),de=h(()=>o1(f())&&f().length&&s(qe)&&s(te)?Ee(j()*100,ue()*100):[]);function fe(J){if(J.preventDefault(),i()&&B(N,i().getBoundingClientRect(),!0),y())return;let we=ke(J.clientX,J.clientY),He=ne(J.clientX);k()(we,He,s(N).width)}function $e(J){J.preventDefault(),!y()&&I()()}function X(){E()()}function Ke(){L()()}function Xe(J){y()||v()&&(J.preventDefault(),J.deltaY<0?K()():J.deltaY>0?z()():J.deltaX>0?Y()():U()())}function ke(J,we){return l()?Math.max(0,Math.min(1,(s(N).height-(we-s(N).top))/s(N).height)):Math.min(Math.max(J-s(N).x,0),s(N).width)/s(N).width}function ne(J){return Math.min(Math.max(J-s(N).x,0),s(N).width)}function Ee(J,we){let He=ie.features.episodesClustering&&!p()?ie.episodeMinWidthPc:0,me=[],Ne=f()[0].time/s(te)*100,Je=0,Ue=0;for(let xt=1;xt<f().length;xt++)Je=f()[xt].time/s(te)*100,Je-Ne>He&&(me.push({from:Ne,width:Math.max(0,Je-Ne),loadedWidth:Math.max(0,Math.min(Je,J)-Ne),filledWidth:Math.max(0,Math.min(Je,we)-Ne),interactive:f()[xt-1].interactive,completed:f()[xt-1].completed}),Ne=f()[xt].time/s(te)*100,Ue++);let Mt={from:Ne,width:Math.max(0,100-Ne),loadedWidth:Math.max(0,Math.min(J,100)-Ne),filledWidth:Math.max(0,Math.min(we,100)-Ne),interactive:f()[Ue].interactive,completed:f()[Ue].completed};100-Ne<He?(Ue-=1,me[Ue].width+=100-Ne,me[Ue].loadedWidth+=Math.max(0,Math.min(J,100)-Ne),me[Ue].filledWidth+=Math.max(0,Math.min(we,100)-Ne)):me[Ue]=Mt;let Tt=f()[0].time;if(Tt!==0){let xt=Tt/s(te)*100;me.unshift({from:0,width:xt,loadedWidth:Math.min(xt,J),filledWidth:Math.min(xt,we)})}return me}function Qe(J){return Math.max(0,Math.min(100,J*100))}var rt=t2(),nt=ge(rt);{var Lt=J=>{var we=J$();let He;wi(we,21,()=>s(de),me=>me.from,(me,Ne)=>{var Je=Fe(),Ue=ge(Je);{var Mt=Tt=>{If(Tt,{get videoEpisode(){return s(Ne)},get disabled(){return y()}})};V(Ue,Tt=>{s(Ne).interactive&&Tt(Mt)})}b(me,Je)}),g(we),O(me=>He=ee(we,1,"interactive-icons svelte-1tpemng",null,He,me),[()=>({mobile:a(),hidden:a()&&!s(Ge)})]),b(J,we)};V(nt,J=>{p()&&J(Lt)})}var et=A(nt,2);let ct;et.__pointerdown=[Y$,i,N,y,Ge,ke,$],et.__pointermove=[j$,y,ke,ne,P,N,Ge,S],et.__pointerup=[Z$,y,Ge,ke,T],et.__click=[X$,y,se,ke];var Gt=_(et);{var si=J=>{kf(J,{get videoEpisodes(){return s(de)},get disabled(){return y()},get isMobile(){return a()}})},Qt=J=>{var we=e2(),He=_(we),me=A(He,2);let Ne;g(we),O((Je,Ue,Mt)=>{st(He,Je),Ne=ee(me,1,"filled svelte-1tpemng",null,Ne,Ue),st(me,Mt)},[()=>`transform: translateX(${Qe(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Qe(ue())}%);`]),b(J,we)};V(Gt,J=>{s(de).length?J(si):J(Qt,!1)})}var St=A(Gt,2);let oe;var Vt=_(St);let he;g(St),g(et),ot(et,J=>i(J),()=>i()),O((J,we,He,me)=>{var Ne,Je;ct=ee(et,1,`slider ${(Ne=o())!=null?Ne:""}`,"svelte-1tpemng",ct,J),Be(et,"aria-label",Me()),Be(et,"aria-valuemin",Re()),Be(et,"aria-valuemax",ve()),Be(et,"aria-valuenow",pe()),Be(et,"aria-valuetext",Ve()),Be(et,"data-testid",(Je=n())!=null?Je:null),oe=ee(St,1,"handleWrap svelte-1tpemng",null,oe,we),st(St,He),he=ee(Vt,1,"handle svelte-1tpemng",null,he,me)},[()=>({disabled:y(),"slider-dragging":s(Ge),hidden:r(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${Qe(le())}%);`,()=>({"active-live":d()})]),Ct("pointerenter",et,fe),Ct("pointerleave",et,$e),Ct("mouseenter",et,X),Ct("mouseleave",et,Ke),Ct("wheel",et,Xe),b(t,rt),H()}lt(["pointerdown","pointermove","pointerup","click"]);var Zi=(t,e)=>da[t]>=da[e],n1=(t,e)=>da[t]<da[e],Us=(t,e)=>da[t]<=da[e],r1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var o2=M("<div><!></div>"),n2=M("<div><!> <!></div>"),r2={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 Pf(t,e){var ke,ne;D(e,!0),q(t,r2);let[i,o]=Oe(),n=()=>C(k,"$isAudioAvailable$",i),r=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C($,"$currentGridType$",i),a=Ie(),u=zt(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,$=a.ui.currentGridType$,S=(ke=a.callbacks)==null?void 0:ke.onAudioDoesNotExistHint,T=(ne=a.callbacks)==null?void 0:ne.onAudioDisabledHint,k=a.state.isAudioAvailable$,P=a.state.isAudioDisabled,I=a.ui.t,E=Z(!1),L,K=h(()=>e.isAds||n()),z=h(()=>!s(K)||r()||l()===0),U=h(()=>Us(d(),"s")),Y=h(()=>s(U)?"":s(z)?!n()||P?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),se=h(()=>s(z)?I("tooltip_volume"):I("tooltip_volume_muted")),j=h(()=>s(z)?0:l()),ue=!1,le=h(()=>e.isAds?!1:P?!T:n()?!1:!S);function Me(Ee){y(),p(Ee)}function Re(){tu(a,l(),u.controls.volumeStepWheel)}function ve(){iu(a,l(),u.controls.volumeStepWheel)}function pe(Ee){p(Ee)}function Ve(Ee){p(Ee),w()}function ie(){ue=!0}function N(){ue=!1,qe()}function Ge(){clearTimeout(L),B(E,!0)}function te(){qe()}function qe(){L=window.setTimeout(()=>{ue||B(E,!1)},u.controls.volumeBarTimeout)}function de(Ee){Ee.preventDefault(),Ee.deltaY<0?Re():Ee.deltaY>0&&ve()}var fe=n2();let $e;var X=_(fe);ba(X,{get content(){return s(Y)},translateY:-18,children:(Ee,Qe)=>{let rt=h(()=>s(U)?"btn-volume-vertical":"btn-volume-horizontal");Bt(Ee,{className:"btn-full-opacity",get disabled(){return s(le)},get testId(){return s(rt)},get ariaLabel(){return s(se)},get click(){return e.click},get ariaKeyShortCut(){return is.KeyM},role:"button",children:(nt,Lt)=>{Fs(nt,{get volume(){return l()},get muted(){return s(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ke=A(X,2);{var Xe=Ee=>{var Qe=o2();let rt;var nt=_(Qe);let Lt=h(()=>s(U)?"volumeBar-slider-vertical":""),et=h(()=>s(U)&&!s(E)),ct=h(()=>s(U)?ie:nu),Gt=h(()=>s(U)?N:nu),si=h(()=>Math.round(s(j)*100)),Qt=h(()=>`${Math.round(s(j)*100)}%`),St=h(()=>s(U)?"volume-slider-vertical":"volume-slider");$a(nt,{get className(){return s(Lt)},get isHidden(){return s(et)},get isVertical(){return s(U)},withWheelHandler:!0,onWheelUp:Re,onWheelDown:ve,onPointerDown:Me,onHandleMove:pe,onPointerUp:Ve,get onPointerEnter(){return s(ct)},get onPointerLeave(){return s(Gt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return s(si)},get ariaValueText(){return s(Qt)},get filledProgress(){return s(j)},get handleProgress(){return s(j)},get testId(){return s(St)}}),g(Qe),O(oe=>rt=ee(Qe,1,"volumeBar svelte-1auih1j",null,rt,oe),[()=>({"volumeBar-vertical":s(U)})]),b(Ee,Qe)};V(Ke,Ee=>{s(K)&&Ee(Xe)})}g(fe),O(Ee=>$e=ee(fe,1,"volumeBar-container svelte-1auih1j",null,$e,Ee),[()=>({vertical:s(U)})]),Ct("mouseenter",fe,function(...Ee){var Qe;(Qe=s(U)?Ge:nu)==null||Qe.apply(this,Ee)}),Ct("mouseleave",fe,function(...Ee){var Qe;(Qe=s(U)?te:nu)==null||Qe.apply(this,Ee)}),Ct("wheel",fe,de),b(t,fe),H(),o()}import{noop as l2}from"@vkontakte/videoplayer-shared/es2015";var s2=Se('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function Af(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=s2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var a2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Mf(t,e){q(t,a2);let i=m(e,"isFullscreen",8,!1),o=Ar(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Af(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function bd(t,e){D(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,l2),n=Ie(),r=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=h(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Bt(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:u=>{let f=Ds(u);r.set(f),o()()},get ariaKeyShortCut(){return is.KeyF},role:"button",children:(u,f)=>{Mf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var d2=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function Lf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=d2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var c2=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function Vf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=c2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(4),g(o),b(t,o)}var u2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
172
+ .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function ba(t,e){D(e,!0),q(t,i2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),r=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),u=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),p=m(e,"isInteractive",3,!1),b=m(e,"disabled",3,!1),x=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,Zn),C=m(e,"onHandleMove",3,Zn),T=m(e,"onPointerUp",3,Zn),I=m(e,"onPointerEnter",3,Zn),P=m(e,"onPointerMove",3,Zn),k=m(e,"onPointerLeave",3,Zn),E=m(e,"onMouseEnter",3,Zn),L=m(e,"onMouseLeave",3,Zn),K=m(e,"onWheelUp",3,Zn),z=m(e,"onWheelDown",3,Zn),U=m(e,"onWheelLeft",3,Zn),Y=m(e,"onWheelRight",3,Zn),se=m(e,"onDisabledClick",3,Zn),j=m(e,"loadedProgress",3,0),ue=m(e,"filledProgress",3,0),le=m(e,"handleProgress",3,0),Me=m(e,"ariaLabel",3,""),Ne=m(e,"ariaValueMin",3,void 0),ve=m(e,"ariaValueMax",3,void 0),pe=m(e,"ariaValueNow",3,void 0),Re=m(e,"ariaValueText",3,""),ie=Wt(),N=Z(void 0),Ye=Z(!1),te=h(()=>{var J;return(J=ve())!=null?J:0}),Ke=h(()=>{var J;return n1(f())&&((J=f()[f().length-1])==null?void 0:J.time)<s(te)}),de=h(()=>n1(f())&&f().length&&s(Ke)&&s(te)?Ee(j()*100,ue()*100):[]);function fe(J){if(J.preventDefault(),i()&&B(N,i().getBoundingClientRect(),!0),b())return;let we=ke(J.clientX,J.clientY),Fe=ne(J.clientX);I()(we,Fe,s(N).width)}function ye(J){J.preventDefault(),!b()&&k()()}function X(){E()()}function Qe(){L()()}function Xe(J){b()||v()&&(J.preventDefault(),J.deltaY<0?K()():J.deltaY>0?z()():J.deltaX>0?Y()():U()())}function ke(J,we){return l()?Math.max(0,Math.min(1,(s(N).height-(we-s(N).top))/s(N).height)):Math.min(Math.max(J-s(N).x,0),s(N).width)/s(N).width}function ne(J){return Math.min(Math.max(J-s(N).x,0),s(N).width)}function Ee(J,we){let Fe=ie.features.episodesClustering&&!p()?ie.episodeMinWidthPc:0,me=[],Be=f()[0].time/s(te)*100,Je=0,ze=0;for(let St=1;St<f().length;St++)Je=f()[St].time/s(te)*100,Je-Be>Fe&&(me.push({from:Be,width:Math.max(0,Je-Be),loadedWidth:Math.max(0,Math.min(Je,J)-Be),filledWidth:Math.max(0,Math.min(Je,we)-Be),interactive:f()[St-1].interactive,completed:f()[St-1].completed}),Be=f()[St].time/s(te)*100,ze++);let Lt={from:Be,width:Math.max(0,100-Be),loadedWidth:Math.max(0,Math.min(J,100)-Be),filledWidth:Math.max(0,Math.min(we,100)-Be),interactive:f()[ze].interactive,completed:f()[ze].completed};100-Be<Fe?(ze-=1,me[ze].width+=100-Be,me[ze].loadedWidth+=Math.max(0,Math.min(J,100)-Be),me[ze].filledWidth+=Math.max(0,Math.min(we,100)-Be)):me[ze]=Lt;let Et=f()[0].time;if(Et!==0){let St=Et/s(te)*100;me.unshift({from:0,width:St,loadedWidth:Math.min(St,J),filledWidth:Math.min(St,we)})}return me}function Ge(J){return Math.max(0,Math.min(100,J*100))}var rt=t2(),nt=ge(rt);{var Rt=J=>{var we=J$();let Fe;Ti(we,21,()=>s(de),me=>me.from,(me,Be)=>{var Je=Ue(),ze=ge(Je);{var Lt=Et=>{kf(Et,{get videoEpisode(){return s(Be)},get disabled(){return b()}})};V(ze,Et=>{s(Be).interactive&&Et(Lt)})}$(me,Je)}),g(we),O(me=>Fe=ee(we,1,"interactive-icons svelte-1tpemng",null,Fe,me),[()=>({mobile:a(),hidden:a()&&!s(Ye)})]),$(J,we)};V(nt,J=>{p()&&J(Rt)})}var et=A(nt,2);let pt;et.__pointerdown=[Y$,i,N,b,Ye,ke,y],et.__pointermove=[j$,b,ke,ne,P,N,Ye,C],et.__pointerup=[Z$,b,Ye,ke,T],et.__click=[X$,b,se,ke];var Yt=_(et);{var si=J=>{Pf(J,{get videoEpisodes(){return s(de)},get disabled(){return b()},get isMobile(){return a()}})},Qt=J=>{var we=e2(),Fe=_(we),me=A(Fe,2);let Be;g(we),O((Je,ze,Lt)=>{at(Fe,Je),Be=ee(me,1,"filled svelte-1tpemng",null,Be,ze),at(me,Lt)},[()=>`transform: translateX(${Ge(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Ge(ue())}%);`]),$(J,we)};V(Yt,J=>{s(de).length?J(si):J(Qt,!1)})}var Tt=A(Yt,2);let oe;var Nt=_(Tt);let he;g(Tt),g(et),tt(et,J=>i(J),()=>i()),O((J,we,Fe,me)=>{var Be,Je;pt=ee(et,1,`slider ${(Be=o())!=null?Be:""}`,"svelte-1tpemng",pt,J),De(et,"aria-label",Me()),De(et,"aria-valuemin",Ne()),De(et,"aria-valuemax",ve()),De(et,"aria-valuenow",pe()),De(et,"aria-valuetext",Re()),De(et,"data-testid",(Je=n())!=null?Je:null),oe=ee(Tt,1,"handleWrap svelte-1tpemng",null,oe,we),at(Tt,Fe),he=ee(Nt,1,"handle svelte-1tpemng",null,he,me)},[()=>({disabled:b(),"slider-dragging":s(Ye),hidden:r(),"slider-vertical":l(),"no-handle":x(),square:u()}),()=>({hidden:x()}),()=>`transform: translateX(${Ge(le())}%);`,()=>({"active-live":d()})]),Ct("pointerenter",et,fe),Ct("pointerleave",et,ye),Ct("mouseenter",et,X),Ct("mouseleave",et,Qe),Ct("wheel",et,Xe),$(t,rt),H()}dt(["pointerdown","pointermove","pointerup","click"]);var Ji=(t,e)=>la[t]>=la[e],r1=(t,e)=>la[t]<la[e],Hs=(t,e)=>la[t]<=la[e],s1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var o2=M("<div><!></div>"),n2=M("<div><!> <!></div>"),r2={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 Af(t,e){var ke,ne;D(e,!0),q(t,r2);let[i,o]=Oe(),n=()=>S(I,"$isAudioAvailable$",i),r=()=>S(v,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(y,"$currentGridType$",i),a=Ie(),u=Wt(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:b,stopVolumeChanging:x}=a.actions.internal,y=a.ui.currentGridType$,C=(ke=a.callbacks)==null?void 0:ke.onAudioDoesNotExistHint,T=(ne=a.callbacks)==null?void 0:ne.onAudioDisabledHint,I=a.state.isAudioAvailable$,P=a.state.isAudioDisabled,k=a.ui.t,E=Z(!1),L,K=h(()=>e.isAds||n()),z=h(()=>!s(K)||r()||l()===0),U=h(()=>Hs(d(),"s")),Y=h(()=>s(U)?"":s(z)?!n()||P?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),se=h(()=>s(z)?k("tooltip_volume"):k("tooltip_volume_muted")),j=h(()=>s(z)?0:l()),ue=!1,le=h(()=>e.isAds?!1:P?!T:n()?!1:!C);function Me(Ee){b(),p(Ee)}function Ne(){tu(a,l(),u.controls.volumeStepWheel)}function ve(){iu(a,l(),u.controls.volumeStepWheel)}function pe(Ee){p(Ee)}function Re(Ee){p(Ee),x()}function ie(){ue=!0}function N(){ue=!1,Ke()}function Ye(){clearTimeout(L),B(E,!0)}function te(){Ke()}function Ke(){L=window.setTimeout(()=>{ue||B(E,!1)},u.controls.volumeBarTimeout)}function de(Ee){Ee.preventDefault(),Ee.deltaY<0?Ne():Ee.deltaY>0&&ve()}var fe=n2();let ye;var X=_(fe);_a(X,{get content(){return s(Y)},translateY:-18,children:(Ee,Ge)=>{let rt=h(()=>s(U)?"btn-volume-vertical":"btn-volume-horizontal");Ot(Ee,{className:"btn-full-opacity",get disabled(){return s(le)},get testId(){return s(rt)},get ariaLabel(){return s(se)},get click(){return e.click},get ariaKeyShortCut(){return ts.KeyM},role:"button",children:(nt,Rt)=>{Ds(nt,{get volume(){return l()},get muted(){return s(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Qe=A(X,2);{var Xe=Ee=>{var Ge=o2();let rt;var nt=_(Ge);let Rt=h(()=>s(U)?"volumeBar-slider-vertical":""),et=h(()=>s(U)&&!s(E)),pt=h(()=>s(U)?ie:nu),Yt=h(()=>s(U)?N:nu),si=h(()=>Math.round(s(j)*100)),Qt=h(()=>`${Math.round(s(j)*100)}%`),Tt=h(()=>s(U)?"volume-slider-vertical":"volume-slider");ba(nt,{get className(){return s(Rt)},get isHidden(){return s(et)},get isVertical(){return s(U)},withWheelHandler:!0,onWheelUp:Ne,onWheelDown:ve,onPointerDown:Me,onHandleMove:pe,onPointerUp:Re,get onPointerEnter(){return s(pt)},get onPointerLeave(){return s(Yt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return s(si)},get ariaValueText(){return s(Qt)},get filledProgress(){return s(j)},get handleProgress(){return s(j)},get testId(){return s(Tt)}}),g(Ge),O(oe=>rt=ee(Ge,1,"volumeBar svelte-1auih1j",null,rt,oe),[()=>({"volumeBar-vertical":s(U)})]),$(Ee,Ge)};V(Qe,Ee=>{s(K)&&Ee(Xe)})}g(fe),O(Ee=>ye=ee(fe,1,"volumeBar-container svelte-1auih1j",null,ye,Ee),[()=>({vertical:s(U)})]),Ct("mouseenter",fe,function(...Ee){var Ge;(Ge=s(U)?Ye:nu)==null||Ge.apply(this,Ee)}),Ct("mouseleave",fe,function(...Ee){var Ge;(Ge=s(U)?te:nu)==null||Ge.apply(this,Ee)}),Ct("wheel",fe,de),$(t,fe),H(),o()}import{noop as l2}from"@vkontakte/videoplayer-shared/es2015";var s2=Te('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function Mf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=s2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var a2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Lf(t,e){q(t,a2);let i=m(e,"isFullscreen",8,!1),o=Pr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Mf(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function bd(t,e){D(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,l2),n=Ie(),r=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=h(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ot(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:u=>{let f=Bs(u);r.set(f),o()()},get ariaKeyShortCut(){return ts.KeyF},role:"button",children:(u,f)=>{Lf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var d2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function Vf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=d2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var c2=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function Rf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=c2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(4),g(o),$(t,o)}var u2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
174
174
  svg[data-testid="vk-video-logo-icon--short"] ._en,
175
175
  svg[data-testid="vk-video-logo-icon"] ._en,
176
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Rf(t,e){q(t,u2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",r=21,l=h(()=>!o()&&!i()?91:i()?r:95),d=h(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=h(()=>`0 0 ${s(l)+1} 24`);Vf(t,{get width(){return s(l)},height:"24",get viewBox(){return s(a)},get"data-testid"(){return s(d)}})}function $d(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C(y,"$isMobile",i),r=()=>C(p,"$currentGridType$",i),l=()=>C($,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=zt(),v=Ie(),p=v.ui.currentGridType$,y=v.ui.isMobile,w=v.ui.t,$=v.isCyrillicRelatedInterface$,S=h(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=h(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),k=h(()=>(n()||Us(r(),"l"))&&s(T)),P=()=>{var L,K;e.click(),(L=v.callbacks)!=null&&L.onLogoClicked?(K=v.callbacks)==null||K.onLogoClicked():u()&&window.open(u(),"_blank")},I=h(()=>!a()),E=h(()=>s(T)?"btn-vk-video-logo":"btn-vk-logo");Bt(t,{className:"btn-full-opacity",get disabled(){return s(I)},click:P,get testId(){return s(E)},get ariaLabel(){return s(S)},get ref(){return d()},set ref(L){d(L)},children:(L,K)=>{var z=Fe(),U=ge(z);{var Y=j=>{Rf(j,{get short(){return s(k)},get isCyrillic(){return l()}})},se=j=>{Lf(j,{})};V(U,j=>{s(T)?j(Y):j(se,!1)})}b(L,z)},$$slots:{default:!0}}),H(),o()}import{ChromecastState as g2}from"@vkontakte/videoplayer-core/es2015";import{ChromecastState as s1}from"@vkontakte/videoplayer-core/es2015";var f2=Se('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),m2=Se('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),v2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
176
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Nf(t,e){q(t,u2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",r=21,l=h(()=>!o()&&!i()?91:i()?r:95),d=h(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=h(()=>`0 0 ${s(l)+1} 24`);Rf(t,{get width(){return s(l)},height:"24",get viewBox(){return s(a)},get"data-testid"(){return s(d)}})}function $d(t,e){D(e,!0);let[i,o]=Oe(),n=()=>S(b,"$isMobile",i),r=()=>S(p,"$currentGridType$",i),l=()=>S(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=Wt(),v=Ie(),p=v.ui.currentGridType$,b=v.ui.isMobile,x=v.ui.t,y=v.isCyrillicRelatedInterface$,C=h(()=>f.logoType==="vk_video"?x("tooltip_vk_video_logo"):x("tooltip_vk_logo")),T=h(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),I=h(()=>(n()||Hs(r(),"l"))&&s(T)),P=()=>{var L,K;e.click(),(L=v.callbacks)!=null&&L.onLogoClicked?(K=v.callbacks)==null||K.onLogoClicked():u()&&window.open(u(),"_blank")},k=h(()=>!a()),E=h(()=>s(T)?"btn-vk-video-logo":"btn-vk-logo");Ot(t,{className:"btn-full-opacity",get disabled(){return s(k)},click:P,get testId(){return s(E)},get ariaLabel(){return s(C)},get ref(){return d()},set ref(L){d(L)},children:(L,K)=>{var z=Ue(),U=ge(z);{var Y=j=>{Nf(j,{get short(){return s(I)},get isCyrillic(){return l()}})},se=j=>{Vf(j,{})};V(U,j=>{s(T)?j(Y):j(se,!1)})}$(L,z)},$$slots:{default:!0}}),H(),o()}import{ChromecastState as g2}from"@vkontakte/videoplayer-core/es2015";import{ChromecastState as a1}from"@vkontakte/videoplayer-core/es2015";var f2=Te('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),m2=Te('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),v2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
177
177
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
178
178
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
179
179
  animation-name: svelte-8z1bf5-wave3;}
@@ -221,9 +221,9 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=k_;var hs=new Map;hs.set(Vh.EN,Mh)
221
221
  100% {
222
222
  opacity: 1;
223
223
  }
224
- }`};function Nf(t,e){D(e,!0),q(t,v2);let i=m(e,"isMobile",3,!1),o=h(()=>e.iconState===s1.CONNECTED),n=h(()=>e.iconState===s1.CONNECTING);var r=Fe(),l=ge(r);{var d=u=>{var f=f2(),v=_(f),p=_(v),y=_(p);Ce(),g(p);var w=A(p);Ce(),g(v);var $=A(v),S=_($),T=_(S);g(S),Ce(),g($),g(f),O(()=>{Be(y,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Be(w,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Be(T,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,f)},a=u=>{var f=m2();let v;var p=_(f),y=A(_(p),5);let w;g(p),g(f),O(($,S)=>{v=ee(f,0,"svelte-8z1bf5",null,v,$),w=ee(y,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:s(n)}),()=>({hidden:!s(o)})]),b(u,f)};V(l,u=>{i()?u(d):u(a,!1)})}b(t,r),H()}import{noop as h2}from"@vkontakte/videoplayer-shared/es2015";function yd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,h2),l=Ie().ui.t,d=h(()=>e.state===g2.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Bt(t,{get ariaLabel(){return s(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{Nf(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var _2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),b2={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function Bf(t,e){q(t,b2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),r=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=Z(void 0),u=Z(void 0);function f(S){if(!s(u))return 0;let{width:T}=s(u).getBoundingClientRect(),k=T/2;return S<k?k+l():S>e.containerWidth-k?e.containerWidth-k-d():S}let v=h(()=>f(n()));var p=_2(),y=_(p);let w;var $=_(y);be($,()=>{var S;return(S=e.children)!=null?S:re}),g(y),ot(y,S=>B(u,S),()=>s(u)),g(p),ot(p,S=>B(a,S),()=>s(a)),O(S=>{st(p,`transform: translate(${s(v)}px, ${r()}px);`),w=ee(y,1,"tooltip svelte-5ygsa2",null,w,S),st(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,p)}var ru=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var a1=t=>!!(Math.round(Math.abs(t)/90)%2),l1=t=>Math.abs(t)/90%4===1;var $2=M('<div class="preview svelte-1wqg760"></div>'),y2=M('<div class="time svelte-1wqg760"> </div>'),x2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),w2={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 Of(t,e){D(e,!0),q(t,w2);let[i,o]=Oe(),n=()=>C(w,"$rotateAlpha",i),r=()=>C($,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),u=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),p=m(e,"isInteractive",3,!1),y=Ie(),w=y.ui.rotateAlpha,$=y.ui.playerSize,S=Z(0),T=Z(0),k=Z(""),P=Z(0),I=Z(0),E=Z(0),L=Z(0),K=h(()=>ru(f(),v(),u())),z=h(()=>a1(n())),U=h(()=>l1(n())),Y=h(ue),se=h(()=>(s(U)?1:-1)*(s(S)/2-s(T)/2)),j=h(()=>s(se)*-1);We(()=>{(fe=>{B(S,fe.width,!0),B(T,fe.height,!0)})(Me())}),We(()=>{(fe=>{B(k,fe.imgSrc,!0),B(P,fe.imgWidth,!0),B(I,fe.imgHeight,!0),B(E,fe.imgOffsetX,!0),B(L,fe.imgOffsetY,!0)})(Re(f()))});function ue(){var Ke;let fe=a()?l.MOBILE:l.DESKTOP,{isVertical:$e}=le(),X=30;return(Ke=s(K))!=null&&Ke.text&&(X+=16),($e||s(z))&&(X+=18,X+=50),Math.min(Math.max(r().height-X,0),fe)}function le(){let fe=e.previewThumbsData.frameWidth,$e=e.previewThumbsData.frameHeight,X=$e>fe;return{width:fe,height:$e,isHorizontal:!X,isVertical:X}}function Me(){let{height:fe,isHorizontal:$e,isVertical:X,width:Ke}=le();return $e&&(fe=fe/Ke*s(Y),Ke=s(Y)),X&&(Ke=Ke/fe*s(Y),fe=s(Y)),{width:Ke,height:fe}}function Re(fe){let $e;e.previewThumbsData.isUV?$e=Math.floor(v()*fe/e.previewThumbsData.frequency):$e=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*fe)));let X=Math.floor($e/e.previewThumbsData.countPerImage),Ke=Math.floor($e%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Xe=$e%e.previewThumbsData.countPerRow,ke=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&X===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ke=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ke++);let ne=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&X===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ne=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ee=s(S)*ne,Qe=s(T)*ke,rt=-Xe*s(S),nt=-Ke*s(T);return{imgSrc:e.previewThumbsData.links[X],imgWidth:Ee,imgHeight:Qe,imgOffsetX:rt,imgOffsetY:nt}}var ve=x2();let pe;var Ve=_(ve);{var ie=fe=>{var $e=$2();O(()=>st($e,`width: ${s(S)}px; height: ${s(T)}px; background-image: url(${s(k)}); background-size: ${s(P)}px ${s(I)}px; background-position: ${s(E)}px ${s(L)}px;
224
+ }`};function Bf(t,e){D(e,!0),q(t,v2);let i=m(e,"isMobile",3,!1),o=h(()=>e.iconState===a1.CONNECTED),n=h(()=>e.iconState===a1.CONNECTING);var r=Ue(),l=ge(r);{var d=u=>{var f=f2(),v=_(f),p=_(v),b=_(p);Ce(),g(p);var x=A(p);Ce(),g(v);var y=A(v),C=_(y),T=_(C);g(C),Ce(),g(y),g(f),O(()=>{De(b,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),De(x,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),De(T,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)")}),$(u,f)},a=u=>{var f=m2();let v;var p=_(f),b=A(_(p),5);let x;g(p),g(f),O((y,C)=>{v=ee(f,0,"svelte-8z1bf5",null,v,y),x=ee(b,0,"svelte-8z1bf5",null,x,C)},[()=>({connecting:s(n)}),()=>({hidden:!s(o)})]),$(u,f)};V(l,u=>{i()?u(d):u(a,!1)})}$(t,r),H()}import{noop as h2}from"@vkontakte/videoplayer-shared/es2015";function yd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,h2),l=Ie().ui.t,d=h(()=>e.state===g2.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ot(t,{get ariaLabel(){return s(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{Bf(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var _2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),b2={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function Of(t,e){q(t,b2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),r=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=Z(void 0),u=Z(void 0);function f(C){if(!s(u))return 0;let{width:T}=s(u).getBoundingClientRect(),I=T/2;return C<I?I+l():C>e.containerWidth-I?e.containerWidth-I-d():C}let v=h(()=>f(n()));var p=_2(),b=_(p);let x;var y=_(b);$e(y,()=>{var C;return(C=e.children)!=null?C:re}),g(b),tt(b,C=>B(u,C),()=>s(u)),g(p),tt(p,C=>B(a,C),()=>s(a)),O(C=>{at(p,`transform: translate(${s(v)}px, ${r()}px);`),x=ee(b,1,"tooltip svelte-5ygsa2",null,x,C),at(b,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,p)}var ru=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var l1=t=>!!(Math.round(Math.abs(t)/90)%2),d1=t=>Math.abs(t)/90%4===1;var $2=M('<div class="preview svelte-1wqg760"></div>'),y2=M('<div class="time svelte-1wqg760"> </div>'),x2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),w2={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 Df(t,e){D(e,!0),q(t,w2);let[i,o]=Oe(),n=()=>S(x,"$rotateAlpha",i),r=()=>S(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),u=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),p=m(e,"isInteractive",3,!1),b=Ie(),x=b.ui.rotateAlpha,y=b.ui.playerSize,C=Z(0),T=Z(0),I=Z(""),P=Z(0),k=Z(0),E=Z(0),L=Z(0),K=h(()=>ru(f(),v(),u())),z=h(()=>l1(n())),U=h(()=>d1(n())),Y=h(ue),se=h(()=>(s(U)?1:-1)*(s(C)/2-s(T)/2)),j=h(()=>s(se)*-1);qe(()=>{(fe=>{B(C,fe.width,!0),B(T,fe.height,!0)})(Me())}),qe(()=>{(fe=>{B(I,fe.imgSrc,!0),B(P,fe.imgWidth,!0),B(k,fe.imgHeight,!0),B(E,fe.imgOffsetX,!0),B(L,fe.imgOffsetY,!0)})(Ne(f()))});function ue(){var Qe;let fe=a()?l.MOBILE:l.DESKTOP,{isVertical:ye}=le(),X=30;return(Qe=s(K))!=null&&Qe.text&&(X+=16),(ye||s(z))&&(X+=18,X+=50),Math.min(Math.max(r().height-X,0),fe)}function le(){let fe=e.previewThumbsData.frameWidth,ye=e.previewThumbsData.frameHeight,X=ye>fe;return{width:fe,height:ye,isHorizontal:!X,isVertical:X}}function Me(){let{height:fe,isHorizontal:ye,isVertical:X,width:Qe}=le();return ye&&(fe=fe/Qe*s(Y),Qe=s(Y)),X&&(Qe=Qe/fe*s(Y),fe=s(Y)),{width:Qe,height:fe}}function Ne(fe){let ye;e.previewThumbsData.isUV?ye=Math.floor(v()*fe/e.previewThumbsData.frequency):ye=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*fe)));let X=Math.floor(ye/e.previewThumbsData.countPerImage),Qe=Math.floor(ye%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Xe=ye%e.previewThumbsData.countPerRow,ke=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&X===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ke=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ke++);let ne=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&X===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ne=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ee=s(C)*ne,Ge=s(T)*ke,rt=-Xe*s(C),nt=-Qe*s(T);return{imgSrc:e.previewThumbsData.links[X],imgWidth:Ee,imgHeight:Ge,imgOffsetX:rt,imgOffsetY:nt}}var ve=x2();let pe;var Re=_(ve);{var ie=fe=>{var ye=$2();O(()=>at(ye,`width: ${s(C)}px; height: ${s(T)}px; background-image: url(${s(I)}); background-size: ${s(P)}px ${s(k)}px; background-position: ${s(E)}px ${s(L)}px;
225
225
  transform: rotate(${n()}deg) ${s(z)?`translate(${s(se)}px, ${s(j)}px)`:""};
226
- `)),b(fe,$e)};V(Ve,fe=>{s(k)&&fe(ie)})}var N=A(Ve,2),Ge=_(N);{var te=fe=>{var $e=Fe(),X=ge($e);{var Ke=ke=>{var ne=es();O(Ee=>_e(ne,Ee),[()=>F("tooltip_episode_unfinished")]),b(ke,ne)},Xe=ke=>{var ne=es();O(()=>_e(ne,s(K).text||"")),b(ke,ne)};V(X,ke=>{p()&&s(K).completed===!1?ke(Ke):ke(Xe,!1)})}b(fe,$e)};V(Ge,fe=>{s(K)&&fe(te)})}g(N);var qe=A(N,2);{var de=fe=>{var $e=y2(),X=_($e,!0);g($e),O(()=>_e(X,d())),b(fe,$e)};V(qe,fe=>{p()||fe(de)})}g(ve),O(fe=>{pe=ee(ve,1,"timeline-preview svelte-1wqg760",null,pe,fe),st(ve,`width: ${s(z)?s(T):s(S)}px;`)},[()=>({mobile:a()})]),b(t,ve),H(),o()}var C2=M('<span class="time svelte-1jr6obn"> </span>'),S2=M("<!> <!>",1),T2={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 Df(t,e){var we,He,me,Ne,Je;D(e,!0),q(t,T2);let[i,o]=Oe(),n=()=>C(se,"$interactiveEpisodes$",i),r=()=>C(E,"$duration$",i),l=()=>C(I,"$position$",i),d=()=>C(le,"$isInteractiveExpectation$",i),a=()=>C(ue,"$isInteractiveTime$",i),u=()=>C(L,"$isLive$",i),f=()=>C(z,"$isMobile",i),v=()=>C(K,"$isActiveLive$",i),p=()=>C(P,"$bufferedProgress$",i),y=()=>C(ve,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),$=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=Ie(),k=zt(),P=T.state.bufferedProgress$,I=T.state.positionWithScrubbing$,E=T.state.duration$,L=T.state.isLive$,K=T.state.isActiveLive$,z=T.ui.isMobile,U=k.features.episodes&&$()?T.actions.internal.getVideoEpisodes():void 0,Y=T.actions.internal.getPreviewThumbsData(),se=T.state.interactiveEpisodes$,j=T.state.isInteractive,ue=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,Me=T.actions.internal.correctSeekTimeToInteractive,Re=(we=T.callbacks)==null?void 0:we.onDisabledTimelineClick,ve=T.ui.controls.disabledControls$,pe=(me=(He=T.callbacks)==null?void 0:He.uiInfo)==null?void 0:me.onTimelineMouseEnter,Ve=(Je=(Ne=T.callbacks)==null?void 0:Ne.uiInfo)==null?void 0:Je.onTimelineMouseLeave,ie=T.ui.t,N=k.features.interactiveResponsiveUi,Ge=h(()=>j?n():U),te=h(()=>vn(r())),qe=h(()=>vn(l())),de=h(()=>l()/r()),fe=h(()=>d()||a()),$e=Z(!1),X=Z(""),Ke=Z(0),Xe=Z(0),ke=Z(0),ne=h(()=>({containerWidth:s(Xe),translateXPx:s(Ke),translateYPx:j&&Y?-36:-16,active:s($e)&&w()&&!s(fe)&&!N,pointer:!k.features.timelinePreview||!Y||u()})),Ee=ie("aria_timeline"),Qe=h(()=>ie("aria_timeline_value",{position:s(qe),duration:s(te)}));function rt(Ue){return!Me||!j?Ue:Me(Ue*r())/r()}function nt(Ue){T.actions.internal.startScrubbing(rt(Ue))}function Lt(Ue){a()||T.actions.internal.progressScrubbing(rt(Ue))}function et(Ue){T.actions.internal.completeScrubbing(rt(Ue)),B($e,!1)}function ct(Ue,Mt,Tt){Qt(Ue,Mt,Tt),B($e,!0)}function Gt(Ue,Mt,Tt){Qt(Ue,Mt,Tt),B($e,!0)}function si(){B($e,!1)}function Qt(Ue,Mt,Tt){B(ke,rt(Ue),!0),B(Ke,Mt,!0),Tt&&B(Xe,Tt,!0),B(X,St(Ue),!0)}function St(Ue){let Mt=vn((u()?1-Ue:Ue)*r());return u()?`-${Mt}`:Mt}var oe=S2(),Vt=ge(oe);Bf(Vt,gs(()=>s(ne),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Ue,Mt)=>{var Tt=Fe(),xt=ge(Tt);{var ft=pi=>{Of(pi,{get time(){return s(X)},get isMobile(){return f()},get videoEpisodes(){return s(Ge)},get previewThumbsData(){return Y},get progress(){return s(ke)},get duration(){return r()},get isInteractive(){return j}})},Mi=pi=>{var it=C2(),Ht=_(it,!0);g(it),O(()=>_e(Ht,s(X))),b(pi,it)};V(xt,pi=>{k.features.timelinePreview&&Y&&!u()?pi(ft):pi(Mi,!1)})}b(Ue,Tt)},$$slots:{default:!0}}));var he=A(Vt,2);let J=h(()=>y().has("TIMELINE"));$a(he,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Ee},ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return l()},get ariaValueText(){return s(Qe)},get loadedProgress(){return p()},get filledProgress(){return s(de)},get handleProgress(){return s(de)},get videoEpisodes(){return s(Ge)},onPointerDown:nt,onHandleMove:Lt,onPointerMove:Gt,onPointerUp:et,onPointerEnter:ct,onPointerLeave:si,get onMouseEnter(){return pe},get onMouseLeave(){return Ve},get onDisabledClick(){return Re},get isInteractive(){return j},get disabled(){return s(J)},get hideHandel(){return a()},testId:"progress_bar",get ref(){return S()},set ref(Ue){S(Ue)}}),b(t,oe),H(),o()}var E2={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 xd(t,e){D(e,!0),q(t,E2);let[i,o]=Oe(),n=()=>C(a,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ie(),a=d.ui.isMobile,u=d.ui.t,f=h(()=>vn(l())),v=h(()=>vn(r())),p=h(()=>r()/l()),y=h(()=>u("aria_timeline_value",{position:s(v),duration:s(f)})),w=h(()=>Math.round(s(p)*100));$a(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return s(w)},get ariaValueText(){return s(y)},get filledProgress(){return s(p)},hideHandel:!0,get squareBorders(){return n()}}),H(),o()}var I2=M("<div><!></div>"),k2=M("<div></div>"),P2={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function ya(t,e){D(e,!0),q(t,P2);let[i,o]=Oe(),n=()=>C(y,"$isLive$",i),r=()=>C(S,"$isMobile",i),l=()=>C($,"$adPosition",i),d=()=>C(w,"$adDuration",i),a=m(e,"isAds",3,!1),u=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),v=m(e,"ref",15,void 0),p=Ie(),y=p.state.isLive$,w=p.ads.duration,$=p.ads.position,S=p.ui.isMobile,T=h(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||a()));var k=Fe(),P=ge(k);{var I=L=>{var K=I2();let z;var U=_(K);{var Y=j=>{xd(j,{get position(){return l()},get duration(){return d()}})},se=j=>{Df(j,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return s(T)},get withEpisodes(){return e.withEpisodes},get ref(){return v()},set ref(ue){v(ue)}})};V(U,j=>{a()?j(Y):j(se,!1)})}g(K),O(j=>z=ee(K,1,"timeline svelte-41cp6d",null,z,j),[()=>({withoutPadding:!f(),mobile:r()})]),b(L,K)},E=L=>{var K=k2();let z;O(U=>z=ee(K,1,"timeline-stub svelte-41cp6d",null,z,U),[()=>({mobile:r()})]),b(L,K)};V(P,L=>{s(T)?L(I):L(E,!1)})}b(t,k),H(),o()}import{noop as L2}from"@vkontakte/videoplayer-shared/es2015";var A2=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function Hf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=A2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(3),g(o),b(t,o)}var M2=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function Ff(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=M2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var V2=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),R2=M('<span class="text svelte-1yhs2ga"> </span>'),N2=M('<span class="text count svelte-1yhs2ga"> </span>'),B2=M("<!> <!>",1),O2={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 wd(t,e){var le,Me,Re;D(e,!0),q(t,O2);let[i,o]=Oe(),n=()=>C(w,"$currentGridType$",i),r=()=>C($,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=m(e,"position",3,0),u=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=Ie(),p=(Me=(le=v.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Me:L2,y=!!((Re=v.callbacks)!=null&&Re.onEpisodeClicked),w=v.ui.currentGridType$,$=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,T=v.ui.isMobile,k=v.ui.t,P=Z(void 0),I=ve=>{var Ve,ie,N;if(!!((Ve=v.callbacks)!=null&&Ve.onEpisodeClicked)){let Ge=Ds(ve);$.set(Ge),S.set(!0),(N=(ie=v.callbacks)==null?void 0:ie.onEpisodeClicked)==null||N.call(ie,Ge)}},E=Z(null),L=h(()=>a()/u());We(()=>{var pe;let ve=ru(s(L),u(),f());ve?((pe=s(E))==null?void 0:pe.time)!==ve.time&&(p(ve),B(E,ve,!0)):B(E,null)});let K=h(()=>{var ve;return((ve=s(E))==null?void 0:ve.text)||""}),z=h(()=>Zi(n(),"xl")?"FULL":Zi(n(),"m")&&n1(n(),"xl")?"COUNT":"SHORT"),U=h(()=>`${k("tooltip_episodes")}: ${s(K)}`),Y=(ve,pe,Ve)=>yt(null,null,function*(){yield bo(),(ve==null?void 0:ve.getAttribute("aria-expanded"))==="false"&&pe&&!Ve&&Et(()=>{$.set(!1),ve.focus()})});We(()=>{Y(s(P),r(),l())});var se=Fe(),j=ge(se);{var ue=ve=>{let pe=h(()=>d()?"px-0":""),Ve=h(()=>!y);Bt(ve,{get className(){var ie;return`w-max btn-full-opacity btn-jc-l ${(ie=s(pe))!=null?ie:""}`},testId:"btn-episodes",click:I,get disabled(){return s(Ve)},get ariaExpanded(){return l()},get ariaLabel(){return s(U)},get ref(){return s(P)},set ref(ie){B(P,ie,!0)},children:(ie,N)=>{var Ge=Fe(),te=ge(Ge);{var qe=fe=>{var $e=V2(),X=ge($e),Ke=_(X,!0);g(X);var Xe=A(X,2),ke=_(Xe);Ff(ke,{}),g(Xe),O(()=>_e(Ke,s(K))),b(fe,$e)},de=fe=>{var $e=B2(),X=ge($e);Hf(X,{});var Ke=A(X,2);{var Xe=ne=>{var Ee=R2(),Qe=_(Ee,!0);g(Ee),O(()=>_e(Qe,s(K))),b(ne,Ee)},ke=(ne,Ee)=>{{var Qe=rt=>{var nt=N2(),Lt=_(nt,!0);g(nt),O(()=>_e(Lt,f().length)),b(rt,nt)};V(ne,rt=>{s(z)==="COUNT"&&rt(Qe)},Ee)}};V(Ke,ne=>{s(z)==="FULL"?ne(Xe):ne(ke,!1)})}b(fe,$e)};V(te,fe=>{d()?fe(qe):fe(de,!1)})}b(ie,Ge)},$$slots:{default:!0}})};V(j,ve=>{s(E)&&ve(ue)})}b(t,se),H(),o()}import{debounceFn as x1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as K2,PlaybackState as Cd,Player as Q2,PredefinedQualityLimits as rs,VideoFormat as Sd,clientChecker as G2}from"@vkontakte/videoplayer-core/es2015";import{assertNonNullable as tr,getHighestQuality as Y2,InterfaceLanguage as j2,isInvariantQuality as Z2,isNonNullable as X2,loadVKLangPack as J2,Logger as ey,map as v1,merge as ty,Observable as g1,Subject as mu,Subscription as Qf,TracerFactory as iy,ValueSubject as oy,VideoQuality as ny,devNull as ry,now as sy,filter as ay,once as ly}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as $s}from"@vkontakte/videoplayer-statistics/es2015";import{detectEmbed as D2,devNull as Zt,now as Xt}from"@vkontakte/videoplayer-shared/es2015";import{addScript as H2,Subject as Jo,clearVideoElement as F2}from"@vkontakte/videoplayer-shared/es2015";var d1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var U2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",su=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new Jo,loadStarted$:new Jo,loadEnded$:new Jo,loadError$:new Jo,ready$:new Jo,slotRequested$:new Jo,started$:new Jo,timeRemained$:new Jo,paused$:new Jo,resumed$:new Jo,ended$:new Jo,empty$:new Jo,skipped$:new Jo,clicked$:new Jo,closed$:new Jo,error$:new Jo};this.loadAdman=e=>(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Xt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Xt()]}),i(),this.events.loadEnded$.next()):(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Xt()]}),o())};H2(U2,e,this.loadTimeout).then(()=>{Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Xt()]}),window.AdmanHTML?(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Xt()]}),i(),this.events.loadEnded$.next()):(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Xt()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout))}).catch(l=>{Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[Xt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Xt()]}),i(),this.events.loadEnded$.next()):(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Xt()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Xt()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Xt()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Xt()]}),!d&&(window.AdmanHTML?(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Xt()]}),i(),this.events.loadEnded$.next()):(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Xt()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Xt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Xt(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),ye(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),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;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),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(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Xt()]}),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;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),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")=>{Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Xt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Xt()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Xt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:r,adsContainer:l,adsVideoElement:d,slotId:a,params:u={},duration:f,previewParam:v}=e,p,y=this.playerState&&ye(this.playerState.vsid);y&&(this.isVsidOriginal?p=y:p=parseInt(y,36));let{isEmbed:w,immediateOrigin:$}=D2(),S=(P=w?$:window.location.href)!=null?P:window.location.href,T=Ot(W(Ot(W({},u),{dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o,preview:v}),p?{request_id:p}:{}),{duration:f,puid10:d1(i,o),puid11:n?0:1});v||delete T.preview;let k={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let I=new window.AdmanHTML;I.setDebug(!1),I.onReady(this.onAdsReady),I.onStarted(this.onAdStarted),I.onPlayed(this.onAdPlayed),I.onPaused(this.onAdPaused),I.adMidrollPoint(this.onAdMidrollPoint),I.onClosed(this.onAdClosed),I.onSkipped(this.onAdSkipped),I.onClicked(this.onAdClicked),I.onTimeRemained(this.onAdTimeRemained),I.onCompleted(this.onAdCompleted),I.onError(this.onAdError),I.init(k),this.adman=I,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}catch(I){Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[Xt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,r;if(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Xt()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(r=(n=this.actions).switchFromAdsToVideo)==null||r.call(n,!i)}}togglePlay(){var e;if(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),this.adsState){this.log({message:"toggle play"});let i=ye(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Xt()]}),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(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),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(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),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(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,r,l,d,a,u,f,v,p;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Xt()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(r=this.adman)==null||r.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(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&&F2(this.videoElement),this.isDestroyed=!0}};var c1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Uf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let r of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=r.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new au,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new zf,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},au=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let r=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return r+l+d+a}},zf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let 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}}),r=new au;for(let l of n)r.isTime(l)?i.texts.push({type:"timestamp",value:r.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},u1=Uf;import{isNonNullable as Wf}from"@vkontakte/videoplayer-shared/es2015";var xa,Si,qf=0,Kf=!1,p1="",f1=(t,e=0,i=0)=>t<e&&t<i,lu=(t,e=0,i=0)=>t>=e&&t<=i,z2=(t,e=0,i=0)=>t>e&&t>i,m1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:u,endTime:f})=>lu(t,u,f));let r=t>=qf,l=t<qf;if(qf=t,l&&(Kf=!1),Wf(xa)&&lu(t,xa.startTime,xa.endTime)&&p1===e.value)return xa;if(!Wf(Si)&&(n!=null&&n.length)&&!Kf){Si=n.find(({startTime:u,endTime:f})=>lu(t,u,f)||r&&f1(t,u,f)),xa=void 0,!Wf(Si)&&n[n.length-1].endTime<t&&(Kf=!0);return}else{if(lu(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime))return xa=Si,Si=void 0,p1=e.value,xa;(r&&z2(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime)||l&&f1(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime))&&(Si=void 0)}};var du={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"},W2={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"},cu=t=>{var e,i;return(i=(e=du[t])!=null?e:du[W2[t]])!=null?i:void 0};import{Subscription as q2}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-statistics/es2015";var uu=class{constructor(e,i,o,n=new q2){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var pu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(pu||{});var ns=t=>t!=null?t:0,bs=(t,e)=>{var n,r;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(ns(i==null?void 0:i.top)-ns(o==null?void 0:o.top)),left:Math.round(ns(i==null?void 0:i.left)-ns(o==null?void 0:o.left)),bottom:Math.round(ns(i==null?void 0:i.bottom)-ns(o==null?void 0:o.top)),right:Math.round(ns(i==null?void 0:i.right)-ns(o==null?void 0:o.left))}},cl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:ns(e==null?void 0:e.width),height:ns(e==null?void 0:e.height)}};var fu="off";var h1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:y,player:w,disabledControls:$,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:k,replayInteractive:P,stopPlayer:I,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:L,additionalButtons:K,additionalSettingsMenuItems:z,additionalContextMenuItems:U,playPrevVideo:Y,playNextVideo:se,looped:j=!1,statistics:ue,saveRate:le,internalsExposure:Me,playerView:Re})=>{var uv,pv,fv;let ve=Ot(W({},y),{configName:[...(uv=y.configName)!=null?uv:[],"ui"],isAudioDisabled:l,live:Ot(W({},(pv=y.live)!=null?pv:{}),{isLiveCatchUpMode:!!n})}),pe=p,Ve=iy.createRootTracer(pe.features.tracer),ie=Ve.createComponentTracer("Store"),N=w||new Q2(ve,Ve);Me==null||Me.expose({corePlayer:N});let Ge=new ey,te=new su(Ge,{loadTimeout:pe.ads.loadTimeout,initTimeout:pe.ads.initTimeout,runtimeTimeout:pe.ads.runtimeTimeout,useAdmanFromNPM:pe.ads.useAdmanFromNPM,volumeMultiplier:pe.ads.volumeMultiplier,isVsidOriginal:pe.ads.isVsidOriginal}),qe=ua.getInstance(),de=u==null?void 0:u.pictureInPictureApi,fe=u==null?void 0:u.annotationsApi,$e=u==null?void 0:u.slotsApi,X=Ge.createComponentLog("Store"),Ke,Xe,ke={},ne=new Bc,Ee=new Qf,Qe=ue&&ue.oneStat?ei(ue.oneStat.vsid$):_r(void 0),rt=ae(Ns()),nt=ae(!1),Lt=(fv=de==null?void 0:de.info.isActive$)!=null?fv:new oy(!1),et=ae(0),ct=ae([]),Gt=ty(N.events.fatalError$,N.events.managedError$).subscribe(c=>ct.update(x=>[...x,c])),si=_r(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Qt=c=>yt(null,null,function*(){var ce;let x=Object.values(j2).includes(c);if(pe.downloadVKLanguages&&(x&&pe.updateBuiltinLanguages||!jp(c))){let De;try{De=yield J2(c,eh,th)}catch(pt){(ce=ue==null?void 0:ue.oneStat)==null||ce.logError({errorType:"VKLangPack",fatal:!1}),qe==null||qe.report(pt,{errorType:"VKLangPack",fatal:!1})}De&&(Yp({language:c,pack:De,fallback:pe.defaultLanguage}),St.set(c))}jp(c)&&St.set(c)}),St=ae(t),oe=ae(e);Qt(t);let Vt=(c,x)=>{let R=ye(St);return Zp(R,c,x,pe.defaultLanguage)},he=ae("thumb"),J=(()=>{let c=_i([si,he],([x,R])=>x?"crashed":R);return Ot(W({},c),{is:x=>ye(c)===x})})(),we=(()=>{let c=ae(new Set($));return Ot(W({},c),{add:x=>{c.update(R=>new Set([...R].concat(x)))},remove:x=>{c.update(R=>{let ce=[...R];return new Set(Array.isArray(x)?ce.filter(De=>!x.includes(De)):ce.filter(De=>De!==x))})},includes:x=>{let R=ye(c);return Array.isArray(x)?x.every(ce=>R.has(ce)):R.has(x)}})})();ie.log("create store"),X({message:"create store"});let He=c=>{let x=c.container,R=()=>{xt=new MutationObserver(De=>{let{removedNodes:pt}=De[0];pt.length&&x.append(N.experimental.element$.getValue())}),xt.observe(x,{childList:!0})},ce=N.experimental.element$.getValue();if(ce)x.append(ce),R();else{let De=N.experimental.element$.pipe(ay(pt=>!!pt),ly()).subscribe(pt=>{x.append(pt),R()});Ee.add(De)}},me=c=>{X({message:`init video, config: ${JSON.stringify(c)}`}),S?He(c):(ry.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[sy()]}),N.initVideo(c)),ie.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),Ke=c},Ne=new mu,Je=c=>Ne.next(c),Ue=new mu,Mt=new mu,Tt=new mu,xt=null,ft={actionRewind$:Ue,actionSeek$:Mt,inPiP$:Lt,inFullscreen$:new g1(c=>rt.subscribe(x=>c.next(x))),actionSetSubtitle$:Tt,nextMovie$:Ne},Mi={actionSeek$:Mt,playerSize$:new g1(c=>Wt.subscribe(x=>c.next(x)))};if(ue){let{oneStat:c,thinOneStat:x,mediascopePixel:R,statSubscription:ce}=ue;c&&(S||ce.add(c.attachTo(N)),ce.add(c.attachToUi(ft)),ce.add(c.attachToAds(te.events)),c.authorize(r).catch(De=>{X({message:`onestat auth error ${String(De)}`})}),R&&R.attachTo(N)),x&&(ce.add(x.attachTo(N)),ce.add(x.attachToUi(Mi)),x.authorize(r))}if(qe){let c=new Qf,x=(R,ce)=>c.add(R.subscribe(ce));if(x(N.events.managedError$,R=>{qe.logIError(R)}),x(N.events.fatalError$,R=>{qe.logIError(R,!0)}),ue){let{oneStat:R}=ue;R&&x(R.experimental.error$,ce=>{qe.logIError(ce)})}qe.sentrySubscription.add(c)}let pi=()=>{G2.device.isIOS&&Xe&&Oh(Xe).catch(c=>{X({message:`exitIosSafariFullscreen failed: ${c}`})})};Ee.add(N.experimental.element$.subscribe(c=>{c&&(Xe=c,c.classList.add("player-media"),fa(de)&&(de.updateVideoElement(),de.registryEventHandlers()),S&&c.setAttribute("pip","false"),Re==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;pi(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(N.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(N.events.started$.subscribe(()=>yt(null,null,function*(){var x,R;fa(de)&&(yield de==null?void 0:de.revealPictureInPicture());let c=N.info.muted$.getValue();(x=a==null?void 0:a.onStarted)==null||x.call(a),(R=ke.onStarted)==null||R.call(ke,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var R;(R=a==null?void 0:a.onSeek)==null||R.call(a,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(N.info.position$.subscribe(c=>{var R;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((R=a==null?void 0:a.onTimeupdate)==null||R.call(a,x,c),te.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=a==null?void 0:a.onCrashed)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=a==null?void 0:a.onRecoverableError)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{At.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{At.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(k!=null&&k.getValue()&&we.add(Zl),we.add("PLAY_BUTTON")):we.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=a==null?void 0:a.onLiveTime)==null||x.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=a==null?void 0:a.onStalledChanged)==null||x.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=a==null?void 0:a.onLiveEnded)==null?void 0:x.call(a))})).add(te.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(te.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(te.events.loadError$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(te.events.init$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(te.events.ready$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(te.events.started$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onStarted)==null?void 0:R.call(x,c)})).add(te.events.timeRemained$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:R.call(x,c)})).add(te.events.ended$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onCompleted)==null?void 0:R.call(x,c)})).add(te.events.empty$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(te.events.clicked$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClicked)==null?void 0:R.call(x,c)})).add(te.events.closed$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClosed)==null?void 0:R.call(x,c)})).add(te.events.error$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onError)==null?void 0:R.call(x,c)})).add(te.events.paused$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(te.events.resumed$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let it=new Qf,Ht=()=>{var pt,Ft,qt;let{debugLog:c}=pe,x,R="#9df7b7",ce="#efd169";if(c&&c!==!0){let{colors:Ut}=c;x=c.tag,R=(pt=Ut==null?void 0:Ut[0])!=null?pt:R,ce=(qt=(Ft=Ut==null?void 0:Ut[1])!=null?Ft:Ut==null?void 0:Ut[0])!=null?qt:ce}let De=x?`: ${x}`:"";it.add(N.events.log$.subscribe(Ut=>{console.debug(`%c sdk${De} `,`background:${R};`,`sdk component: ${Ut.component}`,Ut.message)})).add(Ge.log$.subscribe(Ut=>{console.debug(`%c ui${De} `,`background:${ce};`,`ui component: ${Ut.component}.`,Ut.message)}))},vi=()=>{it.unsubscribe()},zi=(c,x)=>{ie.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},po=(c=!1)=>{ie.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Wi=(c,x,R)=>{ie.log("move camera focus px",{xpx:c,ypx:x,dt:R}),N.moveCameraFocusPX(c,x,R)},Yt=()=>{N.holdCamera()},fo=()=>{N.releaseCamera()},Pt=_r(N.info.position$.getValue(),c=>{let x,R,ce=()=>{let De=N.info.playbackState$.getValue(),pt=N.info.isLive$.getValue(),Ft=N.info.duration$.getValue(),qt=N.info.position$.getValue();if(De&&[Cd.PLAYING,Cd.PAUSED].includes(De)){let Ut=pt?qt-Ft:N.getExactTime();Ut!==R&&c(Ut),R=Ut}x=requestAnimationFrame(ce)};return ce(),()=>cancelAnimationFrame(x)}),dt=ei(N.info.playbackState$),gi=ei(N.info.currentBuffer$),G=ei(N.info.isEnded$),Kt=ei(N.info.isLive$),ui=pe.features.playbackRate?ei(N.info.canChangePlaybackSpeed$):_r(!1),Li=ei(N.info.liveBufferTime$),di=ei(N.info.volume$),fi=ei(N.info.muted$),ut=Oc(N.info.predefinedQualityLimitType$.pipe(v1(c=>c===rs.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===rs.TRAFFIC_SAVING),tt=Oc(N.info.predefinedQualityLimitType$.pipe(v1(c=>c===rs.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===rs.HIGH_QUALITY),It=ei(N.info.autoQualityLimitingAvailable$),qi=ei(N.info.availableQualities$),ii=ei(N.info.availableQualitiesFps$),ir=ei(N.info.chromecastState$),Vi=ei(N.info.chromecastDeviceName$),Bo=ei(N.info.currentFormat$),xi=ei(N.info.throughputEstimation$),gt=ei(N.info.videoBitrate$),Ri=ei(N.info.intrinsicVideoSize$),Oo=ei(N.info.duration$),kn=ei(N.info.isAudioAvailable$),ci=null,Ti=N.info.isBuffering$,Do=_r(Ti.getValue(),c=>{let x=Ti.subscribe(R=>{R&&ci===null?ci=window.setTimeout(()=>{c(Ti.getValue()),ci=null},pe.loaderDelay):c(R)});return()=>{x.unsubscribe(),ci&&clearTimeout(ci)}}),Pn=()=>{ci&&clearTimeout(ci),ci=null},Ho=_i([Oo,Kt],([c,x])=>x?-c:c),xo=_i([dt],([c])=>c===Cd.PLAYING),gn=ei(N.info.atLiveEdge$),tn=ei(N.info.atLiveDurationEdge$),mo=ei(N.info.position$),wo=_i([mo,Oo],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Hr=_i([ir],([c])=>c===K2.CONNECTED),$r=ei(N.info.availableVideoStreams$),or=pe.features.audioLanguages?ei(N.info.availableAudioStreams$):_r([]),nr=ei(N.info.currentVideoStream$),rr=ei(N.info.currentAudioStream$),An=c=>{c.language&&Gp(c.language),N.setVideoStream(c)},ss=c=>{c.language&&Gp(c.language),N.setAudioStream(c)},Mn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ce=>"isDefault"in ce&&ce.isDefault)),x)return x;let R=Ch();return R&&(x=c.find(({language:ce})=>R===ce)),x!=null||(x=c.at(0)),x},Ni=!1;Ee.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Ni&&c.length){let x=Mn(c);x&&(N.setAudioStream(x),Ni=!0)}}));let Ln=!1;Ee.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Ln&&c.length){let x=Mn(c);x&&(N.setVideoStream(x),Ln=!0)}}));let on=ae(void 0),nn=ei(N.info.isAutoQualityEnabled$,c=>c&&on.set(void 0)),Vn=ei(N.info.currentQuality$,()=>on.set(void 0)),Rn=_i([on,Vn],([c,x])=>c!=null?c:x),Fo=_i(Bo,c=>c!==Sd.MPEG),Fr=_i([qi,ii,nn,Rn,Fo],([c,x,R,ce,De])=>{let pt=[];De&&pt.push({value:"auto",displayValue:Vt("auto_quality_option"),selected:R});let Ft=c.filter(qt=>!Z2(qt));for(let qt of Ft){let Ut=x[qt];pt.push({value:qt,displayValue:`${qt}${Ut?c1(Ut):""}`,selected:R?!1:qt===ce})}return pt}),Nn=ei(N.info.currentPlaybackRate$),sr=_i([Nn,gn,tn],([c,x,R])=>{let ce=R||S?1:pe.controls.playbackRateMin,De=x?1:pe.controls.playbackRateMax,pt=pe.controls.playbackRateStep,Ft=[];for(let qt=ce;qt<=De;qt+=pt)Ft.push({value:qt,displayValue:qt===1?Vt("playback_rate_1"):Vt("playback_rate",{multiplier:qt.toString(10)}),selected:c===qt});return Ft}),Ki={displayValue:Vt("subtitles_off"),value:fu},Co=ae(W({},Ki)),at=pe.features.subtitles?ei(N.info.availableTextTracks$):_r([]),Jt=vh(),yr=_i([at,Co],([c,x],R)=>{var pt;let ce=[],De=c.find(({id:Ft})=>Ft===x.value);if(De!=null&&De.url){let[,Ft]=(pt=Jt.find(De.url))!=null?pt:[];if(Ft){R(Ft);return}ne.download(De.url).then(qt=>{if(!qt||ne.isDestroyed())return;let Ut=new u1,Ts=De.language;if(Ts){let a0=!!De.isAuto,l0=Ut.parse(qt,Ts);ce.push({lang:Ts,subtitles:l0,isAuto:a0,id:De.id})}Jt.add(De.url,ce),ye(Co).value===x.value&&R(ce)}).catch(qt=>{var Ut;(Ut=ue==null?void 0:ue.oneStat)==null||Ut.logError({errorType:"Subtitles download",fatal:!1}),qe==null||qe.report(qt,{errorType:"Subtitles download",fatal:!1})})}R(ce)}),Bn=_i([Nn,xo,Co],([c,x,R],ce)=>{let Ft;if(N.info.isLive$.getValue()&&x&&R.value!==Ki.value){let Ut=()=>{let Ts=1e3/(3*c);Ft=setTimeout(Ut,Ts),ce(Date.now())};return Ut(),()=>clearTimeout(Ft)}}),hn=_i([at,Co],([c,x])=>{if(!c.length)return[];let R=[];for(let{language:ce,isAuto:De,id:pt}of c){let Ft=ce&&cu(ce);ce&&Ft&&R.push({displayValue:De?Vt("subtitles_auto",{language:Ft}):Ft,value:pt,selected:(x==null?void 0:x.value)===pt,isAuto:De})}return R.length?(R.unshift(Ot(W({},Ki),{selected:(x==null?void 0:x.value)===Ki.value})),R):[]}),Bi={available:[],prev:[]},On=()=>{var x,R;let c=N.experimental.getCurrentTime$.getValue();return(R=(x=c==null?void 0:c())!=null?x:Xe==null?void 0:Xe.currentTime)!=null?R:0},So=_i([Pt,Co,yr,Bn],([c,x,R,ce])=>{var pt;let De=N.info.isLive$.getValue();if(De&&Bi.prev!==R){let Ft=R.find(({id:Ut})=>Ut===x.value),qt=Bi.prev.find(({id:Ut})=>Ut===x.value);if(Ft){let Ut=Ot(W({},Ft),{subtitles:[...(pt=qt==null?void 0:qt.subtitles)!=null?pt:[],...Ft.subtitles]});Bi.available=[Ut],Bi.prev=R}}if(x&&x.value!==Ki.value){let Ft=De?On():c,qt=De?Bi.available:R;return m1(Ft,x,qt,De)}}),Dn=_i([So],([c])=>c!=null&&c.texts?c.texts:[]);Ee.add(Co.subscribe(c=>{var x,R;if(c.value===Ki.value)(x=a==null?void 0:a.onSubtitleOff)==null||x.call(a);else{let ce=Object.entries(du).find(([De,pt])=>pt===c.displayValue);(R=a==null?void 0:a.onSubtitleOn)==null||R.call(a,ce?ce[0]:"")}}));let To=ae(!0),Hn=_i([gi,Ho,mo,Li],([c,x,R,ce])=>{var qt;let De=(qt=c==null?void 0:c.end)!=null?qt:0;if(!ce)return De/x;let Ft=-R+ce-x;return(De-Ft)/x}),Fn=ei(N.info.availableSources$),ar=_i([Fn],([c])=>Object.keys((c==null?void 0:c[Sd.MPEG])||{}).length>0),xr=()=>{var R,ce,De;let c=Object.keys(((ce=(R=N.info.availableSources$)==null?void 0:R.getValue())==null?void 0:ce[Sd.MPEG])||{}),x=Y2(c)||ny.Q_144P;return(De=Ke.sources[Sd.MPEG])==null?void 0:De[x]},lr=()=>{var x;let c=xr();if(c)ie.log("download video",{url:c}),ph(c,((x=Ke==null?void 0:Ke.meta)==null?void 0:x.title)||"video");else{let R="There is no URL for download video";ie.log("download video",{message:R}),X({message:R})}},Uo=()=>{X({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?vo(jt()):Eo(!c)},Ur=()=>{var c;if(At.ui.settingsMenu.visible$.set(!1),!ye(At.ui.settingsSubMenu.visible$)){let x=ye(At.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&x){let ce=cl(x),De={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ce,position:De,name:"settings"})}}ie.log("close settings menu")},dr=(c,x=()=>Promise.resolve())=>yt(null,null,function*(){var De;At.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),At.ui.settingsMenu.visible$.set(!0),yield x();let R=ye(At.ui.settingsMenu.ref$),ce=Ma();if((De=a==null?void 0:a.uiInfo)!=null&&De.onSettingsMenu&&R&&ce){let Ft=cl(R),qt=bs(R,ce);a.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:qt,name:"settings"})}ie.log("open settings menu",{wasOpenedByKeyboard:c})}),wr=(c,x=!1)=>{var pt;At.ui.settingsSubMenu.visible$.set(!1);let R=ye(At.ui.settingsMenu.ref$),ce=Ma(),De=ye(At.ui.settingsMenu.visible$);if((pt=a==null?void 0:a.uiInfo)!=null&&pt.onSettingsMenu&&R&&ce)if(De&&!x){let qt=cl(R),Ut=bs(R,ce);a.uiInfo.onSettingsMenu({visible:!0,size:qt,position:Ut,name:"settings"})}else{let qt=cl(c),Ut={top:0,left:0,bottom:0,right:0},Ts=ye(At.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:qt,position:Ut,name:Ts})}ie.log("close settings sub menu")},rn=(c,x)=>{var ce;At.ui.settingsSubMenu.visible$.set(!0),At.ui.settingsSubMenu.ref$.set(x),At.ui.settingsSubMenu.name$.set(c);let R=Ma();if((ce=a==null?void 0:a.uiInfo)!=null&&ce.onSettingsMenu&&x&&R){let pt=cl(x),Ft=bs(x,R);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:pt,position:Ft})}ie.log("open settings sub menu",{name:c})},jt=()=>{var x;let c=Math.max(pe.volumeMinRestore,(x=Dc())!=null?x:0);return c===0?pe.volumeDefault:c},vo=c=>{let x=c===0?jt():c,R=N.info.muted$.getValue();X({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let ce=!l||J.is("ads");R&&c>0&&ce&&(R=!1,Kp(!1)),N.setVolume(c,R),te.setVolume(c),Fp(x)},Eo=c=>{let x=N.info.volume$.getValue();if(X({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c,J.is("ads")),te.setVolume(c?0:x),Kp(c),!c&&x===0){let R=jt();N.setVolume(R),Fp(R),te.setVolume(R)}},cr=ae(!1),Cr=c=>{var x,R;ie.log("set looped",{isLooped:c}),cr.set(c),N.setLooped(c),(R=(x=a==null?void 0:a.uiInfo)==null?void 0:x.onLoopedChanged)==null||R.call(x,c)};Cr(j);let Ei=()=>{var c,x;(x=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},as=(c,x=!1)=>{var R;X({message:`set autoplayNextEnabled, value: ${c}`}),ie.log("set autoplay next enabled",{autoplayNextEnabled:c}),At.ui.autoplayNextEnabled$.set(c),Eh(c),x&&((R=a==null?void 0:a.onSetAutoplayNextEnabled)==null||R.call(a,c))},zr=c=>{X({message:`set timerNextVideoRunning, value: ${c}`}),ie.log("set timer next video running",{timerNextVideoRunning:c}),At.ui.timerNextVideoRunning$.set(c)},Sr=(c=!0)=>{var ce;let x=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{x=(ce=a==null?void 0:a.onPrevVideoClick)==null?void 0:ce.call(a)}catch(De){X({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&ai("prev")||Y()},ht=(c=!0)=>{var ce;let x=!0;if(c&&(a!=null&&a.onNextVideoClick))try{x=(ce=a==null?void 0:a.onNextVideoClick)==null?void 0:ce.call(a)}catch(De){X({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&ai("next")||se()},ai=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:R,playbackStatusShow:ce}}=pe;return R&&ce&&!x?(At.ui.aboutToGoNextVideo.set(c),At.ui.userActionsDisabled.set(!0),!0):!1},zo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Wo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},Qi=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Un=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},sn=()=>{N.prepare()},ur=()=>{tr(At);let c=ye(At.ui.controls.disabledControls$),x=ye(At.playerPhase),R={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(X({message:"toggle play"}),x==="ads"){R.action="play",ie.log("toggle adman play",R),te.togglePlay();return}let ce=()=>{var pt;X({message:"toggle play, call player.play"}),R.action="play",N.play(),(pt=a==null?void 0:a.onPlay)==null||pt.call(a)},De=()=>{var pt;X({message:"toggle play, call player.pause"}),R.action="pause",N.pause(),(pt=a==null?void 0:a.onPause)==null||pt.call(a)};if(N.info.isEnded$.getValue()){if(X({message:"toggle play, video ended, seek to 0"}),Ue.next(),Mt.next($s.REWIND),S){P==null||P();return}N.seekTime(0),ce()}else N.info.playbackState$.getValue()!==Cd.PLAYING?ce():De();ie.log("toggle play",R)},Gi=(c,{changeReason:x="default",appliesTo:R="to-video"}={})=>{X({message:`set quality, quality: ${c}`}),ie.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(pe.features.qualityDetailsSubMenuEnabled?(Hc({type:"exact_quality",quality:c,videoId:i},R),Jl(),N.setPredefinedQualityLimits(rs.UNKNOWN)):Up(i,c),on.set(c),N.setQuality(c)):pe.features.qualityDetailsSubMenuEnabled?x==="default"&&(bi("auto_quality",R),ye(ut)&&an(!1),ye(tt)&&je(!1)):Jl()},an=(c,x="as-default")=>{X({message:`set trafficSavingEnabled, value: ${c}`}),ie.log("set traffic saving enabled",{trafficSavingEnabled:c});let R=c?rs.TRAFFIC_SAVING:rs.UNKNOWN;pe.features.qualityDetailsSubMenuEnabled?(Rt(R,x),Xl(!1)):(N.setPredefinedQualityLimits(R),Xl(c))},je=(c,x="as-default")=>{X({message:`set highQualityEnabled, value: ${c}`}),ie.log("set high quality enabled",{highQualityEnabled:c}),Rt(c?rs.HIGH_QUALITY:rs.UNKNOWN,x)},Rt=(c,x)=>{c!==rs.UNKNOWN&&(ye(It)&&!ye(nn)&&Gi("auto",{appliesTo:x,changeReason:"limit-changed"}),bi(c,x)),N.setPredefinedQualityLimits(c)},bi=(c,x)=>{Hc({type:c,videoId:i},x),x==="as-default"&&Hc({type:c,videoId:i},"to-video")},go=c=>{ie.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),pe.features.saveRate&&le&&!N.info.isLive$.getValue()&&Sh(c)},no=()=>{let c=ye(sr),x=c.findIndex(({selected:ce})=>ce);if(x===c.length-1)return;let R=c[x+1];go(R.value)},qo=()=>{let c=ye(sr),x=c.findIndex(({selected:ce})=>ce);if(x===0)return;let R=c[x-1];go(R.value)},Ji=(c=Ot(W({},Ki),{selected:!1}))=>{ie.log("set subtitles",W({},c)),c&&c.value!==Ki.value&&Tt.next(c.isAuto?c.value+"_auto":c.value),Co.set(c)},Ko=()=>{ie.log("toggle subtitles");let c=ye(hn),x=ye(Co),R=ye(St);if((x==null?void 0:x.value)===Ki.value){let ce=c.filter(De=>De.value!==Ki.value).find(De=>De.value===R)||c[1];Ji(ce)}else Ji()},Io=ae(!0),Yi=c=>{Io.set(c)},$i=(c,x,R=!0)=>{var ce;if(X({message:`seek to time, time: ${c}`}),ie.log("seek to time",{time:c,action:x,forcePrecise:R}),Mt.next(x),N.info.isLive$.getValue()){let De=N.info.duration$.getValue(),pt=Math.min(0,De+c);N.seekTime(pt,R)}else{if(k!=null&&k.getValue())return;N.info.isEnded$.getValue()&&(X({message:"seek after ended, call callbacks.onPlay"}),(ce=a==null?void 0:a.onPlay)==null||ce.call(a)),N.seekTime(Ss(c),R)}},Qo=c=>{X({message:`seek to episode start time: ${c}`}),ie.log("seek to episode start time",{time:c}),$i(c,$s.EPISODE,!0)},ln=(c,x)=>{X({message:`seek to percent, percent: ${c}`}),ie.log("seek to percent",{percent:c,action:x});let R=ye(Ho)*c;$i(R,x,!1)},ro=c=>{X({message:`seek external, time: ${c}`}),ie.log("seek external",{time:c}),Mt.next($s.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Tr=c=>{var ce,De;let x=(ce=c.max)!=null?ce:"none",R=(De=c.min)!=null?De:"none";X({message:`set auto quality limitation. Max: ${x}. Min: ${R}`}),ie.log("set auto quality limits",{max:x,min:R}),N.setAutoQualityLimits(c)},Wr=c=>{X({message:`seek external to episode start time: ${c}`}),ie.log("seek external to episode start time",{time:c}),$i(c,$s.EPISODE,!0)},qr=c=>{X({message:`set playback rate to: ${c}`}),ie.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},_n=ae(void 0),zn=ae(!1),Kr=c=>{X({message:`start scrubbing, progress: ${c}`}),ie.log("start scrubbing",{progress:c}),zn.set(!0),so(c)},so=c=>{_n.set(c)},Go,Wn,pr=()=>{_n.set(void 0),zn.set(!1)},fr=()=>{clearTimeout(Wn),clearTimeout(Go),Go=window.setTimeout(()=>{pr()},500),Xe==null||Xe.removeEventListener("seeked",fr)},Qr=c=>{X({message:`complete scrubbing, progress: ${c}`}),ie.log("complete scrubbing",{progress:c}),ln(c,$s.SLIDER),ye(At.ui.isMobile)&&ye(At.state.currentFormat$)===Sd.HLS?(Xe==null||Xe.addEventListener("seeked",fr),Wn=window.setTimeout(()=>{fr()},300)):pr()},ls=_i([Pt,Ho,_n],([c,x,R],ce)=>{ce(X2(R)?R*x:c)}),Te=ae(!1),xe=()=>{Te.set(!0)},$t=()=>{Te.set(!1)},Wt=ae({width:0,height:0}),Ii=_i([Wt],([{width:c}],x)=>{let R=r1(c);x(R)}),yi=ae(!1),ze=K.filter(c=>fh(c)),wt=_i([Ii,yi],([c,x])=>x?ze.filter(R=>!R.hideOnMobile):ze.filter(R=>{var ce;return!((ce=R.hideOnDesktopGridTypes)!=null&&ce.includes(c))})),oi=ae(K.filter(c=>mh(c))),dn=_i([oi,Ii],([c,x])=>c.filter(R=>{var ce;return!((ce=R.hideOnDesktopGridTypes)!=null&&ce.includes(x))})),bn=_i([dn,wt],([c,x])=>[...pe.features.additionalButtonsDesktopControlPanelRight?c.filter(R=>R.type==="desktop-control-panel-right"):[],...pe.features.additionalButtons?x.map((R,ce)=>{var De;return{id:ce,weight:ce,type:"desktop-control-panel-right",testId:R.testId,icon:R.iconUrl,onClick:R.onClick,ariaLabel:(De=R.ariaLabel)!=null?De:R.tooltip,tooltipText:R.tooltip}}):[]]),ao=ae(z),Gr=_i([ao],([c])=>pe.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?Ot(W({},x),{onClick:x.onChangeEnabled}):x):[]),Er=(c,x)=>{let R=ye(oi).map(ce=>ce.id!==c?ce:W(W({},ce),x));oi.set(R)},eo=c=>{let x=ye(oi);if(x.some(R=>R.id===c.id)){X({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),oi.set(x)},ki=c=>{let x=ye(oi);if(!x.some(R=>R.id===c)){X({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),oi.set(x)},$n=c=>{Mt.next($s.LIVE),X({message:"live switch to low latency "+c}),ie.log("live switch to low latency "+c),N.setLiveLowLatency(c)},qn=(c,x)=>{let R=ye(ao).map(ce=>ce.id!==c?ce:W(W({},ce),x));ao.set(R)},Ir=c=>{let x=ye(ao);if(x.some(R=>R.id===c.id)){X({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ao.set(x)},ho=c=>{let x=ye(ao);if(!x.some(R=>R.id===c)){X({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),ao.set(x)},mr=ae(U),Ks=_i([mr],([c])=>pe.features.additionalContextMenuItems?c:[]),bt=(c,x)=>{let R=ye(mr).map(ce=>ce.id!==c?ce:W(W({},ce),x));mr.set(R)},_t=c=>{let x=ye(mr);if(x.some(R=>R.id===c.id)){X({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),mr.set(x)},lo=c=>{let x=ye(mr);if(!x.some(R=>R.id===c)){X({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),mr.set(x)},Yo=_i([yi,si],([c,x],R)=>{R(c&&x)}),co=()=>{Mt.next($s.LIVE),X({message:"switch to active live"}),ie.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==Cd.PLAYING&&At.actions.internal.togglePlay()},li=()=>{ie.log("skip adman"),te.skip()},Oi=(c=!0)=>{tr(At),X({message:`switch from ads to video, callPlay: ${c}`}),ie.log("switch from ads to video",{callPlay:c}),he.set("video"),c&&N.play(),l&&Eo(!0)},Cs=()=>{tr(At),X({message:"switch from video to ads"}),ie.log("switch from video to ads"),At.actions.internal.pause(),pi(),he.set("ads")},hl=c=>{tr(At);let x=c?"LiveWaitingStart":"thumb";ie.log("set live waiting start",{state:c,playerPhase:x}),he.set(x)},ec=c=>{tr(At);let x=c?"LiveWaitingRecover":"thumb";ie.log("set live waiting recover",{state:c,playerPhase:x}),he.set(x)},Nu=c=>{tr(At);let x=c?"LiveWaitingRecord":"thumb";ie.log("set live waiting record",{state:c,playerPhase:x}),he.set(x)},tc=()=>(tr(At),ie.log("get debug text data"),ch(N,Ke,At,Ve.getTraceId())),Bu=()=>(tr(At),JSON.stringify(Ve.getFinishedSpans())),ic=()=>(tr(At),uh(N,Ke,At)),Ma=()=>Xe,oc=()=>{X({message:"toggle chromecast"}),ie.log("toggle chromecast"),N.toggleChromecast()},nc=c=>{var R;if(tr(At),N.info.isEnded$.getValue())return;let x=!c;if(ye(At.playerPhase)==="ads"){X({message:`pause ads, internalCall: ${x}`}),ie.log("pause ads",{internalCall:x}),te.pause();return}X({message:`pause video, internalCall: ${x}`}),ie.log("pause video",{internalCall:x}),x&&((R=a==null?void 0:a.onPause)==null||R.call(a)),N.pause()},_l=c=>{var R;tr(At);let x=!c;if(ye(At.playerPhase)==="ads"){X({message:`play ads, internalCall: ${x}`}),ie.log("play ads",{internalCall:x}),te.play();return}X({message:`play video, internalCall: ${x}`}),ie.log("play video",{internalCall:x}),x&&((R=a==null?void 0:a.onPlay)==null||R.call(a)),N.play()},rc=c=>{tr(At);let x=!c;if(ye(At.playerPhase)==="ads"){X({message:"player cannot be stopped during ads via external method"});return}X({message:`player will be stopped, internalCall: ${x}`}),I==null||I()},bl=(c,x)=>{tr(At),X({message:`first start, show ads: ${c}, internalCall: ${!x}`}),ie.log("first start",{showAds:c,external:x}),c?he.set("ads"):(he.set("video"),x?N.play():At.actions.internal.togglePlay())},$l=()=>(X({message:"getting time codes"}),f),yl=()=>{let c=$l();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(R=>R.time>x)},Ou=c=>{let x=c;x||(x=yl());let R=N.info.position$.getValue();ie.log("seek to next episode",W({currentTime:R},x)),x&&(X({message:"seek to next episode"}),$i(x.time,$s.EPISODE,!0))},xl=()=>{let c=$l();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),R=c.findIndex(De=>De.time>x),ce=R===-1?c.length-2:R-2;if(!(ce<0))return c[ce]},Du=c=>{let x=c;x||(x=xl());let R=N.info.position$.getValue();ie.log("seek to prev episode",W({currentTime:R},x)),x&&(X({message:"seek to prev episode"}),$i(x.time,$s.EPISODE,!0))},Hu=()=>(X({message:"getting preview thumbs data"}),ie.log("get preview thumbs data",W({},v)),v),Fu=()=>yt(null,null,function*(){let c=de==null?void 0:de.isActive(),x="none";de!=null&&de.isActive()?(x="remove",yield de==null?void 0:de.remove()):(x="request",yield de==null?void 0:de.request()),ie.log("toggle picture in picture",{isActive:c,action:x})}),Ye=(c=-90)=>{ie.log("rotate video",{alphaDiff:c}),et.update(x=>x+c)},ni=ae([]);T==null||T.subscribe(c=>{let x=[];for(let R=0;R<c.length;R++){let{range:[ce,De],subjects:pt}=c[R];R===0&&ce!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ce/1e3,text:"",interactive:!0,completed:pe.features.interactiveTimeOpenUri?!pt.length||pt.every(Ft=>Ft.isRemoved):!pt.length}),De!==1/0&&x.push({time:De/1e3,text:"",interactive:!1,completed:!0})}ni.set(x)});let ko=ae(!1);k==null||k.subscribe(c=>{c&&ye(zn)&&pr()});let Ss=c=>{if(!S)return c;let x=ye(ni),R=ye(Ho),De=ye(mo)/R,pt=x.find(Ft=>Ft.interactive&&!Ft.completed&&Ft.time>De);return typeof(pt==null?void 0:pt.time)=="number"?Math.min(c,pt.time-.05):c},cn=()=>{At.ui.episodes.panelOpened$.set(!1)},s0=()=>{ie.log("destroy store"),clearTimeout(Wn),clearTimeout(Go),Ee.unsubscribe(),it.unsubscribe(),N.destroy(),te.destroy(),ue==null||ue.destroy(),qe==null||qe.destroy(),Gt.unsubscribe(),xt==null||xt.disconnect(),xt=null,ne.destroy()},At={interfaceLanguage$:St,isCyrillicRelatedInterface$:oe,initVideo:me,videoId:i,isClip:o,playerPhase:J,vsid:Qe,state:{positionExact$:Pt,positionWithScrubbing$:ls,duration$:Ho,playbackState$:dt,isPlaying$:xo,isLoaderVisible:Do,bufferedProgress$:Hn,isLive$:Kt,canChangePlaybackSpeed$:ui,isActiveLive$:gn,isOldestAvailableLive$:tn,isRewindableLive$:wo,isEnded$:G,muted$:fi,volume$:di,trafficSavingEnabled$:ut,highQualityEnabled$:tt,autoQualityLimitingAvailable$:It,availableVideoStreams$:$r,availableAudioStreams$:or,videoStream$:nr,audioStream$:rr,currentQuality$:Rn,isAutoQualityEnabled$:nn,availableQualities$:Fr,currentPlaybackRate$:Nn,availablePlaybackRates$:sr,currentSubtitle$:Co,availableTextTracks$:at,availableSubtitlesList$:hn,currentSubtitleCaptions$:Dn,isAutoSubtitleCaptionVisible$:To,chromecastState$:ir,chromecastDeviceName$:Vi,chromecastConnected$:Hr,currentFormat$:Bo,throughputEstimation$:xi,videoBitrate$:gt,videoSize$:Ri,errorLog$:ct,crashed$:si,isAudioAvailable$:kn,isAudioDisabled:!!l,canDownload:pe.features.download&&!!d,availableSources$:Fn,hasMpegSources$:ar,isInteractive:S,showInteractiveGraph:pe.features.interactiveGraph,showSeekToInteractive:pe.features.seekToInteractive,showPlayPrevChapter:pe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:pe.features.interactiveTimeIndicator&&!!ye(ni).length,interactiveEpisodes$:ni,isInteractiveTime$:k?ei(k):ae(!1),isInteractiveExpectation$:ko,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:L,looped$:cr,loadedMetadata$:ae(!1),isAutoQualityAvailable$:Fo},ui:{t:Vt,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:K.length?K.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:we},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:rt,isFullscreenOpenedByKeyboard:nt,rotateAlpha:et,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:Wt,isMobile:yi,mobileNotReportControlHidden$:Yo,mobileUnmuteButtonExpanded:ae(!1),mobileUnmuteButtonVisible:ae(!1),icon3DVideoVisible:ae(!1),scrubbingInProgress:zn,volumeChangingInProgress:Te,is3DVideo:ae(!1),currentGridType$:Ii,additionalButtonsDeprecated$:wt,additionalDesktopControlPanelRightButtons$:bn,additionalSettingsMenuItems$:Gr,additionalContextMenuItems$:Ks,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},aboutToGoNextVideo:ae(void 0),userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1),vkLogo:ae(!1),pip:ae(!1),chromecast:ae(!1),settings:ae(!1)},isControlsAvailable:Io,controlBlocks:{topLeft:ae(void 0),topRight:ae(void 0),middle:ae(void 0),bottom:ae(void 0),bottomLeft:ae(void 0),bottomRight:ae(void 0)},videoTitleInfo:ae(void 0)},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:de,annotationsApi:fe,slotsApi:$e},actions:{internal:{preload:sn,firstStart:c=>bl(c,!1),play:()=>_l(!1),pause:()=>nc(!1),togglePlay:ur,toggleMuted:Uo,openSettingsMenu:dr,closeSettingsMenu:Ur,openSettingsSubMenu:rn,closeSettingsSubMenu:wr,setVolume:vo,startVolumeChanging:xe,stopVolumeChanging:$t,setVideoStream:An,setAudioStream:ss,setQuality:Gi,setTrafficSavingEnabled:an,setHighQualityEnabled:je,setPlaybackRate:go,incrementPlaybackRate:no,decrementPlaybackRate:qo,setSubtitle:Ji,toggleSubtitle:Ko,togglePictureInPicture:Fu,startScrubbing:Kr,progressScrubbing:so,completeScrubbing:Qr,toggleChromecast:oc,switchToActiveLive:co,switchFromAdsToVideo:Oi,switchFromVideoToAds:Cs,skipAd:li,setLiveWaitingStart:hl,setLiveWaitingRecover:ec,setLiveWaitingRecord:Nu,getDebugTextData:tc,getTraceTextData:Bu,getDebugPanelData:ic,getVideoElement:Ma,seekTime:(c,x,R)=>$i(c,x,R),clearDelayedBufferingCheckTimeout:Pn,seekEpisodeStartTime:Qo,seekToPercent:ln,getNextEpisode:yl,seekToNextEpisode:Ou,getPrevEpisode:xl,seekToPrevEpisode:Du,startLogging:Ht,stopLogging:vi,startCameraManualRotation:zi,stopCameraManualRotation:po,moveCameraFocusPX:Wi,holdCamera:Yt,releaseCamera:fo,getVideoEpisodes:$l,getPreviewThumbsData:Hu,downloadVideo:lr,addLanguage:Yp,setLanguage:Qt,nextMovie:Je,videoRotate:Ye,correctSeekTimeToInteractive:Ss,replayInteractive:P,setLooped:Cr,reportProblem:Ei,setAutoplayNextEnabled:as,setTimerNextVideoRunning:zr,prevVideoClick:Sr,nextVideoClick:ht,nextVideoAnnouncementShow:zo,nextVideoAnnouncementClick:Wo,nextVideoAnnouncementAuto:Qi,nextVideoAnnouncementCancel:Un},external:{firstStart:c=>bl(c,!0),play:()=>_l(!0),pause:()=>nc(!0),stop:()=>rc(!0),seekTime:c=>ro(c),seekEpisodeStartTime:c=>Wr(c),setPlaybackRate:c=>qr(c),setAutoQualityLimits:c=>Tr(c),setMuted:Eo,toggleSubtitle:Ko,setVolume:vo,returnFocusToEpisodes:cn,updateAdditionalSettingsItem:qn,addAdditionalSettingsItem:Ir,removeAdditionalSettingsItem:ho,updateAdditionalContextItem:bt,addAdditionalContextItem:_t,removeAdditionalContextItem:lo,updateAdditionalButton:Er,addAdditionalButton:eo,removeAdditionalButton:ki,setLiveLowLatency:$n,hideControls:()=>Yi(!1),showControls:()=>Yi(!0)}},callbacks:a,setUiCallbacks:c=>{ke=W({},c)},getAdmanWrapper:()=>te,getLogger:()=>Ge,getPlayer:()=>N,destroy:s0};return At};function Br(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),r=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:u}=bs(e[i],t||void 0);return{left:r?d:0,right:r?u:0,top:r?l:0,bottom:r?a:0,isDisplayed:r}}var dy=["disabledControls$","additionalButtons"],cy=["interactiveTimeIndicator"],ul=(t,e,i,o)=>{if(t){for(let[n,r]of Object.entries(e))if(!dy.includes(n)){let l=o||cy.includes(n);r.set(Br(t,i,n,l))}}};var vu=(t,e,i)=>yt(null,null,function*(){yield bo(),e&&i&&(i.focus(),t.set(!1))});var uy=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Gf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=uy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}function Yf(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C(a,"$contextMenuVisible$",i),r=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ie(),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=Z(void 0);We(()=>{s(y)&&Et(()=>{p.set(s(y))})});let w=k=>{let P=Ds(k),I=Zh(s(y));v.set(I),u.set(P),a.set(!n())},$=()=>{f.set(!0)},S=()=>{f.set(!1)},T=h(()=>n()?"opened":"");Bt(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return r()},get ariaLabel(){return l()},click:w,focus:$,blur:S,get ariaExpanded(){return n()},get ref(){return s(y)},set ref(k){B(y,k,!0)},children:(k,P)=>{Gf(k,{})},$$slots:{default:!0}}),H(),o()}var py=t=>{t.stopPropagation()},fy=M("<div><!> <div></div> <div></div></div>"),my={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
226
+ `)),$(fe,ye)};V(Re,fe=>{s(I)&&fe(ie)})}var N=A(Re,2),Ye=_(N);{var te=fe=>{var ye=Ue(),X=ge(ye);{var Qe=ke=>{var ne=Jr();O(Ee=>be(ne,Ee),[()=>F("tooltip_episode_unfinished")]),$(ke,ne)},Xe=ke=>{var ne=Jr();O(()=>be(ne,s(K).text||"")),$(ke,ne)};V(X,ke=>{p()&&s(K).completed===!1?ke(Qe):ke(Xe,!1)})}$(fe,ye)};V(Ye,fe=>{s(K)&&fe(te)})}g(N);var Ke=A(N,2);{var de=fe=>{var ye=y2(),X=_(ye,!0);g(ye),O(()=>be(X,d())),$(fe,ye)};V(Ke,fe=>{p()||fe(de)})}g(ve),O(fe=>{pe=ee(ve,1,"timeline-preview svelte-1wqg760",null,pe,fe),at(ve,`width: ${s(z)?s(T):s(C)}px;`)},[()=>({mobile:a()})]),$(t,ve),H(),o()}var S2=M('<span class="time svelte-1jr6obn"> </span>'),C2=M("<!> <!>",1),T2={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 Hf(t,e){var we,Fe,me,Be,Je;D(e,!0),q(t,T2);let[i,o]=Oe(),n=()=>S(se,"$interactiveEpisodes$",i),r=()=>S(E,"$duration$",i),l=()=>S(k,"$position$",i),d=()=>S(le,"$isInteractiveExpectation$",i),a=()=>S(ue,"$isInteractiveTime$",i),u=()=>S(L,"$isLive$",i),f=()=>S(z,"$isMobile",i),v=()=>S(K,"$isActiveLive$",i),p=()=>S(P,"$bufferedProgress$",i),b=()=>S(ve,"$disabledControls$",i),x=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=Ie(),I=Wt(),P=T.state.bufferedProgress$,k=T.state.positionWithScrubbing$,E=T.state.duration$,L=T.state.isLive$,K=T.state.isActiveLive$,z=T.ui.isMobile,U=I.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,Y=T.actions.internal.getPreviewThumbsData(),se=T.state.interactiveEpisodes$,j=T.state.isInteractive,ue=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,Me=T.actions.internal.correctSeekTimeToInteractive,Ne=(we=T.callbacks)==null?void 0:we.onDisabledTimelineClick,ve=T.ui.controls.disabledControls$,pe=(me=(Fe=T.callbacks)==null?void 0:Fe.uiInfo)==null?void 0:me.onTimelineMouseEnter,Re=(Je=(Be=T.callbacks)==null?void 0:Be.uiInfo)==null?void 0:Je.onTimelineMouseLeave,ie=T.ui.t,N=I.features.interactiveResponsiveUi,Ye=h(()=>j?n():U),te=h(()=>mn(r())),Ke=h(()=>mn(l())),de=h(()=>l()/r()),fe=h(()=>d()||a()),ye=Z(!1),X=Z(""),Qe=Z(0),Xe=Z(0),ke=Z(0),ne=h(()=>({containerWidth:s(Xe),translateXPx:s(Qe),translateYPx:j&&Y?-36:-16,active:s(ye)&&x()&&!s(fe)&&!N,pointer:!I.features.timelinePreview||!Y||u()})),Ee=ie("aria_timeline"),Ge=h(()=>ie("aria_timeline_value",{position:s(Ke),duration:s(te)}));function rt(ze){return!Me||!j?ze:Me(ze*r())/r()}function nt(ze){T.actions.internal.startScrubbing(rt(ze))}function Rt(ze){a()||T.actions.internal.progressScrubbing(rt(ze))}function et(ze){T.actions.internal.completeScrubbing(rt(ze)),B(ye,!1)}function pt(ze,Lt,Et){Qt(ze,Lt,Et),B(ye,!0)}function Yt(ze,Lt,Et){Qt(ze,Lt,Et),B(ye,!0)}function si(){B(ye,!1)}function Qt(ze,Lt,Et){B(ke,rt(ze),!0),B(Qe,Lt,!0),Et&&B(Xe,Et,!0),B(X,Tt(ze),!0)}function Tt(ze){let Lt=mn((u()?1-ze:ze)*r());return u()?`-${Lt}`:Lt}var oe=C2(),Nt=ge(oe);Of(Nt,vs(()=>s(ne),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(ze,Lt)=>{var Et=Ue(),St=ge(Et);{var ht=pi=>{Df(pi,{get time(){return s(X)},get isMobile(){return f()},get videoEpisodes(){return s(Ye)},get previewThumbsData(){return Y},get progress(){return s(ke)},get duration(){return r()},get isInteractive(){return j}})},Ri=pi=>{var ot=S2(),Ft=_(ot,!0);g(ot),O(()=>be(Ft,s(X))),$(pi,ot)};V(St,pi=>{I.features.timelinePreview&&Y&&!u()?pi(ht):pi(Ri,!1)})}$(ze,Et)},$$slots:{default:!0}}));var he=A(Nt,2);let J=h(()=>b().has("TIMELINE"));ba(he,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Ee},ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return l()},get ariaValueText(){return s(Ge)},get loadedProgress(){return p()},get filledProgress(){return s(de)},get handleProgress(){return s(de)},get videoEpisodes(){return s(Ye)},onPointerDown:nt,onHandleMove:Rt,onPointerMove:Yt,onPointerUp:et,onPointerEnter:pt,onPointerLeave:si,get onMouseEnter(){return pe},get onMouseLeave(){return Re},get onDisabledClick(){return Ne},get isInteractive(){return j},get disabled(){return s(J)},get hideHandel(){return a()},testId:"progress_bar",get ref(){return C()},set ref(ze){C(ze)}}),$(t,oe),H(),o()}var E2={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 xd(t,e){D(e,!0),q(t,E2);let[i,o]=Oe(),n=()=>S(a,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ie(),a=d.ui.isMobile,u=d.ui.t,f=h(()=>mn(l())),v=h(()=>mn(r())),p=h(()=>r()/l()),b=h(()=>u("aria_timeline_value",{position:s(v),duration:s(f)})),x=h(()=>Math.round(s(p)*100));ba(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return s(x)},get ariaValueText(){return s(b)},get filledProgress(){return s(p)},hideHandel:!0,get squareBorders(){return n()}}),H(),o()}var I2=M("<div><!></div>"),k2=M("<div></div>"),P2={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function $a(t,e){D(e,!0),q(t,P2);let[i,o]=Oe(),n=()=>S(b,"$isLive$",i),r=()=>S(C,"$isMobile",i),l=()=>S(y,"$adPosition",i),d=()=>S(x,"$adDuration",i),a=m(e,"isAds",3,!1),u=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),v=m(e,"ref",15,void 0),p=Ie(),b=p.state.isLive$,x=p.ads.duration,y=p.ads.position,C=p.ui.isMobile,T=h(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||a()));var I=Ue(),P=ge(I);{var k=L=>{var K=I2();let z;var U=_(K);{var Y=j=>{xd(j,{get position(){return l()},get duration(){return d()}})},se=j=>{Hf(j,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return s(T)},get withEpisodes(){return e.withEpisodes},get ref(){return v()},set ref(ue){v(ue)}})};V(U,j=>{a()?j(Y):j(se,!1)})}g(K),O(j=>z=ee(K,1,"timeline svelte-41cp6d",null,z,j),[()=>({withoutPadding:!f(),mobile:r()})]),$(L,K)},E=L=>{var K=k2();let z;O(U=>z=ee(K,1,"timeline-stub svelte-41cp6d",null,z,U),[()=>({mobile:r()})]),$(L,K)};V(P,L=>{s(T)?L(k):L(E,!1)})}$(t,I),H(),o()}import{noop as L2}from"@vkontakte/videoplayer-shared/es2015";var A2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function Ff(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=A2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(3),g(o),$(t,o)}var M2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function Uf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=M2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var V2=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),R2=M('<span class="text svelte-1yhs2ga"> </span>'),N2=M('<span class="text count svelte-1yhs2ga"> </span>'),B2=M("<!> <!>",1),O2={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 wd(t,e){var le,Me,Ne;D(e,!0),q(t,O2);let[i,o]=Oe(),n=()=>S(x,"$currentGridType$",i),r=()=>S(y,"$openedByKeyboard$",i),l=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),a=m(e,"position",3,0),u=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=Ie(),p=(Me=(le=v.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Me:L2,b=!!((Ne=v.callbacks)!=null&&Ne.onEpisodeClicked),x=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,C=v.ui.episodes.panelOpened$,T=v.ui.isMobile,I=v.ui.t,P=Z(void 0),k=ve=>{var Re,ie,N;if(!!((Re=v.callbacks)!=null&&Re.onEpisodeClicked)){let Ye=Bs(ve);y.set(Ye),C.set(!0),(N=(ie=v.callbacks)==null?void 0:ie.onEpisodeClicked)==null||N.call(ie,Ye)}},E=Z(null),L=h(()=>a()/u());qe(()=>{var pe;let ve=ru(s(L),u(),f());ve?((pe=s(E))==null?void 0:pe.time)!==ve.time&&(p(ve),B(E,ve,!0)):B(E,null)});let K=h(()=>{var ve;return((ve=s(E))==null?void 0:ve.text)||""}),z=h(()=>Ji(n(),"xl")?"FULL":Ji(n(),"m")&&r1(n(),"xl")?"COUNT":"SHORT"),U=h(()=>`${I("tooltip_episodes")}: ${s(K)}`),Y=(ve,pe,Re)=>wt(null,null,function*(){yield xo(),(ve==null?void 0:ve.getAttribute("aria-expanded"))==="false"&&pe&&!Re&&It(()=>{y.set(!1),ve.focus()})});qe(()=>{Y(s(P),r(),l())});var se=Ue(),j=ge(se);{var ue=ve=>{let pe=h(()=>d()?"px-0":""),Re=h(()=>!b);Ot(ve,{get className(){var ie;return`w-max btn-full-opacity btn-jc-l ${(ie=s(pe))!=null?ie:""}`},testId:"btn-episodes",click:k,get disabled(){return s(Re)},get ariaExpanded(){return l()},get ariaLabel(){return s(U)},get ref(){return s(P)},set ref(ie){B(P,ie,!0)},children:(ie,N)=>{var Ye=Ue(),te=ge(Ye);{var Ke=fe=>{var ye=V2(),X=ge(ye),Qe=_(X,!0);g(X);var Xe=A(X,2),ke=_(Xe);Uf(ke,{}),g(Xe),O(()=>be(Qe,s(K))),$(fe,ye)},de=fe=>{var ye=B2(),X=ge(ye);Ff(X,{});var Qe=A(X,2);{var Xe=ne=>{var Ee=R2(),Ge=_(Ee,!0);g(Ee),O(()=>be(Ge,s(K))),$(ne,Ee)},ke=(ne,Ee)=>{{var Ge=rt=>{var nt=N2(),Rt=_(nt,!0);g(nt),O(()=>be(Rt,f().length)),$(rt,nt)};V(ne,rt=>{s(z)==="COUNT"&&rt(Ge)},Ee)}};V(Qe,ne=>{s(z)==="FULL"?ne(Xe):ne(ke,!1)})}$(fe,ye)};V(te,fe=>{d()?fe(Ke):fe(de,!1)})}$(ie,Ye)},$$slots:{default:!0}})};V(j,ve=>{s(E)&&ve(ue)})}$(t,se),H(),o()}import{debounceFn as w1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as K2,PlaybackState as Sd,Player as Q2,PredefinedQualityLimits as ns,VideoFormat as Cd,clientChecker as G2}from"@vkontakte/videoplayer-core/es2015";import{assertNonNullable as Xn,getHighestQuality as Y2,InterfaceLanguage as j2,isInvariantQuality as Z2,isNonNullable as X2,loadVKLangPack as J2,Logger as ey,map as g1,merge as ty,Observable as h1,Subject as mu,Subscription as Gf,TracerFactory as iy,ValueSubject as oy,VideoQuality as ny,devNull as ry,now as sy,filter as ay,once as ly}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as bs}from"@vkontakte/videoplayer-statistics/es2015";import{detectEmbed as D2,devNull as Jt,now as ei}from"@vkontakte/videoplayer-shared/es2015";import{addScript as H2,Subject as tn,clearVideoElement as F2}from"@vkontakte/videoplayer-shared/es2015";var c1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var U2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",su=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 tn,loadStarted$:new tn,loadEnded$:new tn,loadError$:new tn,ready$:new tn,slotRequested$:new tn,started$:new tn,timeRemained$:new tn,paused$:new tn,resumed$:new tn,ended$:new tn,empty$:new tn,skipped$:new tn,clicked$:new tn,closed$:new tn,error$:new tn};this.loadAdman=e=>(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[ei()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[ei()]}),i(),this.events.loadEnded$.next()):(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[ei()]}),o())};H2(U2,e,this.loadTimeout).then(()=>{Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[ei()]}),window.AdmanHTML?(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[ei()]}),i(),this.events.loadEnded$.next()):(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[ei()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout))}).catch(l=>{Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[ei()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[ei()]}),i(),this.events.loadEnded$.next()):(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[ei()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[ei()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[ei()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[ei()]}),!d&&(window.AdmanHTML?(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[ei()]}),i(),this.events.loadEnded$.next()):(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[ei()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[ei()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[ei(),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"}),xe(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),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;Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),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(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[ei()]}),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;Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),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")=>{Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[ei()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[ei()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[ei(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:r,adsContainer:l,adsVideoElement:d,slotId:a,params:u={},duration:f,previewParam:v}=e,p,b=this.playerState&&xe(this.playerState.vsid);b&&(this.isVsidOriginal?p=b:p=parseInt(b,36));let{isEmbed:x,immediateOrigin:y}=D2(),C=(P=x?y:window.location.href)!=null?P:window.location.href,T=Dt(W(Dt(W({},u),{dl:encodeURIComponent(C),autoplay:r?1:0,player_width:i,player_height:o,preview:v}),p?{request_id:p}:{}),{duration:f,puid10:c1(i,o),puid11:n?0:1});v||delete T.preview;let I={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let k=new window.AdmanHTML;k.setDebug(!1),k.onReady(this.onAdsReady),k.onStarted(this.onAdStarted),k.onPlayed(this.onAdPlayed),k.onPaused(this.onAdPaused),k.adMidrollPoint(this.onAdMidrollPoint),k.onClosed(this.onAdClosed),k.onSkipped(this.onAdSkipped),k.onClicked(this.onAdClicked),k.onTimeRemained(this.onAdTimeRemained),k.onCompleted(this.onAdCompleted),k.onError(this.onAdError),k.init(I),this.adman=k,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(k){Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[ei()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,r;if(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[ei()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(r=(n=this.actions).switchFromAdsToVideo)==null||r.call(n,!i)}}togglePlay(){var e;if(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),this.adsState){this.log({message:"toggle play"});let i=xe(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[ei()]}),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(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),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(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),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(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,r,l,d,a,u,f,v,p;Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[ei()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(r=this.adman)==null||r.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(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&&F2(this.videoElement),this.isDestroyed=!0}};var u1=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 zf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let r of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=r.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new au,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new Wf,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},au=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let r=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return r+l+d+a}},Wf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let 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}}),r=new au;for(let l of n)r.isTime(l)?i.texts.push({type:"timestamp",value:r.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},p1=zf;import{isNonNullable as qf}from"@vkontakte/videoplayer-shared/es2015";var ya,Ii,Kf=0,Qf=!1,f1="",m1=(t,e=0,i=0)=>t<e&&t<i,lu=(t,e=0,i=0)=>t>=e&&t<=i,z2=(t,e=0,i=0)=>t>e&&t>i,v1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:u,endTime:f})=>lu(t,u,f));let r=t>=Kf,l=t<Kf;if(Kf=t,l&&(Qf=!1),qf(ya)&&lu(t,ya.startTime,ya.endTime)&&f1===e.value)return ya;if(!qf(Ii)&&(n!=null&&n.length)&&!Qf){Ii=n.find(({startTime:u,endTime:f})=>lu(t,u,f)||r&&m1(t,u,f)),ya=void 0,!qf(Ii)&&n[n.length-1].endTime<t&&(Qf=!0);return}else{if(lu(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))return ya=Ii,Ii=void 0,f1=e.value,ya;(r&&z2(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime)||l&&m1(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))&&(Ii=void 0)}};var du={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"},W2={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"},cu=t=>{var e,i;return(i=(e=du[t])!=null?e:du[W2[t]])!=null?i:void 0};import{Subscription as q2}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-statistics/es2015";var uu=class{constructor(e,i,o,n=new q2){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var pu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(pu||{});var os=t=>t!=null?t:0,_s=(t,e)=>{var n,r;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(os(i==null?void 0:i.top)-os(o==null?void 0:o.top)),left:Math.round(os(i==null?void 0:i.left)-os(o==null?void 0:o.left)),bottom:Math.round(os(i==null?void 0:i.bottom)-os(o==null?void 0:o.top)),right:Math.round(os(i==null?void 0:i.right)-os(o==null?void 0:o.left))}},ul=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:os(e==null?void 0:e.width),height:os(e==null?void 0:e.height)}};var fu="off";var _1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:b,player:x,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:P,stopPlayer:k,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:L,additionalButtons:K,additionalSettingsMenuItems:z,additionalContextMenuItems:U,playPrevVideo:Y,playNextVideo:se,looped:j=!1,statistics:ue,saveRate:le,internalsExposure:Me,playerView:Ne})=>{var pv,fv,mv;let ve=Dt(W({},b),{configName:[...(pv=b.configName)!=null?pv:[],"ui"],isAudioDisabled:l,live:Dt(W({},(fv=b.live)!=null?fv:{}),{isLiveCatchUpMode:!!n})}),pe=p,Re=iy.createRootTracer(pe.features.tracer),ie=Re.createComponentTracer("Store"),N=x||new Q2(ve,Re);Me==null||Me.expose({corePlayer:N});let Ye=new ey,te=new su(Ye,{loadTimeout:pe.ads.loadTimeout,initTimeout:pe.ads.initTimeout,runtimeTimeout:pe.ads.runtimeTimeout,useAdmanFromNPM:pe.ads.useAdmanFromNPM,volumeMultiplier:pe.ads.volumeMultiplier,isVsidOriginal:pe.ads.isVsidOriginal}),Ke=ca.getInstance(),de=u==null?void 0:u.pictureInPictureApi,fe=u==null?void 0:u.annotationsApi,ye=u==null?void 0:u.slotsApi,X=Ye.createComponentLog("Store"),Qe,Xe,ke={},ne=new Bc,Ee=new Gf,Ge=ue&&ue.oneStat?ii(ue.oneStat.vsid$):vr(void 0),rt=ae(Vs()),nt=ae(!1),Rt=(mv=de==null?void 0:de.info.isActive$)!=null?mv:new oy(!1),et=ae(0),pt=ae([]),Yt=ty(N.events.fatalError$,N.events.managedError$).subscribe(c=>pt.update(w=>[...w,c])),si=vr(!1,c=>{let w=N.events.fatalError$.subscribe(()=>c(!0));return()=>w.unsubscribe()}),Qt=c=>wt(null,null,function*(){var ce;let w=Object.values(j2).includes(c);if(pe.downloadVKLanguages&&(w&&pe.updateBuiltinLanguages||!Zp(c))){let He;try{He=yield J2(c,th,ih)}catch(gt){(ce=ue==null?void 0:ue.oneStat)==null||ce.logError({errorType:"VKLangPack",fatal:!1}),Ke==null||Ke.report(gt,{errorType:"VKLangPack",fatal:!1})}He&&(jp({language:c,pack:He,fallback:pe.defaultLanguage}),Tt.set(c))}Zp(c)&&Tt.set(c)}),Tt=ae(t),oe=ae(e);Qt(t);let Nt=(c,w)=>{let R=xe(Tt);return Xp(R,c,w,pe.defaultLanguage)},he=ae("thumb"),J=(()=>{let c=bi([si,he],([w,R])=>w?"crashed":R);return Dt(W({},c),{is:w=>xe(c)===w})})(),we=(()=>{let c=ae(new Set(y));return Dt(W({},c),{add:w=>{c.update(R=>new Set([...R].concat(w)))},remove:w=>{c.update(R=>{let ce=[...R];return new Set(Array.isArray(w)?ce.filter(He=>!w.includes(He)):ce.filter(He=>He!==w))})},includes:w=>{let R=xe(c);return Array.isArray(w)?w.every(ce=>R.has(ce)):R.has(w)}})})();ie.log("create store"),X({message:"create store"});let Fe=c=>{let w=c.container,R=()=>{St=new MutationObserver(He=>{let{removedNodes:gt}=He[0];gt.length&&w.append(N.experimental.element$.getValue())}),St.observe(w,{childList:!0})},ce=N.experimental.element$.getValue();if(ce)w.append(ce),R();else{let He=N.experimental.element$.pipe(ay(gt=>!!gt),ly()).subscribe(gt=>{w.append(gt),R()});Ee.add(He)}},me=c=>{X({message:`init video, config: ${JSON.stringify(c)}`}),C?Fe(c):(ry.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[sy()]}),N.initVideo(c)),ie.log("init video",{isInteractive:C}),c.subtitles&&N.setExternalTextTracks(c.subtitles),Qe=c},Be=new mu,Je=c=>Be.next(c),ze=new mu,Lt=new mu,Et=new mu,St=null,ht={actionRewind$:ze,actionSeek$:Lt,inPiP$:Rt,inFullscreen$:new h1(c=>rt.subscribe(w=>c.next(w))),actionSetSubtitle$:Et,nextMovie$:Be},Ri={actionSeek$:Lt,playerSize$:new h1(c=>_e.subscribe(w=>c.next(w)))};if(ue){let{oneStat:c,thinOneStat:w,mediascopePixel:R,statSubscription:ce}=ue;c&&(C||ce.add(c.attachTo(N)),ce.add(c.attachToUi(ht)),ce.add(c.attachToAds(te.events)),c.authorize(r).catch(He=>{X({message:`onestat auth error ${String(He)}`})}),R&&R.attachTo(N)),w&&(ce.add(w.attachTo(N)),ce.add(w.attachToUi(Ri)),w.authorize(r))}if(Ke){let c=new Gf,w=(R,ce)=>c.add(R.subscribe(ce));if(w(N.events.managedError$,R=>{Ke.logIError(R)}),w(N.events.fatalError$,R=>{Ke.logIError(R,!0)}),ue){let{oneStat:R}=ue;R&&w(R.experimental.error$,ce=>{Ke.logIError(ce)})}Ke.sentrySubscription.add(c)}let pi=()=>{G2.device.isIOS&&Xe&&Dh(Xe).catch(c=>{X({message:`exitIosSafariFullscreen failed: ${c}`})})};Ee.add(N.experimental.element$.subscribe(c=>{c&&(Xe=c,c.classList.add("player-media"),pa(de)&&(de.updateVideoElement(),de.registryEventHandlers()),C&&c.setAttribute("pip","false"),Ne==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;pi(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(N.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(N.events.started$.subscribe(()=>wt(null,null,function*(){var w,R;pa(de)&&(yield de==null?void 0:de.revealPictureInPicture());let c=N.info.muted$.getValue();(w=a==null?void 0:a.onStarted)==null||w.call(a),(R=ke.onStarted)==null||R.call(ke,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:w})=>{var R;(R=a==null?void 0:a.onSeek)==null||R.call(a,c,w)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(N.info.position$.subscribe(c=>{var R;let w=N.info.duration$.getValue();isFinite(w)&&w>0&&((R=a==null?void 0:a.onTimeupdate)==null||R.call(a,w,c),te.setPosition(c,w))})).add(N.events.fatalError$.subscribe(c=>{var w;(w=a==null?void 0:a.onCrashed)==null||w.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var w;(w=a==null?void 0:a.onRecoverableError)==null||w.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{st.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{st.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{C&&(c?(I!=null&&I.getValue()&&we.add(Zl),we.add("PLAY_BUTTON")):we.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var w;(w=a==null?void 0:a.onLiveTime)==null||w.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var w;(w=a==null?void 0:a.onStalledChanged)==null||w.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var w;return c&&((w=a==null?void 0:a.onLiveEnded)==null?void 0:w.call(a))})).add(te.events.loadStarted$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:w.call(c)})).add(te.events.loadEnded$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:w.call(c)})).add(te.events.loadError$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:w.call(c)})).add(te.events.init$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:w.call(c)})).add(te.events.ready$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:w.call(c)})).add(te.events.started$.subscribe(c=>{var w,R;return(R=(w=a==null?void 0:a.adsInfo)==null?void 0:w.onStarted)==null?void 0:R.call(w,c)})).add(te.events.timeRemained$.subscribe(c=>{var w,R;return(R=(w=a==null?void 0:a.adsInfo)==null?void 0:w.onTimeRemained)==null?void 0:R.call(w,c)})).add(te.events.ended$.subscribe(c=>{var w,R;return(R=(w=a==null?void 0:a.adsInfo)==null?void 0:w.onCompleted)==null?void 0:R.call(w,c)})).add(te.events.empty$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:w.call(c)})).add(te.events.clicked$.subscribe(c=>{var w,R;return(R=(w=a==null?void 0:a.adsInfo)==null?void 0:w.onClicked)==null?void 0:R.call(w,c)})).add(te.events.closed$.subscribe(c=>{var w,R;return(R=(w=a==null?void 0:a.adsInfo)==null?void 0:w.onClosed)==null?void 0:R.call(w,c)})).add(te.events.error$.subscribe(c=>{var w,R;return(R=(w=a==null?void 0:a.adsInfo)==null?void 0:w.onError)==null?void 0:R.call(w,c)})).add(te.events.paused$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:w.call(c)})).add(te.events.resumed$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:w.call(c)}));let ot=new Gf,Ft=()=>{var gt,Ut,qt;let{debugLog:c}=pe,w,R="#9df7b7",ce="#efd169";if(c&&c!==!0){let{colors:zt}=c;w=c.tag,R=(gt=zt==null?void 0:zt[0])!=null?gt:R,ce=(qt=(Ut=zt==null?void 0:zt[1])!=null?Ut:zt==null?void 0:zt[0])!=null?qt:ce}let He=w?`: ${w}`:"";ot.add(N.events.log$.subscribe(zt=>{console.debug(`%c sdk${He} `,`background:${R};`,`sdk component: ${zt.component}`,zt.message)})).add(Ye.log$.subscribe(zt=>{console.debug(`%c ui${He} `,`background:${ce};`,`ui component: ${zt.component}.`,zt.message)}))},gi=()=>{ot.unsubscribe()},Wi=(c,w)=>{ie.log("start camera manual rotation",{mx:c,my:w}),N.startCameraManualRotation(c,w)},mo=(c=!1)=>{ie.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},qi=(c,w,R)=>{ie.log("move camera focus px",{xpx:c,ypx:w,dt:R}),N.moveCameraFocusPX(c,w,R)},jt=()=>{N.holdCamera()},vo=()=>{N.releaseCamera()},At=vr(N.info.position$.getValue(),c=>{let w,R,ce=()=>{let He=N.info.playbackState$.getValue(),gt=N.info.isLive$.getValue(),Ut=N.info.duration$.getValue(),qt=N.info.position$.getValue();if(He&&[Sd.PLAYING,Sd.PAUSED].includes(He)){let zt=gt?qt-Ut:N.getExactTime();zt!==R&&c(zt),R=zt}w=requestAnimationFrame(ce)};return ce(),()=>cancelAnimationFrame(w)}),ct=ii(N.info.playbackState$),hi=ii(N.info.currentBuffer$),G=ii(N.info.isEnded$),Kt=ii(N.info.isLive$),ui=pe.features.playbackRate?ii(N.info.canChangePlaybackSpeed$):vr(!1),Ni=ii(N.info.liveBufferTime$),di=ii(N.info.volume$),fi=ii(N.info.muted$),mt=Oc(N.info.predefinedQualityLimitType$.pipe(g1(c=>c===ns.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ns.TRAFFIC_SAVING),it=Oc(N.info.predefinedQualityLimitType$.pipe(g1(c=>c===ns.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ns.HIGH_QUALITY),kt=ii(N.info.autoQualityLimitingAvailable$),Ki=ii(N.info.availableQualities$),ni=ii(N.info.availableQualitiesFps$),Jn=ii(N.info.chromecastState$),ki=ii(N.info.chromecastDeviceName$),Co=ii(N.info.currentFormat$),wi=ii(N.info.throughputEstimation$),$t=ii(N.info.videoBitrate$),Bi=ii(N.info.intrinsicVideoSize$),Ho=ii(N.info.duration$),En=ii(N.info.isAudioAvailable$),ci=null,Pi=N.info.isBuffering$,Fo=vr(Pi.getValue(),c=>{let w=Pi.subscribe(R=>{R&&ci===null?ci=window.setTimeout(()=>{c(Pi.getValue()),ci=null},pe.loaderDelay):c(R)});return()=>{w.unsubscribe(),ci&&clearTimeout(ci)}}),In=()=>{ci&&clearTimeout(ci),ci=null},Uo=bi([Ho,Kt],([c,w])=>w?-c:c),To=bi([ct],([c])=>c===Sd.PLAYING),vn=ii(N.info.atLiveEdge$),rn=ii(N.info.atLiveDurationEdge$),go=ii(N.info.position$),ao=bi([go,Ho],([c,w])=>isFinite(c)&&isFinite(w)&&!!w),Or=bi([Jn],([c])=>c===K2.CONNECTED),hr=ii(N.info.availableVideoStreams$),er=pe.features.audioLanguages?ii(N.info.availableAudioStreams$):vr([]),tr=ii(N.info.currentVideoStream$),ir=ii(N.info.currentAudioStream$),kn=c=>{c.language&&Yp(c.language),N.setVideoStream(c)},rs=c=>{c.language&&Yp(c.language),N.setAudioStream(c)},Pn=c=>{let w;if(c.length===1&&(w=c.at(0)),w!=null||(w=c.find(ce=>"isDefault"in ce&&ce.isDefault)),w)return w;let R=Ch();return R&&(w=c.find(({language:ce})=>R===ce)),w!=null||(w=c.at(0)),w},Si=!1;Ee.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Si&&c.length){let w=Pn(c);w&&(N.setAudioStream(w),Si=!0)}}));let An=!1;Ee.add(N.info.availableVideoStreams$.subscribe(c=>{if(!An&&c.length){let w=Pn(c);w&&(N.setVideoStream(w),An=!0)}}));let sn=ae(void 0),an=ii(N.info.isAutoQualityEnabled$,c=>c&&sn.set(void 0)),Mn=ii(N.info.currentQuality$,()=>sn.set(void 0)),Ln=bi([sn,Mn],([c,w])=>c!=null?c:w),zo=bi(Co,c=>c!==Cd.MPEG),Dr=bi([Ki,ni,an,Ln,zo],([c,w,R,ce,He])=>{let gt=[];He&&gt.push({value:"auto",displayValue:Nt("auto_quality_option"),selected:R});let Ut=c.filter(qt=>!Z2(qt));for(let qt of Ut){let zt=w[qt];gt.push({value:qt,displayValue:`${qt}${zt?u1(zt):""}`,selected:R?!1:qt===ce})}return gt}),Vn=ii(N.info.currentPlaybackRate$),or=bi([Vn,vn,rn],([c,w,R])=>{let ce=R||C?1:pe.controls.playbackRateMin,He=w?1:pe.controls.playbackRateMax,gt=pe.controls.playbackRateStep,Ut=[];for(let qt=ce;qt<=He;qt+=gt)Ut.push({value:qt,displayValue:qt===1?Nt("playback_rate_1"):Nt("playback_rate",{multiplier:qt.toString(10)}),selected:c===qt});return Ut}),Qi={displayValue:Nt("subtitles_off"),value:fu},Eo=ae(W({},Qi)),lt=pe.features.subtitles?ii(N.info.availableTextTracks$):vr([]),ti=gh(),_r=bi([lt,Eo],([c,w],R)=>{var gt;let ce=[],He=c.find(({id:Ut})=>Ut===w.value);if(He!=null&&He.url){let[,Ut]=(gt=ti.find(He.url))!=null?gt:[];if(Ut){R(Ut);return}ne.download(He.url).then(qt=>{if(!qt||ne.isDestroyed())return;let zt=new p1,Ss=He.language;if(Ss){let a0=!!He.isAuto,l0=zt.parse(qt,Ss);ce.push({lang:Ss,subtitles:l0,isAuto:a0,id:He.id})}ti.add(He.url,ce),xe(Eo).value===w.value&&R(ce)}).catch(qt=>{var zt;(zt=ue==null?void 0:ue.oneStat)==null||zt.logError({errorType:"Subtitles download",fatal:!1}),Ke==null||Ke.report(qt,{errorType:"Subtitles download",fatal:!1})})}R(ce)}),Rn=bi([Vn,To,Eo],([c,w,R],ce)=>{let Ut;if(N.info.isLive$.getValue()&&w&&R.value!==Qi.value){let zt=()=>{let Ss=1e3/(3*c);Ut=setTimeout(zt,Ss),ce(Date.now())};return zt(),()=>clearTimeout(Ut)}}),gn=bi([lt,Eo],([c,w])=>{if(!c.length)return[];let R=[];for(let{language:ce,isAuto:He,id:gt}of c){let Ut=ce&&cu(ce);ce&&Ut&&R.push({displayValue:He?Nt("subtitles_auto",{language:Ut}):Ut,value:gt,selected:(w==null?void 0:w.value)===gt,isAuto:He})}return R.length?(R.unshift(Dt(W({},Qi),{selected:(w==null?void 0:w.value)===Qi.value})),R):[]}),Oi={available:[],prev:[]},Nn=()=>{var w,R;let c=N.experimental.getCurrentTime$.getValue();return(R=(w=c==null?void 0:c())!=null?w:Xe==null?void 0:Xe.currentTime)!=null?R:0},Io=bi([At,Eo,_r,Rn],([c,w,R,ce])=>{var gt;let He=N.info.isLive$.getValue();if(He&&Oi.prev!==R){let Ut=R.find(({id:zt})=>zt===w.value),qt=Oi.prev.find(({id:zt})=>zt===w.value);if(Ut){let zt=Dt(W({},Ut),{subtitles:[...(gt=qt==null?void 0:qt.subtitles)!=null?gt:[],...Ut.subtitles]});Oi.available=[zt],Oi.prev=R}}if(w&&w.value!==Qi.value){let Ut=He?Nn():c,qt=He?Oi.available:R;return v1(Ut,w,qt,He)}}),Bn=bi([Io],([c])=>c!=null&&c.texts?c.texts:[]);Ee.add(Eo.subscribe(c=>{var w,R;if(c.value===Qi.value)(w=a==null?void 0:a.onSubtitleOff)==null||w.call(a);else{let ce=Object.entries(du).find(([He,gt])=>gt===c.displayValue);(R=a==null?void 0:a.onSubtitleOn)==null||R.call(a,ce?ce[0]:"")}}));let ko=ae(!0),On=bi([hi,Uo,go,Ni],([c,w,R,ce])=>{var qt;let He=(qt=c==null?void 0:c.end)!=null?qt:0;if(!ce)return He/w;let Ut=-R+ce-w;return(He-Ut)/w}),Dn=ii(N.info.availableSources$),nr=bi([Dn],([c])=>Object.keys((c==null?void 0:c[Cd.MPEG])||{}).length>0),br=()=>{var R,ce,He;let c=Object.keys(((ce=(R=N.info.availableSources$)==null?void 0:R.getValue())==null?void 0:ce[Cd.MPEG])||{}),w=Y2(c)||ny.Q_144P;return(He=Qe.sources[Cd.MPEG])==null?void 0:He[w]},rr=()=>{var w;let c=br();if(c)ie.log("download video",{url:c}),fh(c,((w=Qe==null?void 0:Qe.meta)==null?void 0:w.title)||"video");else{let R="There is no URL for download video";ie.log("download video",{message:R}),X({message:R})}},Wo=()=>{X({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?ho(Zt()):yr(!c)},Hr=()=>{var c;if(st.ui.settingsMenu.visible$.set(!1),!xe(st.ui.settingsSubMenu.visible$)){let w=xe(st.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&w){let ce=ul(w),He={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ce,position:He,name:"settings"})}}ie.log("close settings menu")},sr=(c,w=()=>Promise.resolve())=>wt(null,null,function*(){var He;st.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),st.ui.settingsMenu.visible$.set(!0),yield w();let R=xe(st.ui.settingsMenu.ref$),ce=Aa();if((He=a==null?void 0:a.uiInfo)!=null&&He.onSettingsMenu&&R&&ce){let Ut=ul(R),qt=_s(R,ce);a.uiInfo.onSettingsMenu({visible:!0,size:Ut,position:qt,name:"settings"})}ie.log("open settings menu",{wasOpenedByKeyboard:c})}),$r=(c,w=!1)=>{var gt;st.ui.settingsSubMenu.visible$.set(!1);let R=xe(st.ui.settingsMenu.ref$),ce=Aa(),He=xe(st.ui.settingsMenu.visible$);if((gt=a==null?void 0:a.uiInfo)!=null&&gt.onSettingsMenu&&R&&ce)if(He&&!w){let qt=ul(R),zt=_s(R,ce);a.uiInfo.onSettingsMenu({visible:!0,size:qt,position:zt,name:"settings"})}else{let qt=ul(c),zt={top:0,left:0,bottom:0,right:0},Ss=xe(st.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:qt,position:zt,name:Ss})}ie.log("close settings sub menu")},ln=(c,w)=>{var ce;st.ui.settingsSubMenu.visible$.set(!0),st.ui.settingsSubMenu.ref$.set(w),st.ui.settingsSubMenu.name$.set(c);let R=Aa();if((ce=a==null?void 0:a.uiInfo)!=null&&ce.onSettingsMenu&&w&&R){let gt=ul(w),Ut=_s(w,R);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:gt,position:Ut})}ie.log("open settings sub menu",{name:c})},Zt=()=>{var w;let c=Math.max(pe.volumeMinRestore,(w=Dc())!=null?w:0);return c===0?pe.volumeDefault:c},ho=c=>{let w=c===0?Zt():c,R=N.info.muted$.getValue();X({message:`set volume, volume: ${c}, preferredVolume: ${w}`});let ce=!l||J.is("ads");R&&c>0&&ce&&(R=!1,Qp(!1)),N.setVolume(c,R),te.setVolume(c),Up(w)},yr=c=>{let w=N.info.volume$.getValue();if(X({message:`set muted, currentVolume: ${w}, mute: ${c}`}),N.setMuted(c,J.is("ads")),te.setVolume(c?0:w),Qp(c),!c&&w===0){let R=Zt();N.setVolume(R),Up(R),te.setVolume(R)}},xr=ae(!1),qo=c=>{var w,R;ie.log("set looped",{isLooped:c}),xr.set(c),N.setLooped(c),(R=(w=a==null?void 0:a.uiInfo)==null?void 0:w.onLoopedChanged)==null||R.call(w,c)};qo(j);let Ai=()=>{var c,w;(w=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||w.call(c)},Fr=(c,w=!1)=>{var R;X({message:`set autoplayNextEnabled, value: ${c}`}),ie.log("set autoplay next enabled",{autoplayNextEnabled:c}),st.ui.autoplayNextEnabled$.set(c),Ih(c),w&&((R=a==null?void 0:a.onSetAutoplayNextEnabled)==null||R.call(a,c))},Ur=c=>{X({message:`set timerNextVideoRunning, value: ${c}`}),ie.log("set timer next video running",{timerNextVideoRunning:c}),st.ui.timerNextVideoRunning$.set(c)},zr=(c=!0)=>{var ce;let w=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{w=(ce=a==null?void 0:a.onPrevVideoClick)==null?void 0:ce.call(a)}catch(He){X({message:"onPrevVideoClick callback failed to execute"})}if(!w)return;c&&lr("prev")||Y()},ar=(c=!0)=>{var ce;let w=!0;if(c&&(a!=null&&a.onNextVideoClick))try{w=(ce=a==null?void 0:a.onNextVideoClick)==null?void 0:ce.call(a)}catch(He){X({message:"onNextVideoClick callback failed to execute"})}if(!w)return;c&&lr("next")||se()},lr=c=>{let{isMobile:w,features:{playbackStatusNextVideoShow:R,playbackStatusShow:ce}}=pe;return R&&ce&&!w?(st.ui.aboutToGoNextVideo.set(c),st.ui.userActionsDisabled.set(!0),!0):!1},vt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Xt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},$i=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Gi=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},yi=()=>{N.prepare()},_o=()=>{Xn(st);let c=xe(st.ui.controls.disabledControls$),w=xe(st.playerPhase),R={playerPhase:w,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(X({message:"toggle play"}),w==="ads"){R.action="play",ie.log("toggle adman play",R),te.togglePlay();return}let ce=()=>{var gt;X({message:"toggle play, call player.play"}),R.action="play",N.play(),(gt=a==null?void 0:a.onPlay)==null||gt.call(a)},He=()=>{var gt;X({message:"toggle play, call player.pause"}),R.action="pause",N.pause(),(gt=a==null?void 0:a.onPause)==null||gt.call(a)};if(N.info.isEnded$.getValue()){if(X({message:"toggle play, video ended, seek to 0"}),ze.next(),Lt.next(bs.REWIND),C){P==null||P();return}N.seekTime(0),ce()}else N.info.playbackState$.getValue()!==Sd.PLAYING?ce():He();ie.log("toggle play",R)},Po=(c,{changeReason:w="default",appliesTo:R="to-video"}={})=>{X({message:`set quality, quality: ${c}`}),ie.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(pe.features.qualityDetailsSubMenuEnabled?(Hc({type:"exact_quality",quality:c,videoId:i},R),Jl(),N.setPredefinedQualityLimits(ns.UNKNOWN)):zp(i,c),sn.set(c),N.setQuality(c)):pe.features.qualityDetailsSubMenuEnabled?w==="default"&&(mi("auto_quality",R),xe(mt)&&Ko(!1),xe(it)&&We(!1)):Jl()},Ko=(c,w="as-default")=>{X({message:`set trafficSavingEnabled, value: ${c}`}),ie.log("set traffic saving enabled",{trafficSavingEnabled:c});let R=c?ns.TRAFFIC_SAVING:ns.UNKNOWN;pe.features.qualityDetailsSubMenuEnabled?(Vt(R,w),Xl(!1)):(N.setPredefinedQualityLimits(R),Xl(c))},We=(c,w="as-default")=>{X({message:`set highQualityEnabled, value: ${c}`}),ie.log("set high quality enabled",{highQualityEnabled:c}),Vt(c?ns.HIGH_QUALITY:ns.UNKNOWN,w)},Vt=(c,w)=>{c!==ns.UNKNOWN&&(xe(kt)&&!xe(an)&&Po("auto",{appliesTo:w,changeReason:"limit-changed"}),mi(c,w)),N.setPredefinedQualityLimits(c)},mi=(c,w)=>{Hc({type:c,videoId:i},w),w==="as-default"&&Hc({type:c,videoId:i},"to-video")},bo=c=>{ie.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),pe.features.saveRate&&le&&!N.info.isLive$.getValue()&&Th(c)},lo=()=>{let c=xe(or),w=c.findIndex(({selected:ce})=>ce);if(w===c.length-1)return;let R=c[w+1];bo(R.value)},Qo=()=>{let c=xe(or),w=c.findIndex(({selected:ce})=>ce);if(w===0)return;let R=c[w-1];bo(R.value)},to=(c=Dt(W({},Qi),{selected:!1}))=>{ie.log("set subtitles",W({},c)),c&&c.value!==Qi.value&&Et.next(c.isAuto?c.value+"_auto":c.value),Eo.set(c)},Go=()=>{ie.log("toggle subtitles");let c=xe(gn),w=xe(Eo),R=xe(Tt);if((w==null?void 0:w.value)===Qi.value){let ce=c.filter(He=>He.value!==Qi.value).find(He=>He.value===R)||c[1];to(ce)}else to()},Ao=ae(!0),Yi=c=>{Ao.set(c)},xi=(c,w,R=!0)=>{var ce;if(X({message:`seek to time, time: ${c}`}),ie.log("seek to time",{time:c,action:w,forcePrecise:R}),Lt.next(w),N.info.isLive$.getValue()){let He=N.info.duration$.getValue(),gt=Math.min(0,He+c);N.seekTime(gt,R)}else{if(I!=null&&I.getValue())return;N.info.isEnded$.getValue()&&(X({message:"seek after ended, call callbacks.onPlay"}),(ce=a==null?void 0:a.onPlay)==null||ce.call(a)),N.seekTime(ai(c),R)}},Yo=c=>{X({message:`seek to episode start time: ${c}`}),ie.log("seek to episode start time",{time:c}),xi(c,bs.EPISODE,!0)},dn=(c,w)=>{X({message:`seek to percent, percent: ${c}`}),ie.log("seek to percent",{percent:c,action:w});let R=xe(Uo)*c;xi(R,w,!1)},co=c=>{X({message:`seek external, time: ${c}`}),ie.log("seek external",{time:c}),Lt.next(bs.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},wr=c=>{var ce,He;let w=(ce=c.max)!=null?ce:"none",R=(He=c.min)!=null?He:"none";X({message:`set auto quality limitation. Max: ${w}. Min: ${R}`}),ie.log("set auto quality limits",{max:w,min:R}),N.setAutoQualityLimits(c)},Wr=c=>{X({message:`seek external to episode start time: ${c}`}),ie.log("seek external to episode start time",{time:c}),xi(c,bs.EPISODE,!0)},qr=c=>{X({message:`set playback rate to: ${c}`}),ie.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},hn=ae(void 0),Hn=ae(!1),ss=c=>{X({message:`start scrubbing, progress: ${c}`}),ie.log("start scrubbing",{progress:c}),Hn.set(!0),Sr(c)},Sr=c=>{hn.set(c)},jo,ji,Fn=()=>{hn.set(void 0),Hn.set(!1)},dr=()=>{clearTimeout(ji),clearTimeout(jo),jo=window.setTimeout(()=>{Fn()},500),Xe==null||Xe.removeEventListener("seeked",dr)},Kr=c=>{X({message:`complete scrubbing, progress: ${c}`}),ie.log("complete scrubbing",{progress:c}),dn(c,bs.SLIDER),xe(st.ui.isMobile)&&xe(st.state.currentFormat$)===Cd.HLS?(Xe==null||Xe.addEventListener("seeked",dr),ji=window.setTimeout(()=>{dr()},300)):Fn()},Qr=bi([At,Uo,hn],([c,w,R],ce)=>{ce(X2(R)?R*w:c)}),cr=ae(!1),as=()=>{cr.set(!0)},Se=()=>{cr.set(!1)},_e=ae({width:0,height:0}),ft=bi([_e],([{width:c}],w)=>{let R=s1(c);w(R)}),Mt=ae(!1),Ve=K.filter(c=>mh(c)),ut=bi([ft,Mt],([c,w])=>w?Ve.filter(R=>!R.hideOnMobile):Ve.filter(R=>{var ce;return!((ce=R.hideOnDesktopGridTypes)!=null&&ce.includes(c))})),Gt=ae(K.filter(c=>vh(c))),Ci=bi([Gt,ft],([c,w])=>c.filter(R=>{var ce;return!((ce=R.hideOnDesktopGridTypes)!=null&&ce.includes(w))})),io=bi([Ci,ut],([c,w])=>[...pe.features.additionalButtonsDesktopControlPanelRight?c.filter(R=>R.type==="desktop-control-panel-right"):[],...pe.features.additionalButtons?w.map((R,ce)=>{var He;return{id:ce,weight:ce,type:"desktop-control-panel-right",testId:R.testId,icon:R.iconUrl,onClick:R.onClick,ariaLabel:(He=R.ariaLabel)!=null?He:R.tooltip,tooltipText:R.tooltip}}):[]]),Zi=ae(z),Cr=bi([Zi],([c])=>pe.features.additionalSettingsMenuItems?c.map(w=>w.type==="SWITCH"?Dt(W({},w),{onClick:w.onChangeEnabled}):w):[]),Tr=(c,w)=>{let R=xe(Gt).map(ce=>ce.id!==c?ce:W(W({},ce),w));Gt.set(R)},oo=c=>{let w=xe(Gt);if(w.some(R=>R.id===c.id)){X({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),Gt.set(w)},Mi=c=>{let w=xe(Gt);if(!w.some(R=>R.id===c)){X({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}w=w.filter(R=>R.id!==c),Gt.set(w)},_n=c=>{Lt.next(bs.LIVE),X({message:"live switch to low latency "+c}),ie.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Un=(c,w)=>{let R=xe(Zi).map(ce=>ce.id!==c?ce:W(W({},ce),w));Zi.set(R)},Er=c=>{let w=xe(Zi);if(w.some(R=>R.id===c.id)){X({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),Zi.set(w)},$o=c=>{let w=xe(Zi);if(!w.some(R=>R.id===c)){X({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}w=w.filter(R=>R.id!==c),Zi.set(w)},ur=ae(U),Ws=bi([ur],([c])=>pe.features.additionalContextMenuItems?c:[]),xt=(c,w)=>{let R=xe(ur).map(ce=>ce.id!==c?ce:W(W({},ce),w));ur.set(R)},yt=c=>{let w=xe(ur);if(w.some(R=>R.id===c.id)){X({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),ur.set(w)},uo=c=>{let w=xe(ur);if(!w.some(R=>R.id===c)){X({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}w=w.filter(R=>R.id!==c),ur.set(w)},Zo=bi([Mt,si],([c,w],R)=>{R(c&&w)}),po=()=>{Lt.next(bs.LIVE),X({message:"switch to active live"}),ie.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==Sd.PLAYING&&st.actions.internal.togglePlay()},li=()=>{ie.log("skip adman"),te.skip()},Di=(c=!0)=>{Xn(st),X({message:`switch from ads to video, callPlay: ${c}`}),ie.log("switch from ads to video",{callPlay:c}),he.set("video"),c&&N.play(),l&&yr(!0)},ws=()=>{Xn(st),X({message:"switch from video to ads"}),ie.log("switch from video to ads"),st.actions.internal.pause(),pi(),he.set("ads")},_l=c=>{Xn(st);let w=c?"LiveWaitingStart":"thumb";ie.log("set live waiting start",{state:c,playerPhase:w}),he.set(w)},ec=c=>{Xn(st);let w=c?"LiveWaitingRecover":"thumb";ie.log("set live waiting recover",{state:c,playerPhase:w}),he.set(w)},Nu=c=>{Xn(st);let w=c?"LiveWaitingRecord":"thumb";ie.log("set live waiting record",{state:c,playerPhase:w}),he.set(w)},tc=()=>(Xn(st),ie.log("get debug text data"),uh(N,Qe,st,Re.getTraceId())),Bu=()=>(Xn(st),JSON.stringify(Re.getFinishedSpans())),ic=()=>(Xn(st),ph(N,Qe,st)),Aa=()=>Xe,oc=()=>{X({message:"toggle chromecast"}),ie.log("toggle chromecast"),N.toggleChromecast()},nc=c=>{var R;if(Xn(st),N.info.isEnded$.getValue())return;let w=!c;if(xe(st.playerPhase)==="ads"){X({message:`pause ads, internalCall: ${w}`}),ie.log("pause ads",{internalCall:w}),te.pause();return}X({message:`pause video, internalCall: ${w}`}),ie.log("pause video",{internalCall:w}),w&&((R=a==null?void 0:a.onPause)==null||R.call(a)),N.pause()},bl=c=>{var R;Xn(st);let w=!c;if(xe(st.playerPhase)==="ads"){X({message:`play ads, internalCall: ${w}`}),ie.log("play ads",{internalCall:w}),te.play();return}X({message:`play video, internalCall: ${w}`}),ie.log("play video",{internalCall:w}),w&&((R=a==null?void 0:a.onPlay)==null||R.call(a)),N.play()},Ou=c=>{Xn(st);let w=!c;if(xe(st.playerPhase)==="ads"){X({message:"player cannot be stopped during ads via external method"});return}X({message:`player will be stopped, internalCall: ${w}`}),k==null||k()},$l=(c,w)=>{Xn(st),X({message:`first start, show ads: ${c}, internalCall: ${!w}`}),ie.log("first start",{showAds:c,external:w}),c?he.set("ads"):(he.set("video"),w?N.play():st.actions.internal.togglePlay())},Ma=()=>(X({message:"getting time codes"}),f),yl=()=>{let c=Ma();if(!c||[0,1].includes(c.length))return;let w=N.info.position$.getValue();return c.find(R=>R.time>w)},Du=c=>{let w=c;w||(w=yl());let R=N.info.position$.getValue();ie.log("seek to next episode",W({currentTime:R},w)),w&&(X({message:"seek to next episode"}),xi(w.time,bs.EPISODE,!0))},xl=()=>{let c=Ma();if(!c||[0,1].includes(c.length))return;let w=N.info.position$.getValue(),R=c.findIndex(He=>He.time>w),ce=R===-1?c.length-2:R-2;if(!(ce<0))return c[ce]},Hu=c=>{let w=c;w||(w=xl());let R=N.info.position$.getValue();ie.log("seek to prev episode",W({currentTime:R},w)),w&&(X({message:"seek to prev episode"}),xi(w.time,bs.EPISODE,!0))},rc=()=>(X({message:"getting preview thumbs data"}),ie.log("get preview thumbs data",W({},v)),v),Fu=()=>wt(null,null,function*(){let c=de==null?void 0:de.isActive(),w="none";de!=null&&de.isActive()?(w="remove",yield de==null?void 0:de.remove()):(w="request",yield de==null?void 0:de.request()),ie.log("toggle picture in picture",{isActive:c,action:w})}),Uu=(c=-90)=>{ie.log("rotate video",{alphaDiff:c}),et.update(w=>w+c)},La=ae([]);T==null||T.subscribe(c=>{let w=[];for(let R=0;R<c.length;R++){let{range:[ce,He],subjects:gt}=c[R];R===0&&ce!==0&&w.push({time:0,text:"",interactive:!1,completed:!0}),w.push({time:ce/1e3,text:"",interactive:!0,completed:pe.features.interactiveTimeOpenUri?!gt.length||gt.every(Ut=>Ut.isRemoved):!gt.length}),He!==1/0&&w.push({time:He/1e3,text:"",interactive:!1,completed:!0})}La.set(w)});let je=ae(!1);I==null||I.subscribe(c=>{c&&xe(Hn)&&Fn()});let ai=c=>{if(!C)return c;let w=xe(La),R=xe(Uo),He=xe(go)/R,gt=w.find(Ut=>Ut.interactive&&!Ut.completed&&Ut.time>He);return typeof(gt==null?void 0:gt.time)=="number"?Math.min(c,gt.time-.05):c},Mo=()=>{st.ui.episodes.panelOpened$.set(!1)},qs=()=>{ie.log("destroy store"),clearTimeout(ji),clearTimeout(jo),Ee.unsubscribe(),ot.unsubscribe(),N.destroy(),te.destroy(),ue==null||ue.destroy(),Ke==null||Ke.destroy(),Yt.unsubscribe(),St==null||St.disconnect(),St=null,ne.destroy()},st={interfaceLanguage$:Tt,isCyrillicRelatedInterface$:oe,initVideo:me,videoId:i,isClip:o,playerPhase:J,vsid:Ge,state:{positionExact$:At,positionWithScrubbing$:Qr,duration$:Uo,playbackState$:ct,isPlaying$:To,isLoaderVisible:Fo,bufferedProgress$:On,isLive$:Kt,canChangePlaybackSpeed$:ui,isActiveLive$:vn,isOldestAvailableLive$:rn,isRewindableLive$:ao,isEnded$:G,muted$:fi,volume$:di,trafficSavingEnabled$:mt,highQualityEnabled$:it,autoQualityLimitingAvailable$:kt,availableVideoStreams$:hr,availableAudioStreams$:er,videoStream$:tr,audioStream$:ir,currentQuality$:Ln,isAutoQualityEnabled$:an,availableQualities$:Dr,currentPlaybackRate$:Vn,availablePlaybackRates$:or,currentSubtitle$:Eo,availableTextTracks$:lt,availableSubtitlesList$:gn,currentSubtitleCaptions$:Bn,isAutoSubtitleCaptionVisible$:ko,chromecastState$:Jn,chromecastDeviceName$:ki,chromecastConnected$:Or,currentFormat$:Co,throughputEstimation$:wi,videoBitrate$:$t,videoSize$:Bi,errorLog$:pt,crashed$:si,isAudioAvailable$:En,isAudioDisabled:!!l,canDownload:pe.features.download&&!!d,availableSources$:Dn,hasMpegSources$:nr,isInteractive:C,showInteractiveGraph:pe.features.interactiveGraph,showSeekToInteractive:pe.features.seekToInteractive,showPlayPrevChapter:pe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:pe.features.interactiveTimeIndicator&&!!xe(La).length,interactiveEpisodes$:La,isInteractiveTime$:I?ii(I):ae(!1),isInteractiveExpectation$:je,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:L,looped$:xr,loadedMetadata$:ae(!1),isAutoQualityAvailable$:zo},ui:{t:Nt,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:K.length?K.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:we},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:rt,isFullscreenOpenedByKeyboard:nt,rotateAlpha:et,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:_e,isMobile:Mt,mobileNotReportControlHidden$:Zo,mobileUnmuteButtonExpanded:ae(!1),mobileUnmuteButtonVisible:ae(!1),icon3DVideoVisible:ae(!1),scrubbingInProgress:Hn,volumeChangingInProgress:cr,is3DVideo:ae(!1),currentGridType$:ft,additionalButtonsDeprecated$:ut,additionalDesktopControlPanelRightButtons$:io,additionalSettingsMenuItems$:Cr,additionalContextMenuItems$:Ws,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},aboutToGoNextVideo:ae(void 0),userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1),vkLogo:ae(!1),pip:ae(!1),chromecast:ae(!1),settings:ae(!1)},isControlsAvailable:Ao,controlBlocks:{topLeft:ae(void 0),topRight:ae(void 0),middle:ae(void 0),bottom:ae(void 0),bottomLeft:ae(void 0),bottomRight:ae(void 0)},videoTitleInfo:ae(void 0)},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:de,annotationsApi:fe,slotsApi:ye},actions:{internal:{preload:yi,firstStart:c=>$l(c,!1),play:()=>bl(!1),pause:()=>nc(!1),togglePlay:_o,toggleMuted:Wo,openSettingsMenu:sr,closeSettingsMenu:Hr,openSettingsSubMenu:ln,closeSettingsSubMenu:$r,setVolume:ho,startVolumeChanging:as,stopVolumeChanging:Se,setVideoStream:kn,setAudioStream:rs,setQuality:Po,setTrafficSavingEnabled:Ko,setHighQualityEnabled:We,setPlaybackRate:bo,incrementPlaybackRate:lo,decrementPlaybackRate:Qo,setSubtitle:to,toggleSubtitle:Go,togglePictureInPicture:Fu,startScrubbing:ss,progressScrubbing:Sr,completeScrubbing:Kr,toggleChromecast:oc,switchToActiveLive:po,switchFromAdsToVideo:Di,switchFromVideoToAds:ws,skipAd:li,setLiveWaitingStart:_l,setLiveWaitingRecover:ec,setLiveWaitingRecord:Nu,getDebugTextData:tc,getTraceTextData:Bu,getDebugPanelData:ic,getVideoElement:Aa,seekTime:(c,w,R)=>xi(c,w,R),clearDelayedBufferingCheckTimeout:In,seekEpisodeStartTime:Yo,seekToPercent:dn,getNextEpisode:yl,seekToNextEpisode:Du,getPrevEpisode:xl,seekToPrevEpisode:Hu,startLogging:Ft,stopLogging:gi,startCameraManualRotation:Wi,stopCameraManualRotation:mo,moveCameraFocusPX:qi,holdCamera:jt,releaseCamera:vo,getVideoEpisodes:Ma,getPreviewThumbsData:rc,downloadVideo:rr,addLanguage:jp,setLanguage:Qt,nextMovie:Je,videoRotate:Uu,correctSeekTimeToInteractive:ai,replayInteractive:P,setLooped:qo,reportProblem:Ai,setAutoplayNextEnabled:Fr,setTimerNextVideoRunning:Ur,prevVideoClick:zr,nextVideoClick:ar,nextVideoAnnouncementShow:vt,nextVideoAnnouncementClick:Xt,nextVideoAnnouncementAuto:$i,nextVideoAnnouncementCancel:Gi},external:{firstStart:c=>$l(c,!0),play:()=>bl(!0),pause:()=>nc(!0),stop:()=>Ou(!0),seekTime:c=>co(c),seekEpisodeStartTime:c=>Wr(c),setPlaybackRate:c=>qr(c),setAutoQualityLimits:c=>wr(c),setMuted:yr,toggleSubtitle:Go,setVolume:ho,returnFocusToEpisodes:Mo,updateAdditionalSettingsItem:Un,addAdditionalSettingsItem:Er,removeAdditionalSettingsItem:$o,updateAdditionalContextItem:xt,addAdditionalContextItem:yt,removeAdditionalContextItem:uo,updateAdditionalButton:Tr,addAdditionalButton:oo,removeAdditionalButton:Mi,setLiveLowLatency:_n,hideControls:()=>Yi(!1),showControls:()=>Yi(!0)}},callbacks:a,setUiCallbacks:c=>{ke=W({},c)},getAdmanWrapper:()=>te,getLogger:()=>Ye,getPlayer:()=>N,destroy:qs};return st};function on(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),r=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:u}=_s(e[i],t||void 0);return{left:r?d:0,right:r?u:0,top:r?l:0,bottom:r?a:0,isDisplayed:r}}var dy=["disabledControls$","additionalButtons"],cy=["interactiveTimeIndicator"],pl=(t,e,i,o)=>{if(t){for(let[n,r]of Object.entries(e))if(!dy.includes(n)){let l=o||cy.includes(n);r.set(on(t,i,n,l))}}};var vu=(t,e,i)=>wt(null,null,function*(){yield xo(),e&&i&&(i.focus(),t.set(!1))});var uy=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Yf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=uy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}function jf(t,e){D(e,!0);let[i,o]=Oe(),n=()=>S(a,"$contextMenuVisible$",i),r=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ie(),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$,b=Z(void 0);qe(()=>{s(b)&&It(()=>{p.set(s(b))})});let x=I=>{let P=Bs(I),k=Xh(s(b));v.set(k),u.set(P),a.set(!n())},y=()=>{f.set(!0)},C=()=>{f.set(!1)},T=h(()=>n()?"opened":"");Ot(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return r()},get ariaLabel(){return l()},click:x,focus:y,blur:C,get ariaExpanded(){return n()},get ref(){return s(b)},set ref(I){B(b,I,!0)},children:(I,P)=>{Yf(I,{})},$$slots:{default:!0}}),H(),o()}var py=t=>{t.stopPropagation()},fy=M("<div><!> <div></div> <div></div></div>"),my={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
227
227
 
228
228
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
229
229
  }
@@ -248,8 +248,8 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=k_;var hs=new Map;hs.set(Vh.EN,Mh)
248
248
  opacity: 0;
249
249
  }
250
250
  }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
251
- animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Ed(t,e){var fe;D(e,!0),q(t,my);let[i,o]=Oe(),n=()=>C(S,"$isMobile",i),r=()=>C(I,"$areControlsVisible",i),l=()=>C(L,"$currentGridType$",i),d=()=>C(k,"$isInteractiveTime$",i),a=()=>C($,"$interactiveControlsOpacity$",i),u=()=>C(P,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),p=Z(void 0),y=Ie(),w=uo(),{interactiveControlsOpacity$:$}=w,S=y.ui.isMobile,T=y.ui.isFullscreen,k=y.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,I=y.ui.controlsVisible,E=(fe=y.callbacks)==null?void 0:fe.onInteractiveTimeIndicatorClick,L=y.ui.currentGridType$,K=h(()=>!n()&&r()),z=h(()=>Us(l(),"s")),U=h(()=>!d()||!!a()||s(K)),Y=Z(!1);We(()=>{B(Y,s(U),!0)});let se=()=>{B(Y,!0)},j=()=>{var $e;ue(),($e=s(p))==null||$e.addEventListener("animationiteration",se,{once:!0})},ue=()=>{var $e;B(Y,!1),($e=s(p))==null||$e.removeEventListener("animationiteration",se)},le=$e=>{P.set($e)},Me=h(()=>u()&&!s(U));We(()=>{u()?j():ue()});let Re=()=>{s(U)||(P.set(!0),E==null||E())};Tn(()=>{P.clearTimeout(),ue()});let ve=()=>{P.set(!1)},pe=F("tooltip_interactive_interaction_time_indicator");var Ve=fy();let ie;Ve.__mousemove=[py],Ve.__click=Re;var N=_(Ve);No(N,{get tooltipContent(){return pe},get tooltipActive(){return s(Me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return v()},set ref($e){v($e)},children:($e,X)=>{_d($e,{completed:!0})},$$slots:{default:!0}});var Ge=A(N,2);let te;ot(Ge,$e=>v($e),()=>v());var qe=A(Ge,2);let de;ot(qe,$e=>B(p,$e),()=>s(p)),g(Ve),O(($e,X,Ke)=>{ie=ee(Ve,1,"interactive-episode-icon-animated svelte-od3veb",null,ie,$e),te=ee(Ge,1,"ref-block svelte-od3veb",null,te,X),de=ee(qe,1,"pulse svelte-od3veb",null,de,Ke)},[()=>({mobile:n(),fullscreen:f(),invisible:s(U),"icon-small":s(z)}),()=>({hidden:s(U)}),()=>({paused:s(Y)})]),Ct("mouseleave",Ve,ve),b(t,Ve),H(),o()}lt(["mousemove","click"]);function gu(t,e){D(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),r=m(e,"ref",15);No(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return r()},set ref(l){r(l)},children:(l,d)=>{var a=Fe();let u=h(()=>e.buttonComponent);var f=ge(a);Ci(f,()=>s(u),(v,p)=>{p(v,gs(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(l,a)},$$slots:{default:!0}}),H()}var ys={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var gy=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function jf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=gy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}function zs(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),r=m(e,"height",3,"24"),l=h(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=h(()=>i()?"prev-icon":"next-icon");jf(t,{get style(){return s(l)},get width(){return n()},get height(){return r()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var hy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),_y=M("<!> <!>",1),by={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 wa(t,e){D(e,!0),q(t,by);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ie().ui.t,d=h(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=h(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=h(()=>`btn-${o()?"m":"d"}--${e.type}`);Bt(t,{get className(){return s(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return s(d)},get click(){return e.click},get ariaKeyShortCut(){return s(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=_y(),y=ge(p);{var w=T=>{var k=hy();b(T,k)};V(y,T=>{o()&&T(w)})}var $=A(y,2);let S=h(()=>e.type==="prev");zs($,{get isMobile(){return o()},get isPrev(){return s(S)}}),b(f,p)},$$slots:{default:!0}}),H()}var $y=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function Id(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=$y();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}import{noop as yy}from"@vkontakte/videoplayer-shared/es2015";var xy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),wy=M("<!> <div><!></div>",1),Cy={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 pl(t,e){D(e,!0),q(t,Cy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),r=m(e,"className",3,""),l=m(e,"click",3,yy),d=F("tooltip_restart"),a=h(()=>`${o()?"btn-m--play":""} ${r()}`);Bt(t,{get className(){return s(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return is.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=wy(),p=ge(v);{var y=T=>{var k=xy();b(T,k)};V(p,T=>{o()&&T(y)})}var w=A(p,2);let $;var S=_(w);Id(S,{}),g(w),O(T=>$=ee(w,1,"svelte-1ot3duq",null,$,T),[()=>({mobile:o()})]),b(u,v)},$$slots:{default:!0}}),H()}var Sy=Se('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Or(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=Sy(),d=_(l);g(l),O(()=>{Be(l,"width",i()),Be(l,"height",o()),Be(l,"viewBox",n()),Be(d,"fill",r())}),b(t,l)}var Ty=Se('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function xs(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=Ty(),d=_(l);g(l),O(()=>{Be(l,"width",i()),Be(l,"height",o()),Be(l,"viewBox",n()),Be(d,"fill",r())}),b(t,l)}import{noop as Ey}from"@vkontakte/videoplayer-shared/es2015";var Iy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ky=M("<!> <div><!></div>",1),Py={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 fl(t,e){D(e,!0),q(t,Py);let[i,o]=Oe(),n=()=>C(r,"$fakeIsPlaying$",i),{fakeIsPlaying$:r}=uo(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),u=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,Ey),y=Ie().ui.t,{toggle:w}=r,$=h(()=>w),S=h(()=>n()!==null),T=h(()=>s(S)?n():a()),k=h(()=>s(T)?y("tooltip_pause"):y("tooltip_play")),P=h(()=>s(T)?xs:Or),I=h(()=>`${d()?"btn-m--play":""} ${f()}`),E=h(()=>s(S)?s($):v());Bt(t,{get className(){return s(I)},testId:"btn-play",get click(){return s(E)},get disabled(){return u()},get ariaLabel(){return s(k)},get ariaKeyShortCut(){return is.KeyK},get ref(){return l()},set ref(L){l(L)},children:(L,K)=>{var z=ky();let U=h(()=>s(P));var Y=ge(z);{var se=Me=>{var Re=Iy();b(Me,Re)};V(Y,Me=>{d()&&Me(se)})}var j=A(Y,2);let ue;var le=_(j);Ci(le,()=>s(U),(Me,Re)=>{Re(Me,{})}),g(j),O(Me=>ue=ee(j,1,"svelte-1ot3duq",null,ue,Me),[()=>({mobile:d()})]),b(L,z)},$$slots:{default:!0}}),H(),o()}var Ay=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Zf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}function kd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_go_back"),l=h(()=>o()?"hidden":"");Bt(t,{get className(){return s(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Zf(d,{})},$$slots:{default:!0}}),H()}var My=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Ly={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 Pd(t,e){D(e,!0),q(t,Ly);let[i,o]=Oe(),n=()=>C(a,"$autoplayNextEnabled$",i),r=m(e,"ref",15,void 0),l=Ie(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!n(),!0)},v=d("aria_label_autoplay"),p=h(()=>n()?"true":"false");Bt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return s(p)},get ref(){return r()},set ref(y){r(y)},children:(y,w)=>{var $=My(),S=_($);let T;var k=_(S);{var P=E=>{Or(E,{width:"14",height:"14",fill:"#000"})},I=E=>{xs(E,{width:"14",height:"14",fill:"#000"})};V(k,E=>{n()?E(P):E(I,!1)})}g(S),g($),O(E=>T=ee(S,1,"toggler svelte-et3q1q",null,T,E),[()=>({enabled:n()})]),b(y,$)},$$slots:{default:!0}}),H(),o()}var Vy=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Xf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}function Ad(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_seek"),l=h(()=>o()?"hidden":"");Bt(t,{get className(){return s(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Xf(d,{})},$$slots:{default:!0}}),H()}var Ry=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Jf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}var Ny={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function em(t,e){q(t,Ny);let i=m(e,"isOpened",3,!1),o=h(()=>i()?"graph-close-icon":"graph-open-icon");Jf(t,{get"data-testid"(){return s(o)}})}function Md(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=m(e,"graphIsOpened",3,!1),d=Ie().ui.t,a=h(()=>r()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=h(()=>o()?"hidden":"");Bt(t,{get className(){return s(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=h(()=>!!r());em(f,{get isOpened(){return s(p)}})},$$slots:{default:!0}}),H()}import{PlaybackState as _1}from"@vkontakte/videoplayer-core/es2015";function Ld(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C(u,"$playbackState$",i),r=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ie(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=h(()=>()=>{if(!l()){f();return}n()===_1.PAUSED&&v()}),y=h(()=>r()?"":"btn--live btn-full-opacity"),w=h(()=>l()?"btn-live":"btn-live-offset"),$=h(()=>l()&&n()===_1.PLAYING);Bt(t,{get className(){return s(y)},get testId(){return s(w)},get disabled(){return s($)},get ariaLabel(){return d()},get click(){return s(p)},children:(S,T)=>{od(S,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}import{noop as b1}from"@vkontakte/videoplayer-shared/es2015";var By=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Oy=M('<img class="icon" aria-hidden="true"/>');function Ca(t,e){"use strict";let i=Z(!1),o=()=>{B(i,!0)};var n=Fe(),r=ge(n);{var l=a=>{var u=By();b(a,u)},d=a=>{var u=Oy();O(()=>Be(u,"src",e.icon)),Ct("error",u,o),na(u),b(a,u)};V(r,a=>{s(i)?a(l):a(d,!1)})}b(t,n)}function tm(t,e){D(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,b1),n=m(e,"ref",15),r=h(()=>o()===b1),l=h(()=>s(r)||i()),d=h(()=>s(r)?"btn-full-opacity":"");No(t,{get disabled(){return s(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(a){n(a)},children:(a,u)=>{let f=h(()=>{var v;return(v=e.testId)!=null?v:e.id});Bt(a,{get className(){return s(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(l)},get testId(){return s(f)},children:(v,p)=>{Ca(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var $1=t=>!!t.buttonComponent;var ws={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var hu=(t,e,i,o)=>{if(t)for(let[n,r]of Object.entries(e))r.set(Br(t,i,n,o))};var Fy=M('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),Uy={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function om(t,e){var mr,Ks;D(e,!0),q(t,Uy);let[i,o]=Oe(),n=()=>C(G,"$disabledControls$",i),r=()=>C(qi,"$adPlaybackState",i),l=()=>C(Tt,"$playbackState$",i),d=()=>C(gi,"$currentSubtitle$",i),a=()=>C(Mi,"$isEnded$",i),u=()=>C(Vi,"$currentGridType$",i),f=()=>C(pi,"$isLive$",i),v=()=>C(Pt,"$chromecastState$",i),p=()=>C(vi,"$isPictureInPictureActive",i),y=()=>C(zi,"$pictureInPictureType$",i),w=()=>C(dt,"$availableSubtitlesList$",i),$=()=>C(Li,"$contextMenuOpenedByKeyboard$",i),S=()=>C(ui,"$showContextMenuBtn$",i),T=()=>C(ir,"$playerSize",i),k=()=>C(Ht,"$isRewindableLive$",i),P=()=>C(it,"$isActiveLive$",i),I=()=>C(mo,"$graphIsOpened$",i),E=()=>C(Kt,"$contextMenuVisible$",i),L=()=>C(ii,"$isFullscreen",i),K=()=>C(xi,"$autoplayNextEnabled",i),z=()=>C(s(Eo),"$prevButton",i),U=()=>C(s(cr),"$replayButton",i),Y=()=>C(s(Cr),"$playButton",i),se=()=>C(s(Ei),"$nextButton",i),j=()=>C(s(as),"$playPrevChapterButton",i),ue=()=>C(s(zr),"$seekToInteractiveButton",i),le=()=>C(s(Sr),"$interactiveGraphButton",i),Me=()=>C(s(ht),"$liveButton",i),Re=()=>C(s(ai),"$time",i),ve=()=>C(s(zo),"$episodes",i),pe=()=>C(s(Wo),"$vkLogo",i),Ve=()=>C(s(Qi),"$volume",i),ie=()=>C(s(Un),"$subtitles",i),N=()=>C(s(sn),"$settings",i),Ge=()=>C(s(ur),"$context",i),te=()=>C(s(Gi),"$fullscreen",i),qe=()=>C(s(an),"$chromecast",i),de=()=>C(Bo,"$additionalDesktopControlPanelRightButtons$",i),fe=()=>C(Ti,"$isInteractiveTime$",i),$e=()=>C(po,"$settingsMenuVisible",i),X=()=>C(Ji,"$settingButtonRef$",i),Ke=()=>C(di,"$startedByKeyboard$",i),Xe=()=>C(xt,"$isAudioAvailable$",i),ke=()=>C(St,"$fakeIsPlaying$",i),ne=()=>C(tn,"$seekToInteractiveDisabledTooltip$",i),Ee=()=>C(It,"$adPosition",i),Qe=()=>C(Mt,"$position$",i),rt=()=>C(tt,"$adDuration",i),nt=()=>C(Ue,"$duration$",i),Lt=m(e,"playerControlsWrapperRef",15,void 0),et=m(e,"playerControlsRef",15,void 0),ct=m(e,"isAds",3,!1),Gt=m(e,"logoTargetUrl",3,""),si=m(e,"isOneVideoPlaylist",3,!1),Qt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:St}=uo(),oe=Ie(),Vt=uo(),he=zt(),J=oe.actions.internal.toggleMuted,we=oe.actions.internal.togglePlay,He=oe.actions.internal.pause,me=oe.actions.internal.toggleSubtitle,Ne=(mr=oe.callbacks)==null?void 0:mr.onAudioDoesNotExistHint,Je=(Ks=oe.callbacks)==null?void 0:Ks.onAudioDisabledHint,Ue=oe.state.duration$,Mt=oe.state.positionWithScrubbing$,Tt=oe.state.playbackState$,xt=oe.state.isAudioAvailable$,ft=oe.state.isAudioDisabled,Mi=oe.state.isEnded$,pi=oe.state.isLive$,it=oe.state.isActiveLive$,Ht=oe.state.isRewindableLive$,{isActive$:vi,type$:zi}=Vt.pictureInPicture$,po=oe.ui.settingsMenu.visible$,Wi=oe.ui.settingsMenu.openedByBtnKeyboard$,Yt=oe.ui.controls,fo=oe.actions.internal.getVideoEpisodes(),Pt=oe.state.chromecastState$,dt=oe.state.availableSubtitlesList$,gi=oe.state.currentSubtitle$,G=Yt.disabledControls$,Kt=oe.ui.contextMenu.visible$,ui=oe.ui.contextMenu.showContextMenuBtn$,Li=oe.ui.contextMenu.openedByBtnKeyboard$,di=oe.ui.startedByKeyboard$,fi=oe.ui.controlBlocks,ut=oe.ui.t,tt=oe.ads.duration,It=oe.ads.position,qi=oe.ads.playbackState,ii=oe.ui.isFullscreen,ir=oe.ui.playerSize,Vi=oe.ui.currentGridType$,Bo=oe.ui.additionalDesktopControlPanelRightButtons$,xi=oe.ui.autoplayNextEnabled$,gt=oe.actions.internal.getVideoElement,Ri=oe.actions.internal.replayInteractive,Oo=oe.actions.internal.prevVideoClick,kn=oe.actions.internal.nextVideoClick,ci=oe.state.isInteractive,Ti=oe.state.isInteractiveTime$,Do=oe.state.showInteractiveGraph,Pn=oe.state.showSeekToInteractive,Ho=oe.state.showPlayPrevChapter,xo=oe.state.showInteractiveTimeIndicator,gn=oe.state.playPrevChapterDisabledTooltip,tn=Vt.seekToInteractiveDisabledTooltip$,mo=Vt.graphIsOpened$,wo=he.features.interactiveResponsiveUi,Hr=h(()=>n().has("EPISODE_BUTTON")),$r=h(()=>n().has("GRAPH_BUTTON")),or=h(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),nr=h(()=>n().has("PLAY_BUTTON")),rr=h(()=>n().has("REPLAY_BUTTON")),An=h(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),ss=()=>oe.actions.internal.toggleChromecast(),Mn=h(()=>ct()?r()==="playing":l()===im.PLAYING),Ni=h(()=>d().value!=="off"),Ln=h(()=>a()&&!ct()||ci),on=h(()=>wo?s(Ln)&&Zi(u(),"m"):s(Ln)),nn=h(()=>!a()||ci||ct()),Vn=h(()=>Zi(u(),"m")),Rn=h(()=>e.showNextPrevButtons&&Zi(u(),"m")&&!ct()&&e.nextButtonActive),Fo=h(()=>e.showNextPrevButtons&&Zi(u(),"m")&&!ct()&&e.prevButtonActive),Fr=h(()=>!ct()&&!!f()),Nn=h(()=>v()!==y1.NOT_AVAILABLE&&!(p()&&y()===1)&&Zi(u(),"m")&&!ci),sr=h(()=>e.showAutoplayNext&&!si()&&Zi(u(),"s")),Ki=h(()=>w().length>0&&Zi(u(),"m")),Co=h(()=>$()||S()),at=h(()=>Zi(u(),"s")&&!ct()),Jt=h(()=>!e.logoHidden&&!ct()),yr=h(()=>he.features.fullscreen&&(e.logoHidden||Zi(u(),wo?"xs":"s"))&&!(p()&&y()===1)&&(ci?Qt():!0)),Bn=h(()=>(!f()||ct())&&!(he.features.interactiveHideTime&&ci)),hn=h(()=>T().width>100),Bi=h(()=>Do&&Zi(u(),"m")),On=h(()=>wo?Pn&&Zi(u(),"s"):Pn),So=h(()=>wo?Ho&&Zi(u(),"s"):Ho),Dn=h(()=>!ct()&&!f()&&!!(fo!=null&&fo.length)&&s(Vn)&&!s(Hr)),To=h(()=>!k()||!!P()),Hn=h(()=>I()?ut("tooltip_interactive_graph_on"):ut("tooltip_interactive_graph_off")),Fn=h(()=>E()?ut("tooltip_context_menu_close"):ut("tooltip_context_menu_open")),ar=(bt,_t)=>bt?_t&&_t===im.PAUSED?ut("tooltip_play"):"":ut("tooltip_live"),xr=h(()=>ar(s(To),l())),lr=h(()=>he.logoType==="vk_video"?ut("tooltip_vk_video_logo"):ut("tooltip_vk_logo")),Uo=h(()=>s(Ni)?ut("tooltip_subtitles_on"):ut("tooltip_subtitles_off")),Ur=h(()=>L()?ut("tooltip_fullscreen_on"):ut("tooltip_fullscreen_off")),dr=h(()=>v()===y1.CONNECTED?ut("tooltip_chromecast_on"):ut("tooltip_chromecast_off")),wr=h(()=>K()?ut("tooltip_autoplay_on"):ut("tooltip_autoplay_off")),rn=Z(0),jt=ri({}),vo=ri({}),Eo=h(()=>Yt.prevButton),cr=h(()=>Yt.replayButton),Cr=h(()=>Yt.playButton),Ei=h(()=>Yt.nextButton),as=h(()=>Yt.playPrevChapterButton),zr=h(()=>Yt.seekToInteractiveButton),Sr=h(()=>Yt.interactiveGraphButton),ht=h(()=>Yt.liveButton),ai=h(()=>Yt.time),zo=h(()=>Yt.episodes),Wo=h(()=>Yt.vkLogo),Qi=h(()=>Yt.volume),Un=h(()=>Yt.subtitles),sn=h(()=>Yt.settings),ur=h(()=>Yt.context),Gi=h(()=>Yt.fullscreen),an=h(()=>Yt.chromecast),je=h(()=>({prevButton:z()?z().right-z().left:0,replayButton:U()?U().right-U().left:0,playButton:Y()?Y().right-Y().left:0,nextButton:se()?se().right-se().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:ue()?ue().right-ue().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Me()?Me().right-Me().left:0,time:Re()?Re().right-Re().left:0,episodes:ve()?ve().right-ve().left:0,vkLogo:pe()?pe().right-pe().left:0,volume:Ve()?Ve().right-Ve().left:0,subtitles:ie()?ie().right-ie().left:0,settings:N()?N().right-N().left:0,context:Ge()?Ge().right-Ge().left:0,fullscreen:te()?te().right-te().left:0,chromecast:qe()?qe().right-qe().left:0,additionalButtons:de().length?de().reduce(bt=>[...bt,40],[]):[]})),Rt=Z(0);We(()=>{(!s(Rt)||s(Rt)<s(je).time)&&Et(()=>B(Rt,s(je).time,!0))});let bi=Z(!1);We(()=>{let bt=0;s(Dn)&&(Zi(u(),"xl")?bt=s(je).time:bt=60);let _t=s(je).prevButton+s(je).playButton+s(je).nextButton+s(je).seekToInteractiveButton+s(je).interactiveGraphButton+s(je).liveButton+s(Rt)+bt;B(bi,s(Bn)&&s(rn)>=_t,!0)});let go=h(()=>s(bi)&&Zi(u(),"m")),no=x1(ul,260),qo=x1(hu,260);We(()=>{T(),fe(),no(gt(),Yt,jt,e.showControls),qo(gt(),fi,vo,e.showControls)}),We(()=>{vo.bottom=Lt()});let Ji=ae();We(()=>{$e(),X()&&Et(()=>rl(X(),$e(),Wi))});let Ko;We(()=>{Ke(),Et(()=>vu(di,Ke(),Ko))});function Io(){Hs({isAudioDisabled:ft,isAudioAvailable:Xe(),isAds:ct(),audioIsNotExistHintCallback:Ne,audioDisabledHintCallback:Je})&&J()}let Yi=ci?Ri:we,$i=h(()=>ke()!==null),Qo=h(()=>s($i)?ke():s(Mn)),ln=h(()=>s(Qo)?ut("tooltip_pause"):ut("tooltip_play")),ro=ut("tooltip_episodes"),Tr=h(()=>{var bt,_t,lo,Yo;return s(Fo)?{id:"prevButton",type:"desktop-control-panel-left",weight:ys.prevButton,buttonComponent:wa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Oo.bind(null,!0)},tooltipEnabled:!((_t=(bt=oe.callbacks)==null?void 0:bt.uiInfo)!=null&&_t.onPrevButtonMouseEnter)&&!((Yo=(lo=oe.callbacks)==null?void 0:lo.uiInfo)!=null&&Yo.onPrevButtonMouseLeave),mouseEnter:()=>{var co,li,Oi;(Oi=(li=(co=oe.callbacks)==null?void 0:co.uiInfo)==null?void 0:li.onPrevButtonMouseEnter)==null||Oi.call(li,Br(gt(),jt,"prevButton",e.showControls))},mouseLeave:()=>{var co,li,Oi;(Oi=(li=(co=oe.callbacks)==null?void 0:co.uiInfo)==null?void 0:li.onPrevButtonMouseLeave)==null||Oi.call(li,Br(gt(),jt,"prevButton",e.showControls))},tooltipText:ut("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Wr=h(()=>s(on)?{id:"replayButton",type:"desktop-control-panel-left",weight:ys.replayButton,buttonComponent:pl,buttonComponentProps:{disabled:s(rr),click:Yi},tooltipText:ut("tooltip_restart"),disabled:s(rr)}:void 0),qr=h(()=>s(nn)?{id:"playButton",type:"desktop-control-panel-left",weight:ys.playButton,buttonComponent:fl,buttonComponentProps:{disabled:s(nr),isPlaying:s(Mn),click:we},tooltipText:s(ln),disabled:s(nr)}:void 0),_n=h(()=>{var bt,_t,lo,Yo;return s(Rn)?{id:"nextButton",type:"desktop-control-panel-left",weight:ys.nextButton,buttonComponent:wa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:kn.bind(null,!0)},tooltipEnabled:!((_t=(bt=oe.callbacks)==null?void 0:bt.uiInfo)!=null&&_t.onNextButtonMouseEnter)&&!((Yo=(lo=oe.callbacks)==null?void 0:lo.uiInfo)!=null&&Yo.onNextButtonMouseLeave),mouseEnter:()=>{var co,li,Oi;(Oi=(li=(co=oe.callbacks)==null?void 0:co.uiInfo)==null?void 0:li.onNextButtonMouseEnter)==null||Oi.call(li,Br(gt(),jt,"nextButton",e.showControls))},mouseLeave:()=>{var co,li,Oi;(Oi=(li=(co=oe.callbacks)==null?void 0:co.uiInfo)==null?void 0:li.onNextButtonMouseLeave)==null||Oi.call(li,Br(gt(),jt,"nextButton",e.showControls))},tooltipText:ut("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),zn=h(()=>ci&&s(So)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ys.playPrevChapterButton,buttonComponent:kd,buttonComponentProps:{disabled:s(An),click:e.playPrevChapter},tooltipText:ut("tooltip_interactive_go_back"),disabledTooltipContent:ut(gn),disabled:s(An)}:void 0),Kr=h(()=>ci&&s(On)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ys.seekToInteractiveButton,buttonComponent:Ad,buttonComponentProps:{disabled:s(or),click:e.seekToInteractive},tooltipText:ut("tooltip_interactive_seek"),disabled:s(or),disabledTooltipContent:ut(ne())}:void 0),so=h(()=>ci&&s(Bi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ys.interactiveGraphButton,buttonComponent:Md,buttonComponentProps:{disabled:s($r),click:mo.toggle,graphIsOpened:I()},tooltipText:s(Hn)}:void 0),Go=h(()=>s(Fr)?{id:"liveButton",type:"desktop-control-panel-left",weight:ys.liveButton,buttonComponent:Ld,buttonComponentProps:{isLiveActive:s(To),ariaLabel:s(xr)},tooltipText:s(xr),disabled:s(To)&&l()===im.PLAYING}:void 0),Wn=h(()=>[s(Tr),s(Wr),s(qr),s(_n),s(zn),s(Kr),s(so),s(Go)].filter(bt=>!!bt).sort(va)),pr=h(()=>s(Jt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ws.vkLogo,buttonComponent:$d,buttonComponentProps:{targetUrl:Gt(),logoClickable:e.logoClickable,click:He},tooltipText:s(lr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),fr=h(()=>s(sr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ws.autoplayNext,buttonComponent:Pd,tooltipText:s(wr)}:void 0),Qr=h(()=>({id:"volume",type:"desktop-control-panel-right",weight:ws.volume,buttonComponent:Pf,buttonComponentProps:{click:Io,isAds:ct()}})),ls=h(()=>s(Ki)?{id:"subtitles",type:"desktop-control-panel-right",weight:ws.subtitles,buttonComponent:Sf,buttonComponentProps:{isSubtitlesEnabled:s(Ni),click:me},tooltipText:s(Uo)}:void 0),Te=h(()=>s(at)?{id:"settings",type:"desktop-control-panel-right",weight:ws.settings,buttonComponent:dl,buttonComponentProps:{ref$:Ji},tooltipText:$e()?void 0:ut("tooltip_settings_off")}:void 0),xe=h(()=>he.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ws.context,buttonComponent:Yf,buttonComponentProps:{ariaLabel:ut("aria_label_context_menu")},className:s(Co)?"":"out-of-view",tooltipText:s(Fn)}:void 0),$t=h(()=>s(yr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ws.fullscreen,buttonComponent:bd,buttonComponentProps:{isFullscreen:L(),click:e.toggleFullscreen},tooltipText:s(Ur)}:void 0),Wt=h(()=>s(Nn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ws.chromecast,buttonComponent:yd,buttonComponentProps:{state:v(),click:ss},tooltipText:s(dr)}:void 0),Ii=h(()=>[s(pr),s(fr),s(Qr),s(ls),s(Te),s(xe),s($t),s(Wt),...de()].filter(bt=>!!bt).sort(va));var yi=Fy(),ze=ge(yi);let wt;var oi=_(ze);let dn=h(()=>!s(hn));ya(oi,{get isHidden(){return s(dn)},get isAds(){return ct()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return k()},get ref(){return jt.timeline},set ref(bt){jt.timeline=bt}});var bn=A(oi,2),ao=_(bn),Gr=_(ao);wi(Gr,17,()=>s(Wn),bt=>bt.id,(bt,_t)=>{gu(bt,{get buttonComponent(){return s(_t).buttonComponent},get buttonComponentProps(){return s(_t).buttonComponentProps},get tooltipText(){return s(_t).tooltipText},get disabledTooltipContent(){return s(_t).disabledTooltipContent},get disabled(){return s(_t).disabled},get className(){return s(_t).className},get tooltipEnabled(){return s(_t).tooltipEnabled},get mouseEnter(){return s(_t).mouseEnter},get mouseLeave(){return s(_t).mouseLeave},get ref(){return jt[s(_t).id]},set ref(lo){jt[s(_t).id]=lo}})});var Er=A(Gr,2);{var eo=bt=>{let _t=h(()=>ct()?Ee():Qe()),lo=h(()=>ct()?rt():nt());hd(bt,{isMobile:!1,get showDuration(){return s(go)},get position(){return s(_t)},get duration(){return s(lo)},get ref(){return jt.time},set ref(Yo){jt.time=Yo}})};V(Er,bt=>{s(Bn)&&bt(eo)})}var ki=A(Er,2);let $n=h(()=>!s(Dn));No(ki,{className:"w-max",get disabled(){return s($n)},get tooltipContent(){return ro},get ref(){return jt.episodes},set ref(bt){jt.episodes=bt},children:(bt,_t)=>{var lo=Fe(),Yo=ge(lo);{var co=li=>{wd(li,{get position(){return Qe()},get duration(){return nt()},get timeCodes(){return fo}})};V(Yo,li=>{s(Dn)&&li(co)})}b(bt,lo)},$$slots:{default:!0}}),g(ao);var qn=A(ao,2);wi(qn,21,()=>s(Ii),bt=>bt.id,(bt,_t)=>{var lo=Fe(),Yo=ge(lo);{var co=Oi=>{gu(Oi,{get buttonComponent(){return s(_t).buttonComponent},get buttonComponentProps(){return s(_t).buttonComponentProps},get tooltipText(){return s(_t).tooltipText},get disabledTooltipContent(){return s(_t).disabledTooltipContent},get disabled(){return s(_t).disabled},get className(){return s(_t).className},get ref(){return jt[s(_t).id]},set ref(Cs){jt[s(_t).id]=Cs}})},li=Oi=>{let Cs=h(()=>!!s(_t).disabled);tm(Oi,{get id(){return s(_t).id},get testId(){return s(_t).testId},get icon(){return s(_t).icon},get ariaLabel(){return s(_t).ariaLabel},get tooltipText(){return s(_t).tooltipText},get disabledTooltipContent(){return s(_t).disabledTooltipContent},get disabled(){return s(Cs)},get onClick(){return s(_t).onClick},get ref(){return jt[s(_t).id]},set ref(hl){jt[s(_t).id]=hl}})};V(Yo,Oi=>{$1(s(_t))?Oi(co):Oi(li,!1)})}b(bt,lo)}),g(qn),g(bn),ot(bn,bt=>et(bt),()=>et()),g(ze),ot(ze,bt=>Lt(bt),()=>Lt());var Ir=A(ze,2);{var ho=bt=>{Ed(bt,{get ref(){return jt.interactiveTimeIndicator},set ref(_t){jt.interactiveTimeIndicator=_t}})};V(Ir,bt=>{xo&&bt(ho)})}O(bt=>wt=ee(ze,1,"wrapper-bottom svelte-f6e8ix",null,wt,bt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),ts(ao,"clientWidth",bt=>B(rn,bt)),b(t,yi),H(),o()}import{ChromecastState as C1,PlaybackState as S1}from"@vkontakte/videoplayer-core/es2015";import{noop as w1}from"@vkontakte/videoplayer-shared/es2015";var zy=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Wy=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),qy={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function nm(t,e){q(t,qy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,w1),n=h(()=>o()===w1),r=h(()=>s(n)||i()),l=Z(!1),d=()=>{B(l,!0)},a=h(()=>s(n)?"btn-full-opacity":"");Bt(t,{get className(){return s(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(r)},get testId(){return e.testId},children:(u,f)=>{var v=Fe(),p=ge(v);{var y=$=>{var S=zy();b($,S)},w=$=>{var S=Wy();O(()=>Be(S,"src",e.iconUrl)),Ct("error",S,d),na(S),b($,S)};V(p,$=>{s(l)?$(y):$(w,!1)})}b(u,v)},$$slots:{default:!0}})}var Ky=Se('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function rm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Ky();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}import{noop as Qy}from"@vkontakte/videoplayer-shared/es2015";var Gy=M('<span class="text svelte-6gmlbk"> </span>'),Yy=M('<div aria-hidden="true"><!> <!></div>'),jy={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function _u(t,e){D(e,!0),q(t,jy);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,Qy),r=m(e,"ref",15,void 0),d=Ie().ui.t,a=h(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=h(()=>o()?Fs:rm),f=h(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Bt(t,{get testId(){return s(f)},get click(){return n()},get ariaLabel(){return s(a)},role:"button",get ref(){return r()},set ref(v){r(v)},children:(v,p)=>{var y=Yy();let w=h(()=>s(u)),$;var S=_(y);Ci(S,()=>s(w),(P,I)=>{I(P,{})});var T=A(S,2);{var k=P=>{var I=Gy(),E=_(I,!0);g(I),O(L=>_e(E,L),[()=>d("mobile_unmute")]),b(P,I)};V(T,P=>{o()&&P(k)})}g(y),O(P=>$=ee(y,1,"container svelte-6gmlbk",null,$,P),[()=>({expanded:o()})]),b(v,y)},$$slots:{default:!0}}),H()}var Zy=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function sm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(3),g(o),b(t,o)}var Xy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function am(t,e){q(t,Xy);let i=m(e,"isActive",3,!1),o=h(()=>i()?"color: #2688EB;":"color: #fff;"),n=h(()=>i()?"pip-icon--active":"pip-icon");sm(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}import{noop as Jy}from"@vkontakte/videoplayer-shared/es2015";function lm(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,Jy),r=F("menu_pip");Bt(t,{testId:"btn-pip",get ariaLabel(){return r},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{am(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}import{debounceFn as T1}from"@vkontakte/videoplayer-shared/es2015";var e4=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},t4=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},i4=M("<div><!></div>"),o4=M("<div><!></div>"),n4=M("<div><!></div>"),r4=M("<!> <!> <!>",1),s4=M("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),a4=M("<div><!></div>"),l4=M('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),d4=M("<!> <!> <div><!></div>",1),c4=M('<div aria-hidden="true">\xB7</div> <!>',1),u4=M('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!></div></div> <!></div></div> <!>',1),p4={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-9xcbwc {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
251
+ animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Ed(t,e){var fe;D(e,!0),q(t,my);let[i,o]=Oe(),n=()=>S(C,"$isMobile",i),r=()=>S(k,"$areControlsVisible",i),l=()=>S(L,"$currentGridType$",i),d=()=>S(I,"$isInteractiveTime$",i),a=()=>S(y,"$interactiveControlsOpacity$",i),u=()=>S(P,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),p=Z(void 0),b=Ie(),x=fo(),{interactiveControlsOpacity$:y}=x,C=b.ui.isMobile,T=b.ui.isFullscreen,I=b.state.isInteractiveTime$,P=x.showInteractiveTimeIndicatorTooltip$,k=b.ui.controlsVisible,E=(fe=b.callbacks)==null?void 0:fe.onInteractiveTimeIndicatorClick,L=b.ui.currentGridType$,K=h(()=>!n()&&r()),z=h(()=>Hs(l(),"s")),U=h(()=>!d()||!!a()||s(K)),Y=Z(!1);qe(()=>{B(Y,s(U),!0)});let se=()=>{B(Y,!0)},j=()=>{var ye;ue(),(ye=s(p))==null||ye.addEventListener("animationiteration",se,{once:!0})},ue=()=>{var ye;B(Y,!1),(ye=s(p))==null||ye.removeEventListener("animationiteration",se)},le=ye=>{P.set(ye)},Me=h(()=>u()&&!s(U));qe(()=>{u()?j():ue()});let Ne=()=>{s(U)||(P.set(!0),E==null||E())};Sn(()=>{P.clearTimeout(),ue()});let ve=()=>{P.set(!1)},pe=F("tooltip_interactive_interaction_time_indicator");var Re=fy();let ie;Re.__mousemove=[py],Re.__click=Ne;var N=_(Re);Do(N,{get tooltipContent(){return pe},get tooltipActive(){return s(Me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return v()},set ref(ye){v(ye)},children:(ye,X)=>{_d(ye,{completed:!0})},$$slots:{default:!0}});var Ye=A(N,2);let te;tt(Ye,ye=>v(ye),()=>v());var Ke=A(Ye,2);let de;tt(Ke,ye=>B(p,ye),()=>s(p)),g(Re),O((ye,X,Qe)=>{ie=ee(Re,1,"interactive-episode-icon-animated svelte-od3veb",null,ie,ye),te=ee(Ye,1,"ref-block svelte-od3veb",null,te,X),de=ee(Ke,1,"pulse svelte-od3veb",null,de,Qe)},[()=>({mobile:n(),fullscreen:f(),invisible:s(U),"icon-small":s(z)}),()=>({hidden:s(U)}),()=>({paused:s(Y)})]),Ct("mouseleave",Re,ve),$(t,Re),H(),o()}dt(["mousemove","click"]);function gu(t,e){D(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),r=m(e,"ref",15);Do(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return r()},set ref(l){r(l)},children:(l,d)=>{var a=Ue();let u=h(()=>e.buttonComponent);var f=ge(a);Ei(f,()=>s(u),(v,p)=>{p(v,vs(()=>{var b;return(b=e.buttonComponentProps)!=null?b:{}}))}),$(l,a)},$$slots:{default:!0}}),H()}var $s={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var gy=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Zf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=gy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}function Fs(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),r=m(e,"height",3,"24"),l=h(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=h(()=>i()?"prev-icon":"next-icon");Zf(t,{get style(){return s(l)},get width(){return n()},get height(){return r()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var hy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),_y=M("<!> <!>",1),by={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 xa(t,e){D(e,!0),q(t,by);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ie().ui.t,d=h(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=h(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=h(()=>`btn-${o()?"m":"d"}--${e.type}`);Ot(t,{get className(){return s(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return s(d)},get click(){return e.click},get ariaKeyShortCut(){return s(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=_y(),b=ge(p);{var x=T=>{var I=hy();$(T,I)};V(b,T=>{o()&&T(x)})}var y=A(b,2);let C=h(()=>e.type==="prev");Fs(y,{get isMobile(){return o()},get isPrev(){return s(C)}}),$(f,p)},$$slots:{default:!0}}),H()}var $y=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function Id(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=$y();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}import{noop as yy}from"@vkontakte/videoplayer-shared/es2015";var xy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),wy=M("<!> <div><!></div>",1),Sy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function fl(t,e){D(e,!0),q(t,Sy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),r=m(e,"className",3,""),l=m(e,"click",3,yy),d=F("tooltip_restart"),a=h(()=>`${o()?"btn-m--play":""} ${r()}`);Ot(t,{get className(){return s(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return ts.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=wy(),p=ge(v);{var b=T=>{var I=xy();$(T,I)};V(p,T=>{o()&&T(b)})}var x=A(p,2);let y;var C=_(x);Id(C,{}),g(x),O(T=>y=ee(x,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),$(u,v)},$$slots:{default:!0}}),H()}var Cy=Te('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Nr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=Cy(),d=_(l);g(l),O(()=>{De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",n()),De(d,"fill",r())}),$(t,l)}var Ty=Te('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function ys(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=Ty(),d=_(l);g(l),O(()=>{De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",n()),De(d,"fill",r())}),$(t,l)}import{noop as Ey}from"@vkontakte/videoplayer-shared/es2015";var Iy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ky=M("<!> <div><!></div>",1),Py={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 ml(t,e){D(e,!0),q(t,Py);let[i,o]=Oe(),n=()=>S(r,"$fakeIsPlaying$",i),{fakeIsPlaying$:r}=fo(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),u=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,Ey),b=Ie().ui.t,{toggle:x}=r,y=h(()=>x),C=h(()=>n()!==null),T=h(()=>s(C)?n():a()),I=h(()=>s(T)?b("tooltip_pause"):b("tooltip_play")),P=h(()=>s(T)?ys:Nr),k=h(()=>`${d()?"btn-m--play":""} ${f()}`),E=h(()=>s(C)?s(y):v());Ot(t,{get className(){return s(k)},testId:"btn-play",get click(){return s(E)},get disabled(){return u()},get ariaLabel(){return s(I)},get ariaKeyShortCut(){return ts.KeyK},get ref(){return l()},set ref(L){l(L)},children:(L,K)=>{var z=ky();let U=h(()=>s(P));var Y=ge(z);{var se=Me=>{var Ne=Iy();$(Me,Ne)};V(Y,Me=>{d()&&Me(se)})}var j=A(Y,2);let ue;var le=_(j);Ei(le,()=>s(U),(Me,Ne)=>{Ne(Me,{})}),g(j),O(Me=>ue=ee(j,1,"svelte-1ot3duq",null,ue,Me),[()=>({mobile:d()})]),$(L,z)},$$slots:{default:!0}}),H(),o()}var Ay=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Xf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}function kd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_go_back"),l=h(()=>o()?"hidden":"");Ot(t,{get className(){return s(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Xf(d,{})},$$slots:{default:!0}}),H()}var My=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Ly={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 Pd(t,e){D(e,!0),q(t,Ly);let[i,o]=Oe(),n=()=>S(a,"$autoplayNextEnabled$",i),r=m(e,"ref",15,void 0),l=Ie(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!n(),!0)},v=d("aria_label_autoplay"),p=h(()=>n()?"true":"false");Ot(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return s(p)},get ref(){return r()},set ref(b){r(b)},children:(b,x)=>{var y=My(),C=_(y);let T;var I=_(C);{var P=E=>{Nr(E,{width:"14",height:"14",fill:"#000"})},k=E=>{ys(E,{width:"14",height:"14",fill:"#000"})};V(I,E=>{n()?E(P):E(k,!1)})}g(C),g(y),O(E=>T=ee(C,1,"toggler svelte-et3q1q",null,T,E),[()=>({enabled:n()})]),$(b,y)},$$slots:{default:!0}}),H(),o()}var Vy=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Jf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}function Ad(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_seek"),l=h(()=>o()?"hidden":"");Ot(t,{get className(){return s(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Jf(d,{})},$$slots:{default:!0}}),H()}var Ry=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function em(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}var Ny={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function tm(t,e){q(t,Ny);let i=m(e,"isOpened",3,!1),o=h(()=>i()?"graph-close-icon":"graph-open-icon");em(t,{get"data-testid"(){return s(o)}})}function Md(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=m(e,"graphIsOpened",3,!1),d=Ie().ui.t,a=h(()=>r()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=h(()=>o()?"hidden":"");Ot(t,{get className(){return s(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=h(()=>!!r());tm(f,{get isOpened(){return s(p)}})},$$slots:{default:!0}}),H()}import{PlaybackState as b1}from"@vkontakte/videoplayer-core/es2015";function Ld(t,e){D(e,!0);let[i,o]=Oe(),n=()=>S(u,"$playbackState$",i),r=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ie(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=h(()=>()=>{if(!l()){f();return}n()===b1.PAUSED&&v()}),b=h(()=>r()?"":"btn--live btn-full-opacity"),x=h(()=>l()?"btn-live":"btn-live-offset"),y=h(()=>l()&&n()===b1.PLAYING);Ot(t,{get className(){return s(b)},get testId(){return s(x)},get disabled(){return s(y)},get ariaLabel(){return d()},get click(){return s(p)},children:(C,T)=>{od(C,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}import{noop as $1}from"@vkontakte/videoplayer-shared/es2015";var By=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Oy=M('<img class="icon" aria-hidden="true"/>');function wa(t,e){"use strict";let i=Z(!1),o=()=>{B(i,!0)};var n=Ue(),r=ge(n);{var l=a=>{var u=By();$(a,u)},d=a=>{var u=Oy();O(()=>De(u,"src",e.icon)),Ct("error",u,o),oa(u),$(a,u)};V(r,a=>{s(i)?a(l):a(d,!1)})}$(t,n)}function im(t,e){D(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,$1),n=m(e,"ref",15),r=h(()=>o()===$1),l=h(()=>s(r)||i()),d=h(()=>s(r)?"btn-full-opacity":"");Do(t,{get disabled(){return s(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(a){n(a)},children:(a,u)=>{let f=h(()=>{var v;return(v=e.testId)!=null?v:e.id});Ot(a,{get className(){return s(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(l)},get testId(){return s(f)},children:(v,p)=>{wa(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var y1=t=>!!t.buttonComponent;var xs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var hu=(t,e,i,o)=>{if(t)for(let[n,r]of Object.entries(e))r.set(on(t,i,n,o))};var Fy=M('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),Uy={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function nm(t,e){var ur,Ws;D(e,!0),q(t,Uy);let[i,o]=Oe(),n=()=>S(G,"$disabledControls$",i),r=()=>S(Ki,"$adPlaybackState",i),l=()=>S(Et,"$playbackState$",i),d=()=>S(hi,"$currentSubtitle$",i),a=()=>S(Ri,"$isEnded$",i),u=()=>S(ki,"$currentGridType$",i),f=()=>S(pi,"$isLive$",i),v=()=>S(At,"$chromecastState$",i),p=()=>S(gi,"$isPictureInPictureActive",i),b=()=>S(Wi,"$pictureInPictureType$",i),x=()=>S(ct,"$availableSubtitlesList$",i),y=()=>S(Ni,"$contextMenuOpenedByKeyboard$",i),C=()=>S(ui,"$showContextMenuBtn$",i),T=()=>S(Jn,"$playerSize",i),I=()=>S(Ft,"$isRewindableLive$",i),P=()=>S(ot,"$isActiveLive$",i),k=()=>S(go,"$graphIsOpened$",i),E=()=>S(Kt,"$contextMenuVisible$",i),L=()=>S(ni,"$isFullscreen",i),K=()=>S(wi,"$autoplayNextEnabled",i),z=()=>S(s(yr),"$prevButton",i),U=()=>S(s(xr),"$replayButton",i),Y=()=>S(s(qo),"$playButton",i),se=()=>S(s(Ai),"$nextButton",i),j=()=>S(s(Fr),"$playPrevChapterButton",i),ue=()=>S(s(Ur),"$seekToInteractiveButton",i),le=()=>S(s(zr),"$interactiveGraphButton",i),Me=()=>S(s(ar),"$liveButton",i),Ne=()=>S(s(lr),"$time",i),ve=()=>S(s(vt),"$episodes",i),pe=()=>S(s(Xt),"$vkLogo",i),Re=()=>S(s($i),"$volume",i),ie=()=>S(s(Gi),"$subtitles",i),N=()=>S(s(yi),"$settings",i),Ye=()=>S(s(_o),"$context",i),te=()=>S(s(Po),"$fullscreen",i),Ke=()=>S(s(Ko),"$chromecast",i),de=()=>S(Co,"$additionalDesktopControlPanelRightButtons$",i),fe=()=>S(Pi,"$isInteractiveTime$",i),ye=()=>S(mo,"$settingsMenuVisible",i),X=()=>S(to,"$settingButtonRef$",i),Qe=()=>S(di,"$startedByKeyboard$",i),Xe=()=>S(St,"$isAudioAvailable$",i),ke=()=>S(Tt,"$fakeIsPlaying$",i),ne=()=>S(rn,"$seekToInteractiveDisabledTooltip$",i),Ee=()=>S(kt,"$adPosition",i),Ge=()=>S(Lt,"$position$",i),rt=()=>S(it,"$adDuration",i),nt=()=>S(ze,"$duration$",i),Rt=m(e,"playerControlsWrapperRef",15,void 0),et=m(e,"playerControlsRef",15,void 0),pt=m(e,"isAds",3,!1),Yt=m(e,"logoTargetUrl",3,""),si=m(e,"isOneVideoPlaylist",3,!1),Qt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Tt}=fo(),oe=Ie(),Nt=fo(),he=Wt(),J=oe.actions.internal.toggleMuted,we=oe.actions.internal.togglePlay,Fe=oe.actions.internal.pause,me=oe.actions.internal.toggleSubtitle,Be=(ur=oe.callbacks)==null?void 0:ur.onAudioDoesNotExistHint,Je=(Ws=oe.callbacks)==null?void 0:Ws.onAudioDisabledHint,ze=oe.state.duration$,Lt=oe.state.positionWithScrubbing$,Et=oe.state.playbackState$,St=oe.state.isAudioAvailable$,ht=oe.state.isAudioDisabled,Ri=oe.state.isEnded$,pi=oe.state.isLive$,ot=oe.state.isActiveLive$,Ft=oe.state.isRewindableLive$,{isActive$:gi,type$:Wi}=Nt.pictureInPicture$,mo=oe.ui.settingsMenu.visible$,qi=oe.ui.settingsMenu.openedByBtnKeyboard$,jt=oe.ui.controls,vo=oe.actions.internal.getVideoEpisodes(),At=oe.state.chromecastState$,ct=oe.state.availableSubtitlesList$,hi=oe.state.currentSubtitle$,G=jt.disabledControls$,Kt=oe.ui.contextMenu.visible$,ui=oe.ui.contextMenu.showContextMenuBtn$,Ni=oe.ui.contextMenu.openedByBtnKeyboard$,di=oe.ui.startedByKeyboard$,fi=oe.ui.controlBlocks,mt=oe.ui.t,it=oe.ads.duration,kt=oe.ads.position,Ki=oe.ads.playbackState,ni=oe.ui.isFullscreen,Jn=oe.ui.playerSize,ki=oe.ui.currentGridType$,Co=oe.ui.additionalDesktopControlPanelRightButtons$,wi=oe.ui.autoplayNextEnabled$,$t=oe.actions.internal.getVideoElement,Bi=oe.actions.internal.replayInteractive,Ho=oe.actions.internal.prevVideoClick,En=oe.actions.internal.nextVideoClick,ci=oe.state.isInteractive,Pi=oe.state.isInteractiveTime$,Fo=oe.state.showInteractiveGraph,In=oe.state.showSeekToInteractive,Uo=oe.state.showPlayPrevChapter,To=oe.state.showInteractiveTimeIndicator,vn=oe.state.playPrevChapterDisabledTooltip,rn=Nt.seekToInteractiveDisabledTooltip$,go=Nt.graphIsOpened$,ao=he.features.interactiveResponsiveUi,Or=h(()=>n().has("EPISODE_BUTTON")),hr=h(()=>n().has("GRAPH_BUTTON")),er=h(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),tr=h(()=>n().has("PLAY_BUTTON")),ir=h(()=>n().has("REPLAY_BUTTON")),kn=h(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),rs=()=>oe.actions.internal.toggleChromecast(),Pn=h(()=>pt()?r()==="playing":l()===om.PLAYING),Si=h(()=>d().value!=="off"),An=h(()=>a()&&!pt()||ci),sn=h(()=>ao?s(An)&&Ji(u(),"m"):s(An)),an=h(()=>!a()||ci||pt()),Mn=h(()=>Ji(u(),"m")),Ln=h(()=>e.showNextPrevButtons&&Ji(u(),"m")&&!pt()&&e.nextButtonActive),zo=h(()=>e.showNextPrevButtons&&Ji(u(),"m")&&!pt()&&e.prevButtonActive),Dr=h(()=>!pt()&&!!f()),Vn=h(()=>v()!==x1.NOT_AVAILABLE&&!(p()&&b()===1)&&Ji(u(),"m")&&!ci),or=h(()=>e.showAutoplayNext&&!si()&&Ji(u(),"s")),Qi=h(()=>x().length>0&&Ji(u(),"m")),Eo=h(()=>y()||C()),lt=h(()=>Ji(u(),"s")&&!pt()),ti=h(()=>!e.logoHidden&&!pt()),_r=h(()=>he.features.fullscreen&&(e.logoHidden||Ji(u(),ao?"xs":"s"))&&!(p()&&b()===1)&&(ci?Qt():!0)),Rn=h(()=>(!f()||pt())&&!(he.features.interactiveHideTime&&ci)),gn=h(()=>T().width>100),Oi=h(()=>Fo&&Ji(u(),"m")),Nn=h(()=>ao?In&&Ji(u(),"s"):In),Io=h(()=>ao?Uo&&Ji(u(),"s"):Uo),Bn=h(()=>!pt()&&!f()&&!!(vo!=null&&vo.length)&&s(Mn)&&!s(Or)),ko=h(()=>!I()||!!P()),On=h(()=>k()?mt("tooltip_interactive_graph_on"):mt("tooltip_interactive_graph_off")),Dn=h(()=>E()?mt("tooltip_context_menu_close"):mt("tooltip_context_menu_open")),nr=(xt,yt)=>xt?yt&&yt===om.PAUSED?mt("tooltip_play"):"":mt("tooltip_live"),br=h(()=>nr(s(ko),l())),rr=h(()=>he.logoType==="vk_video"?mt("tooltip_vk_video_logo"):mt("tooltip_vk_logo")),Wo=h(()=>s(Si)?mt("tooltip_subtitles_on"):mt("tooltip_subtitles_off")),Hr=h(()=>L()?mt("tooltip_fullscreen_on"):mt("tooltip_fullscreen_off")),sr=h(()=>v()===x1.CONNECTED?mt("tooltip_chromecast_on"):mt("tooltip_chromecast_off")),$r=h(()=>K()?mt("tooltip_autoplay_on"):mt("tooltip_autoplay_off")),ln=Z(0),Zt=ri({}),ho=ri({}),yr=h(()=>jt.prevButton),xr=h(()=>jt.replayButton),qo=h(()=>jt.playButton),Ai=h(()=>jt.nextButton),Fr=h(()=>jt.playPrevChapterButton),Ur=h(()=>jt.seekToInteractiveButton),zr=h(()=>jt.interactiveGraphButton),ar=h(()=>jt.liveButton),lr=h(()=>jt.time),vt=h(()=>jt.episodes),Xt=h(()=>jt.vkLogo),$i=h(()=>jt.volume),Gi=h(()=>jt.subtitles),yi=h(()=>jt.settings),_o=h(()=>jt.context),Po=h(()=>jt.fullscreen),Ko=h(()=>jt.chromecast),We=h(()=>({prevButton:z()?z().right-z().left:0,replayButton:U()?U().right-U().left:0,playButton:Y()?Y().right-Y().left:0,nextButton:se()?se().right-se().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:ue()?ue().right-ue().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Me()?Me().right-Me().left:0,time:Ne()?Ne().right-Ne().left:0,episodes:ve()?ve().right-ve().left:0,vkLogo:pe()?pe().right-pe().left:0,volume:Re()?Re().right-Re().left:0,subtitles:ie()?ie().right-ie().left:0,settings:N()?N().right-N().left:0,context:Ye()?Ye().right-Ye().left:0,fullscreen:te()?te().right-te().left:0,chromecast:Ke()?Ke().right-Ke().left:0,additionalButtons:de().length?de().reduce(xt=>[...xt,40],[]):[]})),Vt=Z(0);qe(()=>{(!s(Vt)||s(Vt)<s(We).time)&&It(()=>B(Vt,s(We).time,!0))});let mi=Z(!1);qe(()=>{let xt=0;s(Bn)&&(Ji(u(),"xl")?xt=s(We).time:xt=60);let yt=s(We).prevButton+s(We).playButton+s(We).nextButton+s(We).seekToInteractiveButton+s(We).interactiveGraphButton+s(We).liveButton+s(Vt)+xt;B(mi,s(Rn)&&s(ln)>=yt,!0)});let bo=h(()=>s(mi)&&Ji(u(),"m")),lo=w1(pl,260),Qo=w1(hu,260);qe(()=>{T(),fe(),lo($t(),jt,Zt,e.showControls),Qo($t(),fi,ho,e.showControls)}),qe(()=>{ho.bottom=Rt()});let to=ae();qe(()=>{ye(),X()&&It(()=>sl(X(),ye(),qi))});let Go;qe(()=>{Qe(),It(()=>vu(di,Qe(),Go))});function Ao(){Os({isAudioDisabled:ht,isAudioAvailable:Xe(),isAds:pt(),audioIsNotExistHintCallback:Be,audioDisabledHintCallback:Je})&&J()}let Yi=ci?Bi:we,xi=h(()=>ke()!==null),Yo=h(()=>s(xi)?ke():s(Pn)),dn=h(()=>s(Yo)?mt("tooltip_pause"):mt("tooltip_play")),co=mt("tooltip_episodes"),wr=h(()=>{var xt,yt,uo,Zo;return s(zo)?{id:"prevButton",type:"desktop-control-panel-left",weight:$s.prevButton,buttonComponent:xa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ho.bind(null,!0)},tooltipEnabled:!((yt=(xt=oe.callbacks)==null?void 0:xt.uiInfo)!=null&&yt.onPrevButtonMouseEnter)&&!((Zo=(uo=oe.callbacks)==null?void 0:uo.uiInfo)!=null&&Zo.onPrevButtonMouseLeave),mouseEnter:()=>{var po,li,Di;(Di=(li=(po=oe.callbacks)==null?void 0:po.uiInfo)==null?void 0:li.onPrevButtonMouseEnter)==null||Di.call(li,on($t(),Zt,"prevButton",e.showControls))},mouseLeave:()=>{var po,li,Di;(Di=(li=(po=oe.callbacks)==null?void 0:po.uiInfo)==null?void 0:li.onPrevButtonMouseLeave)==null||Di.call(li,on($t(),Zt,"prevButton",e.showControls))},tooltipText:mt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Wr=h(()=>s(sn)?{id:"replayButton",type:"desktop-control-panel-left",weight:$s.replayButton,buttonComponent:fl,buttonComponentProps:{disabled:s(ir),click:Yi},tooltipText:mt("tooltip_restart"),disabled:s(ir)}:void 0),qr=h(()=>s(an)?{id:"playButton",type:"desktop-control-panel-left",weight:$s.playButton,buttonComponent:ml,buttonComponentProps:{disabled:s(tr),isPlaying:s(Pn),click:we},tooltipText:s(dn),disabled:s(tr)}:void 0),hn=h(()=>{var xt,yt,uo,Zo;return s(Ln)?{id:"nextButton",type:"desktop-control-panel-left",weight:$s.nextButton,buttonComponent:xa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:En.bind(null,!0)},tooltipEnabled:!((yt=(xt=oe.callbacks)==null?void 0:xt.uiInfo)!=null&&yt.onNextButtonMouseEnter)&&!((Zo=(uo=oe.callbacks)==null?void 0:uo.uiInfo)!=null&&Zo.onNextButtonMouseLeave),mouseEnter:()=>{var po,li,Di;(Di=(li=(po=oe.callbacks)==null?void 0:po.uiInfo)==null?void 0:li.onNextButtonMouseEnter)==null||Di.call(li,on($t(),Zt,"nextButton",e.showControls))},mouseLeave:()=>{var po,li,Di;(Di=(li=(po=oe.callbacks)==null?void 0:po.uiInfo)==null?void 0:li.onNextButtonMouseLeave)==null||Di.call(li,on($t(),Zt,"nextButton",e.showControls))},tooltipText:mt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Hn=h(()=>ci&&s(Io)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:$s.playPrevChapterButton,buttonComponent:kd,buttonComponentProps:{disabled:s(kn),click:e.playPrevChapter},tooltipText:mt("tooltip_interactive_go_back"),disabledTooltipContent:mt(vn),disabled:s(kn)}:void 0),ss=h(()=>ci&&s(Nn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:$s.seekToInteractiveButton,buttonComponent:Ad,buttonComponentProps:{disabled:s(er),click:e.seekToInteractive},tooltipText:mt("tooltip_interactive_seek"),disabled:s(er),disabledTooltipContent:mt(ne())}:void 0),Sr=h(()=>ci&&s(Oi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:$s.interactiveGraphButton,buttonComponent:Md,buttonComponentProps:{disabled:s(hr),click:go.toggle,graphIsOpened:k()},tooltipText:s(On)}:void 0),jo=h(()=>s(Dr)?{id:"liveButton",type:"desktop-control-panel-left",weight:$s.liveButton,buttonComponent:Ld,buttonComponentProps:{isLiveActive:s(ko),ariaLabel:s(br)},tooltipText:s(br),disabled:s(ko)&&l()===om.PLAYING}:void 0),ji=h(()=>[s(wr),s(Wr),s(qr),s(hn),s(Hn),s(ss),s(Sr),s(jo)].filter(xt=>!!xt).sort(ma)),Fn=h(()=>s(ti)?{id:"vkLogo",type:"desktop-control-panel-right",weight:xs.vkLogo,buttonComponent:$d,buttonComponentProps:{targetUrl:Yt(),logoClickable:e.logoClickable,click:Fe},tooltipText:s(rr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),dr=h(()=>s(or)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:xs.autoplayNext,buttonComponent:Pd,tooltipText:s($r)}:void 0),Kr=h(()=>({id:"volume",type:"desktop-control-panel-right",weight:xs.volume,buttonComponent:Af,buttonComponentProps:{click:Ao,isAds:pt()}})),Qr=h(()=>s(Qi)?{id:"subtitles",type:"desktop-control-panel-right",weight:xs.subtitles,buttonComponent:Tf,buttonComponentProps:{isSubtitlesEnabled:s(Si),click:me},tooltipText:s(Wo)}:void 0),cr=h(()=>s(lt)?{id:"settings",type:"desktop-control-panel-right",weight:xs.settings,buttonComponent:cl,buttonComponentProps:{ref$:to},tooltipText:ye()?void 0:mt("tooltip_settings_off")}:void 0),as=h(()=>he.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:xs.context,buttonComponent:jf,buttonComponentProps:{ariaLabel:mt("aria_label_context_menu")},className:s(Eo)?"":"out-of-view",tooltipText:s(Dn)}:void 0),Se=h(()=>s(_r)?{id:"fullscreen",type:"desktop-control-panel-right",weight:xs.fullscreen,buttonComponent:bd,buttonComponentProps:{isFullscreen:L(),click:e.toggleFullscreen},tooltipText:s(Hr)}:void 0),_e=h(()=>s(Vn)?{id:"chromecast",type:"desktop-control-panel-right",weight:xs.chromecast,buttonComponent:yd,buttonComponentProps:{state:v(),click:rs},tooltipText:s(sr)}:void 0),ft=h(()=>[s(Fn),s(dr),s(Kr),s(Qr),s(cr),s(as),s(Se),s(_e),...de()].filter(xt=>!!xt).sort(ma));var Mt=Fy(),Ve=ge(Mt);let ut;var Gt=_(Ve);let Ci=h(()=>!s(gn));$a(Gt,{get isHidden(){return s(Ci)},get isAds(){return pt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Zt.timeline},set ref(xt){Zt.timeline=xt}});var io=A(Gt,2),Zi=_(io),Cr=_(Zi);Ti(Cr,17,()=>s(ji),xt=>xt.id,(xt,yt)=>{gu(xt,{get buttonComponent(){return s(yt).buttonComponent},get buttonComponentProps(){return s(yt).buttonComponentProps},get tooltipText(){return s(yt).tooltipText},get disabledTooltipContent(){return s(yt).disabledTooltipContent},get disabled(){return s(yt).disabled},get className(){return s(yt).className},get tooltipEnabled(){return s(yt).tooltipEnabled},get mouseEnter(){return s(yt).mouseEnter},get mouseLeave(){return s(yt).mouseLeave},get ref(){return Zt[s(yt).id]},set ref(uo){Zt[s(yt).id]=uo}})});var Tr=A(Cr,2);{var oo=xt=>{let yt=h(()=>pt()?Ee():Ge()),uo=h(()=>pt()?rt():nt());hd(xt,{isMobile:!1,get showDuration(){return s(bo)},get position(){return s(yt)},get duration(){return s(uo)},get ref(){return Zt.time},set ref(Zo){Zt.time=Zo}})};V(Tr,xt=>{s(Rn)&&xt(oo)})}var Mi=A(Tr,2);let _n=h(()=>!s(Bn));Do(Mi,{className:"w-max",get disabled(){return s(_n)},get tooltipContent(){return co},get ref(){return Zt.episodes},set ref(xt){Zt.episodes=xt},children:(xt,yt)=>{var uo=Ue(),Zo=ge(uo);{var po=li=>{wd(li,{get position(){return Ge()},get duration(){return nt()},get timeCodes(){return vo}})};V(Zo,li=>{s(Bn)&&li(po)})}$(xt,uo)},$$slots:{default:!0}}),g(Zi);var Un=A(Zi,2);Ti(Un,21,()=>s(ft),xt=>xt.id,(xt,yt)=>{var uo=Ue(),Zo=ge(uo);{var po=Di=>{gu(Di,{get buttonComponent(){return s(yt).buttonComponent},get buttonComponentProps(){return s(yt).buttonComponentProps},get tooltipText(){return s(yt).tooltipText},get disabledTooltipContent(){return s(yt).disabledTooltipContent},get disabled(){return s(yt).disabled},get className(){return s(yt).className},get ref(){return Zt[s(yt).id]},set ref(ws){Zt[s(yt).id]=ws}})},li=Di=>{let ws=h(()=>!!s(yt).disabled);im(Di,{get id(){return s(yt).id},get testId(){return s(yt).testId},get icon(){return s(yt).icon},get ariaLabel(){return s(yt).ariaLabel},get tooltipText(){return s(yt).tooltipText},get disabledTooltipContent(){return s(yt).disabledTooltipContent},get disabled(){return s(ws)},get onClick(){return s(yt).onClick},get ref(){return Zt[s(yt).id]},set ref(_l){Zt[s(yt).id]=_l}})};V(Zo,Di=>{y1(s(yt))?Di(po):Di(li,!1)})}$(xt,uo)}),g(Un),g(io),tt(io,xt=>et(xt),()=>et()),g(Ve),tt(Ve,xt=>Rt(xt),()=>Rt());var Er=A(Ve,2);{var $o=xt=>{Ed(xt,{get ref(){return Zt.interactiveTimeIndicator},set ref(yt){Zt.interactiveTimeIndicator=yt}})};V(Er,xt=>{To&&xt($o)})}O(xt=>ut=ee(Ve,1,"wrapper-bottom svelte-f6e8ix",null,ut,xt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),es(Zi,"clientWidth",xt=>B(ln,xt)),$(t,Mt),H(),o()}import{ChromecastState as C1,PlaybackState as T1}from"@vkontakte/videoplayer-core/es2015";import{noop as S1}from"@vkontakte/videoplayer-shared/es2015";var zy=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Wy=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),qy={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function rm(t,e){q(t,qy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,S1),n=h(()=>o()===S1),r=h(()=>s(n)||i()),l=Z(!1),d=()=>{B(l,!0)},a=h(()=>s(n)?"btn-full-opacity":"");Ot(t,{get className(){return s(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(r)},get testId(){return e.testId},children:(u,f)=>{var v=Ue(),p=ge(v);{var b=y=>{var C=zy();$(y,C)},x=y=>{var C=Wy();O(()=>De(C,"src",e.iconUrl)),Ct("error",C,d),oa(C),$(y,C)};V(p,y=>{s(l)?y(b):y(x,!1)})}$(u,v)},$$slots:{default:!0}})}var Ky=Te('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function sm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Ky();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}import{noop as Qy}from"@vkontakte/videoplayer-shared/es2015";var Gy=M('<span class="text svelte-6gmlbk"> </span>'),Yy=M('<div aria-hidden="true"><!> <!></div>'),jy={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function _u(t,e){D(e,!0),q(t,jy);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,Qy),r=m(e,"ref",15,void 0),d=Ie().ui.t,a=h(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=h(()=>o()?Ds:sm),f=h(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Ot(t,{get testId(){return s(f)},get click(){return n()},get ariaLabel(){return s(a)},role:"button",get ref(){return r()},set ref(v){r(v)},children:(v,p)=>{var b=Yy();let x=h(()=>s(u)),y;var C=_(b);Ei(C,()=>s(x),(P,k)=>{k(P,{})});var T=A(C,2);{var I=P=>{var k=Gy(),E=_(k,!0);g(k),O(L=>be(E,L),[()=>d("mobile_unmute")]),$(P,k)};V(T,P=>{o()&&P(I)})}g(b),O(P=>y=ee(b,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),$(v,b)},$$slots:{default:!0}}),H()}var Zy=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function am(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(3),g(o),$(t,o)}var Xy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function lm(t,e){q(t,Xy);let i=m(e,"isActive",3,!1),o=h(()=>i()?"color: #2688EB;":"color: #fff;"),n=h(()=>i()?"pip-icon--active":"pip-icon");am(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}import{noop as Jy}from"@vkontakte/videoplayer-shared/es2015";function dm(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,Jy),r=F("menu_pip");Ot(t,{testId:"btn-pip",get ariaLabel(){return r},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{lm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}import{debounceFn as E1}from"@vkontakte/videoplayer-shared/es2015";var e4=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},t4=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},i4=M("<div><!></div>"),o4=M("<div><!></div>"),n4=M("<div><!></div>"),r4=M("<!> <!> <!>",1),s4=M("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),a4=M("<div><!></div>"),l4=M('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),d4=M("<!> <!> <div><!></div>",1),c4=M('<div aria-hidden="true">\xB7</div> <!>',1),u4=M('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!></div></div> <!></div></div> <!>',1),p4={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-9xcbwc {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
253
253
  .wrapper-middle-left-second.svelte-9xcbwc,
254
254
  .wrapper-middle-right.svelte-9xcbwc {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-9xcbwc {left:12px;}.wrapper-middle-left-second.svelte-9xcbwc {left:64px;}.wrapper-middle-right.svelte-9xcbwc {right:12px;}.controls.svelte-9xcbwc {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-9xcbwc {display:flex;}.controls-group.contain.svelte-9xcbwc {min-width:0;}.controls-group.svelte-9xcbwc > *:not(:first-child) {margin-left:8px;}.hidden.svelte-9xcbwc {visibility:hidden;opacity:0;}.controls-hidden.svelte-9xcbwc {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-9xcbwc {transition:none;}.overlay-mobile.svelte-9xcbwc {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
255
255
 
@@ -258,7 +258,7 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=k_;var hs=new Map;hs.set(Vh.EN,Mh)
258
258
  }
259
259
 
260
260
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-9xcbwc {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-9xcbwc {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-9xcbwc {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-9xcbwc {left:96px;}.wrapper-middle-right.fullscreen.svelte-9xcbwc {right:44px;}.controls-wrapper.fullscreen.svelte-9xcbwc {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
261
- }`};function dm(t,e){var Gi,an;D(e,!0),q(t,p4);let[i,o]=Oe(),n=()=>C(kn,"$seekToInteractiveDisabledTooltip$",i),r=()=>C(Kt,"$disabledControls$",i),l=()=>C(Vt,"$playbackState$",i),d=()=>C(ut,"$adPlaybackState",i),a=()=>C(we,"$isEnded$",i),u=()=>C(It,"$playerSize",i),f=()=>C(Ue,"$scrubbingInProgress",i),v=()=>C(gi,"$chromecastState$",i),p=()=>C(Tt,"$isPictureInPictureActive",i),y=()=>C(xt,"$pictureInPictureType$",i),w=()=>C(Mt,"$mobileNotReportControlHidden$",i),$=()=>C(fo,"$chromecastHidden",i),S=()=>C(Qt,"$playerPhase",i),T=()=>C(Wi,"$pipHidden",i),k=()=>C(Li,"$currentGridType$",i),P=()=>C(zi,"$vkLogoHidden",i),I=()=>C(He,"$isLive$",i),E=()=>C(pi,"$settingsMenuVisible",i),L=()=>C(Je,"$isRewindableLive$",i),K=()=>C(Ne,"$isActiveLive$",i),z=()=>C(Bo,"$isInteractiveTime$",i),U=()=>C(he,"$isAudioAvailable$",i),Y=()=>C(To,"$settingButtonRef$",i),se=()=>C(ui,"$startedByKeyboard$",i),j=()=>C(tt,"$isFullscreen",i),ue=()=>C(Mi,"$mobileUnmuteButtonVisible",i),le=()=>C(vi,"$volumeHidden",i),Me=()=>C(me,"$muted$",i),Re=()=>C(ft,"$mobileUnmuteButtonExpanded",i),ve=()=>C(qi,"$additionalButtons$",i),pe=()=>C(po,"$autoplayNextToggleHidden",i),Ve=()=>C(G,"$crashed$",i),ie=()=>C(Yt,"$settingsHidden",i),N=()=>C(ci,"$graphIsOpened$",i),Ge=()=>C(fi,"$adPosition",i),te=()=>C(di,"$adDuration",i),qe=()=>C(oe,"$position$",i),de=()=>C(St,"$duration$",i),fe=m(e,"playerControlsWrapperRef",15,void 0),$e=m(e,"playerControlsRef",15,void 0),X=m(e,"isAds",3,!1),Ke=m(e,"logoTargetUrl",3,""),Xe=m(e,"isOneVideoPlaylist",3,!1),ke=m(e,"customFullscreenSupported",3,!0),ne=Ie(),Ee=uo(),Qe=zt(),rt=ne.actions.internal.toggleMuted,nt=ne.actions.internal.togglePlay,Lt=ne.actions.internal.pause,et=ne.actions.internal.prevVideoClick,ct=ne.actions.internal.nextVideoClick,Gt=(Gi=ne.callbacks)==null?void 0:Gi.onAudioDoesNotExistHint,si=(an=ne.callbacks)==null?void 0:an.onAudioDisabledHint,Qt=ne.playerPhase,St=ne.state.duration$,oe=ne.state.positionWithScrubbing$,Vt=ne.state.playbackState$,he=ne.state.isAudioAvailable$,J=ne.state.isAudioDisabled,we=ne.state.isEnded$,He=ne.state.isLive$,me=ne.state.muted$,Ne=ne.state.isActiveLive$,Je=ne.state.isRewindableLive$,Ue=ne.ui.scrubbingInProgress,Mt=ne.ui.mobileNotReportControlHidden$,{isActive$:Tt,type$:xt}=Ee.pictureInPicture$,ft=ne.ui.mobileUnmuteButtonExpanded,Mi=ne.ui.mobileUnmuteButtonVisible,pi=ne.ui.settingsMenu.visible$,it=ne.ui.settingsMenu.openedByBtnKeyboard$,Ht=ne.ui.controls,{volume:vi,vkLogo:zi,autoplayNextToggle:po,pip:Wi,settings:Yt,chromecast:fo}=ne.ui.hiddenControls,Pt=ne.actions.internal.getVideoEpisodes(),dt=ne.webApi.pictureInPictureApi,gi=ne.state.chromecastState$,G=ne.state.crashed$,Kt=Ht.disabledControls$,ui=ne.ui.startedByKeyboard$,Li=ne.ui.currentGridType$,di=ne.ads.duration,fi=ne.ads.position,ut=ne.ads.playbackState,tt=ne.ui.isFullscreen,It=ne.ui.playerSize,qi=ne.ui.additionalButtonsDeprecated$,ii=ne.actions.internal.getVideoElement,ir=ne.actions.internal.replayInteractive,Vi=ne.state.isInteractive,Bo=ne.state.isInteractiveTime$,xi=ne.state.showInteractiveGraph,gt=ne.state.showSeekToInteractive,Ri=ne.state.showPlayPrevChapter,Oo=ne.state.showInteractiveTimeIndicator,kn=Ee.seekToInteractiveDisabledTooltip$,ci=Ee.graphIsOpened$,Ti=ne.ui.controlBlocks,Do=h(()=>F(ne.state.playPrevChapterDisabledTooltip)),Pn=h(()=>F(n())),Ho=h(()=>r().has("EPISODE_BUTTON")),xo=h(()=>r().has("GRAPH_BUTTON")),gn=h(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),tn=h(()=>r().has("PLAY_BUTTON")),mo=h(()=>r().has("REPLAY_BUTTON")),wo=h(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Hr=h(()=>l()===S1.PLAYING),$r=h(()=>d()==="paused"),or=h(()=>a()&&!X()&&!Vi),nr=h(()=>!a()||X()),rr=h(()=>e.showNextPrevButtons&&!X()&&e.prevButtonActive),An=h(()=>e.showNextPrevButtons&&!X()&&e.nextButtonActive),ss=h(()=>u().width>300),Mn=h(()=>u().width>400),Ni=h(f),Ln=h(()=>v()!==C1.NOT_AVAILABLE&&!(p()&&y()===1)&&!w()&&!Vi&&!$()),on=h(()=>S()==="LiveWaitingStart"),nn=h(()=>!!dt&&v()!==C1.CONNECTED&&!w()&&(y()===1&&s(on)||!s(on))&&!s(Ni)&&!Vi&&!T()),Vn=h(()=>!s(Ni)&&Zi(k(),"s")),Rn=h(()=>!e.logoHidden&&u().width>350&&!P()),Fo=h(()=>Qe.features.fullscreen&&!(p()&&y()===1)&&(Vi?ke():!0)&&!s(Ni)),Fr=h(()=>(!I()||X())&&u().width>260&&!s(Ni)&&!(Qe.features.interactiveHideTime&&Vi)),Nn=h(()=>E()||e.showControls),sr=h(()=>!X()&&!I()&&!!(Pt!=null&&Pt.length)&&s(ss)&&!s(Ho)&&!s(Ni)),Ki=h(()=>!L()||!!K()),Co=h(()=>xi&&Zi(k(),"m")),at=ri({}),Jt=ri({}),yr=T1(ul,260),Bn=T1(hu,260);We(()=>{u(),z(),yr(ii(),Ht,at,e.showControls),Bn(ii(),Ti,Jt,e.showControls)});let hn=()=>ne.actions.internal.toggleChromecast();function Bi(){return yt(this,null,function*(){dt!=null&&dt.isActive()?yield dt==null?void 0:dt.remove():yield dt==null?void 0:dt.request()})}function On(){(!J&&U()||X())&&Mi.set(!1),Hs({isAudioDisabled:J,audioDisabledHintCallback:si,isAudioAvailable:U(),audioIsNotExistHintCallback:Gt,isAds:X()})&&rt()}let So=Z(""),Dn=(je,Rt)=>{if(!je){B(So,F("tooltip_live"),!0);return}Rt&&Rt===S1.PAUSED&&B(So,F("tooltip_play"),!0)};We(()=>{Dn(s(Ki),l())});let To=ae();We(()=>{Y()&&rl(Y(),E(),it)}),We(()=>{vu(ui,se(),at.playButton)});var Hn=u4(),Fn=ge(Hn);{var ar=je=>{var Rt=s4(),bi=ge(Rt);let go;var no=A(bi,2);let qo;var Ji=_(no);{var Ko=ze=>{let wt=h(()=>U()&&!J&&Re());_u(ze,{get muted(){return Me()},get expanded(){return s(wt)},click:On,get ref(){return at.volume},set ref(oi){at.volume=oi}})};V(Ji,ze=>{(!U()||ue())&&!le()&&ze(Ko)})}g(no),ot(no,ze=>Jt.topLeft=ze,()=>Jt==null?void 0:Jt.topLeft);var Io=A(no,2);let Yi;var $i=_(Io);wi($i,1,ve,({iconUrl:ze,ariaLabel:wt,testId:oi,onClick:dn,tooltip:bn})=>ze,(ze,wt)=>{let oi=()=>s(wt).iconUrl,dn=()=>s(wt).ariaLabel,bn=()=>s(wt).testId,ao=()=>s(wt).onClick,Gr=()=>s(wt).tooltip,Er=h(()=>{var eo;return(eo=dn())!=null?eo:Gr()});nm(ze,{get iconUrl(){return oi()},get ariaLabel(){return s(Er)},get testId(){return bn()},get onClick(){return ao()}})});var Qo=A($i,2);{var ln=ze=>{Pd(ze,{get ref(){return at.autoplayNextToggle},set ref(wt){at.autoplayNextToggle=wt}})};V(Qo,ze=>{e.showAutoplayNext&&!Xe()&&!pe()&&ze(ln)})}var ro=A(Qo,2);{var Tr=ze=>{yd(ze,{isMobile:!0,click:hn,get state(){return v()},get ref(){return at.chromecast},set ref(wt){at.chromecast=wt}})};V(ro,ze=>{s(Ln)&&ze(Tr)})}var Wr=A(ro,2);{var qr=ze=>{lm(ze,{click:Bi,get isPictureInPictureActive(){return p()},get ref(){return at.pip},set ref(wt){at.pip=wt}})};V(Wr,ze=>{s(nn)&&ze(qr)})}var _n=A(Wr,2);{var zn=ze=>{dl(ze,{get ref$(){return To}})};V(_n,ze=>{Ve()&&!ie()&&ze(zn)})}var Kr=A(_n,2);{var so=ze=>{$d(ze,{get click(){return Lt},get targetUrl(){return Ke()},get logoClickable(){return e.logoClickable},get ref(){return at.vkLogo},set ref(wt){at.vkLogo=wt}})};V(Kr,ze=>{s(Rn)&&ze(so)})}g(Io),ot(Io,ze=>Jt.topRight=ze,()=>Jt==null?void 0:Jt.topRight);var Go=A(Io,2);let Wn;var pr=_(Go);{var fr=ze=>{let wt=h(()=>et.bind(null,!0));wa(ze,{get click(){return s(wt)},type:"prev",isMobile:!0,get ref(){return at.prevButton},set ref(oi){at.prevButton=oi}})};V(pr,ze=>{s(rr)&&ze(fr)})}var Qr=A(pr,2);{var ls=ze=>{fl(ze,{get disabled(){return s(tn)},get click(){return nt},isMobile:!0,get isPlaying(){return s(Hr)},get ref(){return at.playButton},set ref(wt){at.playButton=wt}})};V(Qr,ze=>{s(nr)&&ze(ls)})}var Te=A(Qr,2);{var xe=ze=>{pl(ze,{get disabled(){return s(mo)},get click(){return nt},isMobile:!0,get ref(){return at.replayButton},set ref(wt){at.replayButton=wt}})};V(Te,ze=>{s(or)&&ze(xe)})}var $t=A(Te,2);{var Wt=ze=>{let wt=h(()=>ct.bind(null,!0));wa(ze,{get click(){return s(wt)},type:"next",isMobile:!0,get ref(){return at.nextButton},set ref(oi){at.nextButton=oi}})};V($t,ze=>{s(An)&&ze(Wt)})}g(Go),ot(Go,ze=>Jt.middle=ze,()=>Jt==null?void 0:Jt.middle);var Ii=A(Go,2);{var yi=ze=>{var wt=r4(),oi=ge(wt);{var dn=eo=>{var ki=i4();let $n;ki.__click=[e4,wo,e,Do];var qn=_(ki);let Ir=h(()=>!e.showControls);kd(qn,{get hidden(){return s(Ir)},get disabled(){return s(wo)},get click(){return e.playPrevChapter},get ref(){return at.playPrevChapterButton},set ref(ho){at.playPrevChapterButton=ho}}),g(ki),O(ho=>$n=ee(ki,1,"wrapper-middle-left svelte-9xcbwc",null,$n,ho),[()=>({fullscreen:j(),hidden:!e.showControls})]),b(eo,ki)};V(oi,eo=>{Ri&&eo(dn)})}var bn=A(oi,2);{var ao=eo=>{var ki=o4();let $n;var qn=_(ki);let Ir=h(()=>!e.showControls&&!N());Md(qn,{get hidden(){return s(Ir)},get disabled(){return s(xo)},get click(){return ci.toggle},get graphIsOpened(){return N()},get ref(){return at.interactiveGraphButton},set ref(ho){at.interactiveGraphButton=ho}}),g(ki),O(ho=>$n=ee(ki,1,ql(Ri?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",$n,ho),[()=>({fullscreen:j(),hidden:!e.showControls&&!N()})]),b(eo,ki)};V(bn,eo=>{s(Co)&&eo(ao)})}var Gr=A(bn,2);{var Er=eo=>{var ki=n4();let $n;ki.__click=[t4,gn,e,Pn];var qn=_(ki);let Ir=h(()=>!e.showControls);Ad(qn,{get hidden(){return s(Ir)},get disabled(){return s(gn)},get click(){return e.seekToInteractive},get ref(){return at.seekToInteractiveButton},set ref(ho){at.seekToInteractiveButton=ho}}),g(ki),O(ho=>$n=ee(ki,1,"wrapper-middle-right svelte-9xcbwc",null,$n,ho),[()=>({fullscreen:j(),hidden:!e.showControls})]),b(eo,ki)};V(Gr,eo=>{gt&&eo(Er)})}b(ze,wt)};V(Ii,ze=>{Vi&&!f()&&ze(yi)})}O((ze,wt,oi,dn)=>{go=ee(bi,1,"overlay-mobile svelte-9xcbwc",null,go,ze),qo=ee(no,1,"wrapper-top-left svelte-9xcbwc",null,qo,wt),Yi=ee(Io,1,"wrapper-top-right svelte-9xcbwc",null,Yi,oi),Wn=ee(Go,1,"wrapper-middle svelte-9xcbwc",null,Wn,dn)},[()=>({hidden:!s(Nn)}),()=>({hidden:!e.showControls,fullscreen:j()}),()=>({hidden:!e.showControls&&!w(),fullscreen:j()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(je,Rt)};V(Fn,je=>{X()||je(ar)})}var xr=A(Fn,2);{var lr=je=>{var Rt=d4(),bi=ge(Rt);{var go=Yi=>{var $i=a4();let Qo;var ln=_($i);_u(ln,{get muted(){return Me()},expanded:!1,click:On,get ref(){return at.volume},set ref(ro){at.volume=ro}}),g($i),O(ro=>Qo=ee($i,1,"wrapper-top-right svelte-9xcbwc",null,Qo,ro),[()=>({fullscreen:j()})]),b(Yi,$i)};V(bi,Yi=>{ue()&&Yi(go)})}var no=A(bi,2);{var qo=Yi=>{var $i=l4(),Qo=_($i);let ln=h(()=>!s($r));fl(Qo,{get disabled(){return s(tn)},get click(){return nt},isMobile:!0,get isPlaying(){return s(ln)},get ref(){return at.playButton},set ref(ro){at.playButton=ro}}),g($i),b(Yi,$i)};V(no,Yi=>{s($r)&&Yi(qo)})}var Ji=A(no,2);let Ko;var Io=_(Ji);xd(Io,{get position(){return Ge()},get duration(){return te()}}),g(Ji),O(Yi=>Ko=ee(Ji,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Ko,Yi),[()=>({fullscreen:j()})]),b(je,Rt)};V(xr,je=>{X()&&d()!=="inactive"&&je(lr)})}var Uo=A(xr,2);let Ur;var dr=_(Uo);let wr;var rn=_(dr);ee(rn,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var jt=_(rn),vo=_(jt);{var Eo=je=>{No(je,{get disabled(){return s(mo)},get ref(){return at.replayButton},set ref(Rt){at.replayButton=Rt},children:(Rt,bi)=>{pl(Rt,{get disabled(){return s(mo)},get click(){return ir}})},$$slots:{default:!0}})};V(vo,je=>{Vi&&je(Eo)})}var cr=A(vo,2);{var Cr=je=>{No(je,{get ref(){return at.liveButton},set ref(Rt){at.liveButton=Rt},children:(Rt,bi)=>{Ld(Rt,{get isLiveActive(){return s(Ki)},isMobile:!0,get ariaLabel(){return s(So)}})},$$slots:{default:!0}})};V(cr,je=>{!X()&&I()&&je(Cr)})}var Ei=A(cr,2);{var as=je=>{let Rt=h(()=>X()?Ge():qe()),bi=h(()=>X()?te():de());hd(je,{get showDuration(){return s(Mn)},get position(){return s(Rt)},get duration(){return s(bi)},isMobile:!0,get ref(){return at.time},set ref(go){at.time=go}})};V(Ei,je=>{s(Fr)&&je(as)})}var zr=A(Ei,2);let Sr=h(()=>!s(sr));No(zr,{className:"w-max",get disabled(){return s(Sr)},get ref(){return at.episodes},set ref(je){at.episodes=je},children:(je,Rt)=>{var bi=Fe(),go=ge(bi);{var no=qo=>{var Ji=c4(),Ko=A(ge(Ji),2);wd(Ko,{get position(){return qe()},get duration(){return de()},get timeCodes(){return Pt}}),b(qo,Ji)};V(go,qo=>{s(sr)&&qo(no)})}b(je,bi)},$$slots:{default:!0}}),g(jt),ot(jt,je=>Jt.bottomRight=je,()=>Jt==null?void 0:Jt.bottomRight);var ht=A(jt,2),ai=_(ht);{var zo=je=>{No(je,{get ref(){return at.settings},set ref(Rt){at.settings=Rt},children:(Rt,bi)=>{dl(Rt,{get ref$(){return To}})},$$slots:{default:!0}})};V(ai,je=>{s(Vn)&&je(zo)})}var Wo=A(ai,2);{var Qi=je=>{No(je,{get ref(){return at.fullscreen},set ref(Rt){at.fullscreen=Rt},children:(Rt,bi)=>{bd(Rt,{get click(){return e.toggleFullscreen},get isFullscreen(){return j()}})},$$slots:{default:!0}})};V(Wo,je=>{s(Fo)&&je(Qi)})}g(ht),ot(ht,je=>Jt.bottomRight=je,()=>Jt==null?void 0:Jt.bottomRight),g(rn),ot(rn,je=>$e(je),()=>$e());var Un=A(rn,2);ya(Un,{get isAds(){return X()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return L()},get ref(){return at.timeline},set ref(je){at.timeline=je}}),g(dr),g(Uo),ot(Uo,je=>fe(je),()=>fe());var sn=A(Uo,2);{var ur=je=>{Ed(je,{get ref(){return at.interactiveTimeIndicator},set ref(Rt){at.interactiveTimeIndicator=Rt}})};V(sn,je=>{Oo&&je(ur)})}O((je,Rt)=>{Ur=ee(Uo,1,"wrapper-bottom svelte-9xcbwc",null,Ur,je),wr=ee(dr,1,"controls-wrapper svelte-9xcbwc",null,wr,Rt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:j()})]),b(t,Hn),H(),o()}lt(["click"]);function Vd(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C(T,"$isMobile",i),r=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),u=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),y=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,E1),$=m(e,"onDisabledSeekToInteractiveClick",3,E1),T=Ie().ui.isMobile,k=Z(!1);Dt(()=>{let L=setTimeout(()=>B(k,!0),0);return()=>clearTimeout(L)});var P=Fe(),I=ge(P);{var E=L=>{var K=Fe(),z=ge(K);{var U=se=>{dm(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return 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 $()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},Y=se=>{om(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return 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(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};V(z,se=>{n()?se(U):se(Y,!1)})}b(L,K)};V(I,L=>{s(k)&&L(E)})}b(t,P),H(),o()}var f4=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function cm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=f4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}function um(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);cm(t,{get style(){return s(o)}})}var m4=Se('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function pm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=m4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}var v4=Se('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function fm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=v4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}function bu(t,e){let i=m(e,"isOff",3,!1);var o=Fe(),n=ge(o);{var r=d=>{fm(d,{})},l=d=>{pm(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var g4=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function mm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=g4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}function vm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);mm(t,{get style(){return s(o)}})}var h4=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function gm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=h4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),b(t,o)}function hm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);gm(t,{get style(){return s(o)}})}var _4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),b4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),$4=M("<div><!></div>"),y4={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
261
+ }`};function cm(t,e){var Po,Ko;D(e,!0),q(t,p4);let[i,o]=Oe(),n=()=>S(En,"$seekToInteractiveDisabledTooltip$",i),r=()=>S(Kt,"$disabledControls$",i),l=()=>S(Nt,"$playbackState$",i),d=()=>S(mt,"$adPlaybackState",i),a=()=>S(we,"$isEnded$",i),u=()=>S(kt,"$playerSize",i),f=()=>S(ze,"$scrubbingInProgress",i),v=()=>S(hi,"$chromecastState$",i),p=()=>S(Et,"$isPictureInPictureActive",i),b=()=>S(St,"$pictureInPictureType$",i),x=()=>S(Lt,"$mobileNotReportControlHidden$",i),y=()=>S(vo,"$chromecastHidden",i),C=()=>S(Qt,"$playerPhase",i),T=()=>S(qi,"$pipHidden",i),I=()=>S(Ni,"$currentGridType$",i),P=()=>S(Wi,"$vkLogoHidden",i),k=()=>S(Fe,"$isLive$",i),E=()=>S(pi,"$settingsMenuVisible",i),L=()=>S(Je,"$isRewindableLive$",i),K=()=>S(Be,"$isActiveLive$",i),z=()=>S(Co,"$isInteractiveTime$",i),U=()=>S(he,"$isAudioAvailable$",i),Y=()=>S(ko,"$settingButtonRef$",i),se=()=>S(ui,"$startedByKeyboard$",i),j=()=>S(it,"$isFullscreen",i),ue=()=>S(Ri,"$mobileUnmuteButtonVisible",i),le=()=>S(gi,"$volumeHidden",i),Me=()=>S(me,"$muted$",i),Ne=()=>S(ht,"$mobileUnmuteButtonExpanded",i),ve=()=>S(Ki,"$additionalButtons$",i),pe=()=>S(mo,"$autoplayNextToggleHidden",i),Re=()=>S(G,"$crashed$",i),ie=()=>S(jt,"$settingsHidden",i),N=()=>S(ci,"$graphIsOpened$",i),Ye=()=>S(fi,"$adPosition",i),te=()=>S(di,"$adDuration",i),Ke=()=>S(oe,"$position$",i),de=()=>S(Tt,"$duration$",i),fe=m(e,"playerControlsWrapperRef",15,void 0),ye=m(e,"playerControlsRef",15,void 0),X=m(e,"isAds",3,!1),Qe=m(e,"logoTargetUrl",3,""),Xe=m(e,"isOneVideoPlaylist",3,!1),ke=m(e,"customFullscreenSupported",3,!0),ne=Ie(),Ee=fo(),Ge=Wt(),rt=ne.actions.internal.toggleMuted,nt=ne.actions.internal.togglePlay,Rt=ne.actions.internal.pause,et=ne.actions.internal.prevVideoClick,pt=ne.actions.internal.nextVideoClick,Yt=(Po=ne.callbacks)==null?void 0:Po.onAudioDoesNotExistHint,si=(Ko=ne.callbacks)==null?void 0:Ko.onAudioDisabledHint,Qt=ne.playerPhase,Tt=ne.state.duration$,oe=ne.state.positionWithScrubbing$,Nt=ne.state.playbackState$,he=ne.state.isAudioAvailable$,J=ne.state.isAudioDisabled,we=ne.state.isEnded$,Fe=ne.state.isLive$,me=ne.state.muted$,Be=ne.state.isActiveLive$,Je=ne.state.isRewindableLive$,ze=ne.ui.scrubbingInProgress,Lt=ne.ui.mobileNotReportControlHidden$,{isActive$:Et,type$:St}=Ee.pictureInPicture$,ht=ne.ui.mobileUnmuteButtonExpanded,Ri=ne.ui.mobileUnmuteButtonVisible,pi=ne.ui.settingsMenu.visible$,ot=ne.ui.settingsMenu.openedByBtnKeyboard$,Ft=ne.ui.controls,{volume:gi,vkLogo:Wi,autoplayNextToggle:mo,pip:qi,settings:jt,chromecast:vo}=ne.ui.hiddenControls,At=ne.actions.internal.getVideoEpisodes(),ct=ne.webApi.pictureInPictureApi,hi=ne.state.chromecastState$,G=ne.state.crashed$,Kt=Ft.disabledControls$,ui=ne.ui.startedByKeyboard$,Ni=ne.ui.currentGridType$,di=ne.ads.duration,fi=ne.ads.position,mt=ne.ads.playbackState,it=ne.ui.isFullscreen,kt=ne.ui.playerSize,Ki=ne.ui.additionalButtonsDeprecated$,ni=ne.actions.internal.getVideoElement,Jn=ne.actions.internal.replayInteractive,ki=ne.state.isInteractive,Co=ne.state.isInteractiveTime$,wi=ne.state.showInteractiveGraph,$t=ne.state.showSeekToInteractive,Bi=ne.state.showPlayPrevChapter,Ho=ne.state.showInteractiveTimeIndicator,En=Ee.seekToInteractiveDisabledTooltip$,ci=Ee.graphIsOpened$,Pi=ne.ui.controlBlocks,Fo=h(()=>F(ne.state.playPrevChapterDisabledTooltip)),In=h(()=>F(n())),Uo=h(()=>r().has("EPISODE_BUTTON")),To=h(()=>r().has("GRAPH_BUTTON")),vn=h(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),rn=h(()=>r().has("PLAY_BUTTON")),go=h(()=>r().has("REPLAY_BUTTON")),ao=h(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Or=h(()=>l()===T1.PLAYING),hr=h(()=>d()==="paused"),er=h(()=>a()&&!X()&&!ki),tr=h(()=>!a()||X()),ir=h(()=>e.showNextPrevButtons&&!X()&&e.prevButtonActive),kn=h(()=>e.showNextPrevButtons&&!X()&&e.nextButtonActive),rs=h(()=>u().width>300),Pn=h(()=>u().width>400),Si=h(f),An=h(()=>v()!==C1.NOT_AVAILABLE&&!(p()&&b()===1)&&!x()&&!ki&&!y()),sn=h(()=>C()==="LiveWaitingStart"),an=h(()=>!!ct&&v()!==C1.CONNECTED&&!x()&&(b()===1&&s(sn)||!s(sn))&&!s(Si)&&!ki&&!T()),Mn=h(()=>!s(Si)&&Ji(I(),"s")),Ln=h(()=>!e.logoHidden&&u().width>350&&!P()),zo=h(()=>Ge.features.fullscreen&&!(p()&&b()===1)&&(ki?ke():!0)&&!s(Si)),Dr=h(()=>(!k()||X())&&u().width>260&&!s(Si)&&!(Ge.features.interactiveHideTime&&ki)),Vn=h(()=>E()||e.showControls),or=h(()=>!X()&&!k()&&!!(At!=null&&At.length)&&s(rs)&&!s(Uo)&&!s(Si)),Qi=h(()=>!L()||!!K()),Eo=h(()=>wi&&Ji(I(),"m")),lt=ri({}),ti=ri({}),_r=E1(pl,260),Rn=E1(hu,260);qe(()=>{u(),z(),_r(ni(),Ft,lt,e.showControls),Rn(ni(),Pi,ti,e.showControls)});let gn=()=>ne.actions.internal.toggleChromecast();function Oi(){return wt(this,null,function*(){ct!=null&&ct.isActive()?yield ct==null?void 0:ct.remove():yield ct==null?void 0:ct.request()})}function Nn(){(!J&&U()||X())&&Ri.set(!1),Os({isAudioDisabled:J,audioDisabledHintCallback:si,isAudioAvailable:U(),audioIsNotExistHintCallback:Yt,isAds:X()})&&rt()}let Io=Z(""),Bn=(We,Vt)=>{if(!We){B(Io,F("tooltip_live"),!0);return}Vt&&Vt===T1.PAUSED&&B(Io,F("tooltip_play"),!0)};qe(()=>{Bn(s(Qi),l())});let ko=ae();qe(()=>{Y()&&sl(Y(),E(),ot)}),qe(()=>{vu(ui,se(),lt.playButton)});var On=u4(),Dn=ge(On);{var nr=We=>{var Vt=s4(),mi=ge(Vt);let bo;var lo=A(mi,2);let Qo;var to=_(lo);{var Go=Ve=>{let ut=h(()=>U()&&!J&&Ne());_u(Ve,{get muted(){return Me()},get expanded(){return s(ut)},click:Nn,get ref(){return lt.volume},set ref(Gt){lt.volume=Gt}})};V(to,Ve=>{(!U()||ue())&&!le()&&Ve(Go)})}g(lo),tt(lo,Ve=>ti.topLeft=Ve,()=>ti==null?void 0:ti.topLeft);var Ao=A(lo,2);let Yi;var xi=_(Ao);Ti(xi,1,ve,({iconUrl:Ve,ariaLabel:ut,testId:Gt,onClick:Ci,tooltip:io})=>Ve,(Ve,ut)=>{let Gt=()=>s(ut).iconUrl,Ci=()=>s(ut).ariaLabel,io=()=>s(ut).testId,Zi=()=>s(ut).onClick,Cr=()=>s(ut).tooltip,Tr=h(()=>{var oo;return(oo=Ci())!=null?oo:Cr()});rm(Ve,{get iconUrl(){return Gt()},get ariaLabel(){return s(Tr)},get testId(){return io()},get onClick(){return Zi()}})});var Yo=A(xi,2);{var dn=Ve=>{Pd(Ve,{get ref(){return lt.autoplayNextToggle},set ref(ut){lt.autoplayNextToggle=ut}})};V(Yo,Ve=>{e.showAutoplayNext&&!Xe()&&!pe()&&Ve(dn)})}var co=A(Yo,2);{var wr=Ve=>{yd(Ve,{isMobile:!0,click:gn,get state(){return v()},get ref(){return lt.chromecast},set ref(ut){lt.chromecast=ut}})};V(co,Ve=>{s(An)&&Ve(wr)})}var Wr=A(co,2);{var qr=Ve=>{dm(Ve,{click:Oi,get isPictureInPictureActive(){return p()},get ref(){return lt.pip},set ref(ut){lt.pip=ut}})};V(Wr,Ve=>{s(an)&&Ve(qr)})}var hn=A(Wr,2);{var Hn=Ve=>{cl(Ve,{get ref$(){return ko}})};V(hn,Ve=>{Re()&&!ie()&&Ve(Hn)})}var ss=A(hn,2);{var Sr=Ve=>{$d(Ve,{get click(){return Rt},get targetUrl(){return Qe()},get logoClickable(){return e.logoClickable},get ref(){return lt.vkLogo},set ref(ut){lt.vkLogo=ut}})};V(ss,Ve=>{s(Ln)&&Ve(Sr)})}g(Ao),tt(Ao,Ve=>ti.topRight=Ve,()=>ti==null?void 0:ti.topRight);var jo=A(Ao,2);let ji;var Fn=_(jo);{var dr=Ve=>{let ut=h(()=>et.bind(null,!0));xa(Ve,{get click(){return s(ut)},type:"prev",isMobile:!0,get ref(){return lt.prevButton},set ref(Gt){lt.prevButton=Gt}})};V(Fn,Ve=>{s(ir)&&Ve(dr)})}var Kr=A(Fn,2);{var Qr=Ve=>{ml(Ve,{get disabled(){return s(rn)},get click(){return nt},isMobile:!0,get isPlaying(){return s(Or)},get ref(){return lt.playButton},set ref(ut){lt.playButton=ut}})};V(Kr,Ve=>{s(tr)&&Ve(Qr)})}var cr=A(Kr,2);{var as=Ve=>{fl(Ve,{get disabled(){return s(go)},get click(){return nt},isMobile:!0,get ref(){return lt.replayButton},set ref(ut){lt.replayButton=ut}})};V(cr,Ve=>{s(er)&&Ve(as)})}var Se=A(cr,2);{var _e=Ve=>{let ut=h(()=>pt.bind(null,!0));xa(Ve,{get click(){return s(ut)},type:"next",isMobile:!0,get ref(){return lt.nextButton},set ref(Gt){lt.nextButton=Gt}})};V(Se,Ve=>{s(kn)&&Ve(_e)})}g(jo),tt(jo,Ve=>ti.middle=Ve,()=>ti==null?void 0:ti.middle);var ft=A(jo,2);{var Mt=Ve=>{var ut=r4(),Gt=ge(ut);{var Ci=oo=>{var Mi=i4();let _n;Mi.__click=[e4,ao,e,Fo];var Un=_(Mi);let Er=h(()=>!e.showControls);kd(Un,{get hidden(){return s(Er)},get disabled(){return s(ao)},get click(){return e.playPrevChapter},get ref(){return lt.playPrevChapterButton},set ref($o){lt.playPrevChapterButton=$o}}),g(Mi),O($o=>_n=ee(Mi,1,"wrapper-middle-left svelte-9xcbwc",null,_n,$o),[()=>({fullscreen:j(),hidden:!e.showControls})]),$(oo,Mi)};V(Gt,oo=>{Bi&&oo(Ci)})}var io=A(Gt,2);{var Zi=oo=>{var Mi=o4();let _n;var Un=_(Mi);let Er=h(()=>!e.showControls&&!N());Md(Un,{get hidden(){return s(Er)},get disabled(){return s(To)},get click(){return ci.toggle},get graphIsOpened(){return N()},get ref(){return lt.interactiveGraphButton},set ref($o){lt.interactiveGraphButton=$o}}),g(Mi),O($o=>_n=ee(Mi,1,ql(Bi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",_n,$o),[()=>({fullscreen:j(),hidden:!e.showControls&&!N()})]),$(oo,Mi)};V(io,oo=>{s(Eo)&&oo(Zi)})}var Cr=A(io,2);{var Tr=oo=>{var Mi=n4();let _n;Mi.__click=[t4,vn,e,In];var Un=_(Mi);let Er=h(()=>!e.showControls);Ad(Un,{get hidden(){return s(Er)},get disabled(){return s(vn)},get click(){return e.seekToInteractive},get ref(){return lt.seekToInteractiveButton},set ref($o){lt.seekToInteractiveButton=$o}}),g(Mi),O($o=>_n=ee(Mi,1,"wrapper-middle-right svelte-9xcbwc",null,_n,$o),[()=>({fullscreen:j(),hidden:!e.showControls})]),$(oo,Mi)};V(Cr,oo=>{$t&&oo(Tr)})}$(Ve,ut)};V(ft,Ve=>{ki&&!f()&&Ve(Mt)})}O((Ve,ut,Gt,Ci)=>{bo=ee(mi,1,"overlay-mobile svelte-9xcbwc",null,bo,Ve),Qo=ee(lo,1,"wrapper-top-left svelte-9xcbwc",null,Qo,ut),Yi=ee(Ao,1,"wrapper-top-right svelte-9xcbwc",null,Yi,Gt),ji=ee(jo,1,"wrapper-middle svelte-9xcbwc",null,ji,Ci)},[()=>({hidden:!s(Vn)}),()=>({hidden:!e.showControls,fullscreen:j()}),()=>({hidden:!e.showControls&&!x(),fullscreen:j()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(We,Vt)};V(Dn,We=>{X()||We(nr)})}var br=A(Dn,2);{var rr=We=>{var Vt=d4(),mi=ge(Vt);{var bo=Yi=>{var xi=a4();let Yo;var dn=_(xi);_u(dn,{get muted(){return Me()},expanded:!1,click:Nn,get ref(){return lt.volume},set ref(co){lt.volume=co}}),g(xi),O(co=>Yo=ee(xi,1,"wrapper-top-right svelte-9xcbwc",null,Yo,co),[()=>({fullscreen:j()})]),$(Yi,xi)};V(mi,Yi=>{ue()&&Yi(bo)})}var lo=A(mi,2);{var Qo=Yi=>{var xi=l4(),Yo=_(xi);let dn=h(()=>!s(hr));ml(Yo,{get disabled(){return s(rn)},get click(){return nt},isMobile:!0,get isPlaying(){return s(dn)},get ref(){return lt.playButton},set ref(co){lt.playButton=co}}),g(xi),$(Yi,xi)};V(lo,Yi=>{s(hr)&&Yi(Qo)})}var to=A(lo,2);let Go;var Ao=_(to);xd(Ao,{get position(){return Ye()},get duration(){return te()}}),g(to),O(Yi=>Go=ee(to,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Go,Yi),[()=>({fullscreen:j()})]),$(We,Vt)};V(br,We=>{X()&&d()!=="inactive"&&We(rr)})}var Wo=A(br,2);let Hr;var sr=_(Wo);let $r;var ln=_(sr);ee(ln,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var Zt=_(ln),ho=_(Zt);{var yr=We=>{Do(We,{get disabled(){return s(go)},get ref(){return lt.replayButton},set ref(Vt){lt.replayButton=Vt},children:(Vt,mi)=>{fl(Vt,{get disabled(){return s(go)},get click(){return Jn}})},$$slots:{default:!0}})};V(ho,We=>{ki&&We(yr)})}var xr=A(ho,2);{var qo=We=>{Do(We,{get ref(){return lt.liveButton},set ref(Vt){lt.liveButton=Vt},children:(Vt,mi)=>{Ld(Vt,{get isLiveActive(){return s(Qi)},isMobile:!0,get ariaLabel(){return s(Io)}})},$$slots:{default:!0}})};V(xr,We=>{!X()&&k()&&We(qo)})}var Ai=A(xr,2);{var Fr=We=>{let Vt=h(()=>X()?Ye():Ke()),mi=h(()=>X()?te():de());hd(We,{get showDuration(){return s(Pn)},get position(){return s(Vt)},get duration(){return s(mi)},isMobile:!0,get ref(){return lt.time},set ref(bo){lt.time=bo}})};V(Ai,We=>{s(Dr)&&We(Fr)})}var Ur=A(Ai,2);let zr=h(()=>!s(or));Do(Ur,{className:"w-max",get disabled(){return s(zr)},get ref(){return lt.episodes},set ref(We){lt.episodes=We},children:(We,Vt)=>{var mi=Ue(),bo=ge(mi);{var lo=Qo=>{var to=c4(),Go=A(ge(to),2);wd(Go,{get position(){return Ke()},get duration(){return de()},get timeCodes(){return At}}),$(Qo,to)};V(bo,Qo=>{s(or)&&Qo(lo)})}$(We,mi)},$$slots:{default:!0}}),g(Zt),tt(Zt,We=>ti.bottomRight=We,()=>ti==null?void 0:ti.bottomRight);var ar=A(Zt,2),lr=_(ar);{var vt=We=>{Do(We,{get ref(){return lt.settings},set ref(Vt){lt.settings=Vt},children:(Vt,mi)=>{cl(Vt,{get ref$(){return ko}})},$$slots:{default:!0}})};V(lr,We=>{s(Mn)&&We(vt)})}var Xt=A(lr,2);{var $i=We=>{Do(We,{get ref(){return lt.fullscreen},set ref(Vt){lt.fullscreen=Vt},children:(Vt,mi)=>{bd(Vt,{get click(){return e.toggleFullscreen},get isFullscreen(){return j()}})},$$slots:{default:!0}})};V(Xt,We=>{s(zo)&&We($i)})}g(ar),tt(ar,We=>ti.bottomRight=We,()=>ti==null?void 0:ti.bottomRight),g(ln),tt(ln,We=>ye(We),()=>ye());var Gi=A(ln,2);$a(Gi,{get isAds(){return X()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return L()},get ref(){return lt.timeline},set ref(We){lt.timeline=We}}),g(sr),g(Wo),tt(Wo,We=>fe(We),()=>fe());var yi=A(Wo,2);{var _o=We=>{Ed(We,{get ref(){return lt.interactiveTimeIndicator},set ref(Vt){lt.interactiveTimeIndicator=Vt}})};V(yi,We=>{Ho&&We(_o)})}O((We,Vt)=>{Hr=ee(Wo,1,"wrapper-bottom svelte-9xcbwc",null,Hr,We),$r=ee(sr,1,"controls-wrapper svelte-9xcbwc",null,$r,Vt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:j()})]),$(t,On),H(),o()}dt(["click"]);function Vd(t,e){D(e,!0);let[i,o]=Oe(),n=()=>S(T,"$isMobile",i),r=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),u=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),b=m(e,"endScreenShown",3,!1),x=m(e,"onDisabledPlayPrevChapterClick",3,I1),y=m(e,"onDisabledSeekToInteractiveClick",3,I1),T=Ie().ui.isMobile,I=Z(!1);Ht(()=>{let L=setTimeout(()=>B(I,!0),0);return()=>clearTimeout(L)});var P=Ue(),k=ge(P);{var E=L=>{var K=Ue(),z=ge(K);{var U=se=>{cm(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return 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 b()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return x()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},Y=se=>{nm(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return 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(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};V(z,se=>{n()?se(U):se(Y,!1)})}$(L,K)};V(k,L=>{s(I)&&L(E)})}$(t,P),H(),o()}var f4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function um(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=f4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}function pm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);um(t,{get style(){return s(o)}})}var m4=Te('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function fm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=m4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}var v4=Te('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function mm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=v4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}function bu(t,e){let i=m(e,"isOff",3,!1);var o=Ue(),n=ge(o);{var r=d=>{mm(d,{})},l=d=>{fm(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}$(t,o)}var g4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function vm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=g4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}function gm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);vm(t,{get style(){return s(o)}})}var h4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function hm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=h4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(2),g(o),$(t,o)}function _m(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);hm(t,{get style(){return s(o)}})}var _4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),b4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),$4=M("<div><!></div>"),y4={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
262
262
  animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
263
263
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
264
264
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -273,23 +273,23 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=k_;var hs=new Map;hs.set(Vh.EN,Mh)
273
273
  @keyframes svelte-1ad3n06-fadeOut {
274
274
  0% {opacity:1;}
275
275
  100% {opacity:0;}
276
- }`};function _m(t,e){D(e,!0),q(t,y4);let[i,o]=Oe(),n=()=>C(e.data,"$data",i),l=Ie().ui.t,d=h(()=>!n()),a=h(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),u=h(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=h(()=>{var S;return(S=n())==null?void 0:S.type}),v=h(()=>{var S,T;return(S=n())!=null&&S.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var p=$4();let y;var w=_(p);{var $=S=>{var T=b4(),k=ge(T),P=_(k);{var I=de=>{let fe=h(()=>s(f)==="FORWARD_SEEK");um(de,{get reversed(){return s(fe)}})};V(P,de=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(f))&&de(I)})}var E=A(P,2);{var L=de=>{xs(de,{})};V(E,de=>{s(f)==="PAUSE"&&de(L)})}var K=A(E,2);{var z=de=>{Or(de,{})};V(K,de=>{s(f)==="PLAY"&&de(z)})}var U=A(K,2);{var Y=de=>{Id(de,{})};V(U,de=>{s(f)==="REPLAY"&&de(Y)})}var se=A(U,2);{var j=de=>{bu(de,{isOff:!0})};V(se,de=>{s(f)==="SUBTITLES_OFF"&&de(j)})}var ue=A(se,2);{var le=de=>{bu(de,{})};V(ue,de=>{s(f)==="SUBTITLES_ON"&&de(le)})}var Me=A(ue,2);{var Re=de=>{let fe=h(()=>s(f)==="RATE_UP");vm(de,{get reversed(){return s(fe)}})};V(Me,de=>{["RATE_DOWN","RATE_UP"].includes(s(f))&&de(Re)})}var ve=A(Me,2);{var pe=de=>{let fe=h(()=>s(f)==="EPISODE_NEXT");hm(de,{get reversed(){return s(fe)}})};V(ve,de=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(f))&&de(pe)})}var Ve=A(ve,2);{var ie=de=>{Fs(de,{volume:0})};V(Ve,de=>{s(f)==="MUTE"&&de(ie)})}var N=A(Ve,2);{var Ge=de=>{Fs(de,{volume:1})};V(N,de=>{s(f)==="VOLUME"&&de(Ge)})}g(k);var te=A(k,2);{var qe=de=>{var fe=_4(),$e=_(fe,!0);g(fe),O(()=>_e($e,s(v))),b(de,fe)};V(te,de=>{s(v)&&de(qe)})}b(S,T)};V(w,S=>{!s(d)&&s(f)&&S($)})}g(p),O(S=>y=ee(p,1,"hot-key-helpers-container svelte-1ad3n06",null,y,S),[()=>({hidden:s(d),"hot-key-helpers-container--left":s(a),"hot-key-helpers-container--right":s(u)})]),b(t,p),H(),o()}var x4=Se('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function bm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=x4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var w4=Se('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function $m(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=w4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}function Ws(t,e){D(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=h(()=>["up","down"].includes(i())),r=h(()=>["right","down"].includes(i())),l=h(()=>(()=>{let v="";return s(r)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Fe(),a=ge(d);{var u=v=>{let p=h(()=>s(r)?"chevron-icon--down":"chevron-icon--up");bm(v,{get style(){return s(l)},get"data-testid"(){return s(p)}})},f=v=>{let p=h(()=>s(r)?"chevron-icon--right":"chevron-icon--left");$m(v,{get style(){return s(l)},get"data-testid"(){return s(p)}})};V(a,v=>{s(n)?v(u):v(f,!1)})}b(t,d),H()}var C4=(t,e,i,o,n,r)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":r();break}},S4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},T4=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>'),E4={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 Rd(t,e){D(e,!0),q(t,E4);let i=m(e,"isShifted",3,!1),o=Ie(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=F("aria_label_spherical_control");var v=T4();let p;v.__keydown=[C4,n,r,l,a,d],v.__keyup=[S4,n,u];var y=_(v),w=_(y),$=_(w);$.__mousedown=r,$.__mouseup=u;var S=_($);Ws(S,{direction:"up",useBtnColor:!0}),g($);var T=A($,2);T.__mousedown=d,T.__mouseup=u;var k=_(T);Ws(k,{direction:"up",useBtnColor:!0}),g(T),g(w);var P=A(w,2),I=_(P);I.__mousedown=a,I.__mouseup=u;var E=_(I);Ws(E,{direction:"up",useBtnColor:!0}),g(I);var L=A(I,2);L.__mousedown=l,L.__mouseup=u;var K=_(L);Ws(K,{direction:"up",useBtnColor:!0}),g(L),g(P),g(y),g(v),O(z=>{p=ee(v,1,"immersive-controls svelte-1yzc86r",null,p,z),Be(v,"aria-label",f)},[()=>({"m-shifted":i()})]),Ct("mouseleave",$,u),Ct("mouseleave",T,u),Ct("mouseleave",I,u),Ct("mouseleave",L,u),b(t,v),H()}lt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as k1,Subscription as I4,filterChanged as k4,filter as P4}from"@vkontakte/videoplayer-shared/es2015";var I1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var $u=class{constructor(){this.flickeringTimeout=I1(1e3);this.subscriptions=new I4;this.isAuto=!1;this.isLive=!1;this.captions$=new k1([]);this.captionsPrepared$=new k1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(P4(()=>this.isEnabled()),k4()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:r,value:l},d)=>(o&&!d||(r==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var A4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),M4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),L4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),V4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),R4=M("<div><!></div>"),N4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
277
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ta(t,e){D(e,!0),q(t,N4);let[i,o]=Oe(),n=()=>C(v,"$currentSubtitle$",i),r=()=>C(y,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(p,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),u=Ie(),f=zt(),v=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,y=u.state.isLive$,w=u.ui.isFullscreen,$=h(()=>!!n().isAuto),S=h(()=>!!r()),T=h(()=>e.playerSize.width*.02),k=h(()=>a()&&!l()||s(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:s(T)),P=Z(null);We(()=>{var Y,se,j;(Y=s(P))==null||Y.setIsAuto(s($)),(se=s(P))==null||se.setIsLive(s(S)),(j=s(P))==null||j.setCaptions(e.captions)});let I=Z(ri([[]]));Dt(()=>{B(P,new $u().subscribe(),!0);let Y=s(P).captionsPrepared$.subscribe(se=>{B(I,se,!0)});return()=>{var se;(se=s(P))==null||se.destroy(),Y.unsubscribe()}}),Dt(()=>{if(s($)){let Y=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Y)}}else p.set(!1)});let E=h(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var L=R4();let K;var z=_(L);{var U=Y=>{var se=V4();let j;var ue=_(se),le=_(ue);{var Me=ve=>{var pe=A4(),Ve=_(pe),ie=_(Ve,!0);g(Ve),g(pe),O(N=>{var Ge;st(Ve,`font-size: ${(Ge=s(k))!=null?Ge:""}px`),_e(ie,N)},[()=>F("subtitles_auto_caption")]),b(ve,pe)},Re=(ve,pe)=>{{var Ve=N=>{var Ge=Fe(),te=ge(Ge);wi(te,17,()=>s(I),zl,(qe,de)=>{var fe=M4(),$e=_(fe);wi($e,21,()=>s(de),({value:X,timeAppeared:Ke})=>Ke,(X,Ke)=>{let Xe=()=>s(Ke).value,ke=()=>s(Ke).timeAppeared;var ne=Fe(),Ee=ge(ne);{var Qe=rt=>{var nt=es();O(()=>_e(nt,Xe())),b(rt,nt)};V(Ee,rt=>{(!ke()||ke()<=e.position)&&rt(Qe)})}b(X,ne)}),g($e),g(fe),O(()=>{var X;return st($e,`font-size: ${(X=s(k))!=null?X:""}px`)}),b(qe,fe)}),b(N,Ge)},ie=N=>{var Ge=Fe(),te=ge(Ge);wi(te,17,()=>e.captions,({value:qe})=>qe,(qe,de)=>{let fe=()=>s(de).value;var $e=L4(),X=_($e),Ke=_(X,!0);g(X),g($e),O(()=>{var Xe;st(X,`font-size: ${(Xe=s(k))!=null?Xe:""}px`),_e(Ke,fe())}),b(qe,$e)}),b(N,Ge)};V(ve,N=>{var Ge;s($)&&((Ge=s(I))!=null&&Ge.length)?N(Ve):N(ie,!1)},pe)}};V(le,ve=>{s($)&&d()?ve(Me):ve(Re,!1)})}g(ue),g(se),O(ve=>{var pe;j=ee(se,1,"subtitles-caption svelte-c2x749",null,j,ve),st(se,`--subtitles-caption-margin: ${(pe=s(E))!=null?pe:""}%`)},[()=>({mobile:a()})]),b(Y,se)};V(z,Y=>{var se;(e.captions.length||(se=s(I))!=null&&se.length)&&Y(U)})}g(L),O(Y=>K=ee(L,1,"subtitles-container svelte-c2x749",null,K,Y),[()=>({shifted:e.shifted,auto:s($)&&!s(S)&&!d()})]),b(t,L),H(),o()}var B4=M('<div class="text svelte-raurnb"> </div>'),O4=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>'),D4={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function Nd(t,e){D(e,!0),q(t,D4);let i=zt();var o=O4();let n;var r=A(_(o),2);{var l=d=>{var a=B4(),u=_(a);g(a),O(()=>{var f;return _e(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(r,d=>{e.chromecastDeviceName&&d(l)})}g(o),O(d=>{n=ee(o,1,"wrapper svelte-raurnb",null,n,d),st(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),H()}var H4=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function ym(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=H4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var F4=M('<div class="container svelte-13zpvm8"><!></div>'),U4={hash:"svelte-13zpvm8",code:".container.svelte-13zpvm8 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}"};function Bd(t){q(t,U4);var e=F4(),i=_(e);ym(i,{}),g(e),b(t,e)}var z4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),W4=M("<div><!></div>"),q4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
276
+ }`};function bm(t,e){D(e,!0),q(t,y4);let[i,o]=Oe(),n=()=>S(e.data,"$data",i),l=Ie().ui.t,d=h(()=>!n()),a=h(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),u=h(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),f=h(()=>{var C;return(C=n())==null?void 0:C.type}),v=h(()=>{var C,T;return(C=n())!=null&&C.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var p=$4();let b;var x=_(p);{var y=C=>{var T=b4(),I=ge(T),P=_(I);{var k=de=>{let fe=h(()=>s(f)==="FORWARD_SEEK");pm(de,{get reversed(){return s(fe)}})};V(P,de=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(f))&&de(k)})}var E=A(P,2);{var L=de=>{ys(de,{})};V(E,de=>{s(f)==="PAUSE"&&de(L)})}var K=A(E,2);{var z=de=>{Nr(de,{})};V(K,de=>{s(f)==="PLAY"&&de(z)})}var U=A(K,2);{var Y=de=>{Id(de,{})};V(U,de=>{s(f)==="REPLAY"&&de(Y)})}var se=A(U,2);{var j=de=>{bu(de,{isOff:!0})};V(se,de=>{s(f)==="SUBTITLES_OFF"&&de(j)})}var ue=A(se,2);{var le=de=>{bu(de,{})};V(ue,de=>{s(f)==="SUBTITLES_ON"&&de(le)})}var Me=A(ue,2);{var Ne=de=>{let fe=h(()=>s(f)==="RATE_UP");gm(de,{get reversed(){return s(fe)}})};V(Me,de=>{["RATE_DOWN","RATE_UP"].includes(s(f))&&de(Ne)})}var ve=A(Me,2);{var pe=de=>{let fe=h(()=>s(f)==="EPISODE_NEXT");_m(de,{get reversed(){return s(fe)}})};V(ve,de=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(f))&&de(pe)})}var Re=A(ve,2);{var ie=de=>{Ds(de,{volume:0})};V(Re,de=>{s(f)==="MUTE"&&de(ie)})}var N=A(Re,2);{var Ye=de=>{Ds(de,{volume:1})};V(N,de=>{s(f)==="VOLUME"&&de(Ye)})}g(I);var te=A(I,2);{var Ke=de=>{var fe=_4(),ye=_(fe,!0);g(fe),O(()=>be(ye,s(v))),$(de,fe)};V(te,de=>{s(v)&&de(Ke)})}$(C,T)};V(x,C=>{!s(d)&&s(f)&&C(y)})}g(p),O(C=>b=ee(p,1,"hot-key-helpers-container svelte-1ad3n06",null,b,C),[()=>({hidden:s(d),"hot-key-helpers-container--left":s(a),"hot-key-helpers-container--right":s(u)})]),$(t,p),H(),o()}var x4=Te('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function $m(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=x4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var w4=Te('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function ym(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=w4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}function Us(t,e){D(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=h(()=>["up","down"].includes(i())),r=h(()=>["right","down"].includes(i())),l=h(()=>(()=>{let v="";return s(r)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Ue(),a=ge(d);{var u=v=>{let p=h(()=>s(r)?"chevron-icon--down":"chevron-icon--up");$m(v,{get style(){return s(l)},get"data-testid"(){return s(p)}})},f=v=>{let p=h(()=>s(r)?"chevron-icon--right":"chevron-icon--left");ym(v,{get style(){return s(l)},get"data-testid"(){return s(p)}})};V(a,v=>{s(n)?v(u):v(f,!1)})}$(t,d),H()}var S4=(t,e,i,o,n,r)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":r();break}},C4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},T4=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>'),E4={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 Rd(t,e){D(e,!0),q(t,E4);let i=m(e,"isShifted",3,!1),o=Ie(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=F("aria_label_spherical_control");var v=T4();let p;v.__keydown=[S4,n,r,l,a,d],v.__keyup=[C4,n,u];var b=_(v),x=_(b),y=_(x);y.__mousedown=r,y.__mouseup=u;var C=_(y);Us(C,{direction:"up",useBtnColor:!0}),g(y);var T=A(y,2);T.__mousedown=d,T.__mouseup=u;var I=_(T);Us(I,{direction:"up",useBtnColor:!0}),g(T),g(x);var P=A(x,2),k=_(P);k.__mousedown=a,k.__mouseup=u;var E=_(k);Us(E,{direction:"up",useBtnColor:!0}),g(k);var L=A(k,2);L.__mousedown=l,L.__mouseup=u;var K=_(L);Us(K,{direction:"up",useBtnColor:!0}),g(L),g(P),g(b),g(v),O(z=>{p=ee(v,1,"immersive-controls svelte-1yzc86r",null,p,z),De(v,"aria-label",f)},[()=>({"m-shifted":i()})]),Ct("mouseleave",y,u),Ct("mouseleave",T,u),Ct("mouseleave",k,u),Ct("mouseleave",L,u),$(t,v),H()}dt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as P1,Subscription as I4,filterChanged as k4,filter as P4}from"@vkontakte/videoplayer-shared/es2015";var k1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var $u=class{constructor(){this.flickeringTimeout=k1(1e3);this.subscriptions=new I4;this.isAuto=!1;this.isLive=!1;this.captions$=new P1([]);this.captionsPrepared$=new P1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(P4(()=>this.isEnabled()),k4()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:r,value:l},d)=>(o&&!d||(r==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var A4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),M4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),L4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),V4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),R4=M("<div><!></div>"),N4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
277
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ca(t,e){D(e,!0),q(t,N4);let[i,o]=Oe(),n=()=>S(v,"$currentSubtitle$",i),r=()=>S(b,"$isLive$",i),l=()=>S(x,"$isFullscreen",i),d=()=>S(p,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),u=Ie(),f=Wt(),v=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,b=u.state.isLive$,x=u.ui.isFullscreen,y=h(()=>!!n().isAuto),C=h(()=>!!r()),T=h(()=>e.playerSize.width*.02),I=h(()=>a()&&!l()||s(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:s(T)),P=Z(null);qe(()=>{var Y,se,j;(Y=s(P))==null||Y.setIsAuto(s(y)),(se=s(P))==null||se.setIsLive(s(C)),(j=s(P))==null||j.setCaptions(e.captions)});let k=Z(ri([[]]));Ht(()=>{B(P,new $u().subscribe(),!0);let Y=s(P).captionsPrepared$.subscribe(se=>{B(k,se,!0)});return()=>{var se;(se=s(P))==null||se.destroy(),Y.unsubscribe()}}),Ht(()=>{if(s(y)){let Y=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Y)}}else p.set(!1)});let E=h(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var L=R4();let K;var z=_(L);{var U=Y=>{var se=V4();let j;var ue=_(se),le=_(ue);{var Me=ve=>{var pe=A4(),Re=_(pe),ie=_(Re,!0);g(Re),g(pe),O(N=>{var Ye;at(Re,`font-size: ${(Ye=s(I))!=null?Ye:""}px`),be(ie,N)},[()=>F("subtitles_auto_caption")]),$(ve,pe)},Ne=(ve,pe)=>{{var Re=N=>{var Ye=Ue(),te=ge(Ye);Ti(te,17,()=>s(k),zl,(Ke,de)=>{var fe=M4(),ye=_(fe);Ti(ye,21,()=>s(de),({value:X,timeAppeared:Qe})=>Qe,(X,Qe)=>{let Xe=()=>s(Qe).value,ke=()=>s(Qe).timeAppeared;var ne=Ue(),Ee=ge(ne);{var Ge=rt=>{var nt=Jr();O(()=>be(nt,Xe())),$(rt,nt)};V(Ee,rt=>{(!ke()||ke()<=e.position)&&rt(Ge)})}$(X,ne)}),g(ye),g(fe),O(()=>{var X;return at(ye,`font-size: ${(X=s(I))!=null?X:""}px`)}),$(Ke,fe)}),$(N,Ye)},ie=N=>{var Ye=Ue(),te=ge(Ye);Ti(te,17,()=>e.captions,({value:Ke})=>Ke,(Ke,de)=>{let fe=()=>s(de).value;var ye=L4(),X=_(ye),Qe=_(X,!0);g(X),g(ye),O(()=>{var Xe;at(X,`font-size: ${(Xe=s(I))!=null?Xe:""}px`),be(Qe,fe())}),$(Ke,ye)}),$(N,Ye)};V(ve,N=>{var Ye;s(y)&&((Ye=s(k))!=null&&Ye.length)?N(Re):N(ie,!1)},pe)}};V(le,ve=>{s(y)&&d()?ve(Me):ve(Ne,!1)})}g(ue),g(se),O(ve=>{var pe;j=ee(se,1,"subtitles-caption svelte-c2x749",null,j,ve),at(se,`--subtitles-caption-margin: ${(pe=s(E))!=null?pe:""}%`)},[()=>({mobile:a()})]),$(Y,se)};V(z,Y=>{var se;(e.captions.length||(se=s(k))!=null&&se.length)&&Y(U)})}g(L),O(Y=>K=ee(L,1,"subtitles-container svelte-c2x749",null,K,Y),[()=>({shifted:e.shifted,auto:s(y)&&!s(C)&&!d()})]),$(t,L),H(),o()}var B4=M('<div class="text svelte-raurnb"> </div>'),O4=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>'),D4={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function Nd(t,e){D(e,!0),q(t,D4);let i=Wt();var o=O4();let n;var r=A(_(o),2);{var l=d=>{var a=B4(),u=_(a);g(a),O(()=>{var f;return be(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:""}`)}),$(d,a)};V(r,d=>{e.chromecastDeviceName&&d(l)})}g(o),O(d=>{n=ee(o,1,"wrapper svelte-raurnb",null,n,d),at(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),H()}var H4=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function xm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=H4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var F4=M('<div class="container svelte-13zpvm8"><!></div>'),U4={hash:"svelte-13zpvm8",code:".container.svelte-13zpvm8 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}"};function Bd(t){q(t,U4);var e=F4(),i=_(e);xm(i,{}),g(e),$(t,e)}var z4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),W4=M("<div><!></div>"),q4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
278
278
  visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
279
- transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Ea(t,e){D(e,!0),q(t,q4);let i=m(e,"iconVisible",3,!0),o=Ie(),n=zt(),r=o.ui.startedByKeyboard$,l=F("tooltip_play"),d=y=>{var $;let w=y.code;["Enter","Space"].includes(w)&&(y.stopPropagation(),y.preventDefault(),r.set(!0),($=e.startVideo)==null||$.call(e))},a=y=>{var w;y.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var u=W4();let f;u.__click=a;var v=_(u);{var p=y=>{var w=z4();w.__keydown=d;var $=A(_(w),2);Or($,{}),g(w),O(()=>Be(w,"aria-label",l)),b(y,w)};V(v,y=>{i()&&y(p)})}return g(u),O(y=>{f=ee(u,1,"container svelte-1ciju45",null,f,y),st(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,u),H({handlePressKey:d,handleClick:a})}lt(["click","keydown"]);var K4=M('<div data-testid="video_title"><span> </span></div>'),Q4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
279
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Ta(t,e){D(e,!0),q(t,q4);let i=m(e,"iconVisible",3,!0),o=Ie(),n=Wt(),r=o.ui.startedByKeyboard$,l=F("tooltip_play"),d=b=>{var y;let x=b.code;["Enter","Space"].includes(x)&&(b.stopPropagation(),b.preventDefault(),r.set(!0),(y=e.startVideo)==null||y.call(e))},a=b=>{var x;b.stopPropagation(),(x=e.startVideo)==null||x.call(e)};var u=W4();let f;u.__click=a;var v=_(u);{var p=b=>{var x=z4();x.__keydown=d;var y=A(_(x),2);Nr(y,{}),g(x),O(()=>De(x,"aria-label",l)),$(b,x)};V(v,b=>{i()&&b(p)})}return g(u),O(b=>{f=ee(u,1,"container svelte-1ciju45",null,f,b),at(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,u),H({handlePressKey:d,handleClick:a})}dt(["click","keydown"]);var K4=M('<div data-testid="video_title"><span> </span></div>'),Q4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
280
280
  0deg,
281
281
  rgba(0, 0, 0, 0) 0%,
282
282
  rgba(0, 0, 0, 0.02) 19%,
283
283
  rgba(0, 0, 0, 0.1) 34%,
284
284
  rgba(0, 0, 0, 0.4) 60%,
285
285
  rgba(0, 0, 0, 0.6) 100%
286
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function xm(t,e){D(e,!0),q(t,Q4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),r=Z(void 0);Dt(()=>{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=s(r))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=s(r))==null?void 0:p.removeEventListener("transitionend",f)}});var l=K4();let d;var a=_(l),u=_(a,!0);g(a),ot(a,f=>n(f),()=>n()),g(l),ot(l,f=>B(r,f),()=>s(r)),O(f=>{d=ee(l,1,"title svelte-14hk510",null,d,f),_e(u,i())},[()=>({hidden:o()})]),b(t,l),H()}var G4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),Y4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),j4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),Z4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),X4=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),J4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function wm(t,e){D(e,!0),q(t,J4);let i=Z(""),o=Z(""),n=Z(""),r=Z(""),l,d=P=>String(P).padStart(2,"0"),a=P=>{let I=Math.floor(P/86400);I&&(P-=I*86400,B(i,d(I),!0));let E=Math.floor(P/3600);B(o,d(E),!0);let L=Math.floor(P/60)%60;B(n,d(L),!0);let K=P%60;B(r,d(K),!0)},u=()=>{let P=Math.floor(Date.now()/1e3),I=e.startTime-P;a(I),I>=1?l=requestAnimationFrame(u):e.onTimerOver()};Dt(()=>{l=requestAnimationFrame(u)}),Tn(()=>{cancelAnimationFrame(l)});var f=X4(),v=_(f);{var p=P=>{var I=G4(),E=ge(I),L=_(E),K=_(L,!0);g(L);var z=A(L,2),U=_(z,!0);g(z),g(E);var Y=A(E,2),se=_(Y,!0);g(Y),O((j,ue)=>{_e(K,s(i)),_e(U,j),_e(se,ue)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(P,I)};V(v,P=>{s(i)&&P(p)})}var y=A(v,2);{var w=P=>{var I=Y4(),E=ge(I),L=_(E),K=_(L,!0);g(L);var z=A(L,2),U=_(z,!0);g(z),g(E);var Y=A(E,2),se=_(Y,!0);g(Y),O((j,ue)=>{_e(K,s(o)),_e(U,j),_e(se,ue)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(P,I)};V(y,P=>{s(o)&&P(w)})}var $=A(y,2);{var S=P=>{var I=j4(),E=ge(I),L=_(E),K=_(L,!0);g(L);var z=A(L,2),U=_(z,!0);g(z),g(E);var Y=A(E,2),se=_(Y,!0);g(Y),O((j,ue)=>{_e(K,s(n)),_e(U,j),_e(se,ue)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(P,I)};V($,P=>{s(n)&&P(S)})}var T=A($,2);{var k=P=>{var I=Z4(),E=_(I),L=_(E,!0);g(E);var K=A(E,2),z=_(K,!0);g(K),g(I),O(U=>{_e(L,s(r)),_e(z,U)},[()=>F("waiting_live_second_value")]),b(P,I)};V(T,P=>{s(r)&&P(k)})}g(f),b(t,f),H()}var e3=Se('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function Cm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=e3();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(4),g(o),b(t,o)}var t3=M('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),i3=M('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),o3=M('<div class="waiting-container svelte-15pewff"><!></div>'),n3={hash:"svelte-15pewff",code:".waiting-container.svelte-15pewff {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-15pewff::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.upcoming.svelte-15pewff {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.upcoming-icon.svelte-15pewff {width:20%;max-width:200px;margin-bottom:20px;}.upcoming__title.svelte-15pewff {font-size:14px;line-height:1.2;font-weight:400;}.waiting-timer.svelte-15pewff {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-15pewff {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-15pewff {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function Od(t,e){D(e,!0),q(t,n3);let i=Z(!1);We(()=>{B(i,e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3),!0)});var o=o3(),n=_(o);{var r=d=>{var a=t3(),u=_(a),f=_(u);Cm(f,{}),g(u);var v=A(u,2),p=_(v,!0);g(v),g(a),O(y=>_e(p,y),[()=>F("waiting_live_upcoming_title")]),b(d,a)},l=d=>{var a=i3(),u=_(a),f=_(u,!0);g(u);var v=A(u,2);let p=h(()=>e.startTime||0);wm(v,{get startTime(){return s(p)},onTimerOver:()=>B(i,!0)}),g(a),O(y=>_e(f,y),[()=>F("waiting_live_timer_title")]),b(d,a)};V(n,d=>{s(i)?d(r):d(l,!1)})}g(o),O(()=>st(o,`background-image: url(${s(i)?"":e.thumbUrl})`)),b(t,o),H()}var r3=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),s3={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 Ia(t,e){D(e,!0),q(t,s3);let i=m(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=h(()=>o[e.kind]||"");var r=r3(),l=_(r),d=_(l);_a(d,{style:"position: static; transform: translate(0, 0)"});var a=A(d,2),u=_(a,!0);g(a),g(l),g(r),O(()=>{st(r,`background-image: url('${i()}')`),_e(u,s(n))}),b(t,r),H()}var a3=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function Sm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=a3();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var l3=M('<div class="select-icon svelte-124aexk"><!></div>'),d3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Dd(t){q(t,d3);var e=l3(),i=_(e);Sm(i,{}),g(e),b(t,e)}var c3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},u3=(t,e)=>{sl(t,()=>e.item.selectItem(e.item.value))},p3=M("<p> </p>"),f3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),m3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),v3={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
286
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function wm(t,e){D(e,!0),q(t,Q4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),r=Z(void 0);Ht(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var b;p.propertyName==="transform"&&((b=e.onVisibilityChanged)==null||b.call(e,!o()))}return(v=s(r))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=s(r))==null?void 0:p.removeEventListener("transitionend",f)}});var l=K4();let d;var a=_(l),u=_(a,!0);g(a),tt(a,f=>n(f),()=>n()),g(l),tt(l,f=>B(r,f),()=>s(r)),O(f=>{d=ee(l,1,"title svelte-14hk510",null,d,f),be(u,i())},[()=>({hidden:o()})]),$(t,l),H()}var G4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),Y4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),j4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),Z4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),X4=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),J4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function Sm(t,e){D(e,!0),q(t,J4);let i=Z(""),o=Z(""),n=Z(""),r=Z(""),l,d=P=>String(P).padStart(2,"0"),a=P=>{let k=Math.floor(P/86400);k&&(P-=k*86400,B(i,d(k),!0));let E=Math.floor(P/3600);B(o,d(E),!0);let L=Math.floor(P/60)%60;B(n,d(L),!0);let K=P%60;B(r,d(K),!0)},u=()=>{let P=Math.floor(Date.now()/1e3),k=e.startTime-P;a(k),k>=1?l=requestAnimationFrame(u):e.onTimerOver()};Ht(()=>{l=requestAnimationFrame(u)}),Sn(()=>{cancelAnimationFrame(l)});var f=X4(),v=_(f);{var p=P=>{var k=G4(),E=ge(k),L=_(E),K=_(L,!0);g(L);var z=A(L,2),U=_(z,!0);g(z),g(E);var Y=A(E,2),se=_(Y,!0);g(Y),O((j,ue)=>{be(K,s(i)),be(U,j),be(se,ue)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),$(P,k)};V(v,P=>{s(i)&&P(p)})}var b=A(v,2);{var x=P=>{var k=Y4(),E=ge(k),L=_(E),K=_(L,!0);g(L);var z=A(L,2),U=_(z,!0);g(z),g(E);var Y=A(E,2),se=_(Y,!0);g(Y),O((j,ue)=>{be(K,s(o)),be(U,j),be(se,ue)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),$(P,k)};V(b,P=>{s(o)&&P(x)})}var y=A(b,2);{var C=P=>{var k=j4(),E=ge(k),L=_(E),K=_(L,!0);g(L);var z=A(L,2),U=_(z,!0);g(z),g(E);var Y=A(E,2),se=_(Y,!0);g(Y),O((j,ue)=>{be(K,s(n)),be(U,j),be(se,ue)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),$(P,k)};V(y,P=>{s(n)&&P(C)})}var T=A(y,2);{var I=P=>{var k=Z4(),E=_(k),L=_(E,!0);g(E);var K=A(E,2),z=_(K,!0);g(K),g(k),O(U=>{be(L,s(r)),be(z,U)},[()=>F("waiting_live_second_value")]),$(P,k)};V(T,P=>{s(r)&&P(I)})}g(f),$(t,f),H()}var e3=Te('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function Cm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=e3();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(4),g(o),$(t,o)}var t3=M('<div class="waiting svelte-63nfxp"><div class="waiting-icon svelte-63nfxp"><!></div> <span class="waiting__title svelte-63nfxp"> </span></div>'),i3=M('<div class="upcoming-timer timer svelte-63nfxp"><span class="timer__title svelte-63nfxp"> </span> <!></div>'),o3=M('<div class="waiting-container svelte-63nfxp"><!></div>'),n3={hash:"svelte-63nfxp",code:".waiting-container.svelte-63nfxp {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-63nfxp::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.waiting.svelte-63nfxp {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.waiting-icon.svelte-63nfxp {width:20%;max-width:200px;margin-bottom:20px;}.waiting__title.svelte-63nfxp {font-size:14px;line-height:1.2;font-weight:400;}.upcoming-timer.svelte-63nfxp {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-63nfxp {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-63nfxp {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function Od(t,e){D(e,!0),q(t,n3);let[i,o]=Oe(),n=()=>S(e.playerSize,"$playerSize",i),r=h(()=>e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)),l=Z(void 0),d=Z(void 0);qe(()=>{e.playerSize&&n(),s(r)?requestAnimationFrame(()=>{var p,b;s(d)&&((p=e.onUpcomingLiveStateChanged)==null||p.call(e,s(d),!1)),s(d)&&((b=e.onWaitingLiveStateChanged)==null||b.call(e,s(d),!0))}):requestAnimationFrame(()=>{var p,b;s(d)&&((p=e.onUpcomingLiveStateChanged)==null||p.call(e,s(d),!0)),s(d)&&((b=e.onWaitingLiveStateChanged)==null||b.call(e,s(d),!1))})});var a=o3(),u=_(a);{var f=p=>{var b=t3(),x=_(b),y=_(x);Cm(y,{}),g(x);var C=A(x,2),T=_(C,!0);g(C),g(b),tt(b,I=>B(l,I),()=>s(l)),O(I=>be(T,I),[()=>F("waiting_live_upcoming_title")]),$(p,b)},v=p=>{var b=i3(),x=_(b),y=_(x,!0);g(x);var C=A(x,2);let T=h(()=>e.startTime||0);Sm(C,{get startTime(){return s(T)},onTimerOver:()=>B(r,!0)}),g(b),tt(b,I=>B(d,I),()=>s(d)),O(I=>be(y,I),[()=>F("waiting_live_timer_title")]),$(p,b)};V(u,p=>{s(r)?p(f):p(v,!1)})}g(a),O(()=>at(a,`background-image: url(${s(r)?"":e.thumbUrl})`)),$(t,a),H(),o()}var r3=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),s3={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 Ea(t,e){D(e,!0),q(t,s3);let i=m(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=h(()=>o[e.kind]||"");var r=r3(),l=_(r),d=_(l);ha(d,{style:"position: static; transform: translate(0, 0)"});var a=A(d,2),u=_(a,!0);g(a),g(l),g(r),O(()=>{at(r,`background-image: url('${i()}')`),be(u,s(n))}),$(t,r),H()}var a3=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function Tm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=a3();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var l3=M('<div class="select-icon svelte-124aexk"><!></div>'),d3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Dd(t){q(t,d3);var e=l3(),i=_(e);Tm(i,{}),g(e),$(t,e)}var c3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},u3=(t,e)=>{al(t,()=>e.item.selectItem(e.item.value))},p3=M("<p> </p>"),f3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),m3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),v3={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
287
287
 
288
288
  /**
289
289
  * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
290
290
  * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
291
291
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
292
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Tm(t,e){D(e,!0),q(t,v3);let i=m(e,"isMobile",3,!1);var o=m3();let n;o.__click=[c3,e],o.__keydown=[u3,e];var r=_(o);{var l=w=>{Dd(w,{})};V(r,w=>{e.item.selected&&w(l)})}var d=A(r,2);let a;var u=_(d);{var f=w=>{var $=Fe(),S=ge($);Ci(S,()=>e.item.valueComponent,(T,k)=>{k(T,gs(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),b(w,$)},v=w=>{var $=p3();let S;var T=_($,!0);g($),O(k=>{var P;S=ee($,1,"label svelte-1t7rx2m",null,S,k),_e(T,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),b(w,$)};V(u,w=>{e.item.valueComponent?w(f):w(v,!1)})}var p=A(u,2);{var y=w=>{var $=f3(),S=_($,!0);g($),O(()=>_e(S,e.item.sublabel)),b(w,$)};V(p,w=>{e.item.sublabel&&w(y)})}g(d),g(o),O((w,$,S)=>{n=ee(o,1,"item",null,n,w),Be(o,"data-value",e.item.value),Be(o,"aria-label",$),Be(o,"data-testid",e.item.dataTestid),a=ee(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),Be(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,$;return($=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?$:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),H()}lt(["click","keydown"]);var g3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Em(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=h(()=>()=>e.openSubMenuList(e.item.children)),r=h(()=>$=>Xc($,s(n)));var l=g3();let d;l.__click=function(...$){var S;(S=s(n))==null||S.apply(this,$)},l.__keydown=function(...$){var S;(S=s(r))==null||S.apply(this,$)};var a=_(l);{var u=$=>{Dd($,{})};V(a,$=>{e.item.selected&&$(u)})}var f=A(a,2);let v;var p=_(f);{var y=$=>{var S=Fe();let T=h(()=>e.item.valueComponent);var k=ge(S);Ci(k,()=>s(T),(P,I)=>{I(P,gs(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b($,S)},w=$=>{var S=es();O(()=>_e(S,e.item.label)),b($,S)};V(p,$=>{e.item.valueComponent?$(y):$(w,!1)})}g(f),g(l),ot(l,$=>o(o()[e.item.id]=$,!0),()=>{var $;return($=o())==null?void 0:$[e.item.id]}),O(($,S)=>{var T;d=ee(l,1,"item",null,d,$),Be(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Be(l,"data-testid",e.item.id),v=ee(f,1,"menu-item-value",null,v,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),H()}lt(["click","keydown"]);var Dr={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var _3=(t,e)=>{Yh(t,e.returnFromSubMenu,e.closeSettingsMenu)},b3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},$3=(t,e)=>{sd(t)&&(br(t),e.returnFromSubMenu())},y3=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>'),x3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
292
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Em(t,e){D(e,!0),q(t,v3);let i=m(e,"isMobile",3,!1);var o=m3();let n;o.__click=[c3,e],o.__keydown=[u3,e];var r=_(o);{var l=x=>{Dd(x,{})};V(r,x=>{e.item.selected&&x(l)})}var d=A(r,2);let a;var u=_(d);{var f=x=>{var y=Ue(),C=ge(y);Ei(C,()=>e.item.valueComponent,(T,I)=>{I(T,vs(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),$(x,y)},v=x=>{var y=p3();let C;var T=_(y,!0);g(y),O(I=>{var P;C=ee(y,1,"label svelte-1t7rx2m",null,C,I),be(T,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),$(x,y)};V(u,x=>{e.item.valueComponent?x(f):x(v,!1)})}var p=A(u,2);{var b=x=>{var y=f3(),C=_(y,!0);g(y),O(()=>be(C,e.item.sublabel)),$(x,y)};V(p,x=>{e.item.sublabel&&x(b)})}g(d),g(o),O((x,y,C)=>{n=ee(o,1,"item",null,n,x),De(o,"data-value",e.item.value),De(o,"aria-label",y),De(o,"data-testid",e.item.dataTestid),a=ee(d,1,"menu-item-value svelte-1t7rx2m",null,a,C),De(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var x,y;return(y=(x=e.item.ariaLabel)!=null?x:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),H()}dt(["click","keydown"]);var g3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Im(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=h(()=>()=>e.openSubMenuList(e.item.children)),r=h(()=>y=>Xc(y,s(n)));var l=g3();let d;l.__click=function(...y){var C;(C=s(n))==null||C.apply(this,y)},l.__keydown=function(...y){var C;(C=s(r))==null||C.apply(this,y)};var a=_(l);{var u=y=>{Dd(y,{})};V(a,y=>{e.item.selected&&y(u)})}var f=A(a,2);let v;var p=_(f);{var b=y=>{var C=Ue();let T=h(()=>e.item.valueComponent);var I=ge(C);Ei(I,()=>s(T),(P,k)=>{k(P,vs(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),$(y,C)},x=y=>{var C=Jr();O(()=>be(C,e.item.label)),$(y,C)};V(p,y=>{e.item.valueComponent?y(b):y(x,!1)})}g(f),g(l),tt(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),O((y,C)=>{var T;d=ee(l,1,"item",null,d,y),De(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),De(l,"data-testid",e.item.id),v=ee(f,1,"menu-item-value",null,v,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),H()}dt(["click","keydown"]);var Br={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var _3=(t,e)=>{jh(t,e.returnFromSubMenu,e.closeSettingsMenu)},b3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},$3=(t,e)=>{sd(t)&&(gr(t),e.returnFromSubMenu())},y3=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>'),x3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
293
293
  /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
294
294
  /**
295
295
  * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
@@ -299,14 +299,14 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=k_;var hs=new Map;hs.set(Vh.EN,Mh)
299
299
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
300
300
  1px
301
301
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
302
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function km(t,e){D(e,!0),q(t,x3);let[i,o]=Oe(),n=()=>C(v,"$isFullscreen",i),r=()=>C(p,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),u=m(e,"listRef",15);Dt(()=>{let j=e.items.findIndex(ue=>ue.selected);u().children[j+1].focus()});let f=Ie(),v=f.ui.isFullscreen,p=f.ui.playerSize,y=Z(void 0),w=Z(0),$=Z(0),S=h(()=>l()&&n()?`max-height: ${Math.round(r().height*.6)}px`:l()?"":`max-height: ${r().height-32-s($)-d()}px; overflow: auto;`),T=h(()=>Math.max(e.minWidth,s(w)));var k=y3();let P;var I=_(k);let E;I.__keydown=[_3,e];var L=_(I);let K;L.__click=[b3,e],L.__keydown=[$3,e];var z=_(L);Ws(z,{direction:"left"});var U=A(z,2),Y=_(U,!0);g(U),g(L),ot(L,j=>B(y,j),()=>s(y));var se=A(L,2);wi(se,17,()=>e.items,zl,(j,ue)=>{var le=Fe(),Me=ge(le);{var Re=pe=>{Tm(pe,{get item(){return s(ue)},get isMobile(){return l()}})},ve=(pe,Ve)=>{{var ie=N=>{Em(N,{get isMobile(){return l()},get item(){return s(ue)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(pe,N=>{s(ue).type==="OPEN_SUB_MENU"&&N(ie)},Ve)}};V(Me,pe=>{s(ue).type==="SELECT_VALUE"?pe(Re):pe(ve,!1)})}b(j,le)}),g(I),ot(I,j=>u(j),()=>u()),g(k),O((j,ue,le)=>{P=ee(k,1,"sub-menu menu svelte-7dfsuh",null,P,j),Be(k,"data-testid",`sub-menu-${e.id}`),st(k,`min-width: ${s(T)}px`),E=ee(I,1,"items svelte-7dfsuh",null,E,ue),st(I,s(S)),K=ee(L,1,"item header back svelte-7dfsuh",null,K,le),Be(L,"aria-label",a()),_e(Y,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),ts(L,"clientWidth",j=>B(w,j)),ts(L,"clientHeight",j=>B($,j)),b(t,k),H(),o()}lt(["keydown","click"]);import{noop as w3}from"@vkontakte/videoplayer-shared/es2015";var C3=(t,e)=>Xc(t,e()),S3=(t,e)=>{t.stopPropagation(),e()()},T3=M('<div class="value svelte-1ikfjte"> </div>'),E3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),I3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Pm(t,e){D(e,!0),q(t,I3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,w3),n=m(e,"valueComponent",3,void 0),r=m(e,"ref",15);var l=E3();let d;l.__click=[S3,o],l.__keydown=[C3,o];var a=_(l),u=_(a);{var f=T=>{Ca(T,{get icon(){return e.icon}})},v=T=>{var k=Fe();let P=h(()=>e.icon);var I=ge(k);Ci(I,()=>s(P),(E,L)=>{L(E,{})}),b(T,k)};V(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var p=A(a,2),y=_(p,!0);g(p);var w=A(p,2);{var $=T=>{var k=Fe();let P=h(n);var I=ge(k);Ci(I,()=>s(P),(E,L)=>{L(E,{})}),b(T,k)},S=T=>{var k=T3(),P=_(k,!0);g(k),O(()=>_e(P,e.value)),b(T,k)};V(w,T=>{n()?T($):T(S,!1)})}g(l),ot(l,T=>r(T),()=>r()),O(T=>{d=ee(l,1,"item",null,d,T),Be(l,"aria-label",e.ariaLabel),Be(l,"data-testid",e.id),_e(y,e.label)},[()=>({mobile:i()})]),b(t,l),H()}lt(["click","keydown"]);import{noop as A1}from"@vkontakte/videoplayer-shared/es2015";var k3=(t,e)=>{sl(t,()=>e())},P3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),A3=M('<img class="icon" aria-hidden="true"/>'),M3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),L3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Am(t,e){D(e,!0),q(t,L3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,A1),n=m(e,"closeSettings",3,A1),r=Z(!1),l=()=>{B(r,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=M3();let u;a.__click=d,a.__keydown=[k3,d];var f=_(a),v=_(f);{var p=S=>{var T=Fe(),k=ge(T);{var P=E=>{var L=P3();b(E,L)},I=E=>{var L=A3();O(()=>Be(L,"src",e.icon)),Ct("error",L,l),na(L),b(E,L)};V(k,E=>{s(r)?E(P):E(I,!1)})}b(S,T)},y=S=>{var T=Fe();let k=h(()=>e.icon);var P=ge(T);Ci(P,()=>s(k),(I,E)=>{E(I,{})}),b(S,T)};V(v,S=>{typeof e.icon=="string"?S(p):S(y,!1)})}g(f);var w=A(f,2),$=_(w,!0);g(w),g(a),O(S=>{var T;u=ee(a,1,"item",null,u,S),Be(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Be(a,"data-testid",e.id),_e($,e.label)},[()=>({mobile:i()})]),b(t,a),H()}lt(["click","keydown"]);import{noop as N3}from"@vkontakte/videoplayer-shared/es2015";var V3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),R3={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 Mm(t,e){q(t,R3);let i=m(e,"enabled",3,!1);var o=V3(),n=_(o);let r;Ce(2),g(o),O(l=>r=ee(n,1,"toggle svelte-17wbjko",null,r,l),[()=>({on:i()})]),b(t,o)}var B3=(t,e,i)=>{jh(t,e(),o=>i()(o))},O3=(t,e,i)=>{t.stopPropagation(),e()(!i())},D3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),H3=M('<li role="menuitem" tabindex="0"><!></li>');function Lm(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,N3),n=m(e,"enabled",3,!1),r=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=H3();let a;d.__click=[O3,o,n],d.__keydown=[B3,n,o];var u=_(d);ba(u,{get content(){return r()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=D3();let y;var w=_(p),$=_(w);{var S=E=>{Ca(E,{get icon(){return e.icon}})},T=E=>{var L=Fe();let K=h(()=>e.icon);var z=ge(L);Ci(z,()=>s(K),(U,Y)=>{Y(U,{})}),b(E,L)};V($,E=>{typeof e.icon=="string"?E(S):E(T,!1)})}g(w);var k=A(w,2),P=_(k,!0);g(k);var I=A(k,2);Mm(I,{get enabled(){return n()}}),g(p),O(E=>{y=ee(p,1,"switch-wrapper",null,y,E),_e(P,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),g(d),O(f=>{var v;a=ee(d,1,"item switch-item",null,a,f),Be(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Be(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),H()}lt(["click","keydown"]);import{isValidURL as cx,VideoQuality as U1}from"@vkontakte/videoplayer-shared/es2015";var M1=()=>{let t=Z(ri([])),e=h(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{B(t,s(t).slice(0,-1),!0)},popAllSubMenus:()=>{B(t,[],!0)}}};var F3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),U3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),z3={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 ka(t,e){D(e,!0),q(t,z3);let i=m(e,"isSubCase",3,!1),o=h(()=>ou(e.quality));var n=U3(),r=_(n);let l;var d=_(r,!0);g(r);var a=A(r,2);{var u=f=>{var v=F3();let p=h(()=>s(o));var y=_(v);Ci(y,()=>s(p),(w,$)=>{$(w,{})}),g(v),b(f,v)};V(a,f=>{s(o)&&!e.isMobile&&f(u)})}g(n),O(f=>{l=ee(r,1,"svelte-t2qk8t",null,l,f),_e(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),H()}import{VideoQuality as W3}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as L1}from"@vkontakte/videoplayer-core/es2015";var V1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},R1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=V1({quality:t,availableQualities:e});return i?t===L1.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},N1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===L1.INVARIANT?i:`${i}${V1({quality:t,availableQualities:e})}`:"...";var q3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),K3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function ml(t,e){D(e,!0),q(t,K3);let[i,o]=Oe(),n=()=>C(a,"$currentQuality$",i),r=()=>C(u,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Ie(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=h(()=>e.prefix+(e.selected&&n()!==W3.INVARIANT?v:"")),y=h(()=>N1({prefix:s(p),quality:n(),availableQualities:r(),onlyPrefix:!e.selected}));var w=q3(),$=_(w);let S=h(()=>e.selected?n():void 0);ka($,{get quality(){return s(S)},get label(){return s(y)},get isMobile(){return l()},isSubCase:!0}),g(w),b(t,w),H(),o()}var Q3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",r=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${r}`,"g")},G3={br:!0,span:!0},Vm=(t,e={})=>{var d,a,u,f,v,p,y;if(!t)return t;let i=W(W({},G3),e),o=Object.keys(i);if(!o.length)return t;let n=Q3(o),r=[],l=0;for(let w of t.matchAll(n)){let $=w[0],S=((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[S]){r.push(t.slice(l,T)),l=T+$.length;continue}let k=(v=w.groups)!=null&&v.childrenhtml?Vm(w.groups.childrenhtml,i):"",P=(p=w.groups)!=null&&p.childrenhtml?$.replace(new RegExp((y=w.groups)==null?void 0:y.childrenhtml),()=>k||""):$;r.push(t.slice(l,T),P),l=T+$.length}return l===0?t:(r.push(t.slice(l)),r.join(""))};function Hd(t,e){D(e,!1);let i=m(e,"message",8),o=Vm(i());Rr();var n=Fe(),r=ge(n);{var l=d=>{var a=Fe(),u=ge(a);Wl(u,()=>o),b(d,a)};V(r,d=>{o&&d(l)})}b(t,n),H()}var Y3=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),j3={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 Rm(t,e){D(e,!1),q(t,j3),Rr();var i=Y3(),o=_(i);let n=Ar(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Hd(o,{get message(){return s(n)}}),g(i),b(t,i),H()}var O1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:ml,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},Nm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?ml:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),D1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Rm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Bm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?ml:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),Om=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:F("traffic_saving_quality"),valueComponent:t?ml:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var yu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),xu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=cu(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let a=yu(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=yu(t,d);return F("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=yu(t,d);return F("audio_stream_display_language_index",{language:n,index:a})}}let r=yu(t,e);return F("audio_stream_display_unknown",{index:r})};var Z3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,r=[];return i&&r.push({handler:Nm,selected:e&&!o&&!n||!1}),r.push({handler:Om,selected:o},{handler:Bm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[D1(t),...r.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),O1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:ka,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:r=>e(r,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Nm,selected:((i=Fc())==null?void 0:i.type)==="auto_quality"},{handler:Om,selected:((o=Fc())==null?void 0:o.type)==="traffic_saving"},{handler:Bm,selected:((n=Fc())==null?void 0:n.type)==="high_quality"}].map(({handler:r,selected:l})=>r({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:xu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===fu?"sub_off":void 0}))})},H1=({subMenuId:t,context:e})=>t?[Z3[t](e)]:[];var X3=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Dm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=X3();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var J3=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Hm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=J3();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var ex=Se('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function Fm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ex();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var tx=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function Um(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=tx();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var ix=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function zm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ix();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var ox=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function wu(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ox();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var nx=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function Wm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=nx();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var rx=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),sx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function qm(t,e){D(e,!0),q(t,sx);let[i,o]=Oe(),n=()=>C(u,"$currentQuality$",i),r=()=>C(f,"$availableQualities$",i),l=()=>C(v,"$isAutoQualityEnabled$",i),d=()=>C(p,"$isMobile$",i),a=Ie(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,y=h(()=>R1({quality:n(),availableQualities:r(),isAutoQualityEnabled:l()}));var w=rx(),$=_(w);ka($,{get quality(){return n()},get label(){return s(y)},get isMobile(){return d()}}),g(w),b(t,w),H(),o()}var lx={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:vd,label:F("menu_quality"),value:e,valueComponent:qm,weight:Dr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Dr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:Dm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=xu(t,e);return{id:"AUDIO_LANGUAGES",weight:Dr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:Hm,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Dr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:Fm,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Dr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:gd,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Dr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:Um}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Dr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:zm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Dr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:wu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Dr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:wu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Dr["debug-info"],type:"CLICK",onClick:t,ariaLabel:F("aria_label_menu_debug_overlay"),label:F("menu_debug_overlay"),icon:Wm,isHiddenFor:["desktop"]})},F1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>lx[n](e)),...i.map(n=>Ot(W({},n),{isAdditional:!0}))].filter(n=>{var r,l,d;return!((r=n==null?void 0:n.isHiddenFor)!=null&&r.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(va)};var ux=(t,e)=>{Zc(t,e)},px=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),fx=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),mx=M("<div><!> <!></div>"),vx={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
302
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Pm(t,e){D(e,!0),q(t,x3);let[i,o]=Oe(),n=()=>S(v,"$isFullscreen",i),r=()=>S(p,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),u=m(e,"listRef",15);Ht(()=>{let j=e.items.findIndex(ue=>ue.selected);u().children[j+1].focus()});let f=Ie(),v=f.ui.isFullscreen,p=f.ui.playerSize,b=Z(void 0),x=Z(0),y=Z(0),C=h(()=>l()&&n()?`max-height: ${Math.round(r().height*.6)}px`:l()?"":`max-height: ${r().height-32-s(y)-d()}px; overflow: auto;`),T=h(()=>Math.max(e.minWidth,s(x)));var I=y3();let P;var k=_(I);let E;k.__keydown=[_3,e];var L=_(k);let K;L.__click=[b3,e],L.__keydown=[$3,e];var z=_(L);Us(z,{direction:"left"});var U=A(z,2),Y=_(U,!0);g(U),g(L),tt(L,j=>B(b,j),()=>s(b));var se=A(L,2);Ti(se,17,()=>e.items,zl,(j,ue)=>{var le=Ue(),Me=ge(le);{var Ne=pe=>{Em(pe,{get item(){return s(ue)},get isMobile(){return l()}})},ve=(pe,Re)=>{{var ie=N=>{Im(N,{get isMobile(){return l()},get item(){return s(ue)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(pe,N=>{s(ue).type==="OPEN_SUB_MENU"&&N(ie)},Re)}};V(Me,pe=>{s(ue).type==="SELECT_VALUE"?pe(Ne):pe(ve,!1)})}$(j,le)}),g(k),tt(k,j=>u(j),()=>u()),g(I),O((j,ue,le)=>{P=ee(I,1,"sub-menu menu svelte-7dfsuh",null,P,j),De(I,"data-testid",`sub-menu-${e.id}`),at(I,`min-width: ${s(T)}px`),E=ee(k,1,"items svelte-7dfsuh",null,E,ue),at(k,s(C)),K=ee(L,1,"item header back svelte-7dfsuh",null,K,le),De(L,"aria-label",a()),be(Y,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),es(L,"clientWidth",j=>B(x,j)),es(L,"clientHeight",j=>B(y,j)),$(t,I),H(),o()}dt(["keydown","click"]);import{noop as w3}from"@vkontakte/videoplayer-shared/es2015";var S3=(t,e)=>Xc(t,e()),C3=(t,e)=>{t.stopPropagation(),e()()},T3=M('<div class="value svelte-1ikfjte"> </div>'),E3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),I3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Am(t,e){D(e,!0),q(t,I3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,w3),n=m(e,"valueComponent",3,void 0),r=m(e,"ref",15);var l=E3();let d;l.__click=[C3,o],l.__keydown=[S3,o];var a=_(l),u=_(a);{var f=T=>{wa(T,{get icon(){return e.icon}})},v=T=>{var I=Ue();let P=h(()=>e.icon);var k=ge(I);Ei(k,()=>s(P),(E,L)=>{L(E,{})}),$(T,I)};V(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var p=A(a,2),b=_(p,!0);g(p);var x=A(p,2);{var y=T=>{var I=Ue();let P=h(n);var k=ge(I);Ei(k,()=>s(P),(E,L)=>{L(E,{})}),$(T,I)},C=T=>{var I=T3(),P=_(I,!0);g(I),O(()=>be(P,e.value)),$(T,I)};V(x,T=>{n()?T(y):T(C,!1)})}g(l),tt(l,T=>r(T),()=>r()),O(T=>{d=ee(l,1,"item",null,d,T),De(l,"aria-label",e.ariaLabel),De(l,"data-testid",e.id),be(b,e.label)},[()=>({mobile:i()})]),$(t,l),H()}dt(["click","keydown"]);import{noop as M1}from"@vkontakte/videoplayer-shared/es2015";var k3=(t,e)=>{al(t,()=>e())},P3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),A3=M('<img class="icon" aria-hidden="true"/>'),M3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),L3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Mm(t,e){D(e,!0),q(t,L3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,M1),n=m(e,"closeSettings",3,M1),r=Z(!1),l=()=>{B(r,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var a=M3();let u;a.__click=d,a.__keydown=[k3,d];var f=_(a),v=_(f);{var p=C=>{var T=Ue(),I=ge(T);{var P=E=>{var L=P3();$(E,L)},k=E=>{var L=A3();O(()=>De(L,"src",e.icon)),Ct("error",L,l),oa(L),$(E,L)};V(I,E=>{s(r)?E(P):E(k,!1)})}$(C,T)},b=C=>{var T=Ue();let I=h(()=>e.icon);var P=ge(T);Ei(P,()=>s(I),(k,E)=>{E(k,{})}),$(C,T)};V(v,C=>{typeof e.icon=="string"?C(p):C(b,!1)})}g(f);var x=A(f,2),y=_(x,!0);g(x),g(a),O(C=>{var T;u=ee(a,1,"item",null,u,C),De(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),De(a,"data-testid",e.id),be(y,e.label)},[()=>({mobile:i()})]),$(t,a),H()}dt(["click","keydown"]);import{noop as N3}from"@vkontakte/videoplayer-shared/es2015";var V3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),R3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function Lm(t,e){q(t,R3);let i=m(e,"enabled",3,!1);var o=V3(),n=_(o);let r;Ce(2),g(o),O(l=>r=ee(n,1,"toggle svelte-17wbjko",null,r,l),[()=>({on:i()})]),$(t,o)}var B3=(t,e,i)=>{Zh(t,e(),o=>i()(o))},O3=(t,e,i)=>{t.stopPropagation(),e()(!i())},D3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),H3=M('<li role="menuitem" tabindex="0"><!></li>');function Vm(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,N3),n=m(e,"enabled",3,!1),r=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=H3();let a;d.__click=[O3,o,n],d.__keydown=[B3,n,o];var u=_(d);_a(u,{get content(){return r()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=D3();let b;var x=_(p),y=_(x);{var C=E=>{wa(E,{get icon(){return e.icon}})},T=E=>{var L=Ue();let K=h(()=>e.icon);var z=ge(L);Ei(z,()=>s(K),(U,Y)=>{Y(U,{})}),$(E,L)};V(y,E=>{typeof e.icon=="string"?E(C):E(T,!1)})}g(x);var I=A(x,2),P=_(I,!0);g(I);var k=A(I,2);Lm(k,{get enabled(){return n()}}),g(p),O(E=>{b=ee(p,1,"switch-wrapper",null,b,E),be(P,e.label)},[()=>({mobile:i()})]),$(f,p)},$$slots:{default:!0}}),g(d),O(f=>{var v;a=ee(d,1,"item switch-item",null,a,f),De(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),H()}dt(["click","keydown"]);import{isValidURL as cx,VideoQuality as z1}from"@vkontakte/videoplayer-shared/es2015";var L1=()=>{let t=Z(ri([])),e=h(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{B(t,s(t).slice(0,-1),!0)},popAllSubMenus:()=>{B(t,[],!0)}}};var F3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),U3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),z3={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 Ia(t,e){D(e,!0),q(t,z3);let i=m(e,"isSubCase",3,!1),o=h(()=>ou(e.quality));var n=U3(),r=_(n);let l;var d=_(r,!0);g(r);var a=A(r,2);{var u=f=>{var v=F3();let p=h(()=>s(o));var b=_(v);Ei(b,()=>s(p),(x,y)=>{y(x,{})}),g(v),$(f,v)};V(a,f=>{s(o)&&!e.isMobile&&f(u)})}g(n),O(f=>{l=ee(r,1,"svelte-t2qk8t",null,l,f),be(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),H()}import{VideoQuality as W3}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as V1}from"@vkontakte/videoplayer-core/es2015";var R1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},N1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=R1({quality:t,availableQualities:e});return i?t===V1.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},B1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===V1.INVARIANT?i:`${i}${R1({quality:t,availableQualities:e})}`:"...";var q3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),K3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function vl(t,e){D(e,!0),q(t,K3);let[i,o]=Oe(),n=()=>S(a,"$currentQuality$",i),r=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=Ie(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=h(()=>e.prefix+(e.selected&&n()!==W3.INVARIANT?v:"")),b=h(()=>B1({prefix:s(p),quality:n(),availableQualities:r(),onlyPrefix:!e.selected}));var x=q3(),y=_(x);let C=h(()=>e.selected?n():void 0);Ia(y,{get quality(){return s(C)},get label(){return s(b)},get isMobile(){return l()},isSubCase:!0}),g(x),$(t,x),H(),o()}var Q3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",r=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${r}`,"g")},G3={br:!0,span:!0},Rm=(t,e={})=>{var d,a,u,f,v,p,b;if(!t)return t;let i=W(W({},G3),e),o=Object.keys(i);if(!o.length)return t;let n=Q3(o),r=[],l=0;for(let x of t.matchAll(n)){let y=x[0],C=((d=x.groups)==null?void 0:d.keyhtml)||((a=x.groups)==null?void 0:a.keyi18n)||((u=x.groups)==null?void 0:u.keyhtmlself)||((f=x.groups)==null?void 0:f.keyi18nself)||"",{index:T}=x;if(!i[C]){r.push(t.slice(l,T)),l=T+y.length;continue}let I=(v=x.groups)!=null&&v.childrenhtml?Rm(x.groups.childrenhtml,i):"",P=(p=x.groups)!=null&&p.childrenhtml?y.replace(new RegExp((b=x.groups)==null?void 0:b.childrenhtml),()=>I||""):y;r.push(t.slice(l,T),P),l=T+y.length}return l===0?t:(r.push(t.slice(l)),r.join(""))};function Hd(t,e){D(e,!1);let i=m(e,"message",8),o=Rm(i());Vr();var n=Ue(),r=ge(n);{var l=d=>{var a=Ue(),u=ge(a);Wl(u,()=>o),$(d,a)};V(r,d=>{o&&d(l)})}$(t,n),H()}var Y3=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),j3={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 Nm(t,e){D(e,!1),q(t,j3),Vr();var i=Y3(),o=_(i);let n=Pr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Hd(o,{get message(){return s(n)}}),g(i),$(t,i),H()}var D1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:vl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},Bm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?vl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),H1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Nm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Om=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?vl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),Dm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:F("traffic_saving_quality"),valueComponent:t?vl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var yu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),xu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=cu(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let a=yu(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=yu(t,d);return F("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=yu(t,d);return F("audio_stream_display_language_index",{language:n,index:a})}}let r=yu(t,e);return F("audio_stream_display_unknown",{index:r})};var Z3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,r=[];return i&&r.push({handler:Bm,selected:e&&!o&&!n||!1}),r.push({handler:Dm,selected:o},{handler:Om,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[H1(t),...r.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),D1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Ia,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:r=>e(r,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Bm,selected:((i=Fc())==null?void 0:i.type)==="auto_quality"},{handler:Dm,selected:((o=Fc())==null?void 0:o.type)==="traffic_saving"},{handler:Om,selected:((n=Fc())==null?void 0:n.type)==="high_quality"}].map(({handler:r,selected:l})=>r({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:xu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===fu?"sub_off":void 0}))})},F1=({subMenuId:t,context:e})=>t?[Z3[t](e)]:[];var X3=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Hm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=X3();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var J3=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Fm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=J3();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var ex=Te('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function Um(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ex();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var tx=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function zm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=tx();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var ix=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function Wm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ix();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var ox=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function wu(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ox();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var nx=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function qm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=nx();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var rx=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),sx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Km(t,e){D(e,!0),q(t,sx);let[i,o]=Oe(),n=()=>S(u,"$currentQuality$",i),r=()=>S(f,"$availableQualities$",i),l=()=>S(v,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=Ie(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,b=h(()=>N1({quality:n(),availableQualities:r(),isAutoQualityEnabled:l()}));var x=rx(),y=_(x);Ia(y,{get quality(){return n()},get label(){return s(b)},get isMobile(){return d()}}),g(x),$(t,x),H(),o()}var lx={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:vd,label:F("menu_quality"),value:e,valueComponent:Km,weight:Br["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Br["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:Hm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=xu(t,e);return{id:"AUDIO_LANGUAGES",weight:Br["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:Fm,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Br["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:Um,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Br["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:gd,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Br.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:zm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Br.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:Wm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Br["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:wu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Br["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:wu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Br["debug-info"],type:"CLICK",onClick:t,ariaLabel:F("aria_label_menu_debug_overlay"),label:F("menu_debug_overlay"),icon:qm,isHiddenFor:["desktop"]})},U1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>lx[n](e)),...i.map(n=>Dt(W({},n),{isAdditional:!0}))].filter(n=>{var r,l,d;return!((r=n==null?void 0:n.isHiddenFor)!=null&&r.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(ma)};var ux=(t,e)=>{Zc(t,e)},px=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),fx=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),mx=M("<div><!> <!></div>"),vx={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
303
303
  /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
304
304
  .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
305
305
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
306
- .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Fd(t,e){D(e,!0),q(t,vx);let[i,o]=Oe(),n=()=>C(Ke,"$settingsMenuVisible",i),r=()=>C(Xe,"$settingsMenuOpenedByKeyboard",i),l=()=>C(et,"$debugPanelVisible",i),d=()=>C(ne,"$isMobile",i),a=()=>C(Lt,"$playerSize",i),u=()=>C(X,"$hasMpegSources$",i),f=()=>C(Ee,"$mobileNotReportControlHidden$",i),v=()=>C(ie,"$autoQualityLimitingAvailable$",i),p=()=>C(fe,"$availableSubtitlesList$",i),y=()=>C(Qe,"$isLiveWithPlaybackSpeed",i),w=()=>C(ve,"$availableAudioStreams$",i),$=()=>C(qe,"$availablePlaybackRates$",i),S=()=>C(Re,"$currentAudioStream$",i),T=()=>C(te,"$currentPlaybackRate$",i),k=()=>C(rt,"$trafficSavingEnabled",i),P=()=>C(pe,"$currentQuality$",i),I=()=>C(N,"$isAutoQualityEnabled$",i),E=()=>C(de,"$currentSubtitle$",i),L=()=>C(Gt,"$additionalSettingsMenuItems$",i),K=()=>C(Ge,"$isAutoQualityAvailable$",i),z=()=>C(Ve,"$availableQualities$",i),U=()=>C(nt,"$highQualityEnabled",i),Y=m(e,"ref",15,void 0),se=m(e,"playerControlsHeight",3,0),j=ri({}),ue=ri({}),le=Ie(),Me=zt(),Re=le.state.audioStream$,ve=le.state.availableAudioStreams$,pe=le.state.currentQuality$,Ve=le.state.availableQualities$,ie=le.state.autoQualityLimitingAvailable$,N=le.state.isAutoQualityEnabled$,Ge=le.state.isAutoQualityAvailable$,te=le.state.currentPlaybackRate$,qe=le.state.availablePlaybackRates$,de=le.state.currentSubtitle$,fe=le.state.availableSubtitlesList$,$e=le.state.canDownload,X=le.state.hasMpegSources$,Ke=le.ui.settingsMenu.visible$,Xe=le.ui.settingsMenu.openedByBtnKeyboard$,ke=le.ui.settingsMenu.ref$,ne=le.ui.isMobile,Ee=le.ui.mobileNotReportControlHidden$,Qe=le.state.canChangePlaybackSpeed$,rt=le.state.trafficSavingEnabled$,nt=le.state.highQualityEnabled$,Lt=le.ui.playerSize,et=le.ui.debugPanelVisible,ct=le.state.isInteractiveTime$,Gt=le.ui.additionalSettingsMenuItems$,si=le.ui.t,Qt=le.actions.internal.downloadVideo,St=le.actions.internal.closeSettingsMenu,oe=le.actions.internal.openSettingsSubMenu,Vt=le.actions.internal.closeSettingsSubMenu,he=Z(!1),J=Z(void 0),we=M1();We(()=>{!n()&&we.current&&(Vt(ue[we.current]),we.popAllSubMenus())}),We(()=>{n()||B(J,void 0)}),We(()=>{!we.current&&s(J)&&Gh(j,s(J))}),We(()=>{Y()&&ke.set(Y())});function He(tt){return yt(this,null,function*(){var qi;we.pushSubMenu(tt),yield bo(),oe(tt,ue[tt]);let It=(qi=Y())==null?void 0:qi.firstElementChild;It&&lf(It)})}function me(tt){var It;tt==null||tt.stopPropagation(),r()||(It=e.returnFocus)==null||It.call(e),St(),B(he,!1)}function Ne(tt,It){le.actions.internal.setQuality(tt,{appliesTo:It}),me()}function Je(tt){le.actions.internal.setAudioStream(tt),me()}function Ue(tt,It){le.actions.internal.setTrafficSavingEnabled(tt,It),Me.features.qualityDetailsSubMenuEnabled&&me()}function Mt(tt,It){le.actions.internal.setHighQualityEnabled(tt,It),me()}function Tt(tt){le.actions.internal.setPlaybackRate(tt),me()}function xt(tt){le.actions.internal.setSubtitle(tt),me()}function ft(){Qt()}function Mi(){cx(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function pi(){nl(le.actions.internal.getDebugTextData())}let it=()=>{let tt=le.actions.internal.getTraceTextData(),It=new Blob([...tt],{type:"application/json"}),qi=window.URL.createObjectURL(It);ca(qi,"vk_player_trace_info","json")};function Ht(){et.set(!l())}function vi(){B(he,!0)}function zi(){B(he,!1)}function po(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-se()}px; overflow: auto;`}let Wi=h(()=>$e&&u()&&!f()),Yt=h(()=>Me.features.trafficSaving&&!f()&&v()&&!Me.features.qualityDetailsSubMenuEnabled),fo=h(()=>p().length>0&&!f()),Pt=h(()=>!!y()&&!f()),dt=h(()=>Me.features.audioLanguages&&w().length>=2&&!f()),gi=h(()=>!f());Dt(()=>ct.subscribe(tt=>{tt&&!d()&&!s(he)&&!r()&&me()}));let G=h(()=>{let tt=[s(gi)&&"QUALITY_SETTINGS",s(dt)&&"AUDIO_LANGUAGES",s(Pt)&&"PLAYBACK_RATE",s(fo)&&"SUBTITLES",s(Yt)&&"TRAFFIC_SAVING_SWITCH",s(Wi)&&"DOWNLOAD",Me.showSupport&&"SHOW_SUPPORT","COPY_DATA",Me.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(It=>!!It);return F1({items:tt,context:{qualityDetailsSubMenuEnabled:Me.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:$(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Tt,trafficSavingEnabled:k(),toggleTrafficSaving:Ue,currentQuality:P()||U1.INVARIANT,isAutoQualityEnabled:I()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:ft,onCopyDataClick:pi,onReportProblemClick:Mi,onSaveTraceDataClick:it,toggleShowDebugInfo:Ht},additionalSettingsMenuItems:L()})}),Kt=h(()=>H1({subMenuId:we.current,context:{availablePlaybackRates:$(),selectPlaybackRate:Tt,trafficSavingEnabled:k(),toggleTrafficSaving:Ue,currentQuality:P()||U1.INVARIANT,isAutoQualityEnabled:I()||!1,isAutoQualityAvailable:K()||!1,availableQualities:z(),highQualityEnabled:U(),toggleHighQuality:Mt,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:St,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Je,selectQuality:Ne,selectSubtitle:xt}}));var ui=mx();let Li;var di=_(ui);{var fi=tt=>{var It=fx();let qi;It.__keydown=[ux,St];var ii=_(It);{var ir=xi=>{var gt=px();let Ri;var Oo=_(gt),kn=_(Oo,!0);g(Oo);var ci=A(Oo,2);ci.__click=me,g(gt),O((Ti,Do)=>{Ri=ee(gt,1,"item header svelte-17or3al",null,Ri,Ti),_e(kn,Do)},[()=>({mobile:d()}),()=>si("submenu_settings")]),b(xi,gt)};V(ii,xi=>{d()&&xi(ir)})}var Vi=A(ii,2);let Bo;wi(Vi,21,()=>s(G),xi=>xi.id,(xi,gt)=>{var Ri=Fe(),Oo=ge(Ri);{var kn=Ti=>{Pm(Ti,{get isMobile(){return d()},get id(){return s(gt).id},get icon(){return s(gt).icon},get label(){return s(gt).label},get ariaLabel(){return s(gt).ariaLabel},get value(){return s(gt).value},get valueComponent(){return s(gt).valueComponent},onClick:()=>{He(s(gt).children),B(J,s(gt).id,!0)},get ref(){return j[s(gt).id]},set ref(Do){j[s(gt).id]=Do}})},ci=(Ti,Do)=>{{var Pn=xo=>{Am(xo,{get isMobile(){return d()},get id(){return s(gt).id},get onClick(){return s(gt).onClick},get icon(){return s(gt).icon},get label(){return s(gt).label},get ariaLabel(){return s(gt).ariaLabel},closeSettings:me})},Ho=(xo,gn)=>{{var tn=mo=>{Lm(mo,{get isMobile(){return d()},get id(){return s(gt).id},get onClick(){return s(gt).onClick},get icon(){return s(gt).icon},get label(){return s(gt).label},get ariaLabel(){return s(gt).ariaLabel},get enabled(){return s(gt).enabled},get tooltipText(){return s(gt).tooltipText},get maxTooltipWidth(){return s(gt).maxTooltipWidth}})};V(xo,mo=>{s(gt).type==="SWITCH"&&mo(tn)},gn)}};V(Ti,xo=>{s(gt).type==="CLICK"?xo(Pn):xo(Ho,!1)},Do)}};V(Oo,Ti=>{s(gt).type==="OPEN_SUB_MENU"?Ti(kn):Ti(ci,!1)})}b(xi,Ri)}),g(Vi),ot(Vi,xi=>Y(xi),()=>Y()),g(It),O((xi,gt,Ri)=>{qi=ee(It,1,"settings-menu menu svelte-17or3al",null,qi,xi),Bo=ee(Vi,1,"items",null,Bo,gt),st(Vi,Ri)},[()=>({desktop:!d(),mobile:d(),hidden:!!we.current}),()=>({mobile:d()}),po]),Ct("mouseenter",It,vi),Ct("mouseleave",It,zi),b(tt,It)};V(di,tt=>{n()&&tt(fi)})}var ut=A(di,2);wi(ut,17,()=>s(Kt),tt=>tt.id,(tt,It)=>{let qi=h(()=>{var ii;return(ii=s(It).minWidth)!=null?ii:137});km(tt,{get isMobile(){return d()},get playerControlsHeight(){return se()},get returnFromSubMenu(){return we.popSubMenu},get id(){return s(It).id},get title(){return s(It).title},get closeSettingsMenu(){return St},openSubMenuList:He,get items(){return s(It).items},get minWidth(){return s(qi)},get refMenuItems(){return j},get listRef(){return ue[s(It).id]},set listRef(ii){ue[s(It).id]=ii}})}),g(ui),O(tt=>Li=ee(ui,1,"settings-menu-container svelte-17or3al",null,Li,tt),[()=>({mobile:d(),hidden:!n()})]),b(t,ui),H(),o()}lt(["keydown","click"]);var gx=t=>t;function z1(t,{delay:e=0,duration:i=400,easing:o=gx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:r=>`opacity: ${r*n}`}}var hx=M('<button class="button svelte-1sbbskl"> </button>'),_x={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Km(t,e){q(t,_x);var i=hx();i.__click=function(...n){var r;(r=e.onClick)==null||r.apply(this,n)};var o=_(i,!0);g(i),O(()=>_e(o,e.label)),b(t,i)}lt(["click"]);var bx=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),$x={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
306
+ .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Fd(t,e){D(e,!0),q(t,vx);let[i,o]=Oe(),n=()=>S(Qe,"$settingsMenuVisible",i),r=()=>S(Xe,"$settingsMenuOpenedByKeyboard",i),l=()=>S(et,"$debugPanelVisible",i),d=()=>S(ne,"$isMobile",i),a=()=>S(Rt,"$playerSize",i),u=()=>S(X,"$hasMpegSources$",i),f=()=>S(Ee,"$mobileNotReportControlHidden$",i),v=()=>S(ie,"$autoQualityLimitingAvailable$",i),p=()=>S(fe,"$availableSubtitlesList$",i),b=()=>S(Ge,"$isLiveWithPlaybackSpeed",i),x=()=>S(ve,"$availableAudioStreams$",i),y=()=>S(Ke,"$availablePlaybackRates$",i),C=()=>S(Ne,"$currentAudioStream$",i),T=()=>S(te,"$currentPlaybackRate$",i),I=()=>S(rt,"$trafficSavingEnabled",i),P=()=>S(pe,"$currentQuality$",i),k=()=>S(N,"$isAutoQualityEnabled$",i),E=()=>S(de,"$currentSubtitle$",i),L=()=>S(Yt,"$additionalSettingsMenuItems$",i),K=()=>S(Ye,"$isAutoQualityAvailable$",i),z=()=>S(Re,"$availableQualities$",i),U=()=>S(nt,"$highQualityEnabled",i),Y=m(e,"ref",15,void 0),se=m(e,"playerControlsHeight",3,0),j=ri({}),ue=ri({}),le=Ie(),Me=Wt(),Ne=le.state.audioStream$,ve=le.state.availableAudioStreams$,pe=le.state.currentQuality$,Re=le.state.availableQualities$,ie=le.state.autoQualityLimitingAvailable$,N=le.state.isAutoQualityEnabled$,Ye=le.state.isAutoQualityAvailable$,te=le.state.currentPlaybackRate$,Ke=le.state.availablePlaybackRates$,de=le.state.currentSubtitle$,fe=le.state.availableSubtitlesList$,ye=le.state.canDownload,X=le.state.hasMpegSources$,Qe=le.ui.settingsMenu.visible$,Xe=le.ui.settingsMenu.openedByBtnKeyboard$,ke=le.ui.settingsMenu.ref$,ne=le.ui.isMobile,Ee=le.ui.mobileNotReportControlHidden$,Ge=le.state.canChangePlaybackSpeed$,rt=le.state.trafficSavingEnabled$,nt=le.state.highQualityEnabled$,Rt=le.ui.playerSize,et=le.ui.debugPanelVisible,pt=le.state.isInteractiveTime$,Yt=le.ui.additionalSettingsMenuItems$,si=le.ui.t,Qt=le.actions.internal.downloadVideo,Tt=le.actions.internal.closeSettingsMenu,oe=le.actions.internal.openSettingsSubMenu,Nt=le.actions.internal.closeSettingsSubMenu,he=Z(!1),J=Z(void 0),we=L1();qe(()=>{!n()&&we.current&&(Nt(ue[we.current]),we.popAllSubMenus())}),qe(()=>{n()||B(J,void 0)}),qe(()=>{!we.current&&s(J)&&Yh(j,s(J))}),qe(()=>{Y()&&ke.set(Y())});function Fe(it){return wt(this,null,function*(){var Ki;we.pushSubMenu(it),yield xo(),oe(it,ue[it]);let kt=(Ki=Y())==null?void 0:Ki.firstElementChild;kt&&df(kt)})}function me(it){var kt;it==null||it.stopPropagation(),r()||(kt=e.returnFocus)==null||kt.call(e),Tt(),B(he,!1)}function Be(it,kt){le.actions.internal.setQuality(it,{appliesTo:kt}),me()}function Je(it){le.actions.internal.setAudioStream(it),me()}function ze(it,kt){le.actions.internal.setTrafficSavingEnabled(it,kt),Me.features.qualityDetailsSubMenuEnabled&&me()}function Lt(it,kt){le.actions.internal.setHighQualityEnabled(it,kt),me()}function Et(it){le.actions.internal.setPlaybackRate(it),me()}function St(it){le.actions.internal.setSubtitle(it),me()}function ht(){Qt()}function Ri(){cx(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function pi(){rl(le.actions.internal.getDebugTextData())}let ot=()=>{let it=le.actions.internal.getTraceTextData(),kt=new Blob([...it],{type:"application/json"}),Ki=window.URL.createObjectURL(kt);da(Ki,"vk_player_trace_info","json")};function Ft(){et.set(!l())}function gi(){B(he,!0)}function Wi(){B(he,!1)}function mo(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-se()}px; overflow: auto;`}let qi=h(()=>ye&&u()&&!f()),jt=h(()=>Me.features.trafficSaving&&!f()&&v()&&!Me.features.qualityDetailsSubMenuEnabled),vo=h(()=>p().length>0&&!f()),At=h(()=>!!b()&&!f()),ct=h(()=>Me.features.audioLanguages&&x().length>=2&&!f()),hi=h(()=>!f());Ht(()=>pt.subscribe(it=>{it&&!d()&&!s(he)&&!r()&&me()}));let G=h(()=>{let it=[s(hi)&&"QUALITY_SETTINGS",s(ct)&&"AUDIO_LANGUAGES",s(At)&&"PLAYBACK_RATE",s(vo)&&"SUBTITLES",s(jt)&&"TRAFFIC_SAVING_SWITCH",s(qi)&&"DOWNLOAD",Me.showSupport&&"SHOW_SUPPORT","COPY_DATA",Me.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(kt=>!!kt);return U1({items:it,context:{qualityDetailsSubMenuEnabled:Me.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:x(),currentPlaybackRate:T(),selectPlaybackRate:Et,trafficSavingEnabled:I(),toggleTrafficSaving:ze,currentQuality:P()||z1.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:ht,onCopyDataClick:pi,onReportProblemClick:Ri,onSaveTraceDataClick:ot,toggleShowDebugInfo:Ft},additionalSettingsMenuItems:L()})}),Kt=h(()=>F1({subMenuId:we.current,context:{availablePlaybackRates:y(),selectPlaybackRate:Et,trafficSavingEnabled:I(),toggleTrafficSaving:ze,currentQuality:P()||z1.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:K()||!1,availableQualities:z(),highQualityEnabled:U(),toggleHighQuality:Lt,availableAudioStreams:x(),availableSubtitlesList:p(),closeSettingsMenu:Tt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Je,selectQuality:Be,selectSubtitle:St}}));var ui=mx();let Ni;var di=_(ui);{var fi=it=>{var kt=fx();let Ki;kt.__keydown=[ux,Tt];var ni=_(kt);{var Jn=wi=>{var $t=px();let Bi;var Ho=_($t),En=_(Ho,!0);g(Ho);var ci=A(Ho,2);ci.__click=me,g($t),O((Pi,Fo)=>{Bi=ee($t,1,"item header svelte-17or3al",null,Bi,Pi),be(En,Fo)},[()=>({mobile:d()}),()=>si("submenu_settings")]),$(wi,$t)};V(ni,wi=>{d()&&wi(Jn)})}var ki=A(ni,2);let Co;Ti(ki,21,()=>s(G),wi=>wi.id,(wi,$t)=>{var Bi=Ue(),Ho=ge(Bi);{var En=Pi=>{Am(Pi,{get isMobile(){return d()},get id(){return s($t).id},get icon(){return s($t).icon},get label(){return s($t).label},get ariaLabel(){return s($t).ariaLabel},get value(){return s($t).value},get valueComponent(){return s($t).valueComponent},onClick:()=>{Fe(s($t).children),B(J,s($t).id,!0)},get ref(){return j[s($t).id]},set ref(Fo){j[s($t).id]=Fo}})},ci=(Pi,Fo)=>{{var In=To=>{Mm(To,{get isMobile(){return d()},get id(){return s($t).id},get onClick(){return s($t).onClick},get icon(){return s($t).icon},get label(){return s($t).label},get ariaLabel(){return s($t).ariaLabel},closeSettings:me})},Uo=(To,vn)=>{{var rn=go=>{Vm(go,{get isMobile(){return d()},get id(){return s($t).id},get onClick(){return s($t).onClick},get icon(){return s($t).icon},get label(){return s($t).label},get ariaLabel(){return s($t).ariaLabel},get enabled(){return s($t).enabled},get tooltipText(){return s($t).tooltipText},get maxTooltipWidth(){return s($t).maxTooltipWidth}})};V(To,go=>{s($t).type==="SWITCH"&&go(rn)},vn)}};V(Pi,To=>{s($t).type==="CLICK"?To(In):To(Uo,!1)},Fo)}};V(Ho,Pi=>{s($t).type==="OPEN_SUB_MENU"?Pi(En):Pi(ci,!1)})}$(wi,Bi)}),g(ki),tt(ki,wi=>Y(wi),()=>Y()),g(kt),O((wi,$t,Bi)=>{Ki=ee(kt,1,"settings-menu menu svelte-17or3al",null,Ki,wi),Co=ee(ki,1,"items",null,Co,$t),at(ki,Bi)},[()=>({desktop:!d(),mobile:d(),hidden:!!we.current}),()=>({mobile:d()}),mo]),Ct("mouseenter",kt,gi),Ct("mouseleave",kt,Wi),$(it,kt)};V(di,it=>{n()&&it(fi)})}var mt=A(di,2);Ti(mt,17,()=>s(Kt),it=>it.id,(it,kt)=>{let Ki=h(()=>{var ni;return(ni=s(kt).minWidth)!=null?ni:137});Pm(it,{get isMobile(){return d()},get playerControlsHeight(){return se()},get returnFromSubMenu(){return we.popSubMenu},get id(){return s(kt).id},get title(){return s(kt).title},get closeSettingsMenu(){return Tt},openSubMenuList:Fe,get items(){return s(kt).items},get minWidth(){return s(Ki)},get refMenuItems(){return j},get listRef(){return ue[s(kt).id]},set listRef(ni){ue[s(kt).id]=ni}})}),g(ui),O(it=>Ni=ee(ui,1,"settings-menu-container svelte-17or3al",null,Ni,it),[()=>({mobile:d(),hidden:!n()})]),$(t,ui),H(),o()}dt(["keydown","click"]);var gx=t=>t;function W1(t,{delay:e=0,duration:i=400,easing:o=gx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:r=>`opacity: ${r*n}`}}var hx=M('<button class="button svelte-1sbbskl"> </button>'),_x={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Qm(t,e){q(t,_x);var i=hx();i.__click=function(...n){var r;(r=e.onClick)==null||r.apply(this,n)};var o=_(i,!0);g(i),O(()=>be(o,e.label)),$(t,i)}dt(["click"]);var bx=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),$x={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
307
307
  /**
308
308
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
309
- */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Ud(t,e){D(e,!0),q(t,$x);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=zt(),{ui:{t:n}}=Ie(),r=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=bx(),d=_(l),a=_(d),u=_(a),f=_(u);Hd(f,{get message(){return r}}),g(u);var v=A(u,2);{var p=w=>{let $=h(()=>n("slow_video_notification_button"));Km(w,{get label(){return s($)},get onClick(){return e.onSelectAutoQuality}})};V(v,w=>{o||w(p)})}g(a);var y=A(a,2);ga(y,{get onClick(){return e.onClose}}),g(d),g(l),Ap(3,d,()=>z1,()=>({duration:i})),b(t,l),H()}import{isIntersecting as W1,Subscription as yx}from"@vkontakte/videoplayer-shared/es2015";var Pa="annotation",Cu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:r,hideAllControls:l}=i;e.setAttribute("slot",Pa),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),r&&this.runHidingControlsWhenIntersected(n,r),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(n,r){return yt(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var p;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:a,hiddenControls:u}=((p=this.store)==null?void 0:p.ui)||{},f=new MutationObserver(y=>y.forEach(()=>{let w=bs(d,this.shadowRootContainer);o.forEach($=>{let S=a==null?void 0:a[$],T=S?ye(S):null,k=u==null?void 0:u[$];T&&(k==null||k.set(W1(T,w)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let v=new yx;o.forEach(y=>{a&&v.add(a[y].subscribe(w=>{let $=u==null?void 0:u[y];w&&w.isDisplayed?$==null||$.set(W1(w,bs(d,this.shadowRootContainer))):$==null||$.set(!1)}))}),l.subs=v})}findSlotElement(e,i,o){return yt(this,null,function*(){return new Promise(n=>{let r=null,l=new MutationObserver(()=>{if(r=e.querySelector(`#${i}`),r){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(r)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:r,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,r].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((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 xx=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),wx={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
309
+ */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Ud(t,e){D(e,!0),q(t,$x);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Wt(),{ui:{t:n}}=Ie(),r=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=bx(),d=_(l),a=_(d),u=_(a),f=_(u);Hd(f,{get message(){return r}}),g(u);var v=A(u,2);{var p=x=>{let y=h(()=>n("slow_video_notification_button"));Qm(x,{get label(){return s(y)},get onClick(){return e.onSelectAutoQuality}})};V(v,x=>{o||x(p)})}g(a);var b=A(a,2);va(b,{get onClick(){return e.onClose}}),g(d),g(l),Mp(3,d,()=>W1,()=>({duration:i})),$(t,l),H()}import{isIntersecting as q1,Subscription as yx}from"@vkontakte/videoplayer-shared/es2015";var ka="annotation",Su=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:r,hideAllControls:l}=i;e.setAttribute("slot",ka),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),r&&this.runHidingControlsWhenIntersected(n,r),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(n,r){return wt(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var p;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:a,hiddenControls:u}=((p=this.store)==null?void 0:p.ui)||{},f=new MutationObserver(b=>b.forEach(()=>{let x=_s(d,this.shadowRootContainer);o.forEach(y=>{let C=a==null?void 0:a[y],T=C?xe(C):null,I=u==null?void 0:u[y];T&&(I==null||I.set(q1(T,x)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let v=new yx;o.forEach(b=>{a&&v.add(a[b].subscribe(x=>{let y=u==null?void 0:u[b];x&&x.isDisplayed?y==null||y.set(q1(x,_s(d,this.shadowRootContainer))):y==null||y.set(!1)}))}),l.subs=v})}findSlotElement(e,i,o){return wt(this,null,function*(){return new Promise(n=>{let r=null,l=new MutationObserver(()=>{if(r=e.querySelector(`#${i}`),r){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(r)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:r,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,r].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var p,b;(b=(p=this.store)==null?void 0:p.ui.hiddenControls[v])==null||b.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var xx=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),wx={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
310
310
 
311
311
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
312
312
 
@@ -337,8 +337,8 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=k_;var hs=new Map;hs.set(Vh.EN,Mh)
337
337
  opacity: 0;
338
338
  scale: 0;
339
339
  }
340
- }`};function Qm(t,e){D(e,!0),q(t,wx);let[i,o]=Oe(),n=()=>C(l,"$isPlaying$",i),r=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ie(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=zt(),p=0,y=Z(null),w=Z(!1);We(()=>{B(y,n()?Or:xs,!0)}),We(()=>{B(y,r()?zs:null,!0)}),We(()=>{if(u)return p=window.setTimeout(()=>{p=0,r()&&s(y)===zs&&(r()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B(y,null)},s(y)!==zs?f:v),()=>{p&&(window.clearTimeout(p),p=0)}}),We(()=>{n()&&!s(w)&&(B(w,!0),B(y,null))});var $=Fe(),S=ge($);{var T=k=>{var P=Fe(),I=ge(P);sa(I,()=>s(y),E=>{var L=xx(),K=_(L),z=_(K);let U=h(()=>r()==="prev");Ci(z,()=>s(y),(Y,se)=>{se(Y,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return s(U)}})}),g(K),g(L),O(()=>st(K,`animation-duration: ${s(y)!==zs?f:v}ms`)),b(E,L)}),b(k,P)};V(S,k=>{s(y)&&u&&k(T)})}b(t,$),H(),o()}var Cx=M('<div><div data-testid="video-container"></div></div>'),Sx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
- .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Aa(t,e){D(e,!0),q(t,Sx);let[i,o]=Oe(),n=()=>C(f,"$rotateAlpha",i),r=()=>C(v,"$playerSize",i),l=()=>C(u,"$playerPhase",i),d=()=>C(p,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=Ie(),{isSmoothVideoRotate:y}=zt(),w=h(()=>a()&&n()%180?r().height/r().width:1);var $=Cx();let S;$.__contextmenu=function(...P){var I;(I=e.onContextMenu)==null||I.apply(this,P)},$.__mousedown=function(...P){var I;(I=e.onMouseDown)==null||I.apply(this,P)},$.__mouseup=function(...P){var I;(I=e.onMouseUp)==null||I.apply(this,P)},$.__click=function(...P){var I;(I=e.onClick)==null||I.apply(this,P)},$.__dblclick=function(...P){var I;(I=e.onDblClick)==null||I.apply(this,P)};var T=_($);let k;ot(T,P=>a(P),()=>a()),g($),O((P,I)=>{S=ee($,1,"video-wrapper svelte-1czns9r",null,S,P),k=ee(T,1,"video-container svelte-1czns9r",null,k,I),st(T,`transform: rotate(${n()}deg) scale(${s(w)})`),Be(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),b(t,$),H(),o()}lt(["contextmenu","mousedown","mouseup","click","dblclick"]);var Tx=(t,e,i,o,n,r)=>{if(t.stopPropagation(),e()||o()){r();return}},Ex=M("<div><!></div>"),Ix=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),kx=M("<div><!></div>"),Px=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),Ax=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Mx=M("<!> <!> <!>",1),Lx=M('<div class="blocked svelte-jtgjmv"></div>'),Vx=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Rx={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Gm(t,e){D(e,!0),q(t,Rx);let[i,o]=Oe(),n=()=>C(Nn,"$notificationsToShow$",i),r=()=>C(vi,"$playerPhase",i),l=()=>C(Kt,"$isLoaderVisible",i),d=()=>C(pi,"$adPlaybackState",i),a=()=>C(It,"$crashed",i),u=()=>C(Oo,"$isInteractiveTime$",i),f=()=>C(Yt,"$settingsMenuVisible",i),v=()=>C(kn,"$isInteractiveExpectation$",i),p=()=>C(Wi,"$controlsVisible",i),y=()=>C(Ti,"$touched",i),w=()=>C(Mn,"$graphIsOpened$",i),$=()=>C(zi,"$isFullscreen",i),S=()=>C(Hr,"$autoplayNextEnabled$",i),T=()=>C(fi,"$postrollPassed",i),k=()=>C(ui,"$isEnded$",i),P=()=>C(Bi,"$cursorInside",i),I=()=>C(or,"$isControlsAvailable",i),E=()=>C(An,"$fakeIsPlaying$",i),L=()=>C(Jt,"$bottomNoSmooth",i),K=()=>C(xo,"$interactiveTimeIndicator",i),z=()=>C(Bo,"$playerSize",i),U=()=>C(xi,"$is3DVideo",i),Y=()=>C(gi,"$contextMenuVisible$",i),se=()=>C(Mi,"$playbackState$",i),j=()=>C(Do,"$hotKeyMapData",i),ue=()=>C(Pt,"$scrubbingInProgress",i),le=()=>C(dt,"$volumeChangingInProgress",i),Me=()=>C(Li,"$chromecastConnected$",i),Re=()=>C(Bn,"$controlsTimeoutActive",i),ve=()=>C(fo,"$settingsMenuOpenedByKeyboard",i),pe=()=>C(Qo,"$contextMenuOpenedByKeyboard$",i),Ve=()=>C(Tr,"$contextMenuOpenedByHotKey$",i),ie=()=>C(ln,"$contextMenuButtonRef$",i),N=()=>C(Wr,"$contextMenuLastActiveElem$",i),Ge=()=>C(po,"$isFullscreenOpenedByKeyboard",i),te=()=>C(ft,"$language$",i),qe=()=>C(gt,"$icon3DVideoVisible",i),de=()=>C(di,"$chromecastDeviceName$",i),fe=()=>C(ir,"$currentSubtitle$",i),$e=()=>C(Vi,"$currentSubtitleCaptions$",i),X=()=>C(it,"$position$",i),Ke=()=>C(Ht,"$duration$",i),Xe=()=>C(ut,"$isLive$",i),ke=()=>C(tt,"$isPlaying$",i),ne=()=>C(tn,"$contextMenuPosition$",i),Ee=()=>C(Pn,"$showHotKeyMap",i),Qe=()=>C(G,"$debugPanelVisible",i),rt=()=>C($r,"$userActionsDisabled$",i),nt=m(e,"videoContainer",15),Lt=m(e,"adsSlotId",3,void 0),et=m(e,"adsParams",3,void 0),ct=m(e,"adsPreviewParam",3,void 0),Gt=m(e,"adsAutoplayParam",3,void 0),si=m(e,"duration",3,void 0),Qt=m(e,"logoTargetUrl",3,""),St=m(e,"showNextPrevButtons",3,!1),oe=m(e,"nextButtonActive",3,!1),Vt=m(e,"prevButtonActive",3,!1),he=m(e,"endScreenVideoTitle",3,void 0),J=m(e,"endScreenVideoThumb",3,void 0),we=m(e,"isOneVideoPlaylist",3,!1),He=m(e,"shadowRootContainer",3,void 0),me=m(e,"outerContainerRef",3,void 0),Ne=m(e,"playerStarted",3,!1),Je=m(e,"fullScreenTarget",3,void 0),Ue=m(e,"showMiniTimer",3,!1),Mt=m(e,"showEndScreen",3,!0),Tt=m(e,"keyboardControls",15),xt=e.store.getLogger().createComponentLog("Root component"),ft=e.store.interfaceLanguage$,Mi=e.store.state.playbackState$,pi=e.store.ads.playbackState,it=e.store.state.positionWithScrubbing$,Ht=e.store.state.duration$,vi=e.store.playerPhase,zi=e.store.ui.isFullscreen,po=e.store.ui.isFullscreenOpenedByKeyboard,Wi=e.store.ui.controlsVisible,Yt=e.store.ui.settingsMenu.visible$,fo=e.store.ui.settingsMenu.openedByBtnKeyboard$,Pt=e.store.ui.scrubbingInProgress,dt=e.store.ui.volumeChangingInProgress,gi=e.store.ui.contextMenu.visible$,G=e.store.ui.debugPanelVisible,Kt=e.store.state.isLoaderVisible,ui=e.store.state.isEnded$,Li=e.store.state.chromecastConnected$,di=e.store.state.chromecastDeviceName$,fi=e.store.ads.postrollPassed,ut=e.store.state.isLive$,tt=e.store.state.isPlaying$,It=e.store.state.crashed$,qi=e.store.webApi.annotationsApi,ii=e.store.webApi.pictureInPictureApi,ir=e.store.state.currentSubtitle$,Vi=e.store.state.currentSubtitleCaptions$,Bo=e.store.ui.playerSize,xi=e.store.ui.is3DVideo,gt=e.store.ui.icon3DVideoVisible,Ri=e.store.state.isInteractive,Oo=e.store.state.isInteractiveTime$,kn=e.store.state.isInteractiveExpectation$,ci=e.store.state.hasInteractiveBranches,Ti=e.store.ui.touched,Do=e.store.ui.modals.hotKeyMap.data,Pn=e.store.ui.modals.hotKeyMap.show,Ho=e.store.ui.overlayContainer$,xo=e.store.ui.controls.interactiveTimeIndicator,gn=e.store.state.showInteractiveTimeIndicator,tn=e.store.ui.contextMenu.position$,mo=e.store.actions.internal.setQuality,wo=e.store.actions.internal.closeSettingsMenu,Hr=e.store.ui.autoplayNextEnabled$,$r=e.store.ui.userActionsDisabled,or=e.store.ui.isControlsAvailable,nr=e.store.ui.videoTitleInfo,rr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:An,notifications$:ss,graphIsOpened$:Mn}=uo(),Ni=Z(void 0),Ln=Z(void 0),on=Z(void 0),nn=Z(void 0),Vn,Rn,Fo;Do.set(Fh());let{closeNotification:Fr,notificationsToShow$:Nn}=ss,sr=h(()=>!!n().slow_video),Ki=()=>Fr("slow_video"),Co=h(()=>(r()==="video"&&l()||r()==="ads"&&d()==="inactive")&&!a()),at=Z(void 0),Jt=ae(!1),yr,Bn=ae(!1),hn=ae(),Bi=ae(!1),On=Z(!1),So=Z(!1),Dn=Z(!1),To=Z(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Hn=h(()=>u()&&!f()&&!(s(On)||s(So))&&!(s(Dn)&&!v())),Fn=!0,ar=h(()=>e.uiConfig.features.thumbTimer&&Ue()&&r()==="video"&&!p()&&!a()&&!Ri&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),xr=h(()=>r()==="video"&&!w()&&$()),lr=Z(!1),Uo=h(()=>(Mt()||e.showAutoplayNext&&S())&&!!he()&&!!J()&&(e.showAds&&T()||!e.showAds)&&k()&&!a()&&!s(lr)),Ur=h(()=>P()&&!(p()||s(Uo))&&!u()&&I()),dr=Z(!1),wr=h(()=>E()!==null),{toggle:rn}=An,jt=!1,vo=null;ii==null||ii.setContext(El());let Eo=()=>{e.autoplay&&!Ri&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ei(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Eo});let cr=()=>{window.clearTimeout(Vn),Bn.set(!1)},Cr=()=>{window.clearTimeout(Rn),hn.set(null)},Ei=Te=>{cr(),Bn.set(!0),Vn=window.setTimeout(()=>Bn.set(!1),Te);let xe=Te-100;yr=window.setTimeout(()=>{L()&&Jt.set(!1)},xe>0?xe:Te)},as=(Te,xe)=>{Cr(),hn.set(xe),Rn=window.setTimeout(()=>hn.set(null),Te)},zr=xi.subscribe(Te=>{gt.set(Te),Te&&(window.clearTimeout(Fo),Fo=window.setTimeout(()=>gt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Sr=()=>yt(null,null,function*(){var xe,$t,Wt,Ii;let Te=Ns();if(Te){let yi=td(),ze=zo();Te=yi===ze||yi===He()}if(Te){Ei(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ii==null?void 0:ii.remove()}catch(yi){xt({message:String(yi)})}}zi.set(Te),e.store.getAdmanWrapper().setFullscreen(Te),$()?($t=(xe=e.store.callbacks)==null?void 0:xe.onFullscreenEnter)==null||$t.call(xe):(Ii=(Wt=e.store.callbacks)==null?void 0:Wt.onFullscreenExit)==null||Ii.call(Wt)}),ht=Te=>{let{width:xe,height:$t}=Te.target;Bo.set({width:xe,height:$t})},ai=()=>{let{width:Te,height:xe}=s(Ni).getBoundingClientRect();Bo.set({width:Te,height:xe})};Dt(()=>{var xe;return Yc(Sr),e.uiConfig.features.annotationsInside&&(qi==null||qi.init(s(Ni))),fa(ii)&&(ii==null||ii.assignPlayerContainer(s(Ni)),ii==null||ii.registryExternalEventHandlers({resize:ht,leavepictureinpicture:ai})),e.interactiveContainer&&((xe=nt().parentElement)==null||xe.insertBefore(e.interactiveContainer,nt().nextSibling)),()=>{window.clearTimeout(Vn),window.clearTimeout(yr),window.clearTimeout(Rn),window.clearTimeout(Fo),zr(),ii==null||ii.dispose().catch($t=>{xt({message:String($t)})}),jc(Sr)}});let zo=()=>{let Te=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!me()?s(Ni):me(),xe=Te.getRootNode(),$t=xe instanceof ShadowRoot?xe.host:xe,Wt=Je()instanceof HTMLElement&&Je().contains($t);return e.uiConfig.allowChangingFullscreenTarget&&Je()&&Wt?Je():Te},Wo=()=>yt(null,null,function*(){Ns()?(yield Gc(document),xt({message:"exit fullscreen"})):(xt({message:"request fullscreen"}),yield Qc(zo()))}),Qi=()=>{wo(),gi.set(!1)},Un=Te=>{w()||(Te.preventDefault(),gi.set(!0),tn.set({left:Te.clientX,top:Te.clientY}))};function sn(){Bi.set(!0),Ri||Ei(e.uiConfig.controls.hideTimeoutCursor)}function ur(){Ri||(Jt.set(!0),Ei(e.uiConfig.controls.hideTimeoutCursor))}function Gi(){Bi.set(!1),B(So,!1),B(On,!1),jt=!1,e.store.actions.internal.releaseCamera(),Ei(e.uiConfig.controls.hideTimeout)}function an(Te){return Te?Te.offsetTop+an(Te.offsetParent):0}function je(Te){return Te?Te.offsetLeft+je(Te.offsetParent):0}function Rt(Te){if(K()&&gn){let xe=Te.currentTarget,$t=an(xe),Wt=je(xe),Ii=Te.pageX-Wt,yi=Te.pageY-$t,{left:ze,bottom:wt,right:oi}=K(),dn=oi-ze;return Ii>=ze-dn&&yi<=wt+dn}}function bi(Te){if(s(Ni)){let xe=an(Te.currentTarget),$t=z().height,Wt=Te.pageY-xe;if(Rt(Te)){B(So,!1);return}Wt<40?B(So,!0):Wt>$t-40?B(On,!0):(B(So,!1),f()||B(On,!1))}}function go(Te){bi(Te),s(Hn)||Ei(e.uiConfig.controls.hideTimeoutCursor),U()&&jt&&vo&&e.store.actions.internal.moveCameraFocusPX(vo.clientX-Te.clientX,vo.clientY-Te.clientY,Te.timeStamp-vo.timeStamp),vo=Te}let no=Te=>{Te.preventDefault(),Te.button===0&&(jt=!0,e.store.actions.internal.holdCamera()),Ei(e.uiConfig.controls.hideTimeoutCursor)},qo=Te=>{Te.preventDefault(),Te.button===0&&(vo=Te,jt=!1,e.store.actions.internal.releaseCamera()),Ei(e.uiConfig.controls.hideTimeoutCursor)},Ji=Te=>{Te.preventDefault(),Fn&&(xt({message:"double click on video"}),Wo(),Ei(e.uiConfig.controls.hideTimeoutCursor))},Ko=Te=>{var xe;if(Te.preventDefault(),Y()||f()){Qi();return}if(!(k()&&!ci)){if(s(wr))return rn();if((xe=Tt())==null||xe.focus(),!Ne()){e.firstStart(),Ei(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||se()!==K1.PLAYING)&&e.store.actions.internal.togglePlay(),Ei(e.uiConfig.controls.hideTimeoutCursor)}},Io=Te=>{Qi(),Ti.set(!0),Ei(e.uiConfig.controls.hideTimeout),Te&&as(e.uiConfig.controls.hideHotKeyHelpers,Te)},Yi=()=>{var Te,xe;Qi(),(Te=e.store.callbacks)!=null&&Te.onOpenHotKeyMap?(xe=e.store.callbacks)==null||xe.onOpenHotKeyMap(j()):Pn.update($t=>!$t)},$i=()=>{Ti.set(!0)},Qo=e.store.ui.contextMenu.openedByBtnKeyboard$,ln=e.store.ui.contextMenu.btnRef$,ro=Z(void 0),Tr=e.store.ui.contextMenu.openedByHotKey$,Wr=e.store.ui.contextMenu.lastActiveElem$;We(()=>{Ho.set(s(at))}),We(()=>{B(Dn,s(To)&&se()!==K1.PLAYING,!0),s(To)||Et(()=>B(To,!0))}),We(()=>{Wi.set((s(Dn)||k()||f()||ue()||le()||Me()||Re())&&!s(Hn)&&(r()==="video"||r()==="ads")&&!a()&&I())}),We(()=>{!ue()&&s(dr)&&!u()&&Ei(e.uiConfig.controls.hideTimeoutCursor),Et(()=>B(dr,ue(),!0))}),We(()=>{s(nn),f(),ve(),Et(()=>ad(s(nn),f(),ve()))}),We(()=>{s(ro),Y(),pe(),Ve(),Et(()=>{let Te=pe()||Ve();ad(s(ro),Y(),Te)})}),We(()=>{let Te=ie();Te&&(Y(),Et(()=>rl(Te,Y(),Qo)))}),We(()=>{let Te=N();Te&&(Y(),Et(()=>Qh(Te,Y(),Tr)))}),We(()=>{var Te;!Ge()&&$()&&(Et(()=>po.set(!1)),(Te=Tt())==null||Te.focus())}),We(()=>{w()&&Qi()});let qr=F("video360"),_n=Z(void 0),zn=Te=>{nr.set(Br(rr(),{title:s(_n)},"title",Te))};var Kr=Vx();Ct("blur",ea,Qi);var so=ge(Kr);so.__mousemove=go;var Go=_(so);let Wn=h(()=>r()==="ads"),pr=h(()=>s(wr)?rn:void 0);ot(mf(Go,{toggleFullscreen:Wo,hideContextMenu:Qi,showHotKeyHelpers:Io,showKeyMap:Yi,get isAds(){return s(Wn)},get fakePlayButtonHandler(){return s(pr)},get nextButtonActive(){return oe()},get prevButtonActive(){return Vt()},children:(Te,xe)=>{var $t=Mx(),Wt=ge($t);Aa(Wt,{get hideCursor(){return s(Ur)},onClick:Ko,onContextMenu:Un,onMouseDown:no,onMouseUp:qo,onDblClick:Ji,get videoContainer(){return nt()},set videoContainer(ze){nt(ze)}});var Ii=A(Wt,2);aa(Ii,()=>"slot",!1,(ze,wt)=>{Pe(ze,()=>({name:Pa}))});var yi=A(Ii,2);sa(yi,te,ze=>{var wt=Ax(),oi=ge(wt);let dn=h(()=>r()!=="thumb"||a()||Ri&&e.autoplay);Ea(oi,{get hidden(){return s(dn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var bn=A(oi,2);Qm(bn,{});var ao=A(bn,2);{var Gr=Ye=>{let ni=h(()=>{var ko;return(ko=e.live)==null?void 0:ko.startTime});Od(Ye,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(ni)}})};V(ao,Ye=>{r()==="LiveWaitingStart"&&Ye(Gr)})}var Er=A(ao,2);{var eo=Ye=>{Ia(Ye,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Er,Ye=>{r()==="LiveWaitingRecover"&&Ye(eo)})}var ki=A(Er,2);{var $n=Ye=>{Ia(Ye,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(ki,Ye=>{r()==="LiveWaitingRecord"&&Ye($n)})}var qn=A(ki,2);{var Ir=Ye=>{var ni=Ex();let ko;var Ss=_(ni);id(Ss,{get adsSlotId(){return Lt()},get adsParams(){return et()},get adsPreviewParam(){return ct()},get adsAutoplayParam(){return Gt()},get duration(){return si()}}),g(ni),O(cn=>ko=ee(ni,1,"ads-container svelte-jtgjmv",null,ko,cn),[()=>({hidden:r()!=="ads"})]),b(Ye,ni)};V(qn,Ye=>{e.showAds&&Ne()&&Ye(Ir)})}var ho=A(qn,2);{var mr=Ye=>{let ni=h(()=>!Mt()&&e.showAutoplayNext&&S());uf(Ye,{get title(){return he()},get thumb(){return J()},get isHide(){return s(ni)},clickCloseIcon:()=>B(lr,!0)})};V(ho,Ye=>{s(Uo)&&he()&&J()&&Ye(mr)})}var Ks=A(ho,2);{var bt=Ye=>{let ni=h(()=>!p());xm(Ye,{get title(){return e.title},get isHidden(){return s(ni)},onVisibilityChanged:zn,get ref(){return s(_n)},set ref(ko){B(_n,ko,!0)}})};V(Ks,Ye=>{s(xr)&&Ye(bt)})}var _t=A(Ks,2);{var lo=Ye=>{let ni=h(()=>r()==="video"&&p());Rd(Ye,{get isShifted(){return s(ni)}})};V(_t,Ye=>{U()&&Ye(lo)})}var Yo=A(_t,2);{var co=Ye=>{var ni=Ix(),ko=_(ni);ed(ko,{get"aria-label"(){return qr}}),g(ni),b(Ye,ni)};V(Yo,Ye=>{qe()&&Ye(co)})}var li=A(Yo,2);{var Oi=Ye=>{Nd(Ye,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return de()}})};V(li,Ye=>{Me()&&Ye(Oi)})}var Cs=A(li,2);{var hl=Ye=>{Ta(Ye,{get shifted(){return p()},get captions(){return $e()},get position(){return X()},get playerSize(){return z()}})};V(Cs,Ye=>{fe().value!=="off"&&Ye(hl)})}var ec=A(Cs,2);{var Nu=Ye=>{var ni=kx();ni.__contextmenu=Un,ni.__click=[Tx,Y,gi,f,Yt,Qi];var ko=_(ni);Bd(ko,{}),g(ni),b(Ye,ni)};V(ec,Ye=>{a()&&Ye(Nu)})}var tc=A(ec,2);{var Bu=Ye=>{let ni=h(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"),ko=h(()=>r()==="ads"),Ss=h(()=>e.canRewindLive&&Ke()!==0);Vd(Ye,{get bottomHidden(){return s(ni)},get bottomNoSmooth(){return L()},get showControls(){return p()},get isAds(){return s(ko)},get canRewindLive(){return s(Ss)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return St()},get nextButtonActive(){return oe()},get prevButtonActive(){return Vt()},get isOneVideoPlaylist(){return we()},customFullscreenSupported:Fn,toggleFullscreen:Wo,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(Ln)},set playerControlsWrapperRef(cn){B(Ln,cn,!0)},get playerControlsRef(){return s(on)},set playerControlsRef(cn){B(on,cn,!0)}})};V(tc,Ye=>{Ne()&&Ye(Bu)})}var ic=A(tc,2);{var Ma=Ye=>{var ni=Px(),ko=_(ni);let Ss=h(()=>{var cn;return(cn=s(on))==null?void 0:cn.clientHeight});Fd(ko,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(Ss)},returnFocus:()=>{var cn;return(cn=Tt())==null?void 0:cn.focus()},get ref(){return s(nn)},set ref(cn){B(nn,cn,!0)}}),g(ni),b(Ye,ni)};V(ic,Ye=>{!Me()&&r()!=="ads"&&Ye(Ma)})}var oc=A(ic,2);let nc=h(()=>!s(ar));rd(oc,{get isLive(){return Xe()},get isHidden(){return s(nc)},get isPlaying(){return ke()},get position(){return X()},get duration(){return Ke()}});var _l=A(oc,2);_m(_l,{get data(){return hn}});var rc=A(_l,2);cf(rc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ye;return(Ye=Tt())==null?void 0:Ye.focus()},get visible(){return Y()},get playerContainerRef(){return s(Ni)},get controlsContainerRef(){return s(Ln)},get position(){return ne()},get menuElementRef(){return s(ro)},set menuElementRef(Ye){B(ro,Ye,!0)}});var bl=A(rc,2);{var $l=Ye=>{Ud(Ye,{onClose:Ki,onSelectAutoQuality:()=>{mo("auto"),Ki()}})};V(bl,Ye=>{s(sr)&&Ye($l)})}var yl=A(bl,2);{var Ou=Ye=>{_a(Ye,{})};V(yl,Ye=>{s(Co)&&Ye(Ou)})}var xl=A(yl,2);{var Du=Ye=>{hf(Ye,{})};V(xl,Ye=>{Ee()&&Ye(Du)})}var Hu=A(xl,2);{var Fu=Ye=>{cd(Ye,{})};V(Hu,Ye=>{Qe()&&Ye(Fu)})}b(ze,wt)}),b(Te,$t)},$$slots:{default:!0}}),Te=>Tt(Te),()=>Tt());var fr=A(Go,2);ot(fr,Te=>B(at,Te),()=>s(at)),g(so),ot(so,Te=>B(Ni,Te),()=>s(Ni));var Qr=A(so,2);{var ls=Te=>{var xe=Lx();b(Te,xe)};V(Qr,Te=>{rt()&&Te(ls)})}Ct("mouseenter",so,sn),Ct("mouseleave",so,Gi),Ct("click",so,$i,!0),Ct("focusin",so,ur,!0),b(t,Kr),H(),o()}lt(["mousemove","contextmenu","click"]);import{clientChecker as zd,PlaybackState as qx}from"@vkontakte/videoplayer-core/es2015";import{noop as Kx}from"@vkontakte/videoplayer-shared/es2015";var Nx=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),Bx=M("<div><!></div>"),Ox={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
340
+ }`};function Gm(t,e){D(e,!0),q(t,wx);let[i,o]=Oe(),n=()=>S(l,"$isPlaying$",i),r=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ie(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=Wt(),p=0,b=Z(null),x=Z(!1);qe(()=>{B(b,n()?Nr:ys,!0)}),qe(()=>{B(b,r()?Fs:null,!0)}),qe(()=>{if(u)return p=window.setTimeout(()=>{p=0,r()&&s(b)===Fs&&(r()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B(b,null)},s(b)!==Fs?f:v),()=>{p&&(window.clearTimeout(p),p=0)}}),qe(()=>{n()&&!s(x)&&(B(x,!0),B(b,null))});var y=Ue(),C=ge(y);{var T=I=>{var P=Ue(),k=ge(P);ra(k,()=>s(b),E=>{var L=xx(),K=_(L),z=_(K);let U=h(()=>r()==="prev");Ei(z,()=>s(b),(Y,se)=>{se(Y,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return s(U)}})}),g(K),g(L),O(()=>at(K,`animation-duration: ${s(b)!==Fs?f:v}ms`)),$(E,L)}),$(I,P)};V(C,I=>{s(b)&&u&&I(T)})}$(t,y),H(),o()}var Sx=M('<div><div data-testid="video-container"></div></div>'),Cx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
+ .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Pa(t,e){D(e,!0),q(t,Cx);let[i,o]=Oe(),n=()=>S(f,"$rotateAlpha",i),r=()=>S(v,"$playerSize",i),l=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=Ie(),{isSmoothVideoRotate:b}=Wt(),x=h(()=>a()&&n()%180?r().height/r().width:1);var y=Sx();let C;y.__contextmenu=function(...P){var k;(k=e.onContextMenu)==null||k.apply(this,P)},y.__mousedown=function(...P){var k;(k=e.onMouseDown)==null||k.apply(this,P)},y.__mouseup=function(...P){var k;(k=e.onMouseUp)==null||k.apply(this,P)},y.__click=function(...P){var k;(k=e.onClick)==null||k.apply(this,P)},y.__dblclick=function(...P){var k;(k=e.onDblClick)==null||k.apply(this,P)};var T=_(y);let I;tt(T,P=>a(P),()=>a()),g(y),O((P,k)=>{C=ee(y,1,"video-wrapper svelte-1czns9r",null,C,P),I=ee(T,1,"video-container svelte-1czns9r",null,I,k),at(T,`transform: rotate(${n()}deg) scale(${s(x)})`),De(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!b})]),$(t,y),H(),o()}dt(["contextmenu","mousedown","mouseup","click","dblclick"]);var Tx=(t,e,i,o,n,r)=>{if(t.stopPropagation(),e()||o()){r();return}},Ex=M("<div><!></div>"),Ix=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),kx=M("<div><!></div>"),Px=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),Ax=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Mx=M("<!> <!> <!>",1),Lx=M('<div class="blocked svelte-jtgjmv"></div>'),Vx=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Rx={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Ym(t,e){D(e,!0),q(t,Rx);let[i,o]=Oe(),n=()=>S(Vn,"$notificationsToShow$",i),r=()=>S(gi,"$playerPhase",i),l=()=>S(Kt,"$isLoaderVisible",i),d=()=>S(pi,"$adPlaybackState",i),a=()=>S(kt,"$crashed",i),u=()=>S(Ho,"$isInteractiveTime$",i),f=()=>S(jt,"$settingsMenuVisible",i),v=()=>S(En,"$isInteractiveExpectation$",i),p=()=>S(qi,"$controlsVisible",i),b=()=>S(Pi,"$touched",i),x=()=>S(Pn,"$graphIsOpened$",i),y=()=>S(Wi,"$isFullscreen",i),C=()=>S(Or,"$autoplayNextEnabled$",i),T=()=>S(fi,"$postrollPassed",i),I=()=>S(ui,"$isEnded$",i),P=()=>S(Oi,"$cursorInside",i),k=()=>S(er,"$isControlsAvailable",i),E=()=>S(kn,"$fakeIsPlaying$",i),L=()=>S(ti,"$bottomNoSmooth",i),K=()=>S(To,"$interactiveTimeIndicator",i),z=()=>S(Co,"$playerSize",i),U=()=>S(wi,"$is3DVideo",i),Y=()=>S(hi,"$contextMenuVisible$",i),se=()=>S(Ri,"$playbackState$",i),j=()=>S(Fo,"$hotKeyMapData",i),ue=()=>S(At,"$scrubbingInProgress",i),le=()=>S(ct,"$volumeChangingInProgress",i),Me=()=>S(Ni,"$chromecastConnected$",i),Ne=()=>S(Rn,"$controlsTimeoutActive",i),ve=()=>S(vo,"$settingsMenuOpenedByKeyboard",i),pe=()=>S(Yo,"$contextMenuOpenedByKeyboard$",i),Re=()=>S(wr,"$contextMenuOpenedByHotKey$",i),ie=()=>S(dn,"$contextMenuButtonRef$",i),N=()=>S(Wr,"$contextMenuLastActiveElem$",i),Ye=()=>S(mo,"$isFullscreenOpenedByKeyboard",i),te=()=>S(ht,"$language$",i),Ke=()=>S($t,"$icon3DVideoVisible",i),de=()=>S(di,"$chromecastDeviceName$",i),fe=()=>S(Jn,"$currentSubtitle$",i),ye=()=>S(ki,"$currentSubtitleCaptions$",i),X=()=>S(ot,"$position$",i),Qe=()=>S(Ft,"$duration$",i),Xe=()=>S(mt,"$isLive$",i),ke=()=>S(it,"$isPlaying$",i),ne=()=>S(rn,"$contextMenuPosition$",i),Ee=()=>S(In,"$showHotKeyMap",i),Ge=()=>S(G,"$debugPanelVisible",i),rt=()=>S(hr,"$userActionsDisabled$",i),nt=m(e,"videoContainer",15),Rt=m(e,"adsSlotId",3,void 0),et=m(e,"adsParams",3,void 0),pt=m(e,"adsPreviewParam",3,void 0),Yt=m(e,"adsAutoplayParam",3,void 0),si=m(e,"duration",3,void 0),Qt=m(e,"logoTargetUrl",3,""),Tt=m(e,"showNextPrevButtons",3,!1),oe=m(e,"nextButtonActive",3,!1),Nt=m(e,"prevButtonActive",3,!1),he=m(e,"endScreenVideoTitle",3,void 0),J=m(e,"endScreenVideoThumb",3,void 0),we=m(e,"isOneVideoPlaylist",3,!1),Fe=m(e,"shadowRootContainer",3,void 0),me=m(e,"outerContainerRef",3,void 0),Be=m(e,"playerStarted",3,!1),Je=m(e,"fullScreenTarget",3,void 0),ze=m(e,"showMiniTimer",3,!1),Lt=m(e,"showEndScreen",3,!0),Et=m(e,"keyboardControls",15),St=e.store.getLogger().createComponentLog("Root component"),ht=e.store.interfaceLanguage$,Ri=e.store.state.playbackState$,pi=e.store.ads.playbackState,ot=e.store.state.positionWithScrubbing$,Ft=e.store.state.duration$,gi=e.store.playerPhase,Wi=e.store.ui.isFullscreen,mo=e.store.ui.isFullscreenOpenedByKeyboard,qi=e.store.ui.controlsVisible,jt=e.store.ui.settingsMenu.visible$,vo=e.store.ui.settingsMenu.openedByBtnKeyboard$,At=e.store.ui.scrubbingInProgress,ct=e.store.ui.volumeChangingInProgress,hi=e.store.ui.contextMenu.visible$,G=e.store.ui.debugPanelVisible,Kt=e.store.state.isLoaderVisible,ui=e.store.state.isEnded$,Ni=e.store.state.chromecastConnected$,di=e.store.state.chromecastDeviceName$,fi=e.store.ads.postrollPassed,mt=e.store.state.isLive$,it=e.store.state.isPlaying$,kt=e.store.state.crashed$,Ki=e.store.webApi.annotationsApi,ni=e.store.webApi.pictureInPictureApi,Jn=e.store.state.currentSubtitle$,ki=e.store.state.currentSubtitleCaptions$,Co=e.store.ui.playerSize,wi=e.store.ui.is3DVideo,$t=e.store.ui.icon3DVideoVisible,Bi=e.store.state.isInteractive,Ho=e.store.state.isInteractiveTime$,En=e.store.state.isInteractiveExpectation$,ci=e.store.state.hasInteractiveBranches,Pi=e.store.ui.touched,Fo=e.store.ui.modals.hotKeyMap.data,In=e.store.ui.modals.hotKeyMap.show,Uo=e.store.ui.overlayContainer$,To=e.store.ui.controls.interactiveTimeIndicator,vn=e.store.state.showInteractiveTimeIndicator,rn=e.store.ui.contextMenu.position$,go=e.store.actions.internal.setQuality,ao=e.store.actions.internal.closeSettingsMenu,Or=e.store.ui.autoplayNextEnabled$,hr=e.store.ui.userActionsDisabled,er=e.store.ui.isControlsAvailable,tr=e.store.ui.videoTitleInfo,ir=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:kn,notifications$:rs,graphIsOpened$:Pn}=fo(),Si=Z(void 0),An=Z(void 0),sn=Z(void 0),an=Z(void 0),Mn,Ln,zo;Fo.set(Uh());let{closeNotification:Dr,notificationsToShow$:Vn}=rs,or=h(()=>!!n().slow_video),Qi=()=>Dr("slow_video"),Eo=h(()=>(r()==="video"&&l()||r()==="ads"&&d()==="inactive")&&!a()),lt=Z(void 0),ti=ae(!1),_r,Rn=ae(!1),gn=ae(),Oi=ae(!1),Nn=Z(!1),Io=Z(!1),Bn=Z(!1),ko=Z(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),On=h(()=>u()&&!f()&&!(s(Nn)||s(Io))&&!(s(Bn)&&!v())),Dn=!0,nr=h(()=>e.uiConfig.features.thumbTimer&&ze()&&r()==="video"&&!p()&&!a()&&!Bi&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),br=h(()=>r()==="video"&&!x()&&y()),rr=Z(!1),Wo=h(()=>(Lt()||e.showAutoplayNext&&C())&&!!he()&&!!J()&&(e.showAds&&T()||!e.showAds)&&I()&&!a()&&!s(rr)),Hr=h(()=>P()&&!(p()||s(Wo))&&!u()&&k()),sr=Z(!1),$r=h(()=>E()!==null),{toggle:ln}=kn,Zt=!1,ho=null;ni==null||ni.setContext(El());let yr=()=>{e.autoplay&&!Bi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ai(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:yr});let xr=()=>{window.clearTimeout(Mn),Rn.set(!1)},qo=()=>{window.clearTimeout(Ln),gn.set(null)},Ai=Se=>{xr(),Rn.set(!0),Mn=window.setTimeout(()=>Rn.set(!1),Se);let _e=Se-100;_r=window.setTimeout(()=>{L()&&ti.set(!1)},_e>0?_e:Se)},Fr=(Se,_e)=>{qo(),gn.set(_e),Ln=window.setTimeout(()=>gn.set(null),Se)},Ur=wi.subscribe(Se=>{$t.set(Se),Se&&(window.clearTimeout(zo),zo=window.setTimeout(()=>$t.set(!1),e.uiConfig.controls.hide360IconTimeout))}),zr=()=>wt(null,null,function*(){var _e,ft,Mt,Ve;let Se=Vs();if(Se){let ut=td(),Gt=vt();Se=ut===Gt||ut===Fe()}if(Se){Ai(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ni==null?void 0:ni.remove()}catch(ut){St({message:String(ut)})}}Wi.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),y()?(ft=(_e=e.store.callbacks)==null?void 0:_e.onFullscreenEnter)==null||ft.call(_e):(Ve=(Mt=e.store.callbacks)==null?void 0:Mt.onFullscreenExit)==null||Ve.call(Mt)}),ar=Se=>{let{width:_e,height:ft}=Se.target;Co.set({width:_e,height:ft})},lr=()=>{let{width:Se,height:_e}=s(Si).getBoundingClientRect();Co.set({width:Se,height:_e})};Ht(()=>{var _e;return Yc(zr),e.uiConfig.features.annotationsInside&&(Ki==null||Ki.init(s(Si))),pa(ni)&&(ni==null||ni.assignPlayerContainer(s(Si)),ni==null||ni.registryExternalEventHandlers({resize:ar,leavepictureinpicture:lr})),e.interactiveContainer&&((_e=nt().parentElement)==null||_e.insertBefore(e.interactiveContainer,nt().nextSibling)),()=>{window.clearTimeout(Mn),window.clearTimeout(_r),window.clearTimeout(Ln),window.clearTimeout(zo),Ur(),ni==null||ni.dispose().catch(ft=>{St({message:String(ft)})}),jc(zr)}});let vt=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!me()?s(Si):me(),_e=Se.getRootNode(),ft=_e instanceof ShadowRoot?_e.host:_e,Mt=Je()instanceof HTMLElement&&Je().contains(ft);return e.uiConfig.allowChangingFullscreenTarget&&Je()&&Mt?Je():Se},Xt=()=>wt(null,null,function*(){Vs()?(yield Gc(document),St({message:"exit fullscreen"})):(St({message:"request fullscreen"}),yield Qc(vt()))}),$i=()=>{ao(),hi.set(!1)},Gi=Se=>{x()||(Se.preventDefault(),hi.set(!0),rn.set({left:Se.clientX,top:Se.clientY}))};function yi(){Oi.set(!0),Bi||Ai(e.uiConfig.controls.hideTimeoutCursor)}function _o(){Bi||(ti.set(!0),Ai(e.uiConfig.controls.hideTimeoutCursor))}function Po(){Oi.set(!1),B(Io,!1),B(Nn,!1),Zt=!1,e.store.actions.internal.releaseCamera(),Ai(e.uiConfig.controls.hideTimeout)}function Ko(Se){return Se?Se.offsetTop+Ko(Se.offsetParent):0}function We(Se){return Se?Se.offsetLeft+We(Se.offsetParent):0}function Vt(Se){if(K()&&vn){let _e=Se.currentTarget,ft=Ko(_e),Mt=We(_e),Ve=Se.pageX-Mt,ut=Se.pageY-ft,{left:Gt,bottom:Ci,right:io}=K(),Zi=io-Gt;return Ve>=Gt-Zi&&ut<=Ci+Zi}}function mi(Se){if(s(Si)){let _e=Ko(Se.currentTarget),ft=z().height,Mt=Se.pageY-_e;if(Vt(Se)){B(Io,!1);return}Mt<40?B(Io,!0):Mt>ft-40?B(Nn,!0):(B(Io,!1),f()||B(Nn,!1))}}function bo(Se){mi(Se),s(On)||Ai(e.uiConfig.controls.hideTimeoutCursor),U()&&Zt&&ho&&e.store.actions.internal.moveCameraFocusPX(ho.clientX-Se.clientX,ho.clientY-Se.clientY,Se.timeStamp-ho.timeStamp),ho=Se}let lo=Se=>{Se.preventDefault(),Se.button===0&&(Zt=!0,e.store.actions.internal.holdCamera()),Ai(e.uiConfig.controls.hideTimeoutCursor)},Qo=Se=>{Se.preventDefault(),Se.button===0&&(ho=Se,Zt=!1,e.store.actions.internal.releaseCamera()),Ai(e.uiConfig.controls.hideTimeoutCursor)},to=Se=>{Se.preventDefault(),Dn&&(St({message:"double click on video"}),Xt(),Ai(e.uiConfig.controls.hideTimeoutCursor))},Go=Se=>{var _e;if(Se.preventDefault(),Y()||f()){$i();return}if(!(I()&&!ci)){if(s($r))return ln();if((_e=Et())==null||_e.focus(),!Be()){e.firstStart(),Ai(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||se()!==Q1.PLAYING)&&e.store.actions.internal.togglePlay(),Ai(e.uiConfig.controls.hideTimeoutCursor)}},Ao=Se=>{$i(),Pi.set(!0),Ai(e.uiConfig.controls.hideTimeout),Se&&Fr(e.uiConfig.controls.hideHotKeyHelpers,Se)},Yi=()=>{var Se,_e;$i(),(Se=e.store.callbacks)!=null&&Se.onOpenHotKeyMap?(_e=e.store.callbacks)==null||_e.onOpenHotKeyMap(j()):In.update(ft=>!ft)},xi=()=>{Pi.set(!0)},Yo=e.store.ui.contextMenu.openedByBtnKeyboard$,dn=e.store.ui.contextMenu.btnRef$,co=Z(void 0),wr=e.store.ui.contextMenu.openedByHotKey$,Wr=e.store.ui.contextMenu.lastActiveElem$;qe(()=>{Uo.set(s(lt))}),qe(()=>{B(Bn,s(ko)&&se()!==Q1.PLAYING,!0),s(ko)||It(()=>B(ko,!0))}),qe(()=>{qi.set((s(Bn)||I()||f()||ue()||le()||Me()||Ne())&&!s(On)&&(r()==="video"||r()==="ads")&&!a()&&k())}),qe(()=>{!ue()&&s(sr)&&!u()&&Ai(e.uiConfig.controls.hideTimeoutCursor),It(()=>B(sr,ue(),!0))}),qe(()=>{s(an),f(),ve(),It(()=>ad(s(an),f(),ve()))}),qe(()=>{s(co),Y(),pe(),Re(),It(()=>{let Se=pe()||Re();ad(s(co),Y(),Se)})}),qe(()=>{let Se=ie();Se&&(Y(),It(()=>sl(Se,Y(),Yo)))}),qe(()=>{let Se=N();Se&&(Y(),It(()=>Gh(Se,Y(),wr)))}),qe(()=>{var Se;!Ye()&&y()&&(It(()=>mo.set(!1)),(Se=Et())==null||Se.focus())}),qe(()=>{x()&&$i()});let qr=F("video360"),hn=Z(void 0),Hn=Se=>{tr.set(on(ir(),{title:s(hn)},"title",Se))},ss=(Se,_e)=>{var Mt,Ve,ut;let ft=on(s(Si),{upcomingLiveScreen:Se},"upcomingLiveScreen",_e);(ut=(Ve=(Mt=e.store.callbacks)==null?void 0:Mt.uiInfo)==null?void 0:Ve.onUpcomingLiveStateChanged)==null||ut.call(Ve,ft)},Sr=(Se,_e)=>{var Mt,Ve,ut;let ft=on(s(Si),{upcomingLiveScreen:Se},"upcomingLiveScreen",_e);(ut=(Ve=(Mt=e.store.callbacks)==null?void 0:Mt.uiInfo)==null?void 0:Ve.onWaitingLiveStateChanged)==null||ut.call(Ve,ft)};var jo=Vx();Ct("blur",Js,$i);var ji=ge(jo);ji.__mousemove=bo;var Fn=_(ji);let dr=h(()=>r()==="ads"),Kr=h(()=>s($r)?ln:void 0);tt(vf(Fn,{toggleFullscreen:Xt,hideContextMenu:$i,showHotKeyHelpers:Ao,showKeyMap:Yi,get isAds(){return s(dr)},get fakePlayButtonHandler(){return s(Kr)},get nextButtonActive(){return oe()},get prevButtonActive(){return Nt()},children:(Se,_e)=>{var ft=Mx(),Mt=ge(ft);Pa(Mt,{get hideCursor(){return s(Hr)},onClick:Go,onContextMenu:Gi,onMouseDown:lo,onMouseUp:Qo,onDblClick:to,get videoContainer(){return nt()},set videoContainer(Gt){nt(Gt)}});var Ve=A(Mt,2);sa(Ve,()=>"slot",!1,(Gt,Ci)=>{Pe(Gt,()=>({name:ka}))});var ut=A(Ve,2);ra(ut,te,Gt=>{var Ci=Ax(),io=ge(Ci);let Zi=h(()=>r()!=="thumb"||a()||Bi&&e.autoplay);Ta(io,{get hidden(){return s(Zi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Cr=A(io,2);Gm(Cr,{});var Tr=A(Cr,2);{var oo=je=>{let ai=h(()=>{var Mo;return(Mo=e.live)==null?void 0:Mo.startTime});Od(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(ai)},get playerSize(){return Co},onUpcomingLiveStateChanged:ss,onWaitingLiveStateChanged:Sr})};V(Tr,je=>{r()==="LiveWaitingStart"&&je(oo)})}var Mi=A(Tr,2);{var _n=je=>{Ea(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Mi,je=>{r()==="LiveWaitingRecover"&&je(_n)})}var Un=A(Mi,2);{var Er=je=>{Ea(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Un,je=>{r()==="LiveWaitingRecord"&&je(Er)})}var $o=A(Un,2);{var ur=je=>{var ai=Ex();let Mo;var qs=_(ai);id(qs,{get adsSlotId(){return Rt()},get adsParams(){return et()},get adsPreviewParam(){return pt()},get adsAutoplayParam(){return Yt()},get duration(){return si()}}),g(ai),O(st=>Mo=ee(ai,1,"ads-container svelte-jtgjmv",null,Mo,st),[()=>({hidden:r()!=="ads"})]),$(je,ai)};V($o,je=>{e.showAds&&Be()&&je(ur)})}var Ws=A($o,2);{var xt=je=>{let ai=h(()=>!Lt()&&e.showAutoplayNext&&C());pf(je,{get title(){return he()},get thumb(){return J()},get isHide(){return s(ai)},clickCloseIcon:()=>B(rr,!0)})};V(Ws,je=>{s(Wo)&&he()&&J()&&je(xt)})}var yt=A(Ws,2);{var uo=je=>{let ai=h(()=>!p());wm(je,{get title(){return e.title},get isHidden(){return s(ai)},onVisibilityChanged:Hn,get ref(){return s(hn)},set ref(Mo){B(hn,Mo,!0)}})};V(yt,je=>{s(br)&&je(uo)})}var Zo=A(yt,2);{var po=je=>{let ai=h(()=>r()==="video"&&p());Rd(je,{get isShifted(){return s(ai)}})};V(Zo,je=>{U()&&je(po)})}var li=A(Zo,2);{var Di=je=>{var ai=Ix(),Mo=_(ai);ed(Mo,{get"aria-label"(){return qr}}),g(ai),$(je,ai)};V(li,je=>{Ke()&&je(Di)})}var ws=A(li,2);{var _l=je=>{Nd(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return de()}})};V(ws,je=>{Me()&&je(_l)})}var ec=A(ws,2);{var Nu=je=>{Ca(je,{get shifted(){return p()},get captions(){return ye()},get position(){return X()},get playerSize(){return z()}})};V(ec,je=>{fe().value!=="off"&&je(Nu)})}var tc=A(ec,2);{var Bu=je=>{var ai=kx();ai.__contextmenu=Gi,ai.__click=[Tx,Y,hi,f,jt,$i];var Mo=_(ai);Bd(Mo,{}),g(ai),$(je,ai)};V(tc,je=>{a()&&je(Bu)})}var ic=A(tc,2);{var Aa=je=>{let ai=h(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"),Mo=h(()=>r()==="ads"),qs=h(()=>e.canRewindLive&&Qe()!==0);Vd(je,{get bottomHidden(){return s(ai)},get bottomNoSmooth(){return L()},get showControls(){return p()},get isAds(){return s(Mo)},get canRewindLive(){return s(qs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Tt()},get nextButtonActive(){return oe()},get prevButtonActive(){return Nt()},get isOneVideoPlaylist(){return we()},customFullscreenSupported:Dn,toggleFullscreen:Xt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(An)},set playerControlsWrapperRef(st){B(An,st,!0)},get playerControlsRef(){return s(sn)},set playerControlsRef(st){B(sn,st,!0)}})};V(ic,je=>{Be()&&je(Aa)})}var oc=A(ic,2);{var nc=je=>{var ai=Px(),Mo=_(ai);let qs=h(()=>{var st;return(st=s(sn))==null?void 0:st.clientHeight});Fd(Mo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(qs)},returnFocus:()=>{var st;return(st=Et())==null?void 0:st.focus()},get ref(){return s(an)},set ref(st){B(an,st,!0)}}),g(ai),$(je,ai)};V(oc,je=>{!Me()&&r()!=="ads"&&je(nc)})}var bl=A(oc,2);let Ou=h(()=>!s(nr));rd(bl,{get isLive(){return Xe()},get isHidden(){return s(Ou)},get isPlaying(){return ke()},get position(){return X()},get duration(){return Qe()}});var $l=A(bl,2);bm($l,{get data(){return gn}});var Ma=A($l,2);uf(Ma,{get supportLink(){return e.supportLink},returnFocus:()=>{var je;return(je=Et())==null?void 0:je.focus()},get visible(){return Y()},get playerContainerRef(){return s(Si)},get controlsContainerRef(){return s(An)},get position(){return ne()},get menuElementRef(){return s(co)},set menuElementRef(je){B(co,je,!0)}});var yl=A(Ma,2);{var Du=je=>{Ud(je,{onClose:Qi,onSelectAutoQuality:()=>{go("auto"),Qi()}})};V(yl,je=>{s(or)&&je(Du)})}var xl=A(yl,2);{var Hu=je=>{ha(je,{})};V(xl,je=>{s(Eo)&&je(Hu)})}var rc=A(xl,2);{var Fu=je=>{_f(je,{})};V(rc,je=>{Ee()&&je(Fu)})}var Uu=A(rc,2);{var La=je=>{cd(je,{})};V(Uu,je=>{Ge()&&je(La)})}$(Gt,Ci)}),$(Se,ft)},$$slots:{default:!0}}),Se=>Et(Se),()=>Et());var Qr=A(Fn,2);tt(Qr,Se=>B(lt,Se),()=>s(lt)),g(ji),tt(ji,Se=>B(Si,Se),()=>s(Si));var cr=A(ji,2);{var as=Se=>{var _e=Lx();$(Se,_e)};V(cr,Se=>{rt()&&Se(as)})}Ct("mouseenter",ji,yi),Ct("mouseleave",ji,Po),Ct("click",ji,xi,!0),Ct("focusin",ji,_o,!0),$(t,jo),H(),o()}dt(["mousemove","contextmenu","click"]);import{clientChecker as zd,PlaybackState as qx}from"@vkontakte/videoplayer-core/es2015";import{noop as Kx}from"@vkontakte/videoplayer-shared/es2015";var Nx=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),Bx=M("<div><!></div>"),Ox={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
342
342
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
343
343
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
344
344
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -354,7 +354,7 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=k_;var hs=new Map;hs.set(Vh.EN,Mh)
354
354
  100% {
355
355
  opacity: 0;
356
356
  }
357
- }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Su(t,e){D(e,!0),q(t,Ox);let i=m(e,"seekStep",3,0),o=Z(!1),n=0,r=0,l=Z(ri(i())),d=v=>{v.stopPropagation(),r+=1,B(l,i()*(r-1)),r===1?e.handleSingleFirstClick(v):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{r=0,B(o,!1)},300)};Tn(()=>{window.clearTimeout(n)});var a=Bx();a.__click=d;var u=_(a);{var f=v=>{var p=Nx(),y=ge(p),w=A(y,2),$=_(w),S=_($),T=A(S,2),k=A(T,2);g($);var P=A($,2),I=_(P,!0);g(P),g(w),O(E=>{var L,K,z,U;ee(y,1,`semicircle ${(L=e.side)!=null?L:""}`,"svelte-nhq2ld"),ee(S,1,`triangle ${(K=e.side)!=null?K:""}`,"svelte-nhq2ld"),ee(T,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),ee(k,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),_e(I,E)},[()=>F("doubletap_seek_step",{seconds:s(l).toFixed(0)})]),b(v,p)};V(u,v=>{s(o)&&v(f)})}g(a),O(()=>{var v;return ee(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),H()}lt(["click"]);var Dx=(t,e,i)=>{e(!1),i()},Hx=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),Fx={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 Ym(t,e){D(e,!0),q(t,Fx);let[i,o]=Oe(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>C(a,"$timerNextVideoRunning$",i),l=Ie(),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()},$=()=>{e.clickCloseIcon(),y()};Dt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=Fe(),T=ge(S);{var k=P=>{var I=Hx(),E=A(ge(I),2),L=_(E),K=_(L),z=_(K,!0);g(K);var U=A(K,2);ga(U,{onClick:$}),g(L);var Y=A(L,2);Y.__click=[Dx,u,v];var se=_(Y),j=_(se),ue=_(j);let le;var Me=A(ue,2);{var Re=ie=>{ud(ie,{get isRunning(){return r()},onTimerEnded:w})};V(Me,ie=>{n()&&ie(Re)})}g(j),g(se);var ve=A(se,2),pe=_(ve),Ve=_(pe,!0);g(pe),g(ve),g(Y),g(E),O((ie,N)=>{_e(z,ie),st(j,`background-image: url('${e.thumb}')`),le=ee(ue,1,"thumb-overlay svelte-1qdxi6t",null,le,N),_e(Ve,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(P,I)};V(T,P=>{e.isHide||P(k)})}b(t,S),H(),o()}lt(["click"]);import{clientChecker as Ux}from"@vkontakte/videoplayer-core/es2015";var Q1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Dt(()=>{Ux.device.isIOS&&(o=setTimeout(()=>{let r=t().querySelector("video");if(!r)return;let l=()=>e(!0),d=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",d),i=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",d)}},0))}),Tn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as zx}from"@vkontakte/videoplayer-core/es2015";var Tu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as Wx}from"@vkontakte/videoplayer-core/es2015";var G1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:r,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>Wx.device.isIOS&&ye(l)===zx.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=y=>{if(v(),!f()||!y)return;let w=u();if(!w)return;let $=new Tu(w),S=ye(d),T=ye(r),k=ye(n);for(let E of S)T.some(K=>K.value===E.id)&&$.attach(E,k.value===E.id);let P=d.subscribe(E=>{for(let L of E)$.updateSrc(L)}),I=()=>{let E=$.getCurrentShowingId();o(ye(r).find(L=>L.value===E))};w.textTracks.addEventListener("change",I),a=()=>{P(),$.detachAll(),w.textTracks.removeEventListener("change",I)}};Dt(()=>i.subscribe(p)),Tn(v)};var Qx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Gx=M("<!> <!>",1),Yx=M("<div><!></div>"),jx=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Zx=M("<div><!></div>"),Xx=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Jx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),e5=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),t5={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 jm(t,e){var zr,Sr;D(e,!0),q(t,t5);let[i,o]=Oe(),n=()=>C(Tt,"$playerPhase",i),r=()=>C(Wi,"$isLoaderVisible",i),l=()=>C(Je,"$adPlaybackState",i),d=()=>C(fi,"$crashed",i),a=()=>C(Ln,"$notificationsToShow$",i),u=()=>C(Ne,"$playbackState$",i),f=()=>C(we,"$graphIsOpened$",i),v=()=>C(pi,"$interactiveHideMobileControls",i),p=()=>C(Yt,"$isEnded$",i),y=()=>C(Oo,"$isInteractiveExpectation$",i),w=()=>C(ft,"$controlsVisible",i),$=()=>C(Ti,"$touched",i),S=()=>C(Pn,"$autoplayNextEnabled$",i),T=()=>C(dt,"$postrollPassed",i),k=()=>C(Vn,"$bottomNoSmooth",i),P=()=>C(It,"$videoSize",i),I=()=>C(Vi,"$playerSize",i),E=()=>C(xt,"$isFullscreen",i),L=()=>C(Ue,"$position$",i),K=()=>C(Mt,"$duration$",i),z=()=>C(Ho,"$loadedMetadata",i),U=()=>C(it,"$settingsMenuVisible",i),Y=()=>C(vi,"$scrubbingInProgress",i),se=()=>C(zi,"$volumeChangingInProgress",i),j=()=>C(fo,"$chromecastConnected$",i),ue=()=>C(Mi,"$isControlsAvailable",i),le=()=>C(Ri,"$isInteractiveTime$",i),Me=()=>C(Li,"$isActiveLive",i),Re=()=>C(Ht,"$settingsMenuOpenedByKeyboard",i),ve=()=>C(me,"$language$",i),pe=()=>C(ci,"$disabledControls$",i),Ve=()=>C(Bo,"$is3DVideo",i),ie=()=>C(xi,"$icon3DVideoVisible",i),N=()=>C(Pt,"$chromecastDeviceName$",i),Ge=()=>C(qi,"$currentSubtitle$",i),te=()=>C(ii,"$currentSubtitleCaptions$",i),qe=()=>C(ir,"$realDuration$",i),de=()=>C(Kt,"$isLive$",i),fe=()=>C(ui,"$isPlaying$",i),$e=()=>C(po,"$debugPanelVisible",i),X=m(e,"videoContainer",15),Ke=m(e,"adsSlotId",3,void 0),Xe=m(e,"adsParams",3,void 0),ke=m(e,"adsPreviewParam",3,void 0),ne=m(e,"adsAutoplayParam",3,void 0),Ee=m(e,"duration",3,void 0),Qe=m(e,"logoTargetUrl",3,""),rt=m(e,"showNextPrevButtons",3,!1),nt=m(e,"nextButtonActive",3,!1),Lt=m(e,"prevButtonActive",3,!1),et=m(e,"endScreenVideoTitle",3,void 0),ct=m(e,"endScreenVideoThumb",3,void 0),Gt=m(e,"isOneVideoPlaylist",3,!1),si=m(e,"shadowRootContainer",3,void 0),Qt=m(e,"outerContainerRef",3,void 0),St=m(e,"showMiniTimer",3,!1),oe=m(e,"fullScreenTarget",3,void 0),Vt=m(e,"playerStarted",3,!1),he=m(e,"showEndScreen",3,!0),{notifications$:J,graphIsOpened$:we}=uo(),He=e.store.getLogger().createComponentLog("Root component"),me=e.store.interfaceLanguage$,Ne=e.store.state.playbackState$,Je=e.store.ads.playbackState,Ue=e.store.state.positionWithScrubbing$,Mt=e.store.state.duration$,Tt=e.store.playerPhase,xt=e.store.ui.isFullscreen,ft=e.store.ui.controlsVisible,Mi=e.store.ui.isControlsAvailable,pi=e.store.ui.interactiveHideMobileControls,it=e.store.ui.settingsMenu.visible$,Ht=e.store.ui.settingsMenu.openedByBtnKeyboard$,vi=e.store.ui.scrubbingInProgress,zi=e.store.ui.volumeChangingInProgress,po=e.store.ui.debugPanelVisible,Wi=e.store.state.isLoaderVisible,Yt=e.store.state.isEnded$,fo=e.store.state.chromecastConnected$,Pt=e.store.state.chromecastDeviceName$,dt=e.store.ads.postrollPassed,gi=e.store.ui.mobileUnmuteButtonExpanded,G=e.store.ui.mobileUnmuteButtonVisible,Kt=e.store.state.isLive$,ui=e.store.state.isPlaying$,Li=e.store.state.isActiveLive$,di=e.store.state.isRewindableLive$,fi=e.store.state.crashed$,ut=e.store.webApi.annotationsApi,tt=e.store.webApi.pictureInPictureApi,It=e.store.state.videoSize$,qi=e.store.state.currentSubtitle$,ii=e.store.state.currentSubtitleCaptions$,ir=e.store.state.duration$,Vi=e.store.ui.playerSize,Bo=e.store.ui.is3DVideo,xi=e.store.ui.icon3DVideoVisible,gt=e.store.state.isInteractive,Ri=e.store.state.isInteractiveTime$,Oo=e.store.state.isInteractiveExpectation$,kn=e.store.state.hasInteractiveBranches,ci=e.store.ui.controls.disabledControls$,Ti=e.store.ui.touched,Do=e.store.ui.overlayContainer$,Pn=e.store.ui.autoplayNextEnabled$,Ho=e.store.state.loadedMetadata$,xo=e.store.actions.internal.closeSettingsMenu,gn=(zr=e.store.callbacks)==null?void 0:zr.onDisabledPlayPrevChapterClick,tn=(Sr=e.store.callbacks)==null?void 0:Sr.onDisabledSeekToInteractiveClick,mo=e.store.actions.internal.setQuality,wo=Z(void 0),Hr=Z(void 0),$r=Z(void 0),or=Z(void 0),nr,rr,An,ss=h(()=>(n()==="video"&&r()||n()==="ads"&&l()==="inactive")&&!d()),Mn=Z(void 0),{closeNotification:Ni,notificationsToShow$:Ln}=J,on=h(()=>!!a().slow_video),nn=()=>Ni("slow_video"),Vn=ae(!1),Rn,Fo=Z(!1),Fr=h(()=>u()!==qx.PLAYING),Nn=Z(!1),sr=h(()=>f()||v()||!s(Fo)&&(p()&&!!kn||s(Fr)&&y())),Ki=Z(!0),Co=h(()=>e.uiConfig.features.thumbTimer&&St()&&n()==="video"&&!w()&&!d()&&!gt&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),at=Z(!1),Jt=h(()=>(he()||e.showAutoplayNext&&S())&&!!et()&&!!ct()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!s(at)),yr=Z(!1);tt==null||tt.setContext(El());let Bn=ht=>{clearTimeout(rr),ht&&(G.set(!0),gi.set(!0),rr=setTimeout(()=>{gi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),gt||Bi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Bn});let hn=()=>{clearTimeout(nr),B(Fo,!1),v()&&pi.set(!1)},Bi=ht=>{hn(),B(Fo,!0),nr=setTimeout(()=>B(Fo,!1),ht);let ai=ht-100;Rn=setTimeout(()=>{k()&&Vn.set(!1)},ai>0?ai:ht)},On=Bo.subscribe(ht=>{xi.set(ht),ht&&(clearTimeout(An),An=setTimeout(()=>xi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),So=(...ai)=>yt(null,[...ai],function*(ht=Ns()){var zo,Wo,Qi,Un,sn,ur;if(ht&&!zd.device.isIOS){let Gi=td(),an=ar(),je=zd.browser.isSamsungBrowser&&Gi===si();ht=Gi===an||je}if(ht){Bi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield tt==null?void 0:tt.remove()}catch(Gi){He({message:String(Gi)})}try{let Gi=(zo=P())!=null&&zo.width&&((Wo=P())!=null&&Wo.height)?P():I();yield Dh(Gi)}catch(Gi){He({message:String(Gi)})}}xt.set(ht),e.store.getAdmanWrapper().setFullscreen(ht),E()?(Un=(Qi=e.store.callbacks)==null?void 0:Qi.onFullscreenEnter)==null||Un.call(Qi):(ur=(sn=e.store.callbacks)==null?void 0:sn.onFullscreenExit)==null||ur.call(sn)}),Dn=ht=>{let ai=ht;Vi.set({width:ai.target.width,height:ai.target.height})};Dt(()=>{var ht;return Yc(So),e.uiConfig.features.annotationsInside&&(ut==null||ut.init(s(wo))),fa(tt)&&(tt==null||tt.assignPlayerContainer(s(wo)),tt==null||tt.registryExternalEventHandlers({resize:Dn})),B(Ki,!zd.device.isIphoneOrOldIpad),e.interactiveContainer&&((ht=X().parentElement)==null||ht.insertBefore(e.interactiveContainer,X().nextSibling)),()=>{clearTimeout(nr),clearTimeout(Rn),clearTimeout(rr),clearTimeout(An),On(),tt==null||tt.dispose().catch(ai=>{He({message:String(ai)})}),jc(So)}});let To=Z(!0),Hn=Z(!0),Fn=ht=>{let ai=L()+(ht==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ai<0?(B(To,!1),ai=0):ai>=K()&&(B(Hn,!1),ai=K()),B(Nn,!0),e.seekTime(ai)},ar=()=>{let ht=zd.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Qt()?s(wo):Qt(),ai=ht.getRootNode(),zo=ai instanceof ShadowRoot?ai.host:ai,Wo=oe()instanceof HTMLElement&&oe().contains(zo);return e.uiConfig.allowChangingFullscreenTarget&&oe()&&Wo?oe():ht},xr=()=>yt(null,null,function*(){try{if(Ns())yield Gc(document),He({message:"exit fullscreen"});else{if(He({message:"request fullscreen"}),zd.device.isIOS&&!z())return;yield Qc(ar())}}catch(ht){He({message:String(ht)})}}),lr=()=>{xo()},Uo=ht=>{if(ht.preventDefault(),U()){lr();return}if(!Vt()){e.firstStart(),Bi(e.uiConfig.controls.hideTimeoutCursor);return}B(Nn,!1),w()?hn():Bi(e.uiConfig.controls.hideTimeoutMobile)},Ur=()=>{Ti.set(!0)},dr=()=>{gt||(Vn.set(!0),Bi(e.uiConfig.controls.hideTimeoutCursor))},wr=ht=>{gn&&(gn(ht),Bi(e.uiConfig.controls.hideTimeoutMobile))},rn=ht=>{tn&&(tn(ht),Bi(e.uiConfig.controls.hideTimeoutMobile))};We(()=>{Do.set(s(Mn))}),We(()=>{ft.set((s(Fr)||U()||Y()||se()||j()||!s(Jt)&&(p()||s(Fo)&&!s(Nn)))&&!s(sr)&&n()==="video"&&!d()&&ue())}),We(()=>{!Y()&&s(yr)&&!le()&&Bi(e.uiConfig.controls.hideTimeoutMobile),B(yr,Y(),!0)}),We(()=>{B(To,L()>0),B(Hn,!Me()&&L()<K(),!0)}),We(()=>{ad(s(or),U(),Re(),!0)});let jt=F("aria_label_video_player"),vo=F("video360");Q1({fullScreenChangeHandler:So,getFullscreenTarget:ar}),G1({store:e.store,getFullscreenTarget:ar});var Eo=e5();Ct("blur",ea,lr);var cr=_(Eo);Aa(cr,{onClick:Uo,get videoContainer(){return X()},set videoContainer(ht){X(ht)}});var Cr=A(cr,2);aa(Cr,()=>"slot",!1,(ht,ai)=>{Pe(ht,()=>({name:Pa}))});var Ei=A(Cr,2);sa(Ei,ve,ht=>{var ai=Jx(),zo=ge(ai);let Wo=h(()=>n()!=="thumb"||d()||gt&&e.autoplay);Ea(zo,{get hidden(){return s(Wo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Qi=A(zo,2);{var Un=xe=>{var $t=Gx(),Wt=ge($t);{var Ii=wt=>{let oi=h(()=>e.uiConfig.controls.seekStepMobile/1e3);Su(wt,{side:"left",get seekStep(){return s(oi)},handleSingleFirstClick:Uo,handleSecondClick:()=>Fn("backward")})};V(Wt,wt=>{s(To)&&wt(Ii)})}var yi=A(Wt,2);{var ze=wt=>{let oi=h(()=>e.uiConfig.controls.seekStepMobile/1e3);Su(wt,{side:"right",get seekStep(){return s(oi)},handleSingleFirstClick:Uo,handleSecondClick:()=>Fn("forward")})};V(yi,wt=>{s(Hn)&&wt(ze)})}b(xe,$t)};V(Qi,xe=>{e.canRewindLive&&di&&!pe().has("TIMELINE")&&xe(Un)})}var sn=A(Qi,2);{var ur=xe=>{let $t=h(()=>{var Wt;return(Wt=e.live)==null?void 0:Wt.startTime});Od(xe,{get thumbUrl(){return e.thumbUrl},get startTime(){return s($t)}})};V(sn,xe=>{n()==="LiveWaitingStart"&&xe(ur)})}var Gi=A(sn,2);{var an=xe=>{Ia(xe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Gi,xe=>{n()==="LiveWaitingRecover"&&xe(an)})}var je=A(Gi,2);{var Rt=xe=>{Ia(xe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(je,xe=>{n()==="LiveWaitingRecord"&&xe(Rt)})}var bi=A(je,2);{var go=xe=>{var $t=Yx();let Wt;var Ii=_($t);id(Ii,{get adsSlotId(){return Ke()},get adsParams(){return Xe()},get adsPreviewParam(){return ke()},get adsAutoplayParam(){return ne()},get duration(){return Ee()}}),g($t),O(yi=>Wt=ee($t,1,"ads-container svelte-7yl31d",null,Wt,yi),[()=>({hidden:n()!=="ads"})]),b(xe,$t)};V(bi,xe=>{e.showAds&&Vt()&&xe(go)})}var no=A(bi,2);{var qo=xe=>{let $t=h(()=>!he()&&e.showAutoplayNext&&S());Ym(xe,{get title(){return et()},get thumb(){return ct()},get isHide(){return s($t)},clickCloseIcon:()=>B(at,!0)})};V(no,xe=>{s(Jt)&&et()&&ct()&&xe(qo)})}var Ji=A(no,2);{var Ko=xe=>{Rd(xe,{})};V(Ji,xe=>{Ve()&&xe(Ko)})}var Io=A(Ji,2);{var Yi=xe=>{var $t=jx(),Wt=_($t);ed(Wt,{get"aria-label"(){return vo}}),g($t),b(xe,$t)};V(Io,xe=>{ie()&&xe(Yi)})}var $i=A(Io,2);{var Qo=xe=>{Nd(xe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};V($i,xe=>{j()&&xe(Qo)})}var ln=A($i,2);{var ro=xe=>{Ta(xe,{get shifted(){return w()},get captions(){return te()},get position(){return L()},get playerSize(){return I()},isMobile:!0})};V(ln,xe=>{Ge().value!=="off"&&xe(ro)})}var Tr=A(ln,2);{var Wr=xe=>{var $t=Zx();$t.__click=[Qx,U,it,lr];var Wt=_($t);Bd(Wt,{}),g($t),b(xe,$t)};V(Tr,xe=>{d()&&xe(Wr)})}var qr=A(Tr,2);{var _n=xe=>{let $t=h(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Wt=h(()=>n()==="ads"),Ii=h(()=>e.canRewindLive&&qe()!==0);Vd(xe,{get bottomHidden(){return s($t)},get showControls(){return w()},get bottomNoSmooth(){return k()},get isAds(){return s(Wt)},get canRewindLive(){return s(Ii)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Qe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return rt()},get nextButtonActive(){return nt()},get prevButtonActive(){return Lt()},get isOneVideoPlaylist(){return Gt()},get customFullscreenSupported(){return s(Ki)},get endScreenShown(){return s(Jt)},toggleFullscreen:xr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:wr,onDisabledSeekToInteractiveClick:rn,get playerControlsWrapperRef(){return s(Hr)},set playerControlsWrapperRef(yi){B(Hr,yi,!0)},get playerControlsRef(){return s($r)},set playerControlsRef(yi){B($r,yi,!0)}})};V(qr,xe=>{Vt()&&xe(_n)})}var zn=A(qr,2);{var Kr=xe=>{var $t=Xx(),Wt=_($t);Fd(Wt,{get supportLink(){return e.supportLink},get returnFocus(){return Kx},get ref(){return s(or)},set ref(Ii){B(or,Ii,!0)}}),g($t),b(xe,$t)};V(zn,xe=>{U()&&xe(Kr)})}var so=A(zn,2);let Go=h(()=>!s(Co));rd(so,{get isLive(){return de()},get isHidden(){return s(Go)},get isPlaying(){return fe()},get position(){return L()},get duration(){return K()}});var Wn=A(so,2);{var pr=xe=>{_a(xe,{})};V(Wn,xe=>{s(ss)&&xe(pr)})}var fr=A(Wn,2);{var Qr=xe=>{cd(xe,{})};V(fr,xe=>{$e()&&xe(Qr)})}var ls=A(fr,2);{var Te=xe=>{Ud(xe,{onClose:nn,onSelectAutoQuality:()=>{mo("auto"),nn()}})};V(ls,xe=>{s(on)&&xe(Te)})}b(ht,ai)});var as=A(Ei,2);ot(as,ht=>B(Mn,ht),()=>s(Mn)),g(Eo),ot(Eo,ht=>B(wo,ht),()=>s(wo)),O(()=>Be(Eo,"aria-label",jt)),Ct("click",Eo,Ur,!0),Ct("focusin",Eo,dr,!0),b(t,Eo),H(),o()}lt(["click"]);function Eu(t){let e="";return Xi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Xi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Xi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Xi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Xi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Xi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Xi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Xi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Xi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Xi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Xi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Xi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Xi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Xi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Xi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Xi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Xi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Xi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Xi(t.font)&&(e+=`--font:${t.font};`),Xi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Xi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Xi(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as i5}from"@vkontakte/videoplayer-shared/es2015";var o5=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),n5={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 Zm(t,e){D(e,!0),q(t,n5);let[i,o]=Oe(),n=()=>C(se,"$playerSize",i),r=()=>C(E,"$isPlaying$",i),l=()=>C(P,"$duration$",i),d=()=>C(z,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),u=()=>C(k,"$crashed$",i),f=()=>C(L,"$currentSubtitle$",i),v=()=>C(K,"$currentSubtitleCaptions$",i),p=()=>C(I,"$positionExact$",i),y=()=>C(U,"$isLive$",i),w=()=>C(Y,"$isRewindableLive$",i),$=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:k,duration$:P,positionExact$:I,isPlaying$:E,currentSubtitle$:L,currentSubtitleCaptions$:K,positionWithScrubbing$:z,isLive$:U,isRewindableLive$:Y},ui:{playerSize:se,controls:j},actions:{internal:{getVideoElement:ue}}}=Ie(),le=8,Me=Z(!1),Re=ri({}),ve=()=>{B(Me,!0)},pe=()=>{B(Me,!1)},Ve=i5(ul,260);We(()=>{n(),Ve(ue(),j,Re,s(Me))});let ie=h(()=>r()?vn(l()-d()):vn(isFinite(l())?l():$()));var N=o5(),Ge=_(N);Aa(Ge,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Ee){S(Ee)}});var te=A(Ge,2);aa(te,()=>"slot",!1,(Ee,Qe)=>{Pe(Ee,()=>({name:Pa}))});var qe=A(te,2);let de=h(()=>a()!=="thumb"||u());Ea(qe,{get hidden(){return s(de)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var fe=A(qe,2);{var $e=Ee=>{Ta(Ee,{shifted:!1,get captions(){return v()},get position(){return p()},get playerSize(){return n()}})};V(fe,Ee=>{f().value!=="off"&&Ee($e)})}var X=A(fe,2),Ke=_(X);nd(Ke,{get isLive(){return y()},get isPlaying(){return r()},get time(){return s(ie)}}),g(X);var Xe=A(X,2);let ke;var ne=_(Xe);ya(ne,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:le,tooltipRightOffset:le,get ref(){return Re.timeline},set ref(Ee){Re.timeline=Ee}}),g(Xe),g(N),O(Ee=>ke=ee(Xe,1,"timeline svelte-1qfjf44",null,ke,Ee),[()=>({visible:s(Me)})]),Ct("mouseenter",N,ve),Ct("mouseleave",N,pe),b(t,N),H(),o()}var d5=M("<div><!></div>"),c5={hash:"svelte-oba660",code:`.root.svelte-oba660 {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
357
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Cu(t,e){D(e,!0),q(t,Ox);let i=m(e,"seekStep",3,0),o=Z(!1),n=0,r=0,l=Z(ri(i())),d=v=>{v.stopPropagation(),r+=1,B(l,i()*(r-1)),r===1?e.handleSingleFirstClick(v):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{r=0,B(o,!1)},300)};Sn(()=>{window.clearTimeout(n)});var a=Bx();a.__click=d;var u=_(a);{var f=v=>{var p=Nx(),b=ge(p),x=A(b,2),y=_(x),C=_(y),T=A(C,2),I=A(T,2);g(y);var P=A(y,2),k=_(P,!0);g(P),g(x),O(E=>{var L,K,z,U;ee(b,1,`semicircle ${(L=e.side)!=null?L:""}`,"svelte-nhq2ld"),ee(C,1,`triangle ${(K=e.side)!=null?K:""}`,"svelte-nhq2ld"),ee(T,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),ee(I,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),be(k,E)},[()=>F("doubletap_seek_step",{seconds:s(l).toFixed(0)})]),$(v,p)};V(u,v=>{s(o)&&v(f)})}g(a),O(()=>{var v;return ee(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),$(t,a),H()}dt(["click"]);var Dx=(t,e,i)=>{e(!1),i()},Hx=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),Fx={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 jm(t,e){D(e,!0),q(t,Fx);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),r=()=>S(a,"$timerNextVideoRunning$",i),l=Ie(),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,b=l.actions.internal.nextVideoAnnouncementCancel,x=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),b()};Ht(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=Ue(),T=ge(C);{var I=P=>{var k=Hx(),E=A(ge(k),2),L=_(E),K=_(L),z=_(K,!0);g(K);var U=A(K,2);va(U,{onClick:y}),g(L);var Y=A(L,2);Y.__click=[Dx,u,v];var se=_(Y),j=_(se),ue=_(j);let le;var Me=A(ue,2);{var Ne=ie=>{ud(ie,{get isRunning(){return r()},onTimerEnded:x})};V(Me,ie=>{n()&&ie(Ne)})}g(j),g(se);var ve=A(se,2),pe=_(ve),Re=_(pe,!0);g(pe),g(ve),g(Y),g(E),O((ie,N)=>{be(z,ie),at(j,`background-image: url('${e.thumb}')`),le=ee(ue,1,"thumb-overlay svelte-1qdxi6t",null,le,N),be(Re,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(P,k)};V(T,P=>{e.isHide||P(I)})}$(t,C),H(),o()}dt(["click"]);import{clientChecker as Ux}from"@vkontakte/videoplayer-core/es2015";var G1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ht(()=>{Ux.device.isIOS&&(o=setTimeout(()=>{let r=t().querySelector("video");if(!r)return;let l=()=>e(!0),d=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",d),i=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",d)}},0))}),Sn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as zx}from"@vkontakte/videoplayer-core/es2015";var Tu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as Wx}from"@vkontakte/videoplayer-core/es2015";var Y1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:r,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>Wx.device.isIOS&&xe(l)===zx.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=b=>{if(v(),!f()||!b)return;let x=u();if(!x)return;let y=new Tu(x),C=xe(d),T=xe(r),I=xe(n);for(let E of C)T.some(K=>K.value===E.id)&&y.attach(E,I.value===E.id);let P=d.subscribe(E=>{for(let L of E)y.updateSrc(L)}),k=()=>{let E=y.getCurrentShowingId();o(xe(r).find(L=>L.value===E))};x.textTracks.addEventListener("change",k),a=()=>{P(),y.detachAll(),x.textTracks.removeEventListener("change",k)}};Ht(()=>i.subscribe(p)),Sn(v)};var Qx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Gx=M("<!> <!>",1),Yx=M("<div><!></div>"),jx=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Zx=M("<div><!></div>"),Xx=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Jx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),e5=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),t5={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 Zm(t,e){var ar,lr;D(e,!0),q(t,t5);let[i,o]=Oe(),n=()=>S(Et,"$playerPhase",i),r=()=>S(qi,"$isLoaderVisible",i),l=()=>S(Je,"$adPlaybackState",i),d=()=>S(fi,"$crashed",i),a=()=>S(An,"$notificationsToShow$",i),u=()=>S(Be,"$playbackState$",i),f=()=>S(we,"$graphIsOpened$",i),v=()=>S(pi,"$interactiveHideMobileControls",i),p=()=>S(jt,"$isEnded$",i),b=()=>S(Ho,"$isInteractiveExpectation$",i),x=()=>S(ht,"$controlsVisible",i),y=()=>S(Pi,"$touched",i),C=()=>S(In,"$autoplayNextEnabled$",i),T=()=>S(ct,"$postrollPassed",i),I=()=>S(Mn,"$bottomNoSmooth",i),P=()=>S(kt,"$videoSize",i),k=()=>S(ki,"$playerSize",i),E=()=>S(St,"$isFullscreen",i),L=()=>S(ze,"$position$",i),K=()=>S(Lt,"$duration$",i),z=()=>S(Uo,"$loadedMetadata",i),U=()=>S(ot,"$settingsMenuVisible",i),Y=()=>S(gi,"$scrubbingInProgress",i),se=()=>S(Wi,"$volumeChangingInProgress",i),j=()=>S(vo,"$chromecastConnected$",i),ue=()=>S(Ri,"$isControlsAvailable",i),le=()=>S(Bi,"$isInteractiveTime$",i),Me=()=>S(Ni,"$isActiveLive",i),Ne=()=>S(Ft,"$settingsMenuOpenedByKeyboard",i),ve=()=>S(me,"$language$",i),pe=()=>S(ci,"$disabledControls$",i),Re=()=>S(Co,"$is3DVideo",i),ie=()=>S(wi,"$icon3DVideoVisible",i),N=()=>S(At,"$chromecastDeviceName$",i),Ye=()=>S(Ki,"$currentSubtitle$",i),te=()=>S(ni,"$currentSubtitleCaptions$",i),Ke=()=>S(Jn,"$realDuration$",i),de=()=>S(Kt,"$isLive$",i),fe=()=>S(ui,"$isPlaying$",i),ye=()=>S(mo,"$debugPanelVisible",i),X=m(e,"videoContainer",15),Qe=m(e,"adsSlotId",3,void 0),Xe=m(e,"adsParams",3,void 0),ke=m(e,"adsPreviewParam",3,void 0),ne=m(e,"adsAutoplayParam",3,void 0),Ee=m(e,"duration",3,void 0),Ge=m(e,"logoTargetUrl",3,""),rt=m(e,"showNextPrevButtons",3,!1),nt=m(e,"nextButtonActive",3,!1),Rt=m(e,"prevButtonActive",3,!1),et=m(e,"endScreenVideoTitle",3,void 0),pt=m(e,"endScreenVideoThumb",3,void 0),Yt=m(e,"isOneVideoPlaylist",3,!1),si=m(e,"shadowRootContainer",3,void 0),Qt=m(e,"outerContainerRef",3,void 0),Tt=m(e,"showMiniTimer",3,!1),oe=m(e,"fullScreenTarget",3,void 0),Nt=m(e,"playerStarted",3,!1),he=m(e,"showEndScreen",3,!0),{notifications$:J,graphIsOpened$:we}=fo(),Fe=e.store.getLogger().createComponentLog("Root component"),me=e.store.interfaceLanguage$,Be=e.store.state.playbackState$,Je=e.store.ads.playbackState,ze=e.store.state.positionWithScrubbing$,Lt=e.store.state.duration$,Et=e.store.playerPhase,St=e.store.ui.isFullscreen,ht=e.store.ui.controlsVisible,Ri=e.store.ui.isControlsAvailable,pi=e.store.ui.interactiveHideMobileControls,ot=e.store.ui.settingsMenu.visible$,Ft=e.store.ui.settingsMenu.openedByBtnKeyboard$,gi=e.store.ui.scrubbingInProgress,Wi=e.store.ui.volumeChangingInProgress,mo=e.store.ui.debugPanelVisible,qi=e.store.state.isLoaderVisible,jt=e.store.state.isEnded$,vo=e.store.state.chromecastConnected$,At=e.store.state.chromecastDeviceName$,ct=e.store.ads.postrollPassed,hi=e.store.ui.mobileUnmuteButtonExpanded,G=e.store.ui.mobileUnmuteButtonVisible,Kt=e.store.state.isLive$,ui=e.store.state.isPlaying$,Ni=e.store.state.isActiveLive$,di=e.store.state.isRewindableLive$,fi=e.store.state.crashed$,mt=e.store.webApi.annotationsApi,it=e.store.webApi.pictureInPictureApi,kt=e.store.state.videoSize$,Ki=e.store.state.currentSubtitle$,ni=e.store.state.currentSubtitleCaptions$,Jn=e.store.state.duration$,ki=e.store.ui.playerSize,Co=e.store.ui.is3DVideo,wi=e.store.ui.icon3DVideoVisible,$t=e.store.state.isInteractive,Bi=e.store.state.isInteractiveTime$,Ho=e.store.state.isInteractiveExpectation$,En=e.store.state.hasInteractiveBranches,ci=e.store.ui.controls.disabledControls$,Pi=e.store.ui.touched,Fo=e.store.ui.overlayContainer$,In=e.store.ui.autoplayNextEnabled$,Uo=e.store.state.loadedMetadata$,To=e.store.actions.internal.closeSettingsMenu,vn=(ar=e.store.callbacks)==null?void 0:ar.onDisabledPlayPrevChapterClick,rn=(lr=e.store.callbacks)==null?void 0:lr.onDisabledSeekToInteractiveClick,go=e.store.actions.internal.setQuality,ao=Z(void 0),Or=Z(void 0),hr=Z(void 0),er=Z(void 0),tr,ir,kn,rs=h(()=>(n()==="video"&&r()||n()==="ads"&&l()==="inactive")&&!d()),Pn=Z(void 0),{closeNotification:Si,notificationsToShow$:An}=J,sn=h(()=>!!a().slow_video),an=()=>Si("slow_video"),Mn=ae(!1),Ln,zo=Z(!1),Dr=h(()=>u()!==qx.PLAYING),Vn=Z(!1),or=h(()=>f()||v()||!s(zo)&&(p()&&!!En||s(Dr)&&b())),Qi=Z(!0),Eo=h(()=>e.uiConfig.features.thumbTimer&&Tt()&&n()==="video"&&!x()&&!d()&&!$t&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),lt=Z(!1),ti=h(()=>(he()||e.showAutoplayNext&&C())&&!!et()&&!!pt()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!s(lt)),_r=Z(!1);it==null||it.setContext(El());let Rn=vt=>{clearTimeout(ir),vt&&(G.set(!0),hi.set(!0),ir=setTimeout(()=>{hi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),$t||Oi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Rn});let gn=()=>{clearTimeout(tr),B(zo,!1),v()&&pi.set(!1)},Oi=vt=>{gn(),B(zo,!0),tr=setTimeout(()=>B(zo,!1),vt);let Xt=vt-100;Ln=setTimeout(()=>{I()&&Mn.set(!1)},Xt>0?Xt:vt)},Nn=Co.subscribe(vt=>{wi.set(vt),vt&&(clearTimeout(kn),kn=setTimeout(()=>wi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Io=(...Xt)=>wt(null,[...Xt],function*(vt=Vs()){var $i,Gi,yi,_o,Po,Ko;if(vt&&!zd.device.isIOS){let We=td(),Vt=nr(),mi=zd.browser.isSamsungBrowser&&We===si();vt=We===Vt||mi}if(vt){Oi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield it==null?void 0:it.remove()}catch(We){Fe({message:String(We)})}try{let We=($i=P())!=null&&$i.width&&((Gi=P())!=null&&Gi.height)?P():k();yield Hh(We)}catch(We){Fe({message:String(We)})}}St.set(vt),e.store.getAdmanWrapper().setFullscreen(vt),E()?(_o=(yi=e.store.callbacks)==null?void 0:yi.onFullscreenEnter)==null||_o.call(yi):(Ko=(Po=e.store.callbacks)==null?void 0:Po.onFullscreenExit)==null||Ko.call(Po)}),Bn=vt=>{let Xt=vt;ki.set({width:Xt.target.width,height:Xt.target.height})};Ht(()=>{var vt;return Yc(Io),e.uiConfig.features.annotationsInside&&(mt==null||mt.init(s(ao))),pa(it)&&(it==null||it.assignPlayerContainer(s(ao)),it==null||it.registryExternalEventHandlers({resize:Bn})),B(Qi,!zd.device.isIphoneOrOldIpad),e.interactiveContainer&&((vt=X().parentElement)==null||vt.insertBefore(e.interactiveContainer,X().nextSibling)),()=>{clearTimeout(tr),clearTimeout(Ln),clearTimeout(ir),clearTimeout(kn),Nn(),it==null||it.dispose().catch(Xt=>{Fe({message:String(Xt)})}),jc(Io)}});let ko=Z(!0),On=Z(!0),Dn=vt=>{let Xt=L()+(vt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Xt<0?(B(ko,!1),Xt=0):Xt>=K()&&(B(On,!1),Xt=K()),B(Vn,!0),e.seekTime(Xt)},nr=()=>{let vt=zd.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Qt()?s(ao):Qt(),Xt=vt.getRootNode(),$i=Xt instanceof ShadowRoot?Xt.host:Xt,Gi=oe()instanceof HTMLElement&&oe().contains($i);return e.uiConfig.allowChangingFullscreenTarget&&oe()&&Gi?oe():vt},br=()=>wt(null,null,function*(){try{if(Vs())yield Gc(document),Fe({message:"exit fullscreen"});else{if(Fe({message:"request fullscreen"}),zd.device.isIOS&&!z())return;yield Qc(nr())}}catch(vt){Fe({message:String(vt)})}}),rr=()=>{To()},Wo=vt=>{if(vt.preventDefault(),U()){rr();return}if(!Nt()){e.firstStart(),Oi(e.uiConfig.controls.hideTimeoutCursor);return}B(Vn,!1),x()?gn():Oi(e.uiConfig.controls.hideTimeoutMobile)},Hr=()=>{Pi.set(!0)},sr=()=>{$t||(Mn.set(!0),Oi(e.uiConfig.controls.hideTimeoutCursor))},$r=vt=>{vn&&(vn(vt),Oi(e.uiConfig.controls.hideTimeoutMobile))},ln=vt=>{rn&&(rn(vt),Oi(e.uiConfig.controls.hideTimeoutMobile))};qe(()=>{Fo.set(s(Pn))}),qe(()=>{ht.set((s(Dr)||U()||Y()||se()||j()||!s(ti)&&(p()||s(zo)&&!s(Vn)))&&!s(or)&&n()==="video"&&!d()&&ue())}),qe(()=>{!Y()&&s(_r)&&!le()&&Oi(e.uiConfig.controls.hideTimeoutMobile),B(_r,Y(),!0)}),qe(()=>{B(ko,L()>0),B(On,!Me()&&L()<K(),!0)}),qe(()=>{ad(s(er),U(),Ne(),!0)});let Zt=F("aria_label_video_player"),ho=F("video360");G1({fullScreenChangeHandler:Io,getFullscreenTarget:nr}),Y1({store:e.store,getFullscreenTarget:nr});let yr=(vt,Xt)=>{var Gi,yi,_o;let $i=on(s(ao),{upcomingLiveScreen:vt},"upcomingLiveScreen",Xt);(_o=(yi=(Gi=e.store.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:yi.onUpcomingLiveStateChanged)==null||_o.call(yi,$i)},xr=(vt,Xt)=>{var Gi,yi,_o;let $i=on(s(ao),{upcomingLiveScreen:vt},"upcomingLiveScreen",Xt);(_o=(yi=(Gi=e.store.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:yi.onWaitingLiveStateChanged)==null||_o.call(yi,$i)};var qo=e5();Ct("blur",Js,rr);var Ai=_(qo);Pa(Ai,{onClick:Wo,get videoContainer(){return X()},set videoContainer(vt){X(vt)}});var Fr=A(Ai,2);sa(Fr,()=>"slot",!1,(vt,Xt)=>{Pe(vt,()=>({name:ka}))});var Ur=A(Fr,2);ra(Ur,ve,vt=>{var Xt=Jx(),$i=ge(Xt);let Gi=h(()=>n()!=="thumb"||d()||$t&&e.autoplay);Ta($i,{get hidden(){return s(Gi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var yi=A($i,2);{var _o=_e=>{var ft=Gx(),Mt=ge(ft);{var Ve=Ci=>{let io=h(()=>e.uiConfig.controls.seekStepMobile/1e3);Cu(Ci,{side:"left",get seekStep(){return s(io)},handleSingleFirstClick:Wo,handleSecondClick:()=>Dn("backward")})};V(Mt,Ci=>{s(ko)&&Ci(Ve)})}var ut=A(Mt,2);{var Gt=Ci=>{let io=h(()=>e.uiConfig.controls.seekStepMobile/1e3);Cu(Ci,{side:"right",get seekStep(){return s(io)},handleSingleFirstClick:Wo,handleSecondClick:()=>Dn("forward")})};V(ut,Ci=>{s(On)&&Ci(Gt)})}$(_e,ft)};V(yi,_e=>{e.canRewindLive&&di&&!pe().has("TIMELINE")&&_e(_o)})}var Po=A(yi,2);{var Ko=_e=>{let ft=h(()=>{var Mt;return(Mt=e.live)==null?void 0:Mt.startTime});Od(_e,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(ft)},get playerSize(){return ki},onUpcomingLiveStateChanged:yr,onWaitingLiveStateChanged:xr})};V(Po,_e=>{n()==="LiveWaitingStart"&&_e(Ko)})}var We=A(Po,2);{var Vt=_e=>{Ea(_e,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(We,_e=>{n()==="LiveWaitingRecover"&&_e(Vt)})}var mi=A(We,2);{var bo=_e=>{Ea(_e,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(mi,_e=>{n()==="LiveWaitingRecord"&&_e(bo)})}var lo=A(mi,2);{var Qo=_e=>{var ft=Yx();let Mt;var Ve=_(ft);id(Ve,{get adsSlotId(){return Qe()},get adsParams(){return Xe()},get adsPreviewParam(){return ke()},get adsAutoplayParam(){return ne()},get duration(){return Ee()}}),g(ft),O(ut=>Mt=ee(ft,1,"ads-container svelte-7yl31d",null,Mt,ut),[()=>({hidden:n()!=="ads"})]),$(_e,ft)};V(lo,_e=>{e.showAds&&Nt()&&_e(Qo)})}var to=A(lo,2);{var Go=_e=>{let ft=h(()=>!he()&&e.showAutoplayNext&&C());jm(_e,{get title(){return et()},get thumb(){return pt()},get isHide(){return s(ft)},clickCloseIcon:()=>B(lt,!0)})};V(to,_e=>{s(ti)&&et()&&pt()&&_e(Go)})}var Ao=A(to,2);{var Yi=_e=>{Rd(_e,{})};V(Ao,_e=>{Re()&&_e(Yi)})}var xi=A(Ao,2);{var Yo=_e=>{var ft=jx(),Mt=_(ft);ed(Mt,{get"aria-label"(){return ho}}),g(ft),$(_e,ft)};V(xi,_e=>{ie()&&_e(Yo)})}var dn=A(xi,2);{var co=_e=>{Nd(_e,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};V(dn,_e=>{j()&&_e(co)})}var wr=A(dn,2);{var Wr=_e=>{Ca(_e,{get shifted(){return x()},get captions(){return te()},get position(){return L()},get playerSize(){return k()},isMobile:!0})};V(wr,_e=>{Ye().value!=="off"&&_e(Wr)})}var qr=A(wr,2);{var hn=_e=>{var ft=Zx();ft.__click=[Qx,U,ot,rr];var Mt=_(ft);Bd(Mt,{}),g(ft),$(_e,ft)};V(qr,_e=>{d()&&_e(hn)})}var Hn=A(qr,2);{var ss=_e=>{let ft=h(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Mt=h(()=>n()==="ads"),Ve=h(()=>e.canRewindLive&&Ke()!==0);Vd(_e,{get bottomHidden(){return s(ft)},get showControls(){return x()},get bottomNoSmooth(){return I()},get isAds(){return s(Mt)},get canRewindLive(){return s(Ve)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ge()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return rt()},get nextButtonActive(){return nt()},get prevButtonActive(){return Rt()},get isOneVideoPlaylist(){return Yt()},get customFullscreenSupported(){return s(Qi)},get endScreenShown(){return s(ti)},toggleFullscreen:br,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:$r,onDisabledSeekToInteractiveClick:ln,get playerControlsWrapperRef(){return s(Or)},set playerControlsWrapperRef(ut){B(Or,ut,!0)},get playerControlsRef(){return s(hr)},set playerControlsRef(ut){B(hr,ut,!0)}})};V(Hn,_e=>{Nt()&&_e(ss)})}var Sr=A(Hn,2);{var jo=_e=>{var ft=Xx(),Mt=_(ft);Fd(Mt,{get supportLink(){return e.supportLink},get returnFocus(){return Kx},get ref(){return s(er)},set ref(Ve){B(er,Ve,!0)}}),g(ft),$(_e,ft)};V(Sr,_e=>{U()&&_e(jo)})}var ji=A(Sr,2);let Fn=h(()=>!s(Eo));rd(ji,{get isLive(){return de()},get isHidden(){return s(Fn)},get isPlaying(){return fe()},get position(){return L()},get duration(){return K()}});var dr=A(ji,2);{var Kr=_e=>{ha(_e,{})};V(dr,_e=>{s(rs)&&_e(Kr)})}var Qr=A(dr,2);{var cr=_e=>{cd(_e,{})};V(Qr,_e=>{ye()&&_e(cr)})}var as=A(Qr,2);{var Se=_e=>{Ud(_e,{onClose:an,onSelectAutoQuality:()=>{go("auto"),an()}})};V(as,_e=>{s(sn)&&_e(Se)})}$(vt,Xt)});var zr=A(Ur,2);tt(zr,vt=>B(Pn,vt),()=>s(Pn)),g(qo),tt(qo,vt=>B(ao,vt),()=>s(ao)),O(()=>De(qo,"aria-label",Zt)),Ct("click",qo,Hr,!0),Ct("focusin",qo,sr,!0),$(t,qo),H(),o()}dt(["click"]);function Eu(t){let e="";return eo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),eo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),eo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),eo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),eo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),eo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),eo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),eo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),eo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),eo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),eo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),eo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),eo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),eo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),eo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),eo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),eo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),eo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),eo(t.font)&&(e+=`--font:${t.font};`),eo(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),eo(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function eo(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as i5}from"@vkontakte/videoplayer-shared/es2015";var o5=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),n5={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 Xm(t,e){D(e,!0),q(t,n5);let[i,o]=Oe(),n=()=>S(se,"$playerSize",i),r=()=>S(E,"$isPlaying$",i),l=()=>S(P,"$duration$",i),d=()=>S(z,"$positionWithScrubbing$",i),a=()=>S(T,"$playerPhase",i),u=()=>S(I,"$crashed$",i),f=()=>S(L,"$currentSubtitle$",i),v=()=>S(K,"$currentSubtitleCaptions$",i),p=()=>S(k,"$positionExact$",i),b=()=>S(U,"$isLive$",i),x=()=>S(Y,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:P,positionExact$:k,isPlaying$:E,currentSubtitle$:L,currentSubtitleCaptions$:K,positionWithScrubbing$:z,isLive$:U,isRewindableLive$:Y},ui:{playerSize:se,controls:j},actions:{internal:{getVideoElement:ue}}}=Ie(),le=8,Me=Z(!1),Ne=ri({}),ve=()=>{B(Me,!0)},pe=()=>{B(Me,!1)},Re=i5(pl,260);qe(()=>{n(),Re(ue(),j,Ne,s(Me))});let ie=h(()=>r()?mn(l()-d()):mn(isFinite(l())?l():y()));var N=o5(),Ye=_(N);Pa(Ye,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ee){C(Ee)}});var te=A(Ye,2);sa(te,()=>"slot",!1,(Ee,Ge)=>{Pe(Ee,()=>({name:ka}))});var Ke=A(te,2);let de=h(()=>a()!=="thumb"||u());Ta(Ke,{get hidden(){return s(de)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var fe=A(Ke,2);{var ye=Ee=>{Ca(Ee,{shifted:!1,get captions(){return v()},get position(){return p()},get playerSize(){return n()}})};V(fe,Ee=>{f().value!=="off"&&Ee(ye)})}var X=A(fe,2),Qe=_(X);nd(Qe,{get isLive(){return b()},get isPlaying(){return r()},get time(){return s(ie)}}),g(X);var Xe=A(X,2);let ke;var ne=_(Xe);$a(ne,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return x()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:le,tooltipRightOffset:le,get ref(){return Ne.timeline},set ref(Ee){Ne.timeline=Ee}}),g(Xe),g(N),O(Ee=>ke=ee(Xe,1,"timeline svelte-1qfjf44",null,ke,Ee),[()=>({visible:s(Me)})]),Ct("mouseenter",N,ve),Ct("mouseleave",N,pe),$(t,N),H(),o()}var d5=M("<div><!></div>"),c5={hash:"svelte-oba660",code:`.root.svelte-oba660 {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
358
358
 
359
359
  /* USER DEFINED COLORS */
360
360
 
@@ -387,5 +387,5 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=k_;var hs=new Map;hs.set(Vh.EN,Mh)
387
387
  /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}*.focus-hidden:focus-visible {box-shadow:none;}
388
388
  /* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
389
389
 
390
- /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Jm(t,e){D(e,!0),q(t,c5);let[i,o]=Oe(),n=()=>C(Gt,"$isLive$",i),r=m(e,"sources",7),l=m(e,"store",7),d=m(e,"microStoresRoot",7),a=m(e,"videoConfig",7),u=m(e,"uiConfig",7),f=m(e,"title",7),v=m(e,"thumbUrl",7),p=m(e,"interactiveContainer",7),y=m(e,"interactiveController",7),w=m(e,"subtitles",7),$=m(e,"live",7),S=m(e,"preload",7),T=m(e,"autoplay",7),k=m(e,"volume",7,void 0),P=m(e,"muted",7,void 0),I=m(e,"fromTime",7),E=m(e,"canRewindLive",7),L=m(e,"showAds",7),K=m(e,"adsSlotId",7,void 0),z=m(e,"adsParams",7,void 0),U=m(e,"adsPreviewParam",7,void 0),Y=m(e,"adsAutoplayParam",7,void 0),se=m(e,"duration",7,void 0),j=m(e,"logoClickable",7),ue=m(e,"logoHidden",7),le=m(e,"isMobile",7),Me=m(e,"showNextPrevButtons",7,!1),Re=m(e,"nextButtonActive",7,!1),ve=m(e,"prevButtonActive",7,!1),pe=m(e,"endScreenVideoTitle",7,void 0),Ve=m(e,"endScreenVideoThumb",7,void 0),ie=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),Ge=m(e,"shadowRootContainer",7,void 0),te=m(e,"outerContainerRef",7,void 0),qe=m(e,"fullScreenTarget",7,void 0),de=m(e,"failoverHosts",7,void 0),fe=m(e,"showMiniTimer",7,!1),$e=m(e,"saveRate",7),X=m(e,"seekToInteractive",7,Y1),Ke=m(e,"playPrevChapter",7,Y1),Xe=m(e,"volumeMultiplier",7),ke=m(e,"showAutoplayNext",7),ne=m(e,"showEndScreen",7,!0),Ee=m(e,"keyboardControls",15,void 0),{subscribers:Qe,stores:rt}=d();Jg(u());let nt=zt(),Lt=u().logoLink,et=l().ui.debugPanelVisible,ct=l().ui.playerSize,Gt=l().state.isLive$,Qt=l().state.isInteractive&&Xm.device.isAndroid,St=Z(void 0),oe=null,Vt=Z(!1);l().getAdmanWrapper().init({switchFromAdsToVideo:l().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l().actions.internal.switchFromVideoToAds,setMuted:l().actions.external.setMuted},l().ads,{isMobile:l().ui.isMobile,mobileUnmuteButtonVisible:l().ui.mobileUnmuteButtonVisible,vsid:l().vsid}),dh(l(),rt),We(()=>{var G,Kt;l().ui.isMobile.set(le()),(Kt=(G=a().callbacks)==null?void 0:G.onDomReady)==null||Kt.call(G)});let he=(G=!1)=>{B(Vt,!0),G?l().actions.external.firstStart(L()):l().actions.internal.firstStart(L())},J=()=>{if(nt.features.qualityDetailsSubMenuEnabled){let G=kh(l().videoId);if(G)switch(G.type){case"high_quality":l().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":l().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":l().actions.internal.setQuality(G.quality);break}}else{Ph(l().videoId),Qp()&&l().actions.internal.setTrafficSavingEnabled(!0);let Kt=zp(l().videoId);Kt&&l().actions.internal.setQuality(Kt)}};function we(G){var fi,ut,tt;let Kt=r()||G;Kt&&l().initVideo({container:s(St),sources:Kt,failoverHosts:de(),subtitles:w(),volumeMultiplier:Xe()});let ui=s5.get(Yl)==="true";et.set(ui),I()>0&&l().actions.external.seekTime(I());let Li=le()?nt.volumeDefault:(ut=(fi=k())!=null?fi:Dc())!=null?ut:nt.volumeDefault,di=(tt=P())!=null?tt:wh();if(l().actions.external.setVolume(Li),l().actions.external.setMuted(di),l().getAdmanWrapper().setInitialVolume(di?0:Li),J(),nt.features.saveRate&&$e()){let It=Th();It&&!n()&&l().actions.internal.setPlaybackRate(It)}if(ke()){let It=Ih();It&&l().actions.internal.setAutoplayNextEnabled(It)}l().ui.isAutoplay.set(T()),T()?he():S()&&nt.features.preload&&l().actions.internal.preload()}let He=G=>{if(window.ResizeObserver){let Kt,ui;oe=new ResizeObserver(a5(Li=>{let di=Li[0];if(di.contentBoxSize){let fi=Array.isArray(di.contentBoxSize)?di.contentBoxSize[0]:di.contentBoxSize;Kt=fi.inlineSize,ui=fi.blockSize}else di.contentRect&&(Kt=di.contentRect.width,ui=di.contentRect.height);ct.set({width:Kt,height:ui})},300)),oe.observe(G)}ct.set({width:G.clientWidth,height:G.clientHeight})},me=()=>{document.hidden&&l().actions.external.stop()};Dt(()=>{var ui,Li,di,fi;Qt&&document.addEventListener("visibilitychange",me),nt.debugLog&&l().actions.internal.startLogging(),He(s(St));let G=Qe.map(ut=>ut.init({store:l(),microStores:rt,config:a(),interactiveController:y(),uiConfig:u()})),Kt=()=>{Qt&&document.removeEventListener("visibilitychange",me),oe==null||oe.disconnect(),G.forEach(ut=>ut.unsubscribe()),l().destroy()};return((ui=$())==null?void 0:ui.status)==="upcoming"?(l().actions.internal.setLiveWaitingStart(!0),Kt):((Li=$())==null?void 0:Li.status)==="waiting"?(l().actions.internal.setLiveWaitingRecover(!0),Kt):(((di=$())==null?void 0:di.status)==="finished"||((fi=$())==null?void 0:fi.status)==="postlive")&&!(r()&&r5(r(),{useManagedMediaSource:e.coreConfig.useManagedMediaSource!==!1,useOldMSEDetection:e.coreConfig.useOldMSEDetection===!0}))?(l().actions.internal.setLiveWaitingRecord(!0),Kt):(we(),Kt)});function Ne(){s(Vt)?l().actions.external.play():he(!0)}function Je(){l().actions.external.pause()}function Ue(G){l().actions.external.setMuted(G)}function Mt(){l().actions.external.toggleSubtitle()}function Tt(){var G;(G=l().webApi.slotsApi)!=null&&G.haveSlots()&&l().actions.external.hideControls()}function xt(){var G;(G=l().webApi.slotsApi)!=null&&G.haveSlots()&&l().actions.external.showControls()}function ft(G){le()||G>=0&&G<=1&&l().actions.external.setVolume(G)}function Mi(G){l().actions.internal.seekTime(G,l5.UNKNOWN)}function pi(G){l().actions.external.seekEpisodeStartTime(G)}function it(){l().actions.external.returnFocusToEpisodes()}function Ht(G){l().actions.external.setPlaybackRate(G)}function vi(G){l().actions.external.setAutoQualityLimits(G)}let zi=Eu(nt.view),po=a().playerView==="preview";var Wi=d5();let Yt;var fo=_(Wi);{var Pt=G=>{jm(G,{get store(){return l()},get uiConfig(){return nt},get thumbUrl(){return v()},get interactiveContainer(){return p()},get live(){return $()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return L()},get adsSlotId(){return K()},get adsParams(){return z()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Y()},get duration(){return se()},get logoClickable(){return j()},get logoHidden(){return ue()},get logoTargetUrl(){return Lt},get nextButtonActive(){return Re()},get prevButtonActive(){return ve()},get endScreenVideoTitle(){return pe()},get endScreenVideoThumb(){return Ve()},get isOneVideoPlaylist(){return ie()},get supportLink(){return N()},get shadowRootContainer(){return Ge()},get outerContainerRef(){return te()},get fullScreenTarget(){return qe()},get showMiniTimer(){return fe()},get playerStarted(){return s(Vt)},get seekToInteractive(){return X()},get playPrevChapter(){return Ke()},firstStart:he,seekTime:Mi,get showEndScreen(){return ne()},get showAutoplayNext(){return ke()},get showNextPrevButtons(){return Me()},get videoContainer(){return s(St)},set videoContainer(Kt){B(St,Kt,!0)}})},dt=G=>{var Kt=Fe(),ui=ge(Kt);{var Li=fi=>{Zm(fi,{get thumbUrl(){return v()},get outsideDuration(){return se()},get canRewindLive(){return E()},get videoContainer(){return s(St)},set videoContainer(ut){B(St,ut,!0)}})},di=fi=>{Gm(fi,{get store(){return l()},get uiConfig(){return nt},get title(){return f()},get thumbUrl(){return v()},get interactiveContainer(){return p()},get live(){return $()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return L()},get adsSlotId(){return K()},get adsParams(){return z()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Y()},get duration(){return se()},get logoClickable(){return j()},get logoHidden(){return ue()},get logoTargetUrl(){return Lt},get nextButtonActive(){return Re()},get prevButtonActive(){return ve()},get endScreenVideoTitle(){return pe()},get endScreenVideoThumb(){return Ve()},get isOneVideoPlaylist(){return ie()},get supportLink(){return N()},get shadowRootContainer(){return Ge()},get outerContainerRef(){return te()},get fullScreenTarget(){return qe()},get showMiniTimer(){return fe()},get playerStarted(){return s(Vt)},get seekToInteractive(){return X()},get playPrevChapter(){return Ke()},firstStart:he,get showEndScreen(){return ne()},get showAutoplayNext(){return ke()},get showNextPrevButtons(){return Me()},get videoContainer(){return s(St)},set videoContainer(ut){B(St,ut,!0)},get keyboardControls(){return Ee()},set keyboardControls(ut){Ee(ut)}})};V(ui,fi=>{po?fi(Li):fi(di,!1)})}b(G,Kt)};V(fo,G=>{le()?G(Pt):G(dt,!1)})}g(Wi),O(G=>{Yt=ee(Wi,1,"root svelte-oba660",null,Yt,G),st(Wi,zi)},[()=>({"root--miui-browser":Xm.device.isMobile&&Xm.browser.isMiuiBrowser,"visible-outside":po})]),b(t,Wi);var gi=H({initVideo:we,play:Ne,pause:Je,setMuted:Ue,toggleSubtitle:Mt,hideControls:Tt,showControls:xt,setVolume:ft,seekTime:Mi,seekEpisodeStartTime:pi,returnFocusToEpisodes:it,setPlaybackRate:Ht,setAutoQualityLimits:vi,get sources(){return r()},set sources(G){r(G)},get store(){return l()},set store(G){l(G)},get microStoresRoot(){return d()},set microStoresRoot(G){d(G)},get videoConfig(){return a()},set videoConfig(G){a(G)},get uiConfig(){return u()},set uiConfig(G){u(G)},get title(){return f()},set title(G){f(G)},get thumbUrl(){return v()},set thumbUrl(G){v(G)},get interactiveContainer(){return p()},set interactiveContainer(G){p(G)},get interactiveController(){return y()},set interactiveController(G){y(G)},get subtitles(){return w()},set subtitles(G){w(G)},get live(){return $()},set live(G){$(G)},get preload(){return S()},set preload(G){S(G)},get autoplay(){return T()},set autoplay(G){T(G)},get volume(){return k()},set volume(G){k(G)},get muted(){return P()},set muted(G){P(G)},get fromTime(){return I()},set fromTime(G){I(G)},get canRewindLive(){return E()},set canRewindLive(G){E(G)},get showAds(){return L()},set showAds(G){L(G)},get adsSlotId(){return K()},set adsSlotId(G){K(G)},get adsParams(){return z()},set adsParams(G){z(G)},get adsPreviewParam(){return U()},set adsPreviewParam(G){U(G)},get adsAutoplayParam(){return Y()},set adsAutoplayParam(G){Y(G)},get duration(){return se()},set duration(G){se(G)},get logoClickable(){return j()},set logoClickable(G){j(G)},get logoHidden(){return ue()},set logoHidden(G){ue(G)},get isMobile(){return le()},set isMobile(G){le(G)},get showNextPrevButtons(){return Me()},set showNextPrevButtons(G){Me(G)},get nextButtonActive(){return Re()},set nextButtonActive(G){Re(G)},get prevButtonActive(){return ve()},set prevButtonActive(G){ve(G)},get endScreenVideoTitle(){return pe()},set endScreenVideoTitle(G){pe(G)},get endScreenVideoThumb(){return Ve()},set endScreenVideoThumb(G){Ve(G)},get isOneVideoPlaylist(){return ie()},set isOneVideoPlaylist(G){ie(G)},get supportLink(){return N()},set supportLink(G){N(G)},get shadowRootContainer(){return Ge()},set shadowRootContainer(G){Ge(G)},get outerContainerRef(){return te()},set outerContainerRef(G){te(G)},get fullScreenTarget(){return qe()},set fullScreenTarget(G){qe(G)},get failoverHosts(){return de()},set failoverHosts(G){de(G)},get showMiniTimer(){return fe()},set showMiniTimer(G){fe(G)},get saveRate(){return $e()},set saveRate(G){$e(G)},get showAutoplayNext(){return ke()},set showAutoplayNext(G){ke(G)},get seekToInteractive(){return X()},set seekToInteractive(G){X(G)},get playPrevChapter(){return Ke()},set playPrevChapter(G){Ke(G)},get volumeMultiplier(){return Xe()},set volumeMultiplier(G){Xe(G)},get showEndScreen(){return ne()},set showEndScreen(G){ne(G)},get keyboardControls(){return Ee()},set keyboardControls(G){Ee(G)}});return o(),gi}var u5=Se('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function ev(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=u5();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}function tv(t,e){let i=m(e,"isWhite",3,!1),o=h(()=>i()?"color: #fff;":"color: #909499;");ev(t,{get style(){return s(o)}})}var p5=M('<div class="title svelte-1y9fytq"> </div>'),f5=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),m5={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 iv(t,e){q(t,m5);var i=f5(),o=_(i);{var n=d=>{var a=p5(),u=_(a,!0);g(a),O(()=>_e(u,e.title)),b(d,a)};V(o,d=>{e.title&&d(n)})}var r=A(o,2);{var l=d=>{let a=h(()=>!!e.thumbUrl);tv(d,{get isWhite(){return s(a)}})};V(r,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),O(()=>st(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}import{now as W5}from"@vkontakte/videoplayer-shared/es2015";import{cloneDeepWith as q5,InterfaceLanguage as K5,isNonNullable as dv,Logger as Q5,Observable as G5,Subscription as n0,once as Y5,InternalsExposure as j5,skip as Z5}from"@vkontakte/videoplayer-shared/es2015";import{clientChecker as r0,isMobile as X5}from"@vkontakte/videoplayer-core/es2015";import{OneStat as J5,ThinOneStat as ew,MediascopePixel as tw}from"@vkontakte/videoplayer-statistics/es2015";import{Logger as v5,Subscription as g5}from"@vkontakte/videoplayer-shared/es2015";var Iu=class{constructor(){this.subscription=new g5,this.logger=new v5,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,r]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,r)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var r,l;let o=ye(e.state.currentPlaybackRate$),n=ye(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(r=navigator.mediaSession).setPositionState)==null||l.call(r,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as sv,detectEmbed as x5}from"@vkontakte/videoplayer-shared/es2015";var h5=Se('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function ov(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=h5();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),b(t,o)}var _5=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),b5={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function nv(t,e){D(e,!0),q(t,b5);let[i,o]=Oe(),n=()=>C(u,"$interfaceLanguage$",i),r=()=>C(f,"$isMobile$",i),l=Ie(),d=zt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=h(()=>n()&&v("pip_dummy_title")),y=Eu(d.view);var w=_5();let $;var S=_(w);let T;var k=_(S);ov(k,{}),g(S);var P=A(S,2),I=_(P,!0);g(P),g(w),O((E,L)=>{$=ee(w,1,"player-pip-dummy svelte-1pbsod4",null,$,E),st(w,y),T=ee(S,1,"dummy-image svelte-1pbsod4",null,T,L),_e(I,s(p))},[()=>({"is-pip-api":a}),()=>({desktop:!r()})]),b(t,w),H(),o()}var $5=Object.defineProperty,y5=(t,e,i)=>e in t?$5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,vl=(t,e,i)=>y5(t,typeof e!="symbol"?e+"":e,i),rv=(t,e,i)=>new Promise((o,n)=>{var r=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(r,l);d((i=i.apply(t,e)).next())}),w5=460,C5=280,Wd=class{constructor({enabled:e=!0}={enabled:!0}){vl(this,"playerDomElement"),vl(this,"playerParentShadowRoot"),vl(this,"playerDummyElement"),vl(this,"svelteContext"),vl(this,"pipWindow"),vl(this,"info",{isActive$:new sv(!1),isEnabled$:new sv(!1),type:1}),this.info.isEnabled$=new sv(e)}isSupported(){let{isEmbed:e}=x5();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}request(){return rv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:w5,height:C5,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(`
391
- `),n=document.createElement("style");n.textContent=o;let r=this.createStretchedContainer(),l=r.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=ms(nv,d),(e=this.pipWindow)==null||e.document.body.append(r),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(ra(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}remove(){return rv(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return rv(this,null,function*(){yield this.remove()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function j1(t){return t instanceof Wd}var ku=class{static getLatestSupportedVersion(e){let i=new pa(e),o=new Wd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function qd(t,e){var n,r;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(r=(n=e[l])!=null?n:t[l])!=null?r:void 0;return o}var Z1="Inner error. Unexpectedly root annotation container null reference exception",X1="Annotation with such name already exists",J1="Annotation with such name does not exist";var gl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as S5,Subscription as T5,throttleFn as E5}from"@vkontakte/videoplayer-shared/es2015";var I5="1",k5=100,Pu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new T5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=E5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},k5);this.subscriptions.add(S5(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new gl(Z1);if(this.annotations.has(e))throw new gl(X1);i.style.zIndex=(o=i.style.zIndex)!=null?o:I5,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new gl(J1);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||r<0||r+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Au,Subscription as P5}from"@vkontakte/videoplayer-shared/es2015";var en=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Au(e),Au(i),Au(n),n.interactiveData&&Au(o),this.subscription=new P5,this.subscription}};var Kd=class extends en{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Ot(W({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(r=>{this.state$.set(r?!0:null)})),o}};var Qd=class extends en{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Ot(W({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:r}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=r.state,{controlsVisible:u,isMobile:f}=r.ui,v=ye(f),p=()=>v&&ye(u);return o.add(u.subscribe(y=>{if(!v)return;let w=ye(l);ye(a)?this.state$.set(y):w!==null&&this.state$.set(!w||y)})),o.add(a.subscribe(y=>{this.state$.set(!y||p())})),o.add(l.subscribe(y=>{if(y===null)return;let w=ye(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!y)})),o}};var Gd=class extends en{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as A5}from"@vkontakte/videoplayer-shared/es2015";var av=ae(!1),Mu=null,Yd=class extends en{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Ot(W({},av),{set:(i,o=!1)=>{i!==ye(av)&&(this.clearTimeout(),av.set(i),!i&&Mu&&(Mu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:r}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(a.subscribe(v=>{ye(l)&&v&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return o.add(A5({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:y})=>{var w,$;if(!(!v||!(y!=null&&y.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Mu===null&&(Mu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),($=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||$.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as M5,noop as L5}from"@vkontakte/videoplayer-shared/es2015";var jd=class extends en{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Ot(W({},ae(null)),{toggle:L5});this.checkIfShouldHide=i=>Us(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:r}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>yt(this,null,function*(){if(this.checkIfShouldHide(ye(l)))return;let a=ye(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,p=ye(u),y=ye(f);if(a)try{yield r==null?void 0:r.toggleGraphView(!1),this.state$.set(!1),v.remove(Np),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{yield r==null?void 0:r.toggleGraphView(!0),this.state$.set(!0),v.add(Np),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add(M5({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>yt(this,[f],function*({graphIsOpened:a,currentGridType:u}){if(this.checkIfShouldHide(u)&&a)try{yield r==null?void 0:r.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};import{ValueSubject as e0}from"@vkontakte/videoplayer-shared/es2015";var Zd=class extends en{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:r,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new e0(!1),isEnabled$:new e0(!1)}};return o.add(r.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};import{filter as N5,filterChanged as B5}from"@vkontakte/videoplayer-shared/es2015";import{safeStorage as lv}from"@vkontakte/videoplayer-shared/es2015";var t0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?V5({maxCount:t}):void 0,e!==0?R5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},V5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,lv.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},R5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(lv.get(e)||"{}")}catch(r){return{}}},o=r=>lv.set(e,JSON.stringify(r)),n=r=>{let l=i();delete l[r],o(l)};return{notificationShowed:r=>{o(Ot(W({},i()),{[r]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:r=>{let l=i()[r];if(l){let d=Date.now()-l.launchTime>t;return d&&n(r),d}else return!0}}};var Xd=class extends en{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:r,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=t0({maxShowCount:r,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(B5(),N5(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var i0=()=>[Kd,Qd,Gd,Yd,jd,Zd,Xd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Ot(W({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});import{devNull as Jd}from"@vkontakte/videoplayer-shared/es2015";var Lu=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var O5=Object.defineProperty,D5=Object.defineProperties,H5=Object.getOwnPropertyDescriptors,o0=Object.getOwnPropertySymbols,F5=Object.prototype.hasOwnProperty,U5=Object.prototype.propertyIsEnumerable,cv=(t,e,i)=>e in t?O5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,qs=(t,e)=>{for(var i in e||(e={}))F5.call(e,i)&&cv(t,i,e[i]);if(o0)for(var i of o0(e))U5.call(e,i)&&cv(t,i,e[i]);return t},z5=(t,e)=>D5(t,H5(e)),ti=(t,e,i)=>cv(t,typeof e!="symbol"?e+"":e,i),Vu=(t,e,i)=>new Promise((o,n)=>{var r=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(r,l);d((i=i.apply(t,e)).next())}),iw={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:K5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:X5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},In=Z(void 0),Ru=class extends HTMLElement{constructor(){super(),ti(this,"svelteStubComponent"),ti(this,"svelteRootComponent"),ti(this,"store"),ti(this,"microStoresRoot"),ti(this,"statistics"),ti(this,"sentry"),ti(this,"_shadowRoot"),ti(this,"playerContainer"),ti(this,"rootContainer"),ti(this,"shadowRootContainer"),ti(this,"uiConfig"),ti(this,"coreConfig"),ti(this,"statisticsConfig"),ti(this,"interactiveController"),ti(this,"interactiveContainer"),ti(this,"graphMadePause"),ti(this,"currentPlayingVideoIndex",0),ti(this,"needToRepeatPlaylist",!1),ti(this,"videoConfig"),ti(this,"pictureInPictureApi"),ti(this,"mediaSessionApi"),ti(this,"unsubscribePlayerPhaseSubscription"),ti(this,"logger"),ti(this,"log"),ti(this,"subscription"),ti(this,"interactiveSubscription"),ti(this,"annotationsApi"),ti(this,"slotsApi"),ti(this,"focusManager"),ti(this,"prevIsid"),ti(this,"isInited",!1),ti(this,"internalsExposure",null),ti(this,"shadowDOMCallbacksDisabled",!1),ti(this,"createOneStat",(e,i={})=>{var o,n,r,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:y,isMobile:w,isTouch:$,refDomain:S,deviceId:T,interactiveData:k}=qd(this.videoConfig,i),P=(o=k==null?void 0:k.projectInfo)==null?void 0:o.pid,I=(r=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?r:!1;I&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:L=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new J5(qs({movieId:E,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=y&&!this.interactiveController)!=null?l:!1,mobile:$!=null?$:w,clip:L,refDomain:S,deviceId:T},P&&(!this.isInited||I)&&{projectId:Number(P)}),qs({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(z){console.error(z),this.log({message:z.message})}}),Jd.create("ui"),this.logger=new Q5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new n0,this.interactiveSubscription=new n0,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,r=ri({title:o,thumbUrl:n}),l={target:this.playerContainer,props:r};this.svelteStubComponent=ms(iv,l)}disconnectedCallback(){var e,i,o,n,r,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Jd.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:r}=qd(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new ew.ThinOneStat({deviceId:o,movieId:l,preload:n},{config:this.statisticsConfig,refreshAuthToken:r})}createPlayer(e,i={},o){var n,r,l,d,a,u,f,v,p;if(!this.videoConfig)return;let{albumId:y,statPlace:w,statAuthToken:$,preload:S,autoplay:T,volume:k,muted:P,fromTime:I,canRewindLive:E,supportLink:L,showAds:K,adsSlotId:z,adsParams:U={},adsPreviewParam:Y,adsAutoplayParam:se,interfaceLanguage:j,isCyrillicRelatedInterface:ue,logoClickable:le,logoHidden:Me,isMobile:Re,isTouch:ve,isAudioDisabled:pe,isLiveCatchUpMode:Ve,fullScreenTarget:ie,failoverHosts:N,canDownload:Ge,callbacks:te,interactiveData:qe,showThumbTimer:de,additionalButtons:fe=[],additionalSettingsMenuItems:$e=[],additionalContextMenuItems:X=[],repeat:Ke,saveRate:Xe,volumeMultiplier:ke,showEndScreen:ne,showAutoplayNext:Ee,mediascopePixels:Qe}=qd(this.videoConfig,i),{sources:rt,title:nt,thumbUrl:Lt,unitedVideoId:et,isClip:ct=!1,duration:Gt,adsParams:si={},videoEpisodes:Qt,previewThumbsData:St,subtitles:oe,live:Vt}=e,he=qs(qs({},U),si),J=this.getNextVideoInfo(),we={sources:rt,title:nt,thumbUrl:Lt,subtitles:oe,unitedVideoId:et,isClip:ct,live:Vt,albumId:y,statPlace:w,autoplay:T,muted:P,volume:k,fromTime:I,canRewindLive:E,showAds:K,adsSlotId:z,adsParams:he,adsPreviewParam:Y,adsAutoplayParam:se,duration:Gt,logoClickable:le,logoHidden:Me,isTouch:ve!=null?ve:Re,repeat:Ke,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:J.nextVideoTitle,endScreenVideoThumb:J.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},He={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(we)}`});let me=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Ne=(me==null?void 0:me.oneStat)||this.createOneStat(e,i),Je=this.createThinOneStat(e,i),Ue;Qe&&(Ue=new tw({pixels:Qe})),(Ne||Je)&&(this.statistics=new uu(Ne,Je,Ue,me==null?void 0:me.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ua(this.uiConfig.sentry,{version:il,env:Nc},{movieId:et,albumId:y,place:w,autoplay:(r=T&&!this.interactiveController)!=null?r:!1,mobile:ve!=null?ve:Re,clip:ct}),this.interactiveController&&((a=this.prevIsid)!=null||(this.prevIsid=(d=(l=this.statistics)==null?void 0:l.oneStat)==null?void 0:d.isid$.getValue())),this.sentry=qs(qs({},this.sentry),ua.getInstance());let Tt=!!qe,xt=[],ft="tooltip_interactive_go_back_disabled_first";if(Tt&&this.interactiveController){let Ht=this.interactiveController.state.isInitialChapter$.getValue(),vi=this.interactiveController.getHistoryState();Ht&&xt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||xt.push("SEEK_TO_INTERACTIVE_BUTTON"),vi.hasPrevChapter$.getValue()||(xt.push("PLAY_PREV_CHAPTER_BUTTON"),Ht||(vi.isGoBackLimited$.getValue()?ft="tooltip_interactive_go_back_disabled_limit":ft="tooltip_interactive_go_back_disabled"))}let Mi=()=>{var Ht;this.isInited=!1,this.prevIsid=void 0;let vi=(o==null?void 0:o.info.isEnded$.getValue())&&((Ht=this.interactiveController)==null?void 0:Ht.state.isEndChapter$.getValue());te.onReplayInteractiveVideo&&!vi?te.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=h1({player:o,interfaceLanguage:j,isCyrillicRelatedInterface:ue,videoId:et,isClip:ct,isLiveCatchUpMode:Ve,isAudioDisabled:pe,statAuthToken:$,callbacks:te,webApi:He,videoEpisodes:Qt,previewThumbsData:St,canDownload:Ge,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:xt,isInteractive:Tt,saveRate:Xe,interactiveRanges$:(u=this.interactiveController)==null?void 0:u.state.interactiveRanges$,isInteractiveTime$:(f=this.interactiveController)==null?void 0:f.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Mi,playPrevChapterDisabledTooltip:ft,hasInteractiveBranches:!!((p=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&p.length),additionalButtons:this.uiConfig.features.additionalButtons?fe:[],additionalSettingsMenuItems:$e!=null?$e:[],additionalContextMenuItems:X!=null?X:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ke&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:pi}=this.microStoresRoot=i0(),it=()=>{var Ht,vi,zi,po,Wi,Yt;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Pt=>{var dt;return(dt=te==null?void 0:te.onCurrentFormatChanged)==null?void 0:dt.call(te,Pt)})),this.subscription.add(pi.interactiveControlsOpacity$.subscribe(Pt=>{var dt;Pt!==null&&((dt=this==null?void 0:this.interactiveController)==null||dt.setDisabledControls(Pt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Pt=>{var dt;return(dt=te==null?void 0:te.onThroughputEstimationChanged)==null?void 0:dt.call(te,Pt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Pt=>{var dt;return(dt=te==null?void 0:te.onTrafficSavingEnabledChanged)==null?void 0:dt.call(te,Pt)})),this.subscription.add(new G5(Pt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(dt=>Pt.next(dt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?Z5(1):Pt=>Pt).subscribe(Pt=>{var dt;return(dt=te==null?void 0:te.onCurrentPlaybackRateChanged)==null?void 0:dt.call(te,Pt)})),this.subscription.add(this.store.state.volume$.subscribe(Pt=>{var dt;return(dt=te==null?void 0:te.onVolumeChange)==null?void 0:dt.call(te,Pt)})),this.subscription.add(this.store.state.muted$.subscribe(Pt=>{var dt,gi,G,Kt;if(Pt)(dt=te==null?void 0:te.onMute)==null||dt.call(te);else{let ui=(G=((gi=this.store)==null?void 0:gi.state.volume$)&&ye(this.store.state.volume$))!=null?G:0;(Kt=te==null?void 0:te.onUnmute)==null||Kt.call(te,ui)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Pt=>{var dt;return(dt=te==null?void 0:te.onVideoBitrateChanged)==null?void 0:dt.call(te,Pt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Pt=>{var dt;let gi=(dt=this.store)==null?void 0:dt.ui.controls.disabledControls$;gi&&(Pt&&!gi.includes(jl)&&gi.add(jl),Pt||gi.remove(jl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Pt=>Vu(this,null,function*(){var dt;if(!r0.browser.isSamsungBrowser||!Pt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((dt=this.videoConfig)==null?void 0:dt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Pt=>{var dt;return(dt=te==null?void 0:te.onVSIDChanged)==null?void 0:dt.call(te,Pt)})),this.initMediaSession(),B(In,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:rt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,coreConfig:this.coreConfig,title:nt,thumbUrl:Lt,subtitles:oe,live:Vt,preload:S,autoplay:T,muted:P,volume:k,fromTime:I,canRewindLive:E,supportLink:L,showAds:K,adsSlotId:z,adsParams:he,adsPreviewParam:Y,adsAutoplayParam:se,duration:Gt,logoClickable:le,logoHidden:Me,isMobile:ve!=null?ve:Re,failoverHosts:N,fullScreenTarget:ie,saveRate:Xe,shadowRootContainer:this.shadowRootContainer,showMiniTimer:de,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:J.nextVideoTitle,endScreenVideoThumb:J.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ke,showEndScreen:ne,showAutoplayNext:Ee},!0);let fo={target:this.playerContainer,props:s(In)};this.svelteRootComponent=ms(Jm,fo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(zi=(vi=(Ht=this.videoConfig)==null?void 0:Ht.callbacks)==null?void 0:vi.onInited)==null||zi.call(vi)),(po=this.internalsExposure)==null||po.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Yt=(Wi=this.videoConfig)==null?void 0:Wi.callbacks)!=null&&Yt.onDevNullLog)?Jd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Jd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?r0.isInited$.subscribe(Ht=>{Ht&&(console.log("UI SDK async start"),it())}):it()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let r=(i=this.videoConfig)==null?void 0:i.callbacks;r&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=r.onPlayerPhaseChanged)==null?void 0:a.call(r,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=r.onPlaybackStateChanged)==null?void 0:a.call(r,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=r.onIsLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=r.onIsActiveLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=r.onIsAudioAvailableChanged)==null?void 0:a.call(r,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=r.onCurrentQualityChanged)==null?void 0:a.call(r,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=r.onAvailableQualitiesChanged)==null?void 0:a.call(r,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&r.onAudioLanguagesAvailable&&r.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=r.onPiPEnter)==null?void 0:a.call(r):(u=r.onPiPExit)==null?void 0:u.call(r)}));let l=r==null?void 0:r.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&dv(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return Vu(this,null,function*(){var e,i,o,n,r,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?ye(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}});let{isInteractiveExpectation$:w,isSeekable$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(T=>{if(!this.isInited)return;let k=this.store;T?k.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):k.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=z5(qs({},T.config),{title:(f==null?void 0:f.title)||T.config.title});let k=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,k),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:k})=>{var P,I,E,L,K,z;if(!this.store||!this.microStoresRoot)return;let U=w.getValue();if(T==="action-choice"&&k==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Zl)),T==="action-choice-canceled"){let Y=ye(this.store.state.isPlaying$)||U;if(((E=(P=this.videoConfig)==null?void 0:P.isTouch)!=null?E:(I=this.videoConfig)!=null&&I.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(z=(L=this.videoConfig)==null?void 0:(K=L.callbacks).onDisabledInteractiveClick)==null||z.call(K)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:k})=>{this.store&&T==="container-fake-removed"&&k&&this.store.ui.controls.disabledControls$.remove(Zl)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(k=>{var P,I,E;k.length&&((E=(I=(P=this.videoConfig)==null?void 0:P.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||E.call(I,k))}))}(l=(r=this.videoConfig)==null?void 0:r.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var k,P,I;(I=(k=this.videoConfig)==null?void 0:(P=k.callbacks).onInteractiveChapterChanged)==null||I.call(P,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,k,P,I;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(k=this.videoConfig)==null?void 0:(P=k.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(P)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,n,r,l,d,a,u,f,v,p,y,w,$,S,T,k,P,I,E,L,K,z,U,Y,se,j;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=qd(iw,q5(e,ue=>ue instanceof HTMLElement?ue:void 0)),this.uiConfig=Xg((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(r=i.statistics)!=null?r:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(l=this.uiConfig.sentry)!=null?l:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new j5("UI"))),Jd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((a=this.videoConfig)==null?void 0:a.showAds)],numbers:[W5()]}),dv(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),dv(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=(v=this.uiConfig.features.pip)!=null?v:this.videoConfig.isPictureInPictureEnabled)!=null?p:!0,this.uiConfig.features.dpip=(w=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(S=($=this.uiConfig.isMobile)!=null?$:this.videoConfig.isTouch)!=null?S:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((E=this.uiConfig.showLogo)!=null?E:!this.videoConfig.logoHidden),(L=this.videoConfig).canRewindLive&&(L.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(K=this.videoConfig.supportLink)!=null?K:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(z=this.uiConfig.features.endScreen)!=null?z:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(U=this.uiConfig.features.autoplayNext)!=null?U:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Y=this.uiConfig.features.nextPrevButtons)!=null?Y:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((se=this.videoConfig.videos)!=null&&se[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ue={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=ku.getLatestSupportedVersion(ue):this.pictureInPictureApi=new pa(ue)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Iu:void 0,this.slotsApi=this.uiConfig.features.slots?new Cu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Pu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),j1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(j=this.slotsApi)==null||j.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Lu(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();s(In)&&(s(In).showNextPrevButtons=this.needToShowNextPrevButtons(),s(In).nextButtonActive=this.isNextButtonActive(),s(In).prevButtonActive=this.isPrevButtonActive(),s(In).endScreenVideoTitle=o.nextVideoTitle,s(In).endScreenVideoThumb=o.nextVideoThumb,s(In).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}=qs({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,s(In)&&(s(In).needToRepeatPlaylist=this.needToRepeatPlaylist,s(In).showNextPrevButtons=this.needToShowNextPrevButtons(),s(In).nextButtonActive=this.isNextButtonActive(),s(In).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return Vu(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let r=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&r(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||r(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var r;(r=this.store)==null||r.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var r;o||n(),(r=this.store)==null||r.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let r=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){r();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=r)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return Vu(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=ye(this.store.state.positionExact$),l=ye(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe(Y5()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&ra(e)}};import{InterfaceLanguage as cte,VKNumericLanguage as ute,loadVKLangPack as pte}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as mte,VideoFormat as vte}from"@vkontakte/videoplayer-core/es2015";var ite=()=>{window.customElements.define("vk-video-player",Ru)};export{pu as ControlButtonType,os as GridTypes,cte as InterfaceLanguage,ld as MenuItemType,_s as PlayerPhase,il as VERSION,ute as VKNumericLanguage,vte as VideoFormat,mte as VideoQuality,pte as loadVKLangPack,ite as registerPlayerWebComponent};
390
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function ev(t,e){D(e,!0),q(t,c5);let[i,o]=Oe(),n=()=>S(Yt,"$isLive$",i),r=m(e,"sources",7),l=m(e,"store",7),d=m(e,"microStoresRoot",7),a=m(e,"videoConfig",7),u=m(e,"uiConfig",7),f=m(e,"title",7),v=m(e,"thumbUrl",7),p=m(e,"interactiveContainer",7),b=m(e,"interactiveController",7),x=m(e,"subtitles",7),y=m(e,"live",7),C=m(e,"preload",7),T=m(e,"autoplay",7),I=m(e,"volume",7,void 0),P=m(e,"muted",7,void 0),k=m(e,"fromTime",7),E=m(e,"canRewindLive",7),L=m(e,"showAds",7),K=m(e,"adsSlotId",7,void 0),z=m(e,"adsParams",7,void 0),U=m(e,"adsPreviewParam",7,void 0),Y=m(e,"adsAutoplayParam",7,void 0),se=m(e,"duration",7,void 0),j=m(e,"logoClickable",7),ue=m(e,"logoHidden",7),le=m(e,"isMobile",7),Me=m(e,"showNextPrevButtons",7,!1),Ne=m(e,"nextButtonActive",7,!1),ve=m(e,"prevButtonActive",7,!1),pe=m(e,"endScreenVideoTitle",7,void 0),Re=m(e,"endScreenVideoThumb",7,void 0),ie=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),Ye=m(e,"shadowRootContainer",7,void 0),te=m(e,"outerContainerRef",7,void 0),Ke=m(e,"fullScreenTarget",7,void 0),de=m(e,"failoverHosts",7,void 0),fe=m(e,"showMiniTimer",7,!1),ye=m(e,"saveRate",7),X=m(e,"seekToInteractive",7,j1),Qe=m(e,"playPrevChapter",7,j1),Xe=m(e,"volumeMultiplier",7),ke=m(e,"showAutoplayNext",7),ne=m(e,"showEndScreen",7,!0),Ee=m(e,"keyboardControls",15,void 0),{subscribers:Ge,stores:rt}=d();eh(u());let nt=Wt(),Rt=u().logoLink,et=l().ui.debugPanelVisible,pt=l().ui.playerSize,Yt=l().state.isLive$,Qt=l().state.isInteractive&&Jm.device.isAndroid,Tt=Z(void 0),oe=null,Nt=Z(!1);l().getAdmanWrapper().init({switchFromAdsToVideo:l().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l().actions.internal.switchFromVideoToAds,setMuted:l().actions.external.setMuted},l().ads,{isMobile:l().ui.isMobile,mobileUnmuteButtonVisible:l().ui.mobileUnmuteButtonVisible,vsid:l().vsid}),ch(l(),rt),qe(()=>{var G,Kt;l().ui.isMobile.set(le()),(Kt=(G=a().callbacks)==null?void 0:G.onDomReady)==null||Kt.call(G)});let he=(G=!1)=>{B(Nt,!0),G?l().actions.external.firstStart(L()):l().actions.internal.firstStart(L())},J=()=>{if(nt.features.qualityDetailsSubMenuEnabled){let G=Ph(l().videoId);if(G)switch(G.type){case"high_quality":l().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":l().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":l().actions.internal.setQuality(G.quality);break}}else{Ah(l().videoId),Gp()&&l().actions.internal.setTrafficSavingEnabled(!0);let Kt=Wp(l().videoId);Kt&&l().actions.internal.setQuality(Kt)}};function we(G){var fi,mt,it;let Kt=r()||G;Kt&&l().initVideo({container:s(Tt),sources:Kt,failoverHosts:de(),subtitles:x(),volumeMultiplier:Xe()});let ui=s5.get(Yl)==="true";et.set(ui),k()>0&&l().actions.external.seekTime(k());let Ni=le()?nt.volumeDefault:(mt=(fi=I())!=null?fi:Dc())!=null?mt:nt.volumeDefault,di=(it=P())!=null?it:Sh();if(l().actions.external.setVolume(Ni),l().actions.external.setMuted(di),l().getAdmanWrapper().setInitialVolume(di?0:Ni),J(),nt.features.saveRate&&ye()){let kt=Eh();kt&&!n()&&l().actions.internal.setPlaybackRate(kt)}if(ke()){let kt=kh();kt&&l().actions.internal.setAutoplayNextEnabled(kt)}l().ui.isAutoplay.set(T()),T()?he():C()&&nt.features.preload&&l().actions.internal.preload()}let Fe=G=>{if(window.ResizeObserver){let Kt,ui;oe=new ResizeObserver(a5(Ni=>{let di=Ni[0];if(di.contentBoxSize){let fi=Array.isArray(di.contentBoxSize)?di.contentBoxSize[0]:di.contentBoxSize;Kt=fi.inlineSize,ui=fi.blockSize}else di.contentRect&&(Kt=di.contentRect.width,ui=di.contentRect.height);pt.set({width:Kt,height:ui})},300)),oe.observe(G)}pt.set({width:G.clientWidth,height:G.clientHeight})},me=()=>{document.hidden&&l().actions.external.stop()};Ht(()=>{var ui,Ni,di,fi;Qt&&document.addEventListener("visibilitychange",me),nt.debugLog&&l().actions.internal.startLogging(),Fe(s(Tt));let G=Ge.map(mt=>mt.init({store:l(),microStores:rt,config:a(),interactiveController:b(),uiConfig:u()})),Kt=()=>{Qt&&document.removeEventListener("visibilitychange",me),oe==null||oe.disconnect(),G.forEach(mt=>mt.unsubscribe()),l().destroy()};return((ui=y())==null?void 0:ui.status)==="upcoming"?(l().actions.internal.setLiveWaitingStart(!0),Kt):((Ni=y())==null?void 0:Ni.status)==="waiting"?(l().actions.internal.setLiveWaitingRecover(!0),Kt):(((di=y())==null?void 0:di.status)==="finished"||((fi=y())==null?void 0:fi.status)==="postlive")&&!(r()&&r5(r(),{useManagedMediaSource:e.coreConfig.useManagedMediaSource!==!1,useOldMSEDetection:e.coreConfig.useOldMSEDetection===!0}))?(l().actions.internal.setLiveWaitingRecord(!0),Kt):(we(),Kt)});function Be(){s(Nt)?l().actions.external.play():he(!0)}function Je(){l().actions.external.pause()}function ze(G){l().actions.external.setMuted(G)}function Lt(){l().actions.external.toggleSubtitle()}function Et(){var G;(G=l().webApi.slotsApi)!=null&&G.haveSlots()&&l().actions.external.hideControls()}function St(){var G;(G=l().webApi.slotsApi)!=null&&G.haveSlots()&&l().actions.external.showControls()}function ht(G){le()||G>=0&&G<=1&&l().actions.external.setVolume(G)}function Ri(G){l().actions.internal.seekTime(G,l5.UNKNOWN)}function pi(G){l().actions.external.seekEpisodeStartTime(G)}function ot(){l().actions.external.returnFocusToEpisodes()}function Ft(G){l().actions.external.setPlaybackRate(G)}function gi(G){l().actions.external.setAutoQualityLimits(G)}let Wi=Eu(nt.view),mo=a().playerView==="preview";var qi=d5();let jt;var vo=_(qi);{var At=G=>{Zm(G,{get store(){return l()},get uiConfig(){return nt},get thumbUrl(){return v()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return L()},get adsSlotId(){return K()},get adsParams(){return z()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Y()},get duration(){return se()},get logoClickable(){return j()},get logoHidden(){return ue()},get logoTargetUrl(){return Rt},get nextButtonActive(){return Ne()},get prevButtonActive(){return ve()},get endScreenVideoTitle(){return pe()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return ie()},get supportLink(){return N()},get shadowRootContainer(){return Ye()},get outerContainerRef(){return te()},get fullScreenTarget(){return Ke()},get showMiniTimer(){return fe()},get playerStarted(){return s(Nt)},get seekToInteractive(){return X()},get playPrevChapter(){return Qe()},firstStart:he,seekTime:Ri,get showEndScreen(){return ne()},get showAutoplayNext(){return ke()},get showNextPrevButtons(){return Me()},get videoContainer(){return s(Tt)},set videoContainer(Kt){B(Tt,Kt,!0)}})},ct=G=>{var Kt=Ue(),ui=ge(Kt);{var Ni=fi=>{Xm(fi,{get thumbUrl(){return v()},get outsideDuration(){return se()},get canRewindLive(){return E()},get videoContainer(){return s(Tt)},set videoContainer(mt){B(Tt,mt,!0)}})},di=fi=>{Ym(fi,{get store(){return l()},get uiConfig(){return nt},get title(){return f()},get thumbUrl(){return v()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return L()},get adsSlotId(){return K()},get adsParams(){return z()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Y()},get duration(){return se()},get logoClickable(){return j()},get logoHidden(){return ue()},get logoTargetUrl(){return Rt},get nextButtonActive(){return Ne()},get prevButtonActive(){return ve()},get endScreenVideoTitle(){return pe()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return ie()},get supportLink(){return N()},get shadowRootContainer(){return Ye()},get outerContainerRef(){return te()},get fullScreenTarget(){return Ke()},get showMiniTimer(){return fe()},get playerStarted(){return s(Nt)},get seekToInteractive(){return X()},get playPrevChapter(){return Qe()},firstStart:he,get showEndScreen(){return ne()},get showAutoplayNext(){return ke()},get showNextPrevButtons(){return Me()},get videoContainer(){return s(Tt)},set videoContainer(mt){B(Tt,mt,!0)},get keyboardControls(){return Ee()},set keyboardControls(mt){Ee(mt)}})};V(ui,fi=>{mo?fi(Ni):fi(di,!1)})}$(G,Kt)};V(vo,G=>{le()?G(At):G(ct,!1)})}g(qi),O(G=>{jt=ee(qi,1,"root svelte-oba660",null,jt,G),at(qi,Wi)},[()=>({"root--miui-browser":Jm.device.isMobile&&Jm.browser.isMiuiBrowser,"visible-outside":mo})]),$(t,qi);var hi=H({initVideo:we,play:Be,pause:Je,setMuted:ze,toggleSubtitle:Lt,hideControls:Et,showControls:St,setVolume:ht,seekTime:Ri,seekEpisodeStartTime:pi,returnFocusToEpisodes:ot,setPlaybackRate:Ft,setAutoQualityLimits:gi,get sources(){return r()},set sources(G){r(G)},get store(){return l()},set store(G){l(G)},get microStoresRoot(){return d()},set microStoresRoot(G){d(G)},get videoConfig(){return a()},set videoConfig(G){a(G)},get uiConfig(){return u()},set uiConfig(G){u(G)},get title(){return f()},set title(G){f(G)},get thumbUrl(){return v()},set thumbUrl(G){v(G)},get interactiveContainer(){return p()},set interactiveContainer(G){p(G)},get interactiveController(){return b()},set interactiveController(G){b(G)},get subtitles(){return x()},set subtitles(G){x(G)},get live(){return y()},set live(G){y(G)},get preload(){return C()},set preload(G){C(G)},get autoplay(){return T()},set autoplay(G){T(G)},get volume(){return I()},set volume(G){I(G)},get muted(){return P()},set muted(G){P(G)},get fromTime(){return k()},set fromTime(G){k(G)},get canRewindLive(){return E()},set canRewindLive(G){E(G)},get showAds(){return L()},set showAds(G){L(G)},get adsSlotId(){return K()},set adsSlotId(G){K(G)},get adsParams(){return z()},set adsParams(G){z(G)},get adsPreviewParam(){return U()},set adsPreviewParam(G){U(G)},get adsAutoplayParam(){return Y()},set adsAutoplayParam(G){Y(G)},get duration(){return se()},set duration(G){se(G)},get logoClickable(){return j()},set logoClickable(G){j(G)},get logoHidden(){return ue()},set logoHidden(G){ue(G)},get isMobile(){return le()},set isMobile(G){le(G)},get showNextPrevButtons(){return Me()},set showNextPrevButtons(G){Me(G)},get nextButtonActive(){return Ne()},set nextButtonActive(G){Ne(G)},get prevButtonActive(){return ve()},set prevButtonActive(G){ve(G)},get endScreenVideoTitle(){return pe()},set endScreenVideoTitle(G){pe(G)},get endScreenVideoThumb(){return Re()},set endScreenVideoThumb(G){Re(G)},get isOneVideoPlaylist(){return ie()},set isOneVideoPlaylist(G){ie(G)},get supportLink(){return N()},set supportLink(G){N(G)},get shadowRootContainer(){return Ye()},set shadowRootContainer(G){Ye(G)},get outerContainerRef(){return te()},set outerContainerRef(G){te(G)},get fullScreenTarget(){return Ke()},set fullScreenTarget(G){Ke(G)},get failoverHosts(){return de()},set failoverHosts(G){de(G)},get showMiniTimer(){return fe()},set showMiniTimer(G){fe(G)},get saveRate(){return ye()},set saveRate(G){ye(G)},get showAutoplayNext(){return ke()},set showAutoplayNext(G){ke(G)},get seekToInteractive(){return X()},set seekToInteractive(G){X(G)},get playPrevChapter(){return Qe()},set playPrevChapter(G){Qe(G)},get volumeMultiplier(){return Xe()},set volumeMultiplier(G){Xe(G)},get showEndScreen(){return ne()},set showEndScreen(G){ne(G)},get keyboardControls(){return Ee()},set keyboardControls(G){Ee(G)}});return o(),hi}var u5=Te('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function tv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=u5();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}function iv(t,e){let i=m(e,"isWhite",3,!1),o=h(()=>i()?"color: #fff;":"color: #909499;");tv(t,{get style(){return s(o)}})}var p5=M('<div class="title svelte-1y9fytq"> </div>'),f5=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),m5={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 ov(t,e){q(t,m5);var i=f5(),o=_(i);{var n=d=>{var a=p5(),u=_(a,!0);g(a),O(()=>be(u,e.title)),$(d,a)};V(o,d=>{e.title&&d(n)})}var r=A(o,2);{var l=d=>{let a=h(()=>!!e.thumbUrl);iv(d,{get isWhite(){return s(a)}})};V(r,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),O(()=>at(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}import{now as W5}from"@vkontakte/videoplayer-shared/es2015";import{cloneDeepWith as q5,InterfaceLanguage as K5,isNonNullable as cv,Logger as Q5,Observable as G5,Subscription as r0,once as Y5,InternalsExposure as j5,skip as Z5}from"@vkontakte/videoplayer-shared/es2015";import{clientChecker as s0,isMobile as X5}from"@vkontakte/videoplayer-core/es2015";import{OneStat as J5,ThinOneStat as ew,MediascopePixel as tw}from"@vkontakte/videoplayer-statistics/es2015";import{Logger as v5,Subscription as g5}from"@vkontakte/videoplayer-shared/es2015";var Iu=class{constructor(){this.subscription=new g5,this.logger=new v5,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,r]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,r)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var r,l;let o=xe(e.state.currentPlaybackRate$),n=xe(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(r=navigator.mediaSession).setPositionState)==null||l.call(r,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as av,detectEmbed as x5}from"@vkontakte/videoplayer-shared/es2015";var h5=Te('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function nv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=h5();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i));var n=_(o);$e(n,()=>{var r;return(r=e.children)!=null?r:re}),Ce(),g(o),$(t,o)}var _5=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),b5={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 rv(t,e){D(e,!0),q(t,b5);let[i,o]=Oe(),n=()=>S(u,"$interfaceLanguage$",i),r=()=>S(f,"$isMobile$",i),l=Ie(),d=Wt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=h(()=>n()&&v("pip_dummy_title")),b=Eu(d.view);var x=_5();let y;var C=_(x);let T;var I=_(C);nv(I,{}),g(C);var P=A(C,2),k=_(P,!0);g(P),g(x),O((E,L)=>{y=ee(x,1,"player-pip-dummy svelte-1pbsod4",null,y,E),at(x,b),T=ee(C,1,"dummy-image svelte-1pbsod4",null,T,L),be(k,s(p))},[()=>({"is-pip-api":a}),()=>({desktop:!r()})]),$(t,x),H(),o()}var $5=Object.defineProperty,y5=(t,e,i)=>e in t?$5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,gl=(t,e,i)=>y5(t,typeof e!="symbol"?e+"":e,i),sv=(t,e,i)=>new Promise((o,n)=>{var r=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(r,l);d((i=i.apply(t,e)).next())}),w5=460,S5=280,Wd=class{constructor({enabled:e=!0}={enabled:!0}){gl(this,"playerDomElement"),gl(this,"playerParentShadowRoot"),gl(this,"playerDummyElement"),gl(this,"svelteContext"),gl(this,"pipWindow"),gl(this,"info",{isActive$:new av(!1),isEnabled$:new av(!1),type:1}),this.info.isEnabled$=new av(e)}isSupported(){let{isEmbed:e}=x5();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}request(){return sv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:w5,height:S5,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(`
391
+ `),n=document.createElement("style");n.textContent=o;let r=this.createStretchedContainer(),l=r.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=fs(rv,d),(e=this.pipWindow)==null||e.document.body.append(r),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(na(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}remove(){return sv(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return sv(this,null,function*(){yield this.remove()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function Z1(t){return t instanceof Wd}var ku=class{static getLatestSupportedVersion(e){let i=new ua(e),o=new Wd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function qd(t,e){var n,r;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(r=(n=e[l])!=null?n:t[l])!=null?r:void 0;return o}var X1="Inner error. Unexpectedly root annotation container null reference exception",J1="Annotation with such name already exists",e0="Annotation with such name does not exist";var hl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as C5,Subscription as T5,throttleFn as E5}from"@vkontakte/videoplayer-shared/es2015";var I5="1",k5=100,Pu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new T5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=E5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},k5);this.subscriptions.add(C5(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new hl(X1);if(this.annotations.has(e))throw new hl(J1);i.style.zIndex=(o=i.style.zIndex)!=null?o:I5,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new hl(e0);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||r<0||r+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Au,Subscription as P5}from"@vkontakte/videoplayer-shared/es2015";var nn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Au(e),Au(i),Au(n),n.interactiveData&&Au(o),this.subscription=new P5,this.subscription}};var Kd=class extends nn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Dt(W({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(r=>{this.state$.set(r?!0:null)})),o}};var Qd=class extends nn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Dt(W({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:r}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=r.state,{controlsVisible:u,isMobile:f}=r.ui,v=xe(f),p=()=>v&&xe(u);return o.add(u.subscribe(b=>{if(!v)return;let x=xe(l);xe(a)?this.state$.set(b):x!==null&&this.state$.set(!x||b)})),o.add(a.subscribe(b=>{this.state$.set(!b||p())})),o.add(l.subscribe(b=>{if(b===null)return;let x=xe(d);if(p()){this.state$.set(!0);return}x&&this.state$.set(!b)})),o}};var Gd=class extends nn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as A5}from"@vkontakte/videoplayer-shared/es2015";var lv=ae(!1),Mu=null,Yd=class extends nn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Dt(W({},lv),{set:(i,o=!1)=>{i!==xe(lv)&&(this.clearTimeout(),lv.set(i),!i&&Mu&&(Mu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:r}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(a.subscribe(v=>{xe(l)&&v&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return o.add(A5({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:b})=>{var x,y;if(!(!v||!(b!=null&&b.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Mu===null&&(Mu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(x=n.callbacks)==null?void 0:x.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(x))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as M5,noop as L5}from"@vkontakte/videoplayer-shared/es2015";var jd=class extends nn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Dt(W({},ae(null)),{toggle:L5});this.checkIfShouldHide=i=>Hs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:r}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>wt(this,null,function*(){if(this.checkIfShouldHide(xe(l)))return;let a=xe(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,p=xe(u),b=xe(f);if(a)try{yield r==null?void 0:r.toggleGraphView(!1),this.state$.set(!1),v.remove(Bp),!p&&this.graphMadePause&&n.actions.internal.play()}catch(x){d({message:"Cant hide graph"})}else{this.graphMadePause=b==="playing";try{yield r==null?void 0:r.toggleGraphView(!0),this.state$.set(!0),v.add(Bp),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(x){d({message:"Cant show graph"})}}}),o.add(M5({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>wt(this,[f],function*({graphIsOpened:a,currentGridType:u}){if(this.checkIfShouldHide(u)&&a)try{yield r==null?void 0:r.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};import{ValueSubject as t0}from"@vkontakte/videoplayer-shared/es2015";var Zd=class extends nn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:r,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new t0(!1),isEnabled$:new t0(!1)}};return o.add(r.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};import{filter as N5,filterChanged as B5}from"@vkontakte/videoplayer-shared/es2015";import{safeStorage as dv}from"@vkontakte/videoplayer-shared/es2015";var i0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?V5({maxCount:t}):void 0,e!==0?R5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},V5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,dv.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},R5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(dv.get(e)||"{}")}catch(r){return{}}},o=r=>dv.set(e,JSON.stringify(r)),n=r=>{let l=i();delete l[r],o(l)};return{notificationShowed:r=>{o(Dt(W({},i()),{[r]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:r=>{let l=i()[r];if(l){let d=Date.now()-l.launchTime>t;return d&&n(r),d}else return!0}}};var Xd=class extends nn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:r,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=i0({maxShowCount:r,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(B5(),N5(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var o0=()=>[Kd,Qd,Gd,Yd,jd,Zd,Xd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Dt(W({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});import{devNull as Jd}from"@vkontakte/videoplayer-shared/es2015";var Lu=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var O5=Object.defineProperty,D5=Object.defineProperties,H5=Object.getOwnPropertyDescriptors,n0=Object.getOwnPropertySymbols,F5=Object.prototype.hasOwnProperty,U5=Object.prototype.propertyIsEnumerable,uv=(t,e,i)=>e in t?O5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,zs=(t,e)=>{for(var i in e||(e={}))F5.call(e,i)&&uv(t,i,e[i]);if(n0)for(var i of n0(e))U5.call(e,i)&&uv(t,i,e[i]);return t},z5=(t,e)=>D5(t,H5(e)),oi=(t,e,i)=>uv(t,typeof e!="symbol"?e+"":e,i),Vu=(t,e,i)=>new Promise((o,n)=>{var r=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(r,l);d((i=i.apply(t,e)).next())}),iw={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:K5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:X5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Tn=Z(void 0),Ru=class extends HTMLElement{constructor(){super(),oi(this,"svelteStubComponent"),oi(this,"svelteRootComponent"),oi(this,"store"),oi(this,"microStoresRoot"),oi(this,"statistics"),oi(this,"sentry"),oi(this,"_shadowRoot"),oi(this,"playerContainer"),oi(this,"rootContainer"),oi(this,"shadowRootContainer"),oi(this,"uiConfig"),oi(this,"coreConfig"),oi(this,"statisticsConfig"),oi(this,"interactiveController"),oi(this,"interactiveContainer"),oi(this,"graphMadePause"),oi(this,"currentPlayingVideoIndex",0),oi(this,"needToRepeatPlaylist",!1),oi(this,"videoConfig"),oi(this,"pictureInPictureApi"),oi(this,"mediaSessionApi"),oi(this,"unsubscribePlayerPhaseSubscription"),oi(this,"logger"),oi(this,"log"),oi(this,"subscription"),oi(this,"interactiveSubscription"),oi(this,"annotationsApi"),oi(this,"slotsApi"),oi(this,"focusManager"),oi(this,"prevIsid"),oi(this,"isInited",!1),oi(this,"internalsExposure",null),oi(this,"shadowDOMCallbacksDisabled",!1),oi(this,"createOneStat",(e,i={})=>{var o,n,r,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:b,isMobile:x,isTouch:y,refDomain:C,deviceId:T,interactiveData:I}=qd(this.videoConfig,i),P=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,k=(r=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?r:!1;k&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:L=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new J5(zs({movieId:E,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=b&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:x,clip:L,refDomain:C,deviceId:T},P&&(!this.isInited||k)&&{projectId:Number(P)}),zs({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(z){console.error(z),this.log({message:z.message})}}),Jd.create("ui"),this.logger=new Q5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new r0,this.interactiveSubscription=new r0,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,r=ri({title:o,thumbUrl:n}),l={target:this.playerContainer,props:r};this.svelteStubComponent=fs(ov,l)}disconnectedCallback(){var e,i,o,n,r,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Jd.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:r}=qd(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new ew.ThinOneStat({deviceId:o,movieId:l,preload:n},{config:this.statisticsConfig,refreshAuthToken:r})}createPlayer(e,i={},o){var n,r,l,d,a,u,f,v,p;if(!this.videoConfig)return;let{albumId:b,statPlace:x,statAuthToken:y,preload:C,autoplay:T,volume:I,muted:P,fromTime:k,canRewindLive:E,supportLink:L,showAds:K,adsSlotId:z,adsParams:U={},adsPreviewParam:Y,adsAutoplayParam:se,interfaceLanguage:j,isCyrillicRelatedInterface:ue,logoClickable:le,logoHidden:Me,isMobile:Ne,isTouch:ve,isAudioDisabled:pe,isLiveCatchUpMode:Re,fullScreenTarget:ie,failoverHosts:N,canDownload:Ye,callbacks:te,interactiveData:Ke,showThumbTimer:de,additionalButtons:fe=[],additionalSettingsMenuItems:ye=[],additionalContextMenuItems:X=[],repeat:Qe,saveRate:Xe,volumeMultiplier:ke,showEndScreen:ne,showAutoplayNext:Ee,mediascopePixels:Ge}=qd(this.videoConfig,i),{sources:rt,title:nt,thumbUrl:Rt,unitedVideoId:et,isClip:pt=!1,duration:Yt,adsParams:si={},videoEpisodes:Qt,previewThumbsData:Tt,subtitles:oe,live:Nt}=e,he=zs(zs({},U),si),J=this.getNextVideoInfo(),we={sources:rt,title:nt,thumbUrl:Rt,subtitles:oe,unitedVideoId:et,isClip:pt,live:Nt,albumId:b,statPlace:x,autoplay:T,muted:P,volume:I,fromTime:k,canRewindLive:E,showAds:K,adsSlotId:z,adsParams:he,adsPreviewParam:Y,adsAutoplayParam:se,duration:Yt,logoClickable:le,logoHidden:Me,isTouch:ve!=null?ve:Ne,repeat:Qe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:J.nextVideoTitle,endScreenVideoThumb:J.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Fe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(we)}`});let me=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Be=(me==null?void 0:me.oneStat)||this.createOneStat(e,i),Je=this.createThinOneStat(e,i),ze;Ge&&(ze=new tw({pixels:Ge})),(Be||Je)&&(this.statistics=new uu(Be,Je,ze,me==null?void 0:me.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ca(this.uiConfig.sentry,{version:ol,env:Nc},{movieId:et,albumId:b,place:x,autoplay:(r=T&&!this.interactiveController)!=null?r:!1,mobile:ve!=null?ve:Ne,clip:pt}),this.interactiveController&&((a=this.prevIsid)!=null||(this.prevIsid=(d=(l=this.statistics)==null?void 0:l.oneStat)==null?void 0:d.isid$.getValue())),this.sentry=zs(zs({},this.sentry),ca.getInstance());let Et=!!Ke,St=[],ht="tooltip_interactive_go_back_disabled_first";if(Et&&this.interactiveController){let Ft=this.interactiveController.state.isInitialChapter$.getValue(),gi=this.interactiveController.getHistoryState();Ft&&St.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||St.push("SEEK_TO_INTERACTIVE_BUTTON"),gi.hasPrevChapter$.getValue()||(St.push("PLAY_PREV_CHAPTER_BUTTON"),Ft||(gi.isGoBackLimited$.getValue()?ht="tooltip_interactive_go_back_disabled_limit":ht="tooltip_interactive_go_back_disabled"))}let Ri=()=>{var Ft;this.isInited=!1,this.prevIsid=void 0;let gi=(o==null?void 0:o.info.isEnded$.getValue())&&((Ft=this.interactiveController)==null?void 0:Ft.state.isEndChapter$.getValue());te.onReplayInteractiveVideo&&!gi?te.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=_1({player:o,interfaceLanguage:j,isCyrillicRelatedInterface:ue,videoId:et,isClip:pt,isLiveCatchUpMode:Re,isAudioDisabled:pe,statAuthToken:y,callbacks:te,webApi:Fe,videoEpisodes:Qt,previewThumbsData:Tt,canDownload:Ye,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:St,isInteractive:Et,saveRate:Xe,interactiveRanges$:(u=this.interactiveController)==null?void 0:u.state.interactiveRanges$,isInteractiveTime$:(f=this.interactiveController)==null?void 0:f.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Ri,playPrevChapterDisabledTooltip:ht,hasInteractiveBranches:!!((p=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&p.length),additionalButtons:this.uiConfig.features.additionalButtons?fe:[],additionalSettingsMenuItems:ye!=null?ye:[],additionalContextMenuItems:X!=null?X:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Qe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:pi}=this.microStoresRoot=o0(),ot=()=>{var Ft,gi,Wi,mo,qi,jt;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(At=>{var ct;return(ct=te==null?void 0:te.onCurrentFormatChanged)==null?void 0:ct.call(te,At)})),this.subscription.add(pi.interactiveControlsOpacity$.subscribe(At=>{var ct;At!==null&&((ct=this==null?void 0:this.interactiveController)==null||ct.setDisabledControls(At))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(At=>{var ct;return(ct=te==null?void 0:te.onThroughputEstimationChanged)==null?void 0:ct.call(te,At)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(At=>{var ct;return(ct=te==null?void 0:te.onTrafficSavingEnabledChanged)==null?void 0:ct.call(te,At)})),this.subscription.add(new G5(At=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ct=>At.next(ct)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?Z5(1):At=>At).subscribe(At=>{var ct;return(ct=te==null?void 0:te.onCurrentPlaybackRateChanged)==null?void 0:ct.call(te,At)})),this.subscription.add(this.store.state.volume$.subscribe(At=>{var ct;return(ct=te==null?void 0:te.onVolumeChange)==null?void 0:ct.call(te,At)})),this.subscription.add(this.store.state.muted$.subscribe(At=>{var ct,hi,G,Kt;if(At)(ct=te==null?void 0:te.onMute)==null||ct.call(te);else{let ui=(G=((hi=this.store)==null?void 0:hi.state.volume$)&&xe(this.store.state.volume$))!=null?G:0;(Kt=te==null?void 0:te.onUnmute)==null||Kt.call(te,ui)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(At=>{var ct;return(ct=te==null?void 0:te.onVideoBitrateChanged)==null?void 0:ct.call(te,At)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(At=>{var ct;let hi=(ct=this.store)==null?void 0:ct.ui.controls.disabledControls$;hi&&(At&&!hi.includes(jl)&&hi.add(jl),At||hi.remove(jl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(At=>Vu(this,null,function*(){var ct;if(!s0.browser.isSamsungBrowser||!At||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((ct=this.videoConfig)==null?void 0:ct.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(At=>{var ct;return(ct=te==null?void 0:te.onVSIDChanged)==null?void 0:ct.call(te,At)})),this.initMediaSession(),B(Tn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:rt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,coreConfig:this.coreConfig,title:nt,thumbUrl:Rt,subtitles:oe,live:Nt,preload:C,autoplay:T,muted:P,volume:I,fromTime:k,canRewindLive:E,supportLink:L,showAds:K,adsSlotId:z,adsParams:he,adsPreviewParam:Y,adsAutoplayParam:se,duration:Yt,logoClickable:le,logoHidden:Me,isMobile:ve!=null?ve:Ne,failoverHosts:N,fullScreenTarget:ie,saveRate:Xe,shadowRootContainer:this.shadowRootContainer,showMiniTimer:de,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:J.nextVideoTitle,endScreenVideoThumb:J.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ke,showEndScreen:ne,showAutoplayNext:Ee},!0);let vo={target:this.playerContainer,props:s(Tn)};this.svelteRootComponent=fs(ev,vo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Wi=(gi=(Ft=this.videoConfig)==null?void 0:Ft.callbacks)==null?void 0:gi.onInited)==null||Wi.call(gi)),(mo=this.internalsExposure)==null||mo.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((jt=(qi=this.videoConfig)==null?void 0:qi.callbacks)!=null&&jt.onDevNullLog)?Jd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Jd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?s0.isInited$.subscribe(Ft=>{Ft&&(console.log("UI SDK async start"),ot())}):ot()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let r=(i=this.videoConfig)==null?void 0:i.callbacks;r&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=r.onPlayerPhaseChanged)==null?void 0:a.call(r,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=r.onPlaybackStateChanged)==null?void 0:a.call(r,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=r.onIsLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=r.onIsActiveLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=r.onIsAudioAvailableChanged)==null?void 0:a.call(r,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=r.onCurrentQualityChanged)==null?void 0:a.call(r,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=r.onAvailableQualitiesChanged)==null?void 0:a.call(r,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&r.onAudioLanguagesAvailable&&r.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=r.onPiPEnter)==null?void 0:a.call(r):(u=r.onPiPExit)==null?void 0:u.call(r)}));let l=r==null?void 0:r.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&cv(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return Vu(this,null,function*(){var e,i,o,n,r,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?xe(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:b}=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:b,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$:x,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let I=this.store;T?I.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):I.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(x.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]=z5(zs({},T.config),{title:(f==null?void 0:f.title)||T.config.title});let I=C?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,I),C&&(C=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:I})=>{var P,k,E,L,K,z;if(!this.store||!this.microStoresRoot)return;let U=x.getValue();if(T==="action-choice"&&I==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Zl)),T==="action-choice-canceled"){let Y=xe(this.store.state.isPlaying$)||U;if(((E=(P=this.videoConfig)==null?void 0:P.isTouch)!=null?E:(k=this.videoConfig)!=null&&k.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(z=(L=this.videoConfig)==null?void 0:(K=L.callbacks).onDisabledInteractiveClick)==null||z.call(K)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:I})=>{this.store&&T==="container-fake-removed"&&I&&this.store.ui.controls.disabledControls$.remove(Zl)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(I=>{var P,k,E;I.length&&((E=(k=(P=this.videoConfig)==null?void 0:P.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||E.call(k,I))}))}(l=(r=this.videoConfig)==null?void 0:r.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var I,P,k;(k=(I=this.videoConfig)==null?void 0:(P=I.callbacks).onInteractiveChapterChanged)==null||k.call(P,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,I,P,k;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(I=this.videoConfig)==null?void 0:(P=I.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(P)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,n,r,l,d,a,u,f,v,p,b,x,y,C,T,I,P,k,E,L,K,z,U,Y,se,j;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=qd(iw,q5(e,ue=>ue instanceof HTMLElement?ue:void 0)),this.uiConfig=Jg((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(r=i.statistics)!=null?r:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(l=this.uiConfig.sentry)!=null?l:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new j5("UI"))),Jd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((a=this.videoConfig)==null?void 0:a.showAds)],numbers:[W5()]}),cv(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),cv(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=(v=this.uiConfig.features.pip)!=null?v:this.videoConfig.isPictureInPictureEnabled)!=null?p:!0,this.uiConfig.features.dpip=(x=(b=this.uiConfig.features.dpip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?x:!0),this.videoConfig.isTouch=(C=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(k=this.uiConfig.ads.preview)!=null?k:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((E=this.uiConfig.showLogo)!=null?E:!this.videoConfig.logoHidden),(L=this.videoConfig).canRewindLive&&(L.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(K=this.videoConfig.supportLink)!=null?K:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(z=this.uiConfig.features.endScreen)!=null?z:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(U=this.uiConfig.features.autoplayNext)!=null?U:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Y=this.uiConfig.features.nextPrevButtons)!=null?Y:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((se=this.videoConfig.videos)!=null&&se[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ue={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=ku.getLatestSupportedVersion(ue):this.pictureInPictureApi=new ua(ue)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Iu:void 0,this.slotsApi=this.uiConfig.features.slots?new Su:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Pu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),Z1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(j=this.slotsApi)==null||j.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Lu(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();s(Tn)&&(s(Tn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Tn).nextButtonActive=this.isNextButtonActive(),s(Tn).prevButtonActive=this.isPrevButtonActive(),s(Tn).endScreenVideoTitle=o.nextVideoTitle,s(Tn).endScreenVideoThumb=o.nextVideoThumb,s(Tn).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}=zs({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,s(Tn)&&(s(Tn).needToRepeatPlaylist=this.needToRepeatPlaylist,s(Tn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Tn).nextButtonActive=this.isNextButtonActive(),s(Tn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return Vu(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let r=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&r(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||r(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var r;(r=this.store)==null||r.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var r;o||n(),(r=this.store)==null||r.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let r=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){r();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=r)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return Vu(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=xe(this.store.state.positionExact$),l=xe(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe(Y5()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&na(e)}};import{InterfaceLanguage as ute,VKNumericLanguage as pte,loadVKLangPack as fte}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as vte,VideoFormat as gte}from"@vkontakte/videoplayer-core/es2015";var ote=()=>{window.customElements.define("vk-video-player",Ru)};export{pu as ControlButtonType,is as GridTypes,ute as InterfaceLanguage,ld as MenuItemType,hs as PlayerPhase,ol as VERSION,pte as VKNumericLanguage,gte as VideoFormat,vte as VideoQuality,fte as loadVKLangPack,ote as registerPlayerWebComponent};