@vkontakte/videoplayer 1.1.70-dev.00565e34.0 → 1.1.71-dev.ddc44d3f.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2018.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.70-dev.00565e34.0
3
- * Thu, 21 Aug 2025 16:46:28 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-70/doc/
2
+ * @vkontakte/videoplayer v1.1.71-dev.ddc44d3f.0
3
+ * Mon, 25 Aug 2025 17:47:19 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-71/doc/
5
5
  */
6
- "use strict";var B0=Object.create;var Hl=Object.defineProperty;var O0=Object.getOwnPropertyDescriptor;var D0=Object.getOwnPropertyNames;var H0=Object.getPrototypeOf,F0=Object.prototype.hasOwnProperty;var zv=t=>{throw TypeError(t)};var U0=(t,e,i)=>e in t?Hl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var z0=(t,e)=>{for(var i in e)Hl(t,i,{get:e[i],enumerable:!0})},Wv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of D0(e))!F0.call(t,n)&&n!==i&&Hl(t,n,{get:()=>e[n],enumerable:!(o=O0(e,n))||o.enumerable});return t};var qv=(t,e,i)=>(i=t!=null?B0(H0(t)):{},Wv(e||!t||!t.__esModule?Hl(i,"default",{value:t,enumerable:!0}):i,t)),W0=t=>Wv(Hl({},"__esModule",{value:!0}),t);var Qn=(t,e,i)=>U0(t,typeof e!="symbol"?e+"":e,i),cp=(t,e,i)=>e.has(t)||zv("Cannot "+i);var Pi=(t,e,i)=>(cp(t,e,"read from private field"),i?i.call(t):e.get(t)),Ss=(t,e,i)=>e.has(t)?zv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),za=(t,e,i,o)=>(cp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Kv=(t,e,i)=>(cp(t,e,"access private method"),i);var r5={};z0(r5,{ControlButtonType:()=>Ud,GridTypes:()=>Rr,InterfaceLanguage:()=>Bl.InterfaceLanguage,MenuItemType:()=>$l,PlayerPhase:()=>ns,VERSION:()=>pa,VKNumericLanguage:()=>Bl.VKNumericLanguage,VideoFormat:()=>np.VideoFormat,VideoQuality:()=>np.VideoQuality,loadVKLangPack:()=>Bl.loadVKLangPack,registerPlayerWebComponent:()=>n5});module.exports=W0(r5);var Ts="[",Es="[!",Gs="]",jr={};var Wi=Symbol(),Ln=Symbol("filename"),Qv=Symbol("hmr"),Gv="http://www.w3.org/1999/xhtml",Ec="http://www.w3.org/2000/svg";var up="@attach";var Ic=!0;var Yv,Zv,jv=(Zv=(Yv=globalThis.process)==null?void 0:Yv.env)==null?void 0:Zv.NODE_ENV,Pe=jv&&!jv.toLowerCase().startsWith("prod");var Gn=Array.isArray,Xv=Array.prototype.indexOf,Fl=Array.from,pp=Object.keys,eo=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,kc=Object.getOwnPropertyDescriptors,fp=Object.prototype,Jv=Array.prototype,js=Object.getPrototypeOf,mp=Object.isExtensible;function Is(t){return typeof t=="function"}var re=()=>{};function eg(t){return t()}function ks(t){for(var e=0;e<t.length;e++)t[e]()}var Bo=Symbol("$state"),Wa=Symbol("legacy props"),tg=Symbol(""),Pc=Symbol("proxy path"),Ac=1,qa=3,jn=8;function Mc(t){return t===this.v}function Ka(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function ig(t,e){return t!==e}function Qa(t){return!Ka(t,this.v)}function og(){if(Pe){let t=new Error(`derived_references_self
6
+ "use strict";var O0=Object.create;var Hl=Object.defineProperty;var D0=Object.getOwnPropertyDescriptor;var H0=Object.getOwnPropertyNames;var F0=Object.getPrototypeOf,U0=Object.prototype.hasOwnProperty;var zv=t=>{throw TypeError(t)};var z0=(t,e,i)=>e in t?Hl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var W0=(t,e)=>{for(var i in e)Hl(t,i,{get:e[i],enumerable:!0})},Wv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of H0(e))!U0.call(t,n)&&n!==i&&Hl(t,n,{get:()=>e[n],enumerable:!(o=D0(e,n))||o.enumerable});return t};var qv=(t,e,i)=>(i=t!=null?O0(F0(t)):{},Wv(e||!t||!t.__esModule?Hl(i,"default",{value:t,enumerable:!0}):i,t)),q0=t=>Wv(Hl({},"__esModule",{value:!0}),t);var Qn=(t,e,i)=>z0(t,typeof e!="symbol"?e+"":e,i),cp=(t,e,i)=>e.has(t)||zv("Cannot "+i);var Ai=(t,e,i)=>(cp(t,e,"read from private field"),i?i.call(t):e.get(t)),Ss=(t,e,i)=>e.has(t)?zv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),za=(t,e,i,o)=>(cp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Kv=(t,e,i)=>(cp(t,e,"access private method"),i);var s5={};W0(s5,{ControlButtonType:()=>Ud,GridTypes:()=>Rr,InterfaceLanguage:()=>Bl.InterfaceLanguage,MenuItemType:()=>$l,PlayerPhase:()=>ns,VERSION:()=>pa,VKNumericLanguage:()=>Bl.VKNumericLanguage,VideoFormat:()=>np.VideoFormat,VideoQuality:()=>np.VideoQuality,loadVKLangPack:()=>Bl.loadVKLangPack,registerPlayerWebComponent:()=>r5});module.exports=q0(s5);var Ts="[",Es="[!",Gs="]",jr={};var zi=Symbol(),Ln=Symbol("filename"),Qv=Symbol("hmr"),Gv="http://www.w3.org/1999/xhtml",Ec="http://www.w3.org/2000/svg";var up="@attach";var Ic=!0;var Yv,Zv,jv=(Zv=(Yv=globalThis.process)==null?void 0:Yv.env)==null?void 0:Zv.NODE_ENV,Pe=jv&&!jv.toLowerCase().startsWith("prod");var Gn=Array.isArray,Xv=Array.prototype.indexOf,Fl=Array.from,pp=Object.keys,Xi=Object.defineProperty,on=Object.getOwnPropertyDescriptor,kc=Object.getOwnPropertyDescriptors,fp=Object.prototype,Jv=Array.prototype,js=Object.getPrototypeOf,mp=Object.isExtensible;function Is(t){return typeof t=="function"}var se=()=>{};function eg(t){return t()}function ks(t){for(var e=0;e<t.length;e++)t[e]()}var Ro=Symbol("$state"),Wa=Symbol("legacy props"),tg=Symbol(""),Pc=Symbol("proxy path"),Ac=1,qa=3,jn=8;function Mc(t){return t===this.v}function Ka(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function ig(t,e){return t!==e}function Qa(t){return!Ka(t,this.v)}function og(){if(Pe){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
8
8
  https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function ng(t){if(Pe){let e=new Error(`effect_in_teardown
9
9
  \`${t}\` cannot be used inside an effect cleanup function
@@ -21,10 +21,10 @@ https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else th
21
21
  The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
22
22
  https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function fg(){if(Pe){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function mg(){if(Pe){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function vg(){if(Pe){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Yr=!1,Zr=!1;function gg(){Yr=!0}var Ul=null;function ds(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
- `];for(let r=0;r<o.length;r++){let l=o[r];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;eo(e,"stack",{value:n.join(`
25
- `)}),eo(e,"name",{value:`${t}Error`})}return e}function Ir(t,e){return t.label=e,Lc(t.v,e),t}function Lc(t,e){var i;return(i=t==null?void 0:t[Pc])==null||i.call(t,e),t}function Ga(t){if(Pe){let e=new Error(`lifecycle_outside_component
24
+ `];for(let r=0;r<o.length;r++){let l=o[r];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;Xi(e,"stack",{value:n.join(`
25
+ `)}),Xi(e,"name",{value:`${t}Error`})}return e}function Ir(t,e){return t.label=e,Lc(t.v,e),t}function Lc(t,e){var i;return(i=t==null?void 0:t[Pc])==null||i.call(t,e),t}function Ga(t){if(Pe){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 zl(t){Nt=t}var Yn=null;function Wl(t){Yn=t}function ja(t){return hp("getContext").get(t)}function Ya(t,e){return hp("setContext").set(t,e),e}function ql(){return hp("getAllContexts")}function H(t,e=!1,i){var o=Nt={p:Nt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Yr&&!e&&(Nt.l={s:null,u:null,r1:[],r2:pr(!1)}),Oo(()=>{o.d=!0}),Pe&&(Nt.function=i,Yn=i)}function F(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=vt,o=Tt;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];to(r.effect),Ni(r.reaction),Co(r.fn)}}finally{to(i),Ni(o)}}Nt=e.p,Pe&&(Yn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Xr(){return!Yr||Nt!==null&&Nt.l===null}function hp(t){var e;return Nt===null&&Ga(t),(e=Nt.c)!=null?e:Nt.c=new Map(K0(Nt)||void 0)}function K0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var Q0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ni(t){if(typeof t!="object"||t===null||Bo in t)return t;let e=js(t);if(e!==fp&&e!==Jv)return t;var i=new Map,o=Gn(t),n=j(0),r=Pe&&Zr?ds("CreatedAt"):null,l=Tt,d=f=>{var v=Tt;Ni(l);var u=f();return Ni(v),u};o&&i.set("length",j(t.length,r));var a="";function p(f){a=f,Ir(n,`${a} version`);for(let[v,u]of i)Ir(u,Ys(a,v))}return new Proxy(t,{defineProperty(f,v,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&fg();var $=i.get(v);return $===void 0?$=d(()=>{var w=j(u.value,r);return i.set(v,w),Pe&&typeof v=="string"&&Ir(w,Ys(a,v)),w}):B($,u.value,!0),!0},deleteProperty(f,v){var u=i.get(v);if(u===void 0){if(v in f){let y=d(()=>j(Wi,r));i.set(v,y),_p(n),Pe&&Ir(y,Ys(a,v))}}else{if(o&&typeof v=="string"){var $=i.get("length"),w=Number(v);Number.isInteger(w)&&w<$.v&&B($,w)}B(u,Wi),_p(n)}return!0},get(f,v,u){var S;if(v===Bo)return t;if(Pe&&v===Pc)return p;var $=i.get(v),w=v in f;if($===void 0&&(!w||(S=nn(f,v))!=null&&S.writable)&&($=d(()=>{var T=ni(w?f[v]:Wi),I=j(T,r);return Pe&&Ir(I,Ys(a,v)),I}),i.set(v,$)),$!==void 0){var y=s($);return y===Wi?void 0:y}return Reflect.get(f,v,u)},getOwnPropertyDescriptor(f,v){var u=Reflect.getOwnPropertyDescriptor(f,v);if(u&&"value"in u){var $=i.get(v);$&&(u.value=s($))}else if(u===void 0){var w=i.get(v),y=w==null?void 0:w.v;if(w!==void 0&&y!==Wi)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return u},has(f,v){var y;if(v===Bo)return!0;var u=i.get(v),$=u!==void 0&&u.v!==Wi||Reflect.has(f,v);if(u!==void 0||vt!==null&&(!$||(y=nn(f,v))!=null&&y.writable)){u===void 0&&(u=d(()=>{var S=$?ni(f[v]):Wi,T=j(S,r);return Pe&&Ir(T,Ys(a,v)),T}),i.set(v,u));var w=s(u);if(w===Wi)return!1}return $},set(f,v,u,$){var R;var w=i.get(v),y=v in f;if(o&&v==="length")for(var S=u;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?B(T,Wi):S in f&&(T=d(()=>j(Wi,r)),i.set(S+"",T),Pe&&Ir(T,Ys(a,S)))}if(w===void 0)(!y||(R=nn(f,v))!=null&&R.writable)&&(w=d(()=>j(void 0,r)),B(w,ni(u)),i.set(v,w),Pe&&Ir(w,Ys(a,v)));else{y=w.v!==Wi;var I=d(()=>ni(u));B(w,I)}var A=Reflect.getOwnPropertyDescriptor(f,v);if(A!=null&&A.set&&A.set.call($,u),!y){if(o&&typeof v=="string"){var k=i.get("length"),E=Number(v);Number.isInteger(E)&&E>=k.v&&B(k,E+1)}_p(n)}return!0},ownKeys(f){s(n);var v=Reflect.ownKeys(f).filter(w=>{var y=i.get(w);return y===void 0||y.v!==Wi});for(var[u,$]of i)$.v!==Wi&&!(u in f)&&v.push(u);return v},setPrototypeOf(){mg()}})}function Ys(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:Q0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function _p(t,e=1){B(t,t.v+e)}function Za(t){try{if(t!==null&&typeof t=="object"&&Bo in t)return t[Bo]}catch(e){}return t}function bp(t,e){return Object.is(Za(t),Za(e))}function kr(t){var e=2050,i=Tt!==null&&(Tt.f&2)!==0?Tt:null;vt===null||i!==null&&(i.f&256)!==0?e|=256:vt.f|=1048576;let o={ctx:Nt,deps:null,effects:null,equals:Mc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:vt};return Pe&&Zr&&(o.created=ds("CreatedAt")),o}function g(t){let e=kr(t);return Nc(e),e}function Pr(t){let e=kr(t);return e.equals=Qa,e}function Vc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Bi(e[i])}}var $p=[];function G0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function wp(t){var e,i=vt;if(to(G0(t)),Pe){let o=Zs;yp(new Set);try{$p.includes(t)&&og(),$p.push(t),Vc(t),e=Rc(t)}finally{to(i),yp(o),$p.pop()}}else try{Vc(t),e=Rc(t)}finally{to(i)}return e}function Cp(t){var e=wp(t);if(t.equals(e)||(t.v=e,t.wv=Kl()),!cs){var i=(us||(t.f&256)!==0)&&t.deps!==null?4096:1024;hn(t,i)}}var Zs=new Set,Xa=new Map;function yp(t){Zs=t}function pr(t,e){var i={f:0,v:t,reactions:null,equals:Mc,rv:0,wv:0};return Pe&&Zr&&(i.created=e!=null?e:ds("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function j(t,e){let i=pr(t,e);return Nc(i),i}function Jr(t,e=!1,i=!0){var n,r;let o=pr(t);return e||(o.equals=Qa),Yr&&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;Tt!==null&&(!Jn||(Tt.f&262144)!==0)&&Xr()&&(Tt.f&262162)!==0&&!((n=Ho)!=null&&n[1].includes(t)&&Ho[0]===Tt)&&vg();let o=i?ni(e):e;return Pe&&Lc(o,t.label),Ja(t,o)}function Ja(t,e){if(!t.equals(e)){var i=t.v;if(cs?Xa.set(t,e):Xa.set(t,i),t.v=e,Pe&&Zr&&(t.updated=ds("UpdatedAt"),vt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&wp(t),hn(t,(t.f&256)===0?1024:4096)),t.wv=Kl(),_g(t,2048),Xr()&&vt!==null&&(vt.f&1024)!==0&&(vt.f&96)===0&&(Xn===null?bg([t]):Xn.push(t)),Pe&&Zs.size>0){let o=Array.from(Zs);for(let n of o)(n.f&1024)!==0&&hn(n,4096),Js(n)&&el(n);Zs.clear()}}return e}function _g(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===vt)){if(Pe&&(d&262144)!==0){Zs.add(l);continue}hn(l,e),(d&1280)!==0&&((d&2)!==0?_g(l,4096):Gl(l))}}}var tl="font-weight: bold",il="font-weight: normal";function $g(t,e,i){Pe?console.warn(`%c[svelte] hydration_attribute_changed
27
+ https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Rt=null;function zl(t){Rt=t}var Yn=null;function Wl(t){Yn=t}function ja(t){return hp("getContext").get(t)}function Ya(t,e){return hp("setContext").set(t,e),e}function ql(){return hp("getAllContexts")}function D(t,e=!1,i){var o=Rt={p:Rt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Yr&&!e&&(Rt.l={s:null,u:null,r1:[],r2:pr(!1)}),No(()=>{o.d=!0}),Pe&&(Rt.function=i,Yn=i)}function H(t){var l,d;let e=Rt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=ht,o=It;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];Ji(r.effect),Ni(r.reaction),xo(r.fn)}}finally{Ji(i),Ni(o)}}Rt=e.p,Pe&&(Yn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Xr(){return!Yr||Rt!==null&&Rt.l===null}function hp(t){var e;return Rt===null&&Ga(t),(e=Rt.c)!=null?e:Rt.c=new Map(Q0(Rt)||void 0)}function Q0(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 oi(t){if(typeof t!="object"||t===null||Ro in t)return t;let e=js(t);if(e!==fp&&e!==Jv)return t;var i=new Map,o=Gn(t),n=j(0),r=Pe&&Zr?ds("CreatedAt"):null,l=It,d=f=>{var v=It;Ni(l);var u=f();return Ni(v),u};o&&i.set("length",j(t.length,r));var a="";function p(f){a=f,Ir(n,`${a} version`);for(let[v,u]of i)Ir(u,Ys(a,v))}return new Proxy(t,{defineProperty(f,v,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&fg();var $=i.get(v);return $===void 0?$=d(()=>{var w=j(u.value,r);return i.set(v,w),Pe&&typeof v=="string"&&Ir(w,Ys(a,v)),w}):B($,u.value,!0),!0},deleteProperty(f,v){var u=i.get(v);if(u===void 0){if(v in f){let y=d(()=>j(zi,r));i.set(v,y),_p(n),Pe&&Ir(y,Ys(a,v))}}else{if(o&&typeof v=="string"){var $=i.get("length"),w=Number(v);Number.isInteger(w)&&w<$.v&&B($,w)}B(u,zi),_p(n)}return!0},get(f,v,u){var S;if(v===Ro)return t;if(Pe&&v===Pc)return p;var $=i.get(v),w=v in f;if($===void 0&&(!w||(S=on(f,v))!=null&&S.writable)&&($=d(()=>{var T=oi(w?f[v]:zi),I=j(T,r);return Pe&&Ir(I,Ys(a,v)),I}),i.set(v,$)),$!==void 0){var y=s($);return y===zi?void 0:y}return Reflect.get(f,v,u)},getOwnPropertyDescriptor(f,v){var u=Reflect.getOwnPropertyDescriptor(f,v);if(u&&"value"in u){var $=i.get(v);$&&(u.value=s($))}else if(u===void 0){var w=i.get(v),y=w==null?void 0:w.v;if(w!==void 0&&y!==zi)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return u},has(f,v){var y;if(v===Ro)return!0;var u=i.get(v),$=u!==void 0&&u.v!==zi||Reflect.has(f,v);if(u!==void 0||ht!==null&&(!$||(y=on(f,v))!=null&&y.writable)){u===void 0&&(u=d(()=>{var S=$?oi(f[v]):zi,T=j(S,r);return Pe&&Ir(T,Ys(a,v)),T}),i.set(v,u));var w=s(u);if(w===zi)return!1}return $},set(f,v,u,$){var R;var w=i.get(v),y=v in f;if(o&&v==="length")for(var S=u;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?B(T,zi):S in f&&(T=d(()=>j(zi,r)),i.set(S+"",T),Pe&&Ir(T,Ys(a,S)))}if(w===void 0)(!y||(R=on(f,v))!=null&&R.writable)&&(w=d(()=>j(void 0,r)),B(w,oi(u)),i.set(v,w),Pe&&Ir(w,Ys(a,v)));else{y=w.v!==zi;var I=d(()=>oi(u));B(w,I)}var A=Reflect.getOwnPropertyDescriptor(f,v);if(A!=null&&A.set&&A.set.call($,u),!y){if(o&&typeof v=="string"){var k=i.get("length"),E=Number(v);Number.isInteger(E)&&E>=k.v&&B(k,E+1)}_p(n)}return!0},ownKeys(f){s(n);var v=Reflect.ownKeys(f).filter(w=>{var y=i.get(w);return y===void 0||y.v!==zi});for(var[u,$]of i)$.v!==zi&&!(u in f)&&v.push(u);return v},setPrototypeOf(){mg()}})}function Ys(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:G0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function _p(t,e=1){B(t,t.v+e)}function Za(t){try{if(t!==null&&typeof t=="object"&&Ro in t)return t[Ro]}catch(e){}return t}function bp(t,e){return Object.is(Za(t),Za(e))}function kr(t){var e=2050,i=It!==null&&(It.f&2)!==0?It:null;ht===null||i!==null&&(i.f&256)!==0?e|=256:ht.f|=1048576;let o={ctx:Rt,deps:null,effects:null,equals:Mc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:ht};return Pe&&Zr&&(o.created=ds("CreatedAt")),o}function g(t){let e=kr(t);return Nc(e),e}function Pr(t){let e=kr(t);return e.equals=Qa,e}function Vc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Bi(e[i])}}var $p=[];function j0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function wp(t){var e,i=ht;if(Ji(j0(t)),Pe){let o=Zs;yp(new Set);try{$p.includes(t)&&og(),$p.push(t),Vc(t),e=Rc(t)}finally{Ji(i),yp(o),$p.pop()}}else try{Vc(t),e=Rc(t)}finally{Ji(i)}return e}function Cp(t){var e=wp(t);if(t.equals(e)||(t.v=e,t.wv=Kl()),!cs){var i=(us||(t.f&256)!==0)&&t.deps!==null?4096:1024;hn(t,i)}}var Zs=new Set,Xa=new Map;function yp(t){Zs=t}function pr(t,e){var i={f:0,v:t,reactions:null,equals:Mc,rv:0,wv:0};return Pe&&Zr&&(i.created=e!=null?e:ds("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function j(t,e){let i=pr(t,e);return Nc(i),i}function Jr(t,e=!1,i=!0){var n,r;let o=pr(t);return e||(o.equals=Qa),Yr&&i&&Rt!==null&&Rt.l!==null&&((r=(n=Rt.l).s)!=null?r:n.s=[]).push(o),o}function B(t,e,i=!1){var n;It!==null&&(!Jn||(It.f&262144)!==0)&&Xr()&&(It.f&262162)!==0&&!((n=Oo)!=null&&n[1].includes(t)&&Oo[0]===It)&&vg();let o=i?oi(e):e;return Pe&&Lc(o,t.label),Ja(t,o)}function Ja(t,e){if(!t.equals(e)){var i=t.v;if(cs?Xa.set(t,e):Xa.set(t,i),t.v=e,Pe&&Zr&&(t.updated=ds("UpdatedAt"),ht!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&wp(t),hn(t,(t.f&256)===0?1024:4096)),t.wv=Kl(),_g(t,2048),Xr()&&ht!==null&&(ht.f&1024)!==0&&(ht.f&96)===0&&(Xn===null?bg([t]):Xn.push(t)),Pe&&Zs.size>0){let o=Array.from(Zs);for(let n of o)(n.f&1024)!==0&&hn(n,4096),Js(n)&&el(n);Zs.clear()}}return e}function _g(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===ht)){if(Pe&&(d&262144)!==0){Zs.add(l);continue}hn(l,e),(d&1280)!==0&&((d&2)!==0?_g(l,4096):Gl(l))}}}var tl="font-weight: bold",il="font-weight: normal";function $g(t,e,i){Pe?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
29
  https://svelte.dev/e/hydration_attribute_changed`,tl,il):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function yg(t){Pe?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"}
@@ -34,26 +34,26 @@ https://svelte.dev/e/hydration_mismatch`,tl,il):console.warn("https://svelte.dev
34
34
  %cTried to unmount a component that was not mounted
35
35
  https://svelte.dev/e/lifecycle_double_unmount`,tl,il):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function wg(){Pe?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",tl,il):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Bc(t){Pe?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`,tl,il):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ze=!1;function io(t){Ze=t}var gt;function gi(t){if(t===null)throw Ps(),jr;return gt=t}function Oi(){return gi(Fo(gt))}function h(t){if(Ze){if(Fo(gt)!==null)throw Ps(),jr;gt=t}}function we(t=1){if(Ze){for(var e=t,i=gt;e--;)i=Fo(i);gt=i}}function ea(){for(var t=0,e=gt;;){if(e.nodeType===jn){var i=e.data;if(i===Gs){if(t===0)return e;t-=1}else(i===Ts||i===Es)&&(t+=1)}var o=Fo(e);e.remove(),e=o}}function Oc(t){if(!t||t.nodeType!==jn)throw Ps(),jr;return t.data}function Cg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Za(this[a])===r){Bc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Za(this[a])===r){Bc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Za(this[a])===r){Bc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ta,Sg,jl,Tg,Eg;function Dc(){if(ta===void 0){ta=window,Sg=document,jl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Tg=nn(e,"firstChild").get,Eg=nn(e,"nextSibling").get,mp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),mp(i)&&(i.__t=void 0),Pe&&(t.__svelte_meta=null,Cg())}}function _n(t=""){return document.createTextNode(t)}function _i(t){return Tg.call(t)}function Fo(t){return Eg.call(t)}function _(t,e){if(!Ze)return _i(t);var i=_i(gt);if(i===null)i=gt.appendChild(_n());else if(e&&i.nodeType!==qa){var o=_n();return i==null||i.before(o),gi(o),o}return gi(i),i}function fe(t,e){var n,r;if(!Ze){var i=_i(t);return i.nodeType===8&&i.data===""?Fo(i):i}if(e&&((n=gt)==null?void 0:n.nodeType)!==qa){var o=_n();return(r=gt)==null||r.before(o),gi(o),o}return gt}function P(t,e=1,i=!1){let o=Ze?gt:t;for(var n;e--;)n=o,o=Fo(o);if(!Ze)return o;if(i&&(o==null?void 0:o.nodeType)!==qa){var r=_n();return o===null?n==null||n.after(r):o.before(r),gi(r),r}return gi(o),o}function Yl(t){t.textContent=""}function Ep(t){vt===null&&Tt===null&&sg(t),Tt!==null&&(Tt.f&256)!==0&&vt===null&&rg(),cs&&ng(t)}function j0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ia(t,e,i,o=!0){var a;var n=vt;if(Pe)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(Pe&&(r.component_function=Yn),i)try{el(r),r.f|=32768}catch(p){throw Bi(r),p}else e!==null&&Gl(r);var l=i&&r.deps===null&&r.first===null&&r.nodes_start===null&&r.teardown===null&&(r.f&1048704)===0;if(!l&&o&&(n!==null&&j0(r,n),Tt!==null&&(Tt.f&2)!==0)){var d=Tt;((a=d.effects)!=null?a:d.effects=[]).push(r)}return r}function Oo(t){let e=ia(8,null,!1);return hn(e,1024),e.teardown=t,e}function We(t){var n;Ep("$effect");var e=vt!==null&&(vt.f&32)!==0&&Nt!==null&&!Nt.m;if(Pe&&eo(t,"name",{value:"$effect"}),e){var i=Nt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:vt,reaction:Tt})}else{var o=Co(t);return o}}function Jl(t){return Ep("$effect.pre"),Pe&&eo(t,"name",{value:"$effect.pre"}),Uo(t)}function Uc(t){let e=ia(64,t,!0);return()=>{Bi(e)}}function kg(t){let e=ia(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Bn(e,()=>{Bi(e),o(void 0)}):(Bi(e),o(void 0))})}function Co(t){return ia(4,t,!1)}function Uo(t){return ia(8,t,!0)}function O(t,e=[],i=kr){if(Pe)return Uo(()=>{var n=vt,r=()=>t(...l.map(s));eo(n.fn,"name",{value:"{expression}"}),eo(r,"name",{value:"{expression}"});let l=e.map(i);Di(r)});let o=e.map(i);return Di(()=>t(...o.map(s)))}function Di(t,e=0){return ia(24|e,t,!0)}function Ai(t,e=!0){return ia(40,t,!0,e)}function Ip(t){var e=t.teardown;if(e!==null){let i=cs,o=Tt;Sp(!0),Ni(null);try{e.call(null)}finally{Sp(i),Ni(o)}}}function kp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Bi(i,e),i=o}}function Pg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Bi(e),e=i}}function Bi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Pp(t.nodes_start,t.nodes_end),i=!0),kp(t,e&&!i),ed(t,0),hn(t,16384);var o=t.transitions;if(o!==null)for(let r of o)r.stop();Ip(t);var n=t.parent;n!==null&&n.first!==null&&Ap(t),Pe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pp(t,e){for(;t!==null;){var i=t===e?null:Fo(t);t.remove(),t=i}}function Ap(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Bn(t,e){var i=[];zc(t,i,!0),Mp(i,()=>{Bi(t),e&&e()})}function Mp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function zc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;zc(o,e,r?i:!1),o=n}}}function fs(t){Ag(t,!0)}function Ag(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Ag(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}var td=[],Lp=[];function Mg(){var t=td;td=[],ks(t)}function Y0(){var t=Lp;Lp=[],ks(t)}function bn(t){td.length===0&&queueMicrotask(Mg),td.push(t)}function Lg(){td.length>0&&Mg(),Lp.length>0&&Y0()}function Rg(t){var e=vt;if(Pe&&t instanceof Error&&Z0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else id(t,e)}function id(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var Vg=new WeakSet;function Z0(t,e){var l,d;if(Vg.has(t))return;Vg.add(t);let i=nn(t,"message");if(!(i&&!i.configurable)){for(var o=jl?" ":" ",n=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,tl,il):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ze=!1;function eo(t){Ze=t}var _t;function hi(t){if(t===null)throw Ps(),jr;return _t=t}function Oi(){return hi(Do(_t))}function h(t){if(Ze){if(Do(_t)!==null)throw Ps(),jr;_t=t}}function we(t=1){if(Ze){for(var e=t,i=_t;e--;)i=Do(i);_t=i}}function ea(){for(var t=0,e=_t;;){if(e.nodeType===jn){var i=e.data;if(i===Gs){if(t===0)return e;t-=1}else(i===Ts||i===Es)&&(t+=1)}var o=Do(e);e.remove(),e=o}}function Oc(t){if(!t||t.nodeType!==jn)throw Ps(),jr;return t.data}function Cg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Za(this[a])===r){Bc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Za(this[a])===r){Bc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Za(this[a])===r){Bc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ta,Sg,jl,Tg,Eg;function Dc(){if(ta===void 0){ta=window,Sg=document,jl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Tg=on(e,"firstChild").get,Eg=on(e,"nextSibling").get,mp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),mp(i)&&(i.__t=void 0),Pe&&(t.__svelte_meta=null,Cg())}}function _n(t=""){return document.createTextNode(t)}function bi(t){return Tg.call(t)}function Do(t){return Eg.call(t)}function _(t,e){if(!Ze)return bi(t);var i=bi(_t);if(i===null)i=_t.appendChild(_n());else if(e&&i.nodeType!==qa){var o=_n();return i==null||i.before(o),hi(o),o}return hi(i),i}function fe(t,e){var n,r;if(!Ze){var i=bi(t);return i.nodeType===8&&i.data===""?Do(i):i}if(e&&((n=_t)==null?void 0:n.nodeType)!==qa){var o=_n();return(r=_t)==null||r.before(o),hi(o),o}return _t}function P(t,e=1,i=!1){let o=Ze?_t:t;for(var n;e--;)n=o,o=Do(o);if(!Ze)return o;if(i&&(o==null?void 0:o.nodeType)!==qa){var r=_n();return o===null?n==null||n.after(r):o.before(r),hi(r),r}return hi(o),o}function Yl(t){t.textContent=""}function Ep(t){ht===null&&It===null&&sg(t),It!==null&&(It.f&256)!==0&&ht===null&&rg(),cs&&ng(t)}function Y0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ia(t,e,i,o=!0){var a;var n=ht;if(Pe)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var r={ctx:Rt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Pe&&(r.component_function=Yn),i)try{el(r),r.f|=32768}catch(p){throw Bi(r),p}else e!==null&&Gl(r);var l=i&&r.deps===null&&r.first===null&&r.nodes_start===null&&r.teardown===null&&(r.f&1048704)===0;if(!l&&o&&(n!==null&&Y0(r,n),It!==null&&(It.f&2)!==0)){var d=It;((a=d.effects)!=null?a:d.effects=[]).push(r)}return r}function No(t){let e=ia(8,null,!1);return hn(e,1024),e.teardown=t,e}function Ue(t){var n;Ep("$effect");var e=ht!==null&&(ht.f&32)!==0&&Rt!==null&&!Rt.m;if(Pe&&Xi(t,"name",{value:"$effect"}),e){var i=Rt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:ht,reaction:It})}else{var o=xo(t);return o}}function Jl(t){return Ep("$effect.pre"),Pe&&Xi(t,"name",{value:"$effect.pre"}),Ho(t)}function Uc(t){let e=ia(64,t,!0);return()=>{Bi(e)}}function kg(t){let e=ia(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Bn(e,()=>{Bi(e),o(void 0)}):(Bi(e),o(void 0))})}function xo(t){return ia(4,t,!1)}function Ho(t){return ia(8,t,!0)}function O(t,e=[],i=kr){if(Pe)return Ho(()=>{var n=ht,r=()=>t(...l.map(s));Xi(n.fn,"name",{value:"{expression}"}),Xi(r,"name",{value:"{expression}"});let l=e.map(i);Di(r)});let o=e.map(i);return Di(()=>t(...o.map(s)))}function Di(t,e=0){return ia(24|e,t,!0)}function Mi(t,e=!0){return ia(40,t,!0,e)}function Ip(t){var e=t.teardown;if(e!==null){let i=cs,o=It;Sp(!0),Ni(null);try{e.call(null)}finally{Sp(i),Ni(o)}}}function kp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Bi(i,e),i=o}}function Pg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Bi(e),e=i}}function Bi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Pp(t.nodes_start,t.nodes_end),i=!0),kp(t,e&&!i),ed(t,0),hn(t,16384);var o=t.transitions;if(o!==null)for(let r of o)r.stop();Ip(t);var n=t.parent;n!==null&&n.first!==null&&Ap(t),Pe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pp(t,e){for(;t!==null;){var i=t===e?null:Do(t);t.remove(),t=i}}function Ap(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Bn(t,e){var i=[];zc(t,i,!0),Mp(i,()=>{Bi(t),e&&e()})}function Mp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function zc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;zc(o,e,r?i:!1),o=n}}}function fs(t){Ag(t,!0)}function Ag(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Ag(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}var td=[],Lp=[];function Mg(){var t=td;td=[],ks(t)}function Z0(){var t=Lp;Lp=[],ks(t)}function bn(t){td.length===0&&queueMicrotask(Mg),td.push(t)}function Lg(){td.length>0&&Mg(),Lp.length>0&&Z0()}function Rg(t){var e=ht;if(Pe&&t instanceof Error&&X0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else id(t,e)}function id(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var Vg=new WeakSet;function X0(t,e){var l,d;if(Vg.has(t))return;Vg.add(t);let i=on(t,"message");if(!(i&&!i.configurable)){for(var o=jl?" ":" ",n=`
38
38
  ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,r=e.ctx;r!==null;)n+=`
39
- ${o}in ${(d=r.function)==null?void 0:d[Ln].split("/").pop()}`,r=r.p;eo(t,"message",{value:t.message+`
39
+ ${o}in ${(d=r.function)==null?void 0:d[Ln].split("/").pop()}`,r=r.p;Xi(t,"message",{value:t.message+`
40
40
  ${n}
41
- `}),t.stack&&eo(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&Xi(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var oa=!1,ol=null,na=!1,cs=!1;function Sp(t){cs=t}var od=[],nd=[],Tt=null,Jn=!1;function Ni(t){Tt=t}var vt=null;function to(t){vt=t}var Ho=null;function Nc(t){Tt!==null&&Tt.f&2097152&&(Ho===null?Ho=[Tt,[t]]:Ho[1].push(t))}var $n=null,er=0,Xn=null;function bg(t){Xn=t}var Og=1,qc=0,us=!1,Kc=null;function Kl(){return++Og}function Js(t){var v,u;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,r,l=(e&512)!==0,d=o&&vt!==null&&!us,a=i.length;if(l||d){var p=t,f=p.parent;for(n=0;n<a;n++)r=i[n],(l||!((v=r==null?void 0:r.reactions)!=null&&v.includes(p)))&&((u=r.reactions)!=null?u:r.reactions=[]).push(p);l&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<a;n++)if(r=i[n],Js(r)&&Cp(r),r.wv>t.wv)return!0}(!o||vt!==null&&!us)&&hn(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];Ho!=null&&Ho[1].includes(t)&&Ho[0]===Tt||((r.f&2)!==0?Dg(r,e,!1):e===r&&(i?hn(r,2048):(r.f&1024)!==0&&hn(r,4096),Gl(r)))}}function Rc(t){var $,w;var e=$n,i=er,o=Xn,n=Tt,r=us,l=Ho,d=Nt,a=Jn,p=t.f;$n=null,er=0,Xn=null,us=(p&256)!==0&&(Jn||!na||Tt===null),Tt=(p&96)===0?t:null,Ho=null,zl(t.ctx),Jn=!1,qc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if($n!==null){var u;if(ed(t,er),v!==null&&er>0)for(v.length=er+$n.length,u=0;u<$n.length;u++)v[er+u]=$n[u];else t.deps=v=$n;if(!us||(p&2)!==0&&t.reactions!==null)for(u=er;u<v.length;u++)((w=($=v[u]).reactions)!=null?w:$.reactions=[]).push(t)}else v!==null&&er<v.length&&(ed(t,er),v.length=er);if(Xr()&&Xn!==null&&!Jn&&v!==null&&(t.f&6146)===0)for(u=0;u<Xn.length;u++)Dg(Xn[u],t);return n!==null&&n!==t&&(qc++,Xn!==null&&(o===null?o=Xn:o.push(...Xn))),f}catch(y){Rg(y)}finally{$n=e,er=i,Xn=o,Tt=n,us=r,Ho=l,zl(d),Jn=a,t.f^=2097152}}function X0(t,e){let i=e.reactions;if(i!==null){var o=Xv.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&($n===null||!$n.includes(e))&&(hn(e,4096),(e.f&768)===0&&(e.f^=512),Vc(e),ed(e,0))}function ed(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)X0(t,i[o])}function el(t){var e=t.f;if((e&16384)===0){hn(t,1024);var i=vt,o=na;if(vt=t,na=!0,Pe){var n=Yn;Wl(t.component_function)}try{(e&16)!==0?Pg(t):kp(t),Ip(t);var r=Rc(t);if(t.teardown=typeof r=="function"?r:null,t.wv=Og,Pe&&Zr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Kl(),l.set_during_effect=!1);Pe&&nd.push(t)}finally{na=o,vt=i,Pe&&Wl(n)}}}function Ng(){console.error("Last ten effects were: ",nd.slice(-10).map(t=>t.fn)),nd=[]}function J0(){try{ag()}catch(t){if(Pe&&eo(t,"stack",{value:""}),ol!==null)if(Pe)try{id(t,ol)}catch(e){throw Ng(),e}else id(t,ol);else throw Pe&&Ng(),t}}function Rp(){var t=na;try{var e=0;for(na=!0;od.length>0;){e++>1e3&&J0();var i=od,o=i.length;od=[];for(var n=0;n<o;n++){var r=t_(i[n]);e_(r)}Xa.clear()}}finally{oa=!1,na=t,ol=null,Pe&&(nd=[])}}function e_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Js(o)&&(el(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Ap(o):o.fn=null))}}function Gl(t){oa||(oa=!0,queueMicrotask(Rp));for(var e=ol=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}od.push(e)}function t_(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,r=n&&(o&1024)!==0;if(!r&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:Js(i)&&el(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function nl(t){var e;for(t&&(oa=!0,Rp(),oa=!0,e=t());;){if(Lg(),od.length===0)return oa=!1,ol=null,Pe&&(nd=[]),e;oa=!0,Rp()}}async function So(){await Promise.resolve(),nl()}function s(t){var e=t.f,i=(e&2)!==0;if(Kc!==null&&Kc.add(t),Tt!==null&&!Jn){if(!(Ho!=null&&Ho[1].includes(t))||Ho[0]!==Tt){var o=Tt.deps;t.rv<qc&&(t.rv=qc,$n===null&&o!==null&&o[er]===t?er++:$n===null?$n=[t]:(!us||!$n.includes(t))&&$n.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&(r.f&256)===0&&(n.f^=256)}if(i&&(n=t,Js(n)&&Cp(n)),Pe&&Zr&&!Jn&&Ul!==null&&Tt!==null&&Ul.reaction===Tt)if(t.trace)t.trace();else{var l=ds("TracedAt");if(l){var d=Ul.entries.get(t);d===void 0&&(d={traces:[]},Ul.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return cs&&Xa.has(t)?Xa.get(t):t.v}function xt(t){var e=Jn;try{return Jn=!0,t()}finally{Jn=e}}var i_=-7169;function hn(t,e){t.f=t.f&i_|e}function Gc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Bo in t)Qc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Bo in i&&Qc(i)}}}function Qc(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Qc(t[o],e)}catch(n){}let i=js(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=kc(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}function Np(t,e){if(e){let i=document.body;t.autofocus=!0,bn(()=>{document.activeElement===i&&t.focus()})}}function rd(t){var e=Tt,i=vt;Ni(null),to(null);try{return t()}finally{Ni(e),to(i)}}var Bp=new Set,jc=new Set;function ra(t){if(!Ze)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Op(t,e,i,o={}){function n(r){if(o.capture||rl.call(e,r),!r.cancelBubble)return rd(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?bn(()=>{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=Op(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Oo(()=>{e.removeEventListener(t,l,r)})}function pt(t){for(var e=0;e<t.length;e++)Bp.add(t[e]);for(var i of jc)i(t)}function rl(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 p=n.indexOf(e);if(p===-1)return;a<=p&&(l=a)}if(r=n[l]||t.target,r!==e){eo(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=Tt,v=vt;Ni(null),to(null);try{for(var u,$=[];r!==null;){var w=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!=null&&(!r.disabled||t.target===r))if(Gn(y)){var[S,...T]=y;S.apply(r,[t,...T])}else y.call(r,t)}catch(A){u?$.push(A):u=A}if(t.cancelBubble||w===e||w===null)break;r=w}if(u){for(let A of $)queueMicrotask(()=>{throw A});throw u}}finally{t.__root=e,delete t.currentTarget,Ni(f),to(v)}}}var n_;function Hg(){n_=void 0}function sl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function To(t,e){var i=vt;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 To(gt,null),gt;n===void 0&&(n=sl(r?t:"<!>"+t),i||(n=_i(n)));var l=o||jl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=_i(l),a=l.lastChild;To(d,a)}else To(l,l);return l}}function a_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Ze)return To(gt,null),gt;if(!l){var d=sl(r),a=_i(d);if(n)for(l=document.createDocumentFragment();_i(a);)l.appendChild(_i(a));else l=_i(a)}var p=l.cloneNode(!0);if(n){var f=_i(p),v=p.lastChild;To(f,v)}else To(p,p);return p}}function Ce(t,e){return a_(t,e,"svg")}function es(t=""){if(!Ze){var e=_n(t+"");return To(e,e),e}var i=gt;return i.nodeType!==qa&&(i.before(i=_n()),gi(i)),To(i,i),i}function Ue(){if(Ze)return To(gt,null),gt;var t=document.createDocumentFragment(),e=document.createComment(""),i=_n();return t.append(e,i),To(e,i),t}function b(t,e){if(Ze){vt.nodes_end=gt,Oi();return}t!==null&&t.before(e)}var l_=/\r/g;function Ug(t){t=t.replace(l_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function zg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var d_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Wg(t){return d_.includes(t)}var c_=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var u_={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function qg(t){var e;return t=t.toLowerCase(),(e=u_[t])!=null?e:t}var Q6=[...c_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var p_=["touchstart","touchmove"];function Kg(t){return p_.includes(t)}var f_=["$state","$state.raw","$derived","$derived.by"],G6=[...f_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var m_=["textarea","script","style","title"];function Qg(t){return m_.includes(t)}function Yc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var sd=!0;function Zc(t){sd=t}function $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 ts(t,e){return Gg(t,e)}function Hp(t,e){var l;Dc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Ze,n=gt;try{for(var r=_i(i);r&&(r.nodeType!==jn||r.data!==Ts);)r=Fo(r);if(!r)throw jr;io(!0),gi(r),Oi();let d=Gg(t,{...e,anchor:r});if(gt===null||gt.nodeType!==jn||gt.data!==Gs)throw Ps(),jr;return io(!1),d}catch(d){if(d===jr)return e.recover===!1&&lg(),Dc(),Yl(i),io(!1),ts(t,e);throw d}finally{io(o),gi(n),Hg()}}var al=new Map;function Gg(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){Dc();var d=new Set,a=v=>{for(var u=0;u<v.length;u++){var $=v[u];if(!d.has($)){d.add($);var w=Kg($);e.addEventListener($,rl,{passive:w});var y=al.get($);y===void 0?(document.addEventListener($,rl,{passive:w}),al.set($,1)):al.set($,y+1)}}};a(Fl(Bp)),jc.add(a);var p=void 0,f=kg(()=>{var v=i!=null?i:e.appendChild(_n());return Ai(()=>{if(r){H({});var u=Nt;u.c=r}n&&(o.$$events=n),Ze&&To(v,null),sd=l,p=t(v,o)||{},sd=!0,Ze&&(vt.nodes_end=gt),r&&F()}),()=>{var w;for(var u of d){e.removeEventListener(u,rl);var $=al.get(u);--$===0?(document.removeEventListener(u,rl),al.delete(u)):al.set(u,$)}jc.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return Dp.set(p,f),p}var Dp=new WeakMap;function sa(t,e){let i=Dp.get(t);return i?(Dp.delete(t),i(e)):(Pe&&xg(),Promise.resolve())}function be(t,e,...i){var o=t,n=re,r;Di(()=>{n!==(n=e())&&(r&&(Bi(r),r=null),Pe&&n==null&&dg(),r=Ai(()=>n(o,...i)))},65536),Ze&&(o=gt)}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;pg(e)},set:o=>{i=o}})}};__=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var __;function Ot(t){Nt===null&&Ga("onMount"),Yr&&Nt.l!==null?h_(Nt).m.push(t):We(()=>{let e=xt(t);if(typeof e=="function")return e})}function On(t){Nt===null&&Ga("onDestroy"),Ot(()=>()=>xt(t))}function h_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var jg=new Map;function Yg(t,e){var i=jg.get(t);i||(i=new Set,jg.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){Ze&&i===0&&Oi();var n=t,r=null,l=null,d=Wi,a=i>0?65536:0,p=!1;let f=(u,$=!0)=>{p=!0,v($,u)},v=(u,$)=>{if(d===(d=u))return;let w=!1;if(Ze&&o!==-1){if(i===0){let S=Oc(n);S===Ts?o=0:S===Es?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=ea(),gi(n),io(!1),w=!0,o=-1)}d?(r?fs(r):$&&(r=Ai(()=>$(n))),l&&Bn(l,()=>{l=null})):(l?fs(l):$&&(l=Ai(()=>$(n,[i+1,o]))),r&&Bn(r,()=>{r=null})),w&&io(!0)};Di(()=>{p=!1,e(f),p||v(null,null)},a),Ze&&(n=gt)}function aa(t,e,i){Ze&&Oi();var o=t,n=Wi,r,l=Xr()?ig:Ka;Di(()=>{l(n,n=e())&&(r&&Bn(r),r=Ai(()=>i(o)))}),Ze&&(o=gt)}var Ms=null;function zp(t){Ms=t}function ad(t,e){return e}function y_(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)zc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Yl(a),a.append(i),o.clear(),As(t,e[0].prev,e[r-1].next)}Mp(n,()=>{for(var p=0;p<r;p++){var f=e[p];d||(o.delete(f.k),As(t,f.prev,f.next)),Bi(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 p=t;l=Ze?gi(_i(p)):p.appendChild(_n())}Ze&&Oi();var f=null,v=!1,u=Pr(()=>{var $=i();return Gn($)?$:$==null?[]:Fl($)});Di(()=>{var $=s(u),w=$.length;if(v&&w===0)return;v=w===0;let y=!1;if(Ze){var S=Oc(l)===Es;S!==(w===0)&&(l=ea(),gi(l),io(!1),y=!0)}if(Ze){for(var T=null,I,A=0;A<w;A++){if(gt.nodeType===jn&&gt.data===Gs){l=gt,y=!0,io(!1);break}var k=$[A],E=o(k,A);I=Jg(gt,d,T,null,k,E,A,n,e,i),d.items.set(E,I),T=I}w>0&&gi(ea())}Ze||x_($,d,l,n,e,o,i),r!==null&&(w===0?f?fs(f):f=Ai(()=>r(l)):f!==null&&Bn(f,()=>{f=null})),y&&io(!0),s(u)}),Ze&&(l=gt)}function x_(t,e,i,o,n,r,l){var le,ve,Ie,me;var d=(n&8)!==0,a=(n&3)!==0,p=t.length,f=e.items,v=e.first,u=v,$,w=null,y,S=[],T=[],I,A,k,E;if(d)for(E=0;E<p;E+=1)I=t[E],A=r(I,E),k=f.get(A),k!==void 0&&((le=k.a)==null||le.measure(),(y!=null?y:y=new Set).add(k));for(E=0;E<p;E+=1){if(I=t[E],A=r(I,E),k=f.get(A),k===void 0){var R=u?u.e.nodes_start:i;w=Jg(R,e,w,w===null?e.first:w.next,I,A,E,o,n,l),f.set(A,w),S=[],T=[],u=w.next;continue}if(a&&w_(k,I,E,n),(k.e.f&8192)!==0&&(fs(k.e),d&&((ve=k.a)==null||ve.unfix(),(y!=null?y:y=new Set).delete(k))),k!==u){if($!==void 0&&$.has(k)){if(S.length<T.length){var G=T[0],q;w=G.prev;var W=S[0],Q=S[S.length-1];for(q=0;q<S.length;q+=1)Zg(S[q],G,i);for(q=0;q<T.length;q+=1)$.delete(T[q]);As(e,W.prev,Q.next),As(e,w,W),As(e,Q,G),u=G,w=Q,E-=1,S=[],T=[]}else $.delete(k),Zg(k,u,i),As(e,k.prev,k.next),As(e,k,w===null?e.first:w.next),As(e,w,k),w=k;continue}for(S=[],T=[];u!==null&&u.k!==A;)(u.e.f&8192)===0&&($!=null?$:$=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;k=u}S.push(k),w=k,u=k.next}if(u!==null||$!==void 0){for(var X=$===void 0?[]:Fl($);u!==null;)(u.e.f&8192)===0&&X.push(u),u=u.next;var Y=X.length;if(Y>0){var de=(n&4)!==0&&p===0?i:null;if(d){for(E=0;E<Y;E+=1)(Ie=X[E].a)==null||Ie.measure();for(E=0;E<Y;E+=1)(me=X[E].a)==null||me.fix()}y_(e,X,de,f)}}d&&bn(()=>{var se;if(y!==void 0)for(k of y)(se=k.a)==null||se.apply()}),vt.first=e.first&&e.first.e,vt.last=w&&w.e}function w_(t,e,i,o){(o&1)!==0&&Ja(t.v,e),(o&2)!==0?Ja(t.i,i):t.i=i}function Jg(t,e,i,o,n,r,l,d,a,p){var f=Ms,v=(a&1)!==0,u=(a&16)===0,$=v?u?Jr(n,!1,!1):pr(n):n,w=(a&2)===0?l:pr(l);Pe&&v&&($.trace=()=>{var S=typeof w=="number"?l:w.v;p()[S]});var y={i:w,v:$,k:r,a:null,e:null,prev:i,next:o};Ms=y;try{return y.e=Ai(()=>d(t,$,w,p),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 Zg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Fo(r);n.before(r),r=l}}function As(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function C_(t,e,i){var r,l;if(!e||e===Ug(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Yn)!=null&&l[Ln]&&(o=`in ${Yn[Ln]}`),yg(Yc(o))}function ld(t,e,i=!1,o=!1,n=!1){var r=t,l="";O(()=>{var $;var d=vt;if(l===(l=($=e())!=null?$:"")){Ze&&Oi();return}if(d.nodes_start!==null&&(Pp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Ze){for(var a=gt.data,p=Oi(),f=p;p!==null&&(p.nodeType!==jn||p.data!=="");)f=p,p=Fo(p);if(p===null)throw Ps(),jr;Pe&&!n&&C_(p.parentNode,a,l),To(gt,f),r=gi(p);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var u=sl(v);if((i||o)&&(u=_i(u)),To(_i(u),u.lastChild),i||o)for(;_i(u);)r.before(_i(u));else r.before(u)}})}function Ci(t,e,i){Ze&&Oi();var o=t,n,r;Di(()=>{n!==(n=e())&&(r&&(Bn(r),r=null),n&&(r=Ai(()=>i(o,n))))},65536),Ze&&(o=gt)}function la(t,e,i,o,n,r){var w;let l=Ze;Ze&&Oi();var d=Pe&&r&&((w=Nt)==null?void 0:w.function[Ln]),a,p,f=null;Ze&&gt.nodeType===Ac&&(f=gt,Oi());var v=Ze?gt:t,u,$=Ms;Di(()=>{let y=e()||null;var S=n?n():i||y==="svg"?Ec:null;if(y!==a){var T=Ms;zp($),u&&(y===null?Bn(u,()=>{u=null,p=null}):y===p?fs(u):(Bi(u),Zc(!1))),y&&y!==p&&(u=Ai(()=>{if(f=Ze?f:S?document.createElementNS(S,y):document.createElement(y),Pe&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),To(f,f),o){Ze&&Qg(y)&&f.append(document.createComment(""));var I=Ze?_i(f):f.appendChild(_n());Ze&&(I===null?io(!1):gi(I)),o(f,I)}vt.nodes_end=f,v.before(f)})),a=y,a&&(p=a),Zc(!0),zp(T)}},65536),l&&(io(!0),gi(v))}var qp;function eh(t){return qp=t.target,new Wp(t)}var ms,fr,Wp=class{constructor(e){Ss(this,ms);Ss(this,fr);var r,l;var i=new Map,o=(d,a)=>{var p=Jr(a,!1,!1);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var p;return s((p=i.get(a))!=null?p:o(a,Reflect.get(d,a)))},has(d,a){var p;return a===Wa?!0:(s((p=i.get(a))!=null?p:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,p){var f;return B((f=i.get(a))!=null?f:o(a,p),p),Reflect.set(d,a,p)}});za(this,fr,(e.hydrate?Hp:ts)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&nl(),za(this,ms,n.$$events);for(let d of Object.keys(Pi(this,fr)))d==="$set"||d==="$destroy"||d==="$on"||eo(this,d,{get(){return Pi(this,fr)[d]},set(a){Pi(this,fr)[d]=a},enumerable:!0});Pi(this,fr).$set=d=>{Object.assign(n,d)},Pi(this,fr).$destroy=()=>{sa(Pi(this,fr))}}$set(e){Pi(this,fr).$set(e)}$on(e,i){Pi(this,ms)[e]=Pi(this,ms)[e]||[];let o=(...n)=>i.call(this,...n);return Pi(this,ms)[e].push(o),()=>{Pi(this,ms)[e]=Pi(this,ms)[e].filter(n=>n!==o)}}$destroy(){Pi(this,fr).$destroy()}};ms=new WeakMap,fr=new WeakMap;function z(t,e){bn(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=qp)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Pe&&Yg(e.hash,d)}})}function vs(t,e){var i=void 0,o;Di(()=>{i!==(i=e())&&(o&&(Bi(o),o=null),i&&(o=Ai(()=>{Co(()=>i(t))})))})}function th(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=th(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ih(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=th(t))&&(o&&(o+=" "),o+=e);return o}function dd(t){return typeof t=="object"?ih(t):t!=null?t:""}var oh=[...`
44
- \r\f\xA0\v\uFEFF`];function rh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var r=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+r;(l===0||oh.includes(o[l-1]))&&(d===o.length||oh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function nh(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var r=t[n];r!=null&&r!==""&&(o+=" "+n+": "+r+i)}return o}function Kp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function sh(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var r=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(Kp)),n&&a.push(...Object.keys(n).map(Kp));var p=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var u=t[v];if(d?u==="/"&&t[v-1]==="*"&&(d=!1):r?r===u&&(r=!1):u==="/"&&t[v+1]==="*"?d=!0:u==='"'||u==="'"?r=u:u==="("?l++:u===")"&&l--,!d&&r===!1&&l===0){if(u===":"&&f===-1)f=v;else if(u===";"||v===y-1){if(f!==-1){var $=Kp(t.substring(p,f).trim());if(!a.includes($)){u!==";"&&v++;var w=t.substring(p,v).trim();i+=" "+w+";"}}p=v+1,f=-1}}}}return o&&(i+=nh(o)),n&&(i+=nh(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ie(t,e,i,o,n,r){var l=t.__className;if(Ze||l!==i||l===void 0){var d=rh(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 p=!!r[a];(n==null||p!==!!n[a])&&t.classList.toggle(a,p)}return r}function Qp(t,e={},i,o){for(var n in i){var r=i[n];e[n]!==r&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,r,o))}}function dt(t,e,i,o){var n=t.__style;if(Ze||n!==e){var r=sh(e,o);(!Ze||r!==t.getAttribute("style"))&&(r==null?t.removeAttribute("style"):t.style.cssText=r),t.__style=e}else o&&(Array.isArray(o)?(Qp(t,i==null?void 0:i[0],o[0]),Qp(t,i==null?void 0:i[1],o[1],"important")):Qp(t,i,o));return o}function cd(t,e,i){if(t.multiple){if(e==null)return;if(!Gn(e))return wg();for(var o of t.options)o.selected=e.includes(ah(o));return}for(o of t.options){var n=ah(o);if(bp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Gp(t){var e=new MutationObserver(()=>{cd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Oo(()=>{e.disconnect()})}function ah(t){return"__value"in t?t.__value:t.value}var ll=Symbol("class"),dl=Symbol("style"),ch=Symbol("is custom element"),uh=Symbol("is html");function ph(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=mh(t);if(Ze&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||M_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[tg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&vh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function fh(t,e,i,o,n=!1){var k;var r=mh(t),l=r[ch],d=!r[uh];let a=Ze&&l;a&&io(!1);var p=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=dd(i.class):(o||i[ll])&&(i.class=null),i[dl]&&((k=i.style)!=null||(i.style=null));var u=vh(t);for(let E in i){let R=i[E];if(f&&E==="value"&&R==null){t.value=t.__value="",p[E]=R;continue}if(E==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";ie(t,$,R,o,e==null?void 0:e[ll],i[ll]),p[E]=R,p[ll]=i[ll];continue}if(E==="style"){dt(t,R,e==null?void 0:e[dl],i[dl]),p[E]=R,p[dl]=i[dl];continue}var w=p[E];if(!(R===w&&!(R===void 0&&t.hasAttribute(E)))){p[E]=R;var y=E[0]+E[1];if(y!=="$$")if(y==="on"){let G={},q="$$"+E,W=E.slice(2);var S=Wg(W);if(zg(W)&&(W=W.slice(0,-7),G.capture=!0),!S&&w){if(R!=null)continue;t.removeEventListener(W,p[q],G),p[q]=null}if(R!=null)if(S)t[`__${W}`]=R,pt([W]);else{let Q=function(X){p[E].call(this,X)};var A=Q;p[q]=Op(W,t,Q,G)}else S&&(t[`__${W}`]=void 0)}else if(E==="style")De(t,E,R);else if(E==="autofocus")Np(t,!!R);else if(!l&&(E==="__value"||E==="value"&&R!=null))t.value=t.__value=R;else if(E==="selected"&&f)ph(t,R);else{var T=E;d||(T=qg(T));var I=T==="defaultValue"||T==="defaultChecked";if(R==null&&!l&&!I)if(r[E]=null,T==="value"||T==="checked"){let G=t,q=e===void 0;if(T==="value"){let W=G.defaultValue;G.removeAttribute(T),G.defaultValue=W,G.value=G.__value=q?W:null}else{let W=G.defaultChecked;G.removeAttribute(T),G.defaultChecked=W,G.checked=q?W:!1}}else t.removeAttribute(E);else I||u.includes(T)&&(l||typeof R!="string")?t[T]=R:typeof R!="function"&&De(t,T,R,n)}}}return a&&io(!0),p}function ke(t,e,i=[],o,n=!1,r=kr){let l=i.map(r);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(Di(()=>{var u=e(...l.map(s)),$=fh(t,d,u,o,n);f&&p&&"value"in u&&cd(t,u.value,!1);for(let y of Object.getOwnPropertySymbols(a))u[y]||Bi(a[y]);for(let y of Object.getOwnPropertySymbols(u)){var w=u[y];y.description===up&&(!d||w!==d[y])&&(a[y]&&Bi(a[y]),a[y]=Ai(()=>vs(t,()=>w))),$[y]=w}d=$}),p){var v=t;Co(()=>{cd(v,d.value),Gp(v)})}f=!0}function mh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[ch]:t.nodeName.includes("-"),[uh]:t.namespaceURI===Gv}}var lh=new Map;function vh(t){var e=lh.get(t.nodeName);if(e)return e;lh.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=kc(o);for(var r in i)i[r].set&&e.push(r);o=js(o)}return e}function M_(t,e,i){var o;Pe&&(e==="srcset"&&L_(t,i)||jp((o=t.getAttribute(e))!=null?o:"",i)||$g(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function jp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function dh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function L_(t,e){var i=dh(t.srcset),o=dh(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(jp(i[l][0],n)||jp(n,i[l][0])))}var V_=Ic?()=>performance.now():()=>Date.now(),Lr={tick:t=>(Ic?requestAnimationFrame:re)(t),now:()=>V_(),tasks:new Set};function gh(){let t=Lr.now();Lr.tasks.forEach(e=>{e.c(t)||(Lr.tasks.delete(e),e.f())}),Lr.tasks.size!==0&&Lr.tick(gh)}function hh(t){let e;return Lr.tasks.size===0&&Lr.tick(gh),{promise:new Promise(i=>{Lr.tasks.add(e={c:t,f:i})}),abort(){Lr.tasks.delete(e)}}}function Xc(t,e){rd(()=>{t.dispatchEvent(new CustomEvent(e))})}function O_(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function _h(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=O_(n.trim());e[l]=r.trim()}return e}var D_=t=>t;function Zp(t,e,i,o){var A;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",p,f=e.inert,v=e.style.overflow,u,$;function w(){var R;var k=Tt,E=vt;Ni(null),to(null);try{return p!=null?p:p=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:a})}finally{Ni(k),to(E)}}var y={is_global:d,in(){var k;if(e.inert=f,!n){$==null||$.abort(),(k=$==null?void 0:$.reset)==null||k.call($);return}r||u==null||u.abort(),Xc(e,"introstart"),u=Yp(e,w(),$,1,()=>{Xc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=v})},out(k){if(!r){k==null||k(),p=void 0;return}e.inert=!0,Xc(e,"outrostart"),$=Yp(e,w(),u,0,()=>{Xc(e,"outroend"),k==null||k()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},S=vt;if(((A=S.transitions)!=null?A:S.transitions=[]).push(y),n&&sd){var T=d;if(!T){for(var I=S.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&Co(()=>{xt(()=>y.in())})}}function Yp(t,e,i,o,n){var r=o===1;if(Is(e)){var l,d=!1;return bn(()=>{if(!d){var S=e({direction:r?"in":"out"});l=Yp(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:re,deactivate:re,reset:re,t:()=>o};let{delay:a=0,css:p,tick:f,easing:v=D_}=e;var u=[];if(r&&i===void 0&&(f&&f(0,1),p)){var $=_h(p(0,1));u.push($,$)}var w=()=>1-o,y=t.animate(u,{duration:a,fill:"forwards"});return y.onfinish=()=>{var W;y.cancel();var S=(W=i==null?void 0:i.t())!=null?W:1-o;i==null||i.abort();var T=o-S,I=e.duration*Math.abs(T),A=[];if(I>0){var k=!1;if(p)for(var E=Math.ceil(I/16.666666666666668),R=0;R<=E;R+=1){var G=S+T*v(R/E),q=_h(p(G,1-G));A.push(q),k||(k=q.overflow==="hidden")}k&&(t.style.overflow="hidden"),w=()=>{var Q=y.currentTime;return S+T*v(Q/I)},f&&hh(()=>{if(y.playState!=="running")return!1;var Q=w();return f(Q,1-Q),!0})}y=t.animate(A,{duration:I,fill:"forwards"}),y.onfinish=()=>{w=()=>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:()=>w()}}var Ls,cl,ud,eu,bh,tu=class tu{constructor(e){Ss(this,eu);Ss(this,Ls,new WeakMap);Ss(this,cl);Ss(this,ud);za(this,ud,e)}observe(e,i){var o=Pi(this,Ls).get(e)||new Set;return o.add(i),Pi(this,Ls).set(e,o),Kv(this,eu,bh).call(this).observe(e,Pi(this,ud)),()=>{var n=Pi(this,Ls).get(e);n.delete(i),n.size===0&&(Pi(this,Ls).delete(e),Pi(this,cl).unobserve(e))}}};Ls=new WeakMap,cl=new WeakMap,ud=new WeakMap,eu=new WeakSet,bh=function(){var e;return(e=Pi(this,cl))!=null?e:za(this,cl,new ResizeObserver(i=>{for(var o of i){tu.entries.set(o.target,o);for(var n of Pi(this,Ls).get(o.target)||[])n(o)}}))},Qn(tu,"entries",new WeakMap);var Xp=tu;var H_=new Xp({box:"border-box"});function is(t,e,i){var o=H_.observe(t,()=>i(t[e]));Co(()=>(xt(()=>i(t[e])),o))}function $h(t,e){return t===e||(t==null?void 0:t[Bo])===e}function st(t={},e,i,o){return Co(()=>{var n,r;return Uo(()=>{n=r,r=(o==null?void 0:o())||[],xt(()=>{t!==i(...r)&&(e(t,...r),n&&$h(i(...n),t)&&e(null,...n))})}),()=>{bn(()=>{r&&$h(i(...r),t)&&e(null,...r)})}}),t}function Vr(t=!1){let e=Nt,i=e.l.u;if(!i)return;let o=()=>Gc(e.s);if(t){let n=0,r={},l=kr(()=>{let d=!1,a=e.s;for(let p in a)a[p]!==r[p]&&(r[p]=a[p],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Jl(()=>{yh(e,o),ks(i.b)}),We(()=>{let n=xt(()=>i.m.map(eg));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&We(()=>{yh(e,o),ks(i.a)})}function yh(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function pd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),re;let o=xt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var ul=[];function mr(t,e){return{subscribe:ne(t,e).subscribe}}function ne(t,e=re){let i=null,o=new Set;function n(d){if(Ka(t,d)&&(t=d,i)){let a=!ul.length;for(let p of o)p[1](),ul.push(p,t);if(a){for(let p=0;p<ul.length;p+=2)ul[p][0](ul[p+1]);ul.length=0}}}function r(d){n(d(t))}function l(d,a=re){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,r)||re),d(t),()=>{o.delete(p),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 mr(i,(l,d)=>{let a=!1,p=[],f=0,v=re,u=()=>{if(f)return;v();let w=e(o?p[0]:p,l,d);r?l(w):v=typeof w=="function"?w:re},$=n.map((w,y)=>pd(w,S=>{p[y]=S,f&=~(1<<y),a&&u()},()=>{f|=1<<y}));return a=!0,u(),function(){ks($),v(),a=!1}})}function ye(t){let e;return pd(t,i=>e=i)(),e}var iu=!1,Jp=Symbol();function C(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:Jr(void 0),unsubscribe:re};if(o.store!==t&&!(Jp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=re;else{var n=!0;o.unsubscribe=pd(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&Jp in i?ye(t):s(o.source)}function Oe(){let t={};function e(){Oo(()=>{for(var i in t)t[i].unsubscribe();eo(t,Jp,{enumerable:!1,value:!0})})}return[t,e]}function ef(t){var e=iu;try{return iu=!1,[t(),iu]}finally{iu=e}}var Q_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&ug(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Me(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},Q_)}var G_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Is(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Is(n)&&(n=n());let r=nn(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=nn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Bo||e===Wa)return!1;for(let i of t.props)if(Is(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Is(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function gs(...t){return new Proxy({props:t},G_)}function xh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var G,q;var n=(i&1)!==0,r=!Yr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=ef(()=>t[e]):p=t[e];var f=Bo in t||Wa in t,v=l&&((q=(G=nn(t,e))==null?void 0:G.set)!=null?q:f&&e in t&&(W=>t[e]=W))||void 0,u=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?u=xt(o):u=o),u);p===void 0&&o!==void 0&&(v&&r&&cg(e),p=y(),v&&v(p));var S;if(r)S=()=>{var W=t[e];return W===void 0?y():($=!0,w=!1,W)};else{var T=(n?kr:Pr)(()=>t[e]);T.f|=131072,S=()=>{var W=s(T);return W!==void 0&&(u=void 0),W===void 0?u:W}}if((i&4)===0&&r)return S;if(v){var I=t.$$legacy;return function(W,Q){return arguments.length>0?((!r||!Q||I||a)&&v(Q?S():W),W):S()}}var A=!1,k=!1,E=Jr(p),R=kr(()=>{var W=S(),Q=s(E);return A?(A=!1,k=!0,Q):(k=!1,E.v=W)});return l&&s(R),n||(R.equals=Qa),function(W,Q){if(Kc!==null&&(A=k,S(),s(E)),arguments.length>0){let X=Q?s(R):r&&l?ni(W):W;if(!R.equals(X)){if(A=!0,B(E,X),w&&u!==void 0&&(u=X),xh(R))return W;xt(()=>s(R))}return W}return xh(R)?R.v:s(R)}}var j_;typeof HTMLElement=="function"&&(j_=class extends HTMLElement{constructor(e,i,o){super();Qn(this,"$$ctor");Qn(this,"$$s");Qn(this,"$$c");Qn(this,"$$cn",!1);Qn(this,"$$d",{});Qn(this,"$$r",!1);Qn(this,"$$p_d",{});Qn(this,"$$l",{});Qn(this,"$$l_u",new Map);Qn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),b(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=Y_(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=tf(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=eh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Uc(()=>{Uo(()=>{var r;this.$$r=!0;for(let l of pp(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=tf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=tf(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return pp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function tf(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Y_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var wh="5";var Ch,Sh,Th;typeof window!="undefined"&&((Th=(Sh=(Ch=window.__svelte)!=null?Ch:window.__svelte={}).v)!=null?Th:Sh.v=new Set).add(wh);var Pl=require("@vkontakte/videoplayer-core/es2018"),wj=require("@vkontakte/videoplayer-core/es2018"),Da=require("@vkontakte/videoplayer-shared/es2018"),C0=require("@vkontakte/videoplayer-statistics/es2018");var da=require("@vkontakte/videoplayer-shared/es2018");var Z_={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:da.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:da.VideoQuality.Q_480P,highQualityLimit:da.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0"},Eh=t=>(0,da.fillWithDefault)(t,Z_),Ih=t=>Ya("ui-config",t),Et=()=>ja("ui-config");var fd="vk_player_debug_panel_opened";var kh="videoplayer",Ph="videoplayer";var os={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Ah=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Mh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Lh=new Set(["ShiftRight","ShiftLeft"]);var Vh=["TIMELINE"],md=[...Vh,"GRAPH_BUTTON"],of=[...Vh,"PLAY_BUTTON"],vd=[...md,"PLAY_BUTTON"];var Rr=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Rr||{}),ua={xs:0,s:1,m:2,l:3,xl:4};var gd=require("@vkontakte/videoplayer-shared/es2018"),Rh=require("@vkontakte/videoplayer-core/es2018"),Nh=require("@vkontakte/videoplayer-statistics/es2018");var ou="prod",pa="1.1.70-dev.00565e34.0";var fa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Bh=Symbol("storeContext"),Oh=Symbol("microStoresContext"),Dh=(t,e)=>{Ya(Bh,t),Ya(Oh,e),ou==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=ja(Bh);return(0,gd.assertNonNullable)(t,"Store context is empty!"),t},vo=()=>{let t=ja(Oh);return(0,gd.assertNonNullable)(t,"MicroStores context is empty!"),t},ii=(t,e)=>ru(t,t.getValue(),e),ru=(t,e,i)=>mr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),Hh=(t,e,i,o)=>{var R,G,q,W,Q,X,Y,de;let n=t.info,{width:r,height:l}=ye(i.ui.playerSize),d=(G=(R=n.throughputEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?G:0,a=(W=(q=n.rttEstimation$.getValue())==null?void 0:q.toFixed(0))!=null?W:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${pa} (core: ${Rh.VERSION}, stat: ${Nh.VERSION}, shared: ${gd.VERSION})`,v=ye(i.state.errorLog$),u=v.length?`
45
- `+v.map((le,ve)=>{var Le;let Ie=`${ve}) Type: ${le.id}
46
- `,me=`Message: ${le.message} (${le.thrown})
47
- `,se=`Trace: ${(Le=le.thrown)==null?void 0:Le.stack}
48
- `;return Ie+me+se}).join(`
49
- `):void 0,$=i.state.isAudioDisabled?"disabled":ye(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(Q=w==null?void 0:w.codec)!=null?Q:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&S.push(`Audio: ${(X=y==null?void 0:y.codec)!=null?X:""}`+(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 A=(de=(Y=n.currentBuffer$.getValue())==null?void 0:Y.end)!=null?de:0,k=Math.max(A-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:`${p} ${T} ${I}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:$,Position:`${ye(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${ye(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${r}x${l}`,URL:window.location.href,Errors:u};return Object.entries(E).filter(([le,ve])=>ve!==void 0).map(([le,ve])=>`${le}: ${ve}`).join(`
50
- `)},Fh=(t,e,i)=>{var G,q,W,Q;let o=t.info,{width:n,height:r}=ye(i.ui.playerSize),l={version:pa,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 p=o.intrinsicVideoSize$.getValue();p&&(l.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(v&&u?l.buffer=f.end-u:l.buffer=Math.max(f.end-ye(i.state.positionExact$),0)),l.position=ye(i.state.positionExact$);let $=o.throughputEstimation$.getValue();$&&(l.speed=$);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let I=ye(i.vsid);typeof I=="string"&&(l.vsid=I);let A=(G=t.info.currentVideoStream$.getValue())==null?void 0:G.codec;A&&(l.videoCodec=A);let k=(q=t.info.currentAudioStream$.getValue())==null?void 0:q.codec;k&&(l.audioCodec=k),((W=t.info.currentVideoStream$.getValue())==null?void 0:W.hdr)&&(l.hdr=!0);let R=(Q=t.info.currentAudioStream$.getValue())==null?void 0:Q.language;return R&&(l.audioLanguage=R),l},Uh=(t,e)=>fa(t,e,"mp4"),zh=t=>!t.type,Wh=t=>!!t.type,qh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},nu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var fi=require("@vkontakte/videoplayer-shared/es2018"),fA=require("@vkontakte/videoplayer-core/es2018"),Kh="vk_player_prefer_traffic_saving_enabled",Qh="vk_player_preferred_volume",Gh="vk_player_prefer_volume_mute",af="vk_player_preferred_quality",nf="vk_player_preferred_default_quality_settings",rf="vk_player_preferred_quality_settings_by_video",jh="vk_player_preferred_stream_language",Yh="vk_player_preferred_rate",Zh="vk_player_preferred_autoplay_next",sf="vk_player_preferred_subtitles_language",Xh="vk_player_user_video_prefs",Jh=t=>t>1?1:t<0?0:t,lf=t=>fi.safeStorage.set(Qh,Jh(t).toString(10)),su=()=>{let t=fi.safeStorage.get(Qh);return(0,fi.isNullable)(t)?void 0:Jh(parseFloat(t))},df=(t,e)=>fi.safeStorage.set(af,JSON.stringify({videoId:t,value:e})),_d=()=>fi.safeStorage.remove(af),cf=t=>{let e=fi.safeStorage.get(af);if((0,fi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){_d();return}return o},uf=(t,e)=>{e?fi.safeStorage.set(t,"true"):fi.safeStorage.remove(t)},pf=t=>fi.safeStorage.get(t)==="true",ff=t=>uf(Gh,t),e1=()=>pf(Gh),hd=t=>uf(Kh,t),mf=()=>pf(Kh),t1=()=>fi.safeStorage.get(jh),vf=t=>fi.safeStorage.set(jh,t),gf=()=>fi.safeStorage.get(sf),hf=t=>{t?fi.safeStorage.set(sf,t):fi.safeStorage.remove(sf)},i1=t=>fi.safeStorage.set(Yh,JSON.stringify({rate:t})),o1=()=>{let t=fi.safeStorage.get(Yh);if((0,fi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},n1=t=>uf(Zh,t),r1=()=>pf(Zh),X_=()=>{let t=f=>{fi.safeStorage.set(nf,JSON.stringify(f))},e=()=>{try{let f=fi.safeStorage.get(nf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=fi.safeStorage.get(rf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{fi.safeStorage.set(rf,JSON.stringify(f))},n=f=>{p(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return{...v,appliesTo:"to-video"};v&&r();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},r=()=>{fi.safeStorage.remove(rf)},l=()=>{fi.safeStorage.remove(nf)},d=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":hd(!0);break;case"exact_quality":df(f,v.quality)}r(),l()}},p=f=>{let v=cf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}mf()&&t({type:"traffic_saving",videoId:f}),hd(!1),_d()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:r,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:gf,savePreferredSubtitlesLanguage:hf}},{getPreferredQualitySettings:s1,migrateSettingsToLegacyWay:a1,savePreferredQualitySettings:au,savePreferredDefaultQualitySettings:mA,removePreferredQualitySettingsByVideo:vA,getPreferredDefaultQualitySettings:lu}=X_(),J_=3,eb=3,l1=()=>{let t=fi.safeStorage.get(Xh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},du=(t,e)=>{var n,r;let i=l1();return(r=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?r:null},_f=(t,e,i)=>{var l,d,a;let o=(l=l1())!=null?l:{},n=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(n,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=n;let r=tb(o);fi.safeStorage.set(Xh,JSON.stringify(r))};function tb(t){let e=Object.entries(t).reduce((o,[n,r])=>{let l=0;return Object.values(r).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([n,l]),o},[]);return e.sort(([,o],[,n])=>o>n?-1:1),e.splice(eb),e.reduce((o,[n])=>(o[n]=ib(t[n]),o),{})}function ib(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(J_),Object.fromEntries(e)}var Sv=require("@vkontakte/videoplayer-core/es2018");var ob=Ce('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function bd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=ob();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}var pl=require("@vkontakte/videoplayer-shared/es2018");var nb={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
43
+ `)})}}var oa=!1,ol=null,na=!1,cs=!1;function Sp(t){cs=t}var od=[],nd=[],It=null,Jn=!1;function Ni(t){It=t}var ht=null;function Ji(t){ht=t}var Oo=null;function Nc(t){It!==null&&It.f&2097152&&(Oo===null?Oo=[It,[t]]:Oo[1].push(t))}var $n=null,er=0,Xn=null;function bg(t){Xn=t}var Og=1,qc=0,us=!1,Kc=null;function Kl(){return++Og}function Js(t){var v,u;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,r,l=(e&512)!==0,d=o&&ht!==null&&!us,a=i.length;if(l||d){var p=t,f=p.parent;for(n=0;n<a;n++)r=i[n],(l||!((v=r==null?void 0:r.reactions)!=null&&v.includes(p)))&&((u=r.reactions)!=null?u:r.reactions=[]).push(p);l&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<a;n++)if(r=i[n],Js(r)&&Cp(r),r.wv>t.wv)return!0}(!o||ht!==null&&!us)&&hn(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];Oo!=null&&Oo[1].includes(t)&&Oo[0]===It||((r.f&2)!==0?Dg(r,e,!1):e===r&&(i?hn(r,2048):(r.f&1024)!==0&&hn(r,4096),Gl(r)))}}function Rc(t){var $,w;var e=$n,i=er,o=Xn,n=It,r=us,l=Oo,d=Rt,a=Jn,p=t.f;$n=null,er=0,Xn=null,us=(p&256)!==0&&(Jn||!na||It===null),It=(p&96)===0?t:null,Oo=null,zl(t.ctx),Jn=!1,qc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if($n!==null){var u;if(ed(t,er),v!==null&&er>0)for(v.length=er+$n.length,u=0;u<$n.length;u++)v[er+u]=$n[u];else t.deps=v=$n;if(!us||(p&2)!==0&&t.reactions!==null)for(u=er;u<v.length;u++)((w=($=v[u]).reactions)!=null?w:$.reactions=[]).push(t)}else v!==null&&er<v.length&&(ed(t,er),v.length=er);if(Xr()&&Xn!==null&&!Jn&&v!==null&&(t.f&6146)===0)for(u=0;u<Xn.length;u++)Dg(Xn[u],t);return n!==null&&n!==t&&(qc++,Xn!==null&&(o===null?o=Xn:o.push(...Xn))),f}catch(y){Rg(y)}finally{$n=e,er=i,Xn=o,It=n,us=r,Oo=l,zl(d),Jn=a,t.f^=2097152}}function J0(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&&($n===null||!$n.includes(e))&&(hn(e,4096),(e.f&768)===0&&(e.f^=512),Vc(e),ed(e,0))}function ed(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)J0(t,i[o])}function el(t){var e=t.f;if((e&16384)===0){hn(t,1024);var i=ht,o=na;if(ht=t,na=!0,Pe){var n=Yn;Wl(t.component_function)}try{(e&16)!==0?Pg(t):kp(t),Ip(t);var r=Rc(t);if(t.teardown=typeof r=="function"?r:null,t.wv=Og,Pe&&Zr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Kl(),l.set_during_effect=!1);Pe&&nd.push(t)}finally{na=o,ht=i,Pe&&Wl(n)}}}function Ng(){console.error("Last ten effects were: ",nd.slice(-10).map(t=>t.fn)),nd=[]}function e_(){try{ag()}catch(t){if(Pe&&Xi(t,"stack",{value:""}),ol!==null)if(Pe)try{id(t,ol)}catch(e){throw Ng(),e}else id(t,ol);else throw Pe&&Ng(),t}}function Rp(){var t=na;try{var e=0;for(na=!0;od.length>0;){e++>1e3&&e_();var i=od,o=i.length;od=[];for(var n=0;n<o;n++){var r=i_(i[n]);t_(r)}Xa.clear()}}finally{oa=!1,na=t,ol=null,Pe&&(nd=[])}}function t_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Js(o)&&(el(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Ap(o):o.fn=null))}}function Gl(t){oa||(oa=!0,queueMicrotask(Rp));for(var e=ol=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}od.push(e)}function i_(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,r=n&&(o&1024)!==0;if(!r&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:Js(i)&&el(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function nl(t){var e;for(t&&(oa=!0,Rp(),oa=!0,e=t());;){if(Lg(),od.length===0)return oa=!1,ol=null,Pe&&(nd=[]),e;oa=!0,Rp()}}async function wo(){await Promise.resolve(),nl()}function s(t){var e=t.f,i=(e&2)!==0;if(Kc!==null&&Kc.add(t),It!==null&&!Jn){if(!(Oo!=null&&Oo[1].includes(t))||Oo[0]!==It){var o=It.deps;t.rv<qc&&(t.rv=qc,$n===null&&o!==null&&o[er]===t?er++:$n===null?$n=[t]:(!us||!$n.includes(t))&&$n.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&(r.f&256)===0&&(n.f^=256)}if(i&&(n=t,Js(n)&&Cp(n)),Pe&&Zr&&!Jn&&Ul!==null&&It!==null&&Ul.reaction===It)if(t.trace)t.trace();else{var l=ds("TracedAt");if(l){var d=Ul.entries.get(t);d===void 0&&(d={traces:[]},Ul.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return cs&&Xa.has(t)?Xa.get(t):t.v}function Ct(t){var e=Jn;try{return Jn=!0,t()}finally{Jn=e}}var o_=-7169;function hn(t,e){t.f=t.f&o_|e}function Gc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ro in t)Qc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ro in i&&Qc(i)}}}function Qc(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Qc(t[o],e)}catch(n){}let i=js(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=kc(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}function Np(t,e){if(e){let i=document.body;t.autofocus=!0,bn(()=>{document.activeElement===i&&t.focus()})}}function rd(t){var e=It,i=ht;Ni(null),Ji(null);try{return t()}finally{Ni(e),Ji(i)}}var Bp=new Set,jc=new Set;function ra(t){if(!Ze)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Op(t,e,i,o={}){function n(r){if(o.capture||rl.call(e,r),!r.cancelBubble)return rd(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?bn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Tt(t,e,i,o,n){var r={capture:o,passive:n},l=Op(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&No(()=>{e.removeEventListener(t,l,r)})}function ut(t){for(var e=0;e<t.length;e++)Bp.add(t[e]);for(var i of jc)i(t)}function rl(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 p=n.indexOf(e);if(p===-1)return;a<=p&&(l=a)}if(r=n[l]||t.target,r!==e){Xi(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=It,v=ht;Ni(null),Ji(null);try{for(var u,$=[];r!==null;){var w=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!=null&&(!r.disabled||t.target===r))if(Gn(y)){var[S,...T]=y;S.apply(r,[t,...T])}else y.call(r,t)}catch(A){u?$.push(A):u=A}if(t.cancelBubble||w===e||w===null)break;r=w}if(u){for(let A of $)queueMicrotask(()=>{throw A});throw u}}finally{t.__root=e,delete t.currentTarget,Ni(f),Ji(v)}}}var r_;function Hg(){r_=void 0}function sl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Co(t,e){var i=ht;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(Ze)return Co(_t,null),_t;n===void 0&&(n=sl(r?t:"<!>"+t),i||(n=bi(n)));var l=o||jl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=bi(l),a=l.lastChild;Co(d,a)}else Co(l,l);return l}}function l_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Ze)return Co(_t,null),_t;if(!l){var d=sl(r),a=bi(d);if(n)for(l=document.createDocumentFragment();bi(a);)l.appendChild(bi(a));else l=bi(a)}var p=l.cloneNode(!0);if(n){var f=bi(p),v=p.lastChild;Co(f,v)}else Co(p,p);return p}}function Ce(t,e){return l_(t,e,"svg")}function es(t=""){if(!Ze){var e=_n(t+"");return Co(e,e),e}var i=_t;return i.nodeType!==qa&&(i.before(i=_n()),hi(i)),Co(i,i),i}function Fe(){if(Ze)return Co(_t,null),_t;var t=document.createDocumentFragment(),e=document.createComment(""),i=_n();return t.append(e,i),Co(e,i),t}function b(t,e){if(Ze){ht.nodes_end=_t,Oi();return}t!==null&&t.before(e)}var d_=/\r/g;function Ug(t){t=t.replace(d_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function zg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var c_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Wg(t){return c_.includes(t)}var u_=["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 p_={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function qg(t){var e;return t=t.toLowerCase(),(e=p_[t])!=null?e:t}var G6=[...u_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var f_=["touchstart","touchmove"];function Kg(t){return f_.includes(t)}var m_=["$state","$state.raw","$derived","$derived.by"],j6=[...m_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var v_=["textarea","script","style","title"];function Qg(t){return v_.includes(t)}function Yc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var sd=!0;function Zc(t){sd=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 ts(t,e){return Gg(t,e)}function Hp(t,e){var l;Dc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Ze,n=_t;try{for(var r=bi(i);r&&(r.nodeType!==jn||r.data!==Ts);)r=Do(r);if(!r)throw jr;eo(!0),hi(r),Oi();let d=Gg(t,{...e,anchor:r});if(_t===null||_t.nodeType!==jn||_t.data!==Gs)throw Ps(),jr;return eo(!1),d}catch(d){if(d===jr)return e.recover===!1&&lg(),Dc(),Yl(i),eo(!1),ts(t,e);throw d}finally{eo(o),hi(n),Hg()}}var al=new Map;function Gg(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){Dc();var d=new Set,a=v=>{for(var u=0;u<v.length;u++){var $=v[u];if(!d.has($)){d.add($);var w=Kg($);e.addEventListener($,rl,{passive:w});var y=al.get($);y===void 0?(document.addEventListener($,rl,{passive:w}),al.set($,1)):al.set($,y+1)}}};a(Fl(Bp)),jc.add(a);var p=void 0,f=kg(()=>{var v=i!=null?i:e.appendChild(_n());return Mi(()=>{if(r){D({});var u=Rt;u.c=r}n&&(o.$$events=n),Ze&&Co(v,null),sd=l,p=t(v,o)||{},sd=!0,Ze&&(ht.nodes_end=_t),r&&H()}),()=>{var w;for(var u of d){e.removeEventListener(u,rl);var $=al.get(u);--$===0?(document.removeEventListener(u,rl),al.delete(u)):al.set(u,$)}jc.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return Dp.set(p,f),p}var Dp=new WeakMap;function sa(t,e){let i=Dp.get(t);return i?(Dp.delete(t),i(e)):(Pe&&xg(),Promise.resolve())}function be(t,e,...i){var o=t,n=se,r;Di(()=>{n!==(n=e())&&(r&&(Bi(r),r=null),Pe&&n==null&&dg(),r=Mi(()=>n(o,...i)))},65536),Ze&&(o=_t)}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;pg(e)},set:o=>{i=o}})}};b_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var b_;function Ot(t){Rt===null&&Ga("onMount"),Yr&&Rt.l!==null?__(Rt).m.push(t):Ue(()=>{let e=Ct(t);if(typeof e=="function")return e})}function On(t){Rt===null&&Ga("onDestroy"),Ot(()=>()=>Ct(t))}function __(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var jg=new Map;function Yg(t,e){var i=jg.get(t);i||(i=new Set,jg.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){Ze&&i===0&&Oi();var n=t,r=null,l=null,d=zi,a=i>0?65536:0,p=!1;let f=(u,$=!0)=>{p=!0,v($,u)},v=(u,$)=>{if(d===(d=u))return;let w=!1;if(Ze&&o!==-1){if(i===0){let S=Oc(n);S===Ts?o=0:S===Es?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=ea(),hi(n),eo(!1),w=!0,o=-1)}d?(r?fs(r):$&&(r=Mi(()=>$(n))),l&&Bn(l,()=>{l=null})):(l?fs(l):$&&(l=Mi(()=>$(n,[i+1,o]))),r&&Bn(r,()=>{r=null})),w&&eo(!0)};Di(()=>{p=!1,e(f),p||v(null,null)},a),Ze&&(n=_t)}function aa(t,e,i){Ze&&Oi();var o=t,n=zi,r,l=Xr()?ig:Ka;Di(()=>{l(n,n=e())&&(r&&Bn(r),r=Mi(()=>i(o)))}),Ze&&(o=_t)}var Ms=null;function zp(t){Ms=t}function ad(t,e){return e}function x_(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)zc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Yl(a),a.append(i),o.clear(),As(t,e[0].prev,e[r-1].next)}Mp(n,()=>{for(var p=0;p<r;p++){var f=e[p];d||(o.delete(f.k),As(t,f.prev,f.next)),Bi(f.e,!d)}})}function Ci(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var p=t;l=Ze?hi(bi(p)):p.appendChild(_n())}Ze&&Oi();var f=null,v=!1,u=Pr(()=>{var $=i();return Gn($)?$:$==null?[]:Fl($)});Di(()=>{var $=s(u),w=$.length;if(v&&w===0)return;v=w===0;let y=!1;if(Ze){var S=Oc(l)===Es;S!==(w===0)&&(l=ea(),hi(l),eo(!1),y=!0)}if(Ze){for(var T=null,I,A=0;A<w;A++){if(_t.nodeType===jn&&_t.data===Gs){l=_t,y=!0,eo(!1);break}var k=$[A],E=o(k,A);I=Jg(_t,d,T,null,k,E,A,n,e,i),d.items.set(E,I),T=I}w>0&&hi(ea())}Ze||w_($,d,l,n,e,o,i),r!==null&&(w===0?f?fs(f):f=Mi(()=>r(l)):f!==null&&Bn(f,()=>{f=null})),y&&eo(!0),s(u)}),Ze&&(l=_t)}function w_(t,e,i,o,n,r,l){var le,me,ke,ve;var d=(n&8)!==0,a=(n&3)!==0,p=t.length,f=e.items,v=e.first,u=v,$,w=null,y,S=[],T=[],I,A,k,E;if(d)for(E=0;E<p;E+=1)I=t[E],A=r(I,E),k=f.get(A),k!==void 0&&((le=k.a)==null||le.measure(),(y!=null?y:y=new Set).add(k));for(E=0;E<p;E+=1){if(I=t[E],A=r(I,E),k=f.get(A),k===void 0){var R=u?u.e.nodes_start:i;w=Jg(R,e,w,w===null?e.first:w.next,I,A,E,o,n,l),f.set(A,w),S=[],T=[],u=w.next;continue}if(a&&C_(k,I,E,n),(k.e.f&8192)!==0&&(fs(k.e),d&&((me=k.a)==null||me.unfix(),(y!=null?y:y=new Set).delete(k))),k!==u){if($!==void 0&&$.has(k)){if(S.length<T.length){var Q=T[0],q;w=Q.prev;var W=S[0],G=S[S.length-1];for(q=0;q<S.length;q+=1)Zg(S[q],Q,i);for(q=0;q<T.length;q+=1)$.delete(T[q]);As(e,W.prev,G.next),As(e,w,W),As(e,G,Q),u=Q,w=G,E-=1,S=[],T=[]}else $.delete(k),Zg(k,u,i),As(e,k.prev,k.next),As(e,k,w===null?e.first:w.next),As(e,w,k),w=k;continue}for(S=[],T=[];u!==null&&u.k!==A;)(u.e.f&8192)===0&&($!=null?$:$=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;k=u}S.push(k),w=k,u=k.next}if(u!==null||$!==void 0){for(var X=$===void 0?[]:Fl($);u!==null;)(u.e.f&8192)===0&&X.push(u),u=u.next;var Y=X.length;if(Y>0){var ce=(n&4)!==0&&p===0?i:null;if(d){for(E=0;E<Y;E+=1)(ke=X[E].a)==null||ke.measure();for(E=0;E<Y;E+=1)(ve=X[E].a)==null||ve.fix()}x_(e,X,ce,f)}}d&&bn(()=>{var ae;if(y!==void 0)for(k of y)(ae=k.a)==null||ae.apply()}),ht.first=e.first&&e.first.e,ht.last=w&&w.e}function C_(t,e,i,o){(o&1)!==0&&Ja(t.v,e),(o&2)!==0?Ja(t.i,i):t.i=i}function Jg(t,e,i,o,n,r,l,d,a,p){var f=Ms,v=(a&1)!==0,u=(a&16)===0,$=v?u?Jr(n,!1,!1):pr(n):n,w=(a&2)===0?l:pr(l);Pe&&v&&($.trace=()=>{var S=typeof w=="number"?l:w.v;p()[S]});var y={i:w,v:$,k:r,a:null,e:null,prev:i,next:o};Ms=y;try{return y.e=Mi(()=>d(t,$,w,p),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 Zg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Do(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 S_(t,e,i){var r,l;if(!e||e===Ug(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Yn)!=null&&l[Ln]&&(o=`in ${Yn[Ln]}`),yg(Yc(o))}function ld(t,e,i=!1,o=!1,n=!1){var r=t,l="";O(()=>{var $;var d=ht;if(l===(l=($=e())!=null?$:"")){Ze&&Oi();return}if(d.nodes_start!==null&&(Pp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Ze){for(var a=_t.data,p=Oi(),f=p;p!==null&&(p.nodeType!==jn||p.data!=="");)f=p,p=Do(p);if(p===null)throw Ps(),jr;Pe&&!n&&S_(p.parentNode,a,l),Co(_t,f),r=hi(p);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var u=sl(v);if((i||o)&&(u=bi(u)),Co(bi(u),u.lastChild),i||o)for(;bi(u);)r.before(bi(u));else r.before(u)}})}function Si(t,e,i){Ze&&Oi();var o=t,n,r;Di(()=>{n!==(n=e())&&(r&&(Bn(r),r=null),n&&(r=Mi(()=>i(o,n))))},65536),Ze&&(o=_t)}function la(t,e,i,o,n,r){var w;let l=Ze;Ze&&Oi();var d=Pe&&r&&((w=Rt)==null?void 0:w.function[Ln]),a,p,f=null;Ze&&_t.nodeType===Ac&&(f=_t,Oi());var v=Ze?_t:t,u,$=Ms;Di(()=>{let y=e()||null;var S=n?n():i||y==="svg"?Ec:null;if(y!==a){var T=Ms;zp($),u&&(y===null?Bn(u,()=>{u=null,p=null}):y===p?fs(u):(Bi(u),Zc(!1))),y&&y!==p&&(u=Mi(()=>{if(f=Ze?f:S?document.createElementNS(S,y):document.createElement(y),Pe&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),Co(f,f),o){Ze&&Qg(y)&&f.append(document.createComment(""));var I=Ze?bi(f):f.appendChild(_n());Ze&&(I===null?eo(!1):hi(I)),o(f,I)}ht.nodes_end=f,v.before(f)})),a=y,a&&(p=a),Zc(!0),zp(T)}},65536),l&&(eo(!0),hi(v))}var qp;function eh(t){return qp=t.target,new Wp(t)}var ms,fr,Wp=class{constructor(e){Ss(this,ms);Ss(this,fr);var r,l;var i=new Map,o=(d,a)=>{var p=Jr(a,!1,!1);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var p;return s((p=i.get(a))!=null?p:o(a,Reflect.get(d,a)))},has(d,a){var p;return a===Wa?!0:(s((p=i.get(a))!=null?p:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,p){var f;return B((f=i.get(a))!=null?f:o(a,p),p),Reflect.set(d,a,p)}});za(this,fr,(e.hydrate?Hp:ts)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&nl(),za(this,ms,n.$$events);for(let d of Object.keys(Ai(this,fr)))d==="$set"||d==="$destroy"||d==="$on"||Xi(this,d,{get(){return Ai(this,fr)[d]},set(a){Ai(this,fr)[d]=a},enumerable:!0});Ai(this,fr).$set=d=>{Object.assign(n,d)},Ai(this,fr).$destroy=()=>{sa(Ai(this,fr))}}$set(e){Ai(this,fr).$set(e)}$on(e,i){Ai(this,ms)[e]=Ai(this,ms)[e]||[];let o=(...n)=>i.call(this,...n);return Ai(this,ms)[e].push(o),()=>{Ai(this,ms)[e]=Ai(this,ms)[e].filter(n=>n!==o)}}$destroy(){Ai(this,fr).$destroy()}};ms=new WeakMap,fr=new WeakMap;function z(t,e){bn(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=qp)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Pe&&Yg(e.hash,d)}})}function vs(t,e){var i=void 0,o;Di(()=>{i!==(i=e())&&(o&&(Bi(o),o=null),i&&(o=Mi(()=>{xo(()=>i(t))})))})}function th(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=th(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ih(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=th(t))&&(o&&(o+=" "),o+=e);return o}function dd(t){return typeof t=="object"?ih(t):t!=null?t:""}var oh=[...`
44
+ \r\f\xA0\v\uFEFF`];function rh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var r=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+r;(l===0||oh.includes(o[l-1]))&&(d===o.length||oh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function nh(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var r=t[n];r!=null&&r!==""&&(o+=" "+n+": "+r+i)}return o}function Kp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function sh(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var r=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(Kp)),n&&a.push(...Object.keys(n).map(Kp));var p=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var u=t[v];if(d?u==="/"&&t[v-1]==="*"&&(d=!1):r?r===u&&(r=!1):u==="/"&&t[v+1]==="*"?d=!0:u==='"'||u==="'"?r=u:u==="("?l++:u===")"&&l--,!d&&r===!1&&l===0){if(u===":"&&f===-1)f=v;else if(u===";"||v===y-1){if(f!==-1){var $=Kp(t.substring(p,f).trim());if(!a.includes($)){u!==";"&&v++;var w=t.substring(p,v).trim();i+=" "+w+";"}}p=v+1,f=-1}}}}return o&&(i+=nh(o)),n&&(i+=nh(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function oe(t,e,i,o,n,r){var l=t.__className;if(Ze||l!==i||l===void 0){var d=rh(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 p=!!r[a];(n==null||p!==!!n[a])&&t.classList.toggle(a,p)}return r}function Qp(t,e={},i,o){for(var n in i){var r=i[n];e[n]!==r&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,r,o))}}function dt(t,e,i,o){var n=t.__style;if(Ze||n!==e){var r=sh(e,o);(!Ze||r!==t.getAttribute("style"))&&(r==null?t.removeAttribute("style"):t.style.cssText=r),t.__style=e}else o&&(Array.isArray(o)?(Qp(t,i==null?void 0:i[0],o[0]),Qp(t,i==null?void 0:i[1],o[1],"important")):Qp(t,i,o));return o}function cd(t,e,i){if(t.multiple){if(e==null)return;if(!Gn(e))return wg();for(var o of t.options)o.selected=e.includes(ah(o));return}for(o of t.options){var n=ah(o);if(bp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Gp(t){var e=new MutationObserver(()=>{cd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),No(()=>{e.disconnect()})}function ah(t){return"__value"in t?t.__value:t.value}var ll=Symbol("class"),dl=Symbol("style"),ch=Symbol("is custom element"),uh=Symbol("is html");function ph(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=mh(t);if(Ze&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||L_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[tg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&vh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function fh(t,e,i,o,n=!1){var k;var r=mh(t),l=r[ch],d=!r[uh];let a=Ze&&l;a&&eo(!1);var p=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=dd(i.class):(o||i[ll])&&(i.class=null),i[dl]&&((k=i.style)!=null||(i.style=null));var u=vh(t);for(let E in i){let R=i[E];if(f&&E==="value"&&R==null){t.value=t.__value="",p[E]=R;continue}if(E==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";oe(t,$,R,o,e==null?void 0:e[ll],i[ll]),p[E]=R,p[ll]=i[ll];continue}if(E==="style"){dt(t,R,e==null?void 0:e[dl],i[dl]),p[E]=R,p[dl]=i[dl];continue}var w=p[E];if(!(R===w&&!(R===void 0&&t.hasAttribute(E)))){p[E]=R;var y=E[0]+E[1];if(y!=="$$")if(y==="on"){let Q={},q="$$"+E,W=E.slice(2);var S=Wg(W);if(zg(W)&&(W=W.slice(0,-7),Q.capture=!0),!S&&w){if(R!=null)continue;t.removeEventListener(W,p[q],Q),p[q]=null}if(R!=null)if(S)t[`__${W}`]=R,ut([W]);else{let G=function(X){p[E].call(this,X)};var A=G;p[q]=Op(W,t,G,Q)}else S&&(t[`__${W}`]=void 0)}else if(E==="style")De(t,E,R);else if(E==="autofocus")Np(t,!!R);else if(!l&&(E==="__value"||E==="value"&&R!=null))t.value=t.__value=R;else if(E==="selected"&&f)ph(t,R);else{var T=E;d||(T=qg(T));var I=T==="defaultValue"||T==="defaultChecked";if(R==null&&!l&&!I)if(r[E]=null,T==="value"||T==="checked"){let Q=t,q=e===void 0;if(T==="value"){let W=Q.defaultValue;Q.removeAttribute(T),Q.defaultValue=W,Q.value=Q.__value=q?W:null}else{let W=Q.defaultChecked;Q.removeAttribute(T),Q.defaultChecked=W,Q.checked=q?W:!1}}else t.removeAttribute(E);else I||u.includes(T)&&(l||typeof R!="string")?t[T]=R:typeof R!="function"&&De(t,T,R,n)}}}return a&&eo(!0),p}function Ie(t,e,i=[],o,n=!1,r=kr){let l=i.map(r);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(Di(()=>{var u=e(...l.map(s)),$=fh(t,d,u,o,n);f&&p&&"value"in u&&cd(t,u.value,!1);for(let y of Object.getOwnPropertySymbols(a))u[y]||Bi(a[y]);for(let y of Object.getOwnPropertySymbols(u)){var w=u[y];y.description===up&&(!d||w!==d[y])&&(a[y]&&Bi(a[y]),a[y]=Mi(()=>vs(t,()=>w))),$[y]=w}d=$}),p){var v=t;xo(()=>{cd(v,d.value),Gp(v)})}f=!0}function mh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[ch]:t.nodeName.includes("-"),[uh]:t.namespaceURI===Gv}}var lh=new Map;function vh(t){var e=lh.get(t.nodeName);if(e)return e;lh.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=kc(o);for(var r in i)i[r].set&&e.push(r);o=js(o)}return e}function L_(t,e,i){var o;Pe&&(e==="srcset"&&V_(t,i)||jp((o=t.getAttribute(e))!=null?o:"",i)||$g(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function jp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function dh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function V_(t,e){var i=dh(t.srcset),o=dh(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(jp(i[l][0],n)||jp(n,i[l][0])))}var R_=Ic?()=>performance.now():()=>Date.now(),Lr={tick:t=>(Ic?requestAnimationFrame:se)(t),now:()=>R_(),tasks:new Set};function gh(){let t=Lr.now();Lr.tasks.forEach(e=>{e.c(t)||(Lr.tasks.delete(e),e.f())}),Lr.tasks.size!==0&&Lr.tick(gh)}function hh(t){let e;return Lr.tasks.size===0&&Lr.tick(gh),{promise:new Promise(i=>{Lr.tasks.add(e={c:t,f:i})}),abort(){Lr.tasks.delete(e)}}}function Xc(t,e){rd(()=>{t.dispatchEvent(new CustomEvent(e))})}function D_(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function _h(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=D_(n.trim());e[l]=r.trim()}return e}var H_=t=>t;function Zp(t,e,i,o){var A;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",p,f=e.inert,v=e.style.overflow,u,$;function w(){var R;var k=It,E=ht;Ni(null),Ji(null);try{return p!=null?p:p=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:a})}finally{Ni(k),Ji(E)}}var y={is_global:d,in(){var k;if(e.inert=f,!n){$==null||$.abort(),(k=$==null?void 0:$.reset)==null||k.call($);return}r||u==null||u.abort(),Xc(e,"introstart"),u=Yp(e,w(),$,1,()=>{Xc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=v})},out(k){if(!r){k==null||k(),p=void 0;return}e.inert=!0,Xc(e,"outrostart"),$=Yp(e,w(),u,0,()=>{Xc(e,"outroend"),k==null||k()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},S=ht;if(((A=S.transitions)!=null?A:S.transitions=[]).push(y),n&&sd){var T=d;if(!T){for(var I=S.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&xo(()=>{Ct(()=>y.in())})}}function Yp(t,e,i,o,n){var r=o===1;if(Is(e)){var l,d=!1;return bn(()=>{if(!d){var S=e({direction:r?"in":"out"});l=Yp(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:se,deactivate:se,reset:se,t:()=>o};let{delay:a=0,css:p,tick:f,easing:v=H_}=e;var u=[];if(r&&i===void 0&&(f&&f(0,1),p)){var $=_h(p(0,1));u.push($,$)}var w=()=>1-o,y=t.animate(u,{duration:a,fill:"forwards"});return y.onfinish=()=>{var W;y.cancel();var S=(W=i==null?void 0:i.t())!=null?W:1-o;i==null||i.abort();var T=o-S,I=e.duration*Math.abs(T),A=[];if(I>0){var k=!1;if(p)for(var E=Math.ceil(I/16.666666666666668),R=0;R<=E;R+=1){var Q=S+T*v(R/E),q=_h(p(Q,1-Q));A.push(q),k||(k=q.overflow==="hidden")}k&&(t.style.overflow="hidden"),w=()=>{var G=y.currentTime;return S+T*v(G/I)},f&&hh(()=>{if(y.playState!=="running")return!1;var G=w();return f(G,1-G),!0})}y=t.animate(A,{duration:I,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=se)},deactivate:()=>{n=se},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Ls,cl,ud,eu,bh,tu=class tu{constructor(e){Ss(this,eu);Ss(this,Ls,new WeakMap);Ss(this,cl);Ss(this,ud);za(this,ud,e)}observe(e,i){var o=Ai(this,Ls).get(e)||new Set;return o.add(i),Ai(this,Ls).set(e,o),Kv(this,eu,bh).call(this).observe(e,Ai(this,ud)),()=>{var n=Ai(this,Ls).get(e);n.delete(i),n.size===0&&(Ai(this,Ls).delete(e),Ai(this,cl).unobserve(e))}}};Ls=new WeakMap,cl=new WeakMap,ud=new WeakMap,eu=new WeakSet,bh=function(){var e;return(e=Ai(this,cl))!=null?e:za(this,cl,new ResizeObserver(i=>{for(var o of i){tu.entries.set(o.target,o);for(var n of Ai(this,Ls).get(o.target)||[])n(o)}}))},Qn(tu,"entries",new WeakMap);var Xp=tu;var F_=new Xp({box:"border-box"});function is(t,e,i){var o=F_.observe(t,()=>i(t[e]));xo(()=>(Ct(()=>i(t[e])),o))}function $h(t,e){return t===e||(t==null?void 0:t[Ro])===e}function rt(t={},e,i,o){return xo(()=>{var n,r;return Ho(()=>{n=r,r=(o==null?void 0:o())||[],Ct(()=>{t!==i(...r)&&(e(t,...r),n&&$h(i(...n),t)&&e(null,...n))})}),()=>{bn(()=>{r&&$h(i(...r),t)&&e(null,...r)})}}),t}function Vr(t=!1){let e=Rt,i=e.l.u;if(!i)return;let o=()=>Gc(e.s);if(t){let n=0,r={},l=kr(()=>{let d=!1,a=e.s;for(let p in a)a[p]!==r[p]&&(r[p]=a[p],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Jl(()=>{yh(e,o),ks(i.b)}),Ue(()=>{let n=Ct(()=>i.m.map(eg));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&Ue(()=>{yh(e,o),ks(i.a)})}function yh(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function pd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),se;let o=Ct(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var ul=[];function mr(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=se){let i=null,o=new Set;function n(d){if(Ka(t,d)&&(t=d,i)){let a=!ul.length;for(let p of o)p[1](),ul.push(p,t);if(a){for(let p=0;p<ul.length;p+=2)ul[p][0](ul[p+1]);ul.length=0}}}function r(d){n(d(t))}function l(d,a=se){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,r)||se),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function $i(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return mr(i,(l,d)=>{let a=!1,p=[],f=0,v=se,u=()=>{if(f)return;v();let w=e(o?p[0]:p,l,d);r?l(w):v=typeof w=="function"?w:se},$=n.map((w,y)=>pd(w,S=>{p[y]=S,f&=~(1<<y),a&&u()},()=>{f|=1<<y}));return a=!0,u(),function(){ks($),v(),a=!1}})}function ye(t){let e;return pd(t,i=>e=i)(),e}var iu=!1,Jp=Symbol();function C(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:Jr(void 0),unsubscribe:se};if(o.store!==t&&!(Jp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=se;else{var n=!0;o.unsubscribe=pd(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&Jp in i?ye(t):s(o.source)}function Oe(){let t={};function e(){No(()=>{for(var i in t)t[i].unsubscribe();Xi(t,Jp,{enumerable:!1,value:!0})})}return[t,e]}function ef(t){var e=iu;try{return iu=!1,[t(),iu]}finally{iu=e}}var G_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&ug(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Le(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},G_)}var j_={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=on(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=on(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ro||e===Wa)return!1;for(let i of t.props)if(Is(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Is(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function gs(...t){return new Proxy({props:t},j_)}function xh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var Q,q;var n=(i&1)!==0,r=!Yr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=ef(()=>t[e]):p=t[e];var f=Ro in t||Wa in t,v=l&&((q=(Q=on(t,e))==null?void 0:Q.set)!=null?q:f&&e in t&&(W=>t[e]=W))||void 0,u=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?u=Ct(o):u=o),u);p===void 0&&o!==void 0&&(v&&r&&cg(e),p=y(),v&&v(p));var S;if(r)S=()=>{var W=t[e];return W===void 0?y():($=!0,w=!1,W)};else{var T=(n?kr:Pr)(()=>t[e]);T.f|=131072,S=()=>{var W=s(T);return W!==void 0&&(u=void 0),W===void 0?u:W}}if((i&4)===0&&r)return S;if(v){var I=t.$$legacy;return function(W,G){return arguments.length>0?((!r||!G||I||a)&&v(G?S():W),W):S()}}var A=!1,k=!1,E=Jr(p),R=kr(()=>{var W=S(),G=s(E);return A?(A=!1,k=!0,G):(k=!1,E.v=W)});return l&&s(R),n||(R.equals=Qa),function(W,G){if(Kc!==null&&(A=k,S(),s(E)),arguments.length>0){let X=G?s(R):r&&l?oi(W):W;if(!R.equals(X)){if(A=!0,B(E,X),w&&u!==void 0&&(u=X),xh(R))return W;Ct(()=>s(R))}return W}return xh(R)?R.v:s(R)}}var Y_;typeof HTMLElement=="function"&&(Y_=class extends HTMLElement{constructor(e,i,o){super();Qn(this,"$$ctor");Qn(this,"$$s");Qn(this,"$$c");Qn(this,"$$cn",!1);Qn(this,"$$d",{});Qn(this,"$$r",!1);Qn(this,"$$p_d",{});Qn(this,"$$l",{});Qn(this,"$$l_u",new Map);Qn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),b(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=Z_(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=tf(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=eh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Uc(()=>{Ho(()=>{var r;this.$$r=!0;for(let l of pp(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=tf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=tf(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return pp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function tf(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Z_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var wh="5";var Ch,Sh,Th;typeof window!="undefined"&&((Th=(Sh=(Ch=window.__svelte)!=null?Ch:window.__svelte={}).v)!=null?Th:Sh.v=new Set).add(wh);var Pl=require("@vkontakte/videoplayer-core/es2018"),Sj=require("@vkontakte/videoplayer-core/es2018"),Da=require("@vkontakte/videoplayer-shared/es2018"),S0=require("@vkontakte/videoplayer-statistics/es2018");var da=require("@vkontakte/videoplayer-shared/es2018");var X_={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:da.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:da.VideoQuality.Q_480P,highQualityLimit:da.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0"},Eh=t=>(0,da.fillWithDefault)(t,X_),Ih=t=>Ya("ui-config",t),Pt=()=>ja("ui-config");var fd="vk_player_debug_panel_opened";var kh="videoplayer",Ph="videoplayer";var os={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Ah=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Mh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Lh=new Set(["ShiftRight","ShiftLeft"]);var Vh=["TIMELINE"],md=[...Vh,"GRAPH_BUTTON"],of=[...Vh,"PLAY_BUTTON"],vd=[...md,"PLAY_BUTTON"];var Rr=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Rr||{}),ua={xs:0,s:1,m:2,l:3,xl:4};var gd=require("@vkontakte/videoplayer-shared/es2018"),Rh=require("@vkontakte/videoplayer-core/es2018"),Nh=require("@vkontakte/videoplayer-statistics/es2018");var ou="prod",pa="1.1.71-dev.ddc44d3f.0";var fa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Bh=Symbol("storeContext"),Oh=Symbol("microStoresContext"),Dh=(t,e)=>{Ya(Bh,t),Ya(Oh,e),ou==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=ja(Bh);return(0,gd.assertNonNullable)(t,"Store context is empty!"),t},po=()=>{let t=ja(Oh);return(0,gd.assertNonNullable)(t,"MicroStores context is empty!"),t},ei=(t,e)=>ru(t,t.getValue(),e),ru=(t,e,i)=>mr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),Hh=(t,e,i,o)=>{var R,Q,q,W,G,X,Y,ce;let n=t.info,{width:r,height:l}=ye(i.ui.playerSize),d=(Q=(R=n.throughputEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?Q:0,a=(W=(q=n.rttEstimation$.getValue())==null?void 0:q.toFixed(0))!=null?W:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${pa} (core: ${Rh.VERSION}, stat: ${Nh.VERSION}, shared: ${gd.VERSION})`,v=ye(i.state.errorLog$),u=v.length?`
45
+ `+v.map((le,me)=>{var Ve;let ke=`${me}) Type: ${le.id}
46
+ `,ve=`Message: ${le.message} (${le.thrown})
47
+ `,ae=`Trace: ${(Ve=le.thrown)==null?void 0:Ve.stack}
48
+ `;return ke+ve+ae}).join(`
49
+ `):void 0,$=i.state.isAudioDisabled?"disabled":ye(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(G=w==null?void 0:w.codec)!=null?G:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&S.push(`Audio: ${(X=y==null?void 0:y.codec)!=null?X:""}`+(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 A=(ce=(Y=n.currentBuffer$.getValue())==null?void 0:Y.end)!=null?ce:0,k=Math.max(A-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:`${p} ${T} ${I}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:$,Position:`${ye(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${ye(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${r}x${l}`,URL:window.location.href,Errors:u};return Object.entries(E).filter(([le,me])=>me!==void 0).map(([le,me])=>`${le}: ${me}`).join(`
50
+ `)},Fh=(t,e,i)=>{var Q,q,W,G;let o=t.info,{width:n,height:r}=ye(i.ui.playerSize),l={version:pa,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 p=o.intrinsicVideoSize$.getValue();p&&(l.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(v&&u?l.buffer=f.end-u:l.buffer=Math.max(f.end-ye(i.state.positionExact$),0)),l.position=ye(i.state.positionExact$);let $=o.throughputEstimation$.getValue();$&&(l.speed=$);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let I=ye(i.vsid);typeof I=="string"&&(l.vsid=I);let A=(Q=t.info.currentVideoStream$.getValue())==null?void 0:Q.codec;A&&(l.videoCodec=A);let k=(q=t.info.currentAudioStream$.getValue())==null?void 0:q.codec;k&&(l.audioCodec=k),((W=t.info.currentVideoStream$.getValue())==null?void 0:W.hdr)&&(l.hdr=!0);let R=(G=t.info.currentAudioStream$.getValue())==null?void 0:G.language;return R&&(l.audioLanguage=R),l},Uh=(t,e)=>fa(t,e,"mp4"),zh=t=>!t.type,Wh=t=>!!t.type,qh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},nu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var ui=require("@vkontakte/videoplayer-shared/es2018"),mA=require("@vkontakte/videoplayer-core/es2018"),Kh="vk_player_prefer_traffic_saving_enabled",Qh="vk_player_preferred_volume",Gh="vk_player_prefer_volume_mute",af="vk_player_preferred_quality",nf="vk_player_preferred_default_quality_settings",rf="vk_player_preferred_quality_settings_by_video",jh="vk_player_preferred_stream_language",Yh="vk_player_preferred_rate",Zh="vk_player_preferred_autoplay_next",sf="vk_player_preferred_subtitles_language",Xh="vk_player_user_video_prefs",Jh=t=>t>1?1:t<0?0:t,lf=t=>ui.safeStorage.set(Qh,Jh(t).toString(10)),su=()=>{let t=ui.safeStorage.get(Qh);return(0,ui.isNullable)(t)?void 0:Jh(parseFloat(t))},df=(t,e)=>ui.safeStorage.set(af,JSON.stringify({videoId:t,value:e})),_d=()=>ui.safeStorage.remove(af),cf=t=>{let e=ui.safeStorage.get(af);if((0,ui.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){_d();return}return o},uf=(t,e)=>{e?ui.safeStorage.set(t,"true"):ui.safeStorage.remove(t)},pf=t=>ui.safeStorage.get(t)==="true",ff=t=>uf(Gh,t),e1=()=>pf(Gh),hd=t=>uf(Kh,t),mf=()=>pf(Kh),t1=()=>ui.safeStorage.get(jh),vf=t=>ui.safeStorage.set(jh,t),gf=()=>ui.safeStorage.get(sf),hf=t=>{t?ui.safeStorage.set(sf,t):ui.safeStorage.remove(sf)},i1=t=>ui.safeStorage.set(Yh,JSON.stringify({rate:t})),o1=()=>{let t=ui.safeStorage.get(Yh);if((0,ui.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},n1=t=>uf(Zh,t),r1=()=>pf(Zh),J_=()=>{let t=f=>{ui.safeStorage.set(nf,JSON.stringify(f))},e=()=>{try{let f=ui.safeStorage.get(nf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=ui.safeStorage.get(rf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{ui.safeStorage.set(rf,JSON.stringify(f))},n=f=>{p(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return{...v,appliesTo:"to-video"};v&&r();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},r=()=>{ui.safeStorage.remove(rf)},l=()=>{ui.safeStorage.remove(nf)},d=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":hd(!0);break;case"exact_quality":df(f,v.quality)}r(),l()}},p=f=>{let v=cf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}mf()&&t({type:"traffic_saving",videoId:f}),hd(!1),_d()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:r,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:gf,savePreferredSubtitlesLanguage:hf}},{getPreferredQualitySettings:s1,migrateSettingsToLegacyWay:a1,savePreferredQualitySettings:au,savePreferredDefaultQualitySettings:vA,removePreferredQualitySettingsByVideo:gA,getPreferredDefaultQualitySettings:lu}=J_(),eb=3,tb=3,l1=()=>{let t=ui.safeStorage.get(Xh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},du=(t,e)=>{var n,r;let i=l1();return(r=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?r:null},_f=(t,e,i)=>{var l,d,a;let o=(l=l1())!=null?l:{},n=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(n,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=n;let r=ib(o);ui.safeStorage.set(Xh,JSON.stringify(r))};function ib(t){let e=Object.entries(t).reduce((o,[n,r])=>{let l=0;return Object.values(r).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([n,l]),o},[]);return e.sort(([,o],[,n])=>o>n?-1:1),e.splice(tb),e.reduce((o,[n])=>(o[n]=ob(t[n]),o),{})}function ob(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(eb),Object.fromEntries(e)}var Sv=require("@vkontakte/videoplayer-core/es2018");var nb=Ce('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function bd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=nb();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}var pl=require("@vkontakte/videoplayer-shared/es2018");var rb={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
51
51
  \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
52
- \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},d1=nb;var rb={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
52
+ \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},d1=rb;var sb={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.`},c1=rb;var hs=new Map;hs.set(pl.InterfaceLanguage.EN,c1);hs.set(pl.InterfaceLanguage.RU,d1);var u1=new Map,bf=({language:t,pack:e,fallback:i})=>{if(hs.has(t)){let o=hs.get(t);hs.set(t,{...o,...e})}else hs.set(t,e);u1.set(t,i)},$f=t=>hs.has(t),yf=(t,e,i,o)=>{var l;let n=hs.get(t),r=n==null?void 0:n[e];if((0,pl.isNullable)(r)){let d=(l=u1.get(t))!=null?l:o,a=d?hs.get(d):void 0;r=a==null?void 0:a[e]}return(0,pl.isNullable)(r)?e+Object.values(i!=null?i:{}).join(" "):i?r.replaceAll(/{(\w+?)}/g,(d,a)=>{var p;return(p=i[a])!=null?p:""}):r},U=(t,e)=>{let{interfaceLanguage$:i}=Ee(),o=ye(i),n=Et();return yf(o,t,e,n.defaultLanguage)};var VA=require("@vkontakte/videoplayer-core/es2018");var fl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(fl||(fl={}));var sb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ab=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,lb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,cu="?",db="X-Sentry-Auth",cb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ub(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
- `),o,n;for(let r=0;r<i.length;++r){if(o=sb.exec(i[r]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||cu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=lb.exec(i[r]))n={filename:o[2],function:o[1]||cu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=ab.exec(i[r]))r===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||cu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=cu),e.push(n)}return e.length?{value:p1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function p1(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function pb(t){try{let e=ub(t);if(e)return e}catch(e){}return{value:p1(t),type:t&&t.name,stacktrace:{frames:[]}}}function fb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var uu=class{constructor(e){if(e&&e.dsn){let i=cb.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),r=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(r?"/"+r:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[pb(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(db,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:fb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function f1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function mb(){return window}var pu=class t extends uu{constructor(e,i=mb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:r=p=>p,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>f1(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>f1(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],r=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:r||d?[...r||[],...d||[]]:{...typeof n!="string"?n:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var ma=require("@vkontakte/videoplayer-shared/es2018");var fu=null,va=class{constructor(e,i,o={}){!fu&&e.dsn&&(this.sentryClient=new pu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ma.Subscription,this.options=e,this.context=o,fu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),fu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:r,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:u,category:$}=i;if((0,ma.isNonNullable)($)&&v.includes($)||(0,ma.isNonNullable)(u)&&f.includes(u))return;if(Math.random()<=d||(0,ma.isNonNullable)($)&&p.includes($)||(0,ma.isNonNullable)(u)&&a.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(r).length||Object.keys(o).length)&&n.setExtras({...r,...o});try{u&&n.captureMessage(u,i.fatal?fl.fatal:fl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return fu}};var ns=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ns||{});var mu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},vu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),m1=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},$d=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Vs=()=>!!$d(),gu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},hu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},v1=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var xf=require("@vkontakte/videoplayer-core/es2018"),g1=()=>({title:U("hotkey_map_modal_title"),closeBtnText:U("hotkey_map_modal_close_btn_text"),groups:[{title:U("hotkey_map_group_title_common"),items:[{description:U("hotkey_map_item_mute_description"),value:U("hotkey_map_item_mute_value")},{description:U("hotkey_map_item_volume_up_description"),value:U("hotkey_map_item_volume_up_value")},{description:U("hotkey_map_item_volume_down_description"),value:U("hotkey_map_item_volume_down_value")},{description:U("hotkey_map_item_pip_description"),value:U("hotkey_map_item_pip_value")},{description:U("hotkey_map_item_full_screen_description"),value:U("hotkey_map_item_full_screen_value")},{description:U("hotkey_map_item_show_context_menu_description"),value:U("hotkey_map_item_show_context_menu_value")},{description:U("hotkey_map_item_show_hotkey_map_description"),value:U("hotkey_map_item_show_hotkey_map_value")}]},{title:U("hotkey_map_group_title_playback"),items:[{description:U("hotkey_map_item_play_toggle_description"),value:U("hotkey_map_item_play_toggle_value")},{description:U("hotkey_map_item_seek_backward_description"),value:U("hotkey_map_item_seek_backward_value")},{description:U("hotkey_map_item_seek_forward_description"),value:U("hotkey_map_item_seek_forward_value")},{description:U("hotkey_map_item_fast_seek_backward_description"),value:U("hotkey_map_item_fast_seek_backward_value")},{description:U("hotkey_map_item_fast_seek_forward_description"),value:U("hotkey_map_item_fast_seek_forward_value")},{description:U("hotkey_map_item_rate_down_description"),value:U("hotkey_map_item_rate_down_value")},{description:U("hotkey_map_item_rate_up_description"),value:U("hotkey_map_item_rate_up_value")},{description:U("hotkey_map_item_prev_frame_description"),value:U("hotkey_map_item_prev_frame_value")},{description:U("hotkey_map_item_next_frame_description"),value:U("hotkey_map_item_next_frame_value")},{description:U("hotkey_map_item_jump_seek_description"),value:U("hotkey_map_item_jump_seek_value")},{description:U("hotkey_map_item_next_video_description"),value:U("hotkey_map_item_next_video_value")},{description:U("hotkey_map_item_prev_video_description"),value:U("hotkey_map_item_prev_video_value")}]},{title:U("hotkey_map_group_title_subtitles"),items:[{description:U("hotkey_map_item_subtitles_toggle_description"),value:U("hotkey_map_item_subtitles_toggle_value")}]},{title:U("hotkey_map_group_title_episodes"),items:[{description:U("hotkey_map_item_prev_episode_description"),value:xf.clientChecker.device.isApple?U("hotkey_map_item_prev_episode_mac_value"):U("hotkey_map_item_prev_episode_pc_value")},{description:U("hotkey_map_item_next_episode_description"),value:xf.clientChecker.device.isApple?U("hotkey_map_item_next_episode_mac_value"):U("hotkey_map_item_next_episode_pc_value")}]}]});var ml=require("@vkontakte/videoplayer-shared/es2018");var ga=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,ml.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new ml.ValueSubject(!1),isEnabled$:new ml.ValueSubject(!1),type:0};this.info.isEnabled$=new ml.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).enterpictureinpicture)==null||r.call(n,e))}onLeavePictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).leavepictureinpicture)==null||r.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ha(t){return t instanceof ga}var vl=require("@vkontakte/videoplayer-shared/es2018");gg();function Sf(t,e){H(e,!1);let i=Ee();Ot(()=>{i.getAdmanWrapper().startPostroll()}),Vr(),F()}var h1=require("@vkontakte/videoplayer-shared/es2018");var vb=(t,e)=>{t.stopPropagation(),e()()},gb=M('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),hb=M("<div><!></div>"),_b={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function Tf(t,e){H(e,!0),z(t,_b);let[i,o]=Oe(),n=()=>C(p,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,h1.noop),p=Ee().ui.isMobile,f=g(()=>r()>0&&r()>=l());var v=hb();let u;var $=_(v);{var w=S=>{var T=gb();T.__click=[vb,d];var I=_(T);we(),h(T),O(A=>$e(I,`${A!=null?A:""} `),[()=>U("skip_ads_now")]),b(S,T)},y=S=>{var T=es();O(I=>$e(T,I),[()=>U("skip_ads_after",{time:Math.ceil(l()-r()).toFixed(0)})]),b(S,T)};V($,S=>{s(f)?S(w):S(y,!1)})}h(v),O(S=>u=ie(v,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:s(f)})]),b(t,v),F(),o()}pt(["click"]);var bb=M('<button class="svelte-1wy3dql"> </button>'),$b={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Ef(t,e){H(e,!1),z(t,$b),Vr();var i=bb(),o=_(i,!0);h(i),O(n=>$e(o,n),[()=>U("visit_advertiser")],Pr),b(t,i),F()}var yb=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),xb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),wb={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
54
+ Try switching the\xA0quality to\xA0Auto.`},c1=sb;var hs=new Map;hs.set(pl.InterfaceLanguage.EN,c1);hs.set(pl.InterfaceLanguage.RU,d1);var u1=new Map,bf=({language:t,pack:e,fallback:i})=>{if(hs.has(t)){let o=hs.get(t);hs.set(t,{...o,...e})}else hs.set(t,e);u1.set(t,i)},$f=t=>hs.has(t),yf=(t,e,i,o)=>{var l;let n=hs.get(t),r=n==null?void 0:n[e];if((0,pl.isNullable)(r)){let d=(l=u1.get(t))!=null?l:o,a=d?hs.get(d):void 0;r=a==null?void 0:a[e]}return(0,pl.isNullable)(r)?e+Object.values(i!=null?i:{}).join(" "):i?r.replaceAll(/{(\w+?)}/g,(d,a)=>{var p;return(p=i[a])!=null?p:""}):r},F=(t,e)=>{let{interfaceLanguage$:i}=Ee(),o=ye(i),n=Pt();return yf(o,t,e,n.defaultLanguage)};var RA=require("@vkontakte/videoplayer-core/es2018");var fl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(fl||(fl={}));var ab=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,lb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,db=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,cu="?",cb="X-Sentry-Auth",ub=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function pb(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=ab.exec(i[r]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||cu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=db.exec(i[r]))n={filename:o[2],function:o[1]||cu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=lb.exec(i[r]))r===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||cu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=cu),e.push(n)}return e.length?{value:p1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function p1(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function fb(t){try{let e=pb(t);if(e)return e}catch(e){}return{value:p1(t),type:t&&t.name,stacktrace:{frames:[]}}}function mb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var uu=class{constructor(e){if(e&&e.dsn){let i=ub.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),r=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(r?"/"+r:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[fb(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(cb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:mb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function f1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function vb(){return window}var pu=class t extends uu{constructor(e,i=vb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:r=p=>p,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>f1(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>f1(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],r=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:r||d?[...r||[],...d||[]]:{...typeof n!="string"?n:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var ma=require("@vkontakte/videoplayer-shared/es2018");var fu=null,va=class{constructor(e,i,o={}){!fu&&e.dsn&&(this.sentryClient=new pu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ma.Subscription,this.options=e,this.context=o,fu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),fu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:r,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:u,category:$}=i;if((0,ma.isNonNullable)($)&&v.includes($)||(0,ma.isNonNullable)(u)&&f.includes(u))return;if(Math.random()<=d||(0,ma.isNonNullable)($)&&p.includes($)||(0,ma.isNonNullable)(u)&&a.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(r).length||Object.keys(o).length)&&n.setExtras({...r,...o});try{u&&n.captureMessage(u,i.fatal?fl.fatal:fl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return fu}};var ns=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ns||{});var mu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},vu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),m1=t=>t.fullscreenEnabled,v1=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},$d=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Vs=()=>!!$d(),gu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},hu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},g1=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var xf=require("@vkontakte/videoplayer-core/es2018"),h1=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:xf.clientChecker.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:xf.clientChecker.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});var ml=require("@vkontakte/videoplayer-shared/es2018");var ga=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,ml.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new ml.ValueSubject(!1),isEnabled$:new ml.ValueSubject(!1),type:0};this.info.isEnabled$=new ml.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).enterpictureinpicture)==null||r.call(n,e))}onLeavePictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).leavepictureinpicture)==null||r.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ha(t){return t instanceof ga}var vl=require("@vkontakte/videoplayer-shared/es2018");gg();function Sf(t,e){D(e,!1);let i=Ee();Ot(()=>{i.getAdmanWrapper().startPostroll()}),Vr(),H()}var _1=require("@vkontakte/videoplayer-shared/es2018");var gb=(t,e)=>{t.stopPropagation(),e()()},hb=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>'),_b=M("<div><!></div>"),bb={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function Tf(t,e){D(e,!0),z(t,bb);let[i,o]=Oe(),n=()=>C(p,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,_1.noop),p=Ee().ui.isMobile,f=g(()=>r()>0&&r()>=l());var v=_b();let u;var $=_(v);{var w=S=>{var T=hb();T.__click=[gb,d];var I=_(T);we(),h(T),O(A=>$e(I,`${A!=null?A:""} `),[()=>F("skip_ads_now")]),b(S,T)},y=S=>{var T=es();O(I=>$e(T,I),[()=>F("skip_ads_after",{time:Math.ceil(l()-r()).toFixed(0)})]),b(S,T)};V($,S=>{s(f)?S(w):S(y,!1)})}h(v),O(S=>u=oe(v,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:s(f)})]),b(t,v),H(),o()}ut(["click"]);var $b=M('<button class="svelte-1wy3dql"> </button>'),yb={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Ef(t,e){D(e,!1),z(t,yb),Vr();var i=$b(),o=_(i,!0);h(i),O(n=>$e(o,n),[()=>F("visit_advertiser")],Pr),b(t,i),H()}var xb=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),wb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Cb={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.`},c1=rb;var hs=new Map;hs.set(pl.Interf
63
63
  rgba(0, 0, 0, 0.5) 77%,
64
64
  rgba(0, 0, 0, 0.55) 88%,
65
65
  rgba(0, 0, 0, 0.65) 100%
66
- );}`};function yd(t,e){H(e,!0),z(t,wb);let[i,o]=Oe(),n=()=>C(q,"$canSkipAd",i),r=()=>C(G,"$adPlaybackState",i),l=()=>C(I,"$isMobile",i),d=()=>C(W,"$adPosition",i),a=()=>C(Q,"$secondsToWatchBeforeSkipAd",i),p=()=>C(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),u=m(e,"adsPreviewParam",3,void 0),$=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),y=Ee(),S=Et(),T=y.state.isEnded$,I=y.ui.isMobile,A=S.ads.isMobileGoToSiteButton,k=j(void 0),E=j(void 0),R=!1,G=y.ads.playbackState,q=y.ads.canSkip,W=y.ads.position,Q=y.ads.secondsToWatchBeforeSkip,X=g(()=>n()&&r()!=="inactive"),Y=g(()=>l()&&r()!=="inactive"&&A);Ot(()=>{var Ae;let _e=y.getAdmanWrapper();if(vl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,vl.now)(),f()]}),!f()){_e.onAdmanLoadingError();return}let ge=Te=>{_e.initAdman(Te),R=!0},ce=new AbortController,ue=()=>{ce.abort()},{width:pe,height:ee}=ye(y.ui.playerSize),Qe=ye(y.ui.isFullscreen),Xe=(Ae=$())!=null?Ae:ye(y.ui.isAutoplay),Z={width:pe,height:ee,isFullscreen:Qe,isAutoplay:Xe,adsContainer:s(k),adsVideoElement:s(E),slotId:f(),params:v(),previewParam:u(),duration:w()};return window.AdmanHTML?ge(Z):_e.loadAdman(ce.signal).then(()=>{ge(Z)}).catch(()=>{_e.onAdmanLoadingError()}),()=>{vl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,vl.now)(),f()]}),!R&&ue()}});var de=xb(),le=_(de);{var ve=_e=>{var ge=yb();b(_e,ge)};V(le,_e=>{l()&&_e(ve)})}var Ie=P(le,2);st(Ie,_e=>B(E,_e),()=>s(E));var me=P(Ie,2);{var se=_e=>{Tf(_e,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};V(me,_e=>{s(X)&&_e(se)})}var Le=P(me,2);{var oe=_e=>{Sf(_e,{})};V(Le,_e=>{p()&&_e(oe)})}var N=P(Le,2);{var He=_e=>{Ef(_e,{})};V(N,_e=>{s(Y)&&_e(He)})}h(de),st(de,_e=>B(k,_e),()=>s(k)),b(t,de),F(),o()}var yn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(r=>String(r).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var Cb=Ce('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function If(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Cb();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}var Sb=Ce('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function kf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Sb();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}function xd(t,e){let i=m(e,"isActive",3,!1);var o=Ue(),n=fe(o);{var r=d=>{kf(d,{})},l=d=>{If(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var Tb=M('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),Eb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),Ib=M('<span class="text svelte-1s15d2i"> </span>'),kb=M("<div><!> <!></div>"),Pb={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
66
+ );}`};function yd(t,e){D(e,!0),z(t,Cb);let[i,o]=Oe(),n=()=>C(q,"$canSkipAd",i),r=()=>C(Q,"$adPlaybackState",i),l=()=>C(I,"$isMobile",i),d=()=>C(W,"$adPosition",i),a=()=>C(G,"$secondsToWatchBeforeSkipAd",i),p=()=>C(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),u=m(e,"adsPreviewParam",3,void 0),$=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),y=Ee(),S=Pt(),T=y.state.isEnded$,I=y.ui.isMobile,A=S.ads.isMobileGoToSiteButton,k=j(void 0),E=j(void 0),R=!1,Q=y.ads.playbackState,q=y.ads.canSkip,W=y.ads.position,G=y.ads.secondsToWatchBeforeSkip,X=g(()=>n()&&r()!=="inactive"),Y=g(()=>l()&&r()!=="inactive"&&A);Ot(()=>{var Ae;let _e=y.getAdmanWrapper();if(vl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,vl.now)(),f()]}),!f()){_e.onAdmanLoadingError();return}let ge=Te=>{_e.initAdman(Te),R=!0},de=new AbortController,ue=()=>{de.abort()},{width:pe,height:te}=ye(y.ui.playerSize),qe=ye(y.ui.isFullscreen),Xe=(Ae=$())!=null?Ae:ye(y.ui.isAutoplay),Z={width:pe,height:te,isFullscreen:qe,isAutoplay:Xe,adsContainer:s(k),adsVideoElement:s(E),slotId:f(),params:v(),previewParam:u(),duration:w()};return window.AdmanHTML?ge(Z):_e.loadAdman(de.signal).then(()=>{ge(Z)}).catch(()=>{_e.onAdmanLoadingError()}),()=>{vl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,vl.now)(),f()]}),!R&&ue()}});var ce=wb(),le=_(ce);{var me=_e=>{var ge=xb();b(_e,ge)};V(le,_e=>{l()&&_e(me)})}var ke=P(le,2);rt(ke,_e=>B(E,_e),()=>s(E));var ve=P(ke,2);{var ae=_e=>{Tf(_e,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};V(ve,_e=>{s(X)&&_e(ae)})}var Ve=P(ve,2);{var ne=_e=>{Sf(_e,{})};V(Ve,_e=>{p()&&_e(ne)})}var N=P(Ve,2);{var He=_e=>{Ef(_e,{})};V(N,_e=>{s(Y)&&_e(He)})}h(ce),rt(ce,_e=>B(k,_e),()=>s(k)),b(t,ce),H(),o()}var yn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(r=>String(r).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var Sb=Ce('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function If(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Sb();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}var Tb=Ce('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function kf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Tb();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}function xd(t,e){let i=m(e,"isActive",3,!1);var o=Fe(),n=fe(o);{var r=d=>{kf(d,{})},l=d=>{If(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var Eb=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>'),Ib=M('<div class="live-icon svelte-1s15d2i"><!></div>'),kb=M('<span class="text svelte-1s15d2i"> </span>'),Pb=M("<div><!> <!></div>"),Ab={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.`},c1=rb;var hs=new Map;hs.set(pl.Interf
134
134
  100% {
135
135
  transform: scaleY(0.6);
136
136
  }
137
- }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function wd(t,e){z(t,Pb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var r=kb();let l;var d=_(r);{var a=u=>{var $=Tb();b(u,$)};V(d,u=>{i()&&u(a)})}var p=P(d,2);{var f=u=>{var $=Eb(),w=_($);xd(w,{isActive:!0}),h($),b(u,$)},v=u=>{var $=Ib(),w=_($,!0);h($),O(()=>$e(w,e.time)),b(u,$)};V(p,u=>{o()?u(f):u(v,!1)})}h(r),O(u=>l=ie(r,1,"wrapper svelte-1s15d2i",null,l,u),[()=>({live:o(),playing:n()})]),b(t,r)}var gl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Ab=M('<div role="timer" data-testid="thumb-timer"><!></div>'),Mb={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
- opacity var(--controls-transition-duration);}`};function Cd(t,e){H(e,!0),z(t,Mb);let[i,o]=Oe(),n=()=>C(f,"$disabled",i),r=m(e,"isHidden",3,!1),l=m(e,"isLive",3,!1),d=m(e,"isPlaying",3,!1),a=Et(),p=g(()=>yn(e.duration-e.position)),f=ne(!1);var v=Ab();let u;var $=_(v);wd($,{get time(){return s(p)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(v),vs(v,()=>gl(r()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),O(w=>u=ie(v,1,"thumb-timer svelte-c6gowj",null,u,w),[()=>({"out-of-flow":n(),hidden:r()})]),b(t,v),F(),o()}var hl=t=>{if(!navigator.clipboard){_1(t);return}navigator.clipboard.writeText(t).catch(()=>_1(t))};function _1(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}var E1=require("@vkontakte/videoplayer-core/es2018");var Af=require("@vkontakte/videoplayer-core/es2018");var Pf="focus-hidden";var vr=t=>{t.stopPropagation(),t.preventDefault()},Mf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Pf)},Vb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Rb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Nb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Bb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},b1=t=>t.code==="Escape",Ob=t=>t.code==="ArrowLeft",Sd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},$1=t=>{Nb(t)?(vr(t),Rb(t.target)):Bb(t)&&(vr(t),Vb(t.target))},Bs=t=>!Af.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Af.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",_l=async(t,e,i)=>{await So(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(await So(),i.set(!1),t.focus())},y1=async(t,e,i)=>{await So(),t&&!e&&ye(i)&&(i.set(!1),t.focus())},Td=async(t,e,i,o=!1)=>{if(await So(),!!t&&e&&!o){let r=t.children[0];r==null||r.classList.toggle(Pf,!i),r==null||r.focus()}},x1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},_u=(t,e)=>{$1(t),Mf(t.target),b1(t)&&(vr(t),e())},bu=async(t,e)=>{Sd(t,["ArrowRight"])&&(vr(t),e())},w1=async(t,e,i)=>{if($1(t),Ob(t)){vr(t),e();return}b1(t)&&(vr(t),i())},bl=(t,e)=>{Sd(t)&&(vr(t),e())},C1=(t,e,i)=>{if(Sd(t))vr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),vr(t);return}o==="ArrowRight"&&!e&&(i(!0),vr(t))}},S1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},T1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var $a=require("@vkontakte/videoplayer-shared/es2018");var Nr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var Lf=require("@vkontakte/videoplayer-shared/es2018");var Hb=(t,e)=>{bl(t,()=>e())},Fb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Ub={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function Vf(t,e){H(e,!0),z(t,Ub);let i=m(e,"onClick",3,Lf.noop),o=m(e,"closeContextMenu",3,Lf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var r=Fb();r.__click=n,r.__keydown=[Hb,n];var l=_(r,!0);h(r),O(()=>{var d;De(r,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(r,"data-testid",e.id),$e(l,e.label)}),b(t,r),F()}pt(["click","keydown"]);var ba=(t,e)=>t.weight-e.weight;var $l=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))($l||{});var zb=(t,e)=>{_u(t,e)},Wb=t=>{t.preventDefault()},qb=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Kb={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function Rf(t,e){H(e,!0),z(t,Kb);let[i,o]=Oe(),n=()=>C(X,"$isLive$",i),r=()=>C(ve,"$isPiPEnabled$",i),l=()=>C(Q,"$chromecastState$",i),d=()=>C(Ie,"$pictureInPictureApiIsActive$",i),a=()=>C(le,"$isLooped$",i),p=()=>C(Y,"$positionExact$",i),f=()=>C(G,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),u=m(e,"position",19,()=>({top:0,left:0})),$=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),y=m(e,"menuElementRef",15,void 0),S=j(0),T=j(0),I=Ee(),{pictureInPicture$:A}=vo(),k=Et(),E=I.ui.contextMenu.visible$,R=I.ui.debugPanelVisible,G=I.ui.additionalContextMenuItems$,q=I.ui.t,W=I.actions.internal.togglePictureInPicture,Q=I.state.chromecastState$,X=I.state.isLive$,Y=I.state.positionExact$,de=I.state.isInteractive,le=I.state.looped$,{isEnabled$:ve,isActive$:Ie}=A,me=g(()=>{var Ve;return k.features.copyVideoLink&&((Ve=I.callbacks)==null?void 0:Ve.onCopyVideoLink)}),se=g(()=>s(me)&&!n()&&!de),Le=g(()=>{var Ve;return!!((Ve=I.callbacks)!=null&&Ve.onCopyEmbedCodeClicked)}),oe=g(()=>r()&&l()!==E1.ChromecastState.CONNECTED&&!de),N=g(()=>!de),He=g(()=>k.features.videoRotate&&!de),_e=g(()=>k.showSupport&&!d()),ge=g(()=>k.features.saveTraceInfoToFile),ce=()=>{var Ve;E.set(!1),(Ve=e.returnFocus)==null||Ve.call(e)},ue=(Ve,Fe)=>{if(!y()||!$()||!w())return;let Re=y().getBoundingClientRect(),et=$().getBoundingClientRect();B(S,Ve-et.left),B(T,Fe-et.top),s(S)+Re.width>et.width&&B(S,et.width-Re.width),s(T)+Re.height>et.height&&B(T,et.height-Re.height),B(S,Math.max(s(S),0),!0),B(T,Math.max(s(T),0),!0)};We(()=>{(async()=>{if(y()&&$()&&w()){await So();let{top:Fe,left:Re,bottom:et,right:kt}=u(),Gt=Re!=null?Re:0,ot=Fe!=null?Fe:0,ci=y().getBoundingClientRect();(0,$a.isNullable)(Re)&&!(0,$a.isNullable)(kt)&&(Gt=kt-ci.width),(0,$a.isNullable)(Fe)&&!(0,$a.isNullable)(et)&&(ot=et-ci.height),Gt=Math.max(Gt,0),ot=Math.max(ot,0),ue(Gt,ot)}})()});let pe=()=>{I.actions.internal.videoRotate()},ee=()=>{(0,$a.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},Qe=()=>{let Ve=I.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let Fe=new Blob([...Ve],{type:"plain/text"}),Re=window.URL.createObjectURL(Fe);fa(Re,"vk_player_debug_info","txt")}else hl(I.actions.internal.getDebugTextData())},Xe=()=>{let Ve=I.actions.internal.getTraceTextData(),Fe=new Blob([...Ve],{type:"application/json"}),Re=window.URL.createObjectURL(Fe);fa(Re,"vk_player_trace_info","json")},Z=()=>{R.set(!0)},Ae=async()=>{var Ve;try{W()}finally{(Ve=e.returnFocus)==null||Ve.call(e)}},Te=()=>{I.actions.internal.setLooped(!a())},Ye=()=>{var Ve,Fe;if(s(Le)){let Re=(Fe=(Ve=I.callbacks)==null?void 0:Ve.onCopyEmbedCodeClicked)==null?void 0:Fe.call(Ve);Re&&hl(Re)}},it=(Ve=!1)=>{var Fe,Re;if((Fe=I.callbacks)!=null&&Fe.onCopyVideoLink){let et=(Re=I.callbacks)==null?void 0:Re.onCopyVideoLink(Ve,p());et&&hl(et)}},ht=g(()=>k.features.saveDebugInfoToFile?q("menu_save_debug"):q("menu_copy_debug")),Pt=g(()=>s(me)?{id:"copy-link",weight:Nr["copy-link"],label:q("menu_copy_video_link"),onClick:()=>it()}:void 0),ct=g(()=>s(se)?{id:"copy-link-timestamp",weight:Nr["copy-link-timestamp"],label:q("menu_copy_video_link_with_timestamp"),onClick:()=>it(!0)}:void 0),qe=g(()=>s(Le)?{id:"copy-embed-code",weight:Nr["copy-embed-code"],label:q("menu_copy_embed_code"),onClick:Ye}:void 0),qt=g(()=>s(oe)?{id:"pip",weight:Nr.pip,label:d()?q("menu_pip_close"):q("menu_pip"),onClick:Ae}:void 0),Xt=g(()=>s(N)?{id:"video-loop",weight:Nr["video-loop"],label:a()?q("menu_video_loop_off"):q("menu_video_loop_on"),ariaLabel:q("aria_label_menu_loop"),onClick:Te}:void 0),Qt=g(()=>s(He)?{id:"rotate",weight:Nr.rotate,label:q("menu_video_rotate"),ariaLabel:q("aria_label_menu_rotate"),onClick:pe}:void 0),Kt=g(()=>s(_e)?{id:"report",weight:Nr.report,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,onClick:ee}:void 0),ae=g(()=>({id:"save-debug",weight:Nr["save-debug"],label:s(ht),onClick:Qe})),It=g(()=>s(ge)?{id:"save-trace",weight:Nr["save-trace"],label:q("menu_save_debug"),onClick:Xe}:void 0),xe=g(()=>({id:"debug-info",weight:Nr["debug-info"],label:q("menu_debug_overlay"),ariaLabel:q("aria_label_menu_debug_overlay"),onClick:Z})),he=g(()=>[s(Pt),s(ct),s(qe),s(qt),s(Xt),s(Qt),s(Kt),s(ae),s(It),s(xe),...f()].filter(Ve=>!!Ve).sort(ba));var te=Ue(),Ne=fe(te);{var ze=Ve=>{var Fe=qb();Fe.__contextmenu=[Wb],Fe.__keydown=[zb,ce],wi(Fe,21,()=>s(he),Re=>Re.id,(Re,et)=>{Vf(Re,{get id(){return s(et).id},get label(){return s(et).label},get ariaLabel(){return s(et).ariaLabel},get onClick(){return s(et).onClick},closeContextMenu:ce})}),h(Fe),st(Fe,Re=>y(Re),()=>y()),O(()=>{var Re,et;return dt(Fe,`top: ${(Re=s(T))!=null?Re:""}px; left: ${(et=s(S))!=null?et:""}px;`)}),b(Ve,Fe)};V(Ne,Ve=>{v()&&Ve(ze)})}b(t,te),F(),o()}pt(["contextmenu","keydown"]);var $u=class{constructor(e){this.value=e,this.next=null}};var yl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new $u(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var Qb=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Gb={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function Ed(t,e){H(e,!0),z(t,Gb);let i=m(e,"values",19,()=>[]),o=j(void 0),n=j(null),r=16,l=120,d=60,a=l/d;Ot(()=>{s(o).width=l,s(o).height=r,B(n,s(o).getContext("2d"),!0)});function p(u,$,w,y,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect($,w,y,S)}We(()=>{let u="";if(s(n)){let $=i()[0];for(let y=1;y<i().length;y++)i()[y]>$&&($=i()[y]);s(n).clearRect(0,0,l,r);let w=d-1;for(let y=i().length-1;y>=0;y--){let S=w*a,T=$>0?r*(i()[y]/$):0;p(s(n),S,0,a,T),u=T+" "+u,w--}}});var f=Qb(),v=_(f);st(v,u=>B(o,u),()=>s(o)),h(f),b(t,f),F()}var Nf=require("@vkontakte/videoplayer-shared/es2018");var jb=(t,e)=>{t.stopPropagation(),Nf.safeStorage.remove(fd),e.set(!1)},Yb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Zb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Xb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Jb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),e$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),t$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),i$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),o$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),n$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),r$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),s$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),a$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),l$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),d$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),c$=M('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),u$={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Id(t,e){H(e,!0),z(t,u$);let[i,o]=Oe(),n=()=>C(d,"$isMobile",i),r=Ee(),l=r.ui.debugPanelVisible,d=r.ui.isMobile,a=j(ni(r.actions.internal.getDebugPanelData())),p=r.actions.internal.getVideoElement(),f=j(0),v=j(0),u=j(0),$=new yl(60),w=new yl(60),y=new yl(60),S=j(ni([])),T=j(ni([])),I=j(ni([])),A=U("aria_label_debug_panel");Ot(()=>{Nf.safeStorage.set(fd,"true"),r.actions.internal.startLogging(),p&&(B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0),B(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let xe=window.setInterval(()=>{B(a,r.actions.internal.getDebugPanelData(),!0)},500),he;return p&&(he=window.setInterval(()=>{if(p){B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let te=p.getVideoPlaybackQuality().totalVideoFrames;B(u,te-s(f)),B(f,te,!0),$.push(s(u)),s(a).speed&&w.push(s(a).speed),s(a).bitrate&&y.push(s(a).bitrate),B(S,$.getValuesFromBottom(),!0),B(T,w.getValuesFromBottom(),!0),B(I,y.getValuesFromBottom(),!0)}},1e3)),()=>{r.actions.internal.stopLogging(),clearInterval(xe),he&&clearInterval(he)}});var k=c$();let E;var R=_(k);R.__click=[jb,l];var G=P(R,2),q=_(G),W=P(_(q),2),Q=_(W,!0);h(W),h(q);var X=P(q,2);{var Y=xe=>{var he=Yb(),te=P(_(he),2),Ne=_(te,!0);h(te),h(he),O(()=>$e(Ne,s(a).id)),b(xe,he)};V(X,xe=>{s(a).id&&xe(Y)})}var de=P(X,2);{var le=xe=>{var he=Zb(),te=P(_(he),2),Ne=_(te,!0);h(te),h(he),O(()=>$e(Ne,s(a).vsid)),b(xe,he)};V(de,xe=>{s(a).vsid&&xe(le)})}var ve=P(de,2);{var Ie=xe=>{var he=Xb(),te=P(_(he),2),Ne=_(te,!0);h(te),h(he),O(()=>$e(Ne,s(a).provider)),b(xe,he)};V(ve,xe=>{s(a).provider&&xe(Ie)})}var me=P(ve,2);{var se=xe=>{var he=Jb(),te=P(_(he),2),Ne=_(te);h(te),h(he),O(()=>{var ze,Ve;return $e(Ne,`Video: ${(ze=s(a).videoCodec||"")!=null?ze:""} ${s(a).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function wd(t,e){z(t,Ab);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var r=Pb();let l;var d=_(r);{var a=u=>{var $=Eb();b(u,$)};V(d,u=>{i()&&u(a)})}var p=P(d,2);{var f=u=>{var $=Ib(),w=_($);xd(w,{isActive:!0}),h($),b(u,$)},v=u=>{var $=kb(),w=_($,!0);h($),O(()=>$e(w,e.time)),b(u,$)};V(p,u=>{o()?u(f):u(v,!1)})}h(r),O(u=>l=oe(r,1,"wrapper svelte-1s15d2i",null,l,u),[()=>({live:o(),playing:n()})]),b(t,r)}var gl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Mb=M('<div role="timer" data-testid="thumb-timer"><!></div>'),Lb={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
+ opacity var(--controls-transition-duration);}`};function Cd(t,e){D(e,!0),z(t,Lb);let[i,o]=Oe(),n=()=>C(f,"$disabled",i),r=m(e,"isHidden",3,!1),l=m(e,"isLive",3,!1),d=m(e,"isPlaying",3,!1),a=Pt(),p=g(()=>yn(e.duration-e.position)),f=re(!1);var v=Mb();let u;var $=_(v);wd($,{get time(){return s(p)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(v),vs(v,()=>gl(r()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),O(w=>u=oe(v,1,"thumb-timer svelte-c6gowj",null,u,w),[()=>({"out-of-flow":n(),hidden:r()})]),b(t,v),H(),o()}var hl=t=>{if(!navigator.clipboard){b1(t);return}navigator.clipboard.writeText(t).catch(()=>b1(t))};function b1(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}var I1=require("@vkontakte/videoplayer-core/es2018");var Af=require("@vkontakte/videoplayer-core/es2018");var Pf="focus-hidden";var vr=t=>{t.stopPropagation(),t.preventDefault()},Mf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Pf)},Rb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Nb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Bb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Ob=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},$1=t=>t.code==="Escape",Db=t=>t.code==="ArrowLeft",Sd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},y1=t=>{Bb(t)?(vr(t),Nb(t.target)):Ob(t)&&(vr(t),Rb(t.target))},Bs=t=>!Af.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Af.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",_l=async(t,e,i)=>{await wo(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(await wo(),i.set(!1),t.focus())},x1=async(t,e,i)=>{await wo(),t&&!e&&ye(i)&&(i.set(!1),t.focus())},Td=async(t,e,i,o=!1)=>{if(await wo(),!!t&&e&&!o){let r=t.children[0];r==null||r.classList.toggle(Pf,!i),r==null||r.focus()}},w1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},_u=(t,e)=>{y1(t),Mf(t.target),$1(t)&&(vr(t),e())},bu=async(t,e)=>{Sd(t,["ArrowRight"])&&(vr(t),e())},C1=async(t,e,i)=>{if(y1(t),Db(t)){vr(t),e();return}$1(t)&&(vr(t),i())},bl=(t,e)=>{Sd(t)&&(vr(t),e())},S1=(t,e,i)=>{if(Sd(t))vr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),vr(t);return}o==="ArrowRight"&&!e&&(i(!0),vr(t))}},T1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},E1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var $a=require("@vkontakte/videoplayer-shared/es2018");var Nr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var Lf=require("@vkontakte/videoplayer-shared/es2018");var Fb=(t,e)=>{bl(t,()=>e())},Ub=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),zb={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function Vf(t,e){D(e,!0),z(t,zb);let i=m(e,"onClick",3,Lf.noop),o=m(e,"closeContextMenu",3,Lf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var r=Ub();r.__click=n,r.__keydown=[Fb,n];var l=_(r,!0);h(r),O(()=>{var d;De(r,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(r,"data-testid",e.id),$e(l,e.label)}),b(t,r),H()}ut(["click","keydown"]);var ba=(t,e)=>t.weight-e.weight;var $l=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))($l||{});var Wb=(t,e)=>{_u(t,e)},qb=t=>{t.preventDefault()},Kb=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Qb={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function Rf(t,e){D(e,!0),z(t,Qb);let[i,o]=Oe(),n=()=>C(X,"$isLive$",i),r=()=>C(me,"$isPiPEnabled$",i),l=()=>C(G,"$chromecastState$",i),d=()=>C(ke,"$pictureInPictureApiIsActive$",i),a=()=>C(le,"$isLooped$",i),p=()=>C(Y,"$positionExact$",i),f=()=>C(Q,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),u=m(e,"position",19,()=>({top:0,left:0})),$=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),y=m(e,"menuElementRef",15,void 0),S=j(0),T=j(0),I=Ee(),{pictureInPicture$:A}=po(),k=Pt(),E=I.ui.contextMenu.visible$,R=I.ui.debugPanelVisible,Q=I.ui.additionalContextMenuItems$,q=I.ui.t,W=I.actions.internal.togglePictureInPicture,G=I.state.chromecastState$,X=I.state.isLive$,Y=I.state.positionExact$,ce=I.state.isInteractive,le=I.state.looped$,{isEnabled$:me,isActive$:ke}=A,ve=g(()=>{var Me;return k.features.copyVideoLink&&((Me=I.callbacks)==null?void 0:Me.onCopyVideoLink)}),ae=g(()=>s(ve)&&!n()&&!ce),Ve=g(()=>{var Me;return!!((Me=I.callbacks)!=null&&Me.onCopyEmbedCodeClicked)}),ne=g(()=>r()&&l()!==I1.ChromecastState.CONNECTED&&!ce),N=g(()=>!ce),He=g(()=>k.features.videoRotate&&!ce),_e=g(()=>k.showSupport&&!d()),ge=g(()=>k.features.saveTraceInfoToFile),de=()=>{var Me;E.set(!1),(Me=e.returnFocus)==null||Me.call(e)},ue=(Me,We)=>{if(!y()||!$()||!w())return;let Re=y().getBoundingClientRect(),et=$().getBoundingClientRect();B(S,Me-et.left),B(T,We-et.top),s(S)+Re.width>et.width&&B(S,et.width-Re.width),s(T)+Re.height>et.height&&B(T,et.height-Re.height),B(S,Math.max(s(S),0),!0),B(T,Math.max(s(T),0),!0)};Ue(()=>{(async()=>{if(y()&&$()&&w()){await wo();let{top:We,left:Re,bottom:et,right:Lt}=u(),Kt=Re!=null?Re:0,Je=We!=null?We:0,pi=y().getBoundingClientRect();(0,$a.isNullable)(Re)&&!(0,$a.isNullable)(Lt)&&(Kt=Lt-pi.width),(0,$a.isNullable)(We)&&!(0,$a.isNullable)(et)&&(Je=et-pi.height),Kt=Math.max(Kt,0),Je=Math.max(Je,0),ue(Kt,Je)}})()});let pe=()=>{I.actions.internal.videoRotate()},te=()=>{(0,$a.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},qe=()=>{let Me=I.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let We=new Blob([...Me],{type:"plain/text"}),Re=window.URL.createObjectURL(We);fa(Re,"vk_player_debug_info","txt")}else hl(I.actions.internal.getDebugTextData())},Xe=()=>{let Me=I.actions.internal.getTraceTextData(),We=new Blob([...Me],{type:"application/json"}),Re=window.URL.createObjectURL(We);fa(Re,"vk_player_trace_info","json")},Z=()=>{R.set(!0)},Ae=async()=>{var Me;try{W()}finally{(Me=e.returnFocus)==null||Me.call(e)}},Te=()=>{I.actions.internal.setLooped(!a())},Ye=()=>{var Me,We;if(s(Ve)){let Re=(We=(Me=I.callbacks)==null?void 0:Me.onCopyEmbedCodeClicked)==null?void 0:We.call(Me);Re&&hl(Re)}},it=(Me=!1)=>{var We,Re;if((We=I.callbacks)!=null&&We.onCopyVideoLink){let et=(Re=I.callbacks)==null?void 0:Re.onCopyVideoLink(Me,p());et&&hl(et)}},bt=g(()=>k.features.saveDebugInfoToFile?q("menu_save_debug"):q("menu_copy_debug")),gt=g(()=>s(ve)?{id:"copy-link",weight:Nr["copy-link"],label:q("menu_copy_video_link"),onClick:()=>it()}:void 0),St=g(()=>s(ae)?{id:"copy-link-timestamp",weight:Nr["copy-link-timestamp"],label:q("menu_copy_video_link_with_timestamp"),onClick:()=>it(!0)}:void 0),Qe=g(()=>s(Ve)?{id:"copy-embed-code",weight:Nr["copy-embed-code"],label:q("menu_copy_embed_code"),onClick:Ye}:void 0),zt=g(()=>s(ne)?{id:"pip",weight:Nr.pip,label:d()?q("menu_pip_close"):q("menu_pip"),onClick:Ae}:void 0),Xt=g(()=>s(N)?{id:"video-loop",weight:Nr["video-loop"],label:a()?q("menu_video_loop_off"):q("menu_video_loop_on"),ariaLabel:q("aria_label_menu_loop"),onClick:Te}:void 0),Yt=g(()=>s(He)?{id:"rotate",weight:Nr.rotate,label:q("menu_video_rotate"),ariaLabel:q("aria_label_menu_rotate"),onClick:pe}:void 0),Wt=g(()=>s(_e)?{id:"report",weight:Nr.report,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,onClick:te}:void 0),ee=g(()=>({id:"save-debug",weight:Nr["save-debug"],label:s(bt),onClick:qe})),Bt=g(()=>s(ge)?{id:"save-trace",weight:Nr["save-trace"],label:q("menu_save_debug"),onClick:Xe}:void 0),xe=g(()=>({id:"debug-info",weight:Nr["debug-info"],label:q("menu_debug_overlay"),ariaLabel:q("aria_label_menu_debug_overlay"),onClick:Z})),he=g(()=>[s(gt),s(St),s(Qe),s(zt),s(Xt),s(Yt),s(Wt),s(ee),s(Bt),s(xe),...f()].filter(Me=>!!Me).sort(ba));var ie=Fe(),Be=fe(ie);{var ze=Me=>{var We=Kb();We.__contextmenu=[qb],We.__keydown=[Wb,de],Ci(We,21,()=>s(he),Re=>Re.id,(Re,et)=>{Vf(Re,{get id(){return s(et).id},get label(){return s(et).label},get ariaLabel(){return s(et).ariaLabel},get onClick(){return s(et).onClick},closeContextMenu:de})}),h(We),rt(We,Re=>y(Re),()=>y()),O(()=>{var Re,et;return dt(We,`top: ${(Re=s(T))!=null?Re:""}px; left: ${(et=s(S))!=null?et:""}px;`)}),b(Me,We)};V(Be,Me=>{v()&&Me(ze)})}b(t,ie),H(),o()}ut(["contextmenu","keydown"]);var $u=class{constructor(e){this.value=e,this.next=null}};var yl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new $u(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var Gb=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),jb={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function Ed(t,e){D(e,!0),z(t,jb);let i=m(e,"values",19,()=>[]),o=j(void 0),n=j(null),r=16,l=120,d=60,a=l/d;Ot(()=>{s(o).width=l,s(o).height=r,B(n,s(o).getContext("2d"),!0)});function p(u,$,w,y,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect($,w,y,S)}Ue(()=>{let u="";if(s(n)){let $=i()[0];for(let y=1;y<i().length;y++)i()[y]>$&&($=i()[y]);s(n).clearRect(0,0,l,r);let w=d-1;for(let y=i().length-1;y>=0;y--){let S=w*a,T=$>0?r*(i()[y]/$):0;p(s(n),S,0,a,T),u=T+" "+u,w--}}});var f=Gb(),v=_(f);rt(v,u=>B(o,u),()=>s(o)),h(f),b(t,f),H()}var Nf=require("@vkontakte/videoplayer-shared/es2018");var Yb=(t,e)=>{t.stopPropagation(),Nf.safeStorage.remove(fd),e.set(!1)},Zb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Xb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Jb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),e$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),t$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),i$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),o$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),n$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),r$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),s$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),a$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),l$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),d$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),c$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),u$=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>'),p$={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Id(t,e){D(e,!0),z(t,p$);let[i,o]=Oe(),n=()=>C(d,"$isMobile",i),r=Ee(),l=r.ui.debugPanelVisible,d=r.ui.isMobile,a=j(oi(r.actions.internal.getDebugPanelData())),p=r.actions.internal.getVideoElement(),f=j(0),v=j(0),u=j(0),$=new yl(60),w=new yl(60),y=new yl(60),S=j(oi([])),T=j(oi([])),I=j(oi([])),A=F("aria_label_debug_panel");Ot(()=>{Nf.safeStorage.set(fd,"true"),r.actions.internal.startLogging(),p&&(B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0),B(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let xe=window.setInterval(()=>{B(a,r.actions.internal.getDebugPanelData(),!0)},500),he;return p&&(he=window.setInterval(()=>{if(p){B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let ie=p.getVideoPlaybackQuality().totalVideoFrames;B(u,ie-s(f)),B(f,ie,!0),$.push(s(u)),s(a).speed&&w.push(s(a).speed),s(a).bitrate&&y.push(s(a).bitrate),B(S,$.getValuesFromBottom(),!0),B(T,w.getValuesFromBottom(),!0),B(I,y.getValuesFromBottom(),!0)}},1e3)),()=>{r.actions.internal.stopLogging(),clearInterval(xe),he&&clearInterval(he)}});var k=u$();let E;var R=_(k);R.__click=[Yb,l];var Q=P(R,2),q=_(Q),W=P(_(q),2),G=_(W,!0);h(W),h(q);var X=P(q,2);{var Y=xe=>{var he=Zb(),ie=P(_(he),2),Be=_(ie,!0);h(ie),h(he),O(()=>$e(Be,s(a).id)),b(xe,he)};V(X,xe=>{s(a).id&&xe(Y)})}var ce=P(X,2);{var le=xe=>{var he=Xb(),ie=P(_(he),2),Be=_(ie,!0);h(ie),h(he),O(()=>$e(Be,s(a).vsid)),b(xe,he)};V(ce,xe=>{s(a).vsid&&xe(le)})}var me=P(ce,2);{var ke=xe=>{var he=Jb(),ie=P(_(he),2),Be=_(ie,!0);h(ie),h(he),O(()=>$e(Be,s(a).provider)),b(xe,he)};V(me,xe=>{s(a).provider&&xe(ke)})}var ve=P(me,2);{var ae=xe=>{var he=e$(),ie=P(_(he),2),Be=_(ie);h(ie),h(he),O(()=>{var ze,Me;return $e(Be,`Video: ${(ze=s(a).videoCodec||"")!=null?ze:""} ${s(a).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(Ve=s(a).audioCodec||"")!=null?Ve:""} ${s(a).audioLanguage?`(${s(a).audioLanguage})`:""}`)}),b(xe,he)};V(me,xe=>{(s(a).videoCodec||s(a).audioCodec)&&xe(se)})}var Le=P(me,2);{var oe=xe=>{var he=e$(),te=P(_(he),2),Ne=_(te,!0);h(te),h(he),O(()=>$e(Ne,s(a).viewport)),b(xe,he)};V(Le,xe=>{s(a).viewport&&xe(oe)})}var N=P(Le,2);{var He=xe=>{var he=t$(),te=P(_(he),2),Ne=_(te,!0);h(te),h(he),O(()=>$e(Ne,s(a).videoSize)),b(xe,he)};V(N,xe=>{s(a).videoSize&&xe(He)})}var _e=P(N,2);{var ge=xe=>{var he=i$(),te=P(_(he),2),Ne=_(te,!0);h(te),h(he),O(()=>$e(Ne,s(a).cdn)),b(xe,he)};V(_e,xe=>{s(a).cdn&&xe(ge)})}var ce=P(_e,2);{var ue=xe=>{var he=o$(),te=P(_(he),2),Ne=_(te);h(te),h(he),O(()=>{var ze;return $e(Ne,`${(ze=s(a).volume)!=null?ze:""} %`)}),b(xe,he)};V(ce,xe=>{s(a).volume&&xe(ue)})}var pe=P(ce,2);{var ee=xe=>{var he=n$(),te=P(_(he),2),Ne=_(te);h(te),h(he),O(ze=>$e(Ne,`${ze!=null?ze:""} s`),[()=>s(a).position.toFixed(2)]),b(xe,he)};V(pe,xe=>{s(a).position&&xe(ee)})}var Qe=P(pe,2);{var Xe=xe=>{var he=r$(),te=P(_(he),2),Ne=_(te);h(te),h(he),O(ze=>$e(Ne,`${ze!=null?ze:""} s`),[()=>s(a).buffer.toFixed(2)]),b(xe,he)};V(Qe,xe=>{s(a).buffer&&xe(Xe)})}var Z=P(Qe,2);{var Ae=xe=>{var he=s$(),te=P(_(he),2),Ne=_(te);h(te),h(he),O(ze=>$e(Ne,`${ze!=null?ze:""} s`),[()=>s(a).liveLatency.toFixed(2)]),b(xe,he)};V(Z,xe=>{s(a).liveLatency&&xe(Ae)})}var Te=P(Z,2);{var Ye=xe=>{var he=a$(),te=P(_(he),2),Ne=_(te,!0);h(te),h(he),O(ze=>$e(Ne,ze),[()=>[{value:s(a).currentVideoSegmentLength,title:"Video:"},{value:s(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ze})=>ze).map(({value:ze,title:Ve})=>`${Ve} ${((ze!=null?ze:0)/1e3).toFixed(2)} s`).join(" & ")]),b(xe,he)};V(Te,xe=>{(s(a).currentVideoSegmentLength||s(a).currentAudioSegmentLength)&&xe(Ye)})}var it=P(Te,2),ht=P(_(it),2),Pt=_(ht);h(ht),h(it);var ct=P(it,2);{var qe=xe=>{var he=l$(),te=P(_(he),2);Ed(te,{get values(){return s(T)}});var Ne=P(te,2),ze=_(Ne);h(Ne),h(he),O(Ve=>$e(ze,`${Ve!=null?Ve:""} Kbps`),[()=>s(a).speed.toFixed(2)]),b(xe,he)};V(ct,xe=>{s(a).speed&&xe(qe)})}var qt=P(ct,2);{var Xt=xe=>{var he=d$(),te=P(_(he),2);Ed(te,{get values(){return s(I)}});var Ne=P(te,2),ze=_(Ne);h(Ne),h(he),O(Ve=>$e(ze,`${Ve!=null?Ve:""} Kbps`),[()=>s(a).bitrate.toFixed(2)]),b(xe,he)};V(qt,xe=>{s(a).bitrate&&xe(Xt)})}var Qt=P(qt,2),Kt=P(_(Qt),2);Ed(Kt,{get values(){return s(S)}});var ae=P(Kt,2),It=_(ae,!0);h(ae),h(Qt),h(G),h(k),O(xe=>{var he,te;E=ie(k,1,"container svelte-4deykz",null,E,xe),De(k,"aria-label",A),$e(Q,s(a).version),$e(Pt,`${(he=s(v))!=null?he:""} / ${(te=s(f))!=null?te:""} frames`),$e(It,s(u))},[()=>({"container-mobile":n()})]),b(t,k),F(),o()}pt(["click"]);var I1=require("@vkontakte/videoplayer-shared/es2018"),p$=(t,e)=>{t.stopPropagation(),e()()},f$=M('<div class="close svelte-1ome55p"></div>'),m$={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function ya(t,e){H(e,!0),z(t,m$);let i=m(e,"onClick",3,I1.noop);var o=f$();o.__click=[p$,i],b(t,o),F()}pt(["click"]);var k1=require("@vkontakte/videoplayer-shared/es2018"),v$=M('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),g$={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function kd(t,e){H(e,!0),z(t,g$);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,k1.noop),n=5e3,r=j(void 0),l,d,a=0,p;We(()=>{i()&&xt(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(p=(Date.now()-d)/n,p<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Ot(()=>{l=s(r).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),On(()=>{f()});var u=v$(),$=_(u);st($,w=>B(r,w),()=>s(r)),we(2),h(u),b(t,u),F()}var h$=(t,e,i)=>{e(!1),i()},_$=M('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),b$={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Bf(t,e){H(e,!0),z(t,b$);let[i,o]=Oe(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),$()};Ot(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Ue(),T=fe(S);{var I=A=>{var k=_$(),E=P(fe(k),2),R=_(E),G=_(R),q=_(G,!0);h(G);var W=P(G,2);ya(W,{onClick:y}),h(R);var Q=P(R,2);Q.__click=[h$,p,v];var X=_(Q),Y=_(X),de=_(Y);let le;var ve=P(de,2);{var Ie=oe=>{let N=g(()=>r()&&n());kd(oe,{get isRunning(){return s(N)},onTimerEnded:w})};V(ve,oe=>{n()&&oe(Ie)})}h(Y),h(X);var me=P(X,2),se=_(me),Le=_(se,!0);h(se),h(me),h(Q),h(E),O((oe,N)=>{$e(q,oe),dt(Y,`background-image: url('${e.thumb}')`),le=ie(de,1,"thumb-overlay svelte-jfbaax",null,le,N),$e(Le,e.title)},[()=>U("end_screen_next_video"),()=>({withOpacity:n()})]),b(A,k)};V(T,A=>{e.isHide||A(I)})}b(t,S),F(),o()}pt(["click"]);var Ds=require("@vkontakte/videoplayer-core/es2018"),P1=require("@vkontakte/videoplayer-shared/es2018"),xn=require("@vkontakte/videoplayer-statistics/es2018");var Of=(t,e)=>Math.min(+(t+e).toFixed(2),1),Df=(t,e)=>Math.max(+(t-e).toFixed(2),0),yu=(t,e,i)=>{let o=Of(e,i);e<1?t.actions.internal.setVolume(o):ye(t.state.muted$)&&t.actions.external.setMuted(!1)},xu=(t,e,i)=>{let o=Df(e,i);e>0&&t.actions.internal.setVolume(o)};var Os=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var y$=(t,e)=>{e(t)},x$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),w$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Hf(t,e){var Qt,Kt;H(e,!0),z(t,w$);let[i,o]=Oe(),n=()=>C(q,"$playbackState$",i),r=()=>C(W,"$adPlaybackState",i),l=()=>C(de,"$disabledControls$",i),d=()=>C(Q,"$positionExact$",i),a=()=>C(X,"$duration$",i),p=()=>C(ue,"$isAudioAvailable$",i),f=()=>C(Y,"$volume$",i),v=()=>C(me,"$availablePlaybackRates$",i),u=()=>C(Ie,"$currentPlaybackRate$",i),$=()=>C(ee,"$isInteractiveTime$",i),w=()=>C(Qe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(He,"$isEnded$",i),S=()=>C(le,"$muted$",i),T=()=>C(ve,"$currentSubtitle$",i),I=()=>C(_e,"$overlayContainer$",i),A=m(e,"nextButtonActive",3,!1),k=m(e,"prevButtonActive",3,!1),E=Ee(),R=Et(),G=E.getLogger().createComponentLog("KeyboardControls component"),q=E.state.playbackState$,W=E.ads.playbackState,Q=E.state.positionExact$,X=E.state.duration$,Y=E.state.volume$,de=E.ui.controls.disabledControls$,le=E.state.muted$,ve=E.state.currentSubtitle$,Ie=E.state.currentPlaybackRate$,me=E.state.availablePlaybackRates$,se=E.ui.contextMenu.openedByHotKey$,Le=E.ui.contextMenu.lastActiveElem$,oe=E.ui.contextMenu.visible$,N=E.ui.contextMenu.position$,He=E.state.isEnded$,_e=E.ui.overlayContainer$,ge=(Qt=E.callbacks)==null?void 0:Qt.onAudioDoesNotExistHint,ce=(Kt=E.callbacks)==null?void 0:Kt.onAudioDisabledHint,ue=E.state.isAudioAvailable$,pe=E.state.isAudioDisabled,ee=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Qe}=vo(),Xe=0,Z=!0,Ae=j(void 0),Te=ae=>(ae!==Z&&(Z=ae,Xe=0),Xe+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*Xe)/1e3),Ye=(ae,It=!1)=>{var ci,ei;let xe=ae.target,he=(ci=xe==null?void 0:xe.getAttribute("role"))==null?void 0:ci.includes("menuitem"),te=xe.classList.contains("btn"),Ne=ae.code;if(te&&Ne==="Space")return!1;let ze=Mh.has(Ne);if(he&&ze)return!1;let Ve=!Ah.has(Ne);if(ae.ctrlKey&&Ve||ae.altKey&&Ve||ae.metaKey)return!1;let Fe=he&&Ne==="Escape";Lh.has(Ne)||Fe||e.hideContextMenu();let Re=n()===Ds.PlaybackState.PLAYING||n()===Ds.PlaybackState.PAUSED,et=e.isAds&&(r()==="paused"||r()==="playing"),kt=!et&&!l().has("TIMELINE");if(!(Re||et))return!1;G({message:`key down, code: ${Ne}, isExternal = ${It}`});let Gt=!1,ot=()=>{Gt=!0,It||ae.preventDefault()};switch(Ne){case"KeyJ":case"ArrowLeft":{if(!kt)break;if(ae.ctrlKey||ae.altKey){let at=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(at),at&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:at.text}),ot()}else{let at=ae.shiftKey?Te(!1):R.controls.seekStepKeyboard/1e3,jt=Math.max(d()-at,0);d()>0&&(E.actions.internal.seekTime(jt,xn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:at.toString()}),ot())}break}case"KeyL":case"ArrowRight":{if(!kt)break;if(ae.ctrlKey||ae.altKey){let at=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(at),at&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:at.text}),ot()}else{let at=ae.shiftKey?Te(!0):R.controls.seekStepKeyboard/1e3,jt=Math.min(d()+at,a());Math.round(d())<Math.round(a())&&(E.actions.internal.seekTime(jt,xn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:at.toString()}),ot())}break}case"ArrowUp":{if(Os({isAudioDisabled:pe,audioDisabledHintCallback:ce,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})){let at=f(),jt=R.controls.volumeStepKeyboard,Gi=at<=1;if(yu(E,at,jt),Gi){let ri=Math.round(Of(at,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ri}})}}ot();break}case"ArrowDown":{if(Os({isAudioDisabled:pe,audioDisabledHintCallback:ce,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})){let at=f(),jt=R.controls.volumeStepKeyboard,Gi=at>=0;if(xu(E,at,jt),Gi){let ri=Math.round(Df(at,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ri}})}}ot();break}case"Comma":{if(ae.shiftKey){E.actions.internal.decrementPlaybackRate();let at=v().find(jt=>jt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:at==null?void 0:at.displayValue}),ot()}else{if(et||n()!==Ds.PlaybackState.PAUSED)break;let at=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(at,xn.SeekAction.DOUBLE_TAP),ot())}break}case"Period":{if(ae.shiftKey){E.actions.internal.incrementPlaybackRate();let at=v().find(jt=>jt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:at==null?void 0:at.displayValue}),ot()}else{if(et||n()!==Ds.PlaybackState.PAUSED)break;let at=Math.min(d()+R.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(at,xn.SeekAction.DOUBLE_TAP),ot())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if($()&&w()&&Qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let at="PLAY";n()===Ds.PlaybackState.PAUSED?at="PAUSE":y()&&(at="REPLAY"),e.showHotKeyHelpers({type:at})}ot();break;case"KeyM":{Os({isAudioDisabled:pe,audioDisabledHintCallback:ce,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),ot();break}case"KeyF":e.toggleFullscreen(),ot();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ei=T())==null?void 0:ei.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ot();break;case"KeyI":E.actions.internal.togglePictureInPicture(),ot();break;case"Digit1":case"Numpad1":if(ae.shiftKey){let at=T1(I());N.set(at),Le.set(xe),se.set(!0),oe.set(!0),ot();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,xn.SeekAction.DOUBLE_TAP),ot();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,xn.SeekAction.DOUBLE_TAP),ot();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,xn.SeekAction.DOUBLE_TAP),ot();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,xn.SeekAction.DOUBLE_TAP),ot();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,xn.SeekAction.DOUBLE_TAP),ot();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,xn.SeekAction.DOUBLE_TAP),ot();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,xn.SeekAction.DOUBLE_TAP),ot();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,xn.SeekAction.DOUBLE_TAP),ot();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,xn.SeekAction.DOUBLE_TAP),ot();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,xn.SeekAction.DOUBLE_TAP),ot();break;case"Slash":{ae.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),ot());break}case"KeyN":ae.shiftKey&&A()&&(E.actions.internal.nextVideoClick(),ot());break;case"KeyP":ae.shiftKey&&k()&&(E.actions.internal.prevVideoClick(),ot());break;case"ShiftLeft":case"ShiftRight":ot();break;case"Tab":case"Escape":case"Enter":break;default:(0,P1.checkNever)(Ne);break}return Gt},it=ae=>{let It=ae.code;if(ae.ctrlKey||ae.altKey||ae.metaKey)return;let xe=n()===Ds.PlaybackState.PLAYING||n()===Ds.PlaybackState.PAUSED,he=e.isAds&&(r()==="paused"||r()==="playing");if(xe||he)switch(It){case"ShiftLeft":case"ShiftRight":Xe=0;break}},ht=U("aria_label_video_player"),Pt=()=>{var ae;return(ae=s(Ae))==null?void 0:ae.focus()},ct=ae=>ae.type==="keydown"?Ye(ae,!0):(ae.type==="keyup"&&it(ae),!1);var qe=x$();qe.__keyup=it,qe.__keydown=[y$,Ye];var qt=_(qe);be(qt,()=>{var ae;return(ae=e.children)!=null?ae:re}),h(qe),st(qe,ae=>B(Ae,ae),()=>s(Ae)),O(()=>De(qe,"aria-label",ht)),b(t,qe);var Xt=F({focus:Pt,handleExternalKeyboardEvent:ct});return o(),Xt}pt(["keyup","keydown"]);var C$=M('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),S$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
140
+ Audio: ${(Me=s(a).audioCodec||"")!=null?Me:""} ${s(a).audioLanguage?`(${s(a).audioLanguage})`:""}`)}),b(xe,he)};V(ve,xe=>{(s(a).videoCodec||s(a).audioCodec)&&xe(ae)})}var Ve=P(ve,2);{var ne=xe=>{var he=t$(),ie=P(_(he),2),Be=_(ie,!0);h(ie),h(he),O(()=>$e(Be,s(a).viewport)),b(xe,he)};V(Ve,xe=>{s(a).viewport&&xe(ne)})}var N=P(Ve,2);{var He=xe=>{var he=i$(),ie=P(_(he),2),Be=_(ie,!0);h(ie),h(he),O(()=>$e(Be,s(a).videoSize)),b(xe,he)};V(N,xe=>{s(a).videoSize&&xe(He)})}var _e=P(N,2);{var ge=xe=>{var he=o$(),ie=P(_(he),2),Be=_(ie,!0);h(ie),h(he),O(()=>$e(Be,s(a).cdn)),b(xe,he)};V(_e,xe=>{s(a).cdn&&xe(ge)})}var de=P(_e,2);{var ue=xe=>{var he=n$(),ie=P(_(he),2),Be=_(ie);h(ie),h(he),O(()=>{var ze;return $e(Be,`${(ze=s(a).volume)!=null?ze:""} %`)}),b(xe,he)};V(de,xe=>{s(a).volume&&xe(ue)})}var pe=P(de,2);{var te=xe=>{var he=r$(),ie=P(_(he),2),Be=_(ie);h(ie),h(he),O(ze=>$e(Be,`${ze!=null?ze:""} s`),[()=>s(a).position.toFixed(2)]),b(xe,he)};V(pe,xe=>{s(a).position&&xe(te)})}var qe=P(pe,2);{var Xe=xe=>{var he=s$(),ie=P(_(he),2),Be=_(ie);h(ie),h(he),O(ze=>$e(Be,`${ze!=null?ze:""} s`),[()=>s(a).buffer.toFixed(2)]),b(xe,he)};V(qe,xe=>{s(a).buffer&&xe(Xe)})}var Z=P(qe,2);{var Ae=xe=>{var he=a$(),ie=P(_(he),2),Be=_(ie);h(ie),h(he),O(ze=>$e(Be,`${ze!=null?ze:""} s`),[()=>s(a).liveLatency.toFixed(2)]),b(xe,he)};V(Z,xe=>{s(a).liveLatency&&xe(Ae)})}var Te=P(Z,2);{var Ye=xe=>{var he=l$(),ie=P(_(he),2),Be=_(ie,!0);h(ie),h(he),O(ze=>$e(Be,ze),[()=>[{value:s(a).currentVideoSegmentLength,title:"Video:"},{value:s(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ze})=>ze).map(({value:ze,title:Me})=>`${Me} ${((ze!=null?ze:0)/1e3).toFixed(2)} s`).join(" & ")]),b(xe,he)};V(Te,xe=>{(s(a).currentVideoSegmentLength||s(a).currentAudioSegmentLength)&&xe(Ye)})}var it=P(Te,2),bt=P(_(it),2),gt=_(bt);h(bt),h(it);var St=P(it,2);{var Qe=xe=>{var he=d$(),ie=P(_(he),2);Ed(ie,{get values(){return s(T)}});var Be=P(ie,2),ze=_(Be);h(Be),h(he),O(Me=>$e(ze,`${Me!=null?Me:""} Kbps`),[()=>s(a).speed.toFixed(2)]),b(xe,he)};V(St,xe=>{s(a).speed&&xe(Qe)})}var zt=P(St,2);{var Xt=xe=>{var he=c$(),ie=P(_(he),2);Ed(ie,{get values(){return s(I)}});var Be=P(ie,2),ze=_(Be);h(Be),h(he),O(Me=>$e(ze,`${Me!=null?Me:""} Kbps`),[()=>s(a).bitrate.toFixed(2)]),b(xe,he)};V(zt,xe=>{s(a).bitrate&&xe(Xt)})}var Yt=P(zt,2),Wt=P(_(Yt),2);Ed(Wt,{get values(){return s(S)}});var ee=P(Wt,2),Bt=_(ee,!0);h(ee),h(Yt),h(Q),h(k),O(xe=>{var he,ie;E=oe(k,1,"container svelte-4deykz",null,E,xe),De(k,"aria-label",A),$e(G,s(a).version),$e(gt,`${(he=s(v))!=null?he:""} / ${(ie=s(f))!=null?ie:""} frames`),$e(Bt,s(u))},[()=>({"container-mobile":n()})]),b(t,k),H(),o()}ut(["click"]);var k1=require("@vkontakte/videoplayer-shared/es2018"),f$=(t,e)=>{t.stopPropagation(),e()()},m$=M('<div class="close svelte-1ome55p"></div>'),v$={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function ya(t,e){D(e,!0),z(t,v$);let i=m(e,"onClick",3,k1.noop);var o=m$();o.__click=[f$,i],b(t,o),H()}ut(["click"]);var P1=require("@vkontakte/videoplayer-shared/es2018"),g$=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>'),h$={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function kd(t,e){D(e,!0),z(t,h$);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,P1.noop),n=5e3,r=j(void 0),l,d,a=0,p;Ue(()=>{i()&&Ct(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(p=(Date.now()-d)/n,p<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Ot(()=>{l=s(r).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),On(()=>{f()});var u=g$(),$=_(u);rt($,w=>B(r,w),()=>s(r)),we(2),h(u),b(t,u),H()}var _$=(t,e,i)=>{e(!1),i()},b$=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),$$={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Bf(t,e){D(e,!0),z(t,$$);let[i,o]=Oe(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),$()};Ot(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Fe(),T=fe(S);{var I=A=>{var k=b$(),E=P(fe(k),2),R=_(E),Q=_(R),q=_(Q,!0);h(Q);var W=P(Q,2);ya(W,{onClick:y}),h(R);var G=P(R,2);G.__click=[_$,p,v];var X=_(G),Y=_(X),ce=_(Y);let le;var me=P(ce,2);{var ke=ne=>{let N=g(()=>r()&&n());kd(ne,{get isRunning(){return s(N)},onTimerEnded:w})};V(me,ne=>{n()&&ne(ke)})}h(Y),h(X);var ve=P(X,2),ae=_(ve),Ve=_(ae,!0);h(ae),h(ve),h(G),h(E),O((ne,N)=>{$e(q,ne),dt(Y,`background-image: url('${e.thumb}')`),le=oe(ce,1,"thumb-overlay svelte-jfbaax",null,le,N),$e(Ve,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(A,k)};V(T,A=>{e.isHide||A(I)})}b(t,S),H(),o()}ut(["click"]);var Ds=require("@vkontakte/videoplayer-core/es2018"),A1=require("@vkontakte/videoplayer-shared/es2018"),xn=require("@vkontakte/videoplayer-statistics/es2018");var Of=(t,e)=>Math.min(+(t+e).toFixed(2),1),Df=(t,e)=>Math.max(+(t-e).toFixed(2),0),yu=(t,e,i)=>{let o=Of(e,i);e<1?t.actions.internal.setVolume(o):ye(t.state.muted$)&&t.actions.external.setMuted(!1)},xu=(t,e,i)=>{let o=Df(e,i);e>0&&t.actions.internal.setVolume(o)};var Os=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var x$=(t,e)=>{e(t)},w$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),C$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Hf(t,e){var Yt,Wt;D(e,!0),z(t,C$);let[i,o]=Oe(),n=()=>C(q,"$playbackState$",i),r=()=>C(W,"$adPlaybackState",i),l=()=>C(ce,"$disabledControls$",i),d=()=>C(G,"$positionExact$",i),a=()=>C(X,"$duration$",i),p=()=>C(ue,"$isAudioAvailable$",i),f=()=>C(Y,"$volume$",i),v=()=>C(ve,"$availablePlaybackRates$",i),u=()=>C(ke,"$currentPlaybackRate$",i),$=()=>C(te,"$isInteractiveTime$",i),w=()=>C(qe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(He,"$isEnded$",i),S=()=>C(le,"$muted$",i),T=()=>C(me,"$currentSubtitle$",i),I=()=>C(_e,"$overlayContainer$",i),A=m(e,"nextButtonActive",3,!1),k=m(e,"prevButtonActive",3,!1),E=Ee(),R=Pt(),Q=E.getLogger().createComponentLog("KeyboardControls component"),q=E.state.playbackState$,W=E.ads.playbackState,G=E.state.positionExact$,X=E.state.duration$,Y=E.state.volume$,ce=E.ui.controls.disabledControls$,le=E.state.muted$,me=E.state.currentSubtitle$,ke=E.state.currentPlaybackRate$,ve=E.state.availablePlaybackRates$,ae=E.ui.contextMenu.openedByHotKey$,Ve=E.ui.contextMenu.lastActiveElem$,ne=E.ui.contextMenu.visible$,N=E.ui.contextMenu.position$,He=E.state.isEnded$,_e=E.ui.overlayContainer$,ge=(Yt=E.callbacks)==null?void 0:Yt.onAudioDoesNotExistHint,de=(Wt=E.callbacks)==null?void 0:Wt.onAudioDisabledHint,ue=E.state.isAudioAvailable$,pe=E.state.isAudioDisabled,te=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:qe}=po(),Xe=0,Z=!0,Ae=j(void 0),Te=ee=>(ee!==Z&&(Z=ee,Xe=0),Xe+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*Xe)/1e3),Ye=(ee,Bt=!1)=>{var pi,ti;let xe=ee.target,he=(pi=xe==null?void 0:xe.getAttribute("role"))==null?void 0:pi.includes("menuitem"),ie=xe.classList.contains("btn"),Be=ee.code;if(ie&&Be==="Space")return!1;let ze=Mh.has(Be);if(he&&ze)return!1;let Me=!Ah.has(Be);if(ee.ctrlKey&&Me||ee.altKey&&Me||ee.metaKey)return!1;let We=he&&Be==="Escape";Lh.has(Be)||We||e.hideContextMenu();let Re=n()===Ds.PlaybackState.PLAYING||n()===Ds.PlaybackState.PAUSED,et=e.isAds&&(r()==="paused"||r()==="playing"),Lt=!et&&!l().has("TIMELINE");if(!(Re||et))return!1;Q({message:`key down, code: ${Be}, isExternal = ${Bt}`});let Kt=!1,Je=()=>{Kt=!0,Bt||ee.preventDefault()};switch(Be){case"KeyJ":case"ArrowLeft":{if(!Lt)break;if(ee.ctrlKey||ee.altKey){let at=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(at),at&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:at.text}),Je()}else{let at=ee.shiftKey?Te(!1):R.controls.seekStepKeyboard/1e3,Gt=Math.max(d()-at,0);d()>0&&(E.actions.internal.seekTime(Gt,xn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:at.toString()}),Je())}break}case"KeyL":case"ArrowRight":{if(!Lt)break;if(ee.ctrlKey||ee.altKey){let at=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(at),at&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:at.text}),Je()}else{let at=ee.shiftKey?Te(!0):R.controls.seekStepKeyboard/1e3,Gt=Math.min(d()+at,a());Math.round(d())<Math.round(a())&&(E.actions.internal.seekTime(Gt,xn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:at.toString()}),Je())}break}case"ArrowUp":{if(Os({isAudioDisabled:pe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})){let at=f(),Gt=R.controls.volumeStepKeyboard,ri=at<=1;if(yu(E,at,Gt),ri){let fi=Math.round(Of(at,Gt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:fi}})}}Je();break}case"ArrowDown":{if(Os({isAudioDisabled:pe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})){let at=f(),Gt=R.controls.volumeStepKeyboard,ri=at>=0;if(xu(E,at,Gt),ri){let fi=Math.round(Df(at,Gt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:fi}})}}Je();break}case"Comma":{if(ee.shiftKey){E.actions.internal.decrementPlaybackRate();let at=v().find(Gt=>Gt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:at==null?void 0:at.displayValue}),Je()}else{if(et||n()!==Ds.PlaybackState.PAUSED)break;let at=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(at,xn.SeekAction.DOUBLE_TAP),Je())}break}case"Period":{if(ee.shiftKey){E.actions.internal.incrementPlaybackRate();let at=v().find(Gt=>Gt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:at==null?void 0:at.displayValue}),Je()}else{if(et||n()!==Ds.PlaybackState.PAUSED)break;let at=Math.min(d()+R.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(at,xn.SeekAction.DOUBLE_TAP),Je())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if($()&&w()&&qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let at="PLAY";n()===Ds.PlaybackState.PAUSED?at="PAUSE":y()&&(at="REPLAY"),e.showHotKeyHelpers({type:at})}Je();break;case"KeyM":{Os({isAudioDisabled:pe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),Je();break}case"KeyF":e.toggleFullscreen(),Je();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ti=T())==null?void 0:ti.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Je();break;case"KeyI":E.actions.internal.togglePictureInPicture(),Je();break;case"Digit1":case"Numpad1":if(ee.shiftKey){let at=E1(I());N.set(at),Ve.set(xe),ae.set(!0),ne.set(!0),Je();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,xn.SeekAction.DOUBLE_TAP),Je();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,xn.SeekAction.DOUBLE_TAP),Je();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,xn.SeekAction.DOUBLE_TAP),Je();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,xn.SeekAction.DOUBLE_TAP),Je();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,xn.SeekAction.DOUBLE_TAP),Je();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,xn.SeekAction.DOUBLE_TAP),Je();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,xn.SeekAction.DOUBLE_TAP),Je();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,xn.SeekAction.DOUBLE_TAP),Je();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,xn.SeekAction.DOUBLE_TAP),Je();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,xn.SeekAction.DOUBLE_TAP),Je();break;case"Slash":{ee.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),Je());break}case"KeyN":ee.shiftKey&&A()&&(E.actions.internal.nextVideoClick(),Je());break;case"KeyP":ee.shiftKey&&k()&&(E.actions.internal.prevVideoClick(),Je());break;case"ShiftLeft":case"ShiftRight":Je();break;case"Tab":case"Escape":case"Enter":break;default:(0,A1.checkNever)(Be);break}return Kt},it=ee=>{let Bt=ee.code;if(ee.ctrlKey||ee.altKey||ee.metaKey)return;let xe=n()===Ds.PlaybackState.PLAYING||n()===Ds.PlaybackState.PAUSED,he=e.isAds&&(r()==="paused"||r()==="playing");if(xe||he)switch(Bt){case"ShiftLeft":case"ShiftRight":Xe=0;break}},bt=F("aria_label_video_player"),gt=()=>{var ee;return(ee=s(Ae))==null?void 0:ee.focus()},St=ee=>ee.type==="keydown"?Ye(ee,!0):(ee.type==="keyup"&&it(ee),!1);var Qe=w$();Qe.__keyup=it,Qe.__keydown=[x$,Ye];var zt=_(Qe);be(zt,()=>{var ee;return(ee=e.children)!=null?ee:se}),h(Qe),rt(Qe,ee=>B(Ae,ee),()=>s(Ae)),O(()=>De(Qe,"aria-label",bt)),b(t,Qe);var Xt=H({focus:gt,handleExternalKeyboardEvent:St});return o(),Xt}ut(["keyup","keydown"]);var S$=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>'),T$={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.`},c1=rb;var hs=new Map;hs.set(pl.Interf
150
150
  opacity: 0.2;
151
151
  }
152
152
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
153
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function xa(t,e){z(t,S$);let i=m(e,"style",3,"");var o=C$();O(()=>dt(o,i())),b(t,o)}var T$=Ce('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function Ff(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=T$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}var wa=require("@vkontakte/videoplayer-shared/es2018"),E$=t=>{t.stopPropagation()},I$=M("<button><!></button>"),k$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
153
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function xa(t,e){z(t,T$);let i=m(e,"style",3,"");var o=S$();O(()=>dt(o,i())),b(t,o)}var E$=Ce('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function Ff(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=E$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}var wa=require("@vkontakte/videoplayer-shared/es2018"),I$=t=>{t.stopPropagation()},k$=M("<button><!></button>"),P$={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.`},c1=rb;var hs=new Map;hs.set(pl.Interf
158
158
  /* mobile */
159
159
  /* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
160
160
  .btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
161
- /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Bt(t,e){H(e,!0),z(t,k$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),r=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),p=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),u=m(e,"click",3,wa.noop),$=m(e,"focus",3,wa.noop),w=m(e,"blur",3,wa.noop),y=g(()=>u()===wa.noop?null:k=>{k.stopPropagation(),u()(k)}),S=g(()=>$()===wa.noop?null:k=>{k.preventDefault(),$()()}),T=g(()=>w()===wa.noop?null:k=>{k.preventDefault(),w()()});var I=I$();I.__pointerdown=[E$],I.__click=function(...k){var E;(E=s(y))==null||E.apply(this,k)};var A=_(I);be(A,()=>{var k;return(k=e.children)!=null?k:re}),h(I),st(I,k=>a(k),()=>a()),O(()=>{var k,E,R,G,q,W,Q,X;ie(I,1,`btn ${(k=i())!=null?k:""}`,"svelte-wr0kwr"),dt(I,o()||null),I.disabled=(E=n())!=null?E:null,De(I,"aria-hidden",(R=l())!=null?R:null),De(I,"aria-label",(G=d())!=null?G:null),De(I,"aria-keyshortcuts",(q=p())!=null?q:null),De(I,"aria-expanded",(W=f())!=null?W:null),De(I,"data-testid",(Q=r())!=null?Q:null),De(I,"tabindex",v()),De(I,"role",e.role),De(I,"aria-checked",(X=e.areaChecked)!=null?X:null)}),Ct("focus",I,function(...k){var E;(E=s(S))==null||E.apply(this,k)}),Ct("blur",I,function(...k){var E;(E=s(T))==null||E.apply(this,k)}),b(t,I),F()}pt(["pointerdown","click"]);var P$=M('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),A$=M('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),M$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function Uf(t,e){H(e,!0),z(t,M$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=U("hotkey_map_modal_close_btn_text");var r=A$(),l=_(r),d=_(l);{var a=u=>{var $=P$(),w=_($),y=_(w,!0);h(w);var S=P(w,2);{var T=I=>{Bt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(A,k)=>{Ff(A,{})},$$slots:{default:!0}})};V(S,I=>{o()&&I(T)})}h($),O(()=>$e(y,e.title)),b(u,$)};V(d,u=>{i()&&u(a)})}var p=P(d,2),f=_(p),v=_(f);be(v,()=>{var u;return(u=e.children)!=null?u:re}),h(f),h(p),h(l),h(r),b(t,r),F()}var L$=new Set(["BR"]),A1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],l=r.tagName;L$.has(l)||(n=r.parentElement)==null||n.removeChild(r)}return e.innerHTML};var V$=M('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),R$=M('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),N$=M('<div class="hot-key-map svelte-quklnq"></div>'),B$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
161
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Nt(t,e){D(e,!0),z(t,P$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),r=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),p=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),u=m(e,"click",3,wa.noop),$=m(e,"focus",3,wa.noop),w=m(e,"blur",3,wa.noop),y=g(()=>u()===wa.noop?null:k=>{k.stopPropagation(),u()(k)}),S=g(()=>$()===wa.noop?null:k=>{k.preventDefault(),$()()}),T=g(()=>w()===wa.noop?null:k=>{k.preventDefault(),w()()});var I=k$();I.__pointerdown=[I$],I.__click=function(...k){var E;(E=s(y))==null||E.apply(this,k)};var A=_(I);be(A,()=>{var k;return(k=e.children)!=null?k:se}),h(I),rt(I,k=>a(k),()=>a()),O(()=>{var k,E,R,Q,q,W,G,X;oe(I,1,`btn ${(k=i())!=null?k:""}`,"svelte-wr0kwr"),dt(I,o()||null),I.disabled=(E=n())!=null?E:null,De(I,"aria-hidden",(R=l())!=null?R:null),De(I,"aria-label",(Q=d())!=null?Q:null),De(I,"aria-keyshortcuts",(q=p())!=null?q:null),De(I,"aria-expanded",(W=f())!=null?W:null),De(I,"data-testid",(G=r())!=null?G:null),De(I,"tabindex",v()),De(I,"role",e.role),De(I,"aria-checked",(X=e.areaChecked)!=null?X:null)}),Tt("focus",I,function(...k){var E;(E=s(S))==null||E.apply(this,k)}),Tt("blur",I,function(...k){var E;(E=s(T))==null||E.apply(this,k)}),b(t,I),H()}ut(["pointerdown","click"]);var A$=M('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),M$=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>'),L$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function Uf(t,e){D(e,!0),z(t,L$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var r=M$(),l=_(r),d=_(l);{var a=u=>{var $=A$(),w=_($),y=_(w,!0);h(w);var S=P(w,2);{var T=I=>{Nt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(A,k)=>{Ff(A,{})},$$slots:{default:!0}})};V(S,I=>{o()&&I(T)})}h($),O(()=>$e(y,e.title)),b(u,$)};V(d,u=>{i()&&u(a)})}var p=P(d,2),f=_(p),v=_(f);be(v,()=>{var u;return(u=e.children)!=null?u:se}),h(f),h(p),h(l),h(r),b(t,r),H()}var V$=new Set(["BR"]),M1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],l=r.tagName;V$.has(l)||(n=r.parentElement)==null||n.removeChild(r)}return e.innerHTML};var R$=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>'),N$=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>'),B$=M('<div class="hot-key-map svelte-quklnq"></div>'),O$={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 zf(t,e){H(e,!1),z(t,B$);let[i,o]=Oe(),n=()=>C(l,"$data",i),r=Ee(),{data:l,show:d}=r.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Vr(),Uf(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var v=N$();wi(v,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>s($).title,y=()=>s($).items;var S=R$(),T=_(S),I=_(T,!0);h(T);var A=P(T,2);wi(A,5,y,({description:k,value:E})=>E,(k,E)=>{let R=()=>s(E).description,G=()=>s(E).value;var q=V$(),W=_(q),Q=_(W);ld(Q,()=>A1(R())),h(W);var X=P(W,2),Y=_(X,!0);h(X),h(q),O(()=>$e(Y,G())),b(k,q)}),h(A),h(S),O(()=>$e(I,w())),b(u,S)}),h(v),b(p,v)},$$slots:{default:!0}}),F(),o()}var Om=require("@vkontakte/videoplayer-shared/es2018");var Pa=require("@vkontakte/videoplayer-core/es2018");var HV=require("@vkontakte/videoplayer-shared/es2018");var O$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),D$={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function Wf(t,e){z(t,D$);var i=O$(),o=_(i);be(o,()=>{var n;return(n=e.children)!=null?n:re}),h(i),b(t,i)}var xl=require("@vkontakte/videoplayer-shared/es2018");var H$=Ce('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function qf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=H$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}var F$=Ce('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function Kf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=F$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}var U$=Ce('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function Qf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=U$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var z$=Ce('<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=Me(e,["$$slots","$$events","$$legacy","children"]);var o=z$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var W$=Ce('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function Ad(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=W$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}var wu=t=>{switch(t){case xl.VideoQuality.Q_720P:return Qf;case xl.VideoQuality.Q_1080P:return Pd;case xl.VideoQuality.Q_1440P:return Ad;case xl.VideoQuality.Q_2160P:return qf;case xl.VideoQuality.Q_4320P:return Kf}};var q$=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function Gf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=q$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var K$=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function jf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=K$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}var Q$=M('<div aria-hidden="true"><!> <!></div>'),G$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function Md(t,e){H(e,!0),z(t,G$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>wu(o())),r=g(()=>!!s(n)&&[Pd,Ad].includes(s(n)));var l=Ue(),d=fe(l);{var a=f=>{Gf(f,{})},p=f=>{var v=Q$();let u;var $=_(v);{var w=T=>{Wf(T,{children:(I,A)=>{var k=Ue(),E=fe(k);Ci(E,()=>s(n),(R,G)=>{G(R,{})}),b(I,k)},$$slots:{default:!0}})};V($,T=>{s(n)&&T(w)})}var y=P($,2);let S=g(()=>s(n)?"settings-icon--labeled":"settings-icon");jf(y,{get"data-testid"(){return s(S)},fill:"var(--btn-color, #fff)"}),h(v),O(T=>u=ie(v,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:s(r)})]),b(f,v)};V(d,f=>{i()?f(a):f(p,!1)})}b(t,l),F()}var j$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Y$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function wl(t,e){H(e,!0),z(t,Y$);let[i,o]=Oe(),n=()=>C(p,"$settingsMenuVisible",i),r=()=>C(u,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Ee(),a=d.state.currentQuality$,p=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,u=d.ui.isMobile,$=d.ui.t,w=j(void 0);We(()=>{s(w)&&xt(()=>{e.ref$.set(s(w))})});let y=$("aria_label_settings");async function S(I){let A=Bs(I);n()?v():f(A,So)}let T=g(()=>n()?"opened":"");Bt(t,{get className(){return s(T)},testId:"btn-settings",click:S,get ariaLabel(){return y},get ariaExpanded(){return n()},get ref(){return s(w)},set ref(I){B(w,I,!0)},children:(I,A)=>{var k=j$(),E=_(k);Md(E,{get isMobile(){return r()},get currentQuality(){return l()}}),h(k),b(I,k)},$$slots:{default:!0}}),F(),o()}var Z$=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function Yf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Z$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var X$=Ce('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function Ld(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=X$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}function Zf(t,e){H(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ee().ui.t,r=g(()=>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 os.KeyC},role:"button",children:(l,d)=>{var a=Ue(),p=fe(a);{var f=u=>{Yf(u,{})},v=u=>{Ld(u,{})};V(p,u=>{i()?u(f):u(v,!1)})}b(l,a)},$$slots:{default:!0}}),F()}var J$=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),e2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),t2={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function Vd(t,e){H(e,!0),z(t,t2);let i=m(e,"isMobile",3,!1),o=m(e,"isHidden",3,!1),n=m(e,"showDuration",3,!0),r=m(e,"ref",15),l=Et(),d=ne(!1),a=g(()=>yn(e.duration)),p=g(()=>yn(e.position));var f=e2();let v;var u=_(f),$=_(u,!0);h(u);var w=P(u,2);{var y=S=>{var T=J$(),I=_(T,!0);h(T),O(()=>$e(I,s(a))),b(S,T)};V(w,S=>{n()&&S(y)})}h(f),vs(f,()=>gl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),st(f,S=>r(S),()=>r()),O(S=>{v=ie(f,1,"time svelte-sz9er7",null,v,S),$e($,s(p))},[()=>({mobile:i()})]),b(t,f),F()}var Nd=require("@vkontakte/videoplayer-shared/es2018");var i2=Ce('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),o2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
163
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function zf(t,e){D(e,!1),z(t,O$);let[i,o]=Oe(),n=()=>C(l,"$data",i),r=Ee(),{data:l,show:d}=r.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Vr(),Uf(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var v=B$();Ci(v,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>s($).title,y=()=>s($).items;var S=N$(),T=_(S),I=_(T,!0);h(T);var A=P(T,2);Ci(A,5,y,({description:k,value:E})=>E,(k,E)=>{let R=()=>s(E).description,Q=()=>s(E).value;var q=R$(),W=_(q),G=_(W);ld(G,()=>M1(R())),h(W);var X=P(W,2),Y=_(X,!0);h(X),h(q),O(()=>$e(Y,Q())),b(k,q)}),h(A),h(S),O(()=>$e(I,w())),b(u,S)}),h(v),b(p,v)},$$slots:{default:!0}}),H(),o()}var Om=require("@vkontakte/videoplayer-shared/es2018");var Pa=require("@vkontakte/videoplayer-core/es2018");var FV=require("@vkontakte/videoplayer-shared/es2018");var D$=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 Wf(t,e){z(t,H$);var i=D$(),o=_(i);be(o,()=>{var n;return(n=e.children)!=null?n:se}),h(i),b(t,i)}var xl=require("@vkontakte/videoplayer-shared/es2018");var F$=Ce('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function qf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=F$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}var U$=Ce('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function Kf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=U$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}var z$=Ce('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function Qf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=z$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var W$=Ce('<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=W$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var q$=Ce('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function Ad(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=q$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}var wu=t=>{switch(t){case xl.VideoQuality.Q_720P:return Qf;case xl.VideoQuality.Q_1080P:return Pd;case xl.VideoQuality.Q_1440P:return Ad;case xl.VideoQuality.Q_2160P:return qf;case xl.VideoQuality.Q_4320P:return Kf}};var K$=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function Gf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=K$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var Q$=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function jf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Q$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}var G$=M('<div aria-hidden="true"><!> <!></div>'),j$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function Md(t,e){D(e,!0),z(t,j$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>wu(o())),r=g(()=>!!s(n)&&[Pd,Ad].includes(s(n)));var l=Fe(),d=fe(l);{var a=f=>{Gf(f,{})},p=f=>{var v=G$();let u;var $=_(v);{var w=T=>{Wf(T,{children:(I,A)=>{var k=Fe(),E=fe(k);Si(E,()=>s(n),(R,Q)=>{Q(R,{})}),b(I,k)},$$slots:{default:!0}})};V($,T=>{s(n)&&T(w)})}var y=P($,2);let S=g(()=>s(n)?"settings-icon--labeled":"settings-icon");jf(y,{get"data-testid"(){return s(S)},fill:"var(--btn-color, #fff)"}),h(v),O(T=>u=oe(v,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:s(r)})]),b(f,v)};V(d,f=>{i()?f(a):f(p,!1)})}b(t,l),H()}var Y$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Z$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function wl(t,e){D(e,!0),z(t,Z$);let[i,o]=Oe(),n=()=>C(p,"$settingsMenuVisible",i),r=()=>C(u,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Ee(),a=d.state.currentQuality$,p=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,u=d.ui.isMobile,$=d.ui.t,w=j(void 0);Ue(()=>{s(w)&&Ct(()=>{e.ref$.set(s(w))})});let y=$("aria_label_settings");async function S(I){let A=Bs(I);n()?v():f(A,wo)}let T=g(()=>n()?"opened":"");Nt(t,{get className(){return s(T)},testId:"btn-settings",click:S,get ariaLabel(){return y},get ariaExpanded(){return n()},get ref(){return s(w)},set ref(I){B(w,I,!0)},children:(I,A)=>{var k=Y$(),E=_(k);Md(E,{get isMobile(){return r()},get currentQuality(){return l()}}),h(k),b(I,k)},$$slots:{default:!0}}),H(),o()}var X$=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function Yf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=X$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var J$=Ce('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function Ld(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=J$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}function Zf(t,e){D(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ee().ui.t,r=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Nt(t,{testId:"btn-Subtitles",get ariaLabel(){return s(r)},get click(){return e.click},get ariaKeyShortCut(){return os.KeyC},role:"button",children:(l,d)=>{var a=Fe(),p=fe(a);{var f=u=>{Yf(u,{})},v=u=>{Ld(u,{})};V(p,u=>{i()?u(f):u(v,!1)})}b(l,a)},$$slots:{default:!0}}),H()}var e2=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),t2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),i2={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function Vd(t,e){D(e,!0),z(t,i2);let i=m(e,"isMobile",3,!1),o=m(e,"isHidden",3,!1),n=m(e,"showDuration",3,!0),r=m(e,"ref",15),l=Pt(),d=re(!1),a=g(()=>yn(e.duration)),p=g(()=>yn(e.position));var f=t2();let v;var u=_(f),$=_(u,!0);h(u);var w=P(u,2);{var y=S=>{var T=e2(),I=_(T,!0);h(T),O(()=>$e(I,s(a))),b(S,T)};V(w,S=>{n()&&S(y)})}h(f),vs(f,()=>gl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),rt(f,S=>r(S),()=>r()),O(S=>{v=oe(f,1,"time svelte-sz9er7",null,v,S),$e($,s(p))},[()=>({mobile:i()})]),b(t,f),H()}var Nd=require("@vkontakte/videoplayer-shared/es2018");var o2=Ce('<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>'),n2={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 Hs(t,e){z(t,o2);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",r=g(()=>n(i(),o()));var l=i2();O(()=>{var d;De(l,"data-value",s(r)),De(l,"data-testid",`volume-${(d=s(r))!=null?d:""}-icon`)}),b(t,l)}var Io=require("@vkontakte/videoplayer-shared/es2018");var Cu=require("@vkontakte/videoplayer-shared/es2018");var M1=require("@vkontakte/videoplayer-shared/es2018");var n2=M('<div class="overlay"><!></div>');function Xf(t,e){H(e,!0);let[i,o]=Oe(),n=()=>C(l,"$overlayContainer$",i),l=Ee().ui.overlayContainer$,d=j(void 0),a=u=>{!u||!s(d)||!u.contains(s(d))||u.removeChild(s(d))},p=u=>{!u||!s(d)||u.contains(s(d))||u.appendChild(s(d))};We(()=>{p(n())}),Ot(()=>(p(n()),()=>a(n())));var f=n2(),v=_(f);be(v,()=>{var u;return(u=e.children)!=null?u:re}),h(f),st(f,u=>B(d,u),()=>s(d)),b(t,f),F(),o()}var r2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),s2=M("<div><!></div> <!>",1),a2={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function Ca(t,e){H(e,!0),z(t,a2);let[i,o]=Oe(),n=()=>C(Q,"$overlayContainer$",i),r=()=>C(W,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),p=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),u=m(e,"maxTooltipWidth",3,void 0),$=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,M1.noop),y=5,S=j(void 0),T=j(void 0),I,A=j(0),k=j(0),E=j(0),R=j(0),G=Et(),q=Ee(),W=q.ui.playerSize,Q=q.ui.overlayContainer$;We(()=>{xt(()=>{w()(a())})});let X=q.getLogger().createComponentLog("Tooltip component"),Y=()=>{if(!n()||!s(T)||!s(S))return;B(k,y);let Z=n().getBoundingClientRect(),Ae=s(S).getBoundingClientRect(),Te=Ae.width,Ye=s(T).clientWidth,it=r().width,ht=(Te-Ye)/2,Pt=Ae.left+p()-Z.left,ct=Pt+ht,qe=Ae.top+f()-Z.top,qt=Ye/2-y,Xt=ct<8,Qt=ct+Ye>it-8;Xt&&(ct=8,qt=Pt+Ae.width/2-2.5*y),Qt&&(ct=it-8-Ye,qt=Ae.left-Z.left+Ae.width/2-ct-y),B(E,ct,!0),B(R,qe),B(A,qt,!0)},de=()=>{!n()||!s(T)||!s(S)||B(k,-y)},le=()=>{if(!n()||!s(T)||!s(S))return;B(A,y);let Z=n().getBoundingClientRect(),Ae=s(S).getBoundingClientRect(),Te=Ae.height,Ye=s(T).clientHeight,it=(Te-Ye)/2+Ye,ht=Ae.left+p()-Z.left-s(T).clientWidth,Pt=2,ct=ht-y;ct<8&&(ct=8);let qt=Ae.top+f()-Z.top+it,Xt=Pt-it/2,Qt=Pt-y;B(E,ct,!0),B(R,qt),B(k,Xt),B(A,Qt)},ve=()=>{!n()||!s(T)||!s(S)||B(A,-y)},Ie=()=>{switch($()){case"top":Y();break;case"bottom":de();break;case"left":le();break;default:ve()}},me=()=>{try{if(!n()||!s(S))return;Ie(),a(!0)}catch(Z){X({message:String(Z)})}},se=()=>{a(!1)},Le=()=>{s(T)&&(I||(I=window.setTimeout(me,G.controls.hideTimeoutTooltips)),a()&&me())},oe=()=>{se(),window.clearTimeout(I),I=void 0},N=(Z,Ae,Te)=>{let Ye="";switch($()){case"top":Ye=`transform: translate(${Z}px, ${Ae}px);`;break;case"bottom":Ye=`transform: translate(${Z}px, ${Ae}px); top: auto; bottom: 100%;`;break;case"left":Ye=`transform: translate(${Z}px, ${Ae}px); left: 0; right: auto;`;break;default:Ye=`transform: translate(${Z}px, ${Ae}px);`}return Ye+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ye+=` opacity: ${Te?1:0}; visibility: ${Te?"visible":"hidden"}`,Ye},He=(Z,Ae)=>{let Te="";switch($()){case"top":Te=`transform: translate(${Z}px, ${Ae}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Te=`transform: translate(${Z}px, ${Ae}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Te=`transform: translate(${Z}px, ${Ae}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Te=`transform: translate(${Z}px, ${Ae}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Te},_e=g(()=>N(s(E),s(R),a())),ge=g(()=>He(s(A),s(k)));Ot(Ie),On(()=>window.clearTimeout(I));var ce=s2(),ue=fe(ce);let pe;ue.__mousemove=Le,ue.__mousedown=oe,ue.__mouseup=function(...Z){var Ae;(Ae=e.disableMouseupTooltipShow?void 0:Le)==null||Ae.apply(this,Z)};var ee=_(ue);be(ee,()=>{var Z;return(Z=e.children)!=null?Z:re}),h(ue),st(ue,Z=>B(S,Z),()=>s(S));var Qe=P(ue,2);{var Xe=Z=>{Xf(Z,{children:(Ae,Te)=>{var Ye=r2(),it=_(Ye),ht=_(it,!0);h(it);var Pt=P(it,2);h(Ye),st(Ye,ct=>B(T,ct),()=>s(T)),O(()=>{dt(Ye,s(_e)),$e(ht,d()),dt(Pt,s(ge))}),b(Ae,Ye)},$$slots:{default:!0}})};V(Qe,Z=>{d()&&!l()&&Z(Xe)})}O(Z=>pe=ie(ue,1,"tooltip-wrapper svelte-hxlyne",null,pe,Z),[()=>({"full-width":v()})]),Ct("mouseenter",ue,Le),Ct("mouseleave",ue,oe),b(t,ce),F(),o()}pt(["mousemove","mousedown","mouseup"]);var L1=t=>{t.stopPropagation()},l2=M("<div><!></div>"),d2={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Eo(t,e){H(e,!0),z(t,d2);let[i,o]=Oe(),n=()=>C(p,"$isGraphOpened$",i),r=()=>C(a,"$isMobile",i),l=Ee(),d=vo(),a=l.ui.isMobile,p=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),u=m(e,"disabled",3,!1),$=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),y=m(e,"width",15,void 0),S=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),I=m(e,"tooltipActive",3,!1),A=m(e,"tooltipPlacement",3,"top"),k=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),R=m(e,"onTooltipVisibilityChange",3,Cu.noop),G=m(e,"initialTranslateXPx",3,0),q=m(e,"initialTranslateYPx",19,()=>-18),W=m(e,"mouseEnter",3,Cu.noop),Q=m(e,"mouseLeave",3,Cu.noop),X=g(()=>u()?n()?f("tooltip_disabled_when_graph_on"):k():T());var Y=l2();Y.__pointerdown=[L1],Y.__click=[L1];var de=_(Y);{var le=Ie=>{Ca(Ie,{get content(){return s(X)},get translateX(){return G()},get translateY(){return q()},get isFullWidthWrapper(){return S()},get active(){return I()},get placement(){return A()},get onVisibilityChange(){return R()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(me,se)=>{var Le=Ue(),oe=fe(Le);be(oe,()=>{var N;return(N=e.children)!=null?N:re}),b(me,Le)},$$slots:{default:!0}})},ve=Ie=>{var me=Ue(),se=fe(me);be(se,()=>{var Le;return(Le=e.children)!=null?Le:re}),b(Ie,me)};V(de,Ie=>{$()&&s(X)&&!r()?Ie(le):Ie(ve,!1)})}h(Y),st(Y,Ie=>w(Ie),()=>w()),O(()=>{var Ie;ie(Y,1,`btn-container ${(Ie=v())!=null?Ie:""}`,"svelte-p9r045"),De(Y,"aria-hidden",E()||null)}),Ct("mouseenter",Y,function(...Ie){var me;(me=W())==null||me.apply(this,Ie)}),Ct("mouseleave",Y,function(...Ie){var me;(me=Q())==null||me.apply(this,Ie)}),is(Y,"clientWidth",y),b(t,Y),F(),o()}pt(["pointerdown","click"]);var c2=Ce('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function Rd(t,e){"use strict";var i=c2(),o=_(i),n=P(o);h(i),O(()=>{De(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),De(o,"fill-opacity",e.completed?1:.24),De(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var u2=M("<div><!></div>"),p2={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function Jf(t,e){H(e,!0),z(t,p2);let o=Ee().ui.t,n=j(0),r=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Eo(t,{get tooltipContent(){return s(r)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return s(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=u2();let p;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);Rd(f,{get completed(){return s(v)}}),h(a),O(u=>{p=ie(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),dt(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),is(a,"clientWidth",u=>B(n,u)),b(l,a)},$$slots:{default:!0}}),F()}var f2=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),m2=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),v2={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
165
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Hs(t,e){z(t,n2);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",r=g(()=>n(i(),o()));var l=o2();O(()=>{var d;De(l,"data-value",s(r)),De(l,"data-testid",`volume-${(d=s(r))!=null?d:""}-icon`)}),b(t,l)}var To=require("@vkontakte/videoplayer-shared/es2018");var Cu=require("@vkontakte/videoplayer-shared/es2018");var L1=require("@vkontakte/videoplayer-shared/es2018");var r2=M('<div class="overlay"><!></div>');function Xf(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C(l,"$overlayContainer$",i),l=Ee().ui.overlayContainer$,d=j(void 0),a=u=>{!u||!s(d)||!u.contains(s(d))||u.removeChild(s(d))},p=u=>{!u||!s(d)||u.contains(s(d))||u.appendChild(s(d))};Ue(()=>{p(n())}),Ot(()=>(p(n()),()=>a(n())));var f=r2(),v=_(f);be(v,()=>{var u;return(u=e.children)!=null?u:se}),h(f),rt(f,u=>B(d,u),()=>s(d)),b(t,f),H(),o()}var s2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),a2=M("<div><!></div> <!>",1),l2={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function Ca(t,e){D(e,!0),z(t,l2);let[i,o]=Oe(),n=()=>C(G,"$overlayContainer$",i),r=()=>C(W,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),p=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),u=m(e,"maxTooltipWidth",3,void 0),$=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,L1.noop),y=5,S=j(void 0),T=j(void 0),I,A=j(0),k=j(0),E=j(0),R=j(0),Q=Pt(),q=Ee(),W=q.ui.playerSize,G=q.ui.overlayContainer$;Ue(()=>{Ct(()=>{w()(a())})});let X=q.getLogger().createComponentLog("Tooltip component"),Y=()=>{if(!n()||!s(T)||!s(S))return;B(k,y);let Z=n().getBoundingClientRect(),Ae=s(S).getBoundingClientRect(),Te=Ae.width,Ye=s(T).clientWidth,it=r().width,bt=(Te-Ye)/2,gt=Ae.left+p()-Z.left,St=gt+bt,Qe=Ae.top+f()-Z.top,zt=Ye/2-y,Xt=St<8,Yt=St+Ye>it-8;Xt&&(St=8,zt=gt+Ae.width/2-2.5*y),Yt&&(St=it-8-Ye,zt=Ae.left-Z.left+Ae.width/2-St-y),B(E,St,!0),B(R,Qe),B(A,zt,!0)},ce=()=>{!n()||!s(T)||!s(S)||B(k,-y)},le=()=>{if(!n()||!s(T)||!s(S))return;B(A,y);let Z=n().getBoundingClientRect(),Ae=s(S).getBoundingClientRect(),Te=Ae.height,Ye=s(T).clientHeight,it=(Te-Ye)/2+Ye,bt=Ae.left+p()-Z.left-s(T).clientWidth,gt=2,St=bt-y;St<8&&(St=8);let zt=Ae.top+f()-Z.top+it,Xt=gt-it/2,Yt=gt-y;B(E,St,!0),B(R,zt),B(k,Xt),B(A,Yt)},me=()=>{!n()||!s(T)||!s(S)||B(A,-y)},ke=()=>{switch($()){case"top":Y();break;case"bottom":ce();break;case"left":le();break;default:me()}},ve=()=>{try{if(!n()||!s(S))return;ke(),a(!0)}catch(Z){X({message:String(Z)})}},ae=()=>{a(!1)},Ve=()=>{s(T)&&(I||(I=window.setTimeout(ve,Q.controls.hideTimeoutTooltips)),a()&&ve())},ne=()=>{ae(),window.clearTimeout(I),I=void 0},N=(Z,Ae,Te)=>{let Ye="";switch($()){case"top":Ye=`transform: translate(${Z}px, ${Ae}px);`;break;case"bottom":Ye=`transform: translate(${Z}px, ${Ae}px); top: auto; bottom: 100%;`;break;case"left":Ye=`transform: translate(${Z}px, ${Ae}px); left: 0; right: auto;`;break;default:Ye=`transform: translate(${Z}px, ${Ae}px);`}return Ye+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ye+=` opacity: ${Te?1:0}; visibility: ${Te?"visible":"hidden"}`,Ye},He=(Z,Ae)=>{let Te="";switch($()){case"top":Te=`transform: translate(${Z}px, ${Ae}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Te=`transform: translate(${Z}px, ${Ae}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Te=`transform: translate(${Z}px, ${Ae}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Te=`transform: translate(${Z}px, ${Ae}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Te},_e=g(()=>N(s(E),s(R),a())),ge=g(()=>He(s(A),s(k)));Ot(ke),On(()=>window.clearTimeout(I));var de=a2(),ue=fe(de);let pe;ue.__mousemove=Ve,ue.__mousedown=ne,ue.__mouseup=function(...Z){var Ae;(Ae=e.disableMouseupTooltipShow?void 0:Ve)==null||Ae.apply(this,Z)};var te=_(ue);be(te,()=>{var Z;return(Z=e.children)!=null?Z:se}),h(ue),rt(ue,Z=>B(S,Z),()=>s(S));var qe=P(ue,2);{var Xe=Z=>{Xf(Z,{children:(Ae,Te)=>{var Ye=s2(),it=_(Ye),bt=_(it,!0);h(it);var gt=P(it,2);h(Ye),rt(Ye,St=>B(T,St),()=>s(T)),O(()=>{dt(Ye,s(_e)),$e(bt,d()),dt(gt,s(ge))}),b(Ae,Ye)},$$slots:{default:!0}})};V(qe,Z=>{d()&&!l()&&Z(Xe)})}O(Z=>pe=oe(ue,1,"tooltip-wrapper svelte-hxlyne",null,pe,Z),[()=>({"full-width":v()})]),Tt("mouseenter",ue,Ve),Tt("mouseleave",ue,ne),b(t,de),H(),o()}ut(["mousemove","mousedown","mouseup"]);var V1=t=>{t.stopPropagation()},d2=M("<div><!></div>"),c2={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function So(t,e){D(e,!0),z(t,c2);let[i,o]=Oe(),n=()=>C(p,"$isGraphOpened$",i),r=()=>C(a,"$isMobile",i),l=Ee(),d=po(),a=l.ui.isMobile,p=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),u=m(e,"disabled",3,!1),$=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),y=m(e,"width",15,void 0),S=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),I=m(e,"tooltipActive",3,!1),A=m(e,"tooltipPlacement",3,"top"),k=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),R=m(e,"onTooltipVisibilityChange",3,Cu.noop),Q=m(e,"initialTranslateXPx",3,0),q=m(e,"initialTranslateYPx",19,()=>-18),W=m(e,"mouseEnter",3,Cu.noop),G=m(e,"mouseLeave",3,Cu.noop),X=g(()=>u()?n()?f("tooltip_disabled_when_graph_on"):k():T());var Y=d2();Y.__pointerdown=[V1],Y.__click=[V1];var ce=_(Y);{var le=ke=>{Ca(ke,{get content(){return s(X)},get translateX(){return Q()},get translateY(){return q()},get isFullWidthWrapper(){return S()},get active(){return I()},get placement(){return A()},get onVisibilityChange(){return R()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(ve,ae)=>{var Ve=Fe(),ne=fe(Ve);be(ne,()=>{var N;return(N=e.children)!=null?N:se}),b(ve,Ve)},$$slots:{default:!0}})},me=ke=>{var ve=Fe(),ae=fe(ve);be(ae,()=>{var Ve;return(Ve=e.children)!=null?Ve:se}),b(ke,ve)};V(ce,ke=>{$()&&s(X)&&!r()?ke(le):ke(me,!1)})}h(Y),rt(Y,ke=>w(ke),()=>w()),O(()=>{var ke;oe(Y,1,`btn-container ${(ke=v())!=null?ke:""}`,"svelte-p9r045"),De(Y,"aria-hidden",E()||null)}),Tt("mouseenter",Y,function(...ke){var ve;(ve=W())==null||ve.apply(this,ke)}),Tt("mouseleave",Y,function(...ke){var ve;(ve=G())==null||ve.apply(this,ke)}),is(Y,"clientWidth",y),b(t,Y),H(),o()}ut(["pointerdown","click"]);var u2=Ce('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function Rd(t,e){"use strict";var i=u2(),o=_(i),n=P(o);h(i),O(()=>{De(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),De(o,"fill-opacity",e.completed?1:.24),De(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var p2=M("<div><!></div>"),f2={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function Jf(t,e){D(e,!0),z(t,f2);let o=Ee().ui.t,n=j(0),r=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));So(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=p2();let p;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);Rd(f,{get completed(){return s(v)}}),h(a),O(u=>{p=oe(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),dt(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),is(a,"clientWidth",u=>B(n,u)),b(l,a)},$$slots:{default:!0}}),H()}var m2=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),v2=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),g2={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 em(t,e){z(t,v2);let i=m(e,"videoEpisodes",19,()=>[]);var o=m2();wi(o,21,i,n=>n.from,(n,r)=>{var l=f2();let d;var a=_(l),p=_(a),f=P(p,2);let v;h(a),h(l),O((u,$)=>{d=ie(l,1,"video-episode svelte-1u6kv8l",null,d,u),dt(l,`left: ${s(r).from}%; width: ${s(r).width}%`),dt(p,`transform: translateX(${s(r).loadedWidth/s(r).width*100}%)`),v=ie(f,1,"video-episode-filled svelte-1u6kv8l",null,v,$),dt(f,`transform: translateX(${s(r).filledWidth/s(r).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,l)}),h(o),b(t,o)}function g2(t,e,i,o,n,r,l){if(t.preventDefault(),e()&&B(i,e().getBoundingClientRect(),!0),o()||s(n)||!e())return;B(n,!0);let d=r(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function h2(t,e,i,o,n,r,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),p=o(t.clientX);n()(a,p,s(r).width),s(l)&&d()(a)}function _2(t,e,i,o,n){if(t.preventDefault(),e()||!s(i))return;B(i,!1);let r=o(t.clientX,t.clientY);n()(r)}function b2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function $2(t,e,i,o,n,r){let l=e(t.clientX,t.clientY);i()&&o()(l),B(n,!1),r()(l)}var y2=M("<div></div>"),x2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),w2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),C2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
167
+ .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function em(t,e){z(t,g2);let i=m(e,"videoEpisodes",19,()=>[]);var o=v2();Ci(o,21,i,n=>n.from,(n,r)=>{var l=m2();let d;var a=_(l),p=_(a),f=P(p,2);let v;h(a),h(l),O((u,$)=>{d=oe(l,1,"video-episode svelte-1u6kv8l",null,d,u),dt(l,`left: ${s(r).from}%; width: ${s(r).width}%`),dt(p,`transform: translateX(${s(r).loadedWidth/s(r).width*100}%)`),v=oe(f,1,"video-episode-filled svelte-1u6kv8l",null,v,$),dt(f,`transform: translateX(${s(r).filledWidth/s(r).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,l)}),h(o),b(t,o)}function h2(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 _2(t,e,i,o,n,r,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),p=o(t.clientX);n()(a,p,s(r).width),s(l)&&d()(a)}function b2(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 $2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function y2(t,e,i,o,n,r){let l=e(t.clientX,t.clientY);i()&&o()(l),B(n,!1),r()(l)}var x2=M("<div></div>"),w2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),C2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),S2={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 Sa(t,e){H(e,!0),z(t,C2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),r=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),p=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),u=m(e,"isInteractive",3,!1),$=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,Io.noop),S=m(e,"onHandleMove",3,Io.noop),T=m(e,"onPointerUp",3,Io.noop),I=m(e,"onPointerEnter",3,Io.noop),A=m(e,"onPointerMove",3,Io.noop),k=m(e,"onPointerLeave",3,Io.noop),E=m(e,"onMouseEnter",3,Io.noop),R=m(e,"onMouseLeave",3,Io.noop),G=m(e,"onWheelUp",3,Io.noop),q=m(e,"onWheelDown",3,Io.noop),W=m(e,"onWheelLeft",3,Io.noop),Q=m(e,"onWheelRight",3,Io.noop),X=m(e,"onDisabledClick",3,Io.noop),Y=m(e,"loadedProgress",3,0),de=m(e,"filledProgress",3,0),le=m(e,"handleProgress",3,0),ve=m(e,"ariaLabel",3,""),Ie=m(e,"ariaValueMin",3,void 0),me=m(e,"ariaValueMax",3,void 0),se=m(e,"ariaValueNow",3,void 0),Le=m(e,"ariaValueText",3,""),oe=m(e,"onContextMenu",3,Io.noop),N=Et(),He=j(void 0),_e=j(!1),ge=g(()=>{var te;return(te=me())!=null?te:0}),ce=g(()=>{var te;return(0,Io.isNonNullable)(f())&&((te=f()[f().length-1])==null?void 0:te.time)<s(ge)}),ue=g(()=>(0,Io.isNonNullable)(f())&&f().length&&s(ce)&&s(ge)?Ye(Y()*100,de()*100):[]);function pe(te){if(te.preventDefault(),i()&&B(He,i().getBoundingClientRect(),!0),$())return;let Ne=Ae(te.clientX,te.clientY),ze=Te(te.clientX);I()(Ne,ze,s(He).width)}function ee(te){te.preventDefault(),!$()&&k()()}function Qe(){E()()}function Xe(){R()()}function Z(te){$()||v()&&(te.preventDefault(),te.deltaY<0?G()():te.deltaY>0?q()():te.deltaX>0?Q()():W()())}function Ae(te,Ne){return l()?Math.max(0,Math.min(1,(s(He).height-(Ne-s(He).top))/s(He).height)):Math.min(Math.max(te-s(He).x,0),s(He).width)/s(He).width}function Te(te){return Math.min(Math.max(te-s(He).x,0),s(He).width)}function Ye(te,Ne){let ze=N.features.episodesClustering&&!u()?N.episodeMinWidthPc:0,Ve=[],Fe=f()[0].time/s(ge)*100,Re=0,et=0;for(let ot=1;ot<f().length;ot++)Re=f()[ot].time/s(ge)*100,Re-Fe>ze&&(Ve.push({from:Fe,width:Math.max(0,Re-Fe),loadedWidth:Math.max(0,Math.min(Re,te)-Fe),filledWidth:Math.max(0,Math.min(Re,Ne)-Fe),interactive:f()[ot-1].interactive,completed:f()[ot-1].completed}),Fe=f()[ot].time/s(ge)*100,et++);let kt={from:Fe,width:Math.max(0,100-Fe),loadedWidth:Math.max(0,Math.min(te,100)-Fe),filledWidth:Math.max(0,Math.min(Ne,100)-Fe),interactive:f()[et].interactive,completed:f()[et].completed};100-Fe<ze?(et-=1,Ve[et].width+=100-Fe,Ve[et].loadedWidth+=Math.max(0,Math.min(te,100)-Fe),Ve[et].filledWidth+=Math.max(0,Math.min(Ne,100)-Fe)):Ve[et]=kt;let Gt=f()[0].time;if(Gt!==0){let ot=Gt/s(ge)*100;Ve.unshift({from:0,width:ot,loadedWidth:Math.min(ot,te),filledWidth:Math.min(ot,Ne)})}return Ve}function it(te){return Math.max(0,Math.min(100,te*100))}var ht=w2(),Pt=fe(ht);{var ct=te=>{var Ne=y2();let ze;wi(Ne,21,()=>s(ue),Ve=>Ve.from,(Ve,Fe)=>{var Re=Ue(),et=fe(Re);{var kt=Gt=>{Jf(Gt,{get videoEpisode(){return s(Fe)},get disabled(){return $()}})};V(et,Gt=>{s(Fe).interactive&&Gt(kt)})}b(Ve,Re)}),h(Ne),O(Ve=>ze=ie(Ne,1,"interactive-icons svelte-1tpemng",null,ze,Ve),[()=>({mobile:a(),hidden:a()&&!s(_e)})]),b(te,Ne)};V(Pt,te=>{u()&&te(ct)})}var qe=P(Pt,2);let qt;qe.__pointerdown=[g2,i,He,$,_e,Ae,y],qe.__pointermove=[h2,$,Ae,Te,A,He,_e,S],qe.__pointerup=[_2,$,_e,Ae,T],qe.__click=[b2,$,X,Ae],qe.__contextmenu=[$2,Ae,$,X,_e,oe];var Xt=_(qe);{var Qt=te=>{em(te,{get videoEpisodes(){return s(ue)},get disabled(){return $()},get isMobile(){return a()}})},Kt=te=>{var Ne=x2(),ze=_(Ne),Ve=P(ze,2);let Fe;h(Ne),O((Re,et,kt)=>{dt(ze,Re),Fe=ie(Ve,1,"filled svelte-1tpemng",null,Fe,et),dt(Ve,kt)},[()=>`transform: translateX(${it(Y())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${it(de())}%);`]),b(te,Ne)};V(Xt,te=>{s(ue).length?te(Qt):te(Kt,!1)})}var ae=P(Xt,2);let It;var xe=_(ae);let he;h(ae),h(qe),st(qe,te=>i(te),()=>i()),O((te,Ne,ze,Ve)=>{var Fe,Re;qt=ie(qe,1,`slider ${(Fe=o())!=null?Fe:""}`,"svelte-1tpemng",qt,te),De(qe,"aria-label",ve()),De(qe,"aria-valuemin",Ie()),De(qe,"aria-valuemax",me()),De(qe,"aria-valuenow",se()),De(qe,"aria-valuetext",Le()),De(qe,"data-testid",(Re=n())!=null?Re:null),It=ie(ae,1,"handleWrap svelte-1tpemng",null,It,Ne),dt(ae,ze),he=ie(xe,1,"handle svelte-1tpemng",null,he,Ve)},[()=>({disabled:$(),"slider-dragging":s(_e),hidden:r(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${it(le())}%);`,()=>({"active-live":d()})]),Ct("pointerenter",qe,pe),Ct("pointerleave",qe,ee),Ct("mouseenter",qe,Qe),Ct("mouseleave",qe,Xe),Ct("wheel",qe,Z),b(t,ht),F()}pt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Hi=(t,e)=>ua[t]>=ua[e],V1=(t,e)=>ua[t]<ua[e],Fs=(t,e)=>ua[t]<=ua[e],R1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var S2=M("<div><!></div>"),T2=M("<div><!> <!></div>"),E2={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;margin:0 8px;position:relative;width:70px;--slider-height: var(--slider-volume-height);--slider-radius: var(--slider-volume-radius);--slider-handle-size: var(--slider-volume-handle-size);--slider-bg: var(--volume-slider-bg);--slider-filled-bg: var(--volume-slider-filled-bg);--slider-handle-bg: var(--volume-slider-handle-bg);}.volumeBar-slider-vertical {width:50px !important;}.volumeBar-vertical.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function tm(t,e){var Z,Ae;H(e,!0),z(t,E2);let[i,o]=Oe(),n=()=>C(I,"$isAudioAvailable$",i),r=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),a=Ee(),p=Et(),f=a.state.volume$,v=a.state.muted$,{setVolume:u,startVolumeChanging:$,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,S=(Z=a.callbacks)==null?void 0:Z.onAudioDoesNotExistHint,T=(Ae=a.callbacks)==null?void 0:Ae.onAudioDisabledHint,I=a.state.isAudioAvailable$,A=a.state.isAudioDisabled,k=a.ui.t,E=j(!1),R,G=g(()=>e.isAds||n()),q=g(()=>!s(G)||r()||l()===0),W=g(()=>Fs(d(),"s")),Q=g(()=>s(W)?"":s(q)?!n()||A?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),X=g(()=>s(q)?k("tooltip_volume"):k("tooltip_volume_muted")),Y=g(()=>s(q)?0:l()),de=!1,le=g(()=>e.isAds?!1:A?!T:n()?!1:!S);function ve(Te){$(),u(Te)}function Ie(){yu(a,l(),p.controls.volumeStepWheel)}function me(){xu(a,l(),p.controls.volumeStepWheel)}function se(Te){u(Te)}function Le(Te){u(Te),w()}function oe(){de=!0}function N(){de=!1,ge()}function He(){clearTimeout(R),B(E,!0)}function _e(){ge()}function ge(){R=window.setTimeout(()=>{de||B(E,!1)},p.controls.volumeBarTimeout)}function ce(Te){Te.preventDefault(),Te.deltaY<0?Ie():Te.deltaY>0&&me()}var ue=T2();let pe;var ee=_(ue);Ca(ee,{get content(){return s(Q)},translateY:-18,children:(Te,Ye)=>{let it=g(()=>s(W)?"btn-volume-vertical":"btn-volume-horizontal");Bt(Te,{className:"btn-full-opacity",get disabled(){return s(le)},get testId(){return s(it)},get ariaLabel(){return s(X)},get click(){return e.click},get ariaKeyShortCut(){return os.KeyM},role:"button",children:(ht,Pt)=>{Hs(ht,{get volume(){return l()},get muted(){return s(q)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Qe=P(ee,2);{var Xe=Te=>{var Ye=S2();let it;var ht=_(Ye);let Pt=g(()=>s(W)?"volumeBar-slider-vertical":""),ct=g(()=>s(W)&&!s(E)),qe=g(()=>s(W)?oe:Nd.noop),qt=g(()=>s(W)?N:Nd.noop),Xt=g(()=>Math.round(s(Y)*100)),Qt=g(()=>`${Math.round(s(Y)*100)}%`),Kt=g(()=>s(W)?"volume-slider-vertical":"volume-slider");Sa(ht,{get className(){return s(Pt)},get isHidden(){return s(ct)},get isVertical(){return s(W)},withWheelHandler:!0,onWheelUp:Ie,onWheelDown:me,onPointerDown:ve,onHandleMove:se,onPointerUp:Le,get onPointerEnter(){return s(qe)},get onPointerLeave(){return s(qt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return s(Xt)},get ariaValueText(){return s(Qt)},get filledProgress(){return s(Y)},get handleProgress(){return s(Y)},get testId(){return s(Kt)}}),h(Ye),O(ae=>it=ie(Ye,1,"volumeBar svelte-1auih1j",null,it,ae),[()=>({"volumeBar-vertical":s(W)})]),b(Te,Ye)};V(Qe,Te=>{s(G)&&Te(Xe)})}h(ue),O(Te=>pe=ie(ue,1,"volumeBar-container svelte-1auih1j",null,pe,Te),[()=>({vertical:s(W)})]),Ct("mouseenter",ue,function(...Te){var Ye;(Ye=s(W)?He:Nd.noop)==null||Ye.apply(this,Te)}),Ct("mouseleave",ue,function(...Te){var Ye;(Ye=s(W)?_e:Nd.noop)==null||Ye.apply(this,Te)}),Ct("wheel",ue,ce),b(t,ue),F(),o()}var N1=require("@vkontakte/videoplayer-shared/es2018");var I2=Ce('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function im(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=I2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var k2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function om(t,e){z(t,k2);let i=m(e,"isFullscreen",8,!1),o=Pr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");im(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function Bd(t,e){H(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,N1.noop),n=Ee(),r=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Bt(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:p=>{let f=Bs(p);r.set(f),o()()},get ariaKeyShortCut(){return os.KeyF},role:"button",children:(p,f)=>{om(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var P2=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function nm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=P2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var A2=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function rm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=A2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(4),h(o),b(t,o)}var M2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
172
+ .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function Sa(t,e){D(e,!0),z(t,S2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),r=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),p=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),u=m(e,"isInteractive",3,!1),$=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,To.noop),S=m(e,"onHandleMove",3,To.noop),T=m(e,"onPointerUp",3,To.noop),I=m(e,"onPointerEnter",3,To.noop),A=m(e,"onPointerMove",3,To.noop),k=m(e,"onPointerLeave",3,To.noop),E=m(e,"onMouseEnter",3,To.noop),R=m(e,"onMouseLeave",3,To.noop),Q=m(e,"onWheelUp",3,To.noop),q=m(e,"onWheelDown",3,To.noop),W=m(e,"onWheelLeft",3,To.noop),G=m(e,"onWheelRight",3,To.noop),X=m(e,"onDisabledClick",3,To.noop),Y=m(e,"loadedProgress",3,0),ce=m(e,"filledProgress",3,0),le=m(e,"handleProgress",3,0),me=m(e,"ariaLabel",3,""),ke=m(e,"ariaValueMin",3,void 0),ve=m(e,"ariaValueMax",3,void 0),ae=m(e,"ariaValueNow",3,void 0),Ve=m(e,"ariaValueText",3,""),ne=m(e,"onContextMenu",3,To.noop),N=Pt(),He=j(void 0),_e=j(!1),ge=g(()=>{var ie;return(ie=ve())!=null?ie:0}),de=g(()=>{var ie;return(0,To.isNonNullable)(f())&&((ie=f()[f().length-1])==null?void 0:ie.time)<s(ge)}),ue=g(()=>(0,To.isNonNullable)(f())&&f().length&&s(de)&&s(ge)?Ye(Y()*100,ce()*100):[]);function pe(ie){if(ie.preventDefault(),i()&&B(He,i().getBoundingClientRect(),!0),$())return;let Be=Ae(ie.clientX,ie.clientY),ze=Te(ie.clientX);I()(Be,ze,s(He).width)}function te(ie){ie.preventDefault(),!$()&&k()()}function qe(){E()()}function Xe(){R()()}function Z(ie){$()||v()&&(ie.preventDefault(),ie.deltaY<0?Q()():ie.deltaY>0?q()():ie.deltaX>0?G()():W()())}function Ae(ie,Be){return l()?Math.max(0,Math.min(1,(s(He).height-(Be-s(He).top))/s(He).height)):Math.min(Math.max(ie-s(He).x,0),s(He).width)/s(He).width}function Te(ie){return Math.min(Math.max(ie-s(He).x,0),s(He).width)}function Ye(ie,Be){let ze=N.features.episodesClustering&&!u()?N.episodeMinWidthPc:0,Me=[],We=f()[0].time/s(ge)*100,Re=0,et=0;for(let Je=1;Je<f().length;Je++)Re=f()[Je].time/s(ge)*100,Re-We>ze&&(Me.push({from:We,width:Math.max(0,Re-We),loadedWidth:Math.max(0,Math.min(Re,ie)-We),filledWidth:Math.max(0,Math.min(Re,Be)-We),interactive:f()[Je-1].interactive,completed:f()[Je-1].completed}),We=f()[Je].time/s(ge)*100,et++);let Lt={from:We,width:Math.max(0,100-We),loadedWidth:Math.max(0,Math.min(ie,100)-We),filledWidth:Math.max(0,Math.min(Be,100)-We),interactive:f()[et].interactive,completed:f()[et].completed};100-We<ze?(et-=1,Me[et].width+=100-We,Me[et].loadedWidth+=Math.max(0,Math.min(ie,100)-We),Me[et].filledWidth+=Math.max(0,Math.min(Be,100)-We)):Me[et]=Lt;let Kt=f()[0].time;if(Kt!==0){let Je=Kt/s(ge)*100;Me.unshift({from:0,width:Je,loadedWidth:Math.min(Je,ie),filledWidth:Math.min(Je,Be)})}return Me}function it(ie){return Math.max(0,Math.min(100,ie*100))}var bt=C2(),gt=fe(bt);{var St=ie=>{var Be=x2();let ze;Ci(Be,21,()=>s(ue),Me=>Me.from,(Me,We)=>{var Re=Fe(),et=fe(Re);{var Lt=Kt=>{Jf(Kt,{get videoEpisode(){return s(We)},get disabled(){return $()}})};V(et,Kt=>{s(We).interactive&&Kt(Lt)})}b(Me,Re)}),h(Be),O(Me=>ze=oe(Be,1,"interactive-icons svelte-1tpemng",null,ze,Me),[()=>({mobile:a(),hidden:a()&&!s(_e)})]),b(ie,Be)};V(gt,ie=>{u()&&ie(St)})}var Qe=P(gt,2);let zt;Qe.__pointerdown=[h2,i,He,$,_e,Ae,y],Qe.__pointermove=[_2,$,Ae,Te,A,He,_e,S],Qe.__pointerup=[b2,$,_e,Ae,T],Qe.__click=[$2,$,X,Ae],Qe.__contextmenu=[y2,Ae,$,X,_e,ne];var Xt=_(Qe);{var Yt=ie=>{em(ie,{get videoEpisodes(){return s(ue)},get disabled(){return $()},get isMobile(){return a()}})},Wt=ie=>{var Be=w2(),ze=_(Be),Me=P(ze,2);let We;h(Be),O((Re,et,Lt)=>{dt(ze,Re),We=oe(Me,1,"filled svelte-1tpemng",null,We,et),dt(Me,Lt)},[()=>`transform: translateX(${it(Y())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${it(ce())}%);`]),b(ie,Be)};V(Xt,ie=>{s(ue).length?ie(Yt):ie(Wt,!1)})}var ee=P(Xt,2);let Bt;var xe=_(ee);let he;h(ee),h(Qe),rt(Qe,ie=>i(ie),()=>i()),O((ie,Be,ze,Me)=>{var We,Re;zt=oe(Qe,1,`slider ${(We=o())!=null?We:""}`,"svelte-1tpemng",zt,ie),De(Qe,"aria-label",me()),De(Qe,"aria-valuemin",ke()),De(Qe,"aria-valuemax",ve()),De(Qe,"aria-valuenow",ae()),De(Qe,"aria-valuetext",Ve()),De(Qe,"data-testid",(Re=n())!=null?Re:null),Bt=oe(ee,1,"handleWrap svelte-1tpemng",null,Bt,Be),dt(ee,ze),he=oe(xe,1,"handle svelte-1tpemng",null,he,Me)},[()=>({disabled:$(),"slider-dragging":s(_e),hidden:r(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${it(le())}%);`,()=>({"active-live":d()})]),Tt("pointerenter",Qe,pe),Tt("pointerleave",Qe,te),Tt("mouseenter",Qe,qe),Tt("mouseleave",Qe,Xe),Tt("wheel",Qe,Z),b(t,bt),H()}ut(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Hi=(t,e)=>ua[t]>=ua[e],R1=(t,e)=>ua[t]<ua[e],Fs=(t,e)=>ua[t]<=ua[e],N1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var T2=M("<div><!></div>"),E2=M("<div><!> <!></div>"),I2={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;margin:0 8px;position:relative;width:70px;--slider-height: var(--slider-volume-height);--slider-radius: var(--slider-volume-radius);--slider-handle-size: var(--slider-volume-handle-size);--slider-bg: var(--volume-slider-bg);--slider-filled-bg: var(--volume-slider-filled-bg);--slider-handle-bg: var(--volume-slider-handle-bg);}.volumeBar-slider-vertical {width:50px !important;}.volumeBar-vertical.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function tm(t,e){var Z,Ae;D(e,!0),z(t,I2);let[i,o]=Oe(),n=()=>C(I,"$isAudioAvailable$",i),r=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),a=Ee(),p=Pt(),f=a.state.volume$,v=a.state.muted$,{setVolume:u,startVolumeChanging:$,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,S=(Z=a.callbacks)==null?void 0:Z.onAudioDoesNotExistHint,T=(Ae=a.callbacks)==null?void 0:Ae.onAudioDisabledHint,I=a.state.isAudioAvailable$,A=a.state.isAudioDisabled,k=a.ui.t,E=j(!1),R,Q=g(()=>e.isAds||n()),q=g(()=>!s(Q)||r()||l()===0),W=g(()=>Fs(d(),"s")),G=g(()=>s(W)?"":s(q)?!n()||A?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),X=g(()=>s(q)?k("tooltip_volume"):k("tooltip_volume_muted")),Y=g(()=>s(q)?0:l()),ce=!1,le=g(()=>e.isAds?!1:A?!T:n()?!1:!S);function me(Te){$(),u(Te)}function ke(){yu(a,l(),p.controls.volumeStepWheel)}function ve(){xu(a,l(),p.controls.volumeStepWheel)}function ae(Te){u(Te)}function Ve(Te){u(Te),w()}function ne(){ce=!0}function N(){ce=!1,ge()}function He(){clearTimeout(R),B(E,!0)}function _e(){ge()}function ge(){R=window.setTimeout(()=>{ce||B(E,!1)},p.controls.volumeBarTimeout)}function de(Te){Te.preventDefault(),Te.deltaY<0?ke():Te.deltaY>0&&ve()}var ue=E2();let pe;var te=_(ue);Ca(te,{get content(){return s(G)},translateY:-18,children:(Te,Ye)=>{let it=g(()=>s(W)?"btn-volume-vertical":"btn-volume-horizontal");Nt(Te,{className:"btn-full-opacity",get disabled(){return s(le)},get testId(){return s(it)},get ariaLabel(){return s(X)},get click(){return e.click},get ariaKeyShortCut(){return os.KeyM},role:"button",children:(bt,gt)=>{Hs(bt,{get volume(){return l()},get muted(){return s(q)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var qe=P(te,2);{var Xe=Te=>{var Ye=T2();let it;var bt=_(Ye);let gt=g(()=>s(W)?"volumeBar-slider-vertical":""),St=g(()=>s(W)&&!s(E)),Qe=g(()=>s(W)?ne:Nd.noop),zt=g(()=>s(W)?N:Nd.noop),Xt=g(()=>Math.round(s(Y)*100)),Yt=g(()=>`${Math.round(s(Y)*100)}%`),Wt=g(()=>s(W)?"volume-slider-vertical":"volume-slider");Sa(bt,{get className(){return s(gt)},get isHidden(){return s(St)},get isVertical(){return s(W)},withWheelHandler:!0,onWheelUp:ke,onWheelDown:ve,onPointerDown:me,onHandleMove:ae,onPointerUp:Ve,get onPointerEnter(){return s(Qe)},get onPointerLeave(){return s(zt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return s(Xt)},get ariaValueText(){return s(Yt)},get filledProgress(){return s(Y)},get handleProgress(){return s(Y)},get testId(){return s(Wt)}}),h(Ye),O(ee=>it=oe(Ye,1,"volumeBar svelte-1auih1j",null,it,ee),[()=>({"volumeBar-vertical":s(W)})]),b(Te,Ye)};V(qe,Te=>{s(Q)&&Te(Xe)})}h(ue),O(Te=>pe=oe(ue,1,"volumeBar-container svelte-1auih1j",null,pe,Te),[()=>({vertical:s(W)})]),Tt("mouseenter",ue,function(...Te){var Ye;(Ye=s(W)?He:Nd.noop)==null||Ye.apply(this,Te)}),Tt("mouseleave",ue,function(...Te){var Ye;(Ye=s(W)?_e:Nd.noop)==null||Ye.apply(this,Te)}),Tt("wheel",ue,de),b(t,ue),H(),o()}var B1=require("@vkontakte/videoplayer-shared/es2018");var k2=Ce('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function im(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=k2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var P2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function om(t,e){z(t,P2);let i=m(e,"isFullscreen",8,!1),o=Pr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");im(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function Bd(t,e){D(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,B1.noop),n=Ee(),r=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Nt(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:p=>{let f=Bs(p);r.set(f),o()()},get ariaKeyShortCut(){return os.KeyF},role:"button",children:(p,f)=>{om(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var A2=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function nm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=A2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var M2=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function rm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=M2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(4),h(o),b(t,o)}var L2={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 sm(t,e){z(t,M2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",r=21,l=g(()=>!o()&&!i()?91:i()?r:95),d=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=g(()=>`0 0 ${s(l)+1} 24`);rm(t,{get width(){return s(l)},height:"24",get viewBox(){return s(a)},get"data-testid"(){return s(d)}})}function Od(t,e){H(e,!0);let[i,o]=Oe(),n=()=>C($,"$isMobile",i),r=()=>C(u,"$currentGridType$",i),l=()=>C(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),p=m(e,"targetUrl",3,""),f=Et(),v=Ee(),u=v.ui.currentGridType$,$=v.ui.isMobile,w=v.ui.t,y=v.isCyrillicRelatedInterface$,S=g(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=g(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),I=g(()=>(n()||Fs(r(),"l"))&&s(T)),A=()=>{var R,G;e.click(),(R=v.callbacks)!=null&&R.onLogoClicked?(G=v.callbacks)==null||G.onLogoClicked():p()&&window.open(p(),"_blank")},k=g(()=>!a()),E=g(()=>s(T)?"btn-vk-video-logo":"btn-vk-logo");Bt(t,{className:"btn-full-opacity",get disabled(){return s(k)},click:A,get testId(){return s(E)},get ariaLabel(){return s(S)},get ref(){return d()},set ref(R){d(R)},children:(R,G)=>{var q=Ue(),W=fe(q);{var Q=Y=>{sm(Y,{get short(){return s(I)},get isCyrillic(){return l()}})},X=Y=>{nm(Y,{})};V(W,Y=>{s(T)?Y(Q):Y(X,!1)})}b(R,q)},$$slots:{default:!0}}),F(),o()}var B1=require("@vkontakte/videoplayer-core/es2018");var am=require("@vkontakte/videoplayer-core/es2018"),V2=Ce('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),R2=Ce('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),N2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
176
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function sm(t,e){z(t,L2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",r=21,l=g(()=>!o()&&!i()?91:i()?r:95),d=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=g(()=>`0 0 ${s(l)+1} 24`);rm(t,{get width(){return s(l)},height:"24",get viewBox(){return s(a)},get"data-testid"(){return s(d)}})}function Od(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C($,"$isMobile",i),r=()=>C(u,"$currentGridType$",i),l=()=>C(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),p=m(e,"targetUrl",3,""),f=Pt(),v=Ee(),u=v.ui.currentGridType$,$=v.ui.isMobile,w=v.ui.t,y=v.isCyrillicRelatedInterface$,S=g(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=g(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),I=g(()=>(n()||Fs(r(),"l"))&&s(T)),A=()=>{var R,Q;e.click(),(R=v.callbacks)!=null&&R.onLogoClicked?(Q=v.callbacks)==null||Q.onLogoClicked():p()&&window.open(p(),"_blank")},k=g(()=>!a()),E=g(()=>s(T)?"btn-vk-video-logo":"btn-vk-logo");Nt(t,{className:"btn-full-opacity",get disabled(){return s(k)},click:A,get testId(){return s(E)},get ariaLabel(){return s(S)},get ref(){return d()},set ref(R){d(R)},children:(R,Q)=>{var q=Fe(),W=fe(q);{var G=Y=>{sm(Y,{get short(){return s(I)},get isCyrillic(){return l()}})},X=Y=>{nm(Y,{})};V(W,Y=>{s(T)?Y(G):Y(X,!1)})}b(R,q)},$$slots:{default:!0}}),H(),o()}var O1=require("@vkontakte/videoplayer-core/es2018");var am=require("@vkontakte/videoplayer-core/es2018"),R2=Ce('<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>'),N2=Ce('<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>'),B2={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.`},c1=rb;var hs=new Map;hs.set(pl.Interf
221
221
  100% {
222
222
  opacity: 1;
223
223
  }
224
- }`};function lm(t,e){H(e,!0),z(t,N2);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===am.ChromecastState.CONNECTED),n=g(()=>e.iconState===am.ChromecastState.CONNECTING);var r=Ue(),l=fe(r);{var d=p=>{var f=V2(),v=_(f),u=_(v),$=_(u);we(),h(u);var w=P(u);we(),h(v);var y=P(v),S=_(y),T=_(S);h(S),we(),h(y),h(f),O(()=>{De($,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),De(w,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),De(T,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)")}),b(p,f)},a=p=>{var f=R2();let v;var u=_(f),$=P(_(u),5);let w;h(u),h(f),O((y,S)=>{v=ie(f,0,"svelte-8z1bf5",null,v,y),w=ie($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:s(n)}),()=>({hidden:!s(o)})]),b(p,f)};V(l,p=>{i()?p(d):p(a,!1)})}b(t,r),F()}var O1=require("@vkontakte/videoplayer-shared/es2018");function Dd(t,e){H(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,O1.noop),l=Ee().ui.t,d=g(()=>e.state===B1.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));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,p)=>{lm(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),F()}var B2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),O2={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function dm(t,e){z(t,O2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),r=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=j(void 0),p=j(void 0);function f(S){if(!s(p))return 0;let{width:T}=s(p).getBoundingClientRect(),I=T/2;return S<I?I+l():S>e.containerWidth-I?e.containerWidth-I-d():S}let v=g(()=>f(n()));var u=B2(),$=_(u);let w;var y=_($);be(y,()=>{var S;return(S=e.children)!=null?S:re}),h($),st($,S=>B(p,S),()=>s(p)),h(u),st(u,S=>B(a,S),()=>s(a)),O(S=>{dt(u,`transform: translate(${s(v)}px, ${r()}px);`),w=ie($,1,"tooltip svelte-5ygsa2",null,w,S),dt($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,u)}var Su=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var D1=t=>!!(Math.round(Math.abs(t)/90)%2),H1=t=>Math.abs(t)/90%4===1;var D2=M('<div class="preview svelte-1wqg760"></div>'),H2=M('<div class="time svelte-1wqg760"> </div>'),F2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),U2={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function cm(t,e){H(e,!0),z(t,U2);let[i,o]=Oe(),n=()=>C(w,"$rotateAlpha",i),r=()=>C(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),p=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),u=m(e,"isInteractive",3,!1),$=Ee(),w=$.ui.rotateAlpha,y=$.ui.playerSize,S=j(0),T=j(0),I=j(""),A=j(0),k=j(0),E=j(0),R=j(0),G=g(()=>Su(f(),v(),p())),q=g(()=>D1(n())),W=g(()=>H1(n())),Q=g(de),X=g(()=>(s(W)?1:-1)*(s(S)/2-s(T)/2)),Y=g(()=>s(X)*-1);We(()=>{(ue=>{B(S,ue.width,!0),B(T,ue.height,!0)})(ve())}),We(()=>{(ue=>{B(I,ue.imgSrc,!0),B(A,ue.imgWidth,!0),B(k,ue.imgHeight,!0),B(E,ue.imgOffsetX,!0),B(R,ue.imgOffsetY,!0)})(Ie(f()))});function de(){var Qe;let ue=a()?l.MOBILE:l.DESKTOP,{isVertical:pe}=le(),ee=30;return(Qe=s(G))!=null&&Qe.text&&(ee+=16),(pe||s(q))&&(ee+=18,ee+=50),Math.min(Math.max(r().height-ee,0),ue)}function le(){let ue=e.previewThumbsData.frameWidth,pe=e.previewThumbsData.frameHeight,ee=pe>ue;return{width:ue,height:pe,isHorizontal:!ee,isVertical:ee}}function ve(){let{height:ue,isHorizontal:pe,isVertical:ee,width:Qe}=le();return pe&&(ue=ue/Qe*s(Q),Qe=s(Q)),ee&&(Qe=Qe/ue*s(Q),ue=s(Q)),{width:Qe,height:ue}}function Ie(ue){let pe;e.previewThumbsData.isUV?pe=Math.floor(v()*ue/e.previewThumbsData.frequency):pe=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ue)));let ee=Math.floor(pe/e.previewThumbsData.countPerImage),Qe=Math.floor(pe%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Xe=pe%e.previewThumbsData.countPerRow,Z=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Z=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Z++);let Ae=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ae=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Te=s(S)*Ae,Ye=s(T)*Z,it=-Xe*s(S),ht=-Qe*s(T);return{imgSrc:e.previewThumbsData.links[ee],imgWidth:Te,imgHeight:Ye,imgOffsetX:it,imgOffsetY:ht}}var me=F2();let se;var Le=_(me);{var oe=ue=>{var pe=D2();O(()=>dt(pe,`width: ${s(S)}px; height: ${s(T)}px; background-image: url(${s(I)}); background-size: ${s(A)}px ${s(k)}px; background-position: ${s(E)}px ${s(R)}px;
224
+ }`};function lm(t,e){D(e,!0),z(t,B2);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===am.ChromecastState.CONNECTED),n=g(()=>e.iconState===am.ChromecastState.CONNECTING);var r=Fe(),l=fe(r);{var d=p=>{var f=R2(),v=_(f),u=_(v),$=_(u);we(),h(u);var w=P(u);we(),h(v);var y=P(v),S=_(y),T=_(S);h(S),we(),h(y),h(f),O(()=>{De($,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),De(w,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),De(T,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)")}),b(p,f)},a=p=>{var f=N2();let v;var u=_(f),$=P(_(u),5);let w;h(u),h(f),O((y,S)=>{v=oe(f,0,"svelte-8z1bf5",null,v,y),w=oe($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:s(n)}),()=>({hidden:!s(o)})]),b(p,f)};V(l,p=>{i()?p(d):p(a,!1)})}b(t,r),H()}var D1=require("@vkontakte/videoplayer-shared/es2018");function Dd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,D1.noop),l=Ee().ui.t,d=g(()=>e.state===O1.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Nt(t,{get ariaLabel(){return s(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,p)=>{lm(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var O2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),D2={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function dm(t,e){z(t,D2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),r=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=j(void 0),p=j(void 0);function f(S){if(!s(p))return 0;let{width:T}=s(p).getBoundingClientRect(),I=T/2;return S<I?I+l():S>e.containerWidth-I?e.containerWidth-I-d():S}let v=g(()=>f(n()));var u=O2(),$=_(u);let w;var y=_($);be(y,()=>{var S;return(S=e.children)!=null?S:se}),h($),rt($,S=>B(p,S),()=>s(p)),h(u),rt(u,S=>B(a,S),()=>s(a)),O(S=>{dt(u,`transform: translate(${s(v)}px, ${r()}px);`),w=oe($,1,"tooltip svelte-5ygsa2",null,w,S),dt($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,u)}var Su=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var H1=t=>!!(Math.round(Math.abs(t)/90)%2),F1=t=>Math.abs(t)/90%4===1;var H2=M('<div class="preview svelte-1wqg760"></div>'),F2=M('<div class="time svelte-1wqg760"> </div>'),U2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),z2={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function cm(t,e){D(e,!0),z(t,z2);let[i,o]=Oe(),n=()=>C(w,"$rotateAlpha",i),r=()=>C(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),p=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),u=m(e,"isInteractive",3,!1),$=Ee(),w=$.ui.rotateAlpha,y=$.ui.playerSize,S=j(0),T=j(0),I=j(""),A=j(0),k=j(0),E=j(0),R=j(0),Q=g(()=>Su(f(),v(),p())),q=g(()=>H1(n())),W=g(()=>F1(n())),G=g(ce),X=g(()=>(s(W)?1:-1)*(s(S)/2-s(T)/2)),Y=g(()=>s(X)*-1);Ue(()=>{(ue=>{B(S,ue.width,!0),B(T,ue.height,!0)})(me())}),Ue(()=>{(ue=>{B(I,ue.imgSrc,!0),B(A,ue.imgWidth,!0),B(k,ue.imgHeight,!0),B(E,ue.imgOffsetX,!0),B(R,ue.imgOffsetY,!0)})(ke(f()))});function ce(){var qe;let ue=a()?l.MOBILE:l.DESKTOP,{isVertical:pe}=le(),te=30;return(qe=s(Q))!=null&&qe.text&&(te+=16),(pe||s(q))&&(te+=18,te+=50),Math.min(Math.max(r().height-te,0),ue)}function le(){let ue=e.previewThumbsData.frameWidth,pe=e.previewThumbsData.frameHeight,te=pe>ue;return{width:ue,height:pe,isHorizontal:!te,isVertical:te}}function me(){let{height:ue,isHorizontal:pe,isVertical:te,width:qe}=le();return pe&&(ue=ue/qe*s(G),qe=s(G)),te&&(qe=qe/ue*s(G),ue=s(G)),{width:qe,height:ue}}function ke(ue){let pe;e.previewThumbsData.isUV?pe=Math.floor(v()*ue/e.previewThumbsData.frequency):pe=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ue)));let te=Math.floor(pe/e.previewThumbsData.countPerImage),qe=Math.floor(pe%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Xe=pe%e.previewThumbsData.countPerRow,Z=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&te===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Z=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Z++);let Ae=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&te===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ae=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Te=s(S)*Ae,Ye=s(T)*Z,it=-Xe*s(S),bt=-qe*s(T);return{imgSrc:e.previewThumbsData.links[te],imgWidth:Te,imgHeight:Ye,imgOffsetX:it,imgOffsetY:bt}}var ve=U2();let ae;var Ve=_(ve);{var ne=ue=>{var pe=H2();O(()=>dt(pe,`width: ${s(S)}px; height: ${s(T)}px; background-image: url(${s(I)}); background-size: ${s(A)}px ${s(k)}px; background-position: ${s(E)}px ${s(R)}px;
225
225
  transform: rotate(${n()}deg) ${s(q)?`translate(${s(X)}px, ${s(Y)}px)`:""};
226
- `)),b(ue,pe)};V(Le,ue=>{s(I)&&ue(oe)})}var N=P(Le,2),He=_(N);{var _e=ue=>{var pe=Ue(),ee=fe(pe);{var Qe=Z=>{var Ae=es();O(Te=>$e(Ae,Te),[()=>U("tooltip_episode_unfinished")]),b(Z,Ae)},Xe=Z=>{var Ae=es();O(()=>$e(Ae,s(G).text||"")),b(Z,Ae)};V(ee,Z=>{u()&&s(G).completed===!1?Z(Qe):Z(Xe,!1)})}b(ue,pe)};V(He,ue=>{s(G)&&ue(_e)})}h(N);var ge=P(N,2);{var ce=ue=>{var pe=H2(),ee=_(pe,!0);h(pe),O(()=>$e(ee,d())),b(ue,pe)};V(ge,ue=>{u()||ue(ce)})}h(me),O(ue=>{se=ie(me,1,"timeline-preview svelte-1wqg760",null,se,ue),dt(me,`width: ${s(q)?s(T):s(S)}px;`)},[()=>({mobile:a()})]),b(t,me),F(),o()}var z2=M('<span class="time svelte-1jr6obn"> </span>'),W2=M("<!> <!>",1),q2={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function um(t,e){var te,Ne,ze,Ve,Fe;H(e,!0),z(t,q2);let[i,o]=Oe(),n=()=>C(X,"$interactiveEpisodes$",i),r=()=>C(E,"$duration$",i),l=()=>C(k,"$position$",i),d=()=>C(le,"$isInteractiveExpectation$",i),a=()=>C(de,"$isInteractiveTime$",i),p=()=>C(R,"$isLive$",i),f=()=>C(q,"$isMobile",i),v=()=>C(G,"$isActiveLive$",i),u=()=>C(A,"$bufferedProgress$",i),$=()=>C(me,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=Ee(),I=Et(),A=T.state.bufferedProgress$,k=T.state.positionWithScrubbing$,E=T.state.duration$,R=T.state.isLive$,G=T.state.isActiveLive$,q=T.ui.isMobile,W=I.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,Q=T.actions.internal.getPreviewThumbsData(),X=T.state.interactiveEpisodes$,Y=T.state.isInteractive,de=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,ve=T.actions.internal.correctSeekTimeToInteractive,Ie=(te=T.callbacks)==null?void 0:te.onDisabledTimelineClick,me=T.ui.controls.disabledControls$,se=(ze=(Ne=T.callbacks)==null?void 0:Ne.uiInfo)==null?void 0:ze.onTimelineMouseEnter,Le=(Fe=(Ve=T.callbacks)==null?void 0:Ve.uiInfo)==null?void 0:Fe.onTimelineMouseLeave,oe=T.ui.t,N=I.features.interactiveResponsiveUi,He=g(()=>Y?n():W),_e=g(()=>yn(r())),ge=g(()=>yn(l())),ce=g(()=>l()/r()),ue=g(()=>d()||a()),pe=j(!1),ee=j(""),Qe=j(0),Xe=j(0),Z=j(0),Ae=g(()=>({containerWidth:s(Xe),translateXPx:s(Qe),translateYPx:Y&&Q?-36:-16,active:s(pe)&&w()&&!s(ue)&&!N,pointer:!I.features.timelinePreview||!Q||p()})),Te=oe("aria_timeline"),Ye=g(()=>oe("aria_timeline_value",{position:s(ge),duration:s(_e)}));function it(Re){return!ve||!Y?Re:ve(Re*r())/r()}function ht(Re){T.actions.internal.startScrubbing(it(Re))}function Pt(Re){a()||T.actions.internal.progressScrubbing(it(Re))}function ct(Re){T.actions.internal.completeScrubbing(it(Re)),B(pe,!1)}function qe(Re,et,kt){Qt(Re,et,kt),B(pe,!0)}function qt(Re,et,kt){Qt(Re,et,kt),B(pe,!0)}function Xt(){B(pe,!1)}function Qt(Re,et,kt){B(Z,it(Re),!0),B(Qe,et,!0),kt&&B(Xe,kt,!0),B(ee,Kt(Re),!0)}function Kt(Re){let et=yn((p()?1-Re:Re)*r());return p()?`-${et}`:et}var ae=W2(),It=fe(ae);dm(It,gs(()=>s(Ae),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Re,et)=>{var kt=Ue(),Gt=fe(kt);{var ot=ei=>{cm(ei,{get time(){return s(ee)},get isMobile(){return f()},get videoEpisodes(){return s(He)},get previewThumbsData(){return Q},get progress(){return s(Z)},get duration(){return r()},get isInteractive(){return Y}})},ci=ei=>{var at=z2(),jt=_(at,!0);h(at),O(()=>$e(jt,s(ee))),b(ei,at)};V(Gt,ei=>{I.features.timelinePreview&&Q&&!p()?ei(ot):ei(ci,!1)})}b(Re,kt)},$$slots:{default:!0}}));var xe=P(It,2);let he=g(()=>$().has("TIMELINE"));Sa(xe,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Te},ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return l()},get ariaValueText(){return s(Ye)},get loadedProgress(){return u()},get filledProgress(){return s(ce)},get handleProgress(){return s(ce)},get videoEpisodes(){return s(He)},onPointerDown:ht,onHandleMove:Pt,onPointerMove:qt,onPointerUp:ct,onPointerEnter:qe,onPointerLeave:Xt,get onMouseEnter(){return se},get onMouseLeave(){return Le},get onDisabledClick(){return Ie},get isInteractive(){return Y},get disabled(){return s(he)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:ct,get ref(){return S()},set ref(Re){S(Re)}}),b(t,ae),F(),o()}var K2={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function Hd(t,e){H(e,!0),z(t,K2);let[i,o]=Oe(),n=()=>C(a,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ee(),a=d.ui.isMobile,p=d.ui.t,f=g(()=>yn(l())),v=g(()=>yn(r())),u=g(()=>r()/l()),$=g(()=>p("aria_timeline_value",{position:s(v),duration:s(f)})),w=g(()=>Math.round(s(u)*100));Sa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return s(w)},get ariaValueText(){return s($)},get filledProgress(){return s(u)},hideHandel:!0,get squareBorders(){return n()}}),F(),o()}var Q2=M("<div><!></div>"),G2=M("<div></div>"),j2={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function Ta(t,e){H(e,!0),z(t,j2);let[i,o]=Oe(),n=()=>C(S,"$isLive$",i),r=()=>C(A,"$isMobile",i),l=()=>C(k,"$disabled",i),d=()=>C(I,"$adPosition",i),a=()=>C(T,"$adDuration",i),p=m(e,"isAds",3,!1),f=m(e,"isHidden",3,!1),v=m(e,"timelineNotAvailable",3,!1),u=m(e,"needPadding",3,!0),$=m(e,"ref",15,void 0),w=Ee(),y=Et(),S=w.state.isLive$,T=w.ads.duration,I=w.ads.position,A=w.ui.isMobile,k=ne(!1),E=g(()=>!v()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||p()));var R=Ue(),G=fe(R);{var q=Q=>{var X=Q2();let Y;var de=_(X);{var le=Ie=>{Hd(Ie,{get position(){return d()},get duration(){return a()}})},ve=Ie=>{um(Ie,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return s(E)},get withEpisodes(){return e.withEpisodes},get ref(){return $()},set ref(me){$(me)}})};V(de,Ie=>{p()?Ie(le):Ie(ve,!1)})}h(X),vs(X,()=>gl(f()&&y.features.usePerformanceFix,k,y.disableInvisibleComponentsTimeout)),O(Ie=>Y=ie(X,1,"timeline svelte-41cp6d",null,Y,Ie),[()=>({withoutPadding:!u(),mobile:r(),"out-of-flow":l()})]),b(Q,X)},W=Q=>{var X=G2();let Y;O(de=>Y=ie(X,1,"timeline-stub svelte-41cp6d",null,Y,de),[()=>({mobile:r()})]),b(Q,X)};V(G,Q=>{s(E)?Q(q):Q(W,!1)})}b(t,R),F(),o()}var F1=require("@vkontakte/videoplayer-shared/es2018");var Y2=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function pm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(3),h(o),b(t,o)}var Z2=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function fm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var X2=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),J2=M('<span class="text svelte-1yhs2ga"> </span>'),ey=M('<span class="text count svelte-1yhs2ga"> </span>'),ty=M("<!> <!>",1),iy={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Fd(t,e){var le,ve,Ie;H(e,!0),z(t,iy);let[i,o]=Oe(),n=()=>C(w,"$currentGridType$",i),r=()=>C(y,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=m(e,"position",3,0),p=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=Ee(),u=(ve=(le=v.callbacks)==null?void 0:le.onEpisodeChanged)!=null?ve:F1.noop,$=!!((Ie=v.callbacks)!=null&&Ie.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,T=v.ui.isMobile,I=v.ui.t,A=j(void 0),k=me=>{var Le,oe,N;if(!!((Le=v.callbacks)!=null&&Le.onEpisodeClicked)){let He=Bs(me);y.set(He),S.set(!0),(N=(oe=v.callbacks)==null?void 0:oe.onEpisodeClicked)==null||N.call(oe,He)}},E=j(null),R=g(()=>a()/p());We(()=>{var se;let me=Su(s(R),p(),f());me?((se=s(E))==null?void 0:se.time)!==me.time&&(u(me),B(E,me,!0)):B(E,null)});let G=g(()=>{var me;return((me=s(E))==null?void 0:me.text)||""}),q=g(()=>Hi(n(),"xl")?"FULL":Hi(n(),"m")&&V1(n(),"xl")?"COUNT":"SHORT"),W=g(()=>`${I("tooltip_episodes")}: ${s(G)}`),Q=async(me,se,Le)=>{await So(),(me==null?void 0:me.getAttribute("aria-expanded"))==="false"&&se&&!Le&&xt(()=>{y.set(!1),me.focus()})};We(()=>{Q(s(A),r(),l())});var X=Ue(),Y=fe(X);{var de=me=>{let se=g(()=>d()?"px-0":""),Le=g(()=>!$);Bt(me,{get className(){var oe;return`w-max btn-full-opacity btn-jc-l ${(oe=s(se))!=null?oe:""}`},testId:"btn-episodes",click:k,get disabled(){return s(Le)},get ariaExpanded(){return l()},get ariaLabel(){return s(W)},get ref(){return s(A)},set ref(oe){B(A,oe,!0)},children:(oe,N)=>{var He=Ue(),_e=fe(He);{var ge=ue=>{var pe=X2(),ee=fe(pe),Qe=_(ee,!0);h(ee);var Xe=P(ee,2),Z=_(Xe);fm(Z,{}),h(Xe),O(()=>$e(Qe,s(G))),b(ue,pe)},ce=ue=>{var pe=ty(),ee=fe(pe);pm(ee,{});var Qe=P(ee,2);{var Xe=Ae=>{var Te=J2(),Ye=_(Te,!0);h(Te),O(()=>$e(Ye,s(G))),b(Ae,Te)},Z=(Ae,Te)=>{{var Ye=it=>{var ht=ey(),Pt=_(ht,!0);h(ht),O(()=>$e(Pt,f().length)),b(it,ht)};V(Ae,it=>{s(q)==="COUNT"&&it(Ye)},Te)}};V(Qe,Ae=>{s(q)==="FULL"?Ae(Xe):Ae(Z,!1)})}b(ue,pe)};V(_e,ue=>{d()?ue(ge):ue(ce,!1)})}b(oe,He)},$$slots:{default:!0}})};V(Y,me=>{s(E)&&me(de)})}b(t,X),F(),o()}var Im=require("@vkontakte/videoplayer-shared/es2018");var di=require("@vkontakte/videoplayer-core/es2018"),mt=require("@vkontakte/videoplayer-shared/es2018"),ss=require("@vkontakte/videoplayer-statistics/es2018");var je=require("@vkontakte/videoplayer-shared/es2018"),qi=require("@vkontakte/videoplayer-shared/es2018");var U1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var oy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Tu=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new qi.Subject,loadStarted$:new qi.Subject,loadEnded$:new qi.Subject,loadError$:new qi.Subject,ready$:new qi.Subject,slotRequested$:new qi.Subject,started$:new qi.Subject,timeRemained$:new qi.Subject,paused$:new qi.Subject,resumed$:new qi.Subject,ended$:new qi.Subject,empty$:new qi.Subject,skipped$:new qi.Subject,clicked$:new qi.Subject,closed$:new qi.Subject,error$:new qi.Subject};this.loadAdman=e=>(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,je.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,je.now)()]}),o())};(0,qi.addScript)(oy,e,this.loadTimeout).then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,je.now)()]}),window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,je.now)()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout))}).catch(l=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,je.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,je.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,je.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,je.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,je.now)()]}),!d&&(window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,je.now)()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,je.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,je.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,je.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,je.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,je.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var A;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,je.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:r,adsContainer:l,adsVideoElement:d,slotId:a,params:p={},duration:f,previewParam:v}=e,u,$=this.playerState&&ye(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=(0,je.detectEmbed)(),S=(A=w?y:window.location.href)!=null?A:window.location.href,T={...p,dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o,preview:v,...u?{request_id:u}:{},duration:f,puid10:U1(i,o),puid11:n?0:1};v||delete T.preview;let 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){je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[(0,je.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,r;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,je.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`}),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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adsState){this.log({message:"toggle play"});let i=ye(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,je.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){var i;this.watchDogTimeout&&this.stopWatchDog(),((i=this.adsState)!=null&&i.playbackState?ye(this.adsState.playbackState):void 0)!=="inactive"&&(this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout))}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,r,l,d,a,p,f,v,u;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,je.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(r=this.adman)==null||r.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&(0,qi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var z1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var mm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let r of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=r.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let p=new Eu,{startTime:f,endTime:v}=p.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let p=new vm,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Eu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let r=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return r+l+d+a}},vm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let p=["<",">"].reduce((f,v)=>{let u=l.indexOf(v,d);return f===-1||f>u?u:f},-1);if(p===-1){a.push(l.substring(d));break}a.push(l.substring(d,p)),d=p+1}return a}}),r=new Eu;for(let l of n)r.isTime(l)?i.texts.push({type:"timestamp",value:r.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},W1=mm;var ku=require("@vkontakte/videoplayer-shared/es2018"),Ea,Si,gm=0,hm=!1,q1="",K1=(t,e=0,i=0)=>t<e&&t<i,Iu=(t,e=0,i=0)=>t>=e&&t<=i,ny=(t,e=0,i=0)=>t>e&&t>i,Q1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:f})=>Iu(t,p,f));let r=t>=gm,l=t<gm;if(gm=t,l&&(hm=!1),(0,ku.isNonNullable)(Ea)&&Iu(t,Ea.startTime,Ea.endTime)&&q1===e.value)return Ea;if(!(0,ku.isNonNullable)(Si)&&(n!=null&&n.length)&&!hm){Si=n.find(({startTime:p,endTime:f})=>Iu(t,p,f)||r&&K1(t,p,f)),Ea=void 0,!(0,ku.isNonNullable)(Si)&&n[n.length-1].endTime<t&&(hm=!0);return}else{if(Iu(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime))return Ea=Si,Si=void 0,q1=e.value,Ea;(r&&ny(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime)||l&&K1(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime))&&(Si=void 0)}};var Pu={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},ry={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Au=t=>{var e,i;return(i=(e=Pu[t])!=null?e:Pu[ry[t]])!=null?i:void 0};var G1=require("@vkontakte/videoplayer-shared/es2018"),ZB=require("@vkontakte/videoplayer-statistics/es2018"),Mu=class{constructor(e,i,o,n=new G1.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var Ud=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Ud||{});var rs=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(rs(i==null?void 0:i.top)-rs(o==null?void 0:o.top)),left:Math.round(rs(i==null?void 0:i.left)-rs(o==null?void 0:o.left)),bottom:Math.round(rs(i==null?void 0:i.bottom)-rs(o==null?void 0:o.top)),right:Math.round(rs(i==null?void 0:i.right)-rs(o==null?void 0:o.left))}},Cl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:rs(e==null?void 0:e.width),height:rs(e==null?void 0:e.height)}};var Lu="off";var j1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:p,videoEpisodes:f,previewThumbsData:v,uiConfig:u,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:A,stopPlayer:k,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,additionalButtons:G,additionalSettingsMenuItems:q,additionalContextMenuItems:W,playPrevVideo:Q,playNextVideo:X,looped:Y=!1,statistics:de,saveRate:le,internalsExposure:ve,playerView:Ie})=>{var Hv,Fv,Uv;let me={...$,configName:[...(Hv=$.configName)!=null?Hv:[],"ui"],isAudioDisabled:l,live:{...(Fv=$.live)!=null?Fv:{},isLiveCatchUpMode:!!n}},se=u,Le=mt.TracerFactory.createRootTracer(se.features.tracer),oe=Le.createComponentTracer("Store"),N=w||new di.Player(me,Le);ve==null||ve.expose({corePlayer:N});let He=new mt.Logger,_e=new Tu(He,{loadTimeout:se.ads.loadTimeout,initTimeout:se.ads.initTimeout,runtimeTimeout:se.ads.runtimeTimeout,useAdmanFromNPM:se.ads.useAdmanFromNPM,volumeMultiplier:se.ads.volumeMultiplier,isVsidOriginal:se.ads.isVsidOriginal}),ge=va.getInstance(),ce=p==null?void 0:p.pictureInPictureApi,ue=p==null?void 0:p.annotationsApi,pe=p==null?void 0:p.slotsApi,ee=He.createComponentLog("Store"),Qe,Xe,Z={},Ae=new nu,Te=new mt.Subscription,Ye=de&&de.oneStat?ii(de.oneStat.vsid$):mr(void 0),it=ne(Vs()),ht=ne(!1),Pt=(Uv=ce==null?void 0:ce.info.isActive$)!=null?Uv:new mt.ValueSubject(!1),ct=ne(0),qe=ne(!1),qt=ne(!1),Xt=ne([]),Qt=(0,mt.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>Xt.update(x=>[...x,c])),Kt=mr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ae=async c=>{var J;let x=Object.values(mt.InterfaceLanguage).includes(c);if(se.downloadVKLanguages&&(x&&se.updateBuiltinLanguages||!$f(c))){let Be;try{Be=await(0,mt.loadVKLangPack)(c,kh,Ph)}catch(ft){(J=de==null?void 0:de.oneStat)==null||J.logError({errorType:"VKLangPack",fatal:!1}),ge==null||ge.report(ft,{errorType:"VKLangPack",fatal:!1})}Be&&(bf({language:c,pack:Be,fallback:se.defaultLanguage}),It.set(c))}$f(c)&&It.set(c)},It=ne(t),xe=ne(e);ae(t);let he=(c,x)=>{let L=ye(It);return yf(L,c,x,se.defaultLanguage)},te=ne("thumb");te.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&Ve()});let Ne=(()=>{let c=bi([Kt,te],([x,L])=>x?"crashed":L);return{...c,is:x=>ye(c)===x}})(),ze=ne(),Ve=()=>{ze.set({muted:N.info.muted$.getValue()})},Fe=(()=>{let c=ne(new Set(y));return{...c,add:x=>{c.update(L=>new Set([...L].concat(x)))},remove:x=>{c.update(L=>{let J=[...L];return new Set(Array.isArray(x)?J.filter(Be=>!x.includes(Be)):J.filter(Be=>Be!==x))})},includes:x=>{let L=ye(c);return Array.isArray(x)?x.every(J=>L.has(J)):L.has(x)}}})(),Re=ne({width:0,height:0});oe.log("create store"),ee({message:"create store"});let et=c=>{let x=c.container,L=()=>{jt=new MutationObserver(Be=>{let{removedNodes:ft}=Be[0];ft.length&&x.append(N.experimental.element$.getValue())}),jt.observe(x,{childList:!0})},J=N.experimental.element$.getValue();if(J)x.append(J),L();else{let Be=N.experimental.element$.pipe((0,mt.filter)(ft=>!!ft),(0,mt.once)()).subscribe(ft=>{x.append(ft),L()});Te.add(Be)}},kt=c=>{ee({message:`init video, config: ${JSON.stringify(c)}`}),S?et(c):(mt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,mt.now)()]}),N.initVideo(c)),oe.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),Qe=c},Gt=new mt.Subject,ot=c=>Gt.next(c),ci=new mt.Subject,ei=new mt.Subject,at=new mt.Subject,jt=null,Gi={actionRewind$:ci,actionSeek$:ei,inPiP$:Pt,inFullscreen$:new mt.Observable(c=>it.subscribe(x=>c.next(x))),actionSetSubtitle$:at,nextMovie$:Gt},ri={actionSeek$:ei,playerSize$:new mt.Observable(c=>Re.subscribe(x=>c.next(x)))};if(de){let{oneStat:c,thinOneStat:x,mediascopePixel:L,statSubscription:J}=de;c&&(S||J.add(c.attachTo(N)),J.add(c.attachToUi(Gi)),J.add(c.attachToAds(_e.events)),c.authorize(r).catch(Be=>{ee({message:`onestat auth error ${String(Be)}`})}),L&&L.attachTo(N)),x&&(J.add(x.attachTo(N,_e.events)),J.add(x.attachToUi(ri)),J.add(x.attachToAds(_e.events)),x.authorize(r))}if(ge){let c=new mt.Subscription,x=(L,J)=>c.add(L.subscribe(J));if(x(N.events.managedError$,L=>{ge.logIError(L)}),x(N.events.fatalError$,L=>{ge.logIError(L,!0)}),de){let{oneStat:L}=de;L&&x(L.experimental.error$,J=>{ge.logIError(J)})}ge.sentrySubscription.add(c)}let yi=()=>{di.clientChecker.device.isIOS&&Xe&&m1(Xe).catch(c=>{ee({message:`exitIosSafariFullscreen failed: ${c}`})})};Te.add(N.experimental.element$.subscribe(c=>{c&&(Xe=c,c.classList.add("player-media"),ha(ce)&&ce.updateVideoElement(),S&&c.setAttribute("pip","false"),Ie==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;yi(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(N.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(N.events.started$.subscribe(async()=>{var x,L;ha(ce)&&await(ce==null?void 0:ce.revealPictureInPicture());let c=N.info.muted$.getValue();(x=a==null?void 0:a.onStarted)==null||x.call(a),(L=Z.onStarted)==null||L.call(Z,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var L;(L=a==null?void 0:a.onSeek)==null||L.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 L;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((L=a==null?void 0:a.onTimeupdate)==null||L.call(a,x,c),_e.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=a==null?void 0:a.onCrashed)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=a==null?void 0:a.onRecoverableError)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{qe.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{qt.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(I!=null&&I.getValue()&&Fe.add(vd),Fe.add("PLAY_BUTTON")):Fe.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=a==null?void 0:a.onLiveTime)==null||x.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=a==null?void 0:a.onStalledChanged)==null||x.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=a==null?void 0:a.onLiveEnded)==null?void 0:x.call(a))})).add(_e.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(_e.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(_e.events.loadError$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(_e.events.init$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(_e.events.ready$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(_e.events.started$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onStarted)==null?void 0:L.call(x,c)})).add(_e.events.timeRemained$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:L.call(x,c)})).add(_e.events.ended$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onCompleted)==null?void 0:L.call(x,c)})).add(_e.events.empty$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(_e.events.clicked$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClicked)==null?void 0:L.call(x,c)})).add(_e.events.closed$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClosed)==null?void 0:L.call(x,c)})).add(_e.events.error$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onError)==null?void 0:L.call(x,c)})).add(_e.events.paused$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(_e.events.resumed$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let oo=new mt.Subscription,zt=()=>{var ft,Ht,Wt;let{debugLog:c}=se,x,L="#9df7b7",J="#efd169";if(c&&c!==!0){let{colors:Ft}=c;x=c.tag,L=(ft=Ft==null?void 0:Ft[0])!=null?ft:L,J=(Wt=(Ht=Ft==null?void 0:Ft[1])!=null?Ht:Ft==null?void 0:Ft[0])!=null?Wt:J}let Be=x?`: ${x}`:"";oo.add(N.events.log$.subscribe(Ft=>{console.debug(`%c sdk${Be} `,`background:${L};`,`sdk component: ${Ft.component}`,Ft.message)})).add(He.log$.subscribe(Ft=>{console.debug(`%c ui${Be} `,`background:${J};`,`ui component: ${Ft.component}.`,Ft.message)}))},ui=()=>{oo.unsubscribe()},ji=(c,x)=>{oe.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},zo=(c=!1)=>{oe.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},At=(c,x,L)=>{oe.log("move camera focus px",{xpx:c,ypx:x,dt:L}),N.moveCameraFocusPX(c,x,L)},wt=()=>{N.holdCamera()},Mi=()=>{N.releaseCamera()},Ti=mr(N.info.position$.getValue(),c=>{let x,L,J=()=>{let Be=N.info.playbackState$.getValue(),ft=N.info.isLive$.getValue(),Ht=N.info.duration$.getValue(),Wt=N.info.position$.getValue();if(Be&&[di.PlaybackState.PLAYING,di.PlaybackState.PAUSED].includes(Be)){let Ft=ft?Wt-Ht:N.getExactTime();Ft!==L&&c(Ft),L=Ft}x=requestAnimationFrame(J)};return J(),()=>cancelAnimationFrame(x)}),D=ii(N.info.playbackState$),Dt=ii(N.info.currentBuffer$),li=ii(N.info.isEnded$),_t=ii(N.info.isLive$),Je=se.features.playbackRate?ii(N.info.canChangePlaybackSpeed$):mr(!1),lt=ii(N.info.liveBufferTime$),Yt=ii(N.info.volume$),Vt=ii(N.info.muted$),Fi=ru(N.info.predefinedQualityLimitType$.pipe((0,mt.map)(c=>c===di.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===di.PredefinedQualityLimits.TRAFFIC_SAVING),Wo=ru(N.info.predefinedQualityLimitType$.pipe((0,mt.map)(c=>c===di.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===di.PredefinedQualityLimits.HIGH_QUALITY),ln=ii(N.info.autoQualityLimitingAvailable$),Ei=ii(N.info.availableQualities$),$t=ii(N.info.availableQualitiesFps$),Ii=ii(N.info.chromecastState$),qo=ii(N.info.chromecastDeviceName$),wn=ii(N.info.currentFormat$),Ui=ii(N.info.throughputEstimation$),Yi=ii(N.info.videoBitrate$),ko=ii(N.info.intrinsicVideoSize$),dn=ii(N.info.duration$),Hn=ii(N.info.isAudioAvailable$),pi=null,Ko=N.info.isBuffering$,Cn=mr(Ko.getValue(),c=>{let x=Ko.subscribe(L=>{L&&pi===null?pi=window.setTimeout(()=>{c(Ko.getValue()),pi=null},se.loaderDelay):c(L)});return()=>{x.unsubscribe(),pi&&clearTimeout(pi)}}),Qo=()=>{pi&&clearTimeout(pi),pi=null},no=bi([dn,_t],([c,x])=>x?-c:c),tr=bi([D],([c])=>c===di.PlaybackState.PLAYING),Hr=ii(N.info.atLiveEdge$),Fn=ii(N.info.atLiveDurationEdge$),ir=ii(N.info.position$),Fr=bi([ir,dn],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),gr=bi([Ii],([c])=>c===di.ChromecastState.CONNECTED),cn=ii(N.info.availableVideoStreams$),or=se.features.audioLanguages?ii(N.info.availableAudioStreams$):mr([]),ro=ii(N.info.currentVideoStream$),Go=ii(N.info.currentAudioStream$),nr=c=>{c.language&&vf(c.language),N.setVideoStream(c)},Sn=c=>{c.language&&vf(c.language),N.setAudioStream(c),se.features.userVideoPrefs&&i&&_f(se.userSalt,String(i),{audioTrackId:c.id})},rr=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(J=>"isDefault"in J&&J.isDefault)),se.features.userVideoPrefs&&i){let J=du(se.userSalt,String(i));if(J!=null&&J.audioTrackId){let Be=c.find(ft=>ft.id===J.audioTrackId);x=Be!=null?Be:x}}let L=t1();return L&&(x!=null||(x=c.find(({language:J})=>L===J))),x!=null||(x=c.at(0)),x},Un=!1;Te.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Un&&c.length){let x=rr(c);x&&(N.setAudioStream(x),Un=!0)}}));let sr=!1;Te.add(N.info.availableVideoStreams$.subscribe(c=>{if(!sr&&c.length){let x=rr(c);x&&(N.setVideoStream(x),sr=!0)}}));let zn=ne(void 0),Tn=ii(N.info.isAutoQualityEnabled$,c=>c&&zn.set(void 0)),hr=ii(N.info.currentQuality$,()=>zn.set(void 0)),_r=bi([zn,hr],([c,x])=>c!=null?c:x),br=bi(wn,c=>c!==di.VideoFormat.MPEG),nt=bi([Ei,$t,Tn,_r,br],([c,x,L,J,Be])=>{let ft=[];Be&&ft.push({value:"auto",displayValue:he("auto_quality_option"),selected:L});let Ht=c.filter(Wt=>!(0,mt.isInvariantQuality)(Wt));for(let Wt of Ht){let Ft=x[Wt];ft.push({value:Wt,displayValue:`${Wt}${Ft?z1(Ft):""}`,selected:L?!1:Wt===J})}return ft}),oi=ii(N.info.currentPlaybackRate$),En=bi([oi,Hr,Fn],([c,x,L])=>{let J=L||S?1:se.controls.playbackRateMin,Be=x?1:se.controls.playbackRateMax,ft=se.controls.playbackRateStep,Ht=[];for(let Wt=J;Wt<=Be;Wt+=ft)Ht.push({value:Wt,displayValue:Wt===1?he("playback_rate_1"):he("playback_rate",{multiplier:Wt.toString(10)}),selected:c===Wt});return Ht}),xi={displayValue:he("subtitles_off"),value:Lu,language:""},Li=ne({...xi}),un=se.features.subtitles?ii(N.info.availableTextTracks$):mr([]),pn=qh(),go=bi([un,Li],([c,x],L)=>{var ft;let J=[],Be=c.find(({id:Ht})=>Ht===x.value);if(Be!=null&&Be.url){let[,Ht]=(ft=pn.find(Be.url))!=null?ft:[];if(Ht){L(Ht);return}Ae.download(Be.url).then(Wt=>{if(!Wt||Ae.isDestroyed())return;let Ft=new W1,Cs=Be.language;if(Cs){let R0=!!Be.isAuto,N0=Ft.parse(Wt,Cs);J.push({lang:Cs,subtitles:N0,isAuto:R0,id:Be.id})}pn.add(Be.url,J),ye(Li).value===x.value&&L(J)}).catch(Wt=>{var Ft;(Ft=de==null?void 0:de.oneStat)==null||Ft.logError({errorType:"Subtitles download",fatal:!1}),ge==null||ge.report(Wt,{errorType:"Subtitles download",fatal:!1})})}L(J)}),Wn=bi([oi,tr,Li],([c,x,L],J)=>{let Ht;if(N.info.isLive$.getValue()&&x&&L.value!==xi.value){let Ft=()=>{let Cs=1e3/(3*c);Ht=setTimeout(Ft,Cs),J(Date.now())};return Ft(),()=>clearTimeout(Ht)}}),ho=bi([un,Li],([c,x])=>{if(!c.length)return[];let L=[];for(let{language:J,isAuto:Be,id:ft}of c){let Ht=J&&Au(J);J&&Ht&&L.push({displayValue:Be?he("subtitles_auto",{language:Ht}):Ht,value:ft,selected:(x==null?void 0:x.value)===ft,isAuto:Be,language:J})}return L.length?(L.unshift({...xi,selected:(x==null?void 0:x.value)===xi.value}),L):[]}),Po={available:[],prev:[]},$r=()=>{var x,L;let c=N.experimental.getCurrentTime$.getValue();return(L=(x=c==null?void 0:c())!=null?x:Xe==null?void 0:Xe.currentTime)!=null?L:0},as=bi([Ti,Li,go,Wn],([c,x,L,J])=>{var ft;let Be=N.info.isLive$.getValue();if(Be&&Po.prev!==L){let Ht=L.find(({id:Ft})=>Ft===x.value),Wt=Po.prev.find(({id:Ft})=>Ft===x.value);if(Ht){let Ft={...Ht,subtitles:[...(ft=Wt==null?void 0:Wt.subtitles)!=null?ft:[],...Ht.subtitles]};Po.available=[Ft],Po.prev=L}}if(x&&x.value!==xi.value){let Ht=Be?$r():c,Wt=Be?Po.available:L;return Q1(Ht,x,Wt,Be)}}),yr=bi([as],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(Li.subscribe(c=>{var x,L;if(c.value===xi.value)(x=a==null?void 0:a.onSubtitleOff)==null||x.call(a);else{let J=Object.entries(Pu).find(([Be,ft])=>ft===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,J?J[0]:"")}}));let Ur=ne(!0),In=bi([Dt,no,ir,lt],([c,x,L,J])=>{var Wt;let Be=(Wt=c==null?void 0:c.end)!=null?Wt:0;if(!J)return Be/x;let Ht=-L+J-x;return(Be-Ht)/x}),xr=ii(N.info.availableSources$),_o=bi([xr],([c])=>Object.keys((c==null?void 0:c[di.VideoFormat.MPEG])||{}).length>0),ar=()=>{var L,J,Be;let c=Object.keys(((J=(L=N.info.availableSources$)==null?void 0:L.getValue())==null?void 0:J[di.VideoFormat.MPEG])||{}),x=(0,mt.getHighestQuality)(c)||mt.VideoQuality.Q_144P;return(Be=Qe.sources[di.VideoFormat.MPEG])==null?void 0:Be[x]},jo=()=>{var x;let c=ar();if(c)oe.log("download video",{url:c}),Uh(c,((x=Qe==null?void 0:Qe.meta)==null?void 0:x.title)||"video");else{let L="There is no URL for download video";oe.log("download video",{message:L}),ee({message:L})}},ti=()=>{ee({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?fn(Rt()):Ao(!c)},Yo=()=>{var c;if(Lt.ui.settingsMenu.visible$.set(!1),!ye(Lt.ui.settingsSubMenu.visible$)){let x=ye(Lt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&x){let J=Cl(x),Be={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:J,position:Be,name:"settings"})}}oe.log("close settings menu")},zr=async(c,x=()=>Promise.resolve())=>{var Be;Lt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Lt.ui.settingsMenu.visible$.set(!0),await x();let L=ye(Lt.ui.settingsMenu.ref$),J=Ks();if((Be=a==null?void 0:a.uiInfo)!=null&&Be.onSettingsMenu&&L&&J){let Ht=Cl(L),Wt=_s(L,J);a.uiInfo.onSettingsMenu({visible:!0,size:Ht,position:Wt,name:"settings"})}oe.log("open settings menu",{wasOpenedByKeyboard:c})},wr=(c,x=!1)=>{var ft;Lt.ui.settingsSubMenu.visible$.set(!1);let L=ye(Lt.ui.settingsMenu.ref$),J=Ks(),Be=ye(Lt.ui.settingsMenu.visible$);if((ft=a==null?void 0:a.uiInfo)!=null&&ft.onSettingsMenu&&L&&J)if(Be&&!x){let Wt=Cl(L),Ft=_s(L,J);a.uiInfo.onSettingsMenu({visible:!0,size:Wt,position:Ft,name:"settings"})}else{let Wt=Cl(c),Ft={top:0,left:0,bottom:0,right:0},Cs=ye(Lt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Wt,position:Ft,name:Cs})}oe.log("close settings sub menu")},St=(c,x)=>{var J;Lt.ui.settingsSubMenu.visible$.set(!0),Lt.ui.settingsSubMenu.ref$.set(x),Lt.ui.settingsSubMenu.name$.set(c);let L=Ks();if((J=a==null?void 0:a.uiInfo)!=null&&J.onSettingsMenu&&x&&L){let ft=Cl(x),Ht=_s(x,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:ft,position:Ht})}oe.log("open settings sub menu",{name:c})},Rt=()=>{var x;let c=Math.max(se.volumeMinRestore,(x=su())!=null?x:0);return c===0?se.volumeDefault:c},fn=c=>{let x=c===0?Rt():c,L=N.info.muted$.getValue();ee({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let J=!l||Ne.is("ads");L&&c>0&&J&&(L=!1,ff(!1)),N.setVolume(c,L),_e.setVolume(c),lf(x)},Ao=c=>{let x=N.info.volume$.getValue();ee({message:`set muted, currentVolume: ${x}, mute: ${c}`});let L=Ne.is("ads");if(N.setMuted(c,L),_e.setVolume(c?0:x),(!L||!c)&&ff(c),!c&&x===0){let J=Rt();N.setVolume(J),lf(J),_e.setVolume(J)}},mn=ne(!1),Mo=c=>{var x,L;oe.log("set looped",{isLooped:c}),mn.set(c),N.setLooped(c),(L=(x=a==null?void 0:a.uiInfo)==null?void 0:x.onLoopedChanged)==null||L.call(x,c)};Mo(Y);let kn=()=>{var c,x;(x=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},so=(c,x=!1)=>{var L;ee({message:`set autoplayNextEnabled, value: ${c}`}),oe.log("set autoplay next enabled",{autoplayNextEnabled:c}),Lt.ui.autoplayNextEnabled$.set(c),n1(c),x&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},Pn=c=>{ee({message:`set timerNextVideoRunning, value: ${c}`}),oe.log("set timer next video running",{timerNextVideoRunning:c}),Lt.ui.timerNextVideoRunning$.set(c)},Lo=(c=!0)=>{var J;let x=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{x=(J=a==null?void 0:a.onPrevVideoClick)==null?void 0:J.call(a)}catch(Be){ee({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Cr("prev")||Q()},lr=(c=!0)=>{var J;let x=!0;if(c&&(a!=null&&a.onNextVideoClick))try{x=(J=a==null?void 0:a.onNextVideoClick)==null?void 0:J.call(a)}catch(Be){ee({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Cr("next")||X()},Cr=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:L,playbackStatusShow:J}}=se;return L&&J&&!x?(Lt.ui.aboutToGoNextVideo.set(c),Lt.ui.userActionsDisabled.set(!0),!0):!1},Wr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},ls=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},qr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},ao=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},vn=()=>{N.prepare()},Sr=()=>{(0,mt.assertNonNullable)(Lt);let c=ye(Lt.ui.controls.disabledControls$),x=ye(Lt.playerPhase),L={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ee({message:"toggle play"}),x==="ads"){L.action="play",oe.log("toggle adman play",L),_e.togglePlay();return}let J=()=>{var ft;ee({message:"toggle play, call player.play"}),L.action="play",N.play(),(ft=a==null?void 0:a.onPlay)==null||ft.call(a)},Be=()=>{var ft;ee({message:"toggle play, call player.pause"}),L.action="pause",N.pause(),(ft=a==null?void 0:a.onPause)==null||ft.call(a)};if(N.info.isEnded$.getValue()){if(ee({message:"toggle play, video ended, seek to 0"}),ci.next(),ei.next(ss.SeekAction.REWIND),S){A==null||A();return}N.seekTime(0),J()}else N.info.playbackState$.getValue()!==di.PlaybackState.PLAYING?J():Be();oe.log("toggle play",L)},rt=(c,{changeReason:x="default",appliesTo:L="to-video"}={})=>{ee({message:`set quality, quality: ${c}`}),oe.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(se.features.qualityDetailsSubMenuEnabled?(au({type:"exact_quality",quality:c,videoId:i},L),_d(),N.setPredefinedQualityLimits(di.PredefinedQualityLimits.UNKNOWN)):df(i,c),zn.set(c),N.setQuality(c)):se.features.qualityDetailsSubMenuEnabled?x==="default"&&(Zi("auto_quality",L),ye(Fi)&&Mt(!1),ye(Wo)&&mi(!1)):_d()},Mt=(c,x="as-default")=>{ee({message:`set trafficSavingEnabled, value: ${c}`}),oe.log("set traffic saving enabled",{trafficSavingEnabled:c});let L=c?di.PredefinedQualityLimits.TRAFFIC_SAVING:di.PredefinedQualityLimits.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(lo(L,x),hd(!1)):(N.setPredefinedQualityLimits(L),hd(c))},mi=(c,x="as-default")=>{ee({message:`set highQualityEnabled, value: ${c}`}),oe.log("set high quality enabled",{highQualityEnabled:c}),lo(c?di.PredefinedQualityLimits.HIGH_QUALITY:di.PredefinedQualityLimits.UNKNOWN,x)},lo=(c,x)=>{c!==di.PredefinedQualityLimits.UNKNOWN&&(ye(ln)&&!ye(Tn)&&rt("auto",{appliesTo:x,changeReason:"limit-changed"}),Zi(c,x)),N.setPredefinedQualityLimits(c)},Zi=(c,x)=>{au({type:c,videoId:i},x),x==="as-default"&&au({type:c,videoId:i},"to-video")},co=c=>{oe.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),se.features.saveRate&&le&&!N.info.isLive$.getValue()&&i1(c)},uo=()=>{let c=ye(En),x=c.findIndex(({selected:J})=>J);if(x===c.length-1)return;let L=c[x+1];co(L.value)},Zo=()=>{let c=ye(En),x=c.findIndex(({selected:J})=>J);if(x===0)return;let L=c[x-1];co(L.value)},Xo=(c={...xi,selected:!1})=>{oe.log("set subtitles",{...c}),c.value!==xi.value&&at.next(c.isAuto?c.value+"_auto":c.value),Li.set(c),hf(c.value===xi.value?void 0:c.language),se.features.userVideoPrefs&&i&&_f(se.userSalt,String(i),{subtitleTrackId:c.value===xi.value?void 0:c.value})},An=()=>{oe.log("toggle subtitles");let c=ye(ho),x=ye(Li),L=ye(It);if((x==null?void 0:x.value)===xi.value){let J=c.filter(Be=>Be.value!==xi.value).find(Be=>Be.value===L)||c[1];Xo(J)}else Xo()},po=ne(!0),Xi=c=>{po.set(c)},bo=(c,x,L=!0)=>{var J;if(ee({message:`seek to time, time: ${c}`}),oe.log("seek to time",{time:c,action:x,forcePrecise:L}),ei.next(x),N.info.isLive$.getValue()){let Be=N.info.duration$.getValue(),ft=Math.min(0,Be+c);N.seekTime(ft,L)}else{if(I!=null&&I.getValue())return;N.info.isEnded$.getValue()&&(ee({message:"seek after ended, call callbacks.onPlay"}),(J=a==null?void 0:a.onPlay)==null||J.call(a)),N.seekTime(Dv(c),L)}},dr=c=>{ee({message:`seek to episode start time: ${c}`}),oe.log("seek to episode start time",{time:c}),bo(c,ss.SeekAction.EPISODE,!0)},qn=(c,x)=>{ee({message:`seek to percent, percent: ${c}`}),oe.log("seek to percent",{percent:c,action:x});let L=ye(no)*c;bo(L,x,!1)},cr=c=>{ee({message:`seek external, time: ${c}`}),oe.log("seek external",{time:c}),ei.next(ss.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Kr=c=>{var J,Be;let x=(J=c.max)!=null?J:"none",L=(Be=c.min)!=null?Be:"none";ee({message:`set auto quality limitation. Max: ${x}. Min: ${L}`}),oe.log("set auto quality limits",{max:x,min:L}),N.setAutoQualityLimits(c)},Qr=c=>{ee({message:`seek external to episode start time: ${c}`}),oe.log("seek external to episode start time",{time:c}),bo(c,ss.SeekAction.EPISODE,!0)},Vo=c=>{ee({message:`set playback rate to: ${c}`}),oe.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Jo=ne(void 0),Ke=ne(!1),Jt=c=>{ee({message:`start scrubbing, progress: ${c}`}),oe.log("start scrubbing",{progress:c}),Ke.set(!0),$i(c)},$i=c=>{Jo.set(c)},$o,Ro,Se=()=>{Jo.set(void 0),Ke.set(!1)},yt=()=>{clearTimeout(Ro),clearTimeout($o),$o=window.setTimeout(()=>{Se()},500),Xe==null||Xe.removeEventListener("seeked",yt)},vi=c=>{ee({message:`complete scrubbing, progress: ${c}`}),oe.log("complete scrubbing",{progress:c}),qn(c,ss.SeekAction.SLIDER),ye(Lt.ui.isMobile)&&ye(Lt.state.currentFormat$)===di.VideoFormat.HLS?(Xe==null||Xe.addEventListener("seeked",yt),Ro=window.setTimeout(()=>{yt()},300)):Se()},Ji=bi([Ti,no,Jo],([c,x,L],J)=>{J((0,mt.isNonNullable)(L)?L*x:c)}),en=ne(!1),yo=()=>{en.set(!0)},tt=()=>{en.set(!1)},Ut=bi([Re],([{width:c}],x)=>{let L=R1(c);x(L)}),Vi=ne(!1),tn=G.filter(c=>zh(c)),gn=bi([Ut,Vi],([c,x])=>x?tn.filter(L=>!L.hideOnMobile):tn.filter(L=>{var J;return!((J=L.hideOnDesktopGridTypes)!=null&&J.includes(c))})),fo=ne(G.filter(c=>Wh(c))),Gr=bi([fo,Ut],([c,x])=>c.filter(L=>{var J;return!((J=L.hideOnDesktopGridTypes)!=null&&J.includes(x))})),Tr=bi([Gr,gn],([c,x])=>[...se.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...se.features.additionalButtons?x.map((L,J)=>{var Be;return{id:J,weight:J,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Be=L.ariaLabel)!=null?Be:L.tooltip,tooltipText:L.tooltip}}):[]]),hi=ne(q),ki=bi([hi],([c])=>se.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Mn=(c,x)=>{let L=ye(fo).map(J=>J.id!==c?J:{...J,...x});fo.set(L)},Kn=c=>{let x=ye(fo);if(x.some(L=>L.id===c.id)){ee({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),fo.set(x)},Er=c=>{let x=ye(fo);if(!x.some(L=>L.id===c)){ee({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(L=>L.id!==c),fo.set(x)},xo=c=>{ei.next(ss.SeekAction.LIVE),ee({message:"live switch to low latency "+c}),oe.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Fa=(c,x)=>{let L=ye(hi).map(J=>J.id!==c?J:{...J,...x});hi.set(L)},qs=c=>{let x=ye(hi);if(x.some(L=>L.id===c.id)){ee({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),hi.set(x)},bt=c=>{let x=ye(hi);if(!x.some(L=>L.id===c)){ee({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(L=>L.id!==c),hi.set(x)},ut=ne(W),mo=bi([ut],([c])=>se.features.additionalContextMenuItems?c:[]),on=(c,x)=>{let L=ye(ut).map(J=>J.id!==c?J:{...J,...x});ut.set(L)},zi=c=>{let x=ye(ut);if(x.some(L=>L.id===c.id)){ee({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ut.set(x)},si=c=>{let x=ye(ut);if(!x.some(L=>L.id===c)){ee({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(L=>L.id!==c),ut.set(x)},Ri=bi([Vi,Kt],([c,x],L)=>{L(c&&x)}),ws=()=>{ei.next(ss.SeekAction.LIVE),ee({message:"switch to active live"}),oe.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==di.PlaybackState.PLAYING&&Lt.actions.internal.togglePlay()},Ol=()=>{oe.log("skip adman"),_e.skip()},hc=(c=!0)=>{var J;(0,mt.assertNonNullable)(Lt),ee({message:`switch from ads to video, callPlay: ${c}`}),oe.log("switch from ads to video",{callPlay:c}),te.set("video"),c&&N.play(),l&&Ao(!0);let x=(J=ye(ze))==null?void 0:J.muted,L=!N.info.muted$.getValue();x!==void 0&&!L&&Ao(x),ze.set(void 0)},rp=()=>{(0,mt.assertNonNullable)(Lt),ee({message:"switch from video to ads"}),oe.log("switch from video to ads"),Lt.actions.internal.pause(),yi(),te.set("ads")},_c=c=>{(0,mt.assertNonNullable)(Lt);let x=c?"LiveWaitingStart":"thumb";oe.log("set live waiting start",{state:c,playerPhase:x}),te.set(x)},sp=c=>{(0,mt.assertNonNullable)(Lt);let x=c?"LiveWaitingRecover":"thumb";oe.log("set live waiting recover",{state:c,playerPhase:x}),te.set(x)},bc=c=>{(0,mt.assertNonNullable)(Lt);let x=c?"LiveWaitingRecord":"thumb";oe.log("set live waiting record",{state:c,playerPhase:x}),te.set(x)},ap=()=>((0,mt.assertNonNullable)(Lt),oe.log("get debug text data"),Hh(N,Qe,Lt,Le.getTraceId())),$c=()=>((0,mt.assertNonNullable)(Lt),JSON.stringify(Le.getFinishedSpans())),lp=()=>((0,mt.assertNonNullable)(Lt),Fh(N,Qe,Lt)),Ks=()=>Xe,yc=()=>{ee({message:"toggle chromecast"}),oe.log("toggle chromecast"),N.toggleChromecast()},Dl=c=>{var L;if((0,mt.assertNonNullable)(Lt),N.info.isEnded$.getValue())return;let x=!c;if(ye(Lt.playerPhase)==="ads"){ee({message:`pause ads, internalCall: ${x}`}),oe.log("pause ads",{internalCall:x}),_e.pause();return}ee({message:`pause video, internalCall: ${x}`}),oe.log("pause video",{internalCall:x}),x&&((L=a==null?void 0:a.onPause)==null||L.call(a)),N.pause()},xc=c=>{var L;(0,mt.assertNonNullable)(Lt);let x=!c;if(ye(Lt.playerPhase)==="ads"){ee({message:`play ads, internalCall: ${x}`}),oe.log("play ads",{internalCall:x}),_e.play();return}ee({message:`play video, internalCall: ${x}`}),oe.log("play video",{internalCall:x}),x&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),N.play()},wc=c=>{(0,mt.assertNonNullable)(Lt);let x=!c;if(ye(Lt.playerPhase)==="ads"){ee({message:"player cannot be stopped during ads via external method"});return}ee({message:`player will be stopped, internalCall: ${x}`}),k==null||k()},Cc=(c,x)=>{(0,mt.assertNonNullable)(Lt),ee({message:`first start, show ads: ${c}, internalCall: ${!x}`}),oe.log("first start",{showAds:c,external:x}),c?te.set("ads"):(te.set("video"),x?N.play():Lt.actions.internal.togglePlay())},Ua=()=>(ee({message:"getting time codes"}),f),Sc=()=>{let c=Ua();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(L=>L.time>x)},dp=c=>{let x=c;x||(x=Sc());let L=N.info.position$.getValue();oe.log("seek to next episode",{currentTime:L,...x}),x&&(ee({message:"seek to next episode"}),bo(x.time,ss.SeekAction.EPISODE,!0))},Tc=()=>{let c=Ua();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),L=c.findIndex(Be=>Be.time>x),J=L===-1?c.length-2:L-2;if(!(J<0))return c[J]},Ge=c=>{let x=c;x||(x=Tc());let L=N.info.position$.getValue();oe.log("seek to prev episode",{currentTime:L,...x}),x&&(ee({message:"seek to prev episode"}),bo(x.time,ss.SeekAction.EPISODE,!0))},ai=()=>(ee({message:"getting preview thumbs data"}),oe.log("get preview thumbs data",{...v}),v),No=async()=>{let c=ce==null?void 0:ce.isActive(),x="none";ce!=null&&ce.isActive()?(x="exit",await(ce==null?void 0:ce.exit())):(x="request",await(ce==null?void 0:ce.request())),oe.log("toggle picture in picture",{isActive:c,action:x})},Qs=(c=-90)=>{oe.log("rotate video",{alphaDiff:c}),ct.update(x=>x+c)},wo=ne([]);T==null||T.subscribe(c=>{let x=[];for(let L=0;L<c.length;L++){let{range:[J,Be],subjects:ft}=c[L];L===0&&J!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:J/1e3,text:"",interactive:!0,completed:se.features.interactiveTimeOpenUri?!ft.length||ft.every(Ht=>Ht.isRemoved):!ft.length}),Be!==1/0&&x.push({time:Be/1e3,text:"",interactive:!1,completed:!0})}wo.set(x)});let M0=ne(!1);I==null||I.subscribe(c=>{c&&ye(Ke)&&Se()});let Dv=c=>{if(!S)return c;let x=ye(wo),L=ye(no),Be=ye(ir)/L,ft=x.find(Ht=>Ht.interactive&&!Ht.completed&&Ht.time>Be);return typeof(ft==null?void 0:ft.time)=="number"?Math.min(c,ft.time-.05):c},L0=()=>{Lt.ui.episodes.panelOpened$.set(!1)},V0=()=>{oe.log("destroy store"),clearTimeout(Ro),clearTimeout($o),Te.unsubscribe(),oo.unsubscribe(),N.destroy(),_e.destroy(),de==null||de.destroy(),ge==null||ge.destroy(),Qt.unsubscribe(),jt==null||jt.disconnect(),jt=null,Ae.destroy()},Lt={interfaceLanguage$:It,isCyrillicRelatedInterface$:xe,initVideo:kt,videoId:i,isClip:o,playerPhase:Ne,vsid:Ye,state:{positionExact$:Ti,positionWithScrubbing$:Ji,duration$:no,playbackState$:D,isPlaying$:tr,isLoaderVisible:Cn,bufferedProgress$:In,isLive$:_t,canChangePlaybackSpeed$:Je,isActiveLive$:Hr,isOldestAvailableLive$:Fn,isRewindableLive$:Fr,isEnded$:li,muted$:Vt,volume$:Yt,trafficSavingEnabled$:Fi,highQualityEnabled$:Wo,autoQualityLimitingAvailable$:ln,availableVideoStreams$:cn,availableAudioStreams$:or,videoStream$:ro,audioStream$:Go,currentQuality$:_r,isAutoQualityEnabled$:Tn,availableQualities$:nt,currentPlaybackRate$:oi,availablePlaybackRates$:En,currentSubtitle$:Li,availableTextTracks$:un,availableSubtitlesList$:ho,currentSubtitleCaptions$:yr,isAutoSubtitleCaptionVisible$:Ur,chromecastState$:Ii,chromecastDeviceName$:qo,chromecastConnected$:gr,currentFormat$:wn,throughputEstimation$:Ui,videoBitrate$:Yi,videoSize$:ko,errorLog$:Xt,crashed$:Kt,isAudioAvailable$:Hn,isAudioDisabled:!!l,canDownload:se.features.download&&!!d,availableSources$:xr,hasMpegSources$:_o,isInteractive:S,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!ye(wo).length,interactiveEpisodes$:wo,isInteractiveTime$:I?ii(I):ne(!1),isInteractiveExpectation$:M0,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,looped$:mn,loadedMetadata$:qe,isAutoQualityAvailable$:br},ui:{t:he,controlsVisible:ne(!1),touched:ne(!1),controls:{prevButton:ne(void 0),playButton:ne(void 0),replayButton:ne(void 0),nextButton:ne(void 0),playPrevChapterButton:ne(void 0),seekToInteractiveButton:ne(void 0),interactiveGraphButton:ne(void 0),liveButton:ne(void 0),time:ne(void 0),episodes:ne(void 0),volume:ne(void 0),subtitles:ne(void 0),settings:ne(void 0),context:ne(void 0),chromecast:ne(void 0),pip:ne(void 0),fullscreen:ne(void 0),vkLogo:ne(void 0),interactiveTimeIndicator:ne(void 0),timeline:ne(void 0),autoplayNextToggle:ne(void 0),additionalButtons:G.length?G.reduce(c=>[...c,ne(void 0)],[]):[],disabledControls$:Fe},modals:{hotKeyMap:{show:ne(!1),data:ne({title:"",closeBtnText:"",groups:[]})}},isFullscreen:it,isFullscreenOpenedByKeyboard:ht,rotateAlpha:ct,isAutoplay:ne(!1),debugPanelVisible:ne(!1),episodes:{panelOpened$:ne(!1),openedByKeyboard$:ne(!1)},contextMenu:{visible$:ne(!1),btnRef$:ne(void 0),openedByBtnKeyboard$:ne(!1),openedByHotKey$:ne(!1),lastActiveElem$:ne(void 0),showContextMenuBtn$:ne(!1),position$:ne({top:0,left:0})},playerSize:Re,isMobile:Vi,mobileNotReportControlHidden$:Ri,icon3DVideoVisible:ne(!1),scrubbingInProgress:Ke,volumeChangingInProgress:en,is3DVideo:qt,currentGridType$:Ut,additionalButtonsDeprecated$:gn,additionalDesktopControlPanelRightButtons$:Tr,additionalSettingsMenuItems$:ki,additionalContextMenuItems$:mo,interactiveHideMobileControls:ne(!1),overlayContainer$:ne(void 0),startedByKeyboard$:ne(!1),autoplayNextEnabled$:ne(!1),timerNextVideoRunning$:ne(!0),settingsMenu:{visible$:ne(!1),ref$:ne(void 0),openedByBtnKeyboard$:ne(!1)},settingsSubMenu:{visible$:ne(!1),ref$:ne(void 0),name$:ne(void 0)},aboutToGoNextVideo:ne(void 0),userActionsDisabled:ne(!1),hiddenControls:{volume:ne(!1),vkLogo:ne(!1),pip:ne(!1),chromecast:ne(!1),settings:ne(!1)},isControlsAvailable:po,controlBlocks:{topLeft:ne(void 0),topRight:ne(void 0),middle:ne(void 0),bottom:ne(void 0),bottomLeft:ne(void 0),bottomRight:ne(void 0)},videoTitleInfo:ne(void 0)},ads:{position:ne(0),duration:ne(0),playbackState:ne("inactive"),canSkip:ne(!1),secondsToWatchBeforeSkip:ne(0),postrollPassed:ne(!1)},webApi:{pictureInPictureApi:ce,annotationsApi:ue,slotsApi:pe},actions:{internal:{preload:vn,firstStart:c=>Cc(c,!1),play:()=>xc(!1),pause:()=>Dl(!1),togglePlay:Sr,toggleMuted:ti,openSettingsMenu:zr,closeSettingsMenu:Yo,openSettingsSubMenu:St,closeSettingsSubMenu:wr,setVolume:fn,startVolumeChanging:yo,stopVolumeChanging:tt,setVideoStream:nr,setAudioStream:Sn,setQuality:rt,setTrafficSavingEnabled:Mt,setHighQualityEnabled:mi,setPlaybackRate:co,incrementPlaybackRate:uo,decrementPlaybackRate:Zo,setSubtitle:Xo,toggleSubtitle:An,togglePictureInPicture:No,startScrubbing:Jt,progressScrubbing:$i,completeScrubbing:vi,toggleChromecast:yc,switchToActiveLive:ws,switchFromAdsToVideo:hc,switchFromVideoToAds:rp,skipAd:Ol,setLiveWaitingStart:_c,setLiveWaitingRecover:sp,setLiveWaitingRecord:bc,getDebugTextData:ap,getTraceTextData:$c,getDebugPanelData:lp,getVideoElement:Ks,seekTime:(c,x,L)=>bo(c,x,L),clearDelayedBufferingCheckTimeout:Qo,seekEpisodeStartTime:dr,seekToPercent:qn,getNextEpisode:Sc,seekToNextEpisode:dp,getPrevEpisode:Tc,seekToPrevEpisode:Ge,startLogging:zt,stopLogging:ui,startCameraManualRotation:ji,stopCameraManualRotation:zo,moveCameraFocusPX:At,holdCamera:wt,releaseCamera:Mi,getVideoEpisodes:Ua,getPreviewThumbsData:ai,downloadVideo:jo,addLanguage:bf,setLanguage:ae,nextMovie:ot,videoRotate:Qs,correctSeekTimeToInteractive:Dv,replayInteractive:A,setLooped:Mo,reportProblem:kn,setAutoplayNextEnabled:so,setTimerNextVideoRunning:Pn,prevVideoClick:Lo,nextVideoClick:lr,nextVideoAnnouncementShow:Wr,nextVideoAnnouncementClick:ls,nextVideoAnnouncementAuto:qr,nextVideoAnnouncementCancel:ao},external:{firstStart:c=>Cc(c,!0),play:()=>xc(!0),pause:()=>Dl(!0),stop:()=>wc(!0),seekTime:c=>cr(c),seekEpisodeStartTime:c=>Qr(c),setPlaybackRate:c=>Vo(c),setAutoQualityLimits:c=>Kr(c),setMuted:Ao,toggleSubtitle:An,setVolume:fn,returnFocusToEpisodes:L0,updateAdditionalSettingsItem:Fa,addAdditionalSettingsItem:qs,removeAdditionalSettingsItem:bt,updateAdditionalContextItem:on,addAdditionalContextItem:zi,removeAdditionalContextItem:si,updateAdditionalButton:Mn,addAdditionalButton:Kn,removeAdditionalButton:Er,setLiveLowLatency:xo,hideControls:()=>Xi(!1),showControls:()=>Xi(!0)}},callbacks:a,setUiCallbacks:c=>{Z={...c}},getAdmanWrapper:()=>_e,getLogger:()=>He,getPlayer:()=>N,destroy:V0};return Lt};function Br(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),r=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:p}=_s(e[i],t||void 0);return{left:r?d:0,right:r?p:0,top:r?l:0,bottom:r?a:0,isDisplayed:r}}var sy=["disabledControls$","additionalButtons"],ay=["interactiveTimeIndicator"],Sl=(t,e,i,o)=>{if(t){for(let[n,r]of Object.entries(e))if(!sy.includes(n)){let l=o||ay.includes(n);r.set(Br(t,i,n,l))}}};var Vu=async(t,e,i)=>{await So(),e&&i&&(i.focus(),t.set(!1))};var ly=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function _m(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=ly();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}function bm(t,e){H(e,!0);let[i,o]=Oe(),n=()=>C(a,"$contextMenuVisible$",i),r=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ee(),a=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,$=j(void 0);We(()=>{s($)&&xt(()=>{u.set(s($))})});let w=I=>{let A=Bs(I),k=S1(s($));v.set(k),p.set(A),a.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Bt(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return r()},get ariaLabel(){return l()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return s($)},set ref(I){B($,I,!0)},children:(I,A)=>{_m(I,{})},$$slots:{default:!0}}),F(),o()}var dy=t=>{t.stopPropagation()},cy=M("<div><!> <div></div> <div></div></div>"),uy={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
226
+ `)),b(ue,pe)};V(Ve,ue=>{s(I)&&ue(ne)})}var N=P(Ve,2),He=_(N);{var _e=ue=>{var pe=Fe(),te=fe(pe);{var qe=Z=>{var Ae=es();O(Te=>$e(Ae,Te),[()=>F("tooltip_episode_unfinished")]),b(Z,Ae)},Xe=Z=>{var Ae=es();O(()=>$e(Ae,s(Q).text||"")),b(Z,Ae)};V(te,Z=>{u()&&s(Q).completed===!1?Z(qe):Z(Xe,!1)})}b(ue,pe)};V(He,ue=>{s(Q)&&ue(_e)})}h(N);var ge=P(N,2);{var de=ue=>{var pe=F2(),te=_(pe,!0);h(pe),O(()=>$e(te,d())),b(ue,pe)};V(ge,ue=>{u()||ue(de)})}h(ve),O(ue=>{ae=oe(ve,1,"timeline-preview svelte-1wqg760",null,ae,ue),dt(ve,`width: ${s(q)?s(T):s(S)}px;`)},[()=>({mobile:a()})]),b(t,ve),H(),o()}var W2=M('<span class="time svelte-1jr6obn"> </span>'),q2=M("<!> <!>",1),K2={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function um(t,e){var ie,Be,ze,Me,We;D(e,!0),z(t,K2);let[i,o]=Oe(),n=()=>C(X,"$interactiveEpisodes$",i),r=()=>C(E,"$duration$",i),l=()=>C(k,"$position$",i),d=()=>C(le,"$isInteractiveExpectation$",i),a=()=>C(ce,"$isInteractiveTime$",i),p=()=>C(R,"$isLive$",i),f=()=>C(q,"$isMobile",i),v=()=>C(Q,"$isActiveLive$",i),u=()=>C(A,"$bufferedProgress$",i),$=()=>C(ve,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=Ee(),I=Pt(),A=T.state.bufferedProgress$,k=T.state.positionWithScrubbing$,E=T.state.duration$,R=T.state.isLive$,Q=T.state.isActiveLive$,q=T.ui.isMobile,W=I.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,G=T.actions.internal.getPreviewThumbsData(),X=T.state.interactiveEpisodes$,Y=T.state.isInteractive,ce=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,me=T.actions.internal.correctSeekTimeToInteractive,ke=(ie=T.callbacks)==null?void 0:ie.onDisabledTimelineClick,ve=T.ui.controls.disabledControls$,ae=(ze=(Be=T.callbacks)==null?void 0:Be.uiInfo)==null?void 0:ze.onTimelineMouseEnter,Ve=(We=(Me=T.callbacks)==null?void 0:Me.uiInfo)==null?void 0:We.onTimelineMouseLeave,ne=T.ui.t,N=I.features.interactiveResponsiveUi,He=g(()=>Y?n():W),_e=g(()=>yn(r())),ge=g(()=>yn(l())),de=g(()=>l()/r()),ue=g(()=>d()||a()),pe=j(!1),te=j(""),qe=j(0),Xe=j(0),Z=j(0),Ae=g(()=>({containerWidth:s(Xe),translateXPx:s(qe),translateYPx:Y&&G?-36:-16,active:s(pe)&&w()&&!s(ue)&&!N,pointer:!I.features.timelinePreview||!G||p()})),Te=ne("aria_timeline"),Ye=g(()=>ne("aria_timeline_value",{position:s(ge),duration:s(_e)}));function it(Re){return!me||!Y?Re:me(Re*r())/r()}function bt(Re){T.actions.internal.startScrubbing(it(Re))}function gt(Re){a()||T.actions.internal.progressScrubbing(it(Re))}function St(Re){T.actions.internal.completeScrubbing(it(Re)),B(pe,!1)}function Qe(Re,et,Lt){Yt(Re,et,Lt),B(pe,!0)}function zt(Re,et,Lt){Yt(Re,et,Lt),B(pe,!0)}function Xt(){B(pe,!1)}function Yt(Re,et,Lt){B(Z,it(Re),!0),B(qe,et,!0),Lt&&B(Xe,Lt,!0),B(te,Wt(Re),!0)}function Wt(Re){let et=yn((p()?1-Re:Re)*r());return p()?`-${et}`:et}var ee=q2(),Bt=fe(ee);dm(Bt,gs(()=>s(Ae),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Re,et)=>{var Lt=Fe(),Kt=fe(Lt);{var Je=ti=>{cm(ti,{get time(){return s(te)},get isMobile(){return f()},get videoEpisodes(){return s(He)},get previewThumbsData(){return G},get progress(){return s(Z)},get duration(){return r()},get isInteractive(){return Y}})},pi=ti=>{var at=W2(),Gt=_(at,!0);h(at),O(()=>$e(Gt,s(te))),b(ti,at)};V(Kt,ti=>{I.features.timelinePreview&&G&&!p()?ti(Je):ti(pi,!1)})}b(Re,Lt)},$$slots:{default:!0}}));var xe=P(Bt,2);let he=g(()=>$().has("TIMELINE"));Sa(xe,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Te},ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return l()},get ariaValueText(){return s(Ye)},get loadedProgress(){return u()},get filledProgress(){return s(de)},get handleProgress(){return s(de)},get videoEpisodes(){return s(He)},onPointerDown:bt,onHandleMove:gt,onPointerMove:zt,onPointerUp:St,onPointerEnter:Qe,onPointerLeave:Xt,get onMouseEnter(){return ae},get onMouseLeave(){return Ve},get onDisabledClick(){return ke},get isInteractive(){return Y},get disabled(){return s(he)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:St,get ref(){return S()},set ref(Re){S(Re)}}),b(t,ee),H(),o()}var Q2={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function Hd(t,e){D(e,!0),z(t,Q2);let[i,o]=Oe(),n=()=>C(a,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ee(),a=d.ui.isMobile,p=d.ui.t,f=g(()=>yn(l())),v=g(()=>yn(r())),u=g(()=>r()/l()),$=g(()=>p("aria_timeline_value",{position:s(v),duration:s(f)})),w=g(()=>Math.round(s(u)*100));Sa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return s(w)},get ariaValueText(){return s($)},get filledProgress(){return s(u)},hideHandel:!0,get squareBorders(){return n()}}),H(),o()}var G2=M("<div><!></div>"),j2=M("<div></div>"),Y2={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function Ta(t,e){D(e,!0),z(t,Y2);let[i,o]=Oe(),n=()=>C(S,"$isLive$",i),r=()=>C(A,"$isMobile",i),l=()=>C(k,"$disabled",i),d=()=>C(I,"$adPosition",i),a=()=>C(T,"$adDuration",i),p=m(e,"isAds",3,!1),f=m(e,"isHidden",3,!1),v=m(e,"timelineNotAvailable",3,!1),u=m(e,"needPadding",3,!0),$=m(e,"ref",15,void 0),w=Ee(),y=Pt(),S=w.state.isLive$,T=w.ads.duration,I=w.ads.position,A=w.ui.isMobile,k=re(!1),E=g(()=>!v()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||p()));var R=Fe(),Q=fe(R);{var q=G=>{var X=G2();let Y;var ce=_(X);{var le=ke=>{Hd(ke,{get position(){return d()},get duration(){return a()}})},me=ke=>{um(ke,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return s(E)},get withEpisodes(){return e.withEpisodes},get ref(){return $()},set ref(ve){$(ve)}})};V(ce,ke=>{p()?ke(le):ke(me,!1)})}h(X),vs(X,()=>gl(f()&&y.features.usePerformanceFix,k,y.disableInvisibleComponentsTimeout)),O(ke=>Y=oe(X,1,"timeline svelte-41cp6d",null,Y,ke),[()=>({withoutPadding:!u(),mobile:r(),"out-of-flow":l()})]),b(G,X)},W=G=>{var X=j2();let Y;O(ce=>Y=oe(X,1,"timeline-stub svelte-41cp6d",null,Y,ce),[()=>({mobile:r()})]),b(G,X)};V(Q,G=>{s(E)?G(q):G(W,!1)})}b(t,R),H(),o()}var U1=require("@vkontakte/videoplayer-shared/es2018");var Z2=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function pm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(3),h(o),b(t,o)}var X2=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function fm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=X2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var J2=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),ey=M('<span class="text svelte-1yhs2ga"> </span>'),ty=M('<span class="text count svelte-1yhs2ga"> </span>'),iy=M("<!> <!>",1),oy={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Fd(t,e){var le,me,ke;D(e,!0),z(t,oy);let[i,o]=Oe(),n=()=>C(w,"$currentGridType$",i),r=()=>C(y,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=m(e,"position",3,0),p=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=Ee(),u=(me=(le=v.callbacks)==null?void 0:le.onEpisodeChanged)!=null?me:U1.noop,$=!!((ke=v.callbacks)!=null&&ke.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,T=v.ui.isMobile,I=v.ui.t,A=j(void 0),k=ve=>{var Ve,ne,N;if(!!((Ve=v.callbacks)!=null&&Ve.onEpisodeClicked)){let He=Bs(ve);y.set(He),S.set(!0),(N=(ne=v.callbacks)==null?void 0:ne.onEpisodeClicked)==null||N.call(ne,He)}},E=j(null),R=g(()=>a()/p());Ue(()=>{var ae;let ve=Su(s(R),p(),f());ve?((ae=s(E))==null?void 0:ae.time)!==ve.time&&(u(ve),B(E,ve,!0)):B(E,null)});let Q=g(()=>{var ve;return((ve=s(E))==null?void 0:ve.text)||""}),q=g(()=>Hi(n(),"xl")?"FULL":Hi(n(),"m")&&R1(n(),"xl")?"COUNT":"SHORT"),W=g(()=>`${I("tooltip_episodes")}: ${s(Q)}`),G=async(ve,ae,Ve)=>{await wo(),(ve==null?void 0:ve.getAttribute("aria-expanded"))==="false"&&ae&&!Ve&&Ct(()=>{y.set(!1),ve.focus()})};Ue(()=>{G(s(A),r(),l())});var X=Fe(),Y=fe(X);{var ce=ve=>{let ae=g(()=>d()?"px-0":""),Ve=g(()=>!$);Nt(ve,{get className(){var ne;return`w-max btn-full-opacity btn-jc-l ${(ne=s(ae))!=null?ne:""}`},testId:"btn-episodes",click:k,get disabled(){return s(Ve)},get ariaExpanded(){return l()},get ariaLabel(){return s(W)},get ref(){return s(A)},set ref(ne){B(A,ne,!0)},children:(ne,N)=>{var He=Fe(),_e=fe(He);{var ge=ue=>{var pe=J2(),te=fe(pe),qe=_(te,!0);h(te);var Xe=P(te,2),Z=_(Xe);fm(Z,{}),h(Xe),O(()=>$e(qe,s(Q))),b(ue,pe)},de=ue=>{var pe=iy(),te=fe(pe);pm(te,{});var qe=P(te,2);{var Xe=Ae=>{var Te=ey(),Ye=_(Te,!0);h(Te),O(()=>$e(Ye,s(Q))),b(Ae,Te)},Z=(Ae,Te)=>{{var Ye=it=>{var bt=ty(),gt=_(bt,!0);h(bt),O(()=>$e(gt,f().length)),b(it,bt)};V(Ae,it=>{s(q)==="COUNT"&&it(Ye)},Te)}};V(qe,Ae=>{s(q)==="FULL"?Ae(Xe):Ae(Z,!1)})}b(ue,pe)};V(_e,ue=>{d()?ue(ge):ue(de,!1)})}b(ne,He)},$$slots:{default:!0}})};V(Y,ve=>{s(E)&&ve(ce)})}b(t,X),H(),o()}var Im=require("@vkontakte/videoplayer-shared/es2018");var li=require("@vkontakte/videoplayer-core/es2018"),mt=require("@vkontakte/videoplayer-shared/es2018"),ss=require("@vkontakte/videoplayer-statistics/es2018");var je=require("@vkontakte/videoplayer-shared/es2018"),Wi=require("@vkontakte/videoplayer-shared/es2018");var z1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var ny="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Tu=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new Wi.Subject,loadStarted$:new Wi.Subject,loadEnded$:new Wi.Subject,loadError$:new Wi.Subject,ready$:new Wi.Subject,slotRequested$:new Wi.Subject,started$:new Wi.Subject,timeRemained$:new Wi.Subject,paused$:new Wi.Subject,resumed$:new Wi.Subject,ended$:new Wi.Subject,empty$:new Wi.Subject,skipped$:new Wi.Subject,clicked$:new Wi.Subject,closed$:new Wi.Subject,error$:new Wi.Subject};this.loadAdman=e=>(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,je.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,je.now)()]}),o())};(0,Wi.addScript)(ny,e,this.loadTimeout).then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,je.now)()]}),window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,je.now)()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout))}).catch(l=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,je.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,je.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,je.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,je.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,je.now)()]}),!d&&(window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,je.now)()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,je.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,je.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,je.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,je.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,je.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var A;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,je.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:r,adsContainer:l,adsVideoElement:d,slotId:a,params:p={},duration:f,previewParam:v}=e,u,$=this.playerState&&ye(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=(0,je.detectEmbed)(),S=(A=w?y:window.location.href)!=null?A:window.location.href,T={...p,dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o,preview:v,...u?{request_id:u}:{},duration:f,puid10:z1(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){je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[(0,je.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,r;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,je.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`}),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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adsState){this.log({message:"toggle play"});let i=ye(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,je.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){var i;this.watchDogTimeout&&this.stopWatchDog(),((i=this.adsState)!=null&&i.playbackState?ye(this.adsState.playbackState):void 0)!=="inactive"&&(this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout))}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,r,l,d,a,p,f,v,u;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,je.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(r=this.adman)==null||r.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&(0,Wi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var W1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var mm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let r of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=r.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let p=new Eu,{startTime:f,endTime:v}=p.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let p=new vm,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Eu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let r=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return r+l+d+a}},vm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let p=["<",">"].reduce((f,v)=>{let u=l.indexOf(v,d);return f===-1||f>u?u:f},-1);if(p===-1){a.push(l.substring(d));break}a.push(l.substring(d,p)),d=p+1}return a}}),r=new Eu;for(let l of n)r.isTime(l)?i.texts.push({type:"timestamp",value:r.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},q1=mm;var ku=require("@vkontakte/videoplayer-shared/es2018"),Ea,Ti,gm=0,hm=!1,K1="",Q1=(t,e=0,i=0)=>t<e&&t<i,Iu=(t,e=0,i=0)=>t>=e&&t<=i,ry=(t,e=0,i=0)=>t>e&&t>i,G1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:f})=>Iu(t,p,f));let r=t>=gm,l=t<gm;if(gm=t,l&&(hm=!1),(0,ku.isNonNullable)(Ea)&&Iu(t,Ea.startTime,Ea.endTime)&&K1===e.value)return Ea;if(!(0,ku.isNonNullable)(Ti)&&(n!=null&&n.length)&&!hm){Ti=n.find(({startTime:p,endTime:f})=>Iu(t,p,f)||r&&Q1(t,p,f)),Ea=void 0,!(0,ku.isNonNullable)(Ti)&&n[n.length-1].endTime<t&&(hm=!0);return}else{if(Iu(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime))return Ea=Ti,Ti=void 0,K1=e.value,Ea;(r&&ry(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime)||l&&Q1(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime))&&(Ti=void 0)}};var Pu={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},sy={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Au=t=>{var e,i;return(i=(e=Pu[t])!=null?e:Pu[sy[t]])!=null?i:void 0};var j1=require("@vkontakte/videoplayer-shared/es2018"),XB=require("@vkontakte/videoplayer-statistics/es2018"),Mu=class{constructor(e,i,o,n=new j1.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var Ud=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Ud||{});var rs=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(rs(i==null?void 0:i.top)-rs(o==null?void 0:o.top)),left:Math.round(rs(i==null?void 0:i.left)-rs(o==null?void 0:o.left)),bottom:Math.round(rs(i==null?void 0:i.bottom)-rs(o==null?void 0:o.top)),right:Math.round(rs(i==null?void 0:i.right)-rs(o==null?void 0:o.left))}},Cl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:rs(e==null?void 0:e.width),height:rs(e==null?void 0:e.height)}};var Lu="off";var Y1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:p,videoEpisodes:f,previewThumbsData:v,uiConfig:u,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:A,stopPlayer:k,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,additionalButtons:Q,additionalSettingsMenuItems:q,additionalContextMenuItems:W,playPrevVideo:G,playNextVideo:X,looped:Y=!1,statistics:ce,saveRate:le,internalsExposure:me,playerView:ke})=>{var Hv,Fv,Uv;let ve={...$,configName:[...(Hv=$.configName)!=null?Hv:[],"ui"],isAudioDisabled:l,live:{...(Fv=$.live)!=null?Fv:{},isLiveCatchUpMode:!!n}},ae=u,Ve=mt.TracerFactory.createRootTracer(ae.features.tracer),ne=Ve.createComponentTracer("Store"),N=w||new li.Player(ve,Ve);me==null||me.expose({corePlayer:N});let He=new mt.Logger,_e=new Tu(He,{loadTimeout:ae.ads.loadTimeout,initTimeout:ae.ads.initTimeout,runtimeTimeout:ae.ads.runtimeTimeout,useAdmanFromNPM:ae.ads.useAdmanFromNPM,volumeMultiplier:ae.ads.volumeMultiplier,isVsidOriginal:ae.ads.isVsidOriginal}),ge=va.getInstance(),de=p==null?void 0:p.pictureInPictureApi,ue=p==null?void 0:p.annotationsApi,pe=p==null?void 0:p.slotsApi,te=He.createComponentLog("Store"),qe,Xe,Z={},Ae=new nu,Te=new mt.Subscription,Ye=ce&&ce.oneStat?ei(ce.oneStat.vsid$):mr(void 0),it=re(Vs()),bt=re(!1),gt=(Uv=de==null?void 0:de.info.isActive$)!=null?Uv:new mt.ValueSubject(!1),St=re(0),Qe=re(!1),zt=re(!1),Xt=re([]),Yt=(0,mt.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>Xt.update(x=>[...x,c])),Wt=mr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ee=async c=>{var J;let x=Object.values(mt.InterfaceLanguage).includes(c);if(ae.downloadVKLanguages&&(x&&ae.updateBuiltinLanguages||!$f(c))){let Ne;try{Ne=await(0,mt.loadVKLangPack)(c,kh,Ph)}catch(ft){(J=ce==null?void 0:ce.oneStat)==null||J.logError({errorType:"VKLangPack",fatal:!1}),ge==null||ge.report(ft,{errorType:"VKLangPack",fatal:!1})}Ne&&(bf({language:c,pack:Ne,fallback:ae.defaultLanguage}),Bt.set(c))}$f(c)&&Bt.set(c)},Bt=re(t),xe=re(e);ee(t);let he=(c,x)=>{let L=ye(Bt);return yf(L,c,x,ae.defaultLanguage)},ie=re("thumb");ie.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&Me()});let Be=(()=>{let c=$i([Wt,ie],([x,L])=>x?"crashed":L);return{...c,is:x=>ye(c)===x}})(),ze=re(),Me=()=>{ze.set({muted:N.info.muted$.getValue()})},We=(()=>{let c=re(new Set(y));return{...c,add:x=>{c.update(L=>new Set([...L].concat(x)))},remove:x=>{c.update(L=>{let J=[...L];return new Set(Array.isArray(x)?J.filter(Ne=>!x.includes(Ne)):J.filter(Ne=>Ne!==x))})},includes:x=>{let L=ye(c);return Array.isArray(x)?x.every(J=>L.has(J)):L.has(x)}}})(),Re=re({width:0,height:0});ne.log("create store"),te({message:"create store"});let et=c=>{let x=c.container,L=()=>{Gt=new MutationObserver(Ne=>{let{removedNodes:ft}=Ne[0];ft.length&&x.append(N.experimental.element$.getValue())}),Gt.observe(x,{childList:!0})},J=N.experimental.element$.getValue();if(J)x.append(J),L();else{let Ne=N.experimental.element$.pipe((0,mt.filter)(ft=>!!ft),(0,mt.once)()).subscribe(ft=>{x.append(ft),L()});Te.add(Ne)}},Lt=c=>{te({message:`init video, config: ${JSON.stringify(c)}`}),S?et(c):(mt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,mt.now)()]}),N.initVideo(c)),ne.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),qe=c},Kt=new mt.Subject,Je=c=>Kt.next(c),pi=new mt.Subject,ti=new mt.Subject,at=new mt.Subject,Gt=null,ri={actionRewind$:pi,actionSeek$:ti,inPiP$:gt,inFullscreen$:new mt.Observable(c=>it.subscribe(x=>c.next(x))),actionSetSubtitle$:at,nextMovie$:Kt},fi={actionSeek$:ti,playerSize$:new mt.Observable(c=>Re.subscribe(x=>c.next(x)))};if(ce){let{oneStat:c,thinOneStat:x,mediascopePixel:L,statSubscription:J}=ce;c&&(S||J.add(c.attachTo(N)),J.add(c.attachToUi(ri)),J.add(c.attachToAds(_e.events)),c.authorize(r).catch(Ne=>{te({message:`onestat auth error ${String(Ne)}`})}),L&&L.attachTo(N)),x&&(J.add(x.attachTo(N,_e.events)),J.add(x.attachToUi(fi)),J.add(x.attachToAds(_e.events)),x.authorize(r))}if(ge){let c=new mt.Subscription,x=(L,J)=>c.add(L.subscribe(J));if(x(N.events.managedError$,L=>{ge.logIError(L)}),x(N.events.fatalError$,L=>{ge.logIError(L,!0)}),ce){let{oneStat:L}=ce;L&&x(L.experimental.error$,J=>{ge.logIError(J)})}ge.sentrySubscription.add(c)}let fo=()=>{li.clientChecker.device.isIOS&&Xe&&v1(Xe).catch(c=>{te({message:`exitIosSafariFullscreen failed: ${c}`})})};Te.add(N.experimental.element$.subscribe(c=>{c&&(Xe=c,c.classList.add("player-media"),ha(de)&&de.updateVideoElement(),S&&c.setAttribute("pip","false"),ke==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;fo(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(N.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(N.events.started$.subscribe(async()=>{var x,L;ha(de)&&await(de==null?void 0:de.revealPictureInPicture());let c=N.info.muted$.getValue();(x=a==null?void 0:a.onStarted)==null||x.call(a),(L=Z.onStarted)==null||L.call(Z,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var L;(L=a==null?void 0:a.onSeek)==null||L.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 L;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((L=a==null?void 0:a.onTimeupdate)==null||L.call(a,x,c),_e.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=a==null?void 0:a.onCrashed)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=a==null?void 0:a.onRecoverableError)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{Qe.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{zt.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(I!=null&&I.getValue()&&We.add(vd),We.add("PLAY_BUTTON")):We.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=a==null?void 0:a.onLiveTime)==null||x.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=a==null?void 0:a.onStalledChanged)==null||x.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=a==null?void 0:a.onLiveEnded)==null?void 0:x.call(a))})).add(_e.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(_e.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(_e.events.loadError$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(_e.events.init$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(_e.events.ready$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(_e.events.started$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onStarted)==null?void 0:L.call(x,c)})).add(_e.events.timeRemained$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:L.call(x,c)})).add(_e.events.ended$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onCompleted)==null?void 0:L.call(x,c)})).add(_e.events.empty$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(_e.events.clicked$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClicked)==null?void 0:L.call(x,c)})).add(_e.events.closed$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClosed)==null?void 0:L.call(x,c)})).add(_e.events.error$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onError)==null?void 0:L.call(x,c)})).add(_e.events.paused$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(_e.events.resumed$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let Qi=new mt.Subscription,Qt=()=>{var ft,Ht,qt;let{debugLog:c}=ae,x,L="#9df7b7",J="#efd169";if(c&&c!==!0){let{colors:Ft}=c;x=c.tag,L=(ft=Ft==null?void 0:Ft[0])!=null?ft:L,J=(qt=(Ht=Ft==null?void 0:Ft[1])!=null?Ht:Ft==null?void 0:Ft[0])!=null?qt:J}let Ne=x?`: ${x}`:"";Qi.add(N.events.log$.subscribe(Ft=>{console.debug(`%c sdk${Ne} `,`background:${L};`,`sdk component: ${Ft.component}`,Ft.message)})).add(He.log$.subscribe(Ft=>{console.debug(`%c ui${Ne} `,`background:${J};`,`ui component: ${Ft.component}.`,Ft.message)}))},ni=()=>{Qi.unsubscribe()},Fo=(c,x)=>{ne.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Dt=(c=!1)=>{ne.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},$t=(c,x,L)=>{ne.log("move camera focus px",{xpx:c,ypx:x,dt:L}),N.moveCameraFocusPX(c,x,L)},Ei=()=>{N.holdCamera()},Uo=()=>{N.releaseCamera()},U=mr(N.info.position$.getValue(),c=>{let x,L,J=()=>{let Ne=N.info.playbackState$.getValue(),ft=N.info.isLive$.getValue(),Ht=N.info.duration$.getValue(),qt=N.info.position$.getValue();if(Ne&&[li.PlaybackState.PLAYING,li.PlaybackState.PAUSED].includes(Ne)){let Ft=ft?qt-Ht:N.getExactTime();Ft!==L&&c(Ft),L=Ft}x=requestAnimationFrame(J)};return J(),()=>cancelAnimationFrame(x)}),lt=ei(N.info.playbackState$),mi=ei(N.info.currentBuffer$),di=ei(N.info.isEnded$),pt=ei(N.info.isLive$),st=ae.features.playbackRate?ei(N.info.canChangePlaybackSpeed$):mr(!1),vt=ei(N.info.liveBufferTime$),yi=ei(N.info.volume$),kt=ei(N.info.muted$),an=ru(N.info.predefinedQualityLimitType$.pipe((0,mt.map)(c=>c===li.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===li.PredefinedQualityLimits.TRAFFIC_SAVING),zo=ru(N.info.predefinedQualityLimitType$.pipe((0,mt.map)(c=>c===li.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===li.PredefinedQualityLimits.HIGH_QUALITY),ln=ei(N.info.autoQualityLimitingAvailable$),Ii=ei(N.info.availableQualities$),xt=ei(N.info.availableQualitiesFps$),ki=ei(N.info.chromecastState$),Wo=ei(N.info.chromecastDeviceName$),wn=ei(N.info.currentFormat$),Fi=ei(N.info.throughputEstimation$),Gi=ei(N.info.videoBitrate$),Eo=ei(N.info.intrinsicVideoSize$),dn=ei(N.info.duration$),Hn=ei(N.info.isAudioAvailable$),ci=null,qo=N.info.isBuffering$,Cn=mr(qo.getValue(),c=>{let x=qo.subscribe(L=>{L&&ci===null?ci=window.setTimeout(()=>{c(qo.getValue()),ci=null},ae.loaderDelay):c(L)});return()=>{x.unsubscribe(),ci&&clearTimeout(ci)}}),Ko=()=>{ci&&clearTimeout(ci),ci=null},to=$i([dn,pt],([c,x])=>x?-c:c),tr=$i([lt],([c])=>c===li.PlaybackState.PLAYING),Hr=ei(N.info.atLiveEdge$),Fn=ei(N.info.atLiveDurationEdge$),ir=ei(N.info.position$),Fr=$i([ir,dn],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),gr=$i([ki],([c])=>c===li.ChromecastState.CONNECTED),cn=ei(N.info.availableVideoStreams$),or=ae.features.audioLanguages?ei(N.info.availableAudioStreams$):mr([]),io=ei(N.info.currentVideoStream$),Qo=ei(N.info.currentAudioStream$),nr=c=>{c.language&&vf(c.language),N.setVideoStream(c)},Sn=c=>{c.language&&vf(c.language),N.setAudioStream(c),ae.features.userVideoPrefs&&i&&_f(ae.userSalt,String(i),{audioTrackId:c.id})},rr=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(J=>"isDefault"in J&&J.isDefault)),ae.features.userVideoPrefs&&i){let J=du(ae.userSalt,String(i));if(J!=null&&J.audioTrackId){let Ne=c.find(ft=>ft.id===J.audioTrackId);x=Ne!=null?Ne:x}}let L=t1();return L&&(x!=null||(x=c.find(({language:J})=>L===J))),x!=null||(x=c.at(0)),x},Un=!1;Te.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Un&&c.length){let x=rr(c);x&&(N.setAudioStream(x),Un=!0)}}));let sr=!1;Te.add(N.info.availableVideoStreams$.subscribe(c=>{if(!sr&&c.length){let x=rr(c);x&&(N.setVideoStream(x),sr=!0)}}));let zn=re(void 0),Tn=ei(N.info.isAutoQualityEnabled$,c=>c&&zn.set(void 0)),hr=ei(N.info.currentQuality$,()=>zn.set(void 0)),_r=$i([zn,hr],([c,x])=>c!=null?c:x),br=$i(wn,c=>c!==li.VideoFormat.MPEG),ot=$i([Ii,xt,Tn,_r,br],([c,x,L,J,Ne])=>{let ft=[];Ne&&ft.push({value:"auto",displayValue:he("auto_quality_option"),selected:L});let Ht=c.filter(qt=>!(0,mt.isInvariantQuality)(qt));for(let qt of Ht){let Ft=x[qt];ft.push({value:qt,displayValue:`${qt}${Ft?W1(Ft):""}`,selected:L?!1:qt===J})}return ft}),ii=ei(N.info.currentPlaybackRate$),En=$i([ii,Hr,Fn],([c,x,L])=>{let J=L||S?1:ae.controls.playbackRateMin,Ne=x?1:ae.controls.playbackRateMax,ft=ae.controls.playbackRateStep,Ht=[];for(let qt=J;qt<=Ne;qt+=ft)Ht.push({value:qt,displayValue:qt===1?he("playback_rate_1"):he("playback_rate",{multiplier:qt.toString(10)}),selected:c===qt});return Ht}),wi={displayValue:he("subtitles_off"),value:Lu,language:""},Li=re({...wi}),un=ae.features.subtitles?ei(N.info.availableTextTracks$):mr([]),pn=qh(),mo=$i([un,Li],([c,x],L)=>{var ft;let J=[],Ne=c.find(({id:Ht})=>Ht===x.value);if(Ne!=null&&Ne.url){let[,Ht]=(ft=pn.find(Ne.url))!=null?ft:[];if(Ht){L(Ht);return}Ae.download(Ne.url).then(qt=>{if(!qt||Ae.isDestroyed())return;let Ft=new q1,Cs=Ne.language;if(Cs){let N0=!!Ne.isAuto,B0=Ft.parse(qt,Cs);J.push({lang:Cs,subtitles:B0,isAuto:N0,id:Ne.id})}pn.add(Ne.url,J),ye(Li).value===x.value&&L(J)}).catch(qt=>{var Ft;(Ft=ce==null?void 0:ce.oneStat)==null||Ft.logError({errorType:"Subtitles download",fatal:!1}),ge==null||ge.report(qt,{errorType:"Subtitles download",fatal:!1})})}L(J)}),Wn=$i([ii,tr,Li],([c,x,L],J)=>{let Ht;if(N.info.isLive$.getValue()&&x&&L.value!==wi.value){let Ft=()=>{let Cs=1e3/(3*c);Ht=setTimeout(Ft,Cs),J(Date.now())};return Ft(),()=>clearTimeout(Ht)}}),vo=$i([un,Li],([c,x])=>{if(!c.length)return[];let L=[];for(let{language:J,isAuto:Ne,id:ft}of c){let Ht=J&&Au(J);J&&Ht&&L.push({displayValue:Ne?he("subtitles_auto",{language:Ht}):Ht,value:ft,selected:(x==null?void 0:x.value)===ft,isAuto:Ne,language:J})}return L.length?(L.unshift({...wi,selected:(x==null?void 0:x.value)===wi.value}),L):[]}),Io={available:[],prev:[]},$r=()=>{var x,L;let c=N.experimental.getCurrentTime$.getValue();return(L=(x=c==null?void 0:c())!=null?x:Xe==null?void 0:Xe.currentTime)!=null?L:0},as=$i([U,Li,mo,Wn],([c,x,L,J])=>{var ft;let Ne=N.info.isLive$.getValue();if(Ne&&Io.prev!==L){let Ht=L.find(({id:Ft})=>Ft===x.value),qt=Io.prev.find(({id:Ft})=>Ft===x.value);if(Ht){let Ft={...Ht,subtitles:[...(ft=qt==null?void 0:qt.subtitles)!=null?ft:[],...Ht.subtitles]};Io.available=[Ft],Io.prev=L}}if(x&&x.value!==wi.value){let Ht=Ne?$r():c,qt=Ne?Io.available:L;return G1(Ht,x,qt,Ne)}}),yr=$i([as],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(Li.subscribe(c=>{var x,L;if(c.value===wi.value)(x=a==null?void 0:a.onSubtitleOff)==null||x.call(a);else{let J=Object.entries(Pu).find(([Ne,ft])=>ft===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,J?J[0]:"")}}));let Ur=re(!0),In=$i([mi,to,ir,vt],([c,x,L,J])=>{var qt;let Ne=(qt=c==null?void 0:c.end)!=null?qt:0;if(!J)return Ne/x;let Ht=-L+J-x;return(Ne-Ht)/x}),xr=ei(N.info.availableSources$),go=$i([xr],([c])=>Object.keys((c==null?void 0:c[li.VideoFormat.MPEG])||{}).length>0),ar=()=>{var L,J,Ne;let c=Object.keys(((J=(L=N.info.availableSources$)==null?void 0:L.getValue())==null?void 0:J[li.VideoFormat.MPEG])||{}),x=(0,mt.getHighestQuality)(c)||mt.VideoQuality.Q_144P;return(Ne=qe.sources[li.VideoFormat.MPEG])==null?void 0:Ne[x]},Go=()=>{var x;let c=ar();if(c)ne.log("download video",{url:c}),Uh(c,((x=qe==null?void 0:qe.meta)==null?void 0:x.title)||"video");else{let L="There is no URL for download video";ne.log("download video",{message:L}),te({message:L})}},Jt=()=>{te({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?fn(Vt()):ko(!c)},jo=()=>{var c;if(Mt.ui.settingsMenu.visible$.set(!1),!ye(Mt.ui.settingsSubMenu.visible$)){let x=ye(Mt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&x){let J=Cl(x),Ne={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:J,position:Ne,name:"settings"})}}ne.log("close settings menu")},zr=async(c,x=()=>Promise.resolve())=>{var Ne;Mt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Mt.ui.settingsMenu.visible$.set(!0),await x();let L=ye(Mt.ui.settingsMenu.ref$),J=Ks();if((Ne=a==null?void 0:a.uiInfo)!=null&&Ne.onSettingsMenu&&L&&J){let Ht=Cl(L),qt=_s(L,J);a.uiInfo.onSettingsMenu({visible:!0,size:Ht,position:qt,name:"settings"})}ne.log("open settings menu",{wasOpenedByKeyboard:c})},wr=(c,x=!1)=>{var ft;Mt.ui.settingsSubMenu.visible$.set(!1);let L=ye(Mt.ui.settingsMenu.ref$),J=Ks(),Ne=ye(Mt.ui.settingsMenu.visible$);if((ft=a==null?void 0:a.uiInfo)!=null&&ft.onSettingsMenu&&L&&J)if(Ne&&!x){let qt=Cl(L),Ft=_s(L,J);a.uiInfo.onSettingsMenu({visible:!0,size:qt,position:Ft,name:"settings"})}else{let qt=Cl(c),Ft={top:0,left:0,bottom:0,right:0},Cs=ye(Mt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:qt,position:Ft,name:Cs})}ne.log("close settings sub menu")},Et=(c,x)=>{var J;Mt.ui.settingsSubMenu.visible$.set(!0),Mt.ui.settingsSubMenu.ref$.set(x),Mt.ui.settingsSubMenu.name$.set(c);let L=Ks();if((J=a==null?void 0:a.uiInfo)!=null&&J.onSettingsMenu&&x&&L){let ft=Cl(x),Ht=_s(x,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:ft,position:Ht})}ne.log("open settings sub menu",{name:c})},Vt=()=>{var x;let c=Math.max(ae.volumeMinRestore,(x=su())!=null?x:0);return c===0?ae.volumeDefault:c},fn=c=>{let x=c===0?Vt():c,L=N.info.muted$.getValue();te({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let J=!l||Be.is("ads");L&&c>0&&J&&(L=!1,ff(!1)),N.setVolume(c,L),_e.setVolume(c),lf(x)},ko=c=>{let x=N.info.volume$.getValue();te({message:`set muted, currentVolume: ${x}, mute: ${c}`});let L=Be.is("ads");if(N.setMuted(c,L),_e.setVolume(c?0:x),(!L||!c)&&ff(c),!c&&x===0){let J=Vt();N.setVolume(J),lf(J),_e.setVolume(J)}},mn=re(!1),Po=c=>{var x,L;ne.log("set looped",{isLooped:c}),mn.set(c),N.setLooped(c),(L=(x=a==null?void 0:a.uiInfo)==null?void 0:x.onLoopedChanged)==null||L.call(x,c)};Po(Y);let kn=()=>{var c,x;(x=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},oo=(c,x=!1)=>{var L;te({message:`set autoplayNextEnabled, value: ${c}`}),ne.log("set autoplay next enabled",{autoplayNextEnabled:c}),Mt.ui.autoplayNextEnabled$.set(c),n1(c),x&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},Pn=c=>{te({message:`set timerNextVideoRunning, value: ${c}`}),ne.log("set timer next video running",{timerNextVideoRunning:c}),Mt.ui.timerNextVideoRunning$.set(c)},Ao=(c=!0)=>{var J;let x=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{x=(J=a==null?void 0:a.onPrevVideoClick)==null?void 0:J.call(a)}catch(Ne){te({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Cr("prev")||G()},lr=(c=!0)=>{var J;let x=!0;if(c&&(a!=null&&a.onNextVideoClick))try{x=(J=a==null?void 0:a.onNextVideoClick)==null?void 0:J.call(a)}catch(Ne){te({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Cr("next")||X()},Cr=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:L,playbackStatusShow:J}}=ae;return L&&J&&!x?(Mt.ui.aboutToGoNextVideo.set(c),Mt.ui.userActionsDisabled.set(!0),!0):!1},Wr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},ls=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},qr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},no=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},vn=()=>{N.prepare()},Sr=()=>{(0,mt.assertNonNullable)(Mt);let c=ye(Mt.ui.controls.disabledControls$),x=ye(Mt.playerPhase),L={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(te({message:"toggle play"}),x==="ads"){L.action="play",ne.log("toggle adman play",L),_e.togglePlay();return}let J=()=>{var ft;te({message:"toggle play, call player.play"}),L.action="play",N.play(),(ft=a==null?void 0:a.onPlay)==null||ft.call(a)},Ne=()=>{var ft;te({message:"toggle play, call player.pause"}),L.action="pause",N.pause(),(ft=a==null?void 0:a.onPause)==null||ft.call(a)};if(N.info.isEnded$.getValue()){if(te({message:"toggle play, video ended, seek to 0"}),pi.next(),ti.next(ss.SeekAction.REWIND),S){A==null||A();return}N.seekTime(0),J()}else N.info.playbackState$.getValue()!==li.PlaybackState.PLAYING?J():Ne();ne.log("toggle play",L)},nt=(c,{changeReason:x="default",appliesTo:L="to-video"}={})=>{te({message:`set quality, quality: ${c}`}),ne.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ae.features.qualityDetailsSubMenuEnabled?(au({type:"exact_quality",quality:c,videoId:i},L),_d(),N.setPredefinedQualityLimits(li.PredefinedQualityLimits.UNKNOWN)):df(i,c),zn.set(c),N.setQuality(c)):ae.features.qualityDetailsSubMenuEnabled?x==="default"&&(ji("auto_quality",L),ye(an)&&At(!1),ye(zo)&&vi(!1)):_d()},At=(c,x="as-default")=>{te({message:`set trafficSavingEnabled, value: ${c}`}),ne.log("set traffic saving enabled",{trafficSavingEnabled:c});let L=c?li.PredefinedQualityLimits.TRAFFIC_SAVING:li.PredefinedQualityLimits.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?(ro(L,x),hd(!1)):(N.setPredefinedQualityLimits(L),hd(c))},vi=(c,x="as-default")=>{te({message:`set highQualityEnabled, value: ${c}`}),ne.log("set high quality enabled",{highQualityEnabled:c}),ro(c?li.PredefinedQualityLimits.HIGH_QUALITY:li.PredefinedQualityLimits.UNKNOWN,x)},ro=(c,x)=>{c!==li.PredefinedQualityLimits.UNKNOWN&&(ye(ln)&&!ye(Tn)&&nt("auto",{appliesTo:x,changeReason:"limit-changed"}),ji(c,x)),N.setPredefinedQualityLimits(c)},ji=(c,x)=>{au({type:c,videoId:i},x),x==="as-default"&&au({type:c,videoId:i},"to-video")},so=c=>{ne.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ae.features.saveRate&&le&&!N.info.isLive$.getValue()&&i1(c)},ao=()=>{let c=ye(En),x=c.findIndex(({selected:J})=>J);if(x===c.length-1)return;let L=c[x+1];so(L.value)},Yo=()=>{let c=ye(En),x=c.findIndex(({selected:J})=>J);if(x===0)return;let L=c[x-1];so(L.value)},Zo=(c={...wi,selected:!1})=>{ne.log("set subtitles",{...c}),c.value!==wi.value&&at.next(c.isAuto?c.value+"_auto":c.value),Li.set(c),hf(c.value===wi.value?void 0:c.language),ae.features.userVideoPrefs&&i&&_f(ae.userSalt,String(i),{subtitleTrackId:c.value===wi.value?void 0:c.value})},An=()=>{ne.log("toggle subtitles");let c=ye(vo),x=ye(Li),L=ye(Bt);if((x==null?void 0:x.value)===wi.value){let J=c.filter(Ne=>Ne.value!==wi.value).find(Ne=>Ne.value===L)||c[1];Zo(J)}else Zo()},lo=re(!0),Yi=c=>{lo.set(c)},ho=(c,x,L=!0)=>{var J;if(te({message:`seek to time, time: ${c}`}),ne.log("seek to time",{time:c,action:x,forcePrecise:L}),ti.next(x),N.info.isLive$.getValue()){let Ne=N.info.duration$.getValue(),ft=Math.min(0,Ne+c);N.seekTime(ft,L)}else{if(I!=null&&I.getValue())return;N.info.isEnded$.getValue()&&(te({message:"seek after ended, call callbacks.onPlay"}),(J=a==null?void 0:a.onPlay)==null||J.call(a)),N.seekTime(Dv(c),L)}},dr=c=>{te({message:`seek to episode start time: ${c}`}),ne.log("seek to episode start time",{time:c}),ho(c,ss.SeekAction.EPISODE,!0)},qn=(c,x)=>{te({message:`seek to percent, percent: ${c}`}),ne.log("seek to percent",{percent:c,action:x});let L=ye(to)*c;ho(L,x,!1)},cr=c=>{te({message:`seek external, time: ${c}`}),ne.log("seek external",{time:c}),ti.next(ss.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Kr=c=>{var J,Ne;let x=(J=c.max)!=null?J:"none",L=(Ne=c.min)!=null?Ne:"none";te({message:`set auto quality limitation. Max: ${x}. Min: ${L}`}),ne.log("set auto quality limits",{max:x,min:L}),N.setAutoQualityLimits(c)},Qr=c=>{te({message:`seek external to episode start time: ${c}`}),ne.log("seek external to episode start time",{time:c}),ho(c,ss.SeekAction.EPISODE,!0)},Mo=c=>{te({message:`set playback rate to: ${c}`}),ne.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Xo=re(void 0),Ke=re(!1),Zt=c=>{te({message:`start scrubbing, progress: ${c}`}),ne.log("start scrubbing",{progress:c}),Ke.set(!0),xi(c)},xi=c=>{Xo.set(c)},_o,Lo,Se=()=>{Xo.set(void 0),Ke.set(!1)},wt=()=>{clearTimeout(Lo),clearTimeout(_o),_o=window.setTimeout(()=>{Se()},500),Xe==null||Xe.removeEventListener("seeked",wt)},gi=c=>{te({message:`complete scrubbing, progress: ${c}`}),ne.log("complete scrubbing",{progress:c}),qn(c,ss.SeekAction.SLIDER),ye(Mt.ui.isMobile)&&ye(Mt.state.currentFormat$)===li.VideoFormat.HLS?(Xe==null||Xe.addEventListener("seeked",wt),Lo=window.setTimeout(()=>{wt()},300)):Se()},Zi=$i([U,to,Xo],([c,x,L],J)=>{J((0,mt.isNonNullable)(L)?L*x:c)}),Jo=re(!1),bo=()=>{Jo.set(!0)},tt=()=>{Jo.set(!1)},Ut=$i([Re],([{width:c}],x)=>{let L=N1(c);x(L)}),Vi=re(!1),en=Q.filter(c=>zh(c)),gn=$i([Ut,Vi],([c,x])=>x?en.filter(L=>!L.hideOnMobile):en.filter(L=>{var J;return!((J=L.hideOnDesktopGridTypes)!=null&&J.includes(c))})),co=re(Q.filter(c=>Wh(c))),Gr=$i([co,Ut],([c,x])=>c.filter(L=>{var J;return!((J=L.hideOnDesktopGridTypes)!=null&&J.includes(x))})),Tr=$i([Gr,gn],([c,x])=>[...ae.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...ae.features.additionalButtons?x.map((L,J)=>{var Ne;return{id:J,weight:J,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Ne=L.ariaLabel)!=null?Ne:L.tooltip,tooltipText:L.tooltip}}):[]]),_i=re(q),Pi=$i([_i],([c])=>ae.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Mn=(c,x)=>{let L=ye(co).map(J=>J.id!==c?J:{...J,...x});co.set(L)},Kn=c=>{let x=ye(co);if(x.some(L=>L.id===c.id)){te({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),co.set(x)},Er=c=>{let x=ye(co);if(!x.some(L=>L.id===c)){te({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(L=>L.id!==c),co.set(x)},$o=c=>{ti.next(ss.SeekAction.LIVE),te({message:"live switch to low latency "+c}),ne.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Fa=(c,x)=>{let L=ye(_i).map(J=>J.id!==c?J:{...J,...x});_i.set(L)},qs=c=>{let x=ye(_i);if(x.some(L=>L.id===c.id)){te({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),_i.set(x)},yt=c=>{let x=ye(_i);if(!x.some(L=>L.id===c)){te({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(L=>L.id!==c),_i.set(x)},ct=re(W),uo=$i([ct],([c])=>ae.features.additionalContextMenuItems?c:[]),tn=(c,x)=>{let L=ye(ct).map(J=>J.id!==c?J:{...J,...x});ct.set(L)},Ui=c=>{let x=ye(ct);if(x.some(L=>L.id===c.id)){te({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ct.set(x)},si=c=>{let x=ye(ct);if(!x.some(L=>L.id===c)){te({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(L=>L.id!==c),ct.set(x)},Ri=$i([Vi,Wt],([c,x],L)=>{L(c&&x)}),ws=()=>{ti.next(ss.SeekAction.LIVE),te({message:"switch to active live"}),ne.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==li.PlaybackState.PLAYING&&Mt.actions.internal.togglePlay()},Ol=()=>{ne.log("skip adman"),_e.skip()},hc=(c=!0)=>{var J;(0,mt.assertNonNullable)(Mt),te({message:`switch from ads to video, callPlay: ${c}`}),ne.log("switch from ads to video",{callPlay:c}),ie.set("video"),c&&N.play(),l&&ko(!0);let x=(J=ye(ze))==null?void 0:J.muted,L=!N.info.muted$.getValue();x!==void 0&&!L&&ko(x),ze.set(void 0)},rp=()=>{(0,mt.assertNonNullable)(Mt),te({message:"switch from video to ads"}),ne.log("switch from video to ads"),Mt.actions.internal.pause(),fo(),ie.set("ads")},_c=c=>{(0,mt.assertNonNullable)(Mt);let x=c?"LiveWaitingStart":"thumb";ne.log("set live waiting start",{state:c,playerPhase:x}),ie.set(x)},sp=c=>{(0,mt.assertNonNullable)(Mt);let x=c?"LiveWaitingRecover":"thumb";ne.log("set live waiting recover",{state:c,playerPhase:x}),ie.set(x)},bc=c=>{(0,mt.assertNonNullable)(Mt);let x=c?"LiveWaitingRecord":"thumb";ne.log("set live waiting record",{state:c,playerPhase:x}),ie.set(x)},ap=()=>((0,mt.assertNonNullable)(Mt),ne.log("get debug text data"),Hh(N,qe,Mt,Ve.getTraceId())),$c=()=>((0,mt.assertNonNullable)(Mt),JSON.stringify(Ve.getFinishedSpans())),lp=()=>((0,mt.assertNonNullable)(Mt),Fh(N,qe,Mt)),Ks=()=>Xe,yc=()=>{te({message:"toggle chromecast"}),ne.log("toggle chromecast"),N.toggleChromecast()},Dl=c=>{var L;if((0,mt.assertNonNullable)(Mt),N.info.isEnded$.getValue())return;let x=!c;if(ye(Mt.playerPhase)==="ads"){te({message:`pause ads, internalCall: ${x}`}),ne.log("pause ads",{internalCall:x}),_e.pause();return}te({message:`pause video, internalCall: ${x}`}),ne.log("pause video",{internalCall:x}),x&&((L=a==null?void 0:a.onPause)==null||L.call(a)),N.pause()},xc=c=>{var L;(0,mt.assertNonNullable)(Mt);let x=!c;if(ye(Mt.playerPhase)==="ads"){te({message:`play ads, internalCall: ${x}`}),ne.log("play ads",{internalCall:x}),_e.play();return}te({message:`play video, internalCall: ${x}`}),ne.log("play video",{internalCall:x}),x&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),N.play()},wc=c=>{(0,mt.assertNonNullable)(Mt);let x=!c;if(ye(Mt.playerPhase)==="ads"){te({message:"player cannot be stopped during ads via external method"});return}te({message:`player will be stopped, internalCall: ${x}`}),k==null||k()},Cc=(c,x)=>{(0,mt.assertNonNullable)(Mt),te({message:`first start, show ads: ${c}, internalCall: ${!x}`}),ne.log("first start",{showAds:c,external:x}),c?ie.set("ads"):(ie.set("video"),x?N.play():Mt.actions.internal.togglePlay())},Ua=()=>(te({message:"getting time codes"}),f),Sc=()=>{let c=Ua();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(L=>L.time>x)},dp=c=>{let x=c;x||(x=Sc());let L=N.info.position$.getValue();ne.log("seek to next episode",{currentTime:L,...x}),x&&(te({message:"seek to next episode"}),ho(x.time,ss.SeekAction.EPISODE,!0))},Tc=()=>{let c=Ua();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),L=c.findIndex(Ne=>Ne.time>x),J=L===-1?c.length-2:L-2;if(!(J<0))return c[J]},Ge=c=>{let x=c;x||(x=Tc());let L=N.info.position$.getValue();ne.log("seek to prev episode",{currentTime:L,...x}),x&&(te({message:"seek to prev episode"}),ho(x.time,ss.SeekAction.EPISODE,!0))},ai=()=>(te({message:"getting preview thumbs data"}),ne.log("get preview thumbs data",{...v}),v),Vo=async()=>{let c=de==null?void 0:de.isActive(),x="none";de!=null&&de.isActive()?(x="exit",await(de==null?void 0:de.exit())):(x="request",await(de==null?void 0:de.request())),ne.log("toggle picture in picture",{isActive:c,action:x})},Qs=(c=-90)=>{ne.log("rotate video",{alphaDiff:c}),St.update(x=>x+c)},yo=re([]);T==null||T.subscribe(c=>{let x=[];for(let L=0;L<c.length;L++){let{range:[J,Ne],subjects:ft}=c[L];L===0&&J!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:J/1e3,text:"",interactive:!0,completed:ae.features.interactiveTimeOpenUri?!ft.length||ft.every(Ht=>Ht.isRemoved):!ft.length}),Ne!==1/0&&x.push({time:Ne/1e3,text:"",interactive:!1,completed:!0})}yo.set(x)});let L0=re(!1);I==null||I.subscribe(c=>{c&&ye(Ke)&&Se()});let Dv=c=>{if(!S)return c;let x=ye(yo),L=ye(to),Ne=ye(ir)/L,ft=x.find(Ht=>Ht.interactive&&!Ht.completed&&Ht.time>Ne);return typeof(ft==null?void 0:ft.time)=="number"?Math.min(c,ft.time-.05):c},V0=()=>{Mt.ui.episodes.panelOpened$.set(!1)},R0=()=>{ne.log("destroy store"),clearTimeout(Lo),clearTimeout(_o),Te.unsubscribe(),Qi.unsubscribe(),N.destroy(),_e.destroy(),ce==null||ce.destroy(),ge==null||ge.destroy(),Yt.unsubscribe(),Gt==null||Gt.disconnect(),Gt=null,Ae.destroy()},Mt={interfaceLanguage$:Bt,isCyrillicRelatedInterface$:xe,initVideo:Lt,videoId:i,isClip:o,playerPhase:Be,vsid:Ye,state:{positionExact$:U,positionWithScrubbing$:Zi,duration$:to,playbackState$:lt,isPlaying$:tr,isLoaderVisible:Cn,bufferedProgress$:In,isLive$:pt,canChangePlaybackSpeed$:st,isActiveLive$:Hr,isOldestAvailableLive$:Fn,isRewindableLive$:Fr,isEnded$:di,muted$:kt,volume$:yi,trafficSavingEnabled$:an,highQualityEnabled$:zo,autoQualityLimitingAvailable$:ln,availableVideoStreams$:cn,availableAudioStreams$:or,videoStream$:io,audioStream$:Qo,currentQuality$:_r,isAutoQualityEnabled$:Tn,availableQualities$:ot,currentPlaybackRate$:ii,availablePlaybackRates$:En,currentSubtitle$:Li,availableTextTracks$:un,availableSubtitlesList$:vo,currentSubtitleCaptions$:yr,isAutoSubtitleCaptionVisible$:Ur,chromecastState$:ki,chromecastDeviceName$:Wo,chromecastConnected$:gr,currentFormat$:wn,throughputEstimation$:Fi,videoBitrate$:Gi,videoSize$:Eo,errorLog$:Xt,crashed$:Wt,isAudioAvailable$:Hn,isAudioDisabled:!!l,canDownload:ae.features.download&&!!d,availableSources$:xr,hasMpegSources$:go,isInteractive:S,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!ye(yo).length,interactiveEpisodes$:yo,isInteractiveTime$:I?ei(I):re(!1),isInteractiveExpectation$:L0,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,looped$:mn,loadedMetadata$:Qe,isAutoQualityAvailable$:br},ui:{t:he,controlsVisible:re(!1),touched:re(!1),controls:{prevButton:re(void 0),playButton:re(void 0),replayButton:re(void 0),nextButton:re(void 0),playPrevChapterButton:re(void 0),seekToInteractiveButton:re(void 0),interactiveGraphButton:re(void 0),liveButton:re(void 0),time:re(void 0),episodes:re(void 0),volume:re(void 0),subtitles:re(void 0),settings:re(void 0),context:re(void 0),chromecast:re(void 0),pip:re(void 0),fullscreen:re(void 0),vkLogo:re(void 0),interactiveTimeIndicator:re(void 0),timeline:re(void 0),autoplayNextToggle:re(void 0),additionalButtons:Q.length?Q.reduce(c=>[...c,re(void 0)],[]):[],disabledControls$:We},modals:{hotKeyMap:{show:re(!1),data:re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:it,isFullscreenOpenedByKeyboard:bt,rotateAlpha:St,isAutoplay:re(!1),debugPanelVisible:re(!1),episodes:{panelOpened$:re(!1),openedByKeyboard$:re(!1)},contextMenu:{visible$:re(!1),btnRef$:re(void 0),openedByBtnKeyboard$:re(!1),openedByHotKey$:re(!1),lastActiveElem$:re(void 0),showContextMenuBtn$:re(!1),position$:re({top:0,left:0})},playerSize:Re,isMobile:Vi,mobileNotReportControlHidden$:Ri,icon3DVideoVisible:re(!1),scrubbingInProgress:Ke,volumeChangingInProgress:Jo,is3DVideo:zt,currentGridType$:Ut,additionalButtonsDeprecated$:gn,additionalDesktopControlPanelRightButtons$:Tr,additionalSettingsMenuItems$:Pi,additionalContextMenuItems$:uo,interactiveHideMobileControls:re(!1),overlayContainer$:re(void 0),startedByKeyboard$:re(!1),autoplayNextEnabled$:re(!1),timerNextVideoRunning$:re(!0),settingsMenu:{visible$:re(!1),ref$:re(void 0),openedByBtnKeyboard$:re(!1)},settingsSubMenu:{visible$:re(!1),ref$:re(void 0),name$:re(void 0)},aboutToGoNextVideo:re(void 0),userActionsDisabled:re(!1),hiddenControls:{volume:re(!1),vkLogo:re(!1),pip:re(!1),chromecast:re(!1),settings:re(!1)},isControlsAvailable:lo,controlBlocks:{topLeft:re(void 0),topRight:re(void 0),middle:re(void 0),bottom:re(void 0),bottomLeft:re(void 0),bottomRight:re(void 0)},videoTitleInfo:re(void 0)},ads:{position:re(0),duration:re(0),playbackState:re("inactive"),canSkip:re(!1),secondsToWatchBeforeSkip:re(0),postrollPassed:re(!1)},webApi:{pictureInPictureApi:de,annotationsApi:ue,slotsApi:pe},actions:{internal:{preload:vn,firstStart:c=>Cc(c,!1),play:()=>xc(!1),pause:()=>Dl(!1),togglePlay:Sr,toggleMuted:Jt,openSettingsMenu:zr,closeSettingsMenu:jo,openSettingsSubMenu:Et,closeSettingsSubMenu:wr,setVolume:fn,startVolumeChanging:bo,stopVolumeChanging:tt,setVideoStream:nr,setAudioStream:Sn,setQuality:nt,setTrafficSavingEnabled:At,setHighQualityEnabled:vi,setPlaybackRate:so,incrementPlaybackRate:ao,decrementPlaybackRate:Yo,setSubtitle:Zo,toggleSubtitle:An,togglePictureInPicture:Vo,startScrubbing:Zt,progressScrubbing:xi,completeScrubbing:gi,toggleChromecast:yc,switchToActiveLive:ws,switchFromAdsToVideo:hc,switchFromVideoToAds:rp,skipAd:Ol,setLiveWaitingStart:_c,setLiveWaitingRecover:sp,setLiveWaitingRecord:bc,getDebugTextData:ap,getTraceTextData:$c,getDebugPanelData:lp,getVideoElement:Ks,seekTime:(c,x,L)=>ho(c,x,L),clearDelayedBufferingCheckTimeout:Ko,seekEpisodeStartTime:dr,seekToPercent:qn,getNextEpisode:Sc,seekToNextEpisode:dp,getPrevEpisode:Tc,seekToPrevEpisode:Ge,startLogging:Qt,stopLogging:ni,startCameraManualRotation:Fo,stopCameraManualRotation:Dt,moveCameraFocusPX:$t,holdCamera:Ei,releaseCamera:Uo,getVideoEpisodes:Ua,getPreviewThumbsData:ai,downloadVideo:Go,addLanguage:bf,setLanguage:ee,nextMovie:Je,videoRotate:Qs,correctSeekTimeToInteractive:Dv,replayInteractive:A,setLooped:Po,reportProblem:kn,setAutoplayNextEnabled:oo,setTimerNextVideoRunning:Pn,prevVideoClick:Ao,nextVideoClick:lr,nextVideoAnnouncementShow:Wr,nextVideoAnnouncementClick:ls,nextVideoAnnouncementAuto:qr,nextVideoAnnouncementCancel:no},external:{firstStart:c=>Cc(c,!0),play:()=>xc(!0),pause:()=>Dl(!0),stop:()=>wc(!0),seekTime:c=>cr(c),seekEpisodeStartTime:c=>Qr(c),setPlaybackRate:c=>Mo(c),setAutoQualityLimits:c=>Kr(c),setMuted:ko,toggleSubtitle:An,setVolume:fn,returnFocusToEpisodes:V0,updateAdditionalSettingsItem:Fa,addAdditionalSettingsItem:qs,removeAdditionalSettingsItem:yt,updateAdditionalContextItem:tn,addAdditionalContextItem:Ui,removeAdditionalContextItem:si,updateAdditionalButton:Mn,addAdditionalButton:Kn,removeAdditionalButton:Er,setLiveLowLatency:$o,hideControls:()=>Yi(!1),showControls:()=>Yi(!0)}},callbacks:a,setUiCallbacks:c=>{Z={...c}},getAdmanWrapper:()=>_e,getLogger:()=>He,getPlayer:()=>N,destroy:R0};return Mt};function Br(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),r=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:p}=_s(e[i],t||void 0);return{left:r?d:0,right:r?p:0,top:r?l:0,bottom:r?a:0,isDisplayed:r}}var ay=["disabledControls$","additionalButtons"],ly=["interactiveTimeIndicator"],Sl=(t,e,i,o)=>{if(t){for(let[n,r]of Object.entries(e))if(!ay.includes(n)){let l=o||ly.includes(n);r.set(Br(t,i,n,l))}}};var Vu=async(t,e,i)=>{await wo(),e&&i&&(i.focus(),t.set(!1))};var dy=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function _m(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=dy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}function bm(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C(a,"$contextMenuVisible$",i),r=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ee(),a=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,$=j(void 0);Ue(()=>{s($)&&Ct(()=>{u.set(s($))})});let w=I=>{let A=Bs(I),k=T1(s($));v.set(k),p.set(A),a.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Nt(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return r()},get ariaLabel(){return l()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return s($)},set ref(I){B($,I,!0)},children:(I,A)=>{_m(I,{})},$$slots:{default:!0}}),H(),o()}var cy=t=>{t.stopPropagation()},uy=M("<div><!> <div></div> <div></div></div>"),py={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.`},c1=rb;var hs=new Map;hs.set(pl.Interf
248
248
  opacity: 0;
249
249
  }
250
250
  }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
251
- animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Wd(t,e){var ue;H(e,!0),z(t,uy);let[i,o]=Oe(),n=()=>C(S,"$isMobile",i),r=()=>C(k,"$areControlsVisible",i),l=()=>C(R,"$currentGridType$",i),d=()=>C(I,"$isInteractiveTime$",i),a=()=>C(y,"$interactiveControlsOpacity$",i),p=()=>C(A,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),u=j(void 0),$=Ee(),w=vo(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,T=$.ui.isFullscreen,I=$.state.isInteractiveTime$,A=w.showInteractiveTimeIndicatorTooltip$,k=$.ui.controlsVisible,E=(ue=$.callbacks)==null?void 0:ue.onInteractiveTimeIndicatorClick,R=$.ui.currentGridType$,G=g(()=>!n()&&r()),q=g(()=>Fs(l(),"s")),W=g(()=>!d()||!!a()||s(G)),Q=j(!1);We(()=>{B(Q,s(W),!0)});let X=()=>{B(Q,!0)},Y=()=>{var pe;de(),(pe=s(u))==null||pe.addEventListener("animationiteration",X,{once:!0})},de=()=>{var pe;B(Q,!1),(pe=s(u))==null||pe.removeEventListener("animationiteration",X)},le=pe=>{A.set(pe)},ve=g(()=>p()&&!s(W));We(()=>{p()?Y():de()});let Ie=()=>{s(W)||(A.set(!0),E==null||E())};On(()=>{A.clearTimeout(),de()});let me=()=>{A.set(!1)},se=U("tooltip_interactive_interaction_time_indicator");var Le=cy();let oe;Le.__mousemove=[dy],Le.__click=Ie;var N=_(Le);Eo(N,{get tooltipContent(){return se},get tooltipActive(){return s(ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return v()},set ref(pe){v(pe)},children:(pe,ee)=>{Rd(pe,{completed:!0})},$$slots:{default:!0}});var He=P(N,2);let _e;st(He,pe=>v(pe),()=>v());var ge=P(He,2);let ce;st(ge,pe=>B(u,pe),()=>s(u)),h(Le),O((pe,ee,Qe)=>{oe=ie(Le,1,"interactive-episode-icon-animated svelte-od3veb",null,oe,pe),_e=ie(He,1,"ref-block svelte-od3veb",null,_e,ee),ce=ie(ge,1,"pulse svelte-od3veb",null,ce,Qe)},[()=>({mobile:n(),fullscreen:f(),invisible:s(W),"icon-small":s(q)}),()=>({hidden:s(W)}),()=>({paused:s(Q)})]),Ct("mouseleave",Le,me),b(t,Le),F(),o()}pt(["mousemove","click"]);function Ru(t,e){H(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);Eo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return r()},set ref(l){r(l)},children:(l,d)=>{var a=Ue();let p=g(()=>e.buttonComponent);var f=fe(a);Ci(f,()=>s(p),(v,u)=>{u(v,gs(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(l,a)},$$slots:{default:!0}}),F()}var bs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var fy=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function $m(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=fy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}function Us(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),r=m(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");$m(t,{get style(){return s(l)},get width(){return n()},get height(){return r()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var my=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),vy=M("<!> <!>",1),gy={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Ia(t,e){H(e,!0),z(t,gy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ee().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),p=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Bt(t,{get className(){return s(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return s(d)},get click(){return e.click},get ariaKeyShortCut(){return s(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var u=vy(),$=fe(u);{var w=T=>{var I=my();b(T,I)};V($,T=>{o()&&T(w)})}var y=P($,2);let S=g(()=>e.type==="prev");Us(y,{get isMobile(){return o()},get isPrev(){return s(S)}}),b(f,u)},$$slots:{default:!0}}),F()}var hy=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function qd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=hy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var Y1=require("@vkontakte/videoplayer-shared/es2018");var _y=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),by=M("<!> <div><!></div>",1),$y={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Tl(t,e){H(e,!0),z(t,$y);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),r=m(e,"className",3,""),l=m(e,"click",3,Y1.noop),d=U("tooltip_restart"),a=g(()=>`${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 os.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var v=by(),u=fe(v);{var $=T=>{var I=_y();b(T,I)};V(u,T=>{o()&&T($)})}var w=P(u,2);let y;var S=_(w);qd(S,{}),h(w),O(T=>y=ie(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(p,v)},$$slots:{default:!0}}),F()}var yy=Ce('<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=yy(),d=_(l);h(l),O(()=>{De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",n()),De(d,"fill",r())}),b(t,l)}var xy=Ce('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function $s(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=xy(),d=_(l);h(l),O(()=>{De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",n()),De(d,"fill",r())}),b(t,l)}var Z1=require("@vkontakte/videoplayer-shared/es2018");var wy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Cy=M("<!> <div><!></div>",1),Sy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function El(t,e){H(e,!0),z(t,Sy);let[i,o]=Oe(),n=()=>C(r,"$fakeIsPlaying$",i),{fakeIsPlaying$:r}=vo(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),p=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,Z1.noop),$=Ee().ui.t,{toggle:w}=r,y=g(()=>w),S=g(()=>n()!==null),T=g(()=>s(S)?n():a()),I=g(()=>s(T)?$("tooltip_pause"):$("tooltip_play")),A=g(()=>s(T)?$s:Or),k=g(()=>`${d()?"btn-m--play":""} ${f()}`),E=g(()=>s(S)?s(y):v());Bt(t,{get className(){return s(k)},testId:"btn-play",get click(){return s(E)},get disabled(){return p()},get ariaLabel(){return s(I)},get ariaKeyShortCut(){return os.KeyK},get ref(){return l()},set ref(R){l(R)},children:(R,G)=>{var q=Cy();let W=g(()=>s(A));var Q=fe(q);{var X=ve=>{var Ie=wy();b(ve,Ie)};V(Q,ve=>{d()&&ve(X)})}var Y=P(Q,2);let de;var le=_(Y);Ci(le,()=>s(W),(ve,Ie)=>{Ie(ve,{})}),h(Y),O(ve=>de=ie(Y,1,"svelte-1ot3duq",null,de,ve),[()=>({mobile:d()})]),b(R,q)},$$slots:{default:!0}}),F(),o()}var Ty=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function ym(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}function Kd(t,e){H(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=U("tooltip_interactive_go_back"),l=g(()=>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)=>{ym(d,{})},$$slots:{default:!0}}),F()}var Ey=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Iy={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function Qd(t,e){H(e,!0),z(t,Iy);let[i,o]=Oe(),n=()=>C(a,"$autoplayNextEnabled$",i),r=m(e,"ref",15,void 0),l=Ee(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,p=l.actions.internal.setAutoplayNextEnabled,f=()=>{p(!n(),!0)},v=d("aria_label_autoplay"),u=g(()=>n()?"true":"false");Bt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return s(u)},get ref(){return r()},set ref($){r($)},children:($,w)=>{var y=Ey(),S=_(y);let T;var I=_(S);{var A=E=>{Or(E,{width:"14",height:"14",fill:"#000"})},k=E=>{$s(E,{width:"14",height:"14",fill:"#000"})};V(I,E=>{n()?E(A):E(k,!1)})}h(S),h(y),O(E=>T=ie(S,1,"toggler svelte-et3q1q",null,T,E),[()=>({enabled:n()})]),b($,y)},$$slots:{default:!0}}),F(),o()}var ky=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function xm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=ky();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}function Gd(t,e){H(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=U("tooltip_interactive_seek"),l=g(()=>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)=>{xm(d,{})},$$slots:{default:!0}}),F()}var Py=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function wm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Py();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}var Ay={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Cm(t,e){z(t,Ay);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");wm(t,{get"data-testid"(){return s(o)}})}function jd(t,e){H(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=m(e,"graphIsOpened",3,!1),d=Ee().ui.t,a=g(()=>r()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=g(()=>o()?"hidden":"");Bt(t,{get className(){return s(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let u=g(()=>!!r());Cm(f,{get isOpened(){return s(u)}})},$$slots:{default:!0}}),F()}var Sm=require("@vkontakte/videoplayer-core/es2018");function Yd(t,e){H(e,!0);let[i,o]=Oe(),n=()=>C(p,"$playbackState$",i),r=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ee(),p=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,u=g(()=>()=>{if(!l()){f();return}n()===Sm.PlaybackState.PAUSED&&v()}),$=g(()=>r()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),y=g(()=>l()&&n()===Sm.PlaybackState.PLAYING);Bt(t,{get className(){return s($)},get testId(){return s(w)},get disabled(){return s(y)},get ariaLabel(){return d()},get click(){return s(u)},children:(S,T)=>{xd(S,{get isActive(){return l()}})},$$slots:{default:!0}}),F(),o()}var Tm=require("@vkontakte/videoplayer-shared/es2018");var My=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Ly=M('<img class="icon" aria-hidden="true"/>');function ka(t,e){"use strict";let i=j(!1),o=()=>{B(i,!0)};var n=Ue(),r=fe(n);{var l=a=>{var p=My();b(a,p)},d=a=>{var p=Ly();O(()=>De(p,"src",e.icon)),Ct("error",p,o),ra(p),b(a,p)};V(r,a=>{s(i)?a(l):a(d,!1)})}b(t,n)}function Em(t,e){H(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Tm.noop),n=m(e,"ref",15),r=g(()=>o()===Tm.noop),l=g(()=>s(r)||i()),d=g(()=>s(r)?"btn-full-opacity":"");Eo(t,{get disabled(){return s(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,p)=>{let f=g(()=>{var v;return(v=e.testId)!=null?v:e.id});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,u)=>{ka(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var X1=t=>!!t.buttonComponent;var ys={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Nu=(t,e,i,o)=>{if(t)for(let[n,r]of Object.entries(e))r.set(Br(t,i,n,o))};var Ny=M('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),By={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function km(t,e){var Fa,qs;H(e,!0),z(t,By);let[i,o]=Oe(),n=()=>C(wt,"$disabledControls$",i),r=()=>C(Yt,"$adPlaybackState",i),l=()=>C(kt,"$playbackState$",i),d=()=>C(At,"$currentSubtitle$",i),a=()=>C(ci,"$isEnded$",i),p=()=>C(Wo,"$currentGridType$",i),f=()=>C(ei,"$isLive$",i),v=()=>C(ji,"$chromecastState$",i),u=()=>C(Gi,"$isPictureInPictureActive",i),$=()=>C(ri,"$pictureInPictureType$",i),w=()=>C(zo,"$availableSubtitlesList$",i),y=()=>C(D,"$contextMenuOpenedByKeyboard$",i),S=()=>C(Ti,"$showContextMenuBtn$",i),T=()=>C(Fi,"$playerSize",i),I=()=>C(jt,"$isRewindableLive$",i),A=()=>C(at,"$isActiveLive$",i),k=()=>C(Qo,"$graphIsOpened$",i),E=()=>C(Mi,"$contextMenuVisible$",i),R=()=>C(Vt,"$isFullscreen",i),G=()=>C(Ei,"$autoplayNextEnabled",i),q=()=>C(s(zr),"$prevButton",i),W=()=>C(s(wr),"$replayButton",i),Q=()=>C(s(St),"$playButton",i),X=()=>C(s(Rt),"$nextButton",i),Y=()=>C(s(fn),"$playPrevChapterButton",i),de=()=>C(s(Ao),"$seekToInteractiveButton",i),le=()=>C(s(mn),"$interactiveGraphButton",i),ve=()=>C(s(Mo),"$liveButton",i),Ie=()=>C(s(kn),"$time",i),me=()=>C(s(so),"$episodes",i),se=()=>C(s(Pn),"$vkLogo",i),Le=()=>C(s(Lo),"$volume",i),oe=()=>C(s(lr),"$subtitles",i),N=()=>C(s(Cr),"$settings",i),He=()=>C(s(Wr),"$context",i),_e=()=>C(s(ls),"$fullscreen",i),ge=()=>C(s(qr),"$chromecast",i),ce=()=>C(ln,"$additionalDesktopControlPanelRightButtons$",i),ue=()=>C(Yi,"$isInteractiveTime$",i),pe=()=>C(yi,"$settingsMenuVisible",i),ee=()=>C(lo,"$settingButtonRef$",i),Qe=()=>C(Dt,"$startedByKeyboard$",i),Xe=()=>C(Gt,"$isAudioAvailable$",i),Z=()=>C(Kt,"$fakeIsPlaying$",i),Ae=()=>C(Cn,"$seekToInteractiveDisabledTooltip$",i),Te=()=>C(lt,"$adPosition",i),Ye=()=>C(et,"$position$",i),it=()=>C(Je,"$adDuration",i),ht=()=>C(Re,"$duration$",i),Pt=m(e,"playerControlsWrapperRef",15,void 0),ct=m(e,"playerControlsRef",15,void 0),qe=m(e,"isAds",3,!1),qt=m(e,"logoTargetUrl",3,""),Xt=m(e,"isOneVideoPlaylist",3,!1),Qt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Kt}=vo(),ae=Ee(),It=vo(),xe=Et(),he=ae.actions.internal.toggleMuted,te=ae.actions.internal.togglePlay,Ne=ae.actions.internal.pause,ze=ae.actions.internal.toggleSubtitle,Ve=(Fa=ae.callbacks)==null?void 0:Fa.onAudioDoesNotExistHint,Fe=(qs=ae.callbacks)==null?void 0:qs.onAudioDisabledHint,Re=ae.state.duration$,et=ae.state.positionWithScrubbing$,kt=ae.state.playbackState$,Gt=ae.state.isAudioAvailable$,ot=ae.state.isAudioDisabled,ci=ae.state.isEnded$,ei=ae.state.isLive$,at=ae.state.isActiveLive$,jt=ae.state.isRewindableLive$,{isActive$:Gi,type$:ri}=It.pictureInPicture$,yi=ae.ui.settingsMenu.visible$,oo=ae.ui.settingsMenu.openedByBtnKeyboard$,zt=ae.ui.controls,ui=ae.actions.internal.getVideoEpisodes(),ji=ae.state.chromecastState$,zo=ae.state.availableSubtitlesList$,At=ae.state.currentSubtitle$,wt=zt.disabledControls$,Mi=ae.ui.contextMenu.visible$,Ti=ae.ui.contextMenu.showContextMenuBtn$,D=ae.ui.contextMenu.openedByBtnKeyboard$,Dt=ae.ui.startedByKeyboard$,li=ae.ui.controlBlocks,_t=ae.ui.t,Je=ae.ads.duration,lt=ae.ads.position,Yt=ae.ads.playbackState,Vt=ae.ui.isFullscreen,Fi=ae.ui.playerSize,Wo=ae.ui.currentGridType$,ln=ae.ui.additionalDesktopControlPanelRightButtons$,Ei=ae.ui.autoplayNextEnabled$,$t=ae.actions.internal.getVideoElement,Ii=ae.actions.internal.replayInteractive,qo=ae.actions.internal.prevVideoClick,wn=ae.actions.internal.nextVideoClick,Ui=ae.state.isInteractive,Yi=ae.state.isInteractiveTime$,ko=ae.state.showInteractiveGraph,dn=ae.state.showSeekToInteractive,Hn=ae.state.showPlayPrevChapter,pi=ae.state.showInteractiveTimeIndicator,Ko=ae.state.playPrevChapterDisabledTooltip,Cn=It.seekToInteractiveDisabledTooltip$,Qo=It.graphIsOpened$,no=xe.features.interactiveResponsiveUi,tr=g(()=>n().has("EPISODE_BUTTON")),Hr=g(()=>n().has("GRAPH_BUTTON")),Fn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),ir=g(()=>n().has("PLAY_BUTTON")),Fr=g(()=>n().has("REPLAY_BUTTON")),gr=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),cn=()=>ae.actions.internal.toggleChromecast(),or=g(()=>qe()?r()==="playing":l()===Pa.PlaybackState.PLAYING),ro=g(()=>d().value!=="off"),Go=g(()=>a()&&!qe()||Ui),nr=g(()=>no?s(Go)&&Hi(p(),"m"):s(Go)),Sn=g(()=>!a()||Ui||qe()),rr=g(()=>Hi(p(),"m")),Un=g(()=>e.showNextPrevButtons&&Hi(p(),"m")&&!qe()&&e.nextButtonActive),sr=g(()=>e.showNextPrevButtons&&Hi(p(),"m")&&!qe()&&e.prevButtonActive),zn=g(()=>!qe()&&!!f()),Tn=g(()=>v()!==Pa.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&Hi(p(),"m")&&!Ui),hr=g(()=>e.showAutoplayNext&&!Xt()&&Hi(p(),"s")),_r=g(()=>w().length>0&&Hi(p(),"m")),br=g(()=>y()||S()),nt=g(()=>Hi(p(),"s")&&!qe()),oi=g(()=>!e.logoHidden&&!qe()),En=g(()=>xe.features.fullscreen&&(e.logoHidden||Hi(p(),no?"xs":"s"))&&!(u()&&$()===1)&&(Ui?Qt():!0)),xi=g(()=>(!f()||qe())&&!(xe.features.interactiveHideTime&&Ui)),Li=g(()=>T().width>100),un=g(()=>ko&&Hi(p(),"m")),pn=g(()=>no?dn&&Hi(p(),"s"):dn),go=g(()=>no?Hn&&Hi(p(),"s"):Hn),Wn=g(()=>!qe()&&!f()&&!!(ui!=null&&ui.length)&&s(rr)&&!s(tr)),ho=g(()=>!I()||!!A()),Po=g(()=>k()?_t("tooltip_interactive_graph_on"):_t("tooltip_interactive_graph_off")),$r=g(()=>E()?_t("tooltip_context_menu_close"):_t("tooltip_context_menu_open")),as=(bt,ut)=>bt?ut&&ut===Pa.PlaybackState.PAUSED?_t("tooltip_play"):"":_t("tooltip_live"),yr=g(()=>as(s(ho),l())),Ur=g(()=>xe.logoType==="vk_video"?_t("tooltip_vk_video_logo"):_t("tooltip_vk_logo")),In=g(()=>s(ro)?_t("tooltip_subtitles_on"):_t("tooltip_subtitles_off")),xr=g(()=>R()?_t("tooltip_fullscreen_on"):_t("tooltip_fullscreen_off")),_o=g(()=>v()===Pa.ChromecastState.CONNECTED?_t("tooltip_chromecast_on"):_t("tooltip_chromecast_off")),ar=g(()=>G()?_t("tooltip_autoplay_on"):_t("tooltip_autoplay_off")),jo=j(0),ti=ni({}),Yo=ni({}),zr=g(()=>zt.prevButton),wr=g(()=>zt.replayButton),St=g(()=>zt.playButton),Rt=g(()=>zt.nextButton),fn=g(()=>zt.playPrevChapterButton),Ao=g(()=>zt.seekToInteractiveButton),mn=g(()=>zt.interactiveGraphButton),Mo=g(()=>zt.liveButton),kn=g(()=>zt.time),so=g(()=>zt.episodes),Pn=g(()=>zt.vkLogo),Lo=g(()=>zt.volume),lr=g(()=>zt.subtitles),Cr=g(()=>zt.settings),Wr=g(()=>zt.context),ls=g(()=>zt.fullscreen),qr=g(()=>zt.chromecast),ao=g(()=>({prevButton:q()?q().right-q().left:0,replayButton:W()?W().right-W().left:0,playButton:Q()?Q().right-Q().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:Y()?Y().right-Y().left:0,seekToInteractiveButton:de()?de().right-de().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:ve()?ve().right-ve().left:0,time:Ie()?Ie().right-Ie().left:0,episodes:me()?me().right-me().left:0,vkLogo:se()?se().right-se().left:0,volume:Le()?Le().right-Le().left:0,subtitles:oe()?oe().right-oe().left:0,settings:N()?N().right-N().left:0,context:He()?He().right-He().left:0,fullscreen:_e()?_e().right-_e().left:0,chromecast:ge()?ge().right-ge().left:0,additionalButtons:ce().length?ce().reduce(bt=>[...bt,40],[]):[]})),vn=j(0);We(()=>{(!s(vn)||s(vn)<s(ao).time)&&xt(()=>B(vn,s(ao).time,!0))});let Sr=j(!1);We(()=>{let bt=0;s(Wn)&&(Hi(p(),"xl")?bt=s(ao).time:bt=60);let ut=s(ao).prevButton+s(ao).playButton+s(ao).nextButton+s(ao).seekToInteractiveButton+s(ao).interactiveGraphButton+s(ao).liveButton+s(vn)+bt;B(Sr,s(xi)&&s(jo)>=ut,!0)});let rt=g(()=>s(Sr)&&Hi(p(),"m")),Mt=(0,Im.debounceFn)(Sl,260),mi=(0,Im.debounceFn)(Nu,260);We(()=>{T(),ue(),Mt($t(),zt,ti,e.showControls),mi($t(),li,Yo,e.showControls)}),We(()=>{Yo.bottom=Pt()});let lo=ne();We(()=>{pe(),ee()&&xt(()=>_l(ee(),pe(),oo))});let Zi;We(()=>{Qe(),xt(()=>Vu(Dt,Qe(),Zi))});function co(){Os({isAudioDisabled:ot,isAudioAvailable:Xe(),isAds:qe(),audioIsNotExistHintCallback:Ve,audioDisabledHintCallback:Fe})&&he()}let uo=Ui?Ii:te,Zo=g(()=>Z()!==null),Xo=g(()=>s(Zo)?Z():s(or)),An=g(()=>s(Xo)?_t("tooltip_pause"):_t("tooltip_play")),po=_t("tooltip_episodes"),Xi=g(()=>{var bt,ut,mo,on;return s(sr)?{id:"prevButton",type:"desktop-control-panel-left",weight:bs.prevButton,buttonComponent:Ia,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:qo.bind(null,!0)},tooltipEnabled:!((ut=(bt=ae.callbacks)==null?void 0:bt.uiInfo)!=null&&ut.onPrevButtonMouseEnter)&&!((on=(mo=ae.callbacks)==null?void 0:mo.uiInfo)!=null&&on.onPrevButtonMouseLeave),mouseEnter:()=>{var zi,si,Ri;(Ri=(si=(zi=ae.callbacks)==null?void 0:zi.uiInfo)==null?void 0:si.onPrevButtonMouseEnter)==null||Ri.call(si,Br($t(),ti,"prevButton",e.showControls))},mouseLeave:()=>{var zi,si,Ri;(Ri=(si=(zi=ae.callbacks)==null?void 0:zi.uiInfo)==null?void 0:si.onPrevButtonMouseLeave)==null||Ri.call(si,Br($t(),ti,"prevButton",e.showControls))},tooltipText:_t("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),bo=g(()=>s(nr)?{id:"replayButton",type:"desktop-control-panel-left",weight:bs.replayButton,buttonComponent:Tl,buttonComponentProps:{disabled:s(Fr),click:uo},tooltipText:_t("tooltip_restart"),disabled:s(Fr)}:void 0),dr=g(()=>s(Sn)?{id:"playButton",type:"desktop-control-panel-left",weight:bs.playButton,buttonComponent:El,buttonComponentProps:{disabled:s(ir),isPlaying:s(or),click:te},tooltipText:s(An),disabled:s(ir)}:void 0),qn=g(()=>{var bt,ut,mo,on;return s(Un)?{id:"nextButton",type:"desktop-control-panel-left",weight:bs.nextButton,buttonComponent:Ia,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:wn.bind(null,!0)},tooltipEnabled:!((ut=(bt=ae.callbacks)==null?void 0:bt.uiInfo)!=null&&ut.onNextButtonMouseEnter)&&!((on=(mo=ae.callbacks)==null?void 0:mo.uiInfo)!=null&&on.onNextButtonMouseLeave),mouseEnter:()=>{var zi,si,Ri;(Ri=(si=(zi=ae.callbacks)==null?void 0:zi.uiInfo)==null?void 0:si.onNextButtonMouseEnter)==null||Ri.call(si,Br($t(),ti,"nextButton",e.showControls))},mouseLeave:()=>{var zi,si,Ri;(Ri=(si=(zi=ae.callbacks)==null?void 0:zi.uiInfo)==null?void 0:si.onNextButtonMouseLeave)==null||Ri.call(si,Br($t(),ti,"nextButton",e.showControls))},tooltipText:_t("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),cr=g(()=>Ui&&s(go)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:bs.playPrevChapterButton,buttonComponent:Kd,buttonComponentProps:{disabled:s(gr),click:e.playPrevChapter},tooltipText:_t("tooltip_interactive_go_back"),disabledTooltipContent:_t(Ko),disabled:s(gr)}:void 0),Kr=g(()=>Ui&&s(pn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:bs.seekToInteractiveButton,buttonComponent:Gd,buttonComponentProps:{disabled:s(Fn),click:e.seekToInteractive},tooltipText:_t("tooltip_interactive_seek"),disabled:s(Fn),disabledTooltipContent:_t(Ae())}:void 0),Qr=g(()=>Ui&&s(un)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:bs.interactiveGraphButton,buttonComponent:jd,buttonComponentProps:{disabled:s(Hr),click:Qo.toggle,graphIsOpened:k()},tooltipText:s(Po)}:void 0),Vo=g(()=>s(zn)?{id:"liveButton",type:"desktop-control-panel-left",weight:bs.liveButton,buttonComponent:Yd,buttonComponentProps:{isLiveActive:s(ho),ariaLabel:s(yr)},tooltipText:s(yr),disabled:s(ho)&&l()===Pa.PlaybackState.PLAYING}:void 0),Jo=g(()=>[s(Xi),s(bo),s(dr),s(qn),s(cr),s(Kr),s(Qr),s(Vo)].filter(bt=>!!bt).sort(ba)),Ke=g(()=>s(oi)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ys.vkLogo,buttonComponent:Od,buttonComponentProps:{targetUrl:qt(),logoClickable:e.logoClickable,click:Ne},tooltipText:s(Ur),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Jt=g(()=>s(hr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ys.autoplayNext,buttonComponent:Qd,tooltipText:s(ar)}:void 0),$i=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:ys.volume,buttonComponent:tm,buttonComponentProps:{click:co,isAds:qe()}})),$o=g(()=>s(_r)?{id:"subtitles",type:"desktop-control-panel-right",weight:ys.subtitles,buttonComponent:Zf,buttonComponentProps:{isSubtitlesEnabled:s(ro),click:ze},tooltipText:s(In)}:void 0),Ro=g(()=>s(nt)?{id:"settings",type:"desktop-control-panel-right",weight:ys.settings,buttonComponent:wl,buttonComponentProps:{ref$:lo},tooltipText:pe()?void 0:_t("tooltip_settings_off")}:void 0),Se=g(()=>xe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ys.context,buttonComponent:bm,buttonComponentProps:{ariaLabel:_t("aria_label_context_menu")},className:s(br)?"":"out-of-view",tooltipText:s($r)}:void 0),yt=g(()=>s(En)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ys.fullscreen,buttonComponent:Bd,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:s(xr)}:void 0),vi=g(()=>s(Tn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ys.chromecast,buttonComponent:Dd,buttonComponentProps:{state:v(),click:cn},tooltipText:s(_o)}:void 0),Ji=g(()=>[s(Ke),s(Jt),s($i),s($o),s(Ro),s(Se),s(yt),s(vi),...ce()].filter(bt=>!!bt).sort(ba));var en=Ny(),yo=fe(en);let tt;var Ut=_(yo);let Vi=g(()=>!e.showControls),tn=g(()=>!s(Li));Ta(Ut,{get isHidden(){return s(Vi)},get timelineNotAvailable(){return s(tn)},get isAds(){return qe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return ti.timeline},set ref(bt){ti.timeline=bt}});var gn=P(Ut,2),fo=_(gn),Gr=_(fo);wi(Gr,17,()=>s(Jo),bt=>bt.id,(bt,ut)=>{Ru(bt,{get buttonComponent(){return s(ut).buttonComponent},get buttonComponentProps(){return s(ut).buttonComponentProps},get tooltipText(){return s(ut).tooltipText},get disabledTooltipContent(){return s(ut).disabledTooltipContent},get disabled(){return s(ut).disabled},get className(){return s(ut).className},get tooltipEnabled(){return s(ut).tooltipEnabled},get mouseEnter(){return s(ut).mouseEnter},get mouseLeave(){return s(ut).mouseLeave},get ref(){return ti[s(ut).id]},set ref(mo){ti[s(ut).id]=mo}})});var Tr=P(Gr,2);{var hi=bt=>{let ut=g(()=>!e.showControls),mo=g(()=>qe()?Te():Ye()),on=g(()=>qe()?it():ht());Vd(bt,{get isHidden(){return s(ut)},isMobile:!1,get showDuration(){return s(rt)},get position(){return s(mo)},get duration(){return s(on)},get ref(){return ti.time},set ref(zi){ti.time=zi}})};V(Tr,bt=>{s(xi)&&bt(hi)})}var ki=P(Tr,2);let Mn=g(()=>!s(Wn));Eo(ki,{className:"w-max",get disabled(){return s(Mn)},get tooltipContent(){return po},get ref(){return ti.episodes},set ref(bt){ti.episodes=bt},children:(bt,ut)=>{var mo=Ue(),on=fe(mo);{var zi=si=>{Fd(si,{get position(){return Ye()},get duration(){return ht()},get timeCodes(){return ui}})};V(on,si=>{s(Wn)&&si(zi)})}b(bt,mo)},$$slots:{default:!0}}),h(fo);var Kn=P(fo,2);wi(Kn,21,()=>s(Ji),bt=>bt.id,(bt,ut)=>{var mo=Ue(),on=fe(mo);{var zi=Ri=>{Ru(Ri,{get buttonComponent(){return s(ut).buttonComponent},get buttonComponentProps(){return s(ut).buttonComponentProps},get tooltipText(){return s(ut).tooltipText},get disabledTooltipContent(){return s(ut).disabledTooltipContent},get disabled(){return s(ut).disabled},get className(){return s(ut).className},get ref(){return ti[s(ut).id]},set ref(ws){ti[s(ut).id]=ws}})},si=Ri=>{let ws=g(()=>!!s(ut).disabled);Em(Ri,{get id(){return s(ut).id},get testId(){return s(ut).testId},get icon(){return s(ut).icon},get ariaLabel(){return s(ut).ariaLabel},get tooltipText(){return s(ut).tooltipText},get disabledTooltipContent(){return s(ut).disabledTooltipContent},get disabled(){return s(ws)},get onClick(){return s(ut).onClick},get disableMouseupTooltipShow(){return s(ut).disableMouseupTooltipShow},get ref(){return ti[s(ut).id]},set ref(Ol){ti[s(ut).id]=Ol}})};V(on,Ri=>{X1(s(ut))?Ri(zi):Ri(si,!1)})}b(bt,mo)}),h(Kn),h(gn),st(gn,bt=>ct(bt),()=>ct()),h(yo),st(yo,bt=>Pt(bt),()=>Pt());var Er=P(yo,2);{var xo=bt=>{Wd(bt,{get ref(){return ti.interactiveTimeIndicator},set ref(ut){ti.interactiveTimeIndicator=ut}})};V(Er,bt=>{pi&&bt(xo)})}O(bt=>tt=ie(yo,1,"wrapper-bottom svelte-f6e8ix",null,tt,bt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),is(fo,"clientWidth",bt=>B(jo,bt)),b(t,en),F(),o()}var Il=require("@vkontakte/videoplayer-core/es2018");var Pm=require("@vkontakte/videoplayer-shared/es2018");var Oy=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Dy=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),Hy={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function Am(t,e){z(t,Hy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Pm.noop),n=g(()=>o()===Pm.noop),r=g(()=>s(n)||i()),l=j(!1),d=()=>{B(l,!0)},a=g(()=>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:(p,f)=>{var v=Ue(),u=fe(v);{var $=y=>{var S=Oy();b(y,S)},w=y=>{var S=Dy();O(()=>De(S,"src",e.iconUrl)),Ct("error",S,d),ra(S),b(y,S)};V(u,y=>{s(l)?y($):y(w,!1)})}b(p,v)},$$slots:{default:!0}})}var Fy=Ce('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Mm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var J1=require("@vkontakte/videoplayer-shared/es2018");var Uy=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),zy={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Bu(t,e){H(e,!0),z(t,zy);let i=m(e,"muted",3,!1),o=m(e,"click",3,J1.noop),n=m(e,"ref",15,void 0),l=Ee().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?Mm:Hs),p=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Bt(t,{get testId(){return s(p)},get click(){return o()},get ariaLabel(){return s(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,v)=>{var u=Uy();let $=g(()=>s(a));var w=_(u);Ci(w,()=>s($),(y,S)=>{S(y,{})}),h(u),b(f,u)},$$slots:{default:!0}}),F()}var Wy=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Lm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Wy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(3),h(o),b(t,o)}var qy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Vm(t,e){z(t,qy);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");Lm(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}var e0=require("@vkontakte/videoplayer-shared/es2018");function Rm(t,e){H(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,e0.noop),r=U("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)=>{Vm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}var Nm=require("@vkontakte/videoplayer-shared/es2018");var Ky=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},Qy=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},Gy=M("<div><!></div>"),jy=M("<div><!></div>"),Yy=M("<div><!></div>"),Zy=M("<!> <!> <!>",1),Xy=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Jy=M('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),e4=M("<div><!></div> <!> <div><!></div>",1),t4=M('<div aria-hidden="true">\xB7</div> <!>',1),i4=M('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!> <!></div></div> <!></div></div> <!>',1),o4={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-9xcbwc {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
251
+ animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Wd(t,e){var ue;D(e,!0),z(t,py);let[i,o]=Oe(),n=()=>C(S,"$isMobile",i),r=()=>C(k,"$areControlsVisible",i),l=()=>C(R,"$currentGridType$",i),d=()=>C(I,"$isInteractiveTime$",i),a=()=>C(y,"$interactiveControlsOpacity$",i),p=()=>C(A,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),u=j(void 0),$=Ee(),w=po(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,T=$.ui.isFullscreen,I=$.state.isInteractiveTime$,A=w.showInteractiveTimeIndicatorTooltip$,k=$.ui.controlsVisible,E=(ue=$.callbacks)==null?void 0:ue.onInteractiveTimeIndicatorClick,R=$.ui.currentGridType$,Q=g(()=>!n()&&r()),q=g(()=>Fs(l(),"s")),W=g(()=>!d()||!!a()||s(Q)),G=j(!1);Ue(()=>{B(G,s(W),!0)});let X=()=>{B(G,!0)},Y=()=>{var pe;ce(),(pe=s(u))==null||pe.addEventListener("animationiteration",X,{once:!0})},ce=()=>{var pe;B(G,!1),(pe=s(u))==null||pe.removeEventListener("animationiteration",X)},le=pe=>{A.set(pe)},me=g(()=>p()&&!s(W));Ue(()=>{p()?Y():ce()});let ke=()=>{s(W)||(A.set(!0),E==null||E())};On(()=>{A.clearTimeout(),ce()});let ve=()=>{A.set(!1)},ae=F("tooltip_interactive_interaction_time_indicator");var Ve=uy();let ne;Ve.__mousemove=[cy],Ve.__click=ke;var N=_(Ve);So(N,{get tooltipContent(){return ae},get tooltipActive(){return s(me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return v()},set ref(pe){v(pe)},children:(pe,te)=>{Rd(pe,{completed:!0})},$$slots:{default:!0}});var He=P(N,2);let _e;rt(He,pe=>v(pe),()=>v());var ge=P(He,2);let de;rt(ge,pe=>B(u,pe),()=>s(u)),h(Ve),O((pe,te,qe)=>{ne=oe(Ve,1,"interactive-episode-icon-animated svelte-od3veb",null,ne,pe),_e=oe(He,1,"ref-block svelte-od3veb",null,_e,te),de=oe(ge,1,"pulse svelte-od3veb",null,de,qe)},[()=>({mobile:n(),fullscreen:f(),invisible:s(W),"icon-small":s(q)}),()=>({hidden:s(W)}),()=>({paused:s(G)})]),Tt("mouseleave",Ve,ve),b(t,Ve),H(),o()}ut(["mousemove","click"]);function Ru(t,e){D(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),r=m(e,"ref",15);So(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return r()},set ref(l){r(l)},children:(l,d)=>{var a=Fe();let p=g(()=>e.buttonComponent);var f=fe(a);Si(f,()=>s(p),(v,u)=>{u(v,gs(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(l,a)},$$slots:{default:!0}}),H()}var bs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var my=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function $m(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=my();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}function Us(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),r=m(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");$m(t,{get style(){return s(l)},get width(){return n()},get height(){return r()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var vy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),gy=M("<!> <!>",1),hy={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Ia(t,e){D(e,!0),z(t,hy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ee().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),p=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Nt(t,{get className(){return s(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return s(d)},get click(){return e.click},get ariaKeyShortCut(){return s(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var u=gy(),$=fe(u);{var w=T=>{var I=vy();b(T,I)};V($,T=>{o()&&T(w)})}var y=P($,2);let S=g(()=>e.type==="prev");Us(y,{get isMobile(){return o()},get isPrev(){return s(S)}}),b(f,u)},$$slots:{default:!0}}),H()}var _y=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function qd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=_y();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var Z1=require("@vkontakte/videoplayer-shared/es2018");var by=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),$y=M("<!> <div><!></div>",1),yy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Tl(t,e){D(e,!0),z(t,yy);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,Z1.noop),d=F("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${r()}`);Nt(t,{get className(){return s(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return os.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var v=$y(),u=fe(v);{var $=T=>{var I=by();b(T,I)};V(u,T=>{o()&&T($)})}var w=P(u,2);let y;var S=_(w);qd(S,{}),h(w),O(T=>y=oe(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(p,v)},$$slots:{default:!0}}),H()}var xy=Ce('<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=xy(),d=_(l);h(l),O(()=>{De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",n()),De(d,"fill",r())}),b(t,l)}var wy=Ce('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function $s(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=wy(),d=_(l);h(l),O(()=>{De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",n()),De(d,"fill",r())}),b(t,l)}var X1=require("@vkontakte/videoplayer-shared/es2018");var Cy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Sy=M("<!> <div><!></div>",1),Ty={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function El(t,e){D(e,!0),z(t,Ty);let[i,o]=Oe(),n=()=>C(r,"$fakeIsPlaying$",i),{fakeIsPlaying$:r}=po(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),p=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,X1.noop),$=Ee().ui.t,{toggle:w}=r,y=g(()=>w),S=g(()=>n()!==null),T=g(()=>s(S)?n():a()),I=g(()=>s(T)?$("tooltip_pause"):$("tooltip_play")),A=g(()=>s(T)?$s:Or),k=g(()=>`${d()?"btn-m--play":""} ${f()}`),E=g(()=>s(S)?s(y):v());Nt(t,{get className(){return s(k)},testId:"btn-play",get click(){return s(E)},get disabled(){return p()},get ariaLabel(){return s(I)},get ariaKeyShortCut(){return os.KeyK},get ref(){return l()},set ref(R){l(R)},children:(R,Q)=>{var q=Sy();let W=g(()=>s(A));var G=fe(q);{var X=me=>{var ke=Cy();b(me,ke)};V(G,me=>{d()&&me(X)})}var Y=P(G,2);let ce;var le=_(Y);Si(le,()=>s(W),(me,ke)=>{ke(me,{})}),h(Y),O(me=>ce=oe(Y,1,"svelte-1ot3duq",null,ce,me),[()=>({mobile:d()})]),b(R,q)},$$slots:{default:!0}}),H(),o()}var Ey=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function ym(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}function Kd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Nt(t,{get className(){return s(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{ym(d,{})},$$slots:{default:!0}}),H()}var Iy=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),ky={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function Qd(t,e){D(e,!0),z(t,ky);let[i,o]=Oe(),n=()=>C(a,"$autoplayNextEnabled$",i),r=m(e,"ref",15,void 0),l=Ee(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,p=l.actions.internal.setAutoplayNextEnabled,f=()=>{p(!n(),!0)},v=d("aria_label_autoplay"),u=g(()=>n()?"true":"false");Nt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return s(u)},get ref(){return r()},set ref($){r($)},children:($,w)=>{var y=Iy(),S=_(y);let T;var I=_(S);{var A=E=>{Or(E,{width:"14",height:"14",fill:"#000"})},k=E=>{$s(E,{width:"14",height:"14",fill:"#000"})};V(I,E=>{n()?E(A):E(k,!1)})}h(S),h(y),O(E=>T=oe(S,1,"toggler svelte-et3q1q",null,T,E),[()=>({enabled:n()})]),b($,y)},$$slots:{default:!0}}),H(),o()}var Py=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function xm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Py();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}function Gd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Nt(t,{get className(){return s(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{xm(d,{})},$$slots:{default:!0}}),H()}var Ay=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function wm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}var My={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Cm(t,e){z(t,My);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");wm(t,{get"data-testid"(){return s(o)}})}function jd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=m(e,"graphIsOpened",3,!1),d=Ee().ui.t,a=g(()=>r()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=g(()=>o()?"hidden":"");Nt(t,{get className(){return s(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let u=g(()=>!!r());Cm(f,{get isOpened(){return s(u)}})},$$slots:{default:!0}}),H()}var Sm=require("@vkontakte/videoplayer-core/es2018");function Yd(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C(p,"$playbackState$",i),r=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ee(),p=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,u=g(()=>()=>{if(!l()){f();return}n()===Sm.PlaybackState.PAUSED&&v()}),$=g(()=>r()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),y=g(()=>l()&&n()===Sm.PlaybackState.PLAYING);Nt(t,{get className(){return s($)},get testId(){return s(w)},get disabled(){return s(y)},get ariaLabel(){return d()},get click(){return s(u)},children:(S,T)=>{xd(S,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var Tm=require("@vkontakte/videoplayer-shared/es2018");var Ly=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Vy=M('<img class="icon" aria-hidden="true"/>');function ka(t,e){"use strict";let i=j(!1),o=()=>{B(i,!0)};var n=Fe(),r=fe(n);{var l=a=>{var p=Ly();b(a,p)},d=a=>{var p=Vy();O(()=>De(p,"src",e.icon)),Tt("error",p,o),ra(p),b(a,p)};V(r,a=>{s(i)?a(l):a(d,!1)})}b(t,n)}function Em(t,e){D(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Tm.noop),n=m(e,"ref",15),r=g(()=>o()===Tm.noop),l=g(()=>s(r)||i()),d=g(()=>s(r)?"btn-full-opacity":"");So(t,{get disabled(){return s(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,p)=>{let f=g(()=>{var v;return(v=e.testId)!=null?v:e.id});Nt(a,{get className(){return s(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(l)},get testId(){return s(f)},children:(v,u)=>{ka(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var J1=t=>!!t.buttonComponent;var ys={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Nu=(t,e,i,o)=>{if(t)for(let[n,r]of Object.entries(e))r.set(Br(t,i,n,o))};var By=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),Oy={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function km(t,e){var Fa,qs;D(e,!0),z(t,Oy);let[i,o]=Oe(),n=()=>C(Ei,"$disabledControls$",i),r=()=>C(yi,"$adPlaybackState",i),l=()=>C(Lt,"$playbackState$",i),d=()=>C($t,"$currentSubtitle$",i),a=()=>C(pi,"$isEnded$",i),p=()=>C(zo,"$currentGridType$",i),f=()=>C(ti,"$isLive$",i),v=()=>C(Fo,"$chromecastState$",i),u=()=>C(ri,"$isPictureInPictureActive",i),$=()=>C(fi,"$pictureInPictureType$",i),w=()=>C(Dt,"$availableSubtitlesList$",i),y=()=>C(lt,"$contextMenuOpenedByKeyboard$",i),S=()=>C(U,"$showContextMenuBtn$",i),T=()=>C(an,"$playerSize",i),I=()=>C(Gt,"$isRewindableLive$",i),A=()=>C(at,"$isActiveLive$",i),k=()=>C(Ko,"$graphIsOpened$",i),E=()=>C(Uo,"$contextMenuVisible$",i),R=()=>C(kt,"$isFullscreen",i),Q=()=>C(Ii,"$autoplayNextEnabled",i),q=()=>C(s(zr),"$prevButton",i),W=()=>C(s(wr),"$replayButton",i),G=()=>C(s(Et),"$playButton",i),X=()=>C(s(Vt),"$nextButton",i),Y=()=>C(s(fn),"$playPrevChapterButton",i),ce=()=>C(s(ko),"$seekToInteractiveButton",i),le=()=>C(s(mn),"$interactiveGraphButton",i),me=()=>C(s(Po),"$liveButton",i),ke=()=>C(s(kn),"$time",i),ve=()=>C(s(oo),"$episodes",i),ae=()=>C(s(Pn),"$vkLogo",i),Ve=()=>C(s(Ao),"$volume",i),ne=()=>C(s(lr),"$subtitles",i),N=()=>C(s(Cr),"$settings",i),He=()=>C(s(Wr),"$context",i),_e=()=>C(s(ls),"$fullscreen",i),ge=()=>C(s(qr),"$chromecast",i),de=()=>C(ln,"$additionalDesktopControlPanelRightButtons$",i),ue=()=>C(Gi,"$isInteractiveTime$",i),pe=()=>C(fo,"$settingsMenuVisible",i),te=()=>C(ro,"$settingButtonRef$",i),qe=()=>C(mi,"$startedByKeyboard$",i),Xe=()=>C(Kt,"$isAudioAvailable$",i),Z=()=>C(Wt,"$fakeIsPlaying$",i),Ae=()=>C(Cn,"$seekToInteractiveDisabledTooltip$",i),Te=()=>C(vt,"$adPosition",i),Ye=()=>C(et,"$position$",i),it=()=>C(st,"$adDuration",i),bt=()=>C(Re,"$duration$",i),gt=m(e,"playerControlsWrapperRef",15,void 0),St=m(e,"playerControlsRef",15,void 0),Qe=m(e,"isAds",3,!1),zt=m(e,"logoTargetUrl",3,""),Xt=m(e,"isOneVideoPlaylist",3,!1),Yt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Wt}=po(),ee=Ee(),Bt=po(),xe=Pt(),he=ee.actions.internal.toggleMuted,ie=ee.actions.internal.togglePlay,Be=ee.actions.internal.pause,ze=ee.actions.internal.toggleSubtitle,Me=(Fa=ee.callbacks)==null?void 0:Fa.onAudioDoesNotExistHint,We=(qs=ee.callbacks)==null?void 0:qs.onAudioDisabledHint,Re=ee.state.duration$,et=ee.state.positionWithScrubbing$,Lt=ee.state.playbackState$,Kt=ee.state.isAudioAvailable$,Je=ee.state.isAudioDisabled,pi=ee.state.isEnded$,ti=ee.state.isLive$,at=ee.state.isActiveLive$,Gt=ee.state.isRewindableLive$,{isActive$:ri,type$:fi}=Bt.pictureInPicture$,fo=ee.ui.settingsMenu.visible$,Qi=ee.ui.settingsMenu.openedByBtnKeyboard$,Qt=ee.ui.controls,ni=ee.actions.internal.getVideoEpisodes(),Fo=ee.state.chromecastState$,Dt=ee.state.availableSubtitlesList$,$t=ee.state.currentSubtitle$,Ei=Qt.disabledControls$,Uo=ee.ui.contextMenu.visible$,U=ee.ui.contextMenu.showContextMenuBtn$,lt=ee.ui.contextMenu.openedByBtnKeyboard$,mi=ee.ui.startedByKeyboard$,di=ee.ui.controlBlocks,pt=ee.ui.t,st=ee.ads.duration,vt=ee.ads.position,yi=ee.ads.playbackState,kt=ee.ui.isFullscreen,an=ee.ui.playerSize,zo=ee.ui.currentGridType$,ln=ee.ui.additionalDesktopControlPanelRightButtons$,Ii=ee.ui.autoplayNextEnabled$,xt=ee.actions.internal.getVideoElement,ki=ee.actions.internal.replayInteractive,Wo=ee.actions.internal.prevVideoClick,wn=ee.actions.internal.nextVideoClick,Fi=ee.state.isInteractive,Gi=ee.state.isInteractiveTime$,Eo=ee.state.showInteractiveGraph,dn=ee.state.showSeekToInteractive,Hn=ee.state.showPlayPrevChapter,ci=ee.state.showInteractiveTimeIndicator,qo=ee.state.playPrevChapterDisabledTooltip,Cn=Bt.seekToInteractiveDisabledTooltip$,Ko=Bt.graphIsOpened$,to=xe.features.interactiveResponsiveUi,tr=g(()=>n().has("EPISODE_BUTTON")),Hr=g(()=>n().has("GRAPH_BUTTON")),Fn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),ir=g(()=>n().has("PLAY_BUTTON")),Fr=g(()=>n().has("REPLAY_BUTTON")),gr=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),cn=()=>ee.actions.internal.toggleChromecast(),or=g(()=>Qe()?r()==="playing":l()===Pa.PlaybackState.PLAYING),io=g(()=>d().value!=="off"),Qo=g(()=>a()&&!Qe()||Fi),nr=g(()=>to?s(Qo)&&Hi(p(),"m"):s(Qo)),Sn=g(()=>!a()||Fi||Qe()),rr=g(()=>Hi(p(),"m")),Un=g(()=>e.showNextPrevButtons&&Hi(p(),"m")&&!Qe()&&e.nextButtonActive),sr=g(()=>e.showNextPrevButtons&&Hi(p(),"m")&&!Qe()&&e.prevButtonActive),zn=g(()=>!Qe()&&!!f()),Tn=g(()=>v()!==Pa.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&Hi(p(),"m")&&!Fi),hr=g(()=>e.showAutoplayNext&&!Xt()&&Hi(p(),"s")),_r=g(()=>w().length>0&&Hi(p(),"m")),br=g(()=>y()||S()),ot=g(()=>Hi(p(),"s")&&!Qe()),ii=g(()=>!e.logoHidden&&!Qe()),En=g(()=>xe.features.fullscreen&&(e.logoHidden||Hi(p(),to?"xs":"s"))&&!(u()&&$()===1)&&(Fi?Yt():!0)),wi=g(()=>(!f()||Qe())&&!(xe.features.interactiveHideTime&&Fi)),Li=g(()=>T().width>100),un=g(()=>Eo&&Hi(p(),"m")),pn=g(()=>to?dn&&Hi(p(),"s"):dn),mo=g(()=>to?Hn&&Hi(p(),"s"):Hn),Wn=g(()=>!Qe()&&!f()&&!!(ni!=null&&ni.length)&&s(rr)&&!s(tr)),vo=g(()=>!I()||!!A()),Io=g(()=>k()?pt("tooltip_interactive_graph_on"):pt("tooltip_interactive_graph_off")),$r=g(()=>E()?pt("tooltip_context_menu_close"):pt("tooltip_context_menu_open")),as=(yt,ct)=>yt?ct&&ct===Pa.PlaybackState.PAUSED?pt("tooltip_play"):"":pt("tooltip_live"),yr=g(()=>as(s(vo),l())),Ur=g(()=>xe.logoType==="vk_video"?pt("tooltip_vk_video_logo"):pt("tooltip_vk_logo")),In=g(()=>s(io)?pt("tooltip_subtitles_on"):pt("tooltip_subtitles_off")),xr=g(()=>R()?pt("tooltip_fullscreen_on"):pt("tooltip_fullscreen_off")),go=g(()=>v()===Pa.ChromecastState.CONNECTED?pt("tooltip_chromecast_on"):pt("tooltip_chromecast_off")),ar=g(()=>Q()?pt("tooltip_autoplay_on"):pt("tooltip_autoplay_off")),Go=j(0),Jt=oi({}),jo=oi({}),zr=g(()=>Qt.prevButton),wr=g(()=>Qt.replayButton),Et=g(()=>Qt.playButton),Vt=g(()=>Qt.nextButton),fn=g(()=>Qt.playPrevChapterButton),ko=g(()=>Qt.seekToInteractiveButton),mn=g(()=>Qt.interactiveGraphButton),Po=g(()=>Qt.liveButton),kn=g(()=>Qt.time),oo=g(()=>Qt.episodes),Pn=g(()=>Qt.vkLogo),Ao=g(()=>Qt.volume),lr=g(()=>Qt.subtitles),Cr=g(()=>Qt.settings),Wr=g(()=>Qt.context),ls=g(()=>Qt.fullscreen),qr=g(()=>Qt.chromecast),no=g(()=>({prevButton:q()?q().right-q().left:0,replayButton:W()?W().right-W().left:0,playButton:G()?G().right-G().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:Y()?Y().right-Y().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:me()?me().right-me().left:0,time:ke()?ke().right-ke().left:0,episodes:ve()?ve().right-ve().left:0,vkLogo:ae()?ae().right-ae().left:0,volume:Ve()?Ve().right-Ve().left:0,subtitles:ne()?ne().right-ne().left:0,settings:N()?N().right-N().left:0,context:He()?He().right-He().left:0,fullscreen:_e()?_e().right-_e().left:0,chromecast:ge()?ge().right-ge().left:0,additionalButtons:de().length?de().reduce(yt=>[...yt,40],[]):[]})),vn=j(0);Ue(()=>{(!s(vn)||s(vn)<s(no).time)&&Ct(()=>B(vn,s(no).time,!0))});let Sr=j(!1);Ue(()=>{let yt=0;s(Wn)&&(Hi(p(),"xl")?yt=s(no).time:yt=60);let ct=s(no).prevButton+s(no).playButton+s(no).nextButton+s(no).seekToInteractiveButton+s(no).interactiveGraphButton+s(no).liveButton+s(vn)+yt;B(Sr,s(wi)&&s(Go)>=ct,!0)});let nt=g(()=>s(Sr)&&Hi(p(),"m")),At=(0,Im.debounceFn)(Sl,260),vi=(0,Im.debounceFn)(Nu,260);Ue(()=>{T(),ue(),At(xt(),Qt,Jt,e.showControls),vi(xt(),di,jo,e.showControls)}),Ue(()=>{jo.bottom=gt()});let ro=re();Ue(()=>{pe(),te()&&Ct(()=>_l(te(),pe(),Qi))});let ji;Ue(()=>{qe(),Ct(()=>Vu(mi,qe(),ji))});function so(){Os({isAudioDisabled:Je,isAudioAvailable:Xe(),isAds:Qe(),audioIsNotExistHintCallback:Me,audioDisabledHintCallback:We})&&he()}let ao=Fi?ki:ie,Yo=g(()=>Z()!==null),Zo=g(()=>s(Yo)?Z():s(or)),An=g(()=>s(Zo)?pt("tooltip_pause"):pt("tooltip_play")),lo=pt("tooltip_episodes"),Yi=g(()=>{var yt,ct,uo,tn;return s(sr)?{id:"prevButton",type:"desktop-control-panel-left",weight:bs.prevButton,buttonComponent:Ia,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Wo.bind(null,!0)},tooltipEnabled:!((ct=(yt=ee.callbacks)==null?void 0:yt.uiInfo)!=null&&ct.onPrevButtonMouseEnter)&&!((tn=(uo=ee.callbacks)==null?void 0:uo.uiInfo)!=null&&tn.onPrevButtonMouseLeave),mouseEnter:()=>{var Ui,si,Ri;(Ri=(si=(Ui=ee.callbacks)==null?void 0:Ui.uiInfo)==null?void 0:si.onPrevButtonMouseEnter)==null||Ri.call(si,Br(xt(),Jt,"prevButton",e.showControls))},mouseLeave:()=>{var Ui,si,Ri;(Ri=(si=(Ui=ee.callbacks)==null?void 0:Ui.uiInfo)==null?void 0:si.onPrevButtonMouseLeave)==null||Ri.call(si,Br(xt(),Jt,"prevButton",e.showControls))},tooltipText:pt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),ho=g(()=>s(nr)?{id:"replayButton",type:"desktop-control-panel-left",weight:bs.replayButton,buttonComponent:Tl,buttonComponentProps:{disabled:s(Fr),click:ao},tooltipText:pt("tooltip_restart"),disabled:s(Fr)}:void 0),dr=g(()=>s(Sn)?{id:"playButton",type:"desktop-control-panel-left",weight:bs.playButton,buttonComponent:El,buttonComponentProps:{disabled:s(ir),isPlaying:s(or),click:ie},tooltipText:s(An),disabled:s(ir)}:void 0),qn=g(()=>{var yt,ct,uo,tn;return s(Un)?{id:"nextButton",type:"desktop-control-panel-left",weight:bs.nextButton,buttonComponent:Ia,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:wn.bind(null,!0)},tooltipEnabled:!((ct=(yt=ee.callbacks)==null?void 0:yt.uiInfo)!=null&&ct.onNextButtonMouseEnter)&&!((tn=(uo=ee.callbacks)==null?void 0:uo.uiInfo)!=null&&tn.onNextButtonMouseLeave),mouseEnter:()=>{var Ui,si,Ri;(Ri=(si=(Ui=ee.callbacks)==null?void 0:Ui.uiInfo)==null?void 0:si.onNextButtonMouseEnter)==null||Ri.call(si,Br(xt(),Jt,"nextButton",e.showControls))},mouseLeave:()=>{var Ui,si,Ri;(Ri=(si=(Ui=ee.callbacks)==null?void 0:Ui.uiInfo)==null?void 0:si.onNextButtonMouseLeave)==null||Ri.call(si,Br(xt(),Jt,"nextButton",e.showControls))},tooltipText:pt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),cr=g(()=>Fi&&s(mo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:bs.playPrevChapterButton,buttonComponent:Kd,buttonComponentProps:{disabled:s(gr),click:e.playPrevChapter},tooltipText:pt("tooltip_interactive_go_back"),disabledTooltipContent:pt(qo),disabled:s(gr)}:void 0),Kr=g(()=>Fi&&s(pn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:bs.seekToInteractiveButton,buttonComponent:Gd,buttonComponentProps:{disabled:s(Fn),click:e.seekToInteractive},tooltipText:pt("tooltip_interactive_seek"),disabled:s(Fn),disabledTooltipContent:pt(Ae())}:void 0),Qr=g(()=>Fi&&s(un)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:bs.interactiveGraphButton,buttonComponent:jd,buttonComponentProps:{disabled:s(Hr),click:Ko.toggle,graphIsOpened:k()},tooltipText:s(Io)}:void 0),Mo=g(()=>s(zn)?{id:"liveButton",type:"desktop-control-panel-left",weight:bs.liveButton,buttonComponent:Yd,buttonComponentProps:{isLiveActive:s(vo),ariaLabel:s(yr)},tooltipText:s(yr),disabled:s(vo)&&l()===Pa.PlaybackState.PLAYING}:void 0),Xo=g(()=>[s(Yi),s(ho),s(dr),s(qn),s(cr),s(Kr),s(Qr),s(Mo)].filter(yt=>!!yt).sort(ba)),Ke=g(()=>s(ii)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ys.vkLogo,buttonComponent:Od,buttonComponentProps:{targetUrl:zt(),logoClickable:e.logoClickable,click:Be},tooltipText:s(Ur),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Zt=g(()=>s(hr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ys.autoplayNext,buttonComponent:Qd,tooltipText:s(ar)}:void 0),xi=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:ys.volume,buttonComponent:tm,buttonComponentProps:{click:so,isAds:Qe()}})),_o=g(()=>s(_r)?{id:"subtitles",type:"desktop-control-panel-right",weight:ys.subtitles,buttonComponent:Zf,buttonComponentProps:{isSubtitlesEnabled:s(io),click:ze},tooltipText:s(In)}:void 0),Lo=g(()=>s(ot)?{id:"settings",type:"desktop-control-panel-right",weight:ys.settings,buttonComponent:wl,buttonComponentProps:{ref$:ro},tooltipText:pe()?void 0:pt("tooltip_settings_off")}:void 0),Se=g(()=>xe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ys.context,buttonComponent:bm,buttonComponentProps:{ariaLabel:pt("aria_label_context_menu")},className:s(br)?"":"out-of-view",tooltipText:s($r)}:void 0),wt=g(()=>s(En)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ys.fullscreen,buttonComponent:Bd,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:s(xr)}:void 0),gi=g(()=>s(Tn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ys.chromecast,buttonComponent:Dd,buttonComponentProps:{state:v(),click:cn},tooltipText:s(go)}:void 0),Zi=g(()=>[s(Ke),s(Zt),s(xi),s(_o),s(Lo),s(Se),s(wt),s(gi),...de()].filter(yt=>!!yt).sort(ba));var Jo=By(),bo=fe(Jo);let tt;var Ut=_(bo);let Vi=g(()=>!e.showControls),en=g(()=>!s(Li));Ta(Ut,{get isHidden(){return s(Vi)},get timelineNotAvailable(){return s(en)},get isAds(){return Qe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Jt.timeline},set ref(yt){Jt.timeline=yt}});var gn=P(Ut,2),co=_(gn),Gr=_(co);Ci(Gr,17,()=>s(Xo),yt=>yt.id,(yt,ct)=>{Ru(yt,{get buttonComponent(){return s(ct).buttonComponent},get buttonComponentProps(){return s(ct).buttonComponentProps},get tooltipText(){return s(ct).tooltipText},get disabledTooltipContent(){return s(ct).disabledTooltipContent},get disabled(){return s(ct).disabled},get className(){return s(ct).className},get tooltipEnabled(){return s(ct).tooltipEnabled},get mouseEnter(){return s(ct).mouseEnter},get mouseLeave(){return s(ct).mouseLeave},get ref(){return Jt[s(ct).id]},set ref(uo){Jt[s(ct).id]=uo}})});var Tr=P(Gr,2);{var _i=yt=>{let ct=g(()=>!e.showControls),uo=g(()=>Qe()?Te():Ye()),tn=g(()=>Qe()?it():bt());Vd(yt,{get isHidden(){return s(ct)},isMobile:!1,get showDuration(){return s(nt)},get position(){return s(uo)},get duration(){return s(tn)},get ref(){return Jt.time},set ref(Ui){Jt.time=Ui}})};V(Tr,yt=>{s(wi)&&yt(_i)})}var Pi=P(Tr,2);let Mn=g(()=>!s(Wn));So(Pi,{className:"w-max",get disabled(){return s(Mn)},get tooltipContent(){return lo},get ref(){return Jt.episodes},set ref(yt){Jt.episodes=yt},children:(yt,ct)=>{var uo=Fe(),tn=fe(uo);{var Ui=si=>{Fd(si,{get position(){return Ye()},get duration(){return bt()},get timeCodes(){return ni}})};V(tn,si=>{s(Wn)&&si(Ui)})}b(yt,uo)},$$slots:{default:!0}}),h(co);var Kn=P(co,2);Ci(Kn,21,()=>s(Zi),yt=>yt.id,(yt,ct)=>{var uo=Fe(),tn=fe(uo);{var Ui=Ri=>{Ru(Ri,{get buttonComponent(){return s(ct).buttonComponent},get buttonComponentProps(){return s(ct).buttonComponentProps},get tooltipText(){return s(ct).tooltipText},get disabledTooltipContent(){return s(ct).disabledTooltipContent},get disabled(){return s(ct).disabled},get className(){return s(ct).className},get ref(){return Jt[s(ct).id]},set ref(ws){Jt[s(ct).id]=ws}})},si=Ri=>{let ws=g(()=>!!s(ct).disabled);Em(Ri,{get id(){return s(ct).id},get testId(){return s(ct).testId},get icon(){return s(ct).icon},get ariaLabel(){return s(ct).ariaLabel},get tooltipText(){return s(ct).tooltipText},get disabledTooltipContent(){return s(ct).disabledTooltipContent},get disabled(){return s(ws)},get onClick(){return s(ct).onClick},get disableMouseupTooltipShow(){return s(ct).disableMouseupTooltipShow},get ref(){return Jt[s(ct).id]},set ref(Ol){Jt[s(ct).id]=Ol}})};V(tn,Ri=>{J1(s(ct))?Ri(Ui):Ri(si,!1)})}b(yt,uo)}),h(Kn),h(gn),rt(gn,yt=>St(yt),()=>St()),h(bo),rt(bo,yt=>gt(yt),()=>gt());var Er=P(bo,2);{var $o=yt=>{Wd(yt,{get ref(){return Jt.interactiveTimeIndicator},set ref(ct){Jt.interactiveTimeIndicator=ct}})};V(Er,yt=>{ci&&yt($o)})}O(yt=>tt=oe(bo,1,"wrapper-bottom svelte-f6e8ix",null,tt,yt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),is(co,"clientWidth",yt=>B(Go,yt)),b(t,Jo),H(),o()}var Il=require("@vkontakte/videoplayer-core/es2018");var Pm=require("@vkontakte/videoplayer-shared/es2018");var Dy=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Hy=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),Fy={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function Am(t,e){z(t,Fy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Pm.noop),n=g(()=>o()===Pm.noop),r=g(()=>s(n)||i()),l=j(!1),d=()=>{B(l,!0)},a=g(()=>s(n)?"btn-full-opacity":"");Nt(t,{get className(){return s(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(r)},get testId(){return e.testId},children:(p,f)=>{var v=Fe(),u=fe(v);{var $=y=>{var S=Dy();b(y,S)},w=y=>{var S=Hy();O(()=>De(S,"src",e.iconUrl)),Tt("error",S,d),ra(S),b(y,S)};V(u,y=>{s(l)?y($):y(w,!1)})}b(p,v)},$$slots:{default:!0}})}var Uy=Ce('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Mm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Uy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var e0=require("@vkontakte/videoplayer-shared/es2018");var zy=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),Wy={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Bu(t,e){D(e,!0),z(t,Wy);let i=m(e,"muted",3,!1),o=m(e,"click",3,e0.noop),n=m(e,"ref",15,void 0),l=Ee().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?Mm:Hs),p=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Nt(t,{get testId(){return s(p)},get click(){return o()},get ariaLabel(){return s(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,v)=>{var u=zy();let $=g(()=>s(a));var w=_(u);Si(w,()=>s($),(y,S)=>{S(y,{})}),h(u),b(f,u)},$$slots:{default:!0}}),H()}var qy=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Lm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=qy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(3),h(o),b(t,o)}var Ky={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Vm(t,e){z(t,Ky);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");Lm(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}var t0=require("@vkontakte/videoplayer-shared/es2018");function Rm(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,t0.noop),r=F("menu_pip");Nt(t,{testId:"btn-pip",get ariaLabel(){return r},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Vm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var Nm=require("@vkontakte/videoplayer-shared/es2018");var Qy=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},Gy=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},jy=M("<div><!></div>"),Yy=M("<div><!></div>"),Zy=M("<div><!></div>"),Xy=M("<!> <!> <!>",1),Jy=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),e4=M('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),t4=M("<div><!></div> <!> <div><!></div>",1),i4=M('<div aria-hidden="true">\xB7</div> <!>',1),o4=M('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!> <!></div></div> <!></div></div> <!>',1),n4={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.`},c1=rb;var hs=new Map;hs.set(pl.Interf
258
258
  }
259
259
 
260
260
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-9xcbwc {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-9xcbwc {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-9xcbwc {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-9xcbwc {left:96px;}.wrapper-middle-right.fullscreen.svelte-9xcbwc {right:44px;}.controls-wrapper.fullscreen.svelte-9xcbwc {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
261
- }`};function Bm(t,e){var vn,Sr;H(e,!0),z(t,o4);let[i,o]=Oe(),n=()=>C(Ii,"$seekToInteractiveDisabledTooltip$",i),r=()=>C(At,"$disabledControls$",i),l=()=>C(ae,"$playbackState$",i),d=()=>C(Dt,"$adPlaybackState",i),a=()=>C(he,"$isEnded$",i),p=()=>C(_t,"$playerSize",i),f=()=>C(Re,"$scrubbingInProgress",i),v=()=>C(ji,"$chromecastState$",i),u=()=>C(kt,"$isPictureInPictureActive",i),$=()=>C(Gt,"$pictureInPictureType$",i),w=()=>C(et,"$mobileNotReportControlHidden$",i),y=()=>C(oo,"$chromecastHidden",i),S=()=>C(Xt,"$playerPhase",i),T=()=>C(ri,"$pipHidden",i),I=()=>C(Mi,"$currentGridType$",i),A=()=>C(jt,"$vkLogoHidden",i),k=()=>C(at,"$volumeHidden",i),E=()=>C(te,"$isLive$",i),R=()=>C(ot,"$settingsMenuVisible",i),G=()=>C(Fe,"$isRewindableLive$",i),q=()=>C(Ve,"$isActiveLive$",i),W=()=>C(It,"$isAudioAvailable$",i),Q=()=>C(ze,"$muted$",i),X=()=>C(Ne,"$volume$",i),Y=()=>C(Fi,"$isInteractiveTime$",i),de=()=>C(ho,"$settingButtonRef$",i),le=()=>C(wt,"$startedByKeyboard$",i),ve=()=>C(li,"$isFullscreen",i),Ie=()=>C(Je,"$additionalButtons$",i),me=()=>C(Gi,"$autoplayNextToggleHidden",i),se=()=>C(zo,"$crashed$",i),Le=()=>C(yi,"$settingsHidden",i),oe=()=>C(qo,"$graphIsOpened$",i),N=()=>C(D,"$adPosition",i),He=()=>C(Ti,"$adDuration",i),_e=()=>C(Kt,"$position$",i),ge=()=>C(Qt,"$duration$",i),ce=m(e,"playerControlsWrapperRef",15,void 0),ue=m(e,"playerControlsRef",15,void 0),pe=m(e,"isAds",3,!1),ee=m(e,"logoTargetUrl",3,""),Qe=m(e,"isOneVideoPlaylist",3,!1),Xe=m(e,"customFullscreenSupported",3,!0),Z=Ee(),Ae=vo(),Te=Et(),Ye=Z.actions.internal.toggleMuted,it=Z.actions.internal.togglePlay,ht=Z.actions.internal.pause,Pt=Z.actions.internal.prevVideoClick,ct=Z.actions.internal.nextVideoClick,qe=(vn=Z.callbacks)==null?void 0:vn.onAudioDoesNotExistHint,qt=(Sr=Z.callbacks)==null?void 0:Sr.onAudioDisabledHint,Xt=Z.playerPhase,Qt=Z.state.duration$,Kt=Z.state.positionWithScrubbing$,ae=Z.state.playbackState$,It=Z.state.isAudioAvailable$,xe=Z.state.isAudioDisabled,he=Z.state.isEnded$,te=Z.state.isLive$,Ne=Z.state.volume$,ze=Z.state.muted$,Ve=Z.state.isActiveLive$,Fe=Z.state.isRewindableLive$,Re=Z.ui.scrubbingInProgress,et=Z.ui.mobileNotReportControlHidden$,{isActive$:kt,type$:Gt}=Ae.pictureInPicture$,ot=Z.ui.settingsMenu.visible$,ci=Z.ui.settingsMenu.openedByBtnKeyboard$,ei=Z.ui.controls,{volume:at,vkLogo:jt,autoplayNextToggle:Gi,pip:ri,settings:yi,chromecast:oo}=Z.ui.hiddenControls,zt=Z.actions.internal.getVideoEpisodes(),ui=Z.webApi.pictureInPictureApi,ji=Z.state.chromecastState$,zo=Z.state.crashed$,At=ei.disabledControls$,wt=Z.ui.startedByKeyboard$,Mi=Z.ui.currentGridType$,Ti=Z.ads.duration,D=Z.ads.position,Dt=Z.ads.playbackState,li=Z.ui.isFullscreen,_t=Z.ui.playerSize,Je=Z.ui.additionalButtonsDeprecated$,lt=Z.actions.internal.getVideoElement,Yt=Z.actions.internal.replayInteractive,Vt=Z.state.isInteractive,Fi=Z.state.isInteractiveTime$,Wo=Z.state.showInteractiveGraph,ln=Z.state.showSeekToInteractive,Ei=Z.state.showPlayPrevChapter,$t=Z.state.showInteractiveTimeIndicator,Ii=Ae.seekToInteractiveDisabledTooltip$,qo=Ae.graphIsOpened$,wn=Z.ui.controlBlocks,Ui=g(()=>U(Z.state.playPrevChapterDisabledTooltip)),Yi=g(()=>U(n())),ko=g(()=>r().has("EPISODE_BUTTON")),dn=g(()=>r().has("GRAPH_BUTTON")),Hn=g(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),pi=g(()=>r().has("PLAY_BUTTON")),Ko=g(()=>r().has("REPLAY_BUTTON")),Cn=g(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Qo=g(()=>l()===Il.PlaybackState.PLAYING),no=g(()=>d()==="paused"),tr=g(()=>a()&&!pe()&&!Vt),Hr=g(()=>!a()||pe()),Fn=g(()=>e.showNextPrevButtons&&!pe()&&e.prevButtonActive),ir=g(()=>e.showNextPrevButtons&&!pe()&&e.nextButtonActive),Fr=g(()=>p().width>300),gr=g(()=>p().width>400),cn=g(f),or=g(()=>v()!==Il.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!Vt&&!y()),ro=g(()=>S()==="LiveWaitingStart"),Go=g(()=>!!ui&&v()!==Il.ChromecastState.CONNECTED&&!w()&&($()===1&&s(ro)||!s(ro))&&!s(cn)&&!Vt&&!T()),nr=g(()=>!s(cn)&&Hi(I(),"s")),Sn=g(()=>!e.logoHidden&&p().width>350&&!A()),rr=g(()=>Te.features.fullscreen&&!(u()&&$()===1)&&(Vt?Xe():!0)&&!s(cn)),Un=g(()=>!k()&&!s(cn)&&Hi(I(),"s")),sr=g(()=>(!E()||pe())&&p().width>260&&!s(cn)&&!(Te.features.interactiveHideTime&&Vt)),zn=g(()=>R()||e.showControls),Tn=g(()=>!pe()&&!E()&&!!(zt!=null&&zt.length)&&s(Fr)&&!s(ko)&&!s(cn)),hr=g(()=>!G()||!!q()),_r=g(()=>Wo&&Hi(I(),"m")),br=g(()=>!W()||Q()||X()===0),nt=ni({}),oi=ni({}),En=(0,Nm.debounceFn)(Sl,260),xi=(0,Nm.debounceFn)(Nu,260);We(()=>{p(),Y(),En(lt(),ei,nt,e.showControls),xi(lt(),wn,oi,e.showControls)});let Li=()=>Z.actions.internal.toggleChromecast();async function un(){ui!=null&&ui.isActive()?await(ui==null?void 0:ui.exit()):await(ui==null?void 0:ui.request())}function pn(){Os({isAudioDisabled:xe,audioDisabledHintCallback:qt,isAudioAvailable:W(),audioIsNotExistHintCallback:qe,isAds:pe()})&&Ye()}let go=j(""),Wn=(rt,Mt)=>{if(!rt){B(go,U("tooltip_live"),!0);return}Mt&&Mt===Il.PlaybackState.PAUSED&&B(go,U("tooltip_play"),!0)};We(()=>{Wn(s(hr),l())});let ho=ne();We(()=>{de()&&_l(de(),R(),ci)}),We(()=>{Vu(wt,le(),nt.playButton)});var Po=i4(),$r=fe(Po);{var as=rt=>{var Mt=Xy(),mi=fe(Mt);let lo;var Zi=P(mi,2);let co;st(Zi,tt=>oi.topLeft=tt,()=>oi==null?void 0:oi.topLeft);var uo=P(Zi,2);let Zo;var Xo=_(uo);wi(Xo,1,Ie,({iconUrl:tt,ariaLabel:Ut,testId:Vi,onClick:tn,tooltip:gn})=>tt,(tt,Ut)=>{let Vi=()=>s(Ut).iconUrl,tn=()=>s(Ut).ariaLabel,gn=()=>s(Ut).testId,fo=()=>s(Ut).onClick,Gr=()=>s(Ut).tooltip,Tr=g(()=>{var hi;return(hi=tn())!=null?hi:Gr()});Am(tt,{get iconUrl(){return Vi()},get ariaLabel(){return s(Tr)},get testId(){return gn()},get onClick(){return fo()}})});var An=P(Xo,2);{var po=tt=>{Qd(tt,{get ref(){return nt.autoplayNextToggle},set ref(Ut){nt.autoplayNextToggle=Ut}})};V(An,tt=>{e.showAutoplayNext&&!Qe()&&!me()&&tt(po)})}var Xi=P(An,2);{var bo=tt=>{Dd(tt,{isMobile:!0,click:Li,get state(){return v()},get ref(){return nt.chromecast},set ref(Ut){nt.chromecast=Ut}})};V(Xi,tt=>{s(or)&&tt(bo)})}var dr=P(Xi,2);{var qn=tt=>{Rm(tt,{click:un,get isPictureInPictureActive(){return u()},get ref(){return nt.pip},set ref(Ut){nt.pip=Ut}})};V(dr,tt=>{s(Go)&&tt(qn)})}var cr=P(dr,2);{var Kr=tt=>{wl(tt,{get ref$(){return ho}})};V(cr,tt=>{se()&&!Le()&&tt(Kr)})}var Qr=P(cr,2);{var Vo=tt=>{Od(tt,{get click(){return ht},get targetUrl(){return ee()},get logoClickable(){return e.logoClickable},get ref(){return nt.vkLogo},set ref(Ut){nt.vkLogo=Ut}})};V(Qr,tt=>{s(Sn)&&tt(Vo)})}h(uo),st(uo,tt=>oi.topRight=tt,()=>oi==null?void 0:oi.topRight);var Jo=P(uo,2);let Ke;var Jt=_(Jo);{var $i=tt=>{let Ut=g(()=>Pt.bind(null,!0));Ia(tt,{get click(){return s(Ut)},type:"prev",isMobile:!0,get ref(){return nt.prevButton},set ref(Vi){nt.prevButton=Vi}})};V(Jt,tt=>{s(Fn)&&tt($i)})}var $o=P(Jt,2);{var Ro=tt=>{El(tt,{get disabled(){return s(pi)},get click(){return it},isMobile:!0,get isPlaying(){return s(Qo)},get ref(){return nt.playButton},set ref(Ut){nt.playButton=Ut}})};V($o,tt=>{s(Hr)&&tt(Ro)})}var Se=P($o,2);{var yt=tt=>{Tl(tt,{get disabled(){return s(Ko)},get click(){return it},isMobile:!0,get ref(){return nt.replayButton},set ref(Ut){nt.replayButton=Ut}})};V(Se,tt=>{s(tr)&&tt(yt)})}var vi=P(Se,2);{var Ji=tt=>{let Ut=g(()=>ct.bind(null,!0));Ia(tt,{get click(){return s(Ut)},type:"next",isMobile:!0,get ref(){return nt.nextButton},set ref(Vi){nt.nextButton=Vi}})};V(vi,tt=>{s(ir)&&tt(Ji)})}h(Jo),st(Jo,tt=>oi.middle=tt,()=>oi==null?void 0:oi.middle);var en=P(Jo,2);{var yo=tt=>{var Ut=Zy(),Vi=fe(Ut);{var tn=hi=>{var ki=Gy();let Mn;ki.__click=[Ky,Cn,e,Ui];var Kn=_(ki);let Er=g(()=>!e.showControls);Kd(Kn,{get hidden(){return s(Er)},get disabled(){return s(Cn)},get click(){return e.playPrevChapter},get ref(){return nt.playPrevChapterButton},set ref(xo){nt.playPrevChapterButton=xo}}),h(ki),O(xo=>Mn=ie(ki,1,"wrapper-middle-left svelte-9xcbwc",null,Mn,xo),[()=>({fullscreen:ve(),hidden:!e.showControls})]),b(hi,ki)};V(Vi,hi=>{Ei&&hi(tn)})}var gn=P(Vi,2);{var fo=hi=>{var ki=jy();let Mn;var Kn=_(ki);let Er=g(()=>!e.showControls&&!oe());jd(Kn,{get hidden(){return s(Er)},get disabled(){return s(dn)},get click(){return qo.toggle},get graphIsOpened(){return oe()},get ref(){return nt.interactiveGraphButton},set ref(xo){nt.interactiveGraphButton=xo}}),h(ki),O(xo=>Mn=ie(ki,1,dd(Ei?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",Mn,xo),[()=>({fullscreen:ve(),hidden:!e.showControls&&!oe()})]),b(hi,ki)};V(gn,hi=>{s(_r)&&hi(fo)})}var Gr=P(gn,2);{var Tr=hi=>{var ki=Yy();let Mn;ki.__click=[Qy,Hn,e,Yi];var Kn=_(ki);let Er=g(()=>!e.showControls);Gd(Kn,{get hidden(){return s(Er)},get disabled(){return s(Hn)},get click(){return e.seekToInteractive},get ref(){return nt.seekToInteractiveButton},set ref(xo){nt.seekToInteractiveButton=xo}}),h(ki),O(xo=>Mn=ie(ki,1,"wrapper-middle-right svelte-9xcbwc",null,Mn,xo),[()=>({fullscreen:ve(),hidden:!e.showControls})]),b(hi,ki)};V(Gr,hi=>{ln&&hi(Tr)})}b(tt,Ut)};V(en,tt=>{Vt&&!f()&&tt(yo)})}O((tt,Ut,Vi,tn)=>{lo=ie(mi,1,"overlay-mobile svelte-9xcbwc",null,lo,tt),co=ie(Zi,1,"wrapper-top-left svelte-9xcbwc",null,co,Ut),Zo=ie(uo,1,"wrapper-top-right svelte-9xcbwc",null,Zo,Vi),Ke=ie(Jo,1,"wrapper-middle svelte-9xcbwc",null,Ke,tn)},[()=>({hidden:!s(zn)}),()=>({hidden:!e.showControls,fullscreen:ve()}),()=>({hidden:!e.showControls&&!w(),fullscreen:ve()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(rt,Mt)};V($r,rt=>{pe()||rt(as)})}var yr=P($r,2);{var Ur=rt=>{var Mt=e4(),mi=fe(Mt);let lo;var Zi=_(mi);Bu(Zi,{get muted(){return Q()},click:pn,get ref(){return nt.volume},set ref(po){nt.volume=po}}),h(mi);var co=P(mi,2);{var uo=po=>{var Xi=Jy(),bo=_(Xi);let dr=g(()=>!s(no));El(bo,{get disabled(){return s(pi)},get click(){return it},isMobile:!0,get isPlaying(){return s(dr)},get ref(){return nt.playButton},set ref(qn){nt.playButton=qn}}),h(Xi),b(po,Xi)};V(co,po=>{s(no)&&po(uo)})}var Zo=P(co,2);let Xo;var An=_(Zo);Hd(An,{get position(){return N()},get duration(){return He()}}),h(Zo),O((po,Xi)=>{lo=ie(mi,1,"wrapper-top-right svelte-9xcbwc",null,lo,po),Xo=ie(Zo,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Xo,Xi)},[()=>({fullscreen:ve()}),()=>({fullscreen:ve()})]),b(rt,Mt)};V(yr,rt=>{pe()&&d()!=="inactive"&&rt(Ur)})}var In=P(yr,2);let xr;var _o=_(In);let ar;var jo=_(_o);ie(jo,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var ti=_(jo),Yo=_(ti);{var zr=rt=>{Eo(rt,{get disabled(){return s(Ko)},get ref(){return nt.replayButton},set ref(Mt){nt.replayButton=Mt},children:(Mt,mi)=>{Tl(Mt,{get disabled(){return s(Ko)},get click(){return Yt}})},$$slots:{default:!0}})};V(Yo,rt=>{Vt&&rt(zr)})}var wr=P(Yo,2);{var St=rt=>{Eo(rt,{get ref(){return nt.liveButton},set ref(Mt){nt.liveButton=Mt},children:(Mt,mi)=>{Yd(Mt,{get isLiveActive(){return s(hr)},isMobile:!0,get ariaLabel(){return s(go)}})},$$slots:{default:!0}})};V(wr,rt=>{!pe()&&E()&&rt(St)})}var Rt=P(wr,2);{var fn=rt=>{let Mt=g(()=>pe()?N():_e()),mi=g(()=>pe()?He():ge()),lo=g(()=>!e.showControls);Vd(rt,{get showDuration(){return s(gr)},get position(){return s(Mt)},get duration(){return s(mi)},isMobile:!0,get isHidden(){return s(lo)},get ref(){return nt.time},set ref(Zi){nt.time=Zi}})};V(Rt,rt=>{s(sr)&&rt(fn)})}var Ao=P(Rt,2);let mn=g(()=>!s(Tn));Eo(Ao,{className:"w-max",get disabled(){return s(mn)},get ref(){return nt.episodes},set ref(rt){nt.episodes=rt},children:(rt,Mt)=>{var mi=Ue(),lo=fe(mi);{var Zi=co=>{var uo=t4(),Zo=P(fe(uo),2);Fd(Zo,{get position(){return _e()},get duration(){return ge()},get timeCodes(){return zt}}),b(co,uo)};V(lo,co=>{s(Tn)&&co(Zi)})}b(rt,mi)},$$slots:{default:!0}}),h(ti),st(ti,rt=>oi.bottomRight=rt,()=>oi==null?void 0:oi.bottomRight);var Mo=P(ti,2),kn=_(Mo);{var so=rt=>{Eo(rt,{get ref(){return nt.volume},set ref(Mt){nt.volume=Mt},children:(Mt,mi)=>{Bu(Mt,{get muted(){return s(br)},click:pn})},$$slots:{default:!0}})};V(kn,rt=>{s(Un)&&rt(so)})}var Pn=P(kn,2);{var Lo=rt=>{Eo(rt,{get ref(){return nt.settings},set ref(Mt){nt.settings=Mt},children:(Mt,mi)=>{wl(Mt,{get ref$(){return ho}})},$$slots:{default:!0}})};V(Pn,rt=>{s(nr)&&rt(Lo)})}var lr=P(Pn,2);{var Cr=rt=>{Eo(rt,{get ref(){return nt.fullscreen},set ref(Mt){nt.fullscreen=Mt},children:(Mt,mi)=>{Bd(Mt,{get click(){return e.toggleFullscreen},get isFullscreen(){return ve()}})},$$slots:{default:!0}})};V(lr,rt=>{s(rr)&&rt(Cr)})}h(Mo),st(Mo,rt=>oi.bottomRight=rt,()=>oi==null?void 0:oi.bottomRight),h(jo),st(jo,rt=>ue(rt),()=>ue());var Wr=P(jo,2);let ls=g(()=>!e.showControls);Ta(Wr,{get isHidden(){return s(ls)},get isAds(){return pe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return G()},get ref(){return nt.timeline},set ref(rt){nt.timeline=rt}}),h(_o),h(In),st(In,rt=>ce(rt),()=>ce());var qr=P(In,2);{var ao=rt=>{Wd(rt,{get ref(){return nt.interactiveTimeIndicator},set ref(Mt){nt.interactiveTimeIndicator=Mt}})};V(qr,rt=>{$t&&rt(ao)})}O((rt,Mt)=>{xr=ie(In,1,"wrapper-bottom svelte-9xcbwc",null,xr,rt),ar=ie(_o,1,"controls-wrapper svelte-9xcbwc",null,ar,Mt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:ve()})]),b(t,Po),F(),o()}pt(["click"]);function Zd(t,e){H(e,!0);let[i,o]=Oe(),n=()=>C(T,"$isMobile",i),r=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),p=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),$=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,Om.noop),y=m(e,"onDisabledSeekToInteractiveClick",3,Om.noop),T=Ee().ui.isMobile,I=j(!1);Ot(()=>{let R=setTimeout(()=>B(I,!0),0);return()=>clearTimeout(R)});var A=Ue(),k=fe(A);{var E=R=>{var G=Ue(),q=fe(G);{var W=X=>{Bm(X,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return u()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})},Q=X=>{km(X,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})};V(q,X=>{n()?X(W):X(Q,!1)})}b(R,G)};V(k,R=>{s(I)&&R(E)})}b(t,A),F(),o()}var n4=Ce('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Dm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=n4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}function Hm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Dm(t,{get style(){return s(o)}})}var r4=Ce('<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=Me(e,["$$slots","$$events","$$legacy","children"]);var o=r4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}var s4=Ce('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Um(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=s4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}function Ou(t,e){let i=m(e,"isOff",3,!1);var o=Ue(),n=fe(o);{var r=d=>{Um(d,{})},l=d=>{Fm(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var a4=Ce('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function zm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=a4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}function Wm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);zm(t,{get style(){return s(o)}})}var l4=Ce('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function qm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=l4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(2),h(o),b(t,o)}function Km(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);qm(t,{get style(){return s(o)}})}var d4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),c4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),u4=M("<div><!></div>"),p4={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
261
+ }`};function Bm(t,e){var vn,Sr;D(e,!0),z(t,n4);let[i,o]=Oe(),n=()=>C(ki,"$seekToInteractiveDisabledTooltip$",i),r=()=>C($t,"$disabledControls$",i),l=()=>C(ee,"$playbackState$",i),d=()=>C(mi,"$adPlaybackState",i),a=()=>C(he,"$isEnded$",i),p=()=>C(pt,"$playerSize",i),f=()=>C(Re,"$scrubbingInProgress",i),v=()=>C(Fo,"$chromecastState$",i),u=()=>C(Lt,"$isPictureInPictureActive",i),$=()=>C(Kt,"$pictureInPictureType$",i),w=()=>C(et,"$mobileNotReportControlHidden$",i),y=()=>C(Qi,"$chromecastHidden",i),S=()=>C(Xt,"$playerPhase",i),T=()=>C(fi,"$pipHidden",i),I=()=>C(Uo,"$currentGridType$",i),A=()=>C(Gt,"$vkLogoHidden",i),k=()=>C(at,"$volumeHidden",i),E=()=>C(ie,"$isLive$",i),R=()=>C(Je,"$settingsMenuVisible",i),Q=()=>C(We,"$isRewindableLive$",i),q=()=>C(Me,"$isActiveLive$",i),W=()=>C(Bt,"$isAudioAvailable$",i),G=()=>C(ze,"$muted$",i),X=()=>C(Be,"$volume$",i),Y=()=>C(an,"$isInteractiveTime$",i),ce=()=>C(vo,"$settingButtonRef$",i),le=()=>C(Ei,"$startedByKeyboard$",i),me=()=>C(di,"$isFullscreen",i),ke=()=>C(st,"$additionalButtons$",i),ve=()=>C(ri,"$autoplayNextToggleHidden",i),ae=()=>C(Dt,"$crashed$",i),Ve=()=>C(fo,"$settingsHidden",i),ne=()=>C(Wo,"$graphIsOpened$",i),N=()=>C(lt,"$adPosition",i),He=()=>C(U,"$adDuration",i),_e=()=>C(Wt,"$position$",i),ge=()=>C(Yt,"$duration$",i),de=m(e,"playerControlsWrapperRef",15,void 0),ue=m(e,"playerControlsRef",15,void 0),pe=m(e,"isAds",3,!1),te=m(e,"logoTargetUrl",3,""),qe=m(e,"isOneVideoPlaylist",3,!1),Xe=m(e,"customFullscreenSupported",3,!0),Z=Ee(),Ae=po(),Te=Pt(),Ye=Z.actions.internal.toggleMuted,it=Z.actions.internal.togglePlay,bt=Z.actions.internal.pause,gt=Z.actions.internal.prevVideoClick,St=Z.actions.internal.nextVideoClick,Qe=(vn=Z.callbacks)==null?void 0:vn.onAudioDoesNotExistHint,zt=(Sr=Z.callbacks)==null?void 0:Sr.onAudioDisabledHint,Xt=Z.playerPhase,Yt=Z.state.duration$,Wt=Z.state.positionWithScrubbing$,ee=Z.state.playbackState$,Bt=Z.state.isAudioAvailable$,xe=Z.state.isAudioDisabled,he=Z.state.isEnded$,ie=Z.state.isLive$,Be=Z.state.volume$,ze=Z.state.muted$,Me=Z.state.isActiveLive$,We=Z.state.isRewindableLive$,Re=Z.ui.scrubbingInProgress,et=Z.ui.mobileNotReportControlHidden$,{isActive$:Lt,type$:Kt}=Ae.pictureInPicture$,Je=Z.ui.settingsMenu.visible$,pi=Z.ui.settingsMenu.openedByBtnKeyboard$,ti=Z.ui.controls,{volume:at,vkLogo:Gt,autoplayNextToggle:ri,pip:fi,settings:fo,chromecast:Qi}=Z.ui.hiddenControls,Qt=Z.actions.internal.getVideoEpisodes(),ni=Z.webApi.pictureInPictureApi,Fo=Z.state.chromecastState$,Dt=Z.state.crashed$,$t=ti.disabledControls$,Ei=Z.ui.startedByKeyboard$,Uo=Z.ui.currentGridType$,U=Z.ads.duration,lt=Z.ads.position,mi=Z.ads.playbackState,di=Z.ui.isFullscreen,pt=Z.ui.playerSize,st=Z.ui.additionalButtonsDeprecated$,vt=Z.actions.internal.getVideoElement,yi=Z.actions.internal.replayInteractive,kt=Z.state.isInteractive,an=Z.state.isInteractiveTime$,zo=Z.state.showInteractiveGraph,ln=Z.state.showSeekToInteractive,Ii=Z.state.showPlayPrevChapter,xt=Z.state.showInteractiveTimeIndicator,ki=Ae.seekToInteractiveDisabledTooltip$,Wo=Ae.graphIsOpened$,wn=Z.ui.controlBlocks,Fi=g(()=>F(Z.state.playPrevChapterDisabledTooltip)),Gi=g(()=>F(n())),Eo=g(()=>r().has("EPISODE_BUTTON")),dn=g(()=>r().has("GRAPH_BUTTON")),Hn=g(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),ci=g(()=>r().has("PLAY_BUTTON")),qo=g(()=>r().has("REPLAY_BUTTON")),Cn=g(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Ko=g(()=>l()===Il.PlaybackState.PLAYING),to=g(()=>d()==="paused"),tr=g(()=>a()&&!pe()&&!kt),Hr=g(()=>!a()||pe()),Fn=g(()=>e.showNextPrevButtons&&!pe()&&e.prevButtonActive),ir=g(()=>e.showNextPrevButtons&&!pe()&&e.nextButtonActive),Fr=g(()=>p().width>300),gr=g(()=>p().width>400),cn=g(f),or=g(()=>v()!==Il.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!kt&&!y()),io=g(()=>S()==="LiveWaitingStart"),Qo=g(()=>!!ni&&v()!==Il.ChromecastState.CONNECTED&&!w()&&($()===1&&s(io)||!s(io))&&!s(cn)&&!kt&&!T()),nr=g(()=>!s(cn)&&Hi(I(),"s")),Sn=g(()=>!e.logoHidden&&p().width>350&&!A()),rr=g(()=>Te.features.fullscreen&&m1(document)&&!(u()&&$()===1)&&(kt?Xe():!0)&&!s(cn)),Un=g(()=>!k()&&!s(cn)&&Hi(I(),"s")),sr=g(()=>(!E()||pe())&&p().width>260&&!s(cn)&&!(Te.features.interactiveHideTime&&kt)),zn=g(()=>R()||e.showControls),Tn=g(()=>!pe()&&!E()&&!!(Qt!=null&&Qt.length)&&s(Fr)&&!s(Eo)&&!s(cn)),hr=g(()=>!Q()||!!q()),_r=g(()=>zo&&Hi(I(),"m")),br=g(()=>!W()||G()||X()===0),ot=oi({}),ii=oi({}),En=(0,Nm.debounceFn)(Sl,260),wi=(0,Nm.debounceFn)(Nu,260);Ue(()=>{p(),Y(),En(vt(),ti,ot,e.showControls),wi(vt(),wn,ii,e.showControls)});let Li=()=>Z.actions.internal.toggleChromecast();async function un(){ni!=null&&ni.isActive()?await(ni==null?void 0:ni.exit()):await(ni==null?void 0:ni.request())}function pn(){Os({isAudioDisabled:xe,audioDisabledHintCallback:zt,isAudioAvailable:W(),audioIsNotExistHintCallback:Qe,isAds:pe()})&&Ye()}let mo=j(""),Wn=(nt,At)=>{if(!nt){B(mo,F("tooltip_live"),!0);return}At&&At===Il.PlaybackState.PAUSED&&B(mo,F("tooltip_play"),!0)};Ue(()=>{Wn(s(hr),l())});let vo=re();Ue(()=>{ce()&&_l(ce(),R(),pi)}),Ue(()=>{Vu(Ei,le(),ot.playButton)});var Io=o4(),$r=fe(Io);{var as=nt=>{var At=Jy(),vi=fe(At);let ro;var ji=P(vi,2);let so;rt(ji,tt=>ii.topLeft=tt,()=>ii==null?void 0:ii.topLeft);var ao=P(ji,2);let Yo;var Zo=_(ao);Ci(Zo,1,ke,({iconUrl:tt,ariaLabel:Ut,testId:Vi,onClick:en,tooltip:gn})=>tt,(tt,Ut)=>{let Vi=()=>s(Ut).iconUrl,en=()=>s(Ut).ariaLabel,gn=()=>s(Ut).testId,co=()=>s(Ut).onClick,Gr=()=>s(Ut).tooltip,Tr=g(()=>{var _i;return(_i=en())!=null?_i:Gr()});Am(tt,{get iconUrl(){return Vi()},get ariaLabel(){return s(Tr)},get testId(){return gn()},get onClick(){return co()}})});var An=P(Zo,2);{var lo=tt=>{Qd(tt,{get ref(){return ot.autoplayNextToggle},set ref(Ut){ot.autoplayNextToggle=Ut}})};V(An,tt=>{e.showAutoplayNext&&!qe()&&!ve()&&tt(lo)})}var Yi=P(An,2);{var ho=tt=>{Dd(tt,{isMobile:!0,click:Li,get state(){return v()},get ref(){return ot.chromecast},set ref(Ut){ot.chromecast=Ut}})};V(Yi,tt=>{s(or)&&tt(ho)})}var dr=P(Yi,2);{var qn=tt=>{Rm(tt,{click:un,get isPictureInPictureActive(){return u()},get ref(){return ot.pip},set ref(Ut){ot.pip=Ut}})};V(dr,tt=>{s(Qo)&&tt(qn)})}var cr=P(dr,2);{var Kr=tt=>{wl(tt,{get ref$(){return vo}})};V(cr,tt=>{ae()&&!Ve()&&tt(Kr)})}var Qr=P(cr,2);{var Mo=tt=>{Od(tt,{get click(){return bt},get targetUrl(){return te()},get logoClickable(){return e.logoClickable},get ref(){return ot.vkLogo},set ref(Ut){ot.vkLogo=Ut}})};V(Qr,tt=>{s(Sn)&&tt(Mo)})}h(ao),rt(ao,tt=>ii.topRight=tt,()=>ii==null?void 0:ii.topRight);var Xo=P(ao,2);let Ke;var Zt=_(Xo);{var xi=tt=>{let Ut=g(()=>gt.bind(null,!0));Ia(tt,{get click(){return s(Ut)},type:"prev",isMobile:!0,get ref(){return ot.prevButton},set ref(Vi){ot.prevButton=Vi}})};V(Zt,tt=>{s(Fn)&&tt(xi)})}var _o=P(Zt,2);{var Lo=tt=>{El(tt,{get disabled(){return s(ci)},get click(){return it},isMobile:!0,get isPlaying(){return s(Ko)},get ref(){return ot.playButton},set ref(Ut){ot.playButton=Ut}})};V(_o,tt=>{s(Hr)&&tt(Lo)})}var Se=P(_o,2);{var wt=tt=>{Tl(tt,{get disabled(){return s(qo)},get click(){return it},isMobile:!0,get ref(){return ot.replayButton},set ref(Ut){ot.replayButton=Ut}})};V(Se,tt=>{s(tr)&&tt(wt)})}var gi=P(Se,2);{var Zi=tt=>{let Ut=g(()=>St.bind(null,!0));Ia(tt,{get click(){return s(Ut)},type:"next",isMobile:!0,get ref(){return ot.nextButton},set ref(Vi){ot.nextButton=Vi}})};V(gi,tt=>{s(ir)&&tt(Zi)})}h(Xo),rt(Xo,tt=>ii.middle=tt,()=>ii==null?void 0:ii.middle);var Jo=P(Xo,2);{var bo=tt=>{var Ut=Xy(),Vi=fe(Ut);{var en=_i=>{var Pi=jy();let Mn;Pi.__click=[Qy,Cn,e,Fi];var Kn=_(Pi);let Er=g(()=>!e.showControls);Kd(Kn,{get hidden(){return s(Er)},get disabled(){return s(Cn)},get click(){return e.playPrevChapter},get ref(){return ot.playPrevChapterButton},set ref($o){ot.playPrevChapterButton=$o}}),h(Pi),O($o=>Mn=oe(Pi,1,"wrapper-middle-left svelte-9xcbwc",null,Mn,$o),[()=>({fullscreen:me(),hidden:!e.showControls})]),b(_i,Pi)};V(Vi,_i=>{Ii&&_i(en)})}var gn=P(Vi,2);{var co=_i=>{var Pi=Yy();let Mn;var Kn=_(Pi);let Er=g(()=>!e.showControls&&!ne());jd(Kn,{get hidden(){return s(Er)},get disabled(){return s(dn)},get click(){return Wo.toggle},get graphIsOpened(){return ne()},get ref(){return ot.interactiveGraphButton},set ref($o){ot.interactiveGraphButton=$o}}),h(Pi),O($o=>Mn=oe(Pi,1,dd(Ii?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",Mn,$o),[()=>({fullscreen:me(),hidden:!e.showControls&&!ne()})]),b(_i,Pi)};V(gn,_i=>{s(_r)&&_i(co)})}var Gr=P(gn,2);{var Tr=_i=>{var Pi=Zy();let Mn;Pi.__click=[Gy,Hn,e,Gi];var Kn=_(Pi);let Er=g(()=>!e.showControls);Gd(Kn,{get hidden(){return s(Er)},get disabled(){return s(Hn)},get click(){return e.seekToInteractive},get ref(){return ot.seekToInteractiveButton},set ref($o){ot.seekToInteractiveButton=$o}}),h(Pi),O($o=>Mn=oe(Pi,1,"wrapper-middle-right svelte-9xcbwc",null,Mn,$o),[()=>({fullscreen:me(),hidden:!e.showControls})]),b(_i,Pi)};V(Gr,_i=>{ln&&_i(Tr)})}b(tt,Ut)};V(Jo,tt=>{kt&&!f()&&tt(bo)})}O((tt,Ut,Vi,en)=>{ro=oe(vi,1,"overlay-mobile svelte-9xcbwc",null,ro,tt),so=oe(ji,1,"wrapper-top-left svelte-9xcbwc",null,so,Ut),Yo=oe(ao,1,"wrapper-top-right svelte-9xcbwc",null,Yo,Vi),Ke=oe(Xo,1,"wrapper-middle svelte-9xcbwc",null,Ke,en)},[()=>({hidden:!s(zn)}),()=>({hidden:!e.showControls,fullscreen:me()}),()=>({hidden:!e.showControls&&!w(),fullscreen:me()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(nt,At)};V($r,nt=>{pe()||nt(as)})}var yr=P($r,2);{var Ur=nt=>{var At=t4(),vi=fe(At);let ro;var ji=_(vi);Bu(ji,{get muted(){return G()},click:pn,get ref(){return ot.volume},set ref(lo){ot.volume=lo}}),h(vi);var so=P(vi,2);{var ao=lo=>{var Yi=e4(),ho=_(Yi);let dr=g(()=>!s(to));El(ho,{get disabled(){return s(ci)},get click(){return it},isMobile:!0,get isPlaying(){return s(dr)},get ref(){return ot.playButton},set ref(qn){ot.playButton=qn}}),h(Yi),b(lo,Yi)};V(so,lo=>{s(to)&&lo(ao)})}var Yo=P(so,2);let Zo;var An=_(Yo);Hd(An,{get position(){return N()},get duration(){return He()}}),h(Yo),O((lo,Yi)=>{ro=oe(vi,1,"wrapper-top-right svelte-9xcbwc",null,ro,lo),Zo=oe(Yo,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Zo,Yi)},[()=>({fullscreen:me()}),()=>({fullscreen:me()})]),b(nt,At)};V(yr,nt=>{pe()&&d()!=="inactive"&&nt(Ur)})}var In=P(yr,2);let xr;var go=_(In);let ar;var Go=_(go);oe(Go,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var Jt=_(Go),jo=_(Jt);{var zr=nt=>{So(nt,{get disabled(){return s(qo)},get ref(){return ot.replayButton},set ref(At){ot.replayButton=At},children:(At,vi)=>{Tl(At,{get disabled(){return s(qo)},get click(){return yi}})},$$slots:{default:!0}})};V(jo,nt=>{kt&&nt(zr)})}var wr=P(jo,2);{var Et=nt=>{So(nt,{get ref(){return ot.liveButton},set ref(At){ot.liveButton=At},children:(At,vi)=>{Yd(At,{get isLiveActive(){return s(hr)},isMobile:!0,get ariaLabel(){return s(mo)}})},$$slots:{default:!0}})};V(wr,nt=>{!pe()&&E()&&nt(Et)})}var Vt=P(wr,2);{var fn=nt=>{let At=g(()=>pe()?N():_e()),vi=g(()=>pe()?He():ge()),ro=g(()=>!e.showControls);Vd(nt,{get showDuration(){return s(gr)},get position(){return s(At)},get duration(){return s(vi)},isMobile:!0,get isHidden(){return s(ro)},get ref(){return ot.time},set ref(ji){ot.time=ji}})};V(Vt,nt=>{s(sr)&&nt(fn)})}var ko=P(Vt,2);let mn=g(()=>!s(Tn));So(ko,{className:"w-max",get disabled(){return s(mn)},get ref(){return ot.episodes},set ref(nt){ot.episodes=nt},children:(nt,At)=>{var vi=Fe(),ro=fe(vi);{var ji=so=>{var ao=i4(),Yo=P(fe(ao),2);Fd(Yo,{get position(){return _e()},get duration(){return ge()},get timeCodes(){return Qt}}),b(so,ao)};V(ro,so=>{s(Tn)&&so(ji)})}b(nt,vi)},$$slots:{default:!0}}),h(Jt),rt(Jt,nt=>ii.bottomRight=nt,()=>ii==null?void 0:ii.bottomRight);var Po=P(Jt,2),kn=_(Po);{var oo=nt=>{So(nt,{get ref(){return ot.volume},set ref(At){ot.volume=At},children:(At,vi)=>{Bu(At,{get muted(){return s(br)},click:pn})},$$slots:{default:!0}})};V(kn,nt=>{s(Un)&&nt(oo)})}var Pn=P(kn,2);{var Ao=nt=>{So(nt,{get ref(){return ot.settings},set ref(At){ot.settings=At},children:(At,vi)=>{wl(At,{get ref$(){return vo}})},$$slots:{default:!0}})};V(Pn,nt=>{s(nr)&&nt(Ao)})}var lr=P(Pn,2);{var Cr=nt=>{So(nt,{get ref(){return ot.fullscreen},set ref(At){ot.fullscreen=At},children:(At,vi)=>{Bd(At,{get click(){return e.toggleFullscreen},get isFullscreen(){return me()}})},$$slots:{default:!0}})};V(lr,nt=>{s(rr)&&nt(Cr)})}h(Po),rt(Po,nt=>ii.bottomRight=nt,()=>ii==null?void 0:ii.bottomRight),h(Go),rt(Go,nt=>ue(nt),()=>ue());var Wr=P(Go,2);let ls=g(()=>!e.showControls);Ta(Wr,{get isHidden(){return s(ls)},get isAds(){return pe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Q()},get ref(){return ot.timeline},set ref(nt){ot.timeline=nt}}),h(go),h(In),rt(In,nt=>de(nt),()=>de());var qr=P(In,2);{var no=nt=>{Wd(nt,{get ref(){return ot.interactiveTimeIndicator},set ref(At){ot.interactiveTimeIndicator=At}})};V(qr,nt=>{xt&&nt(no)})}O((nt,At)=>{xr=oe(In,1,"wrapper-bottom svelte-9xcbwc",null,xr,nt),ar=oe(go,1,"controls-wrapper svelte-9xcbwc",null,ar,At)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:me()})]),b(t,Io),H(),o()}ut(["click"]);function Zd(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C(T,"$isMobile",i),r=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),p=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),$=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,Om.noop),y=m(e,"onDisabledSeekToInteractiveClick",3,Om.noop),T=Ee().ui.isMobile,I=j(!1);Ot(()=>{let R=setTimeout(()=>B(I,!0),0);return()=>clearTimeout(R)});var A=Fe(),k=fe(A);{var E=R=>{var Q=Fe(),q=fe(Q);{var W=X=>{Bm(X,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return u()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})},G=X=>{km(X,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})};V(q,X=>{n()?X(W):X(G,!1)})}b(R,Q)};V(k,R=>{s(I)&&R(E)})}b(t,A),H(),o()}var r4=Ce('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Dm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=r4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}function Hm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Dm(t,{get style(){return s(o)}})}var s4=Ce('<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=s4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}var a4=Ce('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Um(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=a4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}function Ou(t,e){let i=m(e,"isOff",3,!1);var o=Fe(),n=fe(o);{var r=d=>{Um(d,{})},l=d=>{Fm(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var l4=Ce('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function zm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=l4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}function Wm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);zm(t,{get style(){return s(o)}})}var d4=Ce('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function qm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=d4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}function Km(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);qm(t,{get style(){return s(o)}})}var c4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),u4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),p4=M("<div><!></div>"),f4={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.`},c1=rb;var hs=new Map;hs.set(pl.Interf
273
273
  @keyframes svelte-1ad3n06-fadeOut {
274
274
  0% {opacity:1;}
275
275
  100% {opacity:0;}
276
- }`};function Qm(t,e){H(e,!0),z(t,p4);let[i,o]=Oe(),n=()=>C(e.data,"$data",i),l=Ee().ui.t,d=g(()=>!n()),a=g(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),p=g(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=g(()=>{var S;return(S=n())==null?void 0:S.type}),v=g(()=>{var S,T;return(S=n())!=null&&S.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=u4();let $;var w=_(u);{var y=S=>{var T=c4(),I=fe(T),A=_(I);{var k=ce=>{let ue=g(()=>s(f)==="FORWARD_SEEK");Hm(ce,{get reversed(){return s(ue)}})};V(A,ce=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(f))&&ce(k)})}var E=P(A,2);{var R=ce=>{$s(ce,{})};V(E,ce=>{s(f)==="PAUSE"&&ce(R)})}var G=P(E,2);{var q=ce=>{Or(ce,{})};V(G,ce=>{s(f)==="PLAY"&&ce(q)})}var W=P(G,2);{var Q=ce=>{qd(ce,{})};V(W,ce=>{s(f)==="REPLAY"&&ce(Q)})}var X=P(W,2);{var Y=ce=>{Ou(ce,{isOff:!0})};V(X,ce=>{s(f)==="SUBTITLES_OFF"&&ce(Y)})}var de=P(X,2);{var le=ce=>{Ou(ce,{})};V(de,ce=>{s(f)==="SUBTITLES_ON"&&ce(le)})}var ve=P(de,2);{var Ie=ce=>{let ue=g(()=>s(f)==="RATE_UP");Wm(ce,{get reversed(){return s(ue)}})};V(ve,ce=>{["RATE_DOWN","RATE_UP"].includes(s(f))&&ce(Ie)})}var me=P(ve,2);{var se=ce=>{let ue=g(()=>s(f)==="EPISODE_NEXT");Km(ce,{get reversed(){return s(ue)}})};V(me,ce=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(f))&&ce(se)})}var Le=P(me,2);{var oe=ce=>{Hs(ce,{volume:0})};V(Le,ce=>{s(f)==="MUTE"&&ce(oe)})}var N=P(Le,2);{var He=ce=>{Hs(ce,{volume:1})};V(N,ce=>{s(f)==="VOLUME"&&ce(He)})}h(I);var _e=P(I,2);{var ge=ce=>{var ue=d4(),pe=_(ue,!0);h(ue),O(()=>$e(pe,s(v))),b(ce,ue)};V(_e,ce=>{s(v)&&ce(ge)})}b(S,T)};V(w,S=>{!s(d)&&s(f)&&S(y)})}h(u),O(S=>$=ie(u,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:s(d),"hot-key-helpers-container--left":s(a),"hot-key-helpers-container--right":s(p)})]),b(t,u),F(),o()}var f4=Ce('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function Gm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=f4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var m4=Ce('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function jm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=m4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}function zs(t,e){H(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),r=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let v="";return s(r)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Ue(),a=fe(d);{var p=v=>{let u=g(()=>s(r)?"chevron-icon--down":"chevron-icon--up");Gm(v,{get style(){return s(l)},get"data-testid"(){return s(u)}})},f=v=>{let u=g(()=>s(r)?"chevron-icon--right":"chevron-icon--left");jm(v,{get style(){return s(l)},get"data-testid"(){return s(u)}})};V(a,v=>{s(n)?v(p):v(f,!1)})}b(t,d),F()}var v4=(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}},g4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},h4=M('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),_4={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function Xd(t,e){H(e,!0),z(t,_4);let i=m(e,"isShifted",3,!1),o=Ee(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=U("aria_label_spherical_control");var v=h4();let u;v.__keydown=[v4,n,r,l,a,d],v.__keyup=[g4,n,p];var $=_(v),w=_($),y=_(w);y.__mousedown=r,y.__mouseup=p;var S=_(y);zs(S,{direction:"up",useBtnColor:!0}),h(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=p;var I=_(T);zs(I,{direction:"up",useBtnColor:!0}),h(T),h(w);var A=P(w,2),k=_(A);k.__mousedown=a,k.__mouseup=p;var E=_(k);zs(E,{direction:"up",useBtnColor:!0}),h(k);var R=P(k,2);R.__mousedown=l,R.__mouseup=p;var G=_(R);zs(G,{direction:"up",useBtnColor:!0}),h(R),h(A),h($),h(v),O(q=>{u=ie(v,1,"immersive-controls svelte-1yzc86r",null,u,q),De(v,"aria-label",f)},[()=>({"m-shifted":i()})]),Ct("mouseleave",y,p),Ct("mouseleave",T,p),Ct("mouseleave",k,p),Ct("mouseleave",R,p),b(t,v),F()}pt(["keydown","keyup","mousedown","mouseup"]);var xs=require("@vkontakte/videoplayer-shared/es2018");var t0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Du=class{constructor(){this.flickeringTimeout=t0(1e3);this.subscriptions=new xs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new xs.ValueSubject([]);this.captionsPrepared$=new xs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,xs.filter)(()=>this.isEnabled()),(0,xs.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:r,value:l},d)=>(o&&!d||(r==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var b4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),$4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),y4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),x4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),w4=M("<div><!></div>"),C4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
277
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ma(t,e){H(e,!0),z(t,C4);let[i,o]=Oe(),n=()=>C(v,"$currentSubtitle$",i),r=()=>C($,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),p=Ee(),f=Et(),v=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,$=p.state.isLive$,w=p.ui.isFullscreen,y=g(()=>!!n().isAuto),S=g(()=>!!r()),T=g(()=>e.playerSize.width*.02),I=g(()=>a()&&!l()||s(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:s(T)),A=j(null);We(()=>{var Q,X,Y;(Q=s(A))==null||Q.setIsAuto(s(y)),(X=s(A))==null||X.setIsLive(s(S)),(Y=s(A))==null||Y.setCaptions(e.captions)});let k=j(ni([[]]));Ot(()=>{B(A,new Du().subscribe(),!0);let Q=s(A).captionsPrepared$.subscribe(X=>{B(k,X,!0)});return()=>{var X;(X=s(A))==null||X.destroy(),Q.unsubscribe()}}),Ot(()=>{if(s(y)){let Q=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Q)}}else u.set(!1)});let E=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=w4();let G;var q=_(R);{var W=Q=>{var X=x4();let Y;var de=_(X),le=_(de);{var ve=me=>{var se=b4(),Le=_(se),oe=_(Le,!0);h(Le),h(se),O(N=>{var He;dt(Le,`font-size: ${(He=s(I))!=null?He:""}px`),$e(oe,N)},[()=>U("subtitles_auto_caption")]),b(me,se)},Ie=(me,se)=>{{var Le=N=>{var He=Ue(),_e=fe(He);wi(_e,17,()=>s(k),ad,(ge,ce)=>{var ue=$4(),pe=_(ue);wi(pe,21,()=>s(ce),({value:ee,timeAppeared:Qe})=>Qe,(ee,Qe)=>{let Xe=()=>s(Qe).value,Z=()=>s(Qe).timeAppeared;var Ae=Ue(),Te=fe(Ae);{var Ye=it=>{var ht=es();O(()=>$e(ht,Xe())),b(it,ht)};V(Te,it=>{(!Z()||Z()<=e.position)&&it(Ye)})}b(ee,Ae)}),h(pe),h(ue),O(()=>{var ee;return dt(pe,`font-size: ${(ee=s(I))!=null?ee:""}px`)}),b(ge,ue)}),b(N,He)},oe=N=>{var He=Ue(),_e=fe(He);wi(_e,17,()=>e.captions,({value:ge})=>ge,(ge,ce)=>{let ue=()=>s(ce).value;var pe=y4(),ee=_(pe),Qe=_(ee,!0);h(ee),h(pe),O(()=>{var Xe;dt(ee,`font-size: ${(Xe=s(I))!=null?Xe:""}px`),$e(Qe,ue())}),b(ge,pe)}),b(N,He)};V(me,N=>{var He;s(y)&&((He=s(k))!=null&&He.length)?N(Le):N(oe,!1)},se)}};V(le,me=>{s(y)&&d()?me(ve):me(Ie,!1)})}h(de),h(X),O(me=>{var se;Y=ie(X,1,"subtitles-caption svelte-c2x749",null,Y,me),dt(X,`--subtitles-caption-margin: ${(se=s(E))!=null?se:""}%`)},[()=>({mobile:a()})]),b(Q,X)};V(q,Q=>{var X;(e.captions.length||(X=s(k))!=null&&X.length)&&Q(W)})}h(R),O(Q=>G=ie(R,1,"subtitles-container svelte-c2x749",null,G,Q),[()=>({shifted:e.shifted,auto:s(y)&&!s(S)&&!d()})]),b(t,R),F(),o()}var S4=M('<div class="text svelte-raurnb"> </div>'),T4=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>'),E4={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function Jd(t,e){H(e,!0),z(t,E4);let i=Et();var o=T4();let n;var r=P(_(o),2);{var l=d=>{var a=S4(),p=_(a);h(a),O(()=>{var f;return $e(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,a)};V(r,d=>{e.chromecastDeviceName&&d(l)})}h(o),O(d=>{n=ie(o,1,"wrapper svelte-raurnb",null,n,d),dt(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),F()}var I4=Ce('<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=Me(e,["$$slots","$$events","$$legacy","children"]);var o=I4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var k4=M('<div class="container svelte-13zpvm8"><!></div>'),P4={hash:"svelte-13zpvm8",code:".container.svelte-13zpvm8 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}"};function La(t){z(t,P4);var e=k4(),i=_(e);Ym(i,{}),h(e),b(t,e)}var A4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),M4=M("<div><!></div>"),L4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
276
+ }`};function Qm(t,e){D(e,!0),z(t,f4);let[i,o]=Oe(),n=()=>C(e.data,"$data",i),l=Ee().ui.t,d=g(()=>!n()),a=g(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),p=g(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=g(()=>{var S;return(S=n())==null?void 0:S.type}),v=g(()=>{var S,T;return(S=n())!=null&&S.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=p4();let $;var w=_(u);{var y=S=>{var T=u4(),I=fe(T),A=_(I);{var k=de=>{let ue=g(()=>s(f)==="FORWARD_SEEK");Hm(de,{get reversed(){return s(ue)}})};V(A,de=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(f))&&de(k)})}var E=P(A,2);{var R=de=>{$s(de,{})};V(E,de=>{s(f)==="PAUSE"&&de(R)})}var Q=P(E,2);{var q=de=>{Or(de,{})};V(Q,de=>{s(f)==="PLAY"&&de(q)})}var W=P(Q,2);{var G=de=>{qd(de,{})};V(W,de=>{s(f)==="REPLAY"&&de(G)})}var X=P(W,2);{var Y=de=>{Ou(de,{isOff:!0})};V(X,de=>{s(f)==="SUBTITLES_OFF"&&de(Y)})}var ce=P(X,2);{var le=de=>{Ou(de,{})};V(ce,de=>{s(f)==="SUBTITLES_ON"&&de(le)})}var me=P(ce,2);{var ke=de=>{let ue=g(()=>s(f)==="RATE_UP");Wm(de,{get reversed(){return s(ue)}})};V(me,de=>{["RATE_DOWN","RATE_UP"].includes(s(f))&&de(ke)})}var ve=P(me,2);{var ae=de=>{let ue=g(()=>s(f)==="EPISODE_NEXT");Km(de,{get reversed(){return s(ue)}})};V(ve,de=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(f))&&de(ae)})}var Ve=P(ve,2);{var ne=de=>{Hs(de,{volume:0})};V(Ve,de=>{s(f)==="MUTE"&&de(ne)})}var N=P(Ve,2);{var He=de=>{Hs(de,{volume:1})};V(N,de=>{s(f)==="VOLUME"&&de(He)})}h(I);var _e=P(I,2);{var ge=de=>{var ue=c4(),pe=_(ue,!0);h(ue),O(()=>$e(pe,s(v))),b(de,ue)};V(_e,de=>{s(v)&&de(ge)})}b(S,T)};V(w,S=>{!s(d)&&s(f)&&S(y)})}h(u),O(S=>$=oe(u,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:s(d),"hot-key-helpers-container--left":s(a),"hot-key-helpers-container--right":s(p)})]),b(t,u),H(),o()}var m4=Ce('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function Gm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=m4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var v4=Ce('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function jm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=v4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}function zs(t,e){D(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),r=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let v="";return s(r)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Fe(),a=fe(d);{var p=v=>{let u=g(()=>s(r)?"chevron-icon--down":"chevron-icon--up");Gm(v,{get style(){return s(l)},get"data-testid"(){return s(u)}})},f=v=>{let u=g(()=>s(r)?"chevron-icon--right":"chevron-icon--left");jm(v,{get style(){return s(l)},get"data-testid"(){return s(u)}})};V(a,v=>{s(n)?v(p):v(f,!1)})}b(t,d),H()}var g4=(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}},h4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},_4=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>'),b4={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function Xd(t,e){D(e,!0),z(t,b4);let i=m(e,"isShifted",3,!1),o=Ee(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=F("aria_label_spherical_control");var v=_4();let u;v.__keydown=[g4,n,r,l,a,d],v.__keyup=[h4,n,p];var $=_(v),w=_($),y=_(w);y.__mousedown=r,y.__mouseup=p;var S=_(y);zs(S,{direction:"up",useBtnColor:!0}),h(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=p;var I=_(T);zs(I,{direction:"up",useBtnColor:!0}),h(T),h(w);var A=P(w,2),k=_(A);k.__mousedown=a,k.__mouseup=p;var E=_(k);zs(E,{direction:"up",useBtnColor:!0}),h(k);var R=P(k,2);R.__mousedown=l,R.__mouseup=p;var Q=_(R);zs(Q,{direction:"up",useBtnColor:!0}),h(R),h(A),h($),h(v),O(q=>{u=oe(v,1,"immersive-controls svelte-1yzc86r",null,u,q),De(v,"aria-label",f)},[()=>({"m-shifted":i()})]),Tt("mouseleave",y,p),Tt("mouseleave",T,p),Tt("mouseleave",k,p),Tt("mouseleave",R,p),b(t,v),H()}ut(["keydown","keyup","mousedown","mouseup"]);var xs=require("@vkontakte/videoplayer-shared/es2018");var i0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Du=class{constructor(){this.flickeringTimeout=i0(1e3);this.subscriptions=new xs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new xs.ValueSubject([]);this.captionsPrepared$=new xs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,xs.filter)(()=>this.isEnabled()),(0,xs.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:r,value:l},d)=>(o&&!d||(r==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var $4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),y4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),x4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),w4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),C4=M("<div><!></div>"),S4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
277
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ma(t,e){D(e,!0),z(t,S4);let[i,o]=Oe(),n=()=>C(v,"$currentSubtitle$",i),r=()=>C($,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),p=Ee(),f=Pt(),v=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,$=p.state.isLive$,w=p.ui.isFullscreen,y=g(()=>!!n().isAuto),S=g(()=>!!r()),T=g(()=>e.playerSize.width*.02),I=g(()=>a()&&!l()||s(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:s(T)),A=j(null);Ue(()=>{var G,X,Y;(G=s(A))==null||G.setIsAuto(s(y)),(X=s(A))==null||X.setIsLive(s(S)),(Y=s(A))==null||Y.setCaptions(e.captions)});let k=j(oi([[]]));Ot(()=>{B(A,new Du().subscribe(),!0);let G=s(A).captionsPrepared$.subscribe(X=>{B(k,X,!0)});return()=>{var X;(X=s(A))==null||X.destroy(),G.unsubscribe()}}),Ot(()=>{if(s(y)){let G=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(G)}}else u.set(!1)});let E=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=C4();let Q;var q=_(R);{var W=G=>{var X=w4();let Y;var ce=_(X),le=_(ce);{var me=ve=>{var ae=$4(),Ve=_(ae),ne=_(Ve,!0);h(Ve),h(ae),O(N=>{var He;dt(Ve,`font-size: ${(He=s(I))!=null?He:""}px`),$e(ne,N)},[()=>F("subtitles_auto_caption")]),b(ve,ae)},ke=(ve,ae)=>{{var Ve=N=>{var He=Fe(),_e=fe(He);Ci(_e,17,()=>s(k),ad,(ge,de)=>{var ue=y4(),pe=_(ue);Ci(pe,21,()=>s(de),({value:te,timeAppeared:qe})=>qe,(te,qe)=>{let Xe=()=>s(qe).value,Z=()=>s(qe).timeAppeared;var Ae=Fe(),Te=fe(Ae);{var Ye=it=>{var bt=es();O(()=>$e(bt,Xe())),b(it,bt)};V(Te,it=>{(!Z()||Z()<=e.position)&&it(Ye)})}b(te,Ae)}),h(pe),h(ue),O(()=>{var te;return dt(pe,`font-size: ${(te=s(I))!=null?te:""}px`)}),b(ge,ue)}),b(N,He)},ne=N=>{var He=Fe(),_e=fe(He);Ci(_e,17,()=>e.captions,({value:ge})=>ge,(ge,de)=>{let ue=()=>s(de).value;var pe=x4(),te=_(pe),qe=_(te,!0);h(te),h(pe),O(()=>{var Xe;dt(te,`font-size: ${(Xe=s(I))!=null?Xe:""}px`),$e(qe,ue())}),b(ge,pe)}),b(N,He)};V(ve,N=>{var He;s(y)&&((He=s(k))!=null&&He.length)?N(Ve):N(ne,!1)},ae)}};V(le,ve=>{s(y)&&d()?ve(me):ve(ke,!1)})}h(ce),h(X),O(ve=>{var ae;Y=oe(X,1,"subtitles-caption svelte-c2x749",null,Y,ve),dt(X,`--subtitles-caption-margin: ${(ae=s(E))!=null?ae:""}%`)},[()=>({mobile:a()})]),b(G,X)};V(q,G=>{var X;(e.captions.length||(X=s(k))!=null&&X.length)&&G(W)})}h(R),O(G=>Q=oe(R,1,"subtitles-container svelte-c2x749",null,Q,G),[()=>({shifted:e.shifted,auto:s(y)&&!s(S)&&!d()})]),b(t,R),H(),o()}var T4=M('<div class="text svelte-raurnb"> </div>'),E4=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>'),I4={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function Jd(t,e){D(e,!0),z(t,I4);let i=Pt();var o=E4();let n;var r=P(_(o),2);{var l=d=>{var a=T4(),p=_(a);h(a),O(()=>{var f;return $e(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,a)};V(r,d=>{e.chromecastDeviceName&&d(l)})}h(o),O(d=>{n=oe(o,1,"wrapper svelte-raurnb",null,n,d),dt(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 k4=Ce('<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=k4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var P4=M('<div class="container svelte-13zpvm8"><!></div>'),A4={hash:"svelte-13zpvm8",code:".container.svelte-13zpvm8 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}"};function La(t){z(t,A4);var e=P4(),i=_(e);Ym(i,{}),h(e),b(t,e)}var M4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),L4=M("<div><!></div>"),V4={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 Va(t,e){H(e,!0),z(t,L4);let i=m(e,"iconVisible",3,!0),o=Ee(),n=Et(),r=o.ui.startedByKeyboard$,l=U("tooltip_play"),d=$=>{var y;let w=$.code;["Enter","Space"].includes(w)&&($.stopPropagation(),$.preventDefault(),r.set(!0),(y=e.startVideo)==null||y.call(e))},a=$=>{var w;$.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=M4();let f;p.__click=a;var v=_(p);{var u=$=>{var w=A4();w.__keydown=d;var y=P(_(w),2);Or(y,{}),h(w),O(()=>De(w,"aria-label",l)),b($,w)};V(v,$=>{i()&&$(u)})}return h(p),O($=>{f=ie(p,1,"container svelte-1ciju45",null,f,$),dt(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,p),F({handlePressKey:d,handleClick:a})}pt(["click","keydown"]);var V4=M('<div data-testid="video_title"><span> </span></div>'),R4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
279
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Va(t,e){D(e,!0),z(t,V4);let i=m(e,"iconVisible",3,!0),o=Ee(),n=Pt(),r=o.ui.startedByKeyboard$,l=F("tooltip_play"),d=$=>{var y;let w=$.code;["Enter","Space"].includes(w)&&($.stopPropagation(),$.preventDefault(),r.set(!0),(y=e.startVideo)==null||y.call(e))},a=$=>{var w;$.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=L4();let f;p.__click=a;var v=_(p);{var u=$=>{var w=M4();w.__keydown=d;var y=P(_(w),2);Or(y,{}),h(w),O(()=>De(w,"aria-label",l)),b($,w)};V(v,$=>{i()&&$(u)})}return h(p),O($=>{f=oe(p,1,"container svelte-1ciju45",null,f,$),dt(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,p),H({handlePressKey:d,handleClick:a})}ut(["click","keydown"]);var R4=M('<div data-testid="video_title"><span> </span></div>'),N4={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 Zm(t,e){H(e,!0),z(t,R4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),r=j(void 0);Ot(()=>{var v;requestAnimationFrame(()=>{var u;(u=e.onVisibilityChanged)==null||u.call(e,!0)});function f(u){var $;u.propertyName==="transform"&&(($=e.onVisibilityChanged)==null||$.call(e,!o()))}return(v=s(r))==null||v.addEventListener("transitionend",f),()=>{var u;return(u=s(r))==null?void 0:u.removeEventListener("transitionend",f)}});var l=V4();let d;var a=_(l),p=_(a,!0);h(a),st(a,f=>n(f),()=>n()),h(l),st(l,f=>B(r,f),()=>s(r)),O(f=>{d=ie(l,1,"title svelte-14hk510",null,d,f),$e(p,i())},[()=>({hidden:o()})]),b(t,l),F()}var N4=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),B4=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),O4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),D4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),H4=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),F4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function Xm(t,e){H(e,!0),z(t,F4);let i=j(""),o=j(""),n=j(""),r=j(""),l,d=A=>String(A).padStart(2,"0"),a=A=>{let k=Math.floor(A/86400);k&&(A-=k*86400,B(i,d(k),!0));let E=Math.floor(A/3600);B(o,d(E),!0);let R=Math.floor(A/60)%60;B(n,d(R),!0);let G=A%60;B(r,d(G),!0)},p=()=>{let A=Math.floor(Date.now()/1e3),k=e.startTime-A;a(k),k>=1?l=requestAnimationFrame(p):e.onTimerOver()};Ot(()=>{l=requestAnimationFrame(p)}),On(()=>{cancelAnimationFrame(l)});var f=H4(),v=_(f);{var u=A=>{var k=N4(),E=fe(k),R=_(E),G=_(R,!0);h(R);var q=P(R,2),W=_(q,!0);h(q),h(E);var Q=P(E,2),X=_(Q,!0);h(Q),O((Y,de)=>{$e(G,s(i)),$e(W,Y),$e(X,de)},[()=>U("waiting_live_day_value"),()=>U("waiting_live_colon")]),b(A,k)};V(v,A=>{s(i)&&A(u)})}var $=P(v,2);{var w=A=>{var k=B4(),E=fe(k),R=_(E),G=_(R,!0);h(R);var q=P(R,2),W=_(q,!0);h(q),h(E);var Q=P(E,2),X=_(Q,!0);h(Q),O((Y,de)=>{$e(G,s(o)),$e(W,Y),$e(X,de)},[()=>U("waiting_live_hour_value"),()=>U("waiting_live_colon")]),b(A,k)};V($,A=>{s(o)&&A(w)})}var y=P($,2);{var S=A=>{var k=O4(),E=fe(k),R=_(E),G=_(R,!0);h(R);var q=P(R,2),W=_(q,!0);h(q),h(E);var Q=P(E,2),X=_(Q,!0);h(Q),O((Y,de)=>{$e(G,s(n)),$e(W,Y),$e(X,de)},[()=>U("waiting_live_minute_value"),()=>U("waiting_live_colon")]),b(A,k)};V(y,A=>{s(n)&&A(S)})}var T=P(y,2);{var I=A=>{var k=D4(),E=_(k),R=_(E,!0);h(E);var G=P(E,2),q=_(G,!0);h(G),h(k),O(W=>{$e(R,s(r)),$e(q,W)},[()=>U("waiting_live_second_value")]),b(A,k)};V(T,A=>{s(r)&&A(I)})}h(f),b(t,f),F()}var U4=Ce('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function Jm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=U4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(4),h(o),b(t,o)}var z4=M('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),W4=M('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),q4=M('<div class="waiting-container svelte-15pewff"><!></div>'),K4={hash:"svelte-15pewff",code:".waiting-container.svelte-15pewff {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-15pewff::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.upcoming.svelte-15pewff {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.upcoming-icon.svelte-15pewff {width:20%;max-width:200px;margin-bottom:20px;}.upcoming__title.svelte-15pewff {font-size:14px;line-height:1.2;font-weight:400;}.waiting-timer.svelte-15pewff {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-15pewff {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-15pewff {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function ec(t,e){H(e,!0),z(t,K4);let i=j(!1);We(()=>{B(i,e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3),!0)});var o=q4(),n=_(o);{var r=d=>{var a=z4(),p=_(a),f=_(p);Jm(f,{}),h(p);var v=P(p,2),u=_(v,!0);h(v),h(a),O($=>$e(u,$),[()=>U("waiting_live_upcoming_title")]),b(d,a)},l=d=>{var a=W4(),p=_(a),f=_(p,!0);h(p);var v=P(p,2);let u=g(()=>e.startTime||0);Xm(v,{get startTime(){return s(u)},onTimerOver:()=>B(i,!0)}),h(a),O($=>$e(f,$),[()=>U("waiting_live_timer_title")]),b(d,a)};V(n,d=>{s(i)?d(r):d(l,!1)})}h(o),O(()=>dt(o,`background-image: url(${s(i)?"":e.thumbUrl})`)),b(t,o),F()}var Q4=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),G4={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function Ra(t,e){H(e,!0),z(t,G4);let i=m(e,"thumbUrl",3,""),o={recover:U("waiting_live_recover_title"),record:U("waiting_record_title")},n=g(()=>o[e.kind]||"");var r=Q4(),l=_(r),d=_(l);xa(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),p=_(a,!0);h(a),h(l),h(r),O(()=>{dt(r,`background-image: url('${i()}')`),$e(p,s(n))}),b(t,r),F()}var j4=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function ev(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=j4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var Y4=M('<div class="select-icon svelte-124aexk"><!></div>'),Z4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function tc(t){z(t,Z4);var e=Y4(),i=_(e);ev(i,{}),h(e),b(t,e)}var X4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},J4=(t,e)=>{bl(t,()=>e.item.selectItem(e.item.value))},e3=M("<p> </p>"),t3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),i3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),o3={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
286
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Zm(t,e){D(e,!0),z(t,N4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),r=j(void 0);Ot(()=>{var v;requestAnimationFrame(()=>{var u;(u=e.onVisibilityChanged)==null||u.call(e,!0)});function f(u){var $;u.propertyName==="transform"&&(($=e.onVisibilityChanged)==null||$.call(e,!o()))}return(v=s(r))==null||v.addEventListener("transitionend",f),()=>{var u;return(u=s(r))==null?void 0:u.removeEventListener("transitionend",f)}});var l=R4();let d;var a=_(l),p=_(a,!0);h(a),rt(a,f=>n(f),()=>n()),h(l),rt(l,f=>B(r,f),()=>s(r)),O(f=>{d=oe(l,1,"title svelte-14hk510",null,d,f),$e(p,i())},[()=>({hidden:o()})]),b(t,l),H()}var B4=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),O4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),D4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),H4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),F4=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),U4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function Xm(t,e){D(e,!0),z(t,U4);let i=j(""),o=j(""),n=j(""),r=j(""),l,d=A=>String(A).padStart(2,"0"),a=A=>{let k=Math.floor(A/86400);k&&(A-=k*86400,B(i,d(k),!0));let E=Math.floor(A/3600);B(o,d(E),!0);let R=Math.floor(A/60)%60;B(n,d(R),!0);let Q=A%60;B(r,d(Q),!0)},p=()=>{let A=Math.floor(Date.now()/1e3),k=e.startTime-A;a(k),k>=1?l=requestAnimationFrame(p):e.onTimerOver()};Ot(()=>{l=requestAnimationFrame(p)}),On(()=>{cancelAnimationFrame(l)});var f=F4(),v=_(f);{var u=A=>{var k=B4(),E=fe(k),R=_(E),Q=_(R,!0);h(R);var q=P(R,2),W=_(q,!0);h(q),h(E);var G=P(E,2),X=_(G,!0);h(G),O((Y,ce)=>{$e(Q,s(i)),$e(W,Y),$e(X,ce)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(A,k)};V(v,A=>{s(i)&&A(u)})}var $=P(v,2);{var w=A=>{var k=O4(),E=fe(k),R=_(E),Q=_(R,!0);h(R);var q=P(R,2),W=_(q,!0);h(q),h(E);var G=P(E,2),X=_(G,!0);h(G),O((Y,ce)=>{$e(Q,s(o)),$e(W,Y),$e(X,ce)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(A,k)};V($,A=>{s(o)&&A(w)})}var y=P($,2);{var S=A=>{var k=D4(),E=fe(k),R=_(E),Q=_(R,!0);h(R);var q=P(R,2),W=_(q,!0);h(q),h(E);var G=P(E,2),X=_(G,!0);h(G),O((Y,ce)=>{$e(Q,s(n)),$e(W,Y),$e(X,ce)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(A,k)};V(y,A=>{s(n)&&A(S)})}var T=P(y,2);{var I=A=>{var k=H4(),E=_(k),R=_(E,!0);h(E);var Q=P(E,2),q=_(Q,!0);h(Q),h(k),O(W=>{$e(R,s(r)),$e(q,W)},[()=>F("waiting_live_second_value")]),b(A,k)};V(T,A=>{s(r)&&A(I)})}h(f),b(t,f),H()}var z4=Ce('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function Jm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=z4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(4),h(o),b(t,o)}var W4=M('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),q4=M('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),K4=M('<div class="waiting-container svelte-15pewff"><!></div>'),Q4={hash:"svelte-15pewff",code:".waiting-container.svelte-15pewff {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-15pewff::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.upcoming.svelte-15pewff {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.upcoming-icon.svelte-15pewff {width:20%;max-width:200px;margin-bottom:20px;}.upcoming__title.svelte-15pewff {font-size:14px;line-height:1.2;font-weight:400;}.waiting-timer.svelte-15pewff {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-15pewff {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-15pewff {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function ec(t,e){D(e,!0),z(t,Q4);let i=j(!1);Ue(()=>{B(i,e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3),!0)});var o=K4(),n=_(o);{var r=d=>{var a=W4(),p=_(a),f=_(p);Jm(f,{}),h(p);var v=P(p,2),u=_(v,!0);h(v),h(a),O($=>$e(u,$),[()=>F("waiting_live_upcoming_title")]),b(d,a)},l=d=>{var a=q4(),p=_(a),f=_(p,!0);h(p);var v=P(p,2);let u=g(()=>e.startTime||0);Xm(v,{get startTime(){return s(u)},onTimerOver:()=>B(i,!0)}),h(a),O($=>$e(f,$),[()=>F("waiting_live_timer_title")]),b(d,a)};V(n,d=>{s(i)?d(r):d(l,!1)})}h(o),O(()=>dt(o,`background-image: url(${s(i)?"":e.thumbUrl})`)),b(t,o),H()}var G4=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),j4={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function Ra(t,e){D(e,!0),z(t,j4);let i=m(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=g(()=>o[e.kind]||"");var r=G4(),l=_(r),d=_(l);xa(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),p=_(a,!0);h(a),h(l),h(r),O(()=>{dt(r,`background-image: url('${i()}')`),$e(p,s(n))}),b(t,r),H()}var Y4=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function ev(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Y4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var Z4=M('<div class="select-icon svelte-124aexk"><!></div>'),X4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function tc(t){z(t,X4);var e=Z4(),i=_(e);ev(i,{}),h(e),b(t,e)}var J4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},e3=(t,e)=>{bl(t,()=>e.item.selectItem(e.item.value))},t3=M("<p> </p>"),i3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),o3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),n3={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 tv(t,e){H(e,!0),z(t,o3);let i=m(e,"isMobile",3,!1);var o=i3();let n;o.__click=[X4,e],o.__keydown=[J4,e];var r=_(o);{var l=w=>{tc(w,{})};V(r,w=>{e.item.selected&&w(l)})}var d=P(r,2);let a;var p=_(d);{var f=w=>{var y=Ue(),S=fe(y);Ci(S,()=>e.item.valueComponent,(T,I)=>{I(T,gs(()=>{var A;return(A=e.item.valueComponentParams)!=null?A:{}}))}),b(w,y)},v=w=>{var y=e3();let S;var T=_(y,!0);h(y),O(I=>{var A;S=ie(y,1,"label svelte-1t7rx2m",null,S,I),$e(T,(A=e.item.label)!=null?A:e.item.value)},[()=>({mobile:i()})]),b(w,y)};V(p,w=>{e.item.valueComponent?w(f):w(v,!1)})}var u=P(p,2);{var $=w=>{var y=t3(),S=_(y,!0);h(y),O(()=>$e(S,e.item.sublabel)),b(w,y)};V(u,w=>{e.item.sublabel&&w($)})}h(d),h(o),O((w,y,S)=>{n=ie(o,1,"item",null,n,w),De(o,"data-value",e.item.value),De(o,"aria-label",y),De(o,"data-testid",e.item.dataTestid),a=ie(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),De(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),F()}pt(["click","keydown"]);var n3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function iv(t,e){H(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),r=g(()=>y=>bu(y,s(n)));var l=n3();let d;l.__click=function(...y){var S;(S=s(n))==null||S.apply(this,y)},l.__keydown=function(...y){var S;(S=s(r))==null||S.apply(this,y)};var a=_(l);{var p=y=>{tc(y,{})};V(a,y=>{e.item.selected&&y(p)})}var f=P(a,2);let v;var u=_(f);{var $=y=>{var S=Ue();let T=g(()=>e.item.valueComponent);var I=fe(S);Ci(I,()=>s(T),(A,k)=>{k(A,gs(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(y,S)},w=y=>{var S=es();O(()=>$e(S,e.item.label)),b(y,S)};V(u,y=>{e.item.valueComponent?y($):y(w,!1)})}h(f),h(l),st(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),O((y,S)=>{var T;d=ie(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=ie(f,1,"menu-item-value",null,v,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),F()}pt(["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 s3=(t,e)=>{w1(t,e.returnFromSubMenu,e.closeSettingsMenu)},a3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},l3=(t,e)=>{Sd(t)&&(vr(t),e.returnFromSubMenu())},d3=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>'),c3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
292
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function tv(t,e){D(e,!0),z(t,n3);let i=m(e,"isMobile",3,!1);var o=o3();let n;o.__click=[J4,e],o.__keydown=[e3,e];var r=_(o);{var l=w=>{tc(w,{})};V(r,w=>{e.item.selected&&w(l)})}var d=P(r,2);let a;var p=_(d);{var f=w=>{var y=Fe(),S=fe(y);Si(S,()=>e.item.valueComponent,(T,I)=>{I(T,gs(()=>{var A;return(A=e.item.valueComponentParams)!=null?A:{}}))}),b(w,y)},v=w=>{var y=t3();let S;var T=_(y,!0);h(y),O(I=>{var A;S=oe(y,1,"label svelte-1t7rx2m",null,S,I),$e(T,(A=e.item.label)!=null?A:e.item.value)},[()=>({mobile:i()})]),b(w,y)};V(p,w=>{e.item.valueComponent?w(f):w(v,!1)})}var u=P(p,2);{var $=w=>{var y=i3(),S=_(y,!0);h(y),O(()=>$e(S,e.item.sublabel)),b(w,y)};V(u,w=>{e.item.sublabel&&w($)})}h(d),h(o),O((w,y,S)=>{n=oe(o,1,"item",null,n,w),De(o,"data-value",e.item.value),De(o,"aria-label",y),De(o,"data-testid",e.item.dataTestid),a=oe(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),De(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),H()}ut(["click","keydown"]);var r3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function iv(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),r=g(()=>y=>bu(y,s(n)));var l=r3();let d;l.__click=function(...y){var S;(S=s(n))==null||S.apply(this,y)},l.__keydown=function(...y){var S;(S=s(r))==null||S.apply(this,y)};var a=_(l);{var p=y=>{tc(y,{})};V(a,y=>{e.item.selected&&y(p)})}var f=P(a,2);let v;var u=_(f);{var $=y=>{var S=Fe();let T=g(()=>e.item.valueComponent);var I=fe(S);Si(I,()=>s(T),(A,k)=>{k(A,gs(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(y,S)},w=y=>{var S=es();O(()=>$e(S,e.item.label)),b(y,S)};V(u,y=>{e.item.valueComponent?y($):y(w,!1)})}h(f),h(l),rt(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),O((y,S)=>{var T;d=oe(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=oe(f,1,"menu-item-value",null,v,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),H()}ut(["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 a3=(t,e)=>{C1(t,e.returnFromSubMenu,e.closeSettingsMenu)},l3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},d3=(t,e)=>{Sd(t)&&(vr(t),e.returnFromSubMenu())},c3=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>'),u3={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.`},c1=rb;var hs=new Map;hs.set(pl.Interf
299
299
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
300
300
  1px
301
301
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
302
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function nv(t,e){H(e,!0),z(t,c3);let[i,o]=Oe(),n=()=>C(v,"$isFullscreen",i),r=()=>C(u,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>U("aria_label_submenu_back")),p=m(e,"listRef",15);Ot(()=>{let Y=e.items.findIndex(de=>de.selected);p().children[Y+1].focus()});let f=Ee(),v=f.ui.isFullscreen,u=f.ui.playerSize,$=j(void 0),w=j(0),y=j(0),S=g(()=>l()&&n()?`max-height: ${Math.round(r().height*.6)}px`:l()?"":`max-height: ${r().height-32-s(y)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,s(w)));var I=d3();let A;var k=_(I);let E;k.__keydown=[s3,e];var R=_(k);let G;R.__click=[a3,e],R.__keydown=[l3,e];var q=_(R);zs(q,{direction:"left"});var W=P(q,2),Q=_(W,!0);h(W),h(R),st(R,Y=>B($,Y),()=>s($));var X=P(R,2);wi(X,17,()=>e.items,ad,(Y,de)=>{var le=Ue(),ve=fe(le);{var Ie=se=>{tv(se,{get item(){return s(de)},get isMobile(){return l()}})},me=(se,Le)=>{{var oe=N=>{iv(N,{get isMobile(){return l()},get item(){return s(de)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(se,N=>{s(de).type==="OPEN_SUB_MENU"&&N(oe)},Le)}};V(ve,se=>{s(de).type==="SELECT_VALUE"?se(Ie):se(me,!1)})}b(Y,le)}),h(k),st(k,Y=>p(Y),()=>p()),h(I),O((Y,de,le)=>{A=ie(I,1,"sub-menu menu svelte-7dfsuh",null,A,Y),De(I,"data-testid",`sub-menu-${e.id}`),dt(I,`min-width: ${s(T)}px`),E=ie(k,1,"items svelte-7dfsuh",null,E,de),dt(k,s(S)),G=ie(R,1,"item header back svelte-7dfsuh",null,G,le),De(R,"aria-label",a()),$e(Q,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),is(R,"clientWidth",Y=>B(w,Y)),is(R,"clientHeight",Y=>B(y,Y)),b(t,I),F(),o()}pt(["keydown","click"]);var o0=require("@vkontakte/videoplayer-shared/es2018");var u3=(t,e)=>bu(t,e()),p3=(t,e)=>{t.stopPropagation(),e()()},f3=M('<div class="value svelte-1ikfjte"> </div>'),m3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),v3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function rv(t,e){H(e,!0),z(t,v3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,o0.noop),n=m(e,"valueComponent",3,void 0),r=m(e,"ref",15);var l=m3();let d;l.__click=[p3,o],l.__keydown=[u3,o];var a=_(l),p=_(a);{var f=T=>{ka(T,{get icon(){return e.icon}})},v=T=>{var I=Ue();let A=g(()=>e.icon);var k=fe(I);Ci(k,()=>s(A),(E,R)=>{R(E,{})}),b(T,I)};V(p,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}h(a);var u=P(a,2),$=_(u,!0);h(u);var w=P(u,2);{var y=T=>{var I=Ue();let A=g(n);var k=fe(I);Ci(k,()=>s(A),(E,R)=>{R(E,{})}),b(T,I)},S=T=>{var I=f3(),A=_(I,!0);h(I),O(()=>$e(A,e.value)),b(T,I)};V(w,T=>{n()?T(y):T(S,!1)})}h(l),st(l,T=>r(T),()=>r()),O(T=>{d=ie(l,1,"item",null,d,T),De(l,"aria-label",e.ariaLabel),De(l,"data-testid",e.id),$e($,e.label)},[()=>({mobile:i()})]),b(t,l),F()}pt(["click","keydown"]);var sv=require("@vkontakte/videoplayer-shared/es2018");var g3=(t,e)=>{bl(t,()=>e())},h3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),_3=M('<img class="icon" aria-hidden="true"/>'),b3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),$3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function av(t,e){H(e,!0),z(t,$3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,sv.noop),n=m(e,"closeSettings",3,sv.noop),r=j(!1),l=()=>{B(r,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=b3();let p;a.__click=d,a.__keydown=[g3,d];var f=_(a),v=_(f);{var u=S=>{var T=Ue(),I=fe(T);{var A=E=>{var R=h3();b(E,R)},k=E=>{var R=_3();O(()=>De(R,"src",e.icon)),Ct("error",R,l),ra(R),b(E,R)};V(I,E=>{s(r)?E(A):E(k,!1)})}b(S,T)},$=S=>{var T=Ue();let I=g(()=>e.icon);var A=fe(T);Ci(A,()=>s(I),(k,E)=>{E(k,{})}),b(S,T)};V(v,S=>{typeof e.icon=="string"?S(u):S($,!1)})}h(f);var w=P(f,2),y=_(w,!0);h(w),h(a),O(S=>{var T;p=ie(a,1,"item",null,p,S),De(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),De(a,"data-testid",e.id),$e(y,e.label)},[()=>({mobile:i()})]),b(t,a),F()}pt(["click","keydown"]);var n0=require("@vkontakte/videoplayer-shared/es2018");var y3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),x3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function lv(t,e){z(t,x3);let i=m(e,"enabled",3,!1);var o=y3(),n=_(o);let r;we(2),h(o),O(l=>r=ie(n,1,"toggle svelte-17wbjko",null,r,l),[()=>({on:i()})]),b(t,o)}var w3=(t,e,i)=>{C1(t,e(),o=>i()(o))},C3=(t,e,i)=>{t.stopPropagation(),e()(!i())},S3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),T3=M('<li role="menuitem" tabindex="0"><!></li>');function dv(t,e){H(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,n0.noop),n=m(e,"enabled",3,!1),r=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=T3();let a;d.__click=[C3,o,n],d.__keydown=[w3,n,o];var p=_(d);Ca(p,{get content(){return r()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var u=S3();let $;var w=_(u),y=_(w);{var S=E=>{ka(E,{get icon(){return e.icon}})},T=E=>{var R=Ue();let G=g(()=>e.icon);var q=fe(R);Ci(q,()=>s(G),(W,Q)=>{Q(W,{})}),b(E,R)};V(y,E=>{typeof e.icon=="string"?E(S):E(T,!1)})}h(w);var I=P(w,2),A=_(I,!0);h(I);var k=P(I,2);lv(k,{get enabled(){return n()}}),h(u),O(E=>{$=ie(u,1,"switch-wrapper",null,$,E),$e(A,e.label)},[()=>({mobile:i()})]),b(f,u)},$$slots:{default:!0}}),h(d),O(f=>{var v;a=ie(d,1,"item switch-item",null,a,f),De(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),F()}pt(["click","keydown"]);var oc=require("@vkontakte/videoplayer-shared/es2018");var r0=()=>{let t=j(ni([])),e=g(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{B(t,s(t).slice(0,-1),!0)},popAllSubMenus:()=>{B(t,[],!0)}}};var E3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),I3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),k3={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function Na(t,e){H(e,!0),z(t,k3);let i=m(e,"isSubCase",3,!1),o=g(()=>wu(e.quality));var n=I3(),r=_(n);let l;var d=_(r,!0);h(r);var a=P(r,2);{var p=f=>{var v=E3();let u=g(()=>s(o));var $=_(v);Ci($,()=>s(u),(w,y)=>{y(w,{})}),h(v),b(f,v)};V(a,f=>{s(o)&&!e.isMobile&&f(p)})}h(n),O(f=>{l=ie(r,1,"svelte-t2qk8t",null,l,f),$e(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),F()}var d0=require("@vkontakte/videoplayer-shared/es2018");var cv=require("@vkontakte/videoplayer-core/es2018");var s0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},a0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=s0({quality:t,availableQualities:e});return i?t===cv.VideoQuality.INVARIANT?U("auto_quality_invariant"):U("auto_quality",{actual:o}):o},l0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===cv.VideoQuality.INVARIANT?i:`${i}${s0({quality:t,availableQualities:e})}`:"...";var P3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),A3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function kl(t,e){H(e,!0),z(t,A3);let[i,o]=Oe(),n=()=>C(a,"$currentQuality$",i),r=()=>C(p,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Ee(),a=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",u=g(()=>e.prefix+(e.selected&&n()!==d0.VideoQuality.INVARIANT?v:"")),$=g(()=>l0({prefix:s(u),quality:n(),availableQualities:r(),onlyPrefix:!e.selected}));var w=P3(),y=_(w);let S=g(()=>e.selected?n():void 0);Na(y,{get quality(){return s(S)},get label(){return s($)},get isMobile(){return l()},isSubCase:!0}),h(w),b(t,w),F(),o()}var M3=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")},L3={br:!0,span:!0},uv=(t,e={})=>{var d,a,p,f,v,u,$;if(!t)return t;let i={...L3,...e},o=Object.keys(i);if(!o.length)return t;let n=M3(o),r=[],l=0;for(let w of t.matchAll(n)){let y=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[S]){r.push(t.slice(l,T)),l=T+y.length;continue}let I=(v=w.groups)!=null&&v.childrenhtml?uv(w.groups.childrenhtml,i):"",A=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>I||""):y;r.push(t.slice(l,T),A),l=T+y.length}return l===0?t:(r.push(t.slice(l)),r.join(""))};function ic(t,e){H(e,!1);let i=m(e,"message",8),o=uv(i());Vr();var n=Ue(),r=fe(n);{var l=d=>{var a=Ue(),p=fe(a);ld(p,()=>o),b(d,a)};V(r,d=>{o&&d(l)})}b(t,n),F()}var V3=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),R3={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function pv(t,e){H(e,!1),z(t,R3),Vr();var i=V3(),o=_(i);let n=Pr(()=>U("quality_applience",{action:`<span>${U("quality_applience_action")}</span>`}));ic(o,{get message(){return s(n)}}),h(i),b(t,i),F()}var u0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:kl,valueComponentParams:{prefix:U("other_quality"),selected:o},children:"QUALITY"}},fv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:U("auto_quality_limit"),valueComponent:e?kl:void 0,valueComponentParams:{prefix:U("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),p0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:pv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),mv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:U("high_quality"),valueComponent:t?kl:void 0,valueComponentParams:{prefix:U("high_quality"),selected:i},sublabel:U("high_quality_description")}),vv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:U("traffic_saving_quality"),valueComponent:t?kl:void 0,valueComponentParams:{prefix:U("traffic_saving_quality"),selected:i},sublabel:U("traffic_saving_quality_description")});var Hu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Fu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Au(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return U("audio_stream_display_language_label",{language:n,label:o});{let a=Hu(t,d);return U("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Hu(t,d);return U("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=Hu(t,d);return U("audio_stream_display_language_index",{language:n,index:a})}}let r=Hu(t,e);return U("audio_stream_display_unknown",{index:r})};var N3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,r=[];return i&&r.push({handler:fv,selected:e&&!o&&!n||!1}),r.push({handler:vv,selected:o},{handler:mv,selected:n}),{title:U("submenu_quality"),id:"QUALITY_DETAILS",items:[p0(t),...r.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),u0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:U("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Na,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:r=>e(r,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:U("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:fv,selected:((i=lu())==null?void 0:i.type)==="auto_quality"},{handler:vv,selected:((o=lu())==null?void 0:o.type)==="traffic_saving"},{handler:mv,selected:((n=lu())==null?void 0:n.type)==="high_quality"}].map(({handler:r,selected:l})=>r({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:U("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Fu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:U("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:U("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Lu?"sub_off":void 0}))})},f0=({subMenuId:t,context:e})=>t?[N3[t](e)]:[];var B3=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function gv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=B3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var O3=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function hv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=O3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var D3=Ce('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function _v(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=D3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var H3=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function bv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=H3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var F3=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function $v(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=F3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var U3=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function Uu(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=U3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var z3=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function yv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=z3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var W3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),q3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function xv(t,e){H(e,!0),z(t,q3);let[i,o]=Oe(),n=()=>C(p,"$currentQuality$",i),r=()=>C(f,"$availableQualities$",i),l=()=>C(v,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),a=Ee(),p=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,u=a.ui.isMobile,$=g(()=>a0({quality:n(),availableQualities:r(),isAutoQualityEnabled:l()}));var w=W3(),y=_(w);Na(y,{get quality(){return n()},get label(){return s($)},get isMobile(){return d()}}),h(w),b(t,w),F(),o()}var Q3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?U("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:U("aria_label_menu_quality",{actual:o}),icon:Md,label:U("menu_quality"),value:e,valueComponent:xv,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:U("aria_label_submenu_traffic_saving"),icon:gv,label:U("menu_traffic_saving"),enabled:t,tooltipText:U("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Fu(t,e);return{id:"AUDIO_LANGUAGES",weight:Dr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:U("aria_label_menu_audio_languages",{actual:i}),icon:hv,label:U("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:U("aria_label_menu_rate",{actual:i}),icon:_v,label:U("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:U("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Ld,label:U("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Dr.download,type:"CLICK",onClick:t,label:U("download_video_caption"),ariaLabel:U("aria_label_menu_download"),icon:bv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Dr.report,type:"CLICK",onClick:t,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,icon:$v,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Dr["copy-data"],type:"CLICK",onClick:t,label:U("menu_copy_debug"),ariaLabel:U("menu_copy_debug"),icon:Uu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Dr["save-trace-info"],type:"CLICK",onClick:t,label:U("menu_save_debug"),ariaLabel:U("menu_save_debug"),icon:Uu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Dr["debug-info"],type:"CLICK",onClick:t,ariaLabel:U("aria_label_menu_debug_overlay"),label:U("menu_debug_overlay"),icon:yv,isHiddenFor:["desktop"]})},m0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>Q3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var r,l,d;return!((r=n==null?void 0:n.isHiddenFor)!=null&&r.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(ba)};var j3=(t,e)=>{_u(t,e)},Y3=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Z3=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),X3=M("<div><!> <!></div>"),J3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
302
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function nv(t,e){D(e,!0),z(t,u3);let[i,o]=Oe(),n=()=>C(v,"$isFullscreen",i),r=()=>C(u,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),p=m(e,"listRef",15);Ot(()=>{let Y=e.items.findIndex(ce=>ce.selected);p().children[Y+1].focus()});let f=Ee(),v=f.ui.isFullscreen,u=f.ui.playerSize,$=j(void 0),w=j(0),y=j(0),S=g(()=>l()&&n()?`max-height: ${Math.round(r().height*.6)}px`:l()?"":`max-height: ${r().height-32-s(y)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,s(w)));var I=c3();let A;var k=_(I);let E;k.__keydown=[a3,e];var R=_(k);let Q;R.__click=[l3,e],R.__keydown=[d3,e];var q=_(R);zs(q,{direction:"left"});var W=P(q,2),G=_(W,!0);h(W),h(R),rt(R,Y=>B($,Y),()=>s($));var X=P(R,2);Ci(X,17,()=>e.items,ad,(Y,ce)=>{var le=Fe(),me=fe(le);{var ke=ae=>{tv(ae,{get item(){return s(ce)},get isMobile(){return l()}})},ve=(ae,Ve)=>{{var ne=N=>{iv(N,{get isMobile(){return l()},get item(){return s(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(ae,N=>{s(ce).type==="OPEN_SUB_MENU"&&N(ne)},Ve)}};V(me,ae=>{s(ce).type==="SELECT_VALUE"?ae(ke):ae(ve,!1)})}b(Y,le)}),h(k),rt(k,Y=>p(Y),()=>p()),h(I),O((Y,ce,le)=>{A=oe(I,1,"sub-menu menu svelte-7dfsuh",null,A,Y),De(I,"data-testid",`sub-menu-${e.id}`),dt(I,`min-width: ${s(T)}px`),E=oe(k,1,"items svelte-7dfsuh",null,E,ce),dt(k,s(S)),Q=oe(R,1,"item header back svelte-7dfsuh",null,Q,le),De(R,"aria-label",a()),$e(G,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),is(R,"clientWidth",Y=>B(w,Y)),is(R,"clientHeight",Y=>B(y,Y)),b(t,I),H(),o()}ut(["keydown","click"]);var n0=require("@vkontakte/videoplayer-shared/es2018");var p3=(t,e)=>bu(t,e()),f3=(t,e)=>{t.stopPropagation(),e()()},m3=M('<div class="value svelte-1ikfjte"> </div>'),v3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),g3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function rv(t,e){D(e,!0),z(t,g3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,n0.noop),n=m(e,"valueComponent",3,void 0),r=m(e,"ref",15);var l=v3();let d;l.__click=[f3,o],l.__keydown=[p3,o];var a=_(l),p=_(a);{var f=T=>{ka(T,{get icon(){return e.icon}})},v=T=>{var I=Fe();let A=g(()=>e.icon);var k=fe(I);Si(k,()=>s(A),(E,R)=>{R(E,{})}),b(T,I)};V(p,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}h(a);var u=P(a,2),$=_(u,!0);h(u);var w=P(u,2);{var y=T=>{var I=Fe();let A=g(n);var k=fe(I);Si(k,()=>s(A),(E,R)=>{R(E,{})}),b(T,I)},S=T=>{var I=m3(),A=_(I,!0);h(I),O(()=>$e(A,e.value)),b(T,I)};V(w,T=>{n()?T(y):T(S,!1)})}h(l),rt(l,T=>r(T),()=>r()),O(T=>{d=oe(l,1,"item",null,d,T),De(l,"aria-label",e.ariaLabel),De(l,"data-testid",e.id),$e($,e.label)},[()=>({mobile:i()})]),b(t,l),H()}ut(["click","keydown"]);var sv=require("@vkontakte/videoplayer-shared/es2018");var h3=(t,e)=>{bl(t,()=>e())},_3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),b3=M('<img class="icon" aria-hidden="true"/>'),$3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),y3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function av(t,e){D(e,!0),z(t,y3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,sv.noop),n=m(e,"closeSettings",3,sv.noop),r=j(!1),l=()=>{B(r,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=$3();let p;a.__click=d,a.__keydown=[h3,d];var f=_(a),v=_(f);{var u=S=>{var T=Fe(),I=fe(T);{var A=E=>{var R=_3();b(E,R)},k=E=>{var R=b3();O(()=>De(R,"src",e.icon)),Tt("error",R,l),ra(R),b(E,R)};V(I,E=>{s(r)?E(A):E(k,!1)})}b(S,T)},$=S=>{var T=Fe();let I=g(()=>e.icon);var A=fe(T);Si(A,()=>s(I),(k,E)=>{E(k,{})}),b(S,T)};V(v,S=>{typeof e.icon=="string"?S(u):S($,!1)})}h(f);var w=P(f,2),y=_(w,!0);h(w),h(a),O(S=>{var T;p=oe(a,1,"item",null,p,S),De(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),De(a,"data-testid",e.id),$e(y,e.label)},[()=>({mobile:i()})]),b(t,a),H()}ut(["click","keydown"]);var r0=require("@vkontakte/videoplayer-shared/es2018");var x3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),w3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function lv(t,e){z(t,w3);let i=m(e,"enabled",3,!1);var o=x3(),n=_(o);let r;we(2),h(o),O(l=>r=oe(n,1,"toggle svelte-17wbjko",null,r,l),[()=>({on:i()})]),b(t,o)}var C3=(t,e,i)=>{S1(t,e(),o=>i()(o))},S3=(t,e,i)=>{t.stopPropagation(),e()(!i())},T3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),E3=M('<li role="menuitem" tabindex="0"><!></li>');function dv(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,r0.noop),n=m(e,"enabled",3,!1),r=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=E3();let a;d.__click=[S3,o,n],d.__keydown=[C3,n,o];var p=_(d);Ca(p,{get content(){return r()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var u=T3();let $;var w=_(u),y=_(w);{var S=E=>{ka(E,{get icon(){return e.icon}})},T=E=>{var R=Fe();let Q=g(()=>e.icon);var q=fe(R);Si(q,()=>s(Q),(W,G)=>{G(W,{})}),b(E,R)};V(y,E=>{typeof e.icon=="string"?E(S):E(T,!1)})}h(w);var I=P(w,2),A=_(I,!0);h(I);var k=P(I,2);lv(k,{get enabled(){return n()}}),h(u),O(E=>{$=oe(u,1,"switch-wrapper",null,$,E),$e(A,e.label)},[()=>({mobile:i()})]),b(f,u)},$$slots:{default:!0}}),h(d),O(f=>{var v;a=oe(d,1,"item switch-item",null,a,f),De(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),H()}ut(["click","keydown"]);var oc=require("@vkontakte/videoplayer-shared/es2018");var s0=()=>{let t=j(oi([])),e=g(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{B(t,s(t).slice(0,-1),!0)},popAllSubMenus:()=>{B(t,[],!0)}}};var I3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),k3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),P3={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function Na(t,e){D(e,!0),z(t,P3);let i=m(e,"isSubCase",3,!1),o=g(()=>wu(e.quality));var n=k3(),r=_(n);let l;var d=_(r,!0);h(r);var a=P(r,2);{var p=f=>{var v=I3();let u=g(()=>s(o));var $=_(v);Si($,()=>s(u),(w,y)=>{y(w,{})}),h(v),b(f,v)};V(a,f=>{s(o)&&!e.isMobile&&f(p)})}h(n),O(f=>{l=oe(r,1,"svelte-t2qk8t",null,l,f),$e(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),H()}var c0=require("@vkontakte/videoplayer-shared/es2018");var cv=require("@vkontakte/videoplayer-core/es2018");var a0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},l0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=a0({quality:t,availableQualities:e});return i?t===cv.VideoQuality.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},d0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===cv.VideoQuality.INVARIANT?i:`${i}${a0({quality:t,availableQualities:e})}`:"...";var A3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),M3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function kl(t,e){D(e,!0),z(t,M3);let[i,o]=Oe(),n=()=>C(a,"$currentQuality$",i),r=()=>C(p,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Ee(),a=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",u=g(()=>e.prefix+(e.selected&&n()!==c0.VideoQuality.INVARIANT?v:"")),$=g(()=>d0({prefix:s(u),quality:n(),availableQualities:r(),onlyPrefix:!e.selected}));var w=A3(),y=_(w);let S=g(()=>e.selected?n():void 0);Na(y,{get quality(){return s(S)},get label(){return s($)},get isMobile(){return l()},isSubCase:!0}),h(w),b(t,w),H(),o()}var L3=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")},V3={br:!0,span:!0},uv=(t,e={})=>{var d,a,p,f,v,u,$;if(!t)return t;let i={...V3,...e},o=Object.keys(i);if(!o.length)return t;let n=L3(o),r=[],l=0;for(let w of t.matchAll(n)){let y=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[S]){r.push(t.slice(l,T)),l=T+y.length;continue}let I=(v=w.groups)!=null&&v.childrenhtml?uv(w.groups.childrenhtml,i):"",A=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>I||""):y;r.push(t.slice(l,T),A),l=T+y.length}return l===0?t:(r.push(t.slice(l)),r.join(""))};function ic(t,e){D(e,!1);let i=m(e,"message",8),o=uv(i());Vr();var n=Fe(),r=fe(n);{var l=d=>{var a=Fe(),p=fe(a);ld(p,()=>o),b(d,a)};V(r,d=>{o&&d(l)})}b(t,n),H()}var R3=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),N3={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function pv(t,e){D(e,!1),z(t,N3),Vr();var i=R3(),o=_(i);let n=Pr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));ic(o,{get message(){return s(n)}}),h(i),b(t,i),H()}var p0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:kl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},fv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?kl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),f0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:pv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),mv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?kl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),vv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:F("traffic_saving_quality"),valueComponent:t?kl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var Hu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Fu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Au(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let a=Hu(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Hu(t,d);return F("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=Hu(t,d);return F("audio_stream_display_language_index",{language:n,index:a})}}let r=Hu(t,e);return F("audio_stream_display_unknown",{index:r})};var B3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,r=[];return i&&r.push({handler:fv,selected:e&&!o&&!n||!1}),r.push({handler:vv,selected:o},{handler:mv,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[f0(t),...r.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),p0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Na,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:r=>e(r,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:fv,selected:((i=lu())==null?void 0:i.type)==="auto_quality"},{handler:vv,selected:((o=lu())==null?void 0:o.type)==="traffic_saving"},{handler:mv,selected:((n=lu())==null?void 0:n.type)==="high_quality"}].map(({handler:r,selected:l})=>r({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Fu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Lu?"sub_off":void 0}))})},m0=({subMenuId:t,context:e})=>t?[B3[t](e)]:[];var O3=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function gv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=O3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var D3=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function hv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=D3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var H3=Ce('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function _v(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=H3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var F3=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function bv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=F3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var U3=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function $v(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=U3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var z3=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function Uu(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=z3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var W3=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function yv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=W3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}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 xv(t,e){D(e,!0),z(t,K3);let[i,o]=Oe(),n=()=>C(p,"$currentQuality$",i),r=()=>C(f,"$availableQualities$",i),l=()=>C(v,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),a=Ee(),p=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,u=a.ui.isMobile,$=g(()=>l0({quality:n(),availableQualities:r(),isAutoQualityEnabled:l()}));var w=q3(),y=_(w);Na(y,{get quality(){return n()},get label(){return s($)},get isMobile(){return d()}}),h(w),b(t,w),H(),o()}var G3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:Md,label:F("menu_quality"),value:e,valueComponent:xv,weight: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:gv,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Fu(t,e);return{id:"AUDIO_LANGUAGES",weight:Dr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:hv,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Dr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:_v,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Dr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Ld,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Dr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:bv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Dr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:$v,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Dr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:Uu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Dr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:Uu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Dr["debug-info"],type:"CLICK",onClick:t,ariaLabel:F("aria_label_menu_debug_overlay"),label:F("menu_debug_overlay"),icon:yv,isHiddenFor:["desktop"]})},v0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>G3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var r,l,d;return!((r=n==null?void 0:n.isHiddenFor)!=null&&r.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(ba)};var Y3=(t,e)=>{_u(t,e)},Z3=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),X3=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),J3=M("<div><!> <!></div>"),ex={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 nc(t,e){H(e,!0),z(t,J3);let[i,o]=Oe(),n=()=>C(Qe,"$settingsMenuVisible",i),r=()=>C(Xe,"$settingsMenuOpenedByKeyboard",i),l=()=>C(ct,"$debugPanelVisible",i),d=()=>C(Ae,"$isMobile",i),a=()=>C(Pt,"$playerSize",i),p=()=>C(ee,"$hasMpegSources$",i),f=()=>C(Te,"$mobileNotReportControlHidden$",i),v=()=>C(oe,"$autoQualityLimitingAvailable$",i),u=()=>C(ue,"$availableSubtitlesList$",i),$=()=>C(Ye,"$isLiveWithPlaybackSpeed",i),w=()=>C(me,"$availableAudioStreams$",i),y=()=>C(ge,"$availablePlaybackRates$",i),S=()=>C(Ie,"$currentAudioStream$",i),T=()=>C(_e,"$currentPlaybackRate$",i),I=()=>C(it,"$trafficSavingEnabled",i),A=()=>C(se,"$currentQuality$",i),k=()=>C(N,"$isAutoQualityEnabled$",i),E=()=>C(ce,"$currentSubtitle$",i),R=()=>C(qt,"$additionalSettingsMenuItems$",i),G=()=>C(He,"$isAutoQualityAvailable$",i),q=()=>C(Le,"$availableQualities$",i),W=()=>C(ht,"$highQualityEnabled",i),Q=m(e,"ref",15,void 0),X=m(e,"playerControlsHeight",3,0),Y=ni({}),de=ni({}),le=Ee(),ve=Et(),Ie=le.state.audioStream$,me=le.state.availableAudioStreams$,se=le.state.currentQuality$,Le=le.state.availableQualities$,oe=le.state.autoQualityLimitingAvailable$,N=le.state.isAutoQualityEnabled$,He=le.state.isAutoQualityAvailable$,_e=le.state.currentPlaybackRate$,ge=le.state.availablePlaybackRates$,ce=le.state.currentSubtitle$,ue=le.state.availableSubtitlesList$,pe=le.state.canDownload,ee=le.state.hasMpegSources$,Qe=le.ui.settingsMenu.visible$,Xe=le.ui.settingsMenu.openedByBtnKeyboard$,Z=le.ui.settingsMenu.ref$,Ae=le.ui.isMobile,Te=le.ui.mobileNotReportControlHidden$,Ye=le.state.canChangePlaybackSpeed$,it=le.state.trafficSavingEnabled$,ht=le.state.highQualityEnabled$,Pt=le.ui.playerSize,ct=le.ui.debugPanelVisible,qe=le.state.isInteractiveTime$,qt=le.ui.additionalSettingsMenuItems$,Xt=le.ui.t,Qt=le.actions.internal.downloadVideo,Kt=le.actions.internal.closeSettingsMenu,ae=le.actions.internal.openSettingsSubMenu,It=le.actions.internal.closeSettingsSubMenu,xe=j(!1),he=j(void 0),te=r0();We(()=>{!n()&&te.current&&(It(de[te.current]),te.popAllSubMenus())}),We(()=>{n()||B(he,void 0)}),We(()=>{!te.current&&s(he)&&x1(Y,s(he))}),We(()=>{Q()&&Z.set(Q())});async function Ne(Je){var Yt;te.pushSubMenu(Je),await So(),ae(Je,de[Je]);let lt=(Yt=Q())==null?void 0:Yt.firstElementChild;lt&&Mf(lt)}function ze(Je){var lt;Je==null||Je.stopPropagation(),r()||(lt=e.returnFocus)==null||lt.call(e),Kt(),B(xe,!1)}function Ve(Je,lt){le.actions.internal.setQuality(Je,{appliesTo:lt}),ze()}function Fe(Je){le.actions.internal.setAudioStream(Je),ze()}function Re(Je,lt){le.actions.internal.setTrafficSavingEnabled(Je,lt),ve.features.qualityDetailsSubMenuEnabled&&ze()}function et(Je,lt){le.actions.internal.setHighQualityEnabled(Je,lt),ze()}function kt(Je){le.actions.internal.setPlaybackRate(Je),ze()}function Gt(Je){le.actions.internal.setSubtitle(Je),ze()}function ot(){Qt()}function ci(){(0,oc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function ei(){hl(le.actions.internal.getDebugTextData())}let at=()=>{let Je=le.actions.internal.getTraceTextData(),lt=new Blob([...Je],{type:"application/json"}),Yt=window.URL.createObjectURL(lt);fa(Yt,"vk_player_trace_info","json")};function jt(){ct.set(!l())}function Gi(){B(xe,!0)}function ri(){B(xe,!1)}function yi(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-X()}px; overflow: auto;`}let oo=g(()=>pe&&p()&&!f()),zt=g(()=>ve.features.trafficSaving&&!f()&&v()&&!ve.features.qualityDetailsSubMenuEnabled),ui=g(()=>u().length>0&&!f()),ji=g(()=>!!$()&&!f()),zo=g(()=>ve.features.audioLanguages&&w().length>=2&&!f()),At=g(()=>!f());Ot(()=>qe.subscribe(Je=>{Je&&!d()&&!s(xe)&&!r()&&ze()}));let wt=g(()=>{let Je=[s(At)&&"QUALITY_SETTINGS",s(zo)&&"AUDIO_LANGUAGES",s(ji)&&"PLAYBACK_RATE",s(ui)&&"SUBTITLES",s(zt)&&"TRAFFIC_SAVING_SWITCH",s(oo)&&"DOWNLOAD",ve.showSupport&&"SHOW_SUPPORT","COPY_DATA",ve.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(lt=>!!lt);return m0({items:Je,context:{qualityDetailsSubMenuEnabled:ve.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:kt,trafficSavingEnabled:I(),toggleTrafficSaving:Re,currentQuality:A()||oc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:ot,onCopyDataClick:ei,onReportProblemClick:ci,onSaveTraceDataClick:at,toggleShowDebugInfo:jt},additionalSettingsMenuItems:R()})}),Mi=g(()=>f0({subMenuId:te.current,context:{availablePlaybackRates:y(),selectPlaybackRate:kt,trafficSavingEnabled:I(),toggleTrafficSaving:Re,currentQuality:A()||oc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:G()||!1,availableQualities:q(),highQualityEnabled:W(),toggleHighQuality:et,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Kt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Fe,selectQuality:Ve,selectSubtitle:Gt}}));var Ti=X3();let D;var Dt=_(Ti);{var li=Je=>{var lt=Z3();let Yt;lt.__keydown=[j3,Kt];var Vt=_(lt);{var Fi=Ei=>{var $t=Y3();let Ii;var qo=_($t),wn=_(qo,!0);h(qo);var Ui=P(qo,2);Ui.__click=ze,h($t),O((Yi,ko)=>{Ii=ie($t,1,"item header svelte-17or3al",null,Ii,Yi),$e(wn,ko)},[()=>({mobile:d()}),()=>Xt("submenu_settings")]),b(Ei,$t)};V(Vt,Ei=>{d()&&Ei(Fi)})}var Wo=P(Vt,2);let ln;wi(Wo,21,()=>s(wt),Ei=>Ei.id,(Ei,$t)=>{var Ii=Ue(),qo=fe(Ii);{var wn=Yi=>{rv(Yi,{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:()=>{Ne(s($t).children),B(he,s($t).id,!0)},get ref(){return Y[s($t).id]},set ref(ko){Y[s($t).id]=ko}})},Ui=(Yi,ko)=>{{var dn=pi=>{av(pi,{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:ze})},Hn=(pi,Ko)=>{{var Cn=Qo=>{dv(Qo,{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(pi,Qo=>{s($t).type==="SWITCH"&&Qo(Cn)},Ko)}};V(Yi,pi=>{s($t).type==="CLICK"?pi(dn):pi(Hn,!1)},ko)}};V(qo,Yi=>{s($t).type==="OPEN_SUB_MENU"?Yi(wn):Yi(Ui,!1)})}b(Ei,Ii)}),h(Wo),st(Wo,Ei=>Q(Ei),()=>Q()),h(lt),O((Ei,$t,Ii)=>{Yt=ie(lt,1,"settings-menu menu svelte-17or3al",null,Yt,Ei),ln=ie(Wo,1,"items",null,ln,$t),dt(Wo,Ii)},[()=>({desktop:!d(),mobile:d(),hidden:!!te.current}),()=>({mobile:d()}),yi]),Ct("mouseenter",lt,Gi),Ct("mouseleave",lt,ri),b(Je,lt)};V(Dt,Je=>{n()&&Je(li)})}var _t=P(Dt,2);wi(_t,17,()=>s(Mi),Je=>Je.id,(Je,lt)=>{let Yt=g(()=>{var Vt;return(Vt=s(lt).minWidth)!=null?Vt:137});nv(Je,{get isMobile(){return d()},get playerControlsHeight(){return X()},get returnFromSubMenu(){return te.popSubMenu},get id(){return s(lt).id},get title(){return s(lt).title},get closeSettingsMenu(){return Kt},openSubMenuList:Ne,get items(){return s(lt).items},get minWidth(){return s(Yt)},get refMenuItems(){return Y},get listRef(){return de[s(lt).id]},set listRef(Vt){de[s(lt).id]=Vt}})}),h(Ti),O(Je=>D=ie(Ti,1,"settings-menu-container svelte-17or3al",null,D,Je),[()=>({mobile:d(),hidden:!n()})]),b(t,Ti),F(),o()}pt(["keydown","click"]);var ex=t=>t;function v0(t,{delay:e=0,duration:i=400,easing:o=ex}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:r=>`opacity: ${r*n}`}}var tx=M('<button class="button svelte-1sbbskl"> </button>'),ix={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function wv(t,e){z(t,ix);var i=tx();i.__click=function(...n){var r;(r=e.onClick)==null||r.apply(this,n)};var o=_(i,!0);h(i),O(()=>$e(o,e.label)),b(t,i)}pt(["click"]);var ox=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),nx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
306
+ .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function nc(t,e){D(e,!0),z(t,ex);let[i,o]=Oe(),n=()=>C(qe,"$settingsMenuVisible",i),r=()=>C(Xe,"$settingsMenuOpenedByKeyboard",i),l=()=>C(St,"$debugPanelVisible",i),d=()=>C(Ae,"$isMobile",i),a=()=>C(gt,"$playerSize",i),p=()=>C(te,"$hasMpegSources$",i),f=()=>C(Te,"$mobileNotReportControlHidden$",i),v=()=>C(ne,"$autoQualityLimitingAvailable$",i),u=()=>C(ue,"$availableSubtitlesList$",i),$=()=>C(Ye,"$isLiveWithPlaybackSpeed",i),w=()=>C(ve,"$availableAudioStreams$",i),y=()=>C(ge,"$availablePlaybackRates$",i),S=()=>C(ke,"$currentAudioStream$",i),T=()=>C(_e,"$currentPlaybackRate$",i),I=()=>C(it,"$trafficSavingEnabled",i),A=()=>C(ae,"$currentQuality$",i),k=()=>C(N,"$isAutoQualityEnabled$",i),E=()=>C(de,"$currentSubtitle$",i),R=()=>C(zt,"$additionalSettingsMenuItems$",i),Q=()=>C(He,"$isAutoQualityAvailable$",i),q=()=>C(Ve,"$availableQualities$",i),W=()=>C(bt,"$highQualityEnabled",i),G=m(e,"ref",15,void 0),X=m(e,"playerControlsHeight",3,0),Y=oi({}),ce=oi({}),le=Ee(),me=Pt(),ke=le.state.audioStream$,ve=le.state.availableAudioStreams$,ae=le.state.currentQuality$,Ve=le.state.availableQualities$,ne=le.state.autoQualityLimitingAvailable$,N=le.state.isAutoQualityEnabled$,He=le.state.isAutoQualityAvailable$,_e=le.state.currentPlaybackRate$,ge=le.state.availablePlaybackRates$,de=le.state.currentSubtitle$,ue=le.state.availableSubtitlesList$,pe=le.state.canDownload,te=le.state.hasMpegSources$,qe=le.ui.settingsMenu.visible$,Xe=le.ui.settingsMenu.openedByBtnKeyboard$,Z=le.ui.settingsMenu.ref$,Ae=le.ui.isMobile,Te=le.ui.mobileNotReportControlHidden$,Ye=le.state.canChangePlaybackSpeed$,it=le.state.trafficSavingEnabled$,bt=le.state.highQualityEnabled$,gt=le.ui.playerSize,St=le.ui.debugPanelVisible,Qe=le.state.isInteractiveTime$,zt=le.ui.additionalSettingsMenuItems$,Xt=le.ui.t,Yt=le.actions.internal.downloadVideo,Wt=le.actions.internal.closeSettingsMenu,ee=le.actions.internal.openSettingsSubMenu,Bt=le.actions.internal.closeSettingsSubMenu,xe=j(!1),he=j(void 0),ie=s0();Ue(()=>{!n()&&ie.current&&(Bt(ce[ie.current]),ie.popAllSubMenus())}),Ue(()=>{n()||B(he,void 0)}),Ue(()=>{!ie.current&&s(he)&&w1(Y,s(he))}),Ue(()=>{G()&&Z.set(G())});async function Be(st){var yi;ie.pushSubMenu(st),await wo(),ee(st,ce[st]);let vt=(yi=G())==null?void 0:yi.firstElementChild;vt&&Mf(vt)}function ze(st){var vt;st==null||st.stopPropagation(),r()||(vt=e.returnFocus)==null||vt.call(e),Wt(),B(xe,!1)}function Me(st,vt){le.actions.internal.setQuality(st,{appliesTo:vt}),ze()}function We(st){le.actions.internal.setAudioStream(st),ze()}function Re(st,vt){le.actions.internal.setTrafficSavingEnabled(st,vt),me.features.qualityDetailsSubMenuEnabled&&ze()}function et(st,vt){le.actions.internal.setHighQualityEnabled(st,vt),ze()}function Lt(st){le.actions.internal.setPlaybackRate(st),ze()}function Kt(st){le.actions.internal.setSubtitle(st),ze()}function Je(){Yt()}function pi(){(0,oc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function ti(){hl(le.actions.internal.getDebugTextData())}let at=()=>{let st=le.actions.internal.getTraceTextData(),vt=new Blob([...st],{type:"application/json"}),yi=window.URL.createObjectURL(vt);fa(yi,"vk_player_trace_info","json")};function Gt(){St.set(!l())}function ri(){B(xe,!0)}function fi(){B(xe,!1)}function fo(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-X()}px; overflow: auto;`}let Qi=g(()=>pe&&p()&&!f()),Qt=g(()=>me.features.trafficSaving&&!f()&&v()&&!me.features.qualityDetailsSubMenuEnabled),ni=g(()=>u().length>0&&!f()),Fo=g(()=>!!$()&&!f()),Dt=g(()=>me.features.audioLanguages&&w().length>=2&&!f()),$t=g(()=>!f());Ot(()=>Qe.subscribe(st=>{st&&!d()&&!s(xe)&&!r()&&ze()}));let Ei=g(()=>{let st=[s($t)&&"QUALITY_SETTINGS",s(Dt)&&"AUDIO_LANGUAGES",s(Fo)&&"PLAYBACK_RATE",s(ni)&&"SUBTITLES",s(Qt)&&"TRAFFIC_SAVING_SWITCH",s(Qi)&&"DOWNLOAD",me.showSupport&&"SHOW_SUPPORT","COPY_DATA",me.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(vt=>!!vt);return v0({items:st,context:{qualityDetailsSubMenuEnabled:me.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Lt,trafficSavingEnabled:I(),toggleTrafficSaving:Re,currentQuality:A()||oc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:Je,onCopyDataClick:ti,onReportProblemClick:pi,onSaveTraceDataClick:at,toggleShowDebugInfo:Gt},additionalSettingsMenuItems:R()})}),Uo=g(()=>m0({subMenuId:ie.current,context:{availablePlaybackRates:y(),selectPlaybackRate:Lt,trafficSavingEnabled:I(),toggleTrafficSaving:Re,currentQuality:A()||oc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:Q()||!1,availableQualities:q(),highQualityEnabled:W(),toggleHighQuality:et,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Wt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:We,selectQuality:Me,selectSubtitle:Kt}}));var U=J3();let lt;var mi=_(U);{var di=st=>{var vt=X3();let yi;vt.__keydown=[Y3,Wt];var kt=_(vt);{var an=Ii=>{var xt=Z3();let ki;var Wo=_(xt),wn=_(Wo,!0);h(Wo);var Fi=P(Wo,2);Fi.__click=ze,h(xt),O((Gi,Eo)=>{ki=oe(xt,1,"item header svelte-17or3al",null,ki,Gi),$e(wn,Eo)},[()=>({mobile:d()}),()=>Xt("submenu_settings")]),b(Ii,xt)};V(kt,Ii=>{d()&&Ii(an)})}var zo=P(kt,2);let ln;Ci(zo,21,()=>s(Ei),Ii=>Ii.id,(Ii,xt)=>{var ki=Fe(),Wo=fe(ki);{var wn=Gi=>{rv(Gi,{get isMobile(){return d()},get id(){return s(xt).id},get icon(){return s(xt).icon},get label(){return s(xt).label},get ariaLabel(){return s(xt).ariaLabel},get value(){return s(xt).value},get valueComponent(){return s(xt).valueComponent},onClick:()=>{Be(s(xt).children),B(he,s(xt).id,!0)},get ref(){return Y[s(xt).id]},set ref(Eo){Y[s(xt).id]=Eo}})},Fi=(Gi,Eo)=>{{var dn=ci=>{av(ci,{get isMobile(){return d()},get id(){return s(xt).id},get onClick(){return s(xt).onClick},get icon(){return s(xt).icon},get label(){return s(xt).label},get ariaLabel(){return s(xt).ariaLabel},closeSettings:ze})},Hn=(ci,qo)=>{{var Cn=Ko=>{dv(Ko,{get isMobile(){return d()},get id(){return s(xt).id},get onClick(){return s(xt).onClick},get icon(){return s(xt).icon},get label(){return s(xt).label},get ariaLabel(){return s(xt).ariaLabel},get enabled(){return s(xt).enabled},get tooltipText(){return s(xt).tooltipText},get maxTooltipWidth(){return s(xt).maxTooltipWidth}})};V(ci,Ko=>{s(xt).type==="SWITCH"&&Ko(Cn)},qo)}};V(Gi,ci=>{s(xt).type==="CLICK"?ci(dn):ci(Hn,!1)},Eo)}};V(Wo,Gi=>{s(xt).type==="OPEN_SUB_MENU"?Gi(wn):Gi(Fi,!1)})}b(Ii,ki)}),h(zo),rt(zo,Ii=>G(Ii),()=>G()),h(vt),O((Ii,xt,ki)=>{yi=oe(vt,1,"settings-menu menu svelte-17or3al",null,yi,Ii),ln=oe(zo,1,"items",null,ln,xt),dt(zo,ki)},[()=>({desktop:!d(),mobile:d(),hidden:!!ie.current}),()=>({mobile:d()}),fo]),Tt("mouseenter",vt,ri),Tt("mouseleave",vt,fi),b(st,vt)};V(mi,st=>{n()&&st(di)})}var pt=P(mi,2);Ci(pt,17,()=>s(Uo),st=>st.id,(st,vt)=>{let yi=g(()=>{var kt;return(kt=s(vt).minWidth)!=null?kt:137});nv(st,{get isMobile(){return d()},get playerControlsHeight(){return X()},get returnFromSubMenu(){return ie.popSubMenu},get id(){return s(vt).id},get title(){return s(vt).title},get closeSettingsMenu(){return Wt},openSubMenuList:Be,get items(){return s(vt).items},get minWidth(){return s(yi)},get refMenuItems(){return Y},get listRef(){return ce[s(vt).id]},set listRef(kt){ce[s(vt).id]=kt}})}),h(U),O(st=>lt=oe(U,1,"settings-menu-container svelte-17or3al",null,lt,st),[()=>({mobile:d(),hidden:!n()})]),b(t,U),H(),o()}ut(["keydown","click"]);var tx=t=>t;function g0(t,{delay:e=0,duration:i=400,easing:o=tx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:r=>`opacity: ${r*n}`}}var ix=M('<button class="button svelte-1sbbskl"> </button>'),ox={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function wv(t,e){z(t,ox);var i=ix();i.__click=function(...n){var r;(r=e.onClick)==null||r.apply(this,n)};var o=_(i,!0);h(i),O(()=>$e(o,e.label)),b(t,i)}ut(["click"]);var nx=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),rx={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 rc(t,e){H(e,!0),z(t,nx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Et(),{ui:{t:n}}=Ee(),r=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=ox(),d=_(l),a=_(d),p=_(a),f=_(p);ic(f,{get message(){return r}}),h(p);var v=P(p,2);{var u=w=>{let y=g(()=>n("slow_video_notification_button"));wv(w,{get label(){return s(y)},get onClick(){return e.onSelectAutoQuality}})};V(v,w=>{o||w(u)})}h(a);var $=P(a,2);ya($,{get onClick(){return e.onClose}}),h(d),h(l),Zp(3,d,()=>v0,()=>({duration:i})),b(t,l),F()}var sc=require("@vkontakte/videoplayer-shared/es2018"),Ba="annotation",zu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:r,hideAllControls:l}=i;e.setAttribute("slot",Ba),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),r&&this.runHidingControlsWhenIntersected(n,r),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let n=this.slots.get(e);if(!n)return;let r=await this.findSlotElement(n.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(v=>v.forEach(()=>{let u=_s(r,this.shadowRootContainer);o.forEach($=>{let w=l==null?void 0:l[$],y=w?ye(w):null,S=d==null?void 0:d[$];y&&(S==null||S.set((0,sc.isIntersecting)(y,u)))})}));a.observe(r,{childList:!0,subtree:!0}),n.observer=a;let p=new sc.Subscription;o.forEach(v=>{l&&p.add(l[v].subscribe(u=>{let $=d==null?void 0:d[v];u&&u.isDisplayed?$==null||$.set((0,sc.isIntersecting)(u,_s(r,this.shadowRootContainer))):$==null||$.set(!1)}))}),n.subs=p}async findSlotElement(e,i,o){return new Promise(n=>{let r=null,l=new MutationObserver(()=>{if(r=e.querySelector(`#${i}`),r){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(r)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var p,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:r,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,r].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((p=this.store)==null||p.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var u,$;($=(u=this.store)==null?void 0:u.ui.hiddenControls[v])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var rx=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),sx={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
309
+ */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function rc(t,e){D(e,!0),z(t,rx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Pt(),{ui:{t:n}}=Ee(),r=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=nx(),d=_(l),a=_(d),p=_(a),f=_(p);ic(f,{get message(){return r}}),h(p);var v=P(p,2);{var u=w=>{let y=g(()=>n("slow_video_notification_button"));wv(w,{get label(){return s(y)},get onClick(){return e.onSelectAutoQuality}})};V(v,w=>{o||w(u)})}h(a);var $=P(a,2);ya($,{get onClick(){return e.onClose}}),h(d),h(l),Zp(3,d,()=>g0,()=>({duration:i})),b(t,l),H()}var sc=require("@vkontakte/videoplayer-shared/es2018"),Ba="annotation",zu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:r,hideAllControls:l}=i;e.setAttribute("slot",Ba),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),r&&this.runHidingControlsWhenIntersected(n,r),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let n=this.slots.get(e);if(!n)return;let r=await this.findSlotElement(n.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(v=>v.forEach(()=>{let u=_s(r,this.shadowRootContainer);o.forEach($=>{let w=l==null?void 0:l[$],y=w?ye(w):null,S=d==null?void 0:d[$];y&&(S==null||S.set((0,sc.isIntersecting)(y,u)))})}));a.observe(r,{childList:!0,subtree:!0}),n.observer=a;let p=new sc.Subscription;o.forEach(v=>{l&&p.add(l[v].subscribe(u=>{let $=d==null?void 0:d[v];u&&u.isDisplayed?$==null||$.set((0,sc.isIntersecting)(u,_s(r,this.shadowRootContainer))):$==null||$.set(!1)}))}),n.subs=p}async findSlotElement(e,i,o){return new Promise(n=>{let r=null,l=new MutationObserver(()=>{if(r=e.querySelector(`#${i}`),r){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(r)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var p,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:r,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,r].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((p=this.store)==null||p.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var u,$;($=(u=this.store)==null?void 0:u.ui.hiddenControls[v])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var sx=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),ax={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.`},c1=rb;var hs=new Map;hs.set(pl.Interf
337
337
  opacity: 0;
338
338
  scale: 0;
339
339
  }
340
- }`};function Cv(t,e){H(e,!0),z(t,sx);let[i,o]=Oe(),n=()=>C(l,"$isPlaying$",i),r=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ee(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=Et(),u=0,$=j(null),w=j(!1);We(()=>{B($,n()?Or:$s,!0)}),We(()=>{B($,r()?Us:null,!0)}),We(()=>{if(p)return u=window.setTimeout(()=>{u=0,r()&&s($)===Us&&(r()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B($,null)},s($)!==Us?f:v),()=>{u&&(window.clearTimeout(u),u=0)}}),We(()=>{n()&&!s(w)&&(B(w,!0),B($,null))});var y=Ue(),S=fe(y);{var T=I=>{var A=Ue(),k=fe(A);aa(k,()=>s($),E=>{var R=rx(),G=_(R),q=_(G);let W=g(()=>r()==="prev");Ci(q,()=>s($),(Q,X)=>{X(Q,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return s(W)}})}),h(G),h(R),O(()=>dt(G,`animation-duration: ${s($)!==Us?f:v}ms`)),b(E,R)}),b(I,A)};V(S,I=>{s($)&&p&&I(T)})}b(t,y),F(),o()}var ax=M('<div><div data-testid="video-container"></div></div>'),lx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
- .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Oa(t,e){H(e,!0),z(t,lx);let[i,o]=Oe(),n=()=>C(f,"$rotateAlpha",i),r=()=>C(v,"$playerSize",i),l=()=>C(p,"$playerPhase",i),d=()=>C(u,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:u}}=Ee(),{isSmoothVideoRotate:$}=Et(),w=g(()=>a()&&n()%180?r().height/r().width:1);var y=ax();let S;y.__contextmenu=function(...A){var k;(k=e.onContextMenu)==null||k.apply(this,A)},y.__mousedown=function(...A){var k;(k=e.onMouseDown)==null||k.apply(this,A)},y.__mouseup=function(...A){var k;(k=e.onMouseUp)==null||k.apply(this,A)},y.__click=function(...A){var k;(k=e.onClick)==null||k.apply(this,A)},y.__dblclick=function(...A){var k;(k=e.onDblClick)==null||k.apply(this,A)};var T=_(y);let I;st(T,A=>a(A),()=>a()),h(y),O((A,k)=>{S=ie(y,1,"video-wrapper svelte-1czns9r",null,S,A),I=ie(T,1,"video-container svelte-1czns9r",null,I,k),dt(T,`transform: rotate(${n()}deg) scale(${s(w)})`),De(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,y),F(),o()}pt(["contextmenu","mousedown","mouseup","click","dblclick"]);var dx=(t,e,i,o,n,r)=>{if(t.stopPropagation(),e()||o()){r();return}},cx=M("<div><!></div>"),ux=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),px=M("<div><!></div>"),fx=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),mx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),vx=M("<!> <!> <!>",1),gx=M('<div class="blocked svelte-jtgjmv"></div>'),hx=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),_x={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Tv(t,e){H(e,!0),z(t,_x);let[i,o]=Oe(),n=()=>C(Tn,"$notificationsToShow$",i),r=()=>C(Gi,"$playerPhase",i),l=()=>C(Mi,"$isLoaderVisible",i),d=()=>C(ei,"$adPlaybackState",i),a=()=>C(lt,"$crashed",i),p=()=>C(qo,"$isInteractiveTime$",i),f=()=>C(zt,"$settingsMenuVisible",i),v=()=>C(wn,"$isInteractiveExpectation$",i),u=()=>C(oo,"$controlsVisible",i),$=()=>C(Yi,"$touched",i),w=()=>C(or,"$graphIsOpened$",i),y=()=>C(ri,"$isFullscreen",i),S=()=>C(tr,"$autoplayNextEnabled$",i),T=()=>C(li,"$postrollPassed",i),I=()=>C(Ti,"$isEnded$",i),A=()=>C(un,"$cursorInside",i),k=()=>C(Fn,"$isControlsAvailable",i),E=()=>C(gr,"$fakeIsPlaying$",i),R=()=>C(oi,"$bottomNoSmooth",i),G=()=>C(pi,"$interactiveTimeIndicator",i),q=()=>C(ln,"$playerSize",i),W=()=>C(Ei,"$is3DVideo",i),Q=()=>C(At,"$contextMenuVisible$",i),X=()=>C(ci,"$playbackState$",i),Y=()=>C(ko,"$hotKeyMapData",i),de=()=>C(ji,"$scrubbingInProgress",i),le=()=>C(zo,"$volumeChangingInProgress",i),ve=()=>C(D,"$chromecastConnected$",i),Ie=()=>C(xi,"$controlsTimeoutActive",i),me=()=>C(ui,"$settingsMenuOpenedByKeyboard",i),se=()=>C(An,"$contextMenuOpenedByKeyboard$",i),Le=()=>C(bo,"$contextMenuOpenedByHotKey$",i),oe=()=>C(po,"$contextMenuButtonRef$",i),N=()=>C(dr,"$contextMenuLastActiveElem$",i),He=()=>C(yi,"$isFullscreenOpenedByKeyboard",i),_e=()=>C(ot,"$language$",i),ge=()=>C($t,"$icon3DVideoVisible",i),ce=()=>C(Dt,"$chromecastDeviceName$",i),ue=()=>C(Fi,"$currentSubtitle$",i),pe=()=>C(Wo,"$currentSubtitleCaptions$",i),ee=()=>C(at,"$position$",i),Qe=()=>C(jt,"$duration$",i),Xe=()=>C(_t,"$isLive$",i),Z=()=>C(Je,"$isPlaying$",i),Ae=()=>C(Cn,"$contextMenuPosition$",i),Te=()=>C(dn,"$showHotKeyMap",i),Ye=()=>C(wt,"$debugPanelVisible",i),it=()=>C(Hr,"$userActionsDisabled$",i),ht=m(e,"videoContainer",15),Pt=m(e,"adsSlotId",3,void 0),ct=m(e,"adsParams",3,void 0),qe=m(e,"adsPreviewParam",3,void 0),qt=m(e,"adsAutoplayParam",3,void 0),Xt=m(e,"duration",3,void 0),Qt=m(e,"logoTargetUrl",3,""),Kt=m(e,"showNextPrevButtons",3,!1),ae=m(e,"nextButtonActive",3,!1),It=m(e,"prevButtonActive",3,!1),xe=m(e,"endScreenVideoTitle",3,void 0),he=m(e,"endScreenVideoThumb",3,void 0),te=m(e,"isOneVideoPlaylist",3,!1),Ne=m(e,"shadowRootContainer",3,void 0),ze=m(e,"outerContainerRef",3,void 0),Ve=m(e,"playerStarted",3,!1),Fe=m(e,"fullScreenTarget",3,void 0),Re=m(e,"showMiniTimer",3,!1),et=m(e,"showEndScreen",3,!0),kt=m(e,"keyboardControls",15),Gt=e.store.getLogger().createComponentLog("Root component"),ot=e.store.interfaceLanguage$,ci=e.store.state.playbackState$,ei=e.store.ads.playbackState,at=e.store.state.positionWithScrubbing$,jt=e.store.state.duration$,Gi=e.store.playerPhase,ri=e.store.ui.isFullscreen,yi=e.store.ui.isFullscreenOpenedByKeyboard,oo=e.store.ui.controlsVisible,zt=e.store.ui.settingsMenu.visible$,ui=e.store.ui.settingsMenu.openedByBtnKeyboard$,ji=e.store.ui.scrubbingInProgress,zo=e.store.ui.volumeChangingInProgress,At=e.store.ui.contextMenu.visible$,wt=e.store.ui.debugPanelVisible,Mi=e.store.state.isLoaderVisible,Ti=e.store.state.isEnded$,D=e.store.state.chromecastConnected$,Dt=e.store.state.chromecastDeviceName$,li=e.store.ads.postrollPassed,_t=e.store.state.isLive$,Je=e.store.state.isPlaying$,lt=e.store.state.crashed$,Yt=e.store.webApi.annotationsApi,Vt=e.store.webApi.pictureInPictureApi,Fi=e.store.state.currentSubtitle$,Wo=e.store.state.currentSubtitleCaptions$,ln=e.store.ui.playerSize,Ei=e.store.ui.is3DVideo,$t=e.store.ui.icon3DVideoVisible,Ii=e.store.state.isInteractive,qo=e.store.state.isInteractiveTime$,wn=e.store.state.isInteractiveExpectation$,Ui=e.store.state.hasInteractiveBranches,Yi=e.store.ui.touched,ko=e.store.ui.modals.hotKeyMap.data,dn=e.store.ui.modals.hotKeyMap.show,Hn=e.store.ui.overlayContainer$,pi=e.store.ui.controls.interactiveTimeIndicator,Ko=e.store.state.showInteractiveTimeIndicator,Cn=e.store.ui.contextMenu.position$,Qo=e.store.actions.internal.setQuality,no=e.store.actions.internal.closeSettingsMenu,tr=e.store.ui.autoplayNextEnabled$,Hr=e.store.ui.userActionsDisabled,Fn=e.store.ui.isControlsAvailable,ir=e.store.ui.videoTitleInfo,Fr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:gr,notifications$:cn,graphIsOpened$:or}=vo(),ro=j(void 0),Go=j(void 0),nr=j(void 0),Sn=j(void 0),rr,Un,sr;ko.set(g1());let{closeNotification:zn,notificationsToShow$:Tn}=cn,hr=g(()=>!!n().slow_video),_r=()=>zn("slow_video"),br=g(()=>(r()==="video"&&l()||r()==="ads"&&d()==="inactive")&&!a()),nt=j(void 0),oi=ne(!1),En,xi=ne(!1),Li=ne(),un=ne(!1),pn=j(!1),go=j(!1),Wn=j(!1),ho=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Po=g(()=>p()&&!f()&&!(s(pn)||s(go))&&!(s(Wn)&&!v())),$r=!0,as=g(()=>e.uiConfig.features.thumbTimer&&Re()&&r()==="video"&&!u()&&!a()&&!Ii&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),yr=g(()=>r()==="video"&&!w()&&y()),Ur=j(!1),In=g(()=>(et()||e.showAutoplayNext&&S())&&!!xe()&&!!he()&&(e.showAds&&T()||!e.showAds)&&I()&&!a()&&!s(Ur)),xr=g(()=>A()&&!(u()||s(In))&&!p()&&k()),_o=j(!1),ar=g(()=>E()!==null),{toggle:jo}=gr,ti=!1,Yo=null;Vt==null||Vt.setContext(ql());let zr=()=>{e.autoplay&&!Ii&&e.uiConfig.controls.showOnStartupAtAutoplay&&Rt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:zr});let wr=()=>{window.clearTimeout(rr),xi.set(!1)},St=()=>{window.clearTimeout(Un),Li.set(null)},Rt=Se=>{wr(),xi.set(!0),rr=window.setTimeout(()=>xi.set(!1),Se);let yt=Se-100;En=window.setTimeout(()=>{R()&&oi.set(!1)},yt>0?yt:Se)},fn=(Se,yt)=>{St(),Li.set(yt),Un=window.setTimeout(()=>Li.set(null),Se)},Ao=Ei.subscribe(Se=>{$t.set(Se),Se&&(window.clearTimeout(sr),sr=window.setTimeout(()=>$t.set(!1),e.uiConfig.controls.hide360IconTimeout))}),mn=async()=>{var yt,vi,Ji,en;let Se=Vs();if(Se){let yo=$d(),tt=so();Se=yo===tt||yo===Ne()}if(Se){Rt(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Vt==null?void 0:Vt.exit())}catch(yo){Gt({message:String(yo)})}}ri.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),y()?(vi=(yt=e.store.callbacks)==null?void 0:yt.onFullscreenEnter)==null||vi.call(yt):(en=(Ji=e.store.callbacks)==null?void 0:Ji.onFullscreenExit)==null||en.call(Ji)},Mo=Se=>{let{width:yt,height:vi}=Se.target;ln.set({width:yt,height:vi})},kn=()=>{let{width:Se,height:yt}=s(ro).getBoundingClientRect();ln.set({width:Se,height:yt})};Ot(()=>{var yt;return gu(mn),e.uiConfig.features.annotationsInside&&(Yt==null||Yt.init(s(ro))),ha(Vt)&&(Vt==null||Vt.assignPlayerContainer(s(ro)),Vt==null||Vt.setExternalEventHandlers({resize:Mo,leavepictureinpicture:kn})),e.interactiveContainer&&((yt=ht().parentElement)==null||yt.insertBefore(e.interactiveContainer,ht().nextSibling)),()=>{window.clearTimeout(rr),window.clearTimeout(En),window.clearTimeout(Un),window.clearTimeout(sr),Ao(),Vt==null||Vt.dispose().catch(vi=>{Gt({message:String(vi)})}),hu(mn)}});let so=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ze()?s(ro):ze(),yt=Se.getRootNode(),vi=yt instanceof ShadowRoot?yt.host:yt,Ji=Fe()instanceof HTMLElement&&Fe().contains(vi);return e.uiConfig.allowChangingFullscreenTarget&&Fe()&&Ji?Fe():Se},Pn=()=>{At.set(!1)},Lo=()=>{no(),Pn()},lr=async()=>{Pn(),Vs()?(await vu(document),Gt({message:"exit fullscreen"})):(Gt({message:"request fullscreen"}),await mu(so()))},Cr=Se=>{w()||(Se.preventDefault(),At.set(!0),Cn.set({left:Se.clientX,top:Se.clientY}))};function Wr(){un.set(!0),Ii||Rt(e.uiConfig.controls.hideTimeoutCursor)}function ls(){Ii||(oi.set(!0),Rt(e.uiConfig.controls.hideTimeoutCursor))}function qr(){un.set(!1),B(go,!1),B(pn,!1),ti=!1,e.store.actions.internal.releaseCamera(),Rt(e.uiConfig.controls.hideTimeout)}function ao(Se){return Se?Se.offsetTop+ao(Se.offsetParent):0}function vn(Se){return Se?Se.offsetLeft+vn(Se.offsetParent):0}function Sr(Se){if(G()&&Ko){let yt=Se.currentTarget,vi=ao(yt),Ji=vn(yt),en=Se.pageX-Ji,yo=Se.pageY-vi,{left:tt,bottom:Ut,right:Vi}=G(),tn=Vi-tt;return en>=tt-tn&&yo<=Ut+tn}}function rt(Se){if(s(ro)){let yt=ao(Se.currentTarget),vi=q().height,Ji=Se.pageY-yt;if(Sr(Se)){B(go,!1);return}Ji<40?B(go,!0):Ji>vi-40?B(pn,!0):(B(go,!1),f()||B(pn,!1))}}function Mt(Se){rt(Se),s(Po)||Rt(e.uiConfig.controls.hideTimeoutCursor),W()&&ti&&Yo&&e.store.actions.internal.moveCameraFocusPX(Yo.clientX-Se.clientX,Yo.clientY-Se.clientY,Se.timeStamp-Yo.timeStamp),Yo=Se}let mi=Se=>{Se.preventDefault(),Se.button===0&&(ti=!0,e.store.actions.internal.holdCamera()),Rt(e.uiConfig.controls.hideTimeoutCursor)},lo=Se=>{Se.preventDefault(),Se.button===0&&(Yo=Se,ti=!1,e.store.actions.internal.releaseCamera()),Rt(e.uiConfig.controls.hideTimeoutCursor)},Zi=Se=>{Se.preventDefault(),$r&&(Gt({message:"double click on video"}),lr(),Rt(e.uiConfig.controls.hideTimeoutCursor))},co=Se=>{var yt;if(Se.preventDefault(),Q()||f()){Lo();return}if(!(I()&&!Ui)){if(s(ar))return jo();if((yt=kt())==null||yt.focus(),!Ve()){e.firstStart(),Rt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||X()!==Sv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Rt(e.uiConfig.controls.hideTimeoutCursor)}},uo=Se=>{Lo(),Yi.set(!0),Rt(e.uiConfig.controls.hideTimeout),Se&&fn(e.uiConfig.controls.hideHotKeyHelpers,Se)},Zo=()=>{var Se,yt;Lo(),(Se=e.store.callbacks)!=null&&Se.onOpenHotKeyMap?(yt=e.store.callbacks)==null||yt.onOpenHotKeyMap(Y()):dn.update(vi=>!vi)},Xo=()=>{Yi.set(!0)},An=e.store.ui.contextMenu.openedByBtnKeyboard$,po=e.store.ui.contextMenu.btnRef$,Xi=j(void 0),bo=e.store.ui.contextMenu.openedByHotKey$,dr=e.store.ui.contextMenu.lastActiveElem$;We(()=>{Hn.set(s(nt))}),We(()=>{B(Wn,s(ho)&&X()!==Sv.PlaybackState.PLAYING,!0),s(ho)||xt(()=>B(ho,!0))}),We(()=>{oo.set((s(Wn)||I()||f()||de()||le()||ve()||Ie())&&!s(Po)&&(r()==="video"||r()==="ads")&&!a()&&k())}),We(()=>{!de()&&s(_o)&&!p()&&Rt(e.uiConfig.controls.hideTimeoutCursor),xt(()=>B(_o,de(),!0))}),We(()=>{s(Sn),f(),me(),xt(()=>Td(s(Sn),f(),me()))}),We(()=>{s(Xi),Q(),se(),Le(),xt(()=>{let Se=se()||Le();Td(s(Xi),Q(),Se)})}),We(()=>{let Se=oe();Se&&(Q(),xt(()=>_l(Se,Q(),An)))}),We(()=>{let Se=N();Se&&(Q(),xt(()=>y1(Se,Q(),bo)))}),We(()=>{var Se;!He()&&y()&&(xt(()=>yi.set(!1)),(Se=kt())==null||Se.focus())}),We(()=>{w()&&Lo()});let qn=U("video360"),cr=j(void 0),Kr=Se=>{ir.set(Br(Fr(),{title:s(cr)},"title",Se))};var Qr=hx();Ct("blur",ta,Lo);var Vo=fe(Qr);Vo.__mousemove=Mt;var Jo=_(Vo);let Ke=g(()=>r()==="ads"),Jt=g(()=>s(ar)?jo:void 0);st(Hf(Jo,{toggleFullscreen:lr,hideContextMenu:Lo,showHotKeyHelpers:uo,showKeyMap:Zo,get isAds(){return s(Ke)},get fakePlayButtonHandler(){return s(Jt)},get nextButtonActive(){return ae()},get prevButtonActive(){return It()},children:(Se,yt)=>{var vi=vx(),Ji=fe(vi);Oa(Ji,{get hideCursor(){return s(xr)},onClick:co,onContextMenu:Cr,onMouseDown:mi,onMouseUp:lo,onDblClick:Zi,get videoContainer(){return ht()},set videoContainer(tt){ht(tt)}});var en=P(Ji,2);la(en,()=>"slot",!1,(tt,Ut)=>{ke(tt,()=>({name:Ba}))});var yo=P(en,2);aa(yo,_e,tt=>{var Ut=mx(),Vi=fe(Ut);let tn=g(()=>r()!=="thumb"||a()||Ii&&e.autoplay);Va(Vi,{get hidden(){return s(tn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var gn=P(Vi,2);Cv(gn,{});var fo=P(gn,2);{var Gr=Ge=>{let ai=g(()=>{var No;return(No=e.live)==null?void 0:No.startTime});ec(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(ai)}})};V(fo,Ge=>{r()==="LiveWaitingStart"&&Ge(Gr)})}var Tr=P(fo,2);{var hi=Ge=>{Ra(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Tr,Ge=>{r()==="LiveWaitingRecover"&&Ge(hi)})}var ki=P(Tr,2);{var Mn=Ge=>{Ra(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(ki,Ge=>{r()==="LiveWaitingRecord"&&Ge(Mn)})}var Kn=P(ki,2);{var Er=Ge=>{var ai=cx();let No;var Qs=_(ai);yd(Qs,{get adsSlotId(){return Pt()},get adsParams(){return ct()},get adsPreviewParam(){return qe()},get adsAutoplayParam(){return qt()},get duration(){return Xt()}}),h(ai),O(wo=>No=ie(ai,1,"ads-container svelte-jtgjmv",null,No,wo),[()=>({hidden:r()!=="ads"})]),b(Ge,ai)};V(Kn,Ge=>{e.showAds&&Ve()&&Ge(Er)})}var xo=P(Kn,2);{var Fa=Ge=>{let ai=g(()=>!et()&&e.showAutoplayNext&&S());Bf(Ge,{get title(){return xe()},get thumb(){return he()},get isHide(){return s(ai)},clickCloseIcon:()=>B(Ur,!0)})};V(xo,Ge=>{s(In)&&xe()&&he()&&Ge(Fa)})}var qs=P(xo,2);{var bt=Ge=>{let ai=g(()=>!u());Zm(Ge,{get title(){return e.title},get isHidden(){return s(ai)},onVisibilityChanged:Kr,get ref(){return s(cr)},set ref(No){B(cr,No,!0)}})};V(qs,Ge=>{s(yr)&&Ge(bt)})}var ut=P(qs,2);{var mo=Ge=>{let ai=g(()=>r()==="video"&&u());Xd(Ge,{get isShifted(){return s(ai)}})};V(ut,Ge=>{W()&&Ge(mo)})}var on=P(ut,2);{var zi=Ge=>{var ai=ux(),No=_(ai);bd(No,{get"aria-label"(){return qn}}),h(ai),b(Ge,ai)};V(on,Ge=>{ge()&&Ge(zi)})}var si=P(on,2);{var Ri=Ge=>{Jd(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ce()}})};V(si,Ge=>{ve()&&Ge(Ri)})}var ws=P(si,2);{var Ol=Ge=>{Ma(Ge,{get shifted(){return u()},get captions(){return pe()},get position(){return ee()},get playerSize(){return q()}})};V(ws,Ge=>{ue().value!=="off"&&Ge(Ol)})}var hc=P(ws,2);{var rp=Ge=>{var ai=px();ai.__contextmenu=Cr,ai.__click=[dx,Q,At,f,zt,Lo];var No=_(ai);La(No,{}),h(ai),b(Ge,ai)};V(hc,Ge=>{a()&&Ge(rp)})}var _c=P(hc,2);{var sp=Ge=>{let ai=g(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"),No=g(()=>r()==="ads"),Qs=g(()=>e.canRewindLive&&Qe()!==0);Zd(Ge,{get bottomHidden(){return s(ai)},get bottomNoSmooth(){return R()},get showControls(){return u()},get isAds(){return s(No)},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 Kt()},get nextButtonActive(){return ae()},get prevButtonActive(){return It()},get isOneVideoPlaylist(){return te()},customFullscreenSupported:$r,toggleFullscreen:lr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(Go)},set playerControlsWrapperRef(wo){B(Go,wo,!0)},get playerControlsRef(){return s(nr)},set playerControlsRef(wo){B(nr,wo,!0)}})};V(_c,Ge=>{Ve()&&Ge(sp)})}var bc=P(_c,2);{var ap=Ge=>{var ai=fx(),No=_(ai);let Qs=g(()=>{var wo;return(wo=s(nr))==null?void 0:wo.clientHeight});nc(No,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(Qs)},returnFocus:()=>{var wo;return(wo=kt())==null?void 0:wo.focus()},get ref(){return s(Sn)},set ref(wo){B(Sn,wo,!0)}}),h(ai),b(Ge,ai)};V(bc,Ge=>{!ve()&&r()!=="ads"&&Ge(ap)})}var $c=P(bc,2);let lp=g(()=>!s(as));Cd($c,{get isLive(){return Xe()},get isHidden(){return s(lp)},get isPlaying(){return Z()},get position(){return ee()},get duration(){return Qe()}});var Ks=P($c,2);Qm(Ks,{get data(){return Li}});var yc=P(Ks,2);Rf(yc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=kt())==null?void 0:Ge.focus()},get visible(){return Q()},get playerContainerRef(){return s(ro)},get controlsContainerRef(){return s(Go)},get position(){return Ae()},get menuElementRef(){return s(Xi)},set menuElementRef(Ge){B(Xi,Ge,!0)}});var Dl=P(yc,2);{var xc=Ge=>{rc(Ge,{onClose:_r,onSelectAutoQuality:()=>{Qo("auto"),_r()}})};V(Dl,Ge=>{s(hr)&&Ge(xc)})}var wc=P(Dl,2);{var Cc=Ge=>{xa(Ge,{})};V(wc,Ge=>{s(br)&&Ge(Cc)})}var Ua=P(wc,2);{var Sc=Ge=>{zf(Ge,{})};V(Ua,Ge=>{Te()&&Ge(Sc)})}var dp=P(Ua,2);{var Tc=Ge=>{Id(Ge,{})};V(dp,Ge=>{Ye()&&Ge(Tc)})}b(tt,Ut)}),b(Se,vi)},$$slots:{default:!0}}),Se=>kt(Se),()=>kt());var $i=P(Jo,2);st($i,Se=>B(nt,Se),()=>s(nt)),h(Vo),st(Vo,Se=>B(ro,Se),()=>s(ro));var $o=P(Vo,2);{var Ro=Se=>{var yt=gx();b(Se,yt)};V($o,Se=>{it()&&Se(Ro)})}Ct("mouseenter",Vo,Wr),Ct("mouseleave",Vo,qr),Ct("click",Vo,Xo,!0),Ct("focusin",Vo,ls,!0),b(t,Qr),F(),o()}pt(["mousemove","contextmenu","click"]);var Ws=require("@vkontakte/videoplayer-core/es2018"),x0=require("@vkontakte/videoplayer-shared/es2018");var bx=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),$x=M("<div><!></div>"),yx={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
340
+ }`};function Cv(t,e){D(e,!0),z(t,ax);let[i,o]=Oe(),n=()=>C(l,"$isPlaying$",i),r=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ee(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=Pt(),u=0,$=j(null),w=j(!1);Ue(()=>{B($,n()?Or:$s,!0)}),Ue(()=>{B($,r()?Us:null,!0)}),Ue(()=>{if(p)return u=window.setTimeout(()=>{u=0,r()&&s($)===Us&&(r()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B($,null)},s($)!==Us?f:v),()=>{u&&(window.clearTimeout(u),u=0)}}),Ue(()=>{n()&&!s(w)&&(B(w,!0),B($,null))});var y=Fe(),S=fe(y);{var T=I=>{var A=Fe(),k=fe(A);aa(k,()=>s($),E=>{var R=sx(),Q=_(R),q=_(Q);let W=g(()=>r()==="prev");Si(q,()=>s($),(G,X)=>{X(G,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return s(W)}})}),h(Q),h(R),O(()=>dt(Q,`animation-duration: ${s($)!==Us?f:v}ms`)),b(E,R)}),b(I,A)};V(S,I=>{s($)&&p&&I(T)})}b(t,y),H(),o()}var lx=M('<div><div data-testid="video-container"></div></div>'),dx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
+ .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Oa(t,e){D(e,!0),z(t,dx);let[i,o]=Oe(),n=()=>C(f,"$rotateAlpha",i),r=()=>C(v,"$playerSize",i),l=()=>C(p,"$playerPhase",i),d=()=>C(u,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:u}}=Ee(),{isSmoothVideoRotate:$}=Pt(),w=g(()=>a()&&n()%180?r().height/r().width:1);var y=lx();let S;y.__contextmenu=function(...A){var k;(k=e.onContextMenu)==null||k.apply(this,A)},y.__mousedown=function(...A){var k;(k=e.onMouseDown)==null||k.apply(this,A)},y.__mouseup=function(...A){var k;(k=e.onMouseUp)==null||k.apply(this,A)},y.__click=function(...A){var k;(k=e.onClick)==null||k.apply(this,A)},y.__dblclick=function(...A){var k;(k=e.onDblClick)==null||k.apply(this,A)};var T=_(y);let I;rt(T,A=>a(A),()=>a()),h(y),O((A,k)=>{S=oe(y,1,"video-wrapper svelte-1czns9r",null,S,A),I=oe(T,1,"video-container svelte-1czns9r",null,I,k),dt(T,`transform: rotate(${n()}deg) scale(${s(w)})`),De(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,y),H(),o()}ut(["contextmenu","mousedown","mouseup","click","dblclick"]);var cx=(t,e,i,o,n,r)=>{if(t.stopPropagation(),e()||o()){r();return}},ux=M("<div><!></div>"),px=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),fx=M("<div><!></div>"),mx=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),vx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),gx=M("<!> <!> <!>",1),hx=M('<div class="blocked svelte-jtgjmv"></div>'),_x=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),bx={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Tv(t,e){D(e,!0),z(t,bx);let[i,o]=Oe(),n=()=>C(Tn,"$notificationsToShow$",i),r=()=>C(ri,"$playerPhase",i),l=()=>C(Uo,"$isLoaderVisible",i),d=()=>C(ti,"$adPlaybackState",i),a=()=>C(vt,"$crashed",i),p=()=>C(Wo,"$isInteractiveTime$",i),f=()=>C(Qt,"$settingsMenuVisible",i),v=()=>C(wn,"$isInteractiveExpectation$",i),u=()=>C(Qi,"$controlsVisible",i),$=()=>C(Gi,"$touched",i),w=()=>C(or,"$graphIsOpened$",i),y=()=>C(fi,"$isFullscreen",i),S=()=>C(tr,"$autoplayNextEnabled$",i),T=()=>C(di,"$postrollPassed",i),I=()=>C(U,"$isEnded$",i),A=()=>C(un,"$cursorInside",i),k=()=>C(Fn,"$isControlsAvailable",i),E=()=>C(gr,"$fakeIsPlaying$",i),R=()=>C(ii,"$bottomNoSmooth",i),Q=()=>C(ci,"$interactiveTimeIndicator",i),q=()=>C(ln,"$playerSize",i),W=()=>C(Ii,"$is3DVideo",i),G=()=>C($t,"$contextMenuVisible$",i),X=()=>C(pi,"$playbackState$",i),Y=()=>C(Eo,"$hotKeyMapData",i),ce=()=>C(Fo,"$scrubbingInProgress",i),le=()=>C(Dt,"$volumeChangingInProgress",i),me=()=>C(lt,"$chromecastConnected$",i),ke=()=>C(wi,"$controlsTimeoutActive",i),ve=()=>C(ni,"$settingsMenuOpenedByKeyboard",i),ae=()=>C(An,"$contextMenuOpenedByKeyboard$",i),Ve=()=>C(ho,"$contextMenuOpenedByHotKey$",i),ne=()=>C(lo,"$contextMenuButtonRef$",i),N=()=>C(dr,"$contextMenuLastActiveElem$",i),He=()=>C(fo,"$isFullscreenOpenedByKeyboard",i),_e=()=>C(Je,"$language$",i),ge=()=>C(xt,"$icon3DVideoVisible",i),de=()=>C(mi,"$chromecastDeviceName$",i),ue=()=>C(an,"$currentSubtitle$",i),pe=()=>C(zo,"$currentSubtitleCaptions$",i),te=()=>C(at,"$position$",i),qe=()=>C(Gt,"$duration$",i),Xe=()=>C(pt,"$isLive$",i),Z=()=>C(st,"$isPlaying$",i),Ae=()=>C(Cn,"$contextMenuPosition$",i),Te=()=>C(dn,"$showHotKeyMap",i),Ye=()=>C(Ei,"$debugPanelVisible",i),it=()=>C(Hr,"$userActionsDisabled$",i),bt=m(e,"videoContainer",15),gt=m(e,"adsSlotId",3,void 0),St=m(e,"adsParams",3,void 0),Qe=m(e,"adsPreviewParam",3,void 0),zt=m(e,"adsAutoplayParam",3,void 0),Xt=m(e,"duration",3,void 0),Yt=m(e,"logoTargetUrl",3,""),Wt=m(e,"showNextPrevButtons",3,!1),ee=m(e,"nextButtonActive",3,!1),Bt=m(e,"prevButtonActive",3,!1),xe=m(e,"endScreenVideoTitle",3,void 0),he=m(e,"endScreenVideoThumb",3,void 0),ie=m(e,"isOneVideoPlaylist",3,!1),Be=m(e,"shadowRootContainer",3,void 0),ze=m(e,"outerContainerRef",3,void 0),Me=m(e,"playerStarted",3,!1),We=m(e,"fullScreenTarget",3,void 0),Re=m(e,"showMiniTimer",3,!1),et=m(e,"showEndScreen",3,!0),Lt=m(e,"keyboardControls",15),Kt=e.store.getLogger().createComponentLog("Root component"),Je=e.store.interfaceLanguage$,pi=e.store.state.playbackState$,ti=e.store.ads.playbackState,at=e.store.state.positionWithScrubbing$,Gt=e.store.state.duration$,ri=e.store.playerPhase,fi=e.store.ui.isFullscreen,fo=e.store.ui.isFullscreenOpenedByKeyboard,Qi=e.store.ui.controlsVisible,Qt=e.store.ui.settingsMenu.visible$,ni=e.store.ui.settingsMenu.openedByBtnKeyboard$,Fo=e.store.ui.scrubbingInProgress,Dt=e.store.ui.volumeChangingInProgress,$t=e.store.ui.contextMenu.visible$,Ei=e.store.ui.debugPanelVisible,Uo=e.store.state.isLoaderVisible,U=e.store.state.isEnded$,lt=e.store.state.chromecastConnected$,mi=e.store.state.chromecastDeviceName$,di=e.store.ads.postrollPassed,pt=e.store.state.isLive$,st=e.store.state.isPlaying$,vt=e.store.state.crashed$,yi=e.store.webApi.annotationsApi,kt=e.store.webApi.pictureInPictureApi,an=e.store.state.currentSubtitle$,zo=e.store.state.currentSubtitleCaptions$,ln=e.store.ui.playerSize,Ii=e.store.ui.is3DVideo,xt=e.store.ui.icon3DVideoVisible,ki=e.store.state.isInteractive,Wo=e.store.state.isInteractiveTime$,wn=e.store.state.isInteractiveExpectation$,Fi=e.store.state.hasInteractiveBranches,Gi=e.store.ui.touched,Eo=e.store.ui.modals.hotKeyMap.data,dn=e.store.ui.modals.hotKeyMap.show,Hn=e.store.ui.overlayContainer$,ci=e.store.ui.controls.interactiveTimeIndicator,qo=e.store.state.showInteractiveTimeIndicator,Cn=e.store.ui.contextMenu.position$,Ko=e.store.actions.internal.setQuality,to=e.store.actions.internal.closeSettingsMenu,tr=e.store.ui.autoplayNextEnabled$,Hr=e.store.ui.userActionsDisabled,Fn=e.store.ui.isControlsAvailable,ir=e.store.ui.videoTitleInfo,Fr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:gr,notifications$:cn,graphIsOpened$:or}=po(),io=j(void 0),Qo=j(void 0),nr=j(void 0),Sn=j(void 0),rr,Un,sr;Eo.set(h1());let{closeNotification:zn,notificationsToShow$:Tn}=cn,hr=g(()=>!!n().slow_video),_r=()=>zn("slow_video"),br=g(()=>(r()==="video"&&l()||r()==="ads"&&d()==="inactive")&&!a()),ot=j(void 0),ii=re(!1),En,wi=re(!1),Li=re(),un=re(!1),pn=j(!1),mo=j(!1),Wn=j(!1),vo=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Io=g(()=>p()&&!f()&&!(s(pn)||s(mo))&&!(s(Wn)&&!v())),$r=!0,as=g(()=>e.uiConfig.features.thumbTimer&&Re()&&r()==="video"&&!u()&&!a()&&!ki&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),yr=g(()=>r()==="video"&&!w()&&y()),Ur=j(!1),In=g(()=>(et()||e.showAutoplayNext&&S())&&!!xe()&&!!he()&&(e.showAds&&T()||!e.showAds)&&I()&&!a()&&!s(Ur)),xr=g(()=>A()&&!(u()||s(In))&&!p()&&k()),go=j(!1),ar=g(()=>E()!==null),{toggle:Go}=gr,Jt=!1,jo=null;kt==null||kt.setContext(ql());let zr=()=>{e.autoplay&&!ki&&e.uiConfig.controls.showOnStartupAtAutoplay&&Vt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:zr});let wr=()=>{window.clearTimeout(rr),wi.set(!1)},Et=()=>{window.clearTimeout(Un),Li.set(null)},Vt=Se=>{wr(),wi.set(!0),rr=window.setTimeout(()=>wi.set(!1),Se);let wt=Se-100;En=window.setTimeout(()=>{R()&&ii.set(!1)},wt>0?wt:Se)},fn=(Se,wt)=>{Et(),Li.set(wt),Un=window.setTimeout(()=>Li.set(null),Se)},ko=Ii.subscribe(Se=>{xt.set(Se),Se&&(window.clearTimeout(sr),sr=window.setTimeout(()=>xt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),mn=async()=>{var wt,gi,Zi,Jo;let Se=Vs();if(Se){let bo=$d(),tt=oo();Se=bo===tt||bo===Be()}if(Se){Vt(e.uiConfig.controls.hideTimeoutFullscreen);try{await(kt==null?void 0:kt.exit())}catch(bo){Kt({message:String(bo)})}}fi.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),y()?(gi=(wt=e.store.callbacks)==null?void 0:wt.onFullscreenEnter)==null||gi.call(wt):(Jo=(Zi=e.store.callbacks)==null?void 0:Zi.onFullscreenExit)==null||Jo.call(Zi)},Po=Se=>{let{width:wt,height:gi}=Se.target;ln.set({width:wt,height:gi})},kn=()=>{let{width:Se,height:wt}=s(io).getBoundingClientRect();ln.set({width:Se,height:wt})};Ot(()=>{var wt;return gu(mn),e.uiConfig.features.annotationsInside&&(yi==null||yi.init(s(io))),ha(kt)&&(kt==null||kt.assignPlayerContainer(s(io)),kt==null||kt.setExternalEventHandlers({resize:Po,leavepictureinpicture:kn})),e.interactiveContainer&&((wt=bt().parentElement)==null||wt.insertBefore(e.interactiveContainer,bt().nextSibling)),()=>{window.clearTimeout(rr),window.clearTimeout(En),window.clearTimeout(Un),window.clearTimeout(sr),ko(),kt==null||kt.dispose().catch(gi=>{Kt({message:String(gi)})}),hu(mn)}});let oo=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ze()?s(io):ze(),wt=Se.getRootNode(),gi=wt instanceof ShadowRoot?wt.host:wt,Zi=We()instanceof HTMLElement&&We().contains(gi);return e.uiConfig.allowChangingFullscreenTarget&&We()&&Zi?We():Se},Pn=()=>{$t.set(!1)},Ao=()=>{to(),Pn()},lr=async()=>{Pn(),Vs()?(await vu(document),Kt({message:"exit fullscreen"})):(Kt({message:"request fullscreen"}),await mu(oo()))},Cr=Se=>{w()||(Se.preventDefault(),$t.set(!0),Cn.set({left:Se.clientX,top:Se.clientY}))};function Wr(){un.set(!0),ki||Vt(e.uiConfig.controls.hideTimeoutCursor)}function ls(){ki||(ii.set(!0),Vt(e.uiConfig.controls.hideTimeoutCursor))}function qr(){un.set(!1),B(mo,!1),B(pn,!1),Jt=!1,e.store.actions.internal.releaseCamera(),Vt(e.uiConfig.controls.hideTimeout)}function no(Se){return Se?Se.offsetTop+no(Se.offsetParent):0}function vn(Se){return Se?Se.offsetLeft+vn(Se.offsetParent):0}function Sr(Se){if(Q()&&qo){let wt=Se.currentTarget,gi=no(wt),Zi=vn(wt),Jo=Se.pageX-Zi,bo=Se.pageY-gi,{left:tt,bottom:Ut,right:Vi}=Q(),en=Vi-tt;return Jo>=tt-en&&bo<=Ut+en}}function nt(Se){if(s(io)){let wt=no(Se.currentTarget),gi=q().height,Zi=Se.pageY-wt;if(Sr(Se)){B(mo,!1);return}Zi<40?B(mo,!0):Zi>gi-40?B(pn,!0):(B(mo,!1),f()||B(pn,!1))}}function At(Se){nt(Se),s(Io)||Vt(e.uiConfig.controls.hideTimeoutCursor),W()&&Jt&&jo&&e.store.actions.internal.moveCameraFocusPX(jo.clientX-Se.clientX,jo.clientY-Se.clientY,Se.timeStamp-jo.timeStamp),jo=Se}let vi=Se=>{Se.preventDefault(),Se.button===0&&(Jt=!0,e.store.actions.internal.holdCamera()),Vt(e.uiConfig.controls.hideTimeoutCursor)},ro=Se=>{Se.preventDefault(),Se.button===0&&(jo=Se,Jt=!1,e.store.actions.internal.releaseCamera()),Vt(e.uiConfig.controls.hideTimeoutCursor)},ji=Se=>{Se.preventDefault(),$r&&(Kt({message:"double click on video"}),lr(),Vt(e.uiConfig.controls.hideTimeoutCursor))},so=Se=>{var wt;if(Se.preventDefault(),G()||f()){Ao();return}if(!(I()&&!Fi)){if(s(ar))return Go();if((wt=Lt())==null||wt.focus(),!Me()){e.firstStart(),Vt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||X()!==Sv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Vt(e.uiConfig.controls.hideTimeoutCursor)}},ao=Se=>{Ao(),Gi.set(!0),Vt(e.uiConfig.controls.hideTimeout),Se&&fn(e.uiConfig.controls.hideHotKeyHelpers,Se)},Yo=()=>{var Se,wt;Ao(),(Se=e.store.callbacks)!=null&&Se.onOpenHotKeyMap?(wt=e.store.callbacks)==null||wt.onOpenHotKeyMap(Y()):dn.update(gi=>!gi)},Zo=()=>{Gi.set(!0)},An=e.store.ui.contextMenu.openedByBtnKeyboard$,lo=e.store.ui.contextMenu.btnRef$,Yi=j(void 0),ho=e.store.ui.contextMenu.openedByHotKey$,dr=e.store.ui.contextMenu.lastActiveElem$;Ue(()=>{Hn.set(s(ot))}),Ue(()=>{B(Wn,s(vo)&&X()!==Sv.PlaybackState.PLAYING,!0),s(vo)||Ct(()=>B(vo,!0))}),Ue(()=>{Qi.set((s(Wn)||I()||f()||ce()||le()||me()||ke())&&!s(Io)&&(r()==="video"||r()==="ads")&&!a()&&k())}),Ue(()=>{!ce()&&s(go)&&!p()&&Vt(e.uiConfig.controls.hideTimeoutCursor),Ct(()=>B(go,ce(),!0))}),Ue(()=>{s(Sn),f(),ve(),Ct(()=>Td(s(Sn),f(),ve()))}),Ue(()=>{s(Yi),G(),ae(),Ve(),Ct(()=>{let Se=ae()||Ve();Td(s(Yi),G(),Se)})}),Ue(()=>{let Se=ne();Se&&(G(),Ct(()=>_l(Se,G(),An)))}),Ue(()=>{let Se=N();Se&&(G(),Ct(()=>x1(Se,G(),ho)))}),Ue(()=>{var Se;!He()&&y()&&(Ct(()=>fo.set(!1)),(Se=Lt())==null||Se.focus())}),Ue(()=>{w()&&Ao()});let qn=F("video360"),cr=j(void 0),Kr=Se=>{ir.set(Br(Fr(),{title:s(cr)},"title",Se))};var Qr=_x();Tt("blur",ta,Ao);var Mo=fe(Qr);Mo.__mousemove=At;var Xo=_(Mo);let Ke=g(()=>r()==="ads"),Zt=g(()=>s(ar)?Go:void 0);rt(Hf(Xo,{toggleFullscreen:lr,hideContextMenu:Ao,showHotKeyHelpers:ao,showKeyMap:Yo,get isAds(){return s(Ke)},get fakePlayButtonHandler(){return s(Zt)},get nextButtonActive(){return ee()},get prevButtonActive(){return Bt()},children:(Se,wt)=>{var gi=gx(),Zi=fe(gi);Oa(Zi,{get hideCursor(){return s(xr)},onClick:so,onContextMenu:Cr,onMouseDown:vi,onMouseUp:ro,onDblClick:ji,get videoContainer(){return bt()},set videoContainer(tt){bt(tt)}});var Jo=P(Zi,2);la(Jo,()=>"slot",!1,(tt,Ut)=>{Ie(tt,()=>({name:Ba}))});var bo=P(Jo,2);aa(bo,_e,tt=>{var Ut=vx(),Vi=fe(Ut);let en=g(()=>r()!=="thumb"||a()||ki&&e.autoplay);Va(Vi,{get hidden(){return s(en)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var gn=P(Vi,2);Cv(gn,{});var co=P(gn,2);{var Gr=Ge=>{let ai=g(()=>{var Vo;return(Vo=e.live)==null?void 0:Vo.startTime});ec(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(ai)}})};V(co,Ge=>{r()==="LiveWaitingStart"&&Ge(Gr)})}var Tr=P(co,2);{var _i=Ge=>{Ra(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Tr,Ge=>{r()==="LiveWaitingRecover"&&Ge(_i)})}var Pi=P(Tr,2);{var Mn=Ge=>{Ra(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Pi,Ge=>{r()==="LiveWaitingRecord"&&Ge(Mn)})}var Kn=P(Pi,2);{var Er=Ge=>{var ai=ux();let Vo;var Qs=_(ai);yd(Qs,{get adsSlotId(){return gt()},get adsParams(){return St()},get adsPreviewParam(){return Qe()},get adsAutoplayParam(){return zt()},get duration(){return Xt()}}),h(ai),O(yo=>Vo=oe(ai,1,"ads-container svelte-jtgjmv",null,Vo,yo),[()=>({hidden:r()!=="ads"})]),b(Ge,ai)};V(Kn,Ge=>{e.showAds&&Me()&&Ge(Er)})}var $o=P(Kn,2);{var Fa=Ge=>{let ai=g(()=>!et()&&e.showAutoplayNext&&S());Bf(Ge,{get title(){return xe()},get thumb(){return he()},get isHide(){return s(ai)},clickCloseIcon:()=>B(Ur,!0)})};V($o,Ge=>{s(In)&&xe()&&he()&&Ge(Fa)})}var qs=P($o,2);{var yt=Ge=>{let ai=g(()=>!u());Zm(Ge,{get title(){return e.title},get isHidden(){return s(ai)},onVisibilityChanged:Kr,get ref(){return s(cr)},set ref(Vo){B(cr,Vo,!0)}})};V(qs,Ge=>{s(yr)&&Ge(yt)})}var ct=P(qs,2);{var uo=Ge=>{let ai=g(()=>r()==="video"&&u());Xd(Ge,{get isShifted(){return s(ai)}})};V(ct,Ge=>{W()&&Ge(uo)})}var tn=P(ct,2);{var Ui=Ge=>{var ai=px(),Vo=_(ai);bd(Vo,{get"aria-label"(){return qn}}),h(ai),b(Ge,ai)};V(tn,Ge=>{ge()&&Ge(Ui)})}var si=P(tn,2);{var Ri=Ge=>{Jd(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return de()}})};V(si,Ge=>{me()&&Ge(Ri)})}var ws=P(si,2);{var Ol=Ge=>{Ma(Ge,{get shifted(){return u()},get captions(){return pe()},get position(){return te()},get playerSize(){return q()}})};V(ws,Ge=>{ue().value!=="off"&&Ge(Ol)})}var hc=P(ws,2);{var rp=Ge=>{var ai=fx();ai.__contextmenu=Cr,ai.__click=[cx,G,$t,f,Qt,Ao];var Vo=_(ai);La(Vo,{}),h(ai),b(Ge,ai)};V(hc,Ge=>{a()&&Ge(rp)})}var _c=P(hc,2);{var sp=Ge=>{let ai=g(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"),Vo=g(()=>r()==="ads"),Qs=g(()=>e.canRewindLive&&qe()!==0);Zd(Ge,{get bottomHidden(){return s(ai)},get bottomNoSmooth(){return R()},get showControls(){return u()},get isAds(){return s(Vo)},get canRewindLive(){return s(Qs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Yt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Wt()},get nextButtonActive(){return ee()},get prevButtonActive(){return Bt()},get isOneVideoPlaylist(){return ie()},customFullscreenSupported:$r,toggleFullscreen:lr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(Qo)},set playerControlsWrapperRef(yo){B(Qo,yo,!0)},get playerControlsRef(){return s(nr)},set playerControlsRef(yo){B(nr,yo,!0)}})};V(_c,Ge=>{Me()&&Ge(sp)})}var bc=P(_c,2);{var ap=Ge=>{var ai=mx(),Vo=_(ai);let Qs=g(()=>{var yo;return(yo=s(nr))==null?void 0:yo.clientHeight});nc(Vo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(Qs)},returnFocus:()=>{var yo;return(yo=Lt())==null?void 0:yo.focus()},get ref(){return s(Sn)},set ref(yo){B(Sn,yo,!0)}}),h(ai),b(Ge,ai)};V(bc,Ge=>{!me()&&r()!=="ads"&&Ge(ap)})}var $c=P(bc,2);let lp=g(()=>!s(as));Cd($c,{get isLive(){return Xe()},get isHidden(){return s(lp)},get isPlaying(){return Z()},get position(){return te()},get duration(){return qe()}});var Ks=P($c,2);Qm(Ks,{get data(){return Li}});var yc=P(Ks,2);Rf(yc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=Lt())==null?void 0:Ge.focus()},get visible(){return G()},get playerContainerRef(){return s(io)},get controlsContainerRef(){return s(Qo)},get position(){return Ae()},get menuElementRef(){return s(Yi)},set menuElementRef(Ge){B(Yi,Ge,!0)}});var Dl=P(yc,2);{var xc=Ge=>{rc(Ge,{onClose:_r,onSelectAutoQuality:()=>{Ko("auto"),_r()}})};V(Dl,Ge=>{s(hr)&&Ge(xc)})}var wc=P(Dl,2);{var Cc=Ge=>{xa(Ge,{})};V(wc,Ge=>{s(br)&&Ge(Cc)})}var Ua=P(wc,2);{var Sc=Ge=>{zf(Ge,{})};V(Ua,Ge=>{Te()&&Ge(Sc)})}var dp=P(Ua,2);{var Tc=Ge=>{Id(Ge,{})};V(dp,Ge=>{Ye()&&Ge(Tc)})}b(tt,Ut)}),b(Se,gi)},$$slots:{default:!0}}),Se=>Lt(Se),()=>Lt());var xi=P(Xo,2);rt(xi,Se=>B(ot,Se),()=>s(ot)),h(Mo),rt(Mo,Se=>B(io,Se),()=>s(io));var _o=P(Mo,2);{var Lo=Se=>{var wt=hx();b(Se,wt)};V(_o,Se=>{it()&&Se(Lo)})}Tt("mouseenter",Mo,Wr),Tt("mouseleave",Mo,qr),Tt("click",Mo,Zo,!0),Tt("focusin",Mo,ls,!0),b(t,Qr),H(),o()}ut(["mousemove","contextmenu","click"]);var Ws=require("@vkontakte/videoplayer-core/es2018"),w0=require("@vkontakte/videoplayer-shared/es2018");var $x=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),yx=M("<div><!></div>"),xx={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.`},c1=rb;var hs=new Map;hs.set(pl.Interf
354
354
  100% {
355
355
  opacity: 0;
356
356
  }
357
- }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Wu(t,e){H(e,!0),z(t,yx);let i=m(e,"seekStep",3,0),o=j(!1),n=0,r=0,l=j(ni(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)};On(()=>{window.clearTimeout(n)});var a=$x();a.__click=d;var p=_(a);{var f=v=>{var u=bx(),$=fe(u),w=P($,2),y=_(w),S=_(y),T=P(S,2),I=P(T,2);h(y);var A=P(y,2),k=_(A,!0);h(A),h(w),O(E=>{var R,G,q,W;ie($,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),ie(S,1,`triangle ${(G=e.side)!=null?G:""}`,"svelte-nhq2ld"),ie(T,1,`triangle ${(q=e.side)!=null?q:""}`,"svelte-nhq2ld"),ie(I,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),$e(k,E)},[()=>U("doubletap_seek_step",{seconds:s(l).toFixed(0)})]),b(v,u)};V(p,v=>{s(o)&&v(f)})}h(a),O(()=>{var v;return ie(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),F()}pt(["click"]);var xx=(t,e,i)=>{e(!1),i()},wx=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),Cx={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Ev(t,e){H(e,!0),z(t,Cx);let[i,o]=Oe(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),$()};Ot(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Ue(),T=fe(S);{var I=A=>{var k=wx(),E=P(fe(k),2),R=_(E),G=_(R),q=_(G,!0);h(G);var W=P(G,2);ya(W,{onClick:y}),h(R);var Q=P(R,2);Q.__click=[xx,p,v];var X=_(Q),Y=_(X),de=_(Y);let le;var ve=P(de,2);{var Ie=oe=>{kd(oe,{get isRunning(){return r()},onTimerEnded:w})};V(ve,oe=>{n()&&oe(Ie)})}h(Y),h(X);var me=P(X,2),se=_(me),Le=_(se,!0);h(se),h(me),h(Q),h(E),O((oe,N)=>{$e(q,oe),dt(Y,`background-image: url('${e.thumb}')`),le=ie(de,1,"thumb-overlay svelte-1qdxi6t",null,le,N),$e(Le,e.title)},[()=>n()?U("end_screen_next_video"):U("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(A,k)};V(T,A=>{e.isHide||A(I)})}b(t,S),F(),o()}pt(["click"]);var h0=require("@vkontakte/videoplayer-core/es2018");var _0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ot(()=>{h0.clientChecker.device.isIOS&&(o=setTimeout(()=>{let r=t().querySelector("video");if(!r)return;let l=()=>e(!0),d=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",d),i=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",d)}},0))}),On(()=>{i==null||i(),clearTimeout(o)})};var b0=require("@vkontakte/videoplayer-core/es2018");var qu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var $0=require("@vkontakte/videoplayer-core/es2018"),y0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:r,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,p=()=>e().querySelector("video"),f=()=>$0.clientChecker.device.isIOS&&ye(l)===b0.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},u=$=>{if(v(),!f()||!$)return;let w=p();if(!w)return;let y=new qu(w),S=ye(d),T=ye(r),I=ye(n);for(let E of S)T.some(G=>G.value===E.id)&&y.attach(E,I.value===E.id);let A=d.subscribe(E=>{for(let R of E)y.updateSrc(R)}),k=()=>{let E=y.getCurrentShowingId();o(ye(r).find(R=>R.value===E))};w.textTracks.addEventListener("change",k),a=()=>{A(),y.detachAll(),w.textTracks.removeEventListener("change",k)}};Ot(()=>i.subscribe(u)),On(v)};var Sx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Tx=M("<!> <!>",1),Ex=M("<div><!></div>"),Ix=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),kx=M("<div><!></div>"),Px=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Ax=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Mx=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Lx={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Iv(t,e){var zr,wr;H(e,!0),z(t,Lx);let[i,o]=Oe(),n=()=>C(Re,"$playerPhase",i),r=()=>C(ri,"$isLoaderVisible",i),l=()=>C(ze,"$adPlaybackState",i),d=()=>C(Mi,"$crashed",i),a=()=>C(Fr,"$notificationsToShow$",i),p=()=>C(Ne,"$playbackState$",i),f=()=>C(xe,"$graphIsOpened$",i),v=()=>C(ot,"$interactiveHideMobileControls",i),u=()=>C(yi,"$isEnded$",i),$=()=>C(ln,"$isInteractiveExpectation$",i),w=()=>C(kt,"$controlsVisible",i),y=()=>C(Ii,"$touched",i),S=()=>C(wn,"$autoplayNextEnabled$",i),T=()=>C(ui,"$postrollPassed",i),I=()=>C(or,"$bottomNoSmooth",i),A=()=>C(Dt,"$videoSize",i),k=()=>C(lt,"$playerSize",i),E=()=>C(et,"$isFullscreen",i),R=()=>C(Ve,"$position$",i),G=()=>C(Fe,"$duration$",i),q=()=>C(Ui,"$loadedMetadata",i),W=()=>C(ci,"$settingsMenuVisible",i),Q=()=>C(at,"$scrubbingInProgress",i),X=()=>C(jt,"$volumeChangingInProgress",i),Y=()=>C(oo,"$chromecastConnected$",i),de=()=>C(Gt,"$isControlsAvailable",i),le=()=>C(Wo,"$isInteractiveTime$",i),ve=()=>C(At,"$isActiveLive",i),Ie=()=>C(ei,"$settingsMenuOpenedByKeyboard",i),me=()=>C(te,"$language$",i),se=()=>C($t,"$disabledControls$",i),Le=()=>C(Yt,"$is3DVideo",i),oe=()=>C(Vt,"$icon3DVideoVisible",i),N=()=>C(zt,"$chromecastDeviceName$",i),He=()=>C(li,"$currentSubtitle$",i),_e=()=>C(_t,"$currentSubtitleCaptions$",i),ge=()=>C(Je,"$realDuration$",i),ce=()=>C(ji,"$isLive$",i),ue=()=>C(zo,"$isPlaying$",i),pe=()=>C(Gi,"$debugPanelVisible",i),ee=m(e,"videoContainer",15),Qe=m(e,"adsSlotId",3,void 0),Xe=m(e,"adsParams",3,void 0),Z=m(e,"adsPreviewParam",3,void 0),Ae=m(e,"adsAutoplayParam",3,void 0),Te=m(e,"duration",3,void 0),Ye=m(e,"logoTargetUrl",3,""),it=m(e,"showNextPrevButtons",3,!1),ht=m(e,"nextButtonActive",3,!1),Pt=m(e,"prevButtonActive",3,!1),ct=m(e,"endScreenVideoTitle",3,void 0),qe=m(e,"endScreenVideoThumb",3,void 0),qt=m(e,"isOneVideoPlaylist",3,!1),Xt=m(e,"showMiniTimer",3,!1),Qt=m(e,"fullScreenTarget",3,void 0),Kt=m(e,"playerStarted",3,!1),ae=m(e,"showEndScreen",3,!0),{notifications$:It,graphIsOpened$:xe}=vo(),he=e.store.getLogger().createComponentLog("Root component"),te=e.store.interfaceLanguage$,Ne=e.store.state.playbackState$,ze=e.store.ads.playbackState,Ve=e.store.state.positionWithScrubbing$,Fe=e.store.state.duration$,Re=e.store.playerPhase,et=e.store.ui.isFullscreen,kt=e.store.ui.controlsVisible,Gt=e.store.ui.isControlsAvailable,ot=e.store.ui.interactiveHideMobileControls,ci=e.store.ui.settingsMenu.visible$,ei=e.store.ui.settingsMenu.openedByBtnKeyboard$,at=e.store.ui.scrubbingInProgress,jt=e.store.ui.volumeChangingInProgress,Gi=e.store.ui.debugPanelVisible,ri=e.store.state.isLoaderVisible,yi=e.store.state.isEnded$,oo=e.store.state.chromecastConnected$,zt=e.store.state.chromecastDeviceName$,ui=e.store.ads.postrollPassed,ji=e.store.state.isLive$,zo=e.store.state.isPlaying$,At=e.store.state.isActiveLive$,wt=e.store.state.isRewindableLive$,Mi=e.store.state.crashed$,Ti=e.store.webApi.annotationsApi,D=e.store.webApi.pictureInPictureApi,Dt=e.store.state.videoSize$,li=e.store.state.currentSubtitle$,_t=e.store.state.currentSubtitleCaptions$,Je=e.store.state.duration$,lt=e.store.ui.playerSize,Yt=e.store.ui.is3DVideo,Vt=e.store.ui.icon3DVideoVisible,Fi=e.store.state.isInteractive,Wo=e.store.state.isInteractiveTime$,ln=e.store.state.isInteractiveExpectation$,Ei=e.store.state.hasInteractiveBranches,$t=e.store.ui.controls.disabledControls$,Ii=e.store.ui.touched,qo=e.store.ui.overlayContainer$,wn=e.store.ui.autoplayNextEnabled$,Ui=e.store.state.loadedMetadata$,Yi=e.store.actions.internal.closeSettingsMenu,ko=(zr=e.store.callbacks)==null?void 0:zr.onDisabledPlayPrevChapterClick,dn=(wr=e.store.callbacks)==null?void 0:wr.onDisabledSeekToInteractiveClick,Hn=e.store.actions.internal.setQuality,pi=j(void 0),Ko=j(void 0),Cn=j(void 0),Qo=j(void 0),no,tr,Hr=g(()=>(n()==="video"&&r()||n()==="ads"&&l()==="inactive")&&!d()),Fn=j(void 0),{closeNotification:ir,notificationsToShow$:Fr}=It,gr=g(()=>!!a().slow_video),cn=()=>ir("slow_video"),or=ne(!1),ro,Go=j(!1),nr=g(()=>p()!==Ws.PlaybackState.PLAYING),Sn=j(!1),rr=g(()=>f()||v()||!s(Go)&&(u()&&!!Ei||s(nr)&&$())),Un=j(!0),sr=g(()=>e.uiConfig.features.thumbTimer&&Xt()&&n()==="video"&&!w()&&!d()&&!Fi&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),zn=j(!1),Tn=g(()=>(ae()||e.showAutoplayNext&&S())&&!!ct()&&!!qe()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!s(zn)),hr=j(!1);D==null||D.setContext(ql());let _r=St=>{St&&!Fi&&nt(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:_r});let br=()=>{clearTimeout(no),B(Go,!1),v()&&ot.set(!1)},nt=St=>{br(),B(Go,!0),no=setTimeout(()=>B(Go,!1),St);let Rt=St-100;ro=setTimeout(()=>{I()&&or.set(!1)},Rt>0?Rt:St)},oi=Yt.subscribe(St=>{Vt.set(St),St&&(clearTimeout(tr),tr=setTimeout(()=>Vt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),En=async(St=Vs())=>{var Rt,fn,Ao,mn,Mo,kn;if(St&&!Ws.clientChecker.device.isIOS){let so=$d(),Pn=go(),Lo=Ws.clientChecker.browser.isSamsungBrowser&&so===e.shadowRootContainer;St=so===Pn||Lo}if(St){nt(e.uiConfig.controls.hideTimeoutFullscreen);try{await(D==null?void 0:D.exit())}catch(so){he({message:String(so)})}try{let so=(Rt=A())!=null&&Rt.width&&((fn=A())!=null&&fn.height)?A():k();await v1(so)}catch(so){he({message:String(so)})}}et.set(St),e.store.getAdmanWrapper().setFullscreen(St),E()?(mn=(Ao=e.store.callbacks)==null?void 0:Ao.onFullscreenEnter)==null||mn.call(Ao):(kn=(Mo=e.store.callbacks)==null?void 0:Mo.onFullscreenExit)==null||kn.call(Mo)},xi=St=>{let Rt=St;lt.set({width:Rt.target.width,height:Rt.target.height})};Ot(()=>{var St;return gu(En),e.uiConfig.features.annotationsInside&&(Ti==null||Ti.init(s(pi))),ha(D)&&(D==null||D.assignPlayerContainer(s(pi)),D==null||D.setExternalEventHandlers({resize:xi})),B(Un,!Ws.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((St=ee().parentElement)==null||St.insertBefore(e.interactiveContainer,ee().nextSibling)),()=>{clearTimeout(no),clearTimeout(ro),clearTimeout(tr),oi(),D==null||D.dispose().catch(Rt=>{he({message:String(Rt)})}),hu(En)}});let Li=j(!0),un=j(!0),pn=St=>{let Rt=R()+(St==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Rt<0?(B(Li,!1),Rt=0):Rt>=G()&&(B(un,!1),Rt=G()),B(Sn,!0),e.seekTime(Rt)},go=()=>Ws.clientChecker.device.isIOS?s(pi):!e.uiConfig.allowChangingFullscreenTarget||!Qt()?e.outerContainerRef:Qt().contains(e.outerContainerRef)?Qt():e.outerContainerRef,Wn=async()=>{try{if(Vs())await vu(document),he({message:"exit fullscreen"});else{if(he({message:"request fullscreen"}),Ws.clientChecker.device.isIOS&&!q())return;await mu(go())}}catch(St){he({message:String(St)})}},ho=()=>{Yi()},Po=St=>{if(St.preventDefault(),W()){ho();return}if(!Kt()){e.firstStart(),nt(e.uiConfig.controls.hideTimeoutCursor);return}B(Sn,!1),w()?br():nt(e.uiConfig.controls.hideTimeoutMobile)},$r=()=>{Ii.set(!0)},as=()=>{Fi||(or.set(!0),nt(e.uiConfig.controls.hideTimeoutCursor))},yr=St=>{ko&&(ko(St),nt(e.uiConfig.controls.hideTimeoutMobile))},Ur=St=>{dn&&(dn(St),nt(e.uiConfig.controls.hideTimeoutMobile))};We(()=>{qo.set(s(Fn))}),We(()=>{kt.set((s(nr)||W()||Q()||X()||Y()||!s(Tn)&&(u()||s(Go)&&!s(Sn)))&&!s(rr)&&n()==="video"&&!d()&&de())}),We(()=>{!Q()&&s(hr)&&!le()&&nt(e.uiConfig.controls.hideTimeoutMobile),B(hr,Q(),!0)}),We(()=>{B(Li,R()>0),B(un,!ve()&&R()<G(),!0)}),We(()=>{Td(s(Qo),W(),Ie(),!0)});let In=U("aria_label_video_player"),xr=U("video360");_0({fullScreenChangeHandler:En,getFullscreenTarget:go}),y0({store:e.store,getFullscreenTarget:go});var _o=Mx();Ct("blur",ta,ho);var ar=_(_o);Oa(ar,{onClick:Po,get videoContainer(){return ee()},set videoContainer(St){ee(St)}});var jo=P(ar,2);la(jo,()=>"slot",!1,(St,Rt)=>{ke(St,()=>({name:Ba}))});var ti=P(jo,2);aa(ti,me,St=>{var Rt=Ax(),fn=fe(Rt);let Ao=g(()=>n()!=="thumb"||d()||Fi&&e.autoplay);Va(fn,{get hidden(){return s(Ao)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var mn=P(fn,2);{var Mo=Ke=>{var Jt=Tx(),$i=fe(Jt);{var $o=yt=>{let vi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Wu(yt,{side:"left",get seekStep(){return s(vi)},handleSingleFirstClick:Po,handleSecondClick:()=>pn("backward")})};V($i,yt=>{s(Li)&&yt($o)})}var Ro=P($i,2);{var Se=yt=>{let vi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Wu(yt,{side:"right",get seekStep(){return s(vi)},handleSingleFirstClick:Po,handleSecondClick:()=>pn("forward")})};V(Ro,yt=>{s(un)&&yt(Se)})}b(Ke,Jt)};V(mn,Ke=>{e.canRewindLive&&wt&&!se().has("TIMELINE")&&Ke(Mo)})}var kn=P(mn,2);{var so=Ke=>{let Jt=g(()=>{var $i;return($i=e.live)==null?void 0:$i.startTime});ec(Ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(Jt)}})};V(kn,Ke=>{n()==="LiveWaitingStart"&&Ke(so)})}var Pn=P(kn,2);{var Lo=Ke=>{Ra(Ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Pn,Ke=>{n()==="LiveWaitingRecover"&&Ke(Lo)})}var lr=P(Pn,2);{var Cr=Ke=>{Ra(Ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(lr,Ke=>{n()==="LiveWaitingRecord"&&Ke(Cr)})}var Wr=P(lr,2);{var ls=Ke=>{var Jt=Ex();let $i;var $o=_(Jt);yd($o,{get adsSlotId(){return Qe()},get adsParams(){return Xe()},get adsPreviewParam(){return Z()},get adsAutoplayParam(){return Ae()},get duration(){return Te()}}),h(Jt),O(Ro=>$i=ie(Jt,1,"ads-container svelte-7yl31d",null,$i,Ro),[()=>({hidden:n()!=="ads"})]),b(Ke,Jt)};V(Wr,Ke=>{e.showAds&&Kt()&&Ke(ls)})}var qr=P(Wr,2);{var ao=Ke=>{let Jt=g(()=>!ae()&&e.showAutoplayNext&&S());Ev(Ke,{get title(){return ct()},get thumb(){return qe()},get isHide(){return s(Jt)},clickCloseIcon:()=>B(zn,!0)})};V(qr,Ke=>{s(Tn)&&ct()&&qe()&&Ke(ao)})}var vn=P(qr,2);{var Sr=Ke=>{Xd(Ke,{})};V(vn,Ke=>{Le()&&Ke(Sr)})}var rt=P(vn,2);{var Mt=Ke=>{var Jt=Ix(),$i=_(Jt);bd($i,{get"aria-label"(){return xr}}),h(Jt),b(Ke,Jt)};V(rt,Ke=>{oe()&&Ke(Mt)})}var mi=P(rt,2);{var lo=Ke=>{Jd(Ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};V(mi,Ke=>{Y()&&Ke(lo)})}var Zi=P(mi,2);{var co=Ke=>{Ma(Ke,{get shifted(){return w()},get captions(){return _e()},get position(){return R()},get playerSize(){return k()},isMobile:!0})};V(Zi,Ke=>{He().value!=="off"&&Ke(co)})}var uo=P(Zi,2);{var Zo=Ke=>{var Jt=kx();Jt.__click=[Sx,W,ci,ho];var $i=_(Jt);La($i,{}),h(Jt),b(Ke,Jt)};V(uo,Ke=>{d()&&Ke(Zo)})}var Xo=P(uo,2);{var An=Ke=>{let Jt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),$i=g(()=>n()==="ads"),$o=g(()=>e.canRewindLive&&ge()!==0);Zd(Ke,{get bottomHidden(){return s(Jt)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return s($i)},get canRewindLive(){return s($o)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ye()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return it()},get nextButtonActive(){return ht()},get prevButtonActive(){return Pt()},get isOneVideoPlaylist(){return qt()},get customFullscreenSupported(){return s(Un)},get endScreenShown(){return s(Tn)},toggleFullscreen:Wn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:yr,onDisabledSeekToInteractiveClick:Ur,get playerControlsWrapperRef(){return s(Ko)},set playerControlsWrapperRef(Ro){B(Ko,Ro,!0)},get playerControlsRef(){return s(Cn)},set playerControlsRef(Ro){B(Cn,Ro,!0)}})};V(Xo,Ke=>{Kt()&&Ke(An)})}var po=P(Xo,2);{var Xi=Ke=>{var Jt=Px(),$i=_(Jt);nc($i,{get supportLink(){return e.supportLink},get returnFocus(){return x0.noop},get ref(){return s(Qo)},set ref($o){B(Qo,$o,!0)}}),h(Jt),b(Ke,Jt)};V(po,Ke=>{W()&&Ke(Xi)})}var bo=P(po,2);let dr=g(()=>!s(sr));Cd(bo,{get isLive(){return ce()},get isHidden(){return s(dr)},get isPlaying(){return ue()},get position(){return R()},get duration(){return G()}});var qn=P(bo,2);{var cr=Ke=>{xa(Ke,{})};V(qn,Ke=>{s(Hr)&&Ke(cr)})}var Kr=P(qn,2);{var Qr=Ke=>{Id(Ke,{})};V(Kr,Ke=>{pe()&&Ke(Qr)})}var Vo=P(Kr,2);{var Jo=Ke=>{rc(Ke,{onClose:cn,onSelectAutoQuality:()=>{Hn("auto"),cn()}})};V(Vo,Ke=>{s(gr)&&Ke(Jo)})}b(St,Rt)});var Yo=P(ti,2);st(Yo,St=>B(Fn,St),()=>s(Fn)),h(_o),st(_o,St=>B(pi,St),()=>s(pi)),O(()=>De(_o,"aria-label",In)),Ct("click",_o,$r,!0),Ct("focusin",_o,as,!0),b(t,_o),F(),o()}pt(["click"]);function Ku(t){let e="";return Ki(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Ki(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Ki(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Ki(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Ki(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Ki(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Ki(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Ki(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Ki(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Ki(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Ki(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Ki(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Ki(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Ki(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Ki(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Ki(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Ki(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Ki(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Ki(t.font)&&(e+=`--font:${t.font};`),Ki(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Ki(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Ki(t){return typeof t=="string"&&!t.includes(";")}var w0=require("@vkontakte/videoplayer-shared/es2018");var Vx=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Rx={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function kv(t,e){H(e,!0),z(t,Rx);let[i,o]=Oe(),n=()=>C(X,"$playerSize",i),r=()=>C(E,"$isPlaying$",i),l=()=>C(A,"$duration$",i),d=()=>C(q,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),p=()=>C(I,"$crashed$",i),f=()=>C(R,"$currentSubtitle$",i),v=()=>C(G,"$currentSubtitleCaptions$",i),u=()=>C(k,"$positionExact$",i),$=()=>C(W,"$isLive$",i),w=()=>C(Q,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:A,positionExact$:k,isPlaying$:E,currentSubtitle$:R,currentSubtitleCaptions$:G,positionWithScrubbing$:q,isLive$:W,isRewindableLive$:Q},ui:{playerSize:X,controls:Y},actions:{internal:{getVideoElement:de}}}=Ee(),le=8,ve=j(!1),Ie=ni({}),me=()=>{B(ve,!0)},se=()=>{B(ve,!1)},Le=(0,w0.debounceFn)(Sl,260);We(()=>{n(),Le(de(),Y,Ie,s(ve))});let oe=g(()=>r()?yn(l()-d()):yn(isFinite(l())?l():y()));var N=Vx(),He=_(N);Oa(He,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Te){S(Te)}});var _e=P(He,2);la(_e,()=>"slot",!1,(Te,Ye)=>{ke(Te,()=>({name:Ba}))});var ge=P(_e,2);let ce=g(()=>a()!=="thumb"||p());Va(ge,{get hidden(){return s(ce)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ue=P(ge,2);{var pe=Te=>{Ma(Te,{shifted:!1,get captions(){return v()},get position(){return u()},get playerSize(){return n()}})};V(ue,Te=>{f().value!=="off"&&Te(pe)})}var ee=P(ue,2),Qe=_(ee);wd(Qe,{get isLive(){return $()},get isPlaying(){return r()},get time(){return s(oe)}}),h(ee);var Xe=P(ee,2);let Z;var Ae=_(Xe);Ta(Ae,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:le,tooltipRightOffset:le,get ref(){return Ie.timeline},set ref(Te){Ie.timeline=Te}}),h(Xe),h(N),O(Te=>Z=ie(Xe,1,"timeline svelte-1qfjf44",null,Z,Te),[()=>({visible:s(ve)})]),Ct("mouseenter",N,me),Ct("mouseleave",N,se),b(t,N),F(),o()}var Nx=M("<div><!></div>"),Bx={hash:"svelte-16kg8zb",code:`.root.svelte-16kg8zb {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
357
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Wu(t,e){D(e,!0),z(t,xx);let i=m(e,"seekStep",3,0),o=j(!1),n=0,r=0,l=j(oi(i())),d=v=>{v.stopPropagation(),r+=1,B(l,i()*(r-1)),r===1?e.handleSingleFirstClick(v):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{r=0,B(o,!1)},300)};On(()=>{window.clearTimeout(n)});var a=yx();a.__click=d;var p=_(a);{var f=v=>{var u=$x(),$=fe(u),w=P($,2),y=_(w),S=_(y),T=P(S,2),I=P(T,2);h(y);var A=P(y,2),k=_(A,!0);h(A),h(w),O(E=>{var R,Q,q,W;oe($,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),oe(S,1,`triangle ${(Q=e.side)!=null?Q:""}`,"svelte-nhq2ld"),oe(T,1,`triangle ${(q=e.side)!=null?q:""}`,"svelte-nhq2ld"),oe(I,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),$e(k,E)},[()=>F("doubletap_seek_step",{seconds:s(l).toFixed(0)})]),b(v,u)};V(p,v=>{s(o)&&v(f)})}h(a),O(()=>{var v;return oe(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),H()}ut(["click"]);var wx=(t,e,i)=>{e(!1),i()},Cx=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),Sx={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Ev(t,e){D(e,!0),z(t,Sx);let[i,o]=Oe(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),$()};Ot(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Fe(),T=fe(S);{var I=A=>{var k=Cx(),E=P(fe(k),2),R=_(E),Q=_(R),q=_(Q,!0);h(Q);var W=P(Q,2);ya(W,{onClick:y}),h(R);var G=P(R,2);G.__click=[wx,p,v];var X=_(G),Y=_(X),ce=_(Y);let le;var me=P(ce,2);{var ke=ne=>{kd(ne,{get isRunning(){return r()},onTimerEnded:w})};V(me,ne=>{n()&&ne(ke)})}h(Y),h(X);var ve=P(X,2),ae=_(ve),Ve=_(ae,!0);h(ae),h(ve),h(G),h(E),O((ne,N)=>{$e(q,ne),dt(Y,`background-image: url('${e.thumb}')`),le=oe(ce,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(A,k)};V(T,A=>{e.isHide||A(I)})}b(t,S),H(),o()}ut(["click"]);var _0=require("@vkontakte/videoplayer-core/es2018");var b0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ot(()=>{_0.clientChecker.device.isIOS&&(o=setTimeout(()=>{let r=t().querySelector("video");if(!r)return;let l=()=>e(!0),d=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",d),i=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",d)}},0))}),On(()=>{i==null||i(),clearTimeout(o)})};var $0=require("@vkontakte/videoplayer-core/es2018");var qu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var y0=require("@vkontakte/videoplayer-core/es2018"),x0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:r,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,p=()=>e().querySelector("video"),f=()=>y0.clientChecker.device.isIOS&&ye(l)===$0.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},u=$=>{if(v(),!f()||!$)return;let w=p();if(!w)return;let y=new qu(w),S=ye(d),T=ye(r),I=ye(n);for(let E of S)T.some(Q=>Q.value===E.id)&&y.attach(E,I.value===E.id);let A=d.subscribe(E=>{for(let R of E)y.updateSrc(R)}),k=()=>{let E=y.getCurrentShowingId();o(ye(r).find(R=>R.value===E))};w.textTracks.addEventListener("change",k),a=()=>{A(),y.detachAll(),w.textTracks.removeEventListener("change",k)}};Ot(()=>i.subscribe(u)),On(v)};var Tx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Ex=M("<!> <!>",1),Ix=M("<div><!></div>"),kx=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Px=M("<div><!></div>"),Ax=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Mx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Lx=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Vx={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Iv(t,e){var zr,wr;D(e,!0),z(t,Vx);let[i,o]=Oe(),n=()=>C(Re,"$playerPhase",i),r=()=>C(fi,"$isLoaderVisible",i),l=()=>C(ze,"$adPlaybackState",i),d=()=>C(Uo,"$crashed",i),a=()=>C(Fr,"$notificationsToShow$",i),p=()=>C(Be,"$playbackState$",i),f=()=>C(xe,"$graphIsOpened$",i),v=()=>C(Je,"$interactiveHideMobileControls",i),u=()=>C(fo,"$isEnded$",i),$=()=>C(ln,"$isInteractiveExpectation$",i),w=()=>C(Lt,"$controlsVisible",i),y=()=>C(ki,"$touched",i),S=()=>C(wn,"$autoplayNextEnabled$",i),T=()=>C(ni,"$postrollPassed",i),I=()=>C(or,"$bottomNoSmooth",i),A=()=>C(mi,"$videoSize",i),k=()=>C(vt,"$playerSize",i),E=()=>C(et,"$isFullscreen",i),R=()=>C(Me,"$position$",i),Q=()=>C(We,"$duration$",i),q=()=>C(Fi,"$loadedMetadata",i),W=()=>C(pi,"$settingsMenuVisible",i),G=()=>C(at,"$scrubbingInProgress",i),X=()=>C(Gt,"$volumeChangingInProgress",i),Y=()=>C(Qi,"$chromecastConnected$",i),ce=()=>C(Kt,"$isControlsAvailable",i),le=()=>C(zo,"$isInteractiveTime$",i),me=()=>C($t,"$isActiveLive",i),ke=()=>C(ti,"$settingsMenuOpenedByKeyboard",i),ve=()=>C(ie,"$language$",i),ae=()=>C(xt,"$disabledControls$",i),Ve=()=>C(yi,"$is3DVideo",i),ne=()=>C(kt,"$icon3DVideoVisible",i),N=()=>C(Qt,"$chromecastDeviceName$",i),He=()=>C(di,"$currentSubtitle$",i),_e=()=>C(pt,"$currentSubtitleCaptions$",i),ge=()=>C(st,"$realDuration$",i),de=()=>C(Fo,"$isLive$",i),ue=()=>C(Dt,"$isPlaying$",i),pe=()=>C(ri,"$debugPanelVisible",i),te=m(e,"videoContainer",15),qe=m(e,"adsSlotId",3,void 0),Xe=m(e,"adsParams",3,void 0),Z=m(e,"adsPreviewParam",3,void 0),Ae=m(e,"adsAutoplayParam",3,void 0),Te=m(e,"duration",3,void 0),Ye=m(e,"logoTargetUrl",3,""),it=m(e,"showNextPrevButtons",3,!1),bt=m(e,"nextButtonActive",3,!1),gt=m(e,"prevButtonActive",3,!1),St=m(e,"endScreenVideoTitle",3,void 0),Qe=m(e,"endScreenVideoThumb",3,void 0),zt=m(e,"isOneVideoPlaylist",3,!1),Xt=m(e,"showMiniTimer",3,!1),Yt=m(e,"fullScreenTarget",3,void 0),Wt=m(e,"playerStarted",3,!1),ee=m(e,"showEndScreen",3,!0),{notifications$:Bt,graphIsOpened$:xe}=po(),he=e.store.getLogger().createComponentLog("Root component"),ie=e.store.interfaceLanguage$,Be=e.store.state.playbackState$,ze=e.store.ads.playbackState,Me=e.store.state.positionWithScrubbing$,We=e.store.state.duration$,Re=e.store.playerPhase,et=e.store.ui.isFullscreen,Lt=e.store.ui.controlsVisible,Kt=e.store.ui.isControlsAvailable,Je=e.store.ui.interactiveHideMobileControls,pi=e.store.ui.settingsMenu.visible$,ti=e.store.ui.settingsMenu.openedByBtnKeyboard$,at=e.store.ui.scrubbingInProgress,Gt=e.store.ui.volumeChangingInProgress,ri=e.store.ui.debugPanelVisible,fi=e.store.state.isLoaderVisible,fo=e.store.state.isEnded$,Qi=e.store.state.chromecastConnected$,Qt=e.store.state.chromecastDeviceName$,ni=e.store.ads.postrollPassed,Fo=e.store.state.isLive$,Dt=e.store.state.isPlaying$,$t=e.store.state.isActiveLive$,Ei=e.store.state.isRewindableLive$,Uo=e.store.state.crashed$,U=e.store.webApi.annotationsApi,lt=e.store.webApi.pictureInPictureApi,mi=e.store.state.videoSize$,di=e.store.state.currentSubtitle$,pt=e.store.state.currentSubtitleCaptions$,st=e.store.state.duration$,vt=e.store.ui.playerSize,yi=e.store.ui.is3DVideo,kt=e.store.ui.icon3DVideoVisible,an=e.store.state.isInteractive,zo=e.store.state.isInteractiveTime$,ln=e.store.state.isInteractiveExpectation$,Ii=e.store.state.hasInteractiveBranches,xt=e.store.ui.controls.disabledControls$,ki=e.store.ui.touched,Wo=e.store.ui.overlayContainer$,wn=e.store.ui.autoplayNextEnabled$,Fi=e.store.state.loadedMetadata$,Gi=e.store.actions.internal.closeSettingsMenu,Eo=(zr=e.store.callbacks)==null?void 0:zr.onDisabledPlayPrevChapterClick,dn=(wr=e.store.callbacks)==null?void 0:wr.onDisabledSeekToInteractiveClick,Hn=e.store.actions.internal.setQuality,ci=j(void 0),qo=j(void 0),Cn=j(void 0),Ko=j(void 0),to,tr,Hr=g(()=>(n()==="video"&&r()||n()==="ads"&&l()==="inactive")&&!d()),Fn=j(void 0),{closeNotification:ir,notificationsToShow$:Fr}=Bt,gr=g(()=>!!a().slow_video),cn=()=>ir("slow_video"),or=re(!1),io,Qo=j(!1),nr=g(()=>p()!==Ws.PlaybackState.PLAYING),Sn=j(!1),rr=g(()=>f()||v()||!s(Qo)&&(u()&&!!Ii||s(nr)&&$())),Un=j(!0),sr=g(()=>e.uiConfig.features.thumbTimer&&Xt()&&n()==="video"&&!w()&&!d()&&!an&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),zn=j(!1),Tn=g(()=>(ee()||e.showAutoplayNext&&S())&&!!St()&&!!Qe()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!s(zn)),hr=j(!1);lt==null||lt.setContext(ql());let _r=Et=>{Et&&!an&&ot(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:_r});let br=()=>{clearTimeout(to),B(Qo,!1),v()&&Je.set(!1)},ot=Et=>{br(),B(Qo,!0),to=setTimeout(()=>B(Qo,!1),Et);let Vt=Et-100;io=setTimeout(()=>{I()&&or.set(!1)},Vt>0?Vt:Et)},ii=yi.subscribe(Et=>{kt.set(Et),Et&&(clearTimeout(tr),tr=setTimeout(()=>kt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),En=async(Et=Vs())=>{var Vt,fn,ko,mn,Po,kn;if(Et&&!Ws.clientChecker.device.isIOS){let oo=$d(),Pn=mo(),Ao=Ws.clientChecker.browser.isSamsungBrowser&&oo===e.shadowRootContainer;Et=oo===Pn||Ao}if(Et){ot(e.uiConfig.controls.hideTimeoutFullscreen);try{await(lt==null?void 0:lt.exit())}catch(oo){he({message:String(oo)})}try{let oo=(Vt=A())!=null&&Vt.width&&((fn=A())!=null&&fn.height)?A():k();await g1(oo)}catch(oo){he({message:String(oo)})}}et.set(Et),e.store.getAdmanWrapper().setFullscreen(Et),E()?(mn=(ko=e.store.callbacks)==null?void 0:ko.onFullscreenEnter)==null||mn.call(ko):(kn=(Po=e.store.callbacks)==null?void 0:Po.onFullscreenExit)==null||kn.call(Po)},wi=Et=>{let Vt=Et;vt.set({width:Vt.target.width,height:Vt.target.height})};Ot(()=>{var Et;return gu(En),e.uiConfig.features.annotationsInside&&(U==null||U.init(s(ci))),ha(lt)&&(lt==null||lt.assignPlayerContainer(s(ci)),lt==null||lt.setExternalEventHandlers({resize:wi})),B(Un,!Ws.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((Et=te().parentElement)==null||Et.insertBefore(e.interactiveContainer,te().nextSibling)),()=>{clearTimeout(to),clearTimeout(io),clearTimeout(tr),ii(),lt==null||lt.dispose().catch(Vt=>{he({message:String(Vt)})}),hu(En)}});let Li=j(!0),un=j(!0),pn=Et=>{let Vt=R()+(Et==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Vt<0?(B(Li,!1),Vt=0):Vt>=Q()&&(B(un,!1),Vt=Q()),B(Sn,!0),e.seekTime(Vt)},mo=()=>Ws.clientChecker.device.isIOS?s(ci):!e.uiConfig.allowChangingFullscreenTarget||!Yt()?e.outerContainerRef:Yt().contains(e.outerContainerRef)?Yt():e.outerContainerRef,Wn=async()=>{try{if(Vs())await vu(document),he({message:"exit fullscreen"});else{if(he({message:"request fullscreen"}),Ws.clientChecker.device.isIOS&&!q())return;await mu(mo())}}catch(Et){he({message:String(Et)})}},vo=()=>{Gi()},Io=Et=>{if(Et.preventDefault(),W()){vo();return}if(!Wt()){e.firstStart(),ot(e.uiConfig.controls.hideTimeoutCursor);return}B(Sn,!1),w()?br():ot(e.uiConfig.controls.hideTimeoutMobile)},$r=()=>{ki.set(!0)},as=()=>{an||(or.set(!0),ot(e.uiConfig.controls.hideTimeoutCursor))},yr=Et=>{Eo&&(Eo(Et),ot(e.uiConfig.controls.hideTimeoutMobile))},Ur=Et=>{dn&&(dn(Et),ot(e.uiConfig.controls.hideTimeoutMobile))};Ue(()=>{Wo.set(s(Fn))}),Ue(()=>{Lt.set((s(nr)||W()||G()||X()||Y()||!s(Tn)&&(u()||s(Qo)&&!s(Sn)))&&!s(rr)&&n()==="video"&&!d()&&ce())}),Ue(()=>{!G()&&s(hr)&&!le()&&ot(e.uiConfig.controls.hideTimeoutMobile),B(hr,G(),!0)}),Ue(()=>{B(Li,R()>0),B(un,!me()&&R()<Q(),!0)}),Ue(()=>{Td(s(Ko),W(),ke(),!0)});let In=F("aria_label_video_player"),xr=F("video360");b0({fullScreenChangeHandler:En,getFullscreenTarget:mo}),x0({store:e.store,getFullscreenTarget:mo});var go=Lx();Tt("blur",ta,vo);var ar=_(go);Oa(ar,{onClick:Io,get videoContainer(){return te()},set videoContainer(Et){te(Et)}});var Go=P(ar,2);la(Go,()=>"slot",!1,(Et,Vt)=>{Ie(Et,()=>({name:Ba}))});var Jt=P(Go,2);aa(Jt,ve,Et=>{var Vt=Mx(),fn=fe(Vt);let ko=g(()=>n()!=="thumb"||d()||an&&e.autoplay);Va(fn,{get hidden(){return s(ko)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var mn=P(fn,2);{var Po=Ke=>{var Zt=Ex(),xi=fe(Zt);{var _o=wt=>{let gi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Wu(wt,{side:"left",get seekStep(){return s(gi)},handleSingleFirstClick:Io,handleSecondClick:()=>pn("backward")})};V(xi,wt=>{s(Li)&&wt(_o)})}var Lo=P(xi,2);{var Se=wt=>{let gi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Wu(wt,{side:"right",get seekStep(){return s(gi)},handleSingleFirstClick:Io,handleSecondClick:()=>pn("forward")})};V(Lo,wt=>{s(un)&&wt(Se)})}b(Ke,Zt)};V(mn,Ke=>{e.canRewindLive&&Ei&&!ae().has("TIMELINE")&&Ke(Po)})}var kn=P(mn,2);{var oo=Ke=>{let Zt=g(()=>{var xi;return(xi=e.live)==null?void 0:xi.startTime});ec(Ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(Zt)}})};V(kn,Ke=>{n()==="LiveWaitingStart"&&Ke(oo)})}var Pn=P(kn,2);{var Ao=Ke=>{Ra(Ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Pn,Ke=>{n()==="LiveWaitingRecover"&&Ke(Ao)})}var lr=P(Pn,2);{var Cr=Ke=>{Ra(Ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(lr,Ke=>{n()==="LiveWaitingRecord"&&Ke(Cr)})}var Wr=P(lr,2);{var ls=Ke=>{var Zt=Ix();let xi;var _o=_(Zt);yd(_o,{get adsSlotId(){return qe()},get adsParams(){return Xe()},get adsPreviewParam(){return Z()},get adsAutoplayParam(){return Ae()},get duration(){return Te()}}),h(Zt),O(Lo=>xi=oe(Zt,1,"ads-container svelte-7yl31d",null,xi,Lo),[()=>({hidden:n()!=="ads"})]),b(Ke,Zt)};V(Wr,Ke=>{e.showAds&&Wt()&&Ke(ls)})}var qr=P(Wr,2);{var no=Ke=>{let Zt=g(()=>!ee()&&e.showAutoplayNext&&S());Ev(Ke,{get title(){return St()},get thumb(){return Qe()},get isHide(){return s(Zt)},clickCloseIcon:()=>B(zn,!0)})};V(qr,Ke=>{s(Tn)&&St()&&Qe()&&Ke(no)})}var vn=P(qr,2);{var Sr=Ke=>{Xd(Ke,{})};V(vn,Ke=>{Ve()&&Ke(Sr)})}var nt=P(vn,2);{var At=Ke=>{var Zt=kx(),xi=_(Zt);bd(xi,{get"aria-label"(){return xr}}),h(Zt),b(Ke,Zt)};V(nt,Ke=>{ne()&&Ke(At)})}var vi=P(nt,2);{var ro=Ke=>{Jd(Ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};V(vi,Ke=>{Y()&&Ke(ro)})}var ji=P(vi,2);{var so=Ke=>{Ma(Ke,{get shifted(){return w()},get captions(){return _e()},get position(){return R()},get playerSize(){return k()},isMobile:!0})};V(ji,Ke=>{He().value!=="off"&&Ke(so)})}var ao=P(ji,2);{var Yo=Ke=>{var Zt=Px();Zt.__click=[Tx,W,pi,vo];var xi=_(Zt);La(xi,{}),h(Zt),b(Ke,Zt)};V(ao,Ke=>{d()&&Ke(Yo)})}var Zo=P(ao,2);{var An=Ke=>{let Zt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),xi=g(()=>n()==="ads"),_o=g(()=>e.canRewindLive&&ge()!==0);Zd(Ke,{get bottomHidden(){return s(Zt)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return s(xi)},get canRewindLive(){return s(_o)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ye()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return it()},get nextButtonActive(){return bt()},get prevButtonActive(){return gt()},get isOneVideoPlaylist(){return zt()},get customFullscreenSupported(){return s(Un)},get endScreenShown(){return s(Tn)},toggleFullscreen:Wn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:yr,onDisabledSeekToInteractiveClick:Ur,get playerControlsWrapperRef(){return s(qo)},set playerControlsWrapperRef(Lo){B(qo,Lo,!0)},get playerControlsRef(){return s(Cn)},set playerControlsRef(Lo){B(Cn,Lo,!0)}})};V(Zo,Ke=>{Wt()&&Ke(An)})}var lo=P(Zo,2);{var Yi=Ke=>{var Zt=Ax(),xi=_(Zt);nc(xi,{get supportLink(){return e.supportLink},get returnFocus(){return w0.noop},get ref(){return s(Ko)},set ref(_o){B(Ko,_o,!0)}}),h(Zt),b(Ke,Zt)};V(lo,Ke=>{W()&&Ke(Yi)})}var ho=P(lo,2);let dr=g(()=>!s(sr));Cd(ho,{get isLive(){return de()},get isHidden(){return s(dr)},get isPlaying(){return ue()},get position(){return R()},get duration(){return Q()}});var qn=P(ho,2);{var cr=Ke=>{xa(Ke,{})};V(qn,Ke=>{s(Hr)&&Ke(cr)})}var Kr=P(qn,2);{var Qr=Ke=>{Id(Ke,{})};V(Kr,Ke=>{pe()&&Ke(Qr)})}var Mo=P(Kr,2);{var Xo=Ke=>{rc(Ke,{onClose:cn,onSelectAutoQuality:()=>{Hn("auto"),cn()}})};V(Mo,Ke=>{s(gr)&&Ke(Xo)})}b(Et,Vt)});var jo=P(Jt,2);rt(jo,Et=>B(Fn,Et),()=>s(Fn)),h(go),rt(go,Et=>B(ci,Et),()=>s(ci)),O(()=>De(go,"aria-label",In)),Tt("click",go,$r,!0),Tt("focusin",go,as,!0),b(t,go),H(),o()}ut(["click"]);function Ku(t){let e="";return qi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),qi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),qi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),qi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),qi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),qi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),qi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),qi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),qi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),qi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),qi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),qi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),qi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),qi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),qi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),qi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),qi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),qi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),qi(t.font)&&(e+=`--font:${t.font};`),qi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),qi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function qi(t){return typeof t=="string"&&!t.includes(";")}var C0=require("@vkontakte/videoplayer-shared/es2018");var Rx=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Nx={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function kv(t,e){D(e,!0),z(t,Nx);let[i,o]=Oe(),n=()=>C(X,"$playerSize",i),r=()=>C(E,"$isPlaying$",i),l=()=>C(A,"$duration$",i),d=()=>C(q,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),p=()=>C(I,"$crashed$",i),f=()=>C(R,"$currentSubtitle$",i),v=()=>C(Q,"$currentSubtitleCaptions$",i),u=()=>C(k,"$positionExact$",i),$=()=>C(W,"$isLive$",i),w=()=>C(G,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:A,positionExact$:k,isPlaying$:E,currentSubtitle$:R,currentSubtitleCaptions$:Q,positionWithScrubbing$:q,isLive$:W,isRewindableLive$:G},ui:{playerSize:X,controls:Y},actions:{internal:{getVideoElement:ce}}}=Ee(),le=8,me=j(!1),ke=oi({}),ve=()=>{B(me,!0)},ae=()=>{B(me,!1)},Ve=(0,C0.debounceFn)(Sl,260);Ue(()=>{n(),Ve(ce(),Y,ke,s(me))});let ne=g(()=>r()?yn(l()-d()):yn(isFinite(l())?l():y()));var N=Rx(),He=_(N);Oa(He,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Te){S(Te)}});var _e=P(He,2);la(_e,()=>"slot",!1,(Te,Ye)=>{Ie(Te,()=>({name:Ba}))});var ge=P(_e,2);let de=g(()=>a()!=="thumb"||p());Va(ge,{get hidden(){return s(de)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ue=P(ge,2);{var pe=Te=>{Ma(Te,{shifted:!1,get captions(){return v()},get position(){return u()},get playerSize(){return n()}})};V(ue,Te=>{f().value!=="off"&&Te(pe)})}var te=P(ue,2),qe=_(te);wd(qe,{get isLive(){return $()},get isPlaying(){return r()},get time(){return s(ne)}}),h(te);var Xe=P(te,2);let Z;var Ae=_(Xe);Ta(Ae,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:le,tooltipRightOffset:le,get ref(){return ke.timeline},set ref(Te){ke.timeline=Te}}),h(Xe),h(N),O(Te=>Z=oe(Xe,1,"timeline svelte-1qfjf44",null,Z,Te),[()=>({visible:s(me)})]),Tt("mouseenter",N,ve),Tt("mouseleave",N,ae),b(t,N),H(),o()}var Bx=M("<div><!></div>"),Ox={hash:"svelte-16kg8zb",code:`.root.svelte-16kg8zb {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
358
358
 
359
359
  /* USER DEFINED COLORS */
360
360
 
@@ -387,5 +387,5 @@ Try switching the\xA0quality to\xA0Auto.`},c1=rb;var hs=new Map;hs.set(pl.Interf
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;}.out-of-flow {content-visibility:hidden !important;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
389
389
 
390
- /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Pv(t,e){H(e,!0),z(t,Bx);let[i,o]=Oe(),n=()=>C(Qt,"$isLive$",i),r=()=>C(ui,"$availableSubtitlesList$",i),l=m(e,"sources",7),d=m(e,"store",7),a=m(e,"microStoresRoot",7),p=m(e,"videoConfig",7),f=m(e,"uiConfig",7),v=m(e,"title",7),u=m(e,"thumbUrl",7),$=m(e,"interactiveContainer",7),w=m(e,"interactiveController",7),y=m(e,"subtitles",7),S=m(e,"subtitlesDefault",7),T=m(e,"live",7),I=m(e,"preload",7),A=m(e,"autoplay",7),k=m(e,"volume",7,void 0),E=m(e,"muted",7,void 0),R=m(e,"fromTime",7),G=m(e,"canRewindLive",7),q=m(e,"showAds",7),W=m(e,"adsSlotId",7,void 0),Q=m(e,"adsParams",7,void 0),X=m(e,"adsPreviewParam",7,void 0),Y=m(e,"adsAutoplayParam",7,void 0),de=m(e,"duration",7,void 0),le=m(e,"logoClickable",7),ve=m(e,"logoHidden",7),Ie=m(e,"isMobile",7),me=m(e,"showNextPrevButtons",7,!1),se=m(e,"nextButtonActive",7,!1),Le=m(e,"prevButtonActive",7,!1),oe=m(e,"endScreenVideoTitle",7,void 0),N=m(e,"endScreenVideoThumb",7,void 0),He=m(e,"isOneVideoPlaylist",7,!1),_e=m(e,"supportLink",7),ge=m(e,"shadowRootContainer",7),ce=m(e,"outerContainerRef",7),ue=m(e,"fullScreenTarget",7,void 0),pe=m(e,"failoverHosts",7,void 0),ee=m(e,"showMiniTimer",7,!1),Qe=m(e,"saveRate",7),Xe=m(e,"seekToInteractive",7,Da.noop),Z=m(e,"playPrevChapter",7,Da.noop),Ae=m(e,"volumeMultiplier",7),Te=m(e,"showAutoplayNext",7),Ye=m(e,"showEndScreen",7,!0),it=m(e,"keyboardControls",15,void 0),{subscribers:ht,stores:Pt}=a();Ih(f());let ct=Et(),qe=f().logoLink,qt=d().ui.debugPanelVisible,Xt=d().ui.playerSize,Qt=d().state.isLive$,ae=d().state.isInteractive&&Pl.clientChecker.device.isAndroid,It=j(void 0),xe=null,he=j(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),Dh(d(),Pt),We(()=>{var D,Dt;d().ui.isMobile.set(Ie()),(Dt=(D=p().callbacks)==null?void 0:D.onDomReady)==null||Dt.call(D)});let te=(D=!1)=>{B(he,!0),D?d().actions.external.firstStart(q()):d().actions.internal.firstStart(q())},Ne=()=>{if(ct.features.qualityDetailsSubMenuEnabled){let D=s1(d().videoId);if(D)switch(D.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,D.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,D.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(D.quality);break}}else{a1(d().videoId),mf()&&d().actions.internal.setTrafficSavingEnabled(!0);let Dt=cf(d().videoId);Dt&&d().actions.internal.setQuality(Dt)}};function ze(D){var lt,Yt,Vt;let Dt=l()||D;Dt&&d().initVideo({container:s(It),sources:Dt,failoverHosts:pe(),subtitles:y(),volumeMultiplier:Ae()});let li=Da.safeStorage.get(fd)==="true";qt.set(li),R()>0&&d().actions.external.seekTime(R());let _t=Ie()?ct.volumeDefault:(Yt=(lt=k())!=null?lt:su())!=null?Yt:ct.volumeDefault,Je=(Vt=E())!=null?Vt:e1();if(d().actions.external.setVolume(_t),d().actions.external.setMuted(Je),d().getAdmanWrapper().setInitialVolume(Je?0:_t),Ne(),ct.features.saveRate&&Qe()){let Fi=o1();Fi&&!n()&&d().actions.internal.setPlaybackRate(Fi)}if(Te()){let Fi=r1();Fi&&d().actions.internal.setAutoplayNextEnabled(Fi)}d().ui.isAutoplay.set(A()),A()?te():I()&&ct.features.preload&&d().actions.internal.preload()}let Ve=D=>{if(window.ResizeObserver){let Dt,li;xe=new ResizeObserver((0,Da.throttleFn)(_t=>{let Je=_t[0];if(Je.contentBoxSize){let lt=Array.isArray(Je.contentBoxSize)?Je.contentBoxSize[0]:Je.contentBoxSize;Dt=lt.inlineSize,li=lt.blockSize}else Je.contentRect&&(Dt=Je.contentRect.width,li=Je.contentRect.height);Xt.set({width:Dt,height:li})},300)),xe.observe(D)}Xt.set({width:D.clientWidth,height:D.clientHeight})},Fe=()=>{document.hidden&&d().actions.external.stop()};Ot(()=>{var li,_t,Je,lt;ae&&document.addEventListener("visibilitychange",Fe),ct.debugLog&&d().actions.internal.startLogging(),Ve(s(It));let D=ht.map(Yt=>Yt.init({store:d(),microStores:Pt,config:p(),interactiveController:w(),uiConfig:f()})),Dt=()=>{ae&&document.removeEventListener("visibilitychange",Fe),xe==null||xe.disconnect(),D.forEach(Yt=>Yt.unsubscribe()),d().destroy()};return((li=T())==null?void 0:li.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),Dt):((_t=T())==null?void 0:_t.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),Dt):(((Je=T())==null?void 0:Je.status)==="finished"||((lt=T())==null?void 0:lt.status)==="postlive")&&!(l()&&(0,Pl.areValidLiveRecordSources)(l()))?(d().actions.internal.setLiveWaitingRecord(!0),Dt):(ze(),Dt)});function Re(){s(he)?d().actions.external.play():te(!0)}function et(){d().actions.external.pause()}function kt(D){d().actions.external.setMuted(D)}function Gt(){d().actions.external.toggleSubtitle()}function ot(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.hideControls()}function ci(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.showControls()}function ei(D){Ie()||D>=0&&D<=1&&d().actions.external.setVolume(D)}function at(D){d().actions.internal.seekTime(D,C0.SeekAction.UNKNOWN)}function jt(D){d().actions.external.seekEpisodeStartTime(D)}function Gi(){d().actions.external.returnFocusToEpisodes()}function ri(D){d().actions.external.setPlaybackRate(D)}function yi(D){d().actions.external.setAutoQualityLimits(D)}let oo=Ku(ct.view),zt=p().playerView==="preview",ui=d().state.availableSubtitlesList$;if(ct.features.initSubtitles){let D=!1;We(()=>{var Dt;if(!D&&r().length){D=!0;let li;if(ct.features.userVideoPrefs&&d().videoId){let Je=du(ct.userSalt,String(d().videoId));Je!=null&&Je.subtitleTrackId&&(li=r().find(lt=>lt.value===Je.subtitleTrackId))}let _t=(Dt=gf())!=null?Dt:S();_t&&(li!=null||(li=r().find(Je=>Je.language===_t))),d().actions.internal.setSubtitle(li)}})}var ji=Nx();let zo;var At=_(ji);{var wt=D=>{Iv(D,{get store(){return d()},get uiConfig(){return ct},get thumbUrl(){return u()},get interactiveContainer(){return $()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return G()},get showAds(){return q()},get adsSlotId(){return W()},get adsParams(){return Q()},get adsPreviewParam(){return X()},get adsAutoplayParam(){return Y()},get duration(){return de()},get logoClickable(){return le()},get logoHidden(){return ve()},get logoTargetUrl(){return qe},get nextButtonActive(){return se()},get prevButtonActive(){return Le()},get endScreenVideoTitle(){return oe()},get endScreenVideoThumb(){return N()},get isOneVideoPlaylist(){return He()},get supportLink(){return _e()},get shadowRootContainer(){return ge()},get outerContainerRef(){return ce()},get fullScreenTarget(){return ue()},get showMiniTimer(){return ee()},get playerStarted(){return s(he)},get seekToInteractive(){return Xe()},get playPrevChapter(){return Z()},firstStart:te,seekTime:at,get showEndScreen(){return Ye()},get showAutoplayNext(){return Te()},get showNextPrevButtons(){return me()},get videoContainer(){return s(It)},set videoContainer(Dt){B(It,Dt,!0)}})},Mi=D=>{var Dt=Ue(),li=fe(Dt);{var _t=lt=>{kv(lt,{get thumbUrl(){return u()},get outsideDuration(){return de()},get canRewindLive(){return G()},get videoContainer(){return s(It)},set videoContainer(Yt){B(It,Yt,!0)}})},Je=lt=>{Tv(lt,{get store(){return d()},get uiConfig(){return ct},get title(){return v()},get thumbUrl(){return u()},get interactiveContainer(){return $()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return G()},get showAds(){return q()},get adsSlotId(){return W()},get adsParams(){return Q()},get adsPreviewParam(){return X()},get adsAutoplayParam(){return Y()},get duration(){return de()},get logoClickable(){return le()},get logoHidden(){return ve()},get logoTargetUrl(){return qe},get nextButtonActive(){return se()},get prevButtonActive(){return Le()},get endScreenVideoTitle(){return oe()},get endScreenVideoThumb(){return N()},get isOneVideoPlaylist(){return He()},get supportLink(){return _e()},get shadowRootContainer(){return ge()},get outerContainerRef(){return ce()},get fullScreenTarget(){return ue()},get showMiniTimer(){return ee()},get playerStarted(){return s(he)},get seekToInteractive(){return Xe()},get playPrevChapter(){return Z()},firstStart:te,get showEndScreen(){return Ye()},get showAutoplayNext(){return Te()},get showNextPrevButtons(){return me()},get videoContainer(){return s(It)},set videoContainer(Yt){B(It,Yt,!0)},get keyboardControls(){return it()},set keyboardControls(Yt){it(Yt)}})};V(li,lt=>{zt?lt(_t):lt(Je,!1)})}b(D,Dt)};V(At,D=>{Ie()?D(wt):D(Mi,!1)})}h(ji),O(D=>{zo=ie(ji,1,"root svelte-16kg8zb",null,zo,D),dt(ji,oo)},[()=>({"root--miui-browser":Pl.clientChecker.device.isMobile&&Pl.clientChecker.browser.isMiuiBrowser,"visible-outside":zt})]),b(t,ji);var Ti=F({initVideo:ze,play:Re,pause:et,setMuted:kt,toggleSubtitle:Gt,hideControls:ot,showControls:ci,setVolume:ei,seekTime:at,seekEpisodeStartTime:jt,returnFocusToEpisodes:Gi,setPlaybackRate:ri,setAutoQualityLimits:yi,get sources(){return l()},set sources(D){l(D)},get store(){return d()},set store(D){d(D)},get microStoresRoot(){return a()},set microStoresRoot(D){a(D)},get videoConfig(){return p()},set videoConfig(D){p(D)},get uiConfig(){return f()},set uiConfig(D){f(D)},get title(){return v()},set title(D){v(D)},get thumbUrl(){return u()},set thumbUrl(D){u(D)},get interactiveContainer(){return $()},set interactiveContainer(D){$(D)},get interactiveController(){return w()},set interactiveController(D){w(D)},get subtitles(){return y()},set subtitles(D){y(D)},get subtitlesDefault(){return S()},set subtitlesDefault(D){S(D)},get live(){return T()},set live(D){T(D)},get preload(){return I()},set preload(D){I(D)},get autoplay(){return A()},set autoplay(D){A(D)},get volume(){return k()},set volume(D){k(D)},get muted(){return E()},set muted(D){E(D)},get fromTime(){return R()},set fromTime(D){R(D)},get canRewindLive(){return G()},set canRewindLive(D){G(D)},get showAds(){return q()},set showAds(D){q(D)},get adsSlotId(){return W()},set adsSlotId(D){W(D)},get adsParams(){return Q()},set adsParams(D){Q(D)},get adsPreviewParam(){return X()},set adsPreviewParam(D){X(D)},get adsAutoplayParam(){return Y()},set adsAutoplayParam(D){Y(D)},get duration(){return de()},set duration(D){de(D)},get logoClickable(){return le()},set logoClickable(D){le(D)},get logoHidden(){return ve()},set logoHidden(D){ve(D)},get isMobile(){return Ie()},set isMobile(D){Ie(D)},get showNextPrevButtons(){return me()},set showNextPrevButtons(D){me(D)},get nextButtonActive(){return se()},set nextButtonActive(D){se(D)},get prevButtonActive(){return Le()},set prevButtonActive(D){Le(D)},get endScreenVideoTitle(){return oe()},set endScreenVideoTitle(D){oe(D)},get endScreenVideoThumb(){return N()},set endScreenVideoThumb(D){N(D)},get isOneVideoPlaylist(){return He()},set isOneVideoPlaylist(D){He(D)},get supportLink(){return _e()},set supportLink(D){_e(D)},get shadowRootContainer(){return ge()},set shadowRootContainer(D){ge(D)},get outerContainerRef(){return ce()},set outerContainerRef(D){ce(D)},get fullScreenTarget(){return ue()},set fullScreenTarget(D){ue(D)},get failoverHosts(){return pe()},set failoverHosts(D){pe(D)},get showMiniTimer(){return ee()},set showMiniTimer(D){ee(D)},get saveRate(){return Qe()},set saveRate(D){Qe(D)},get showAutoplayNext(){return Te()},set showAutoplayNext(D){Te(D)},get seekToInteractive(){return Xe()},set seekToInteractive(D){Xe(D)},get playPrevChapter(){return Z()},set playPrevChapter(D){Z(D)},get volumeMultiplier(){return Ae()},set volumeMultiplier(D){Ae(D)},get showEndScreen(){return Ye()},set showEndScreen(D){Ye(D)},get keyboardControls(){return it()},set keyboardControls(D){it(D)}});return o(),Ti}var Ox=Ce('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Av(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Ox();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}function Mv(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Av(t,{get style(){return s(o)}})}var Dx=M('<div class="title svelte-1y9fytq"> </div>'),Hx=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Fx={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function Lv(t,e){z(t,Fx);var i=Hx(),o=_(i);{var n=d=>{var a=Dx(),p=_(a,!0);h(a),O(()=>$e(p,e.title)),b(d,a)};V(o,d=>{e.title&&d(n)})}var r=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);Mv(d,{get isWhite(){return s(a)}})};V(r,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),O(()=>dt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var Ux=M('<div class="playerError svelte-m5iv29"><!></div>'),zx={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}"};function Vv(t){z(t,zx);var e=Ux(),i=_(e);La(i,{}),h(e),b(t,e)}var op=require("@vkontakte/videoplayer-shared/es2018"),Qi=require("@vkontakte/videoplayer-shared/es2018"),gc=require("@vkontakte/videoplayer-core/es2018"),Nl=require("@vkontakte/videoplayer-statistics/es2018");var Gu=require("@vkontakte/videoplayer-shared/es2018"),Qu=class{constructor(){this.subscription=new Gu.Subscription,this.logger=new Gu.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,r]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,r)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var r,l;let o=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()}};var Ml=require("@vkontakte/videoplayer-shared/es2018");var Wx=Ce('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function Rv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Wx();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}var qx=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Kx={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){H(e,!0),z(t,Kx);let[i,o]=Oe(),n=()=>C(p,"$interfaceLanguage$",i),r=()=>C(f,"$isMobile$",i),l=Ee(),d=Et(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,u=g(()=>n()&&v("pip_dummy_title")),$=Ku(d.view);var w=qx();let y;var S=_(w);let T;var I=_(S);Rv(I,{}),h(S);var A=P(S,2),k=_(A,!0);h(A),h(w),O((E,R)=>{y=ie(w,1,"player-pip-dummy svelte-1pbsod4",null,y,E),dt(w,$),T=ie(S,1,"dummy-image svelte-1pbsod4",null,T,R),$e(k,s(u))},[()=>({"is-pip-api":a}),()=>({desktop:!r()})]),b(t,w),F(),o()}var Qx=Object.defineProperty,Gx=(t,e,i)=>e in t?Qx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Al=(t,e,i)=>Gx(t,typeof e!="symbol"?e+"":e,i),jx=460,Yx=280,ac=class{constructor({enabled:e=!0}={enabled:!0}){Al(this,"playerDomElement"),Al(this,"playerParentShadowRoot"),Al(this,"playerDummyElement"),Al(this,"svelteContext"),Al(this,"pipWindow"),Al(this,"info",{isActive$:new Ml.ValueSubject(!1),isEnabled$:new Ml.ValueSubject(!1),type:1}),this.info.isEnabled$=new Ml.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Ml.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:jx,height:Yx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
391
- `),n=document.createElement("style");n.textContent=o;let r=this.createStretchedContainer(),l=r.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=ts(Nv,d),(e=this.pipWindow)==null||e.document.body.append(r),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(sa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function S0(t){return t instanceof ac}var ju=class{static getLatestSupportedVersion(e){let i=new ga(e),o=new ac(e);if(o.isSupported())return o;if(i.isSupported())return i}};function lc(t,e){var n,r;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(r=(n=e[l])!=null?n:t[l])!=null?r:void 0;return o}var T0="Inner error. Unexpectedly root annotation container null reference exception",E0="Annotation with such name already exists",I0="Annotation with such name does not exist";var Ll=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Vl=require("@vkontakte/videoplayer-shared/es2018"),Zx="1",Xx=100,Yu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Vl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Vl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Xx);this.subscriptions.add((0,Vl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new Ll(T0);if(this.annotations.has(e))throw new Ll(E0);i.style.zIndex=(o=i.style.zIndex)!=null?o:Zx,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new Ll(I0);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||r<0||r+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Ha=require("@vkontakte/videoplayer-shared/es2018"),an=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Ha.assertNonNullable)(e),(0,Ha.assertNonNullable)(i),(0,Ha.assertNonNullable)(n),n.interactiveData&&(0,Ha.assertNonNullable)(o),this.subscription=new Ha.Subscription,this.subscription}};var dc=class extends an{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ne(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(r=>{this.state$.set(r?!0:null)})),o}};var cc=class extends an{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ne(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:r}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=r.state,{controlsVisible:p,isMobile:f}=r.ui,v=ye(f),u=()=>v&&ye(p);return o.add(p.subscribe($=>{if(!v)return;let w=ye(l);ye(a)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(a.subscribe($=>{this.state$.set(!$||u())})),o.add(l.subscribe($=>{if($===null)return;let w=ye(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var uc=class extends an{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ne("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var k0=require("@vkontakte/videoplayer-shared/es2018"),Bv=ne(!1),Zu=null,pc=class extends an{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Bv,set:(i,o=!1)=>{i!==ye(Bv)&&(this.clearTimeout(),Bv.set(i),!i&&Zu&&(Zu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:r}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(a.subscribe(v=>{ye(l)&&v&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,k0.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:p}).subscribe(({isPlaying$:v,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{var w,y;if(!(!v||!($!=null&&$.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Zu===null&&(Zu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Xu=require("@vkontakte/videoplayer-shared/es2018");var fc=class extends an{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ne(null),toggle:Xu.noop};this.checkIfShouldHide=i=>Fs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:r}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(ye(l)))return;let a=ye(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,u=ye(p),$=ye(f);if(a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1),v.remove(of),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(r==null?void 0:r.toggleGraphView(!0)),this.state$.set(!0),v.add(of),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Xu.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}})),o}};var Ov=require("@vkontakte/videoplayer-shared/es2018"),mc=class extends an{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ne(!1),isEnabled$:ne(!1),type$:ne(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:r,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new Ov.ValueSubject(!1),isEnabled$:new Ov.ValueSubject(!1)}};return o.add(r.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var ep=require("@vkontakte/videoplayer-shared/es2018");var Ju=require("@vkontakte/videoplayer-shared/es2018"),P0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Jx({maxCount:t}):void 0,e!==0?e5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Jx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Ju.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},e5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ju.safeStorage.get(e)||"{}")}catch(r){return{}}},o=r=>Ju.safeStorage.set(e,JSON.stringify(r)),n=r=>{let l=i();delete l[r],o(l)};return{notificationShowed:r=>{o({...i(),[r]:{timeout:t,launchTime:Date.now()}})},canShowNotification:r=>{let l=i()[r];if(l){let d=Date.now()-l.launchTime>t;return d&&n(r),d}else return!0}}};var vc=class extends an{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ne({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:r,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=P0({maxShowCount:r,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,ep.filterChanged)(),(0,ep.filter)(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var A0=()=>[dc,cc,uc,pc,fc,mc,vc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var Rl=require("@vkontakte/videoplayer-shared/es2018");var tp=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var t5=Object.defineProperty,i5=(t,e,i)=>e in t?t5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Zt=(t,e,i)=>i5(t,typeof e!="symbol"?e+"":e,i),o5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Qi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,gc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Dn=j(void 0),ip=class extends HTMLElement{constructor(){super(),Zt(this,"svelteStubComponent"),Zt(this,"svelteRootComponent"),Zt(this,"svelteErrorComponent"),Zt(this,"store"),Zt(this,"microStoresRoot"),Zt(this,"statistics"),Zt(this,"sentry"),Zt(this,"_shadowRoot"),Zt(this,"playerContainer"),Zt(this,"rootContainer"),Zt(this,"shadowRootContainer"),Zt(this,"uiConfig"),Zt(this,"coreConfig"),Zt(this,"statisticsConfig"),Zt(this,"interactiveController"),Zt(this,"interactiveContainer"),Zt(this,"graphMadePause"),Zt(this,"currentPlayingVideoIndex",0),Zt(this,"needToRepeatPlaylist",!1),Zt(this,"videoConfig"),Zt(this,"pictureInPictureApi"),Zt(this,"mediaSessionApi"),Zt(this,"unsubscribePlayerPhaseSubscription"),Zt(this,"logger"),Zt(this,"log"),Zt(this,"subscription"),Zt(this,"interactiveSubscription"),Zt(this,"annotationsApi"),Zt(this,"slotsApi"),Zt(this,"focusManager"),Zt(this,"prevIsid"),Zt(this,"isInited",!1),Zt(this,"internalsExposure",null),Zt(this,"shadowDOMCallbacksDisabled",!1),Zt(this,"fatalError$",new op.ValueSubject(null)),Zt(this,"createOneStat",(e,i={})=>{var o,n,r,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:p,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:u,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:T,interactiveData:I}=lc(this.videoConfig,i),A=(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:R=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new Nl.OneStat({movieId:E,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:R,refDomain:S,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview",...A&&(!this.isInited||k)&&{projectId:Number(A)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(q){console.error(q),this.log({message:q.message})}}),Rl.devNull.create("ui"),this.logger=new Qi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Qi.Subscription,this.interactiveSubscription=new Qi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=ts(Vv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,r=ni({title:o,thumbUrl:n}),l={target:this.playerContainer,props:r};this.svelteStubComponent=ts(Lv,l)}disconnectedCallback(){var e,i,o,n,r,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.subscription.unsubscribe(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Rl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:r}=lc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Nl.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:n,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:r})}createPlayer(e,i={},o){var n,r,l,d,a,p,f,v,u,$;if(!this.videoConfig)return;let{albumId:w,statPlace:y,statAuthToken:S,preload:T,autoplay:I,volume:A,muted:k,fromTime:E,canRewindLive:R,supportLink:G,showAds:q,adsSlotId:W,adsParams:Q={},adsPreviewParam:X,adsAutoplayParam:Y,interfaceLanguage:de,isCyrillicRelatedInterface:le,logoClickable:ve,logoHidden:Ie,isMobile:me,isTouch:se,isAudioDisabled:Le,isLiveCatchUpMode:oe,fullScreenTarget:N,failoverHosts:He,canDownload:_e,callbacks:ge,interactiveData:ce,showThumbTimer:ue,additionalButtons:pe=[],additionalSettingsMenuItems:ee=[],additionalContextMenuItems:Qe=[],repeat:Xe,saveRate:Z,volumeMultiplier:Ae,showEndScreen:Te,showAutoplayNext:Ye,mediascopePixels:it}=lc(this.videoConfig,i),{sources:ht,title:Pt,thumbUrl:ct,unitedVideoId:qe,isClip:qt=!1,duration:Xt,adsParams:Qt={},videoEpisodes:Kt,previewThumbsData:ae,subtitles:It,subtitlesDefault:xe,live:he}=e;if(!ht&&!he){let ri=new Error("empty sources and live");this.fatalError$.next(ri),(n=ge.onCrashed)==null||n.call(ge,ri.message);return}let te={...Q,...Qt},Ne=this.getNextVideoInfo(),ze={sources:ht,title:Pt,thumbUrl:ct,subtitles:It,subtitlesDefault:xe,unitedVideoId:qe,isClip:qt,live:he,albumId:w,statPlace:y,autoplay:I,muted:k,volume:A,fromTime:E,canRewindLive:R,showAds:q,adsSlotId:W,adsParams:te,adsPreviewParam:X,adsAutoplayParam:Y,duration:Xt,logoClickable:ve,logoHidden:Ie,isTouch:se!=null?se:me,repeat:Xe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ne.nextVideoTitle,endScreenVideoThumb:Ne.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ve={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(ze)}`});let Fe=(r=this.interactiveController)==null?void 0:r.state.statistics$.getValue(),Re=(Fe==null?void 0:Fe.oneStat)||this.createOneStat(e,i),et=this.createThinOneStat(e,i),kt;it&&(kt=new Nl.MediascopePixel({pixels:it})),(Re||et)&&(this.statistics=new Mu(Re,et,kt,Fe==null?void 0:Fe.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new va(this.uiConfig.sentry,{version:pa,env:ou},{movieId:qe,albumId:w,place:y,autoplay:(l=I&&!this.interactiveController)!=null?l:!1,mobile:se!=null?se:me,clip:qt}),this.interactiveController&&((p=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...va.getInstance()};let ot=!!ce,ci=[],ei="tooltip_interactive_go_back_disabled_first";if(ot&&this.interactiveController){let ri=this.interactiveController.state.isInitialChapter$.getValue(),yi=this.interactiveController.getHistoryState();ri&&ci.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ci.push("SEEK_TO_INTERACTIVE_BUTTON"),yi.hasPrevChapter$.getValue()||(ci.push("PLAY_PREV_CHAPTER_BUTTON"),ri||(yi.isGoBackLimited$.getValue()?ei="tooltip_interactive_go_back_disabled_limit":ei="tooltip_interactive_go_back_disabled"))}let at=()=>{var ri;this.isInited=!1,this.prevIsid=void 0;let yi=(o==null?void 0:o.info.isEnded$.getValue())&&((ri=this.interactiveController)==null?void 0:ri.state.isEndChapter$.getValue());ge.onReplayInteractiveVideo&&!yi?ge.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=j1({player:o,interfaceLanguage:de,isCyrillicRelatedInterface:le,videoId:qe,isClip:qt,isLiveCatchUpMode:oe,isAudioDisabled:Le,statAuthToken:S,callbacks:ge,webApi:Ve,videoEpisodes:Kt,previewThumbsData:ae,canDownload:_e,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ci,isInteractive:ot,saveRate:Z,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:at,playPrevChapterDisabledTooltip:ei,hasInteractiveBranches:!!(($=(u=this.interactiveController)==null?void 0:u.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?pe:[],additionalSettingsMenuItems:ee!=null?ee:[],additionalContextMenuItems:Qe!=null?Qe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Xe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:jt}=this.microStoresRoot=A0(),Gi=()=>{var ri,yi,oo,zt,ui,ji;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(At=>{var wt;return(wt=ge==null?void 0:ge.onCurrentFormatChanged)==null?void 0:wt.call(ge,At)})),this.subscription.add(jt.interactiveControlsOpacity$.subscribe(At=>{var wt;At!==null&&((wt=this==null?void 0:this.interactiveController)==null||wt.setDisabledControls(At))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(At=>{var wt;return(wt=ge==null?void 0:ge.onThroughputEstimationChanged)==null?void 0:wt.call(ge,At)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(At=>{var wt;return(wt=ge==null?void 0:ge.onTrafficSavingEnabledChanged)==null?void 0:wt.call(ge,At)})),this.subscription.add(new Qi.Observable(At=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(wt=>At.next(wt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Qi.skip)(1):At=>At).subscribe(At=>{var wt;return(wt=ge==null?void 0:ge.onCurrentPlaybackRateChanged)==null?void 0:wt.call(ge,At)})),this.subscription.add(this.store.state.volume$.subscribe(At=>{var wt;return(wt=ge==null?void 0:ge.onVolumeChange)==null?void 0:wt.call(ge,At)})),this.subscription.add(this.store.state.muted$.subscribe(At=>{var wt,Mi,Ti,D;if(At)(wt=ge==null?void 0:ge.onMute)==null||wt.call(ge);else{let Dt=(Ti=((Mi=this.store)==null?void 0:Mi.state.volume$)&&ye(this.store.state.volume$))!=null?Ti:0;(D=ge==null?void 0:ge.onUnmute)==null||D.call(ge,Dt)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(At=>{var wt;return(wt=ge==null?void 0:ge.onVideoBitrateChanged)==null?void 0:wt.call(ge,At)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(At=>{var wt;let Mi=(wt=this.store)==null?void 0:wt.ui.controls.disabledControls$;Mi&&(At&&!Mi.includes(md)&&Mi.add(md),At||Mi.remove(md))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async At=>{var wt;if(!gc.clientChecker.browser.isSamsungBrowser||!At||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((wt=this.videoConfig)==null?void 0:wt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(At=>{var wt;return(wt=ge==null?void 0:ge.onVSIDChanged)==null?void 0:wt.call(ge,At)})),this.initMediaSession(),B(Dn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ht,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Pt,thumbUrl:ct,subtitles:It,subtitlesDefault:xe,live:he,preload:T,autoplay:I,muted:k,volume:A,fromTime:E,canRewindLive:R,supportLink:G,showAds:q,adsSlotId:W,adsParams:te,adsPreviewParam:X,adsAutoplayParam:Y,duration:Xt,logoClickable:ve,logoHidden:Ie,isMobile:se!=null?se:me,failoverHosts:He,fullScreenTarget:N,saveRate:Z,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ue,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ne.nextVideoTitle,endScreenVideoThumb:Ne.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ae,showEndScreen:Te,showAutoplayNext:Ye},!0);let zo={target:this.playerContainer,props:s(Dn)};this.svelteRootComponent=ts(Pv,zo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(oo=(yi=(ri=this.videoConfig)==null?void 0:ri.callbacks)==null?void 0:yi.onInited)==null||oo.call(yi)),(zt=this.internalsExposure)==null||zt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ji=(ui=this.videoConfig)==null?void 0:ui.callbacks)!=null&&ji.onDevNullLog)?Rl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Rl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?gc.clientChecker.isInited$.subscribe(ri=>{ri&&(console.log("UI SDK async start"),Gi())}):Gi()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let r=(i=this.videoConfig)==null?void 0:i.callbacks;r&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=r.onPlayerPhaseChanged)==null?void 0:a.call(r,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=r.onPlaybackStateChanged)==null?void 0:a.call(r,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=r.onIsLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=r.onIsActiveLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=r.onIsAudioAvailableChanged)==null?void 0:a.call(r,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=r.onCurrentQualityChanged)==null?void 0:a.call(r,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=r.onAvailableQualitiesChanged)==null?void 0:a.call(r,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&r.onAudioLanguagesAvailable&&r.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,p;return d?(a=r.onPiPEnter)==null?void 0:a.call(r):(p=r.onPiPExit)==null?void 0:p.call(r)}));let l=r==null?void 0:r.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,Qi.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n,r,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,p=a?ye(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:u,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:p,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:u,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let 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(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(f==null?void 0:f.title)||T.config.title};let I=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,I),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:I})=>{var A,k,E,R,G,q;if(!this.store||!this.microStoresRoot)return;let W=w.getValue();if(T==="action-choice"&&I==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(vd)),T==="action-choice-canceled"){let Q=ye(this.store.state.isPlaying$)||W;if(((E=(A=this.videoConfig)==null?void 0:A.isTouch)!=null?E:(k=this.videoConfig)!=null&&k.isMobile)&&Q){this.store.ui.interactiveHideMobileControls.set(!0);return}(q=(R=this.videoConfig)==null?void 0:(G=R.callbacks).onDisabledInteractiveClick)==null||q.call(G)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:I})=>{this.store&&T==="container-fake-removed"&&I&&this.store.ui.controls.disabledControls$.remove(vd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(I=>{var A,k,E;I.length&&((E=(k=(A=this.videoConfig)==null?void 0:A.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,A,k;(k=(I=this.videoConfig)==null?void 0:(A=I.callbacks).onInteractiveChapterChanged)==null||k.call(A,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,I,A,k;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(I=this.videoConfig)==null?void 0:(A=I.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(A)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,n,r,l,d,a,p,f,v,u,$,w,y,S,T,I,A,k,E,R,G,q,W,Q,X,Y,de,le;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let ve=new Error("empty videos");this.fatalError$.next(ve),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,ve.message);return}else this.fatalError$.next(null);if(this.videoConfig=lc(o5,(0,Qi.cloneDeepWith)(e,ve=>ve instanceof HTMLElement?ve:void 0)),this.uiConfig=Eh((r=i.ui)!=null?r:{}),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((p=this.internalsExposure)!=null||(this.internalsExposure=new Qi.InternalsExposure("UI"))),Rl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,op.now)()]}),(0,Qi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),(0,Qi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(S=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.videoConfig.isTouch=(I=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?I:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(E=this.uiConfig.ads.slot)!=null?E:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(R=this.uiConfig.ads.preview)!=null?R:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((G=this.uiConfig.showLogo)!=null?G:!this.videoConfig.logoHidden),(q=this.videoConfig).canRewindLive&&(q.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(W=this.videoConfig.supportLink)!=null?W:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Q=this.uiConfig.features.endScreen)!=null?Q:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(X=this.uiConfig.features.autoplayNext)!=null?X:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Y=this.uiConfig.features.nextPrevButtons)!=null?Y:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((de=this.videoConfig.videos)!=null&&de[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ve={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=ju.getLatestSupportedVersion(ve):this.pictureInPictureApi=new ga(ve)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Qu:void 0,this.slotsApi=this.uiConfig.features.slots?new zu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Yu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),S0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(le=this.slotsApi)==null||le.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new tp(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();s(Dn)&&(s(Dn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Dn).nextButtonActive=this.isNextButtonActive(),s(Dn).prevButtonActive=this.isPrevButtonActive(),s(Dn).endScreenVideoTitle=o.nextVideoTitle,s(Dn).endScreenVideoThumb=o.nextVideoThumb,s(Dn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,r,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(r=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:r.onNextVideoClick)==null||l.call(r)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,r,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(r=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:r.onPrevVideoClick)==null||l.call(r)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,s(Dn)&&(s(Dn).needToRepeatPlaylist=this.needToRepeatPlaylist,s(Dn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Dn).nextButtonActive=this.isNextButtonActive(),s(Dn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let r=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&r(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||r(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var r;(r=this.store)==null||r.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var r;o||n(),(r=this.store)==null||r.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let r=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){r();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=r)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=ye(this.store.state.positionExact$),l=ye(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Qi.once)()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&sa(e)}};var Bl=require("@vkontakte/videoplayer-shared/es2018"),np=require("@vkontakte/videoplayer-core/es2018"),n5=()=>{window.customElements.define("vk-video-player",ip)};
390
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Pv(t,e){D(e,!0),z(t,Ox);let[i,o]=Oe(),n=()=>C(Xt,"$isLive$",i),r=()=>C(Qt,"$availableSubtitlesList$",i),l=m(e,"sources",7),d=m(e,"store",7),a=m(e,"microStoresRoot",7),p=m(e,"videoConfig",7),f=m(e,"uiConfig",7),v=m(e,"title",7),u=m(e,"thumbUrl",7),$=m(e,"interactiveContainer",7),w=m(e,"interactiveController",7),y=m(e,"subtitles",7),S=m(e,"live",7),T=m(e,"preload",7),I=m(e,"autoplay",7),A=m(e,"volume",7,void 0),k=m(e,"muted",7,void 0),E=m(e,"fromTime",7),R=m(e,"canRewindLive",7),Q=m(e,"showAds",7),q=m(e,"adsSlotId",7,void 0),W=m(e,"adsParams",7,void 0),G=m(e,"adsPreviewParam",7,void 0),X=m(e,"adsAutoplayParam",7,void 0),Y=m(e,"duration",7,void 0),ce=m(e,"logoClickable",7),le=m(e,"logoHidden",7),me=m(e,"isMobile",7),ke=m(e,"showNextPrevButtons",7,!1),ve=m(e,"nextButtonActive",7,!1),ae=m(e,"prevButtonActive",7,!1),Ve=m(e,"endScreenVideoTitle",7,void 0),ne=m(e,"endScreenVideoThumb",7,void 0),N=m(e,"isOneVideoPlaylist",7,!1),He=m(e,"supportLink",7),_e=m(e,"shadowRootContainer",7),ge=m(e,"outerContainerRef",7),de=m(e,"fullScreenTarget",7,void 0),ue=m(e,"failoverHosts",7,void 0),pe=m(e,"showMiniTimer",7,!1),te=m(e,"saveRate",7),qe=m(e,"seekToInteractive",7,Da.noop),Xe=m(e,"playPrevChapter",7,Da.noop),Z=m(e,"volumeMultiplier",7),Ae=m(e,"showAutoplayNext",7),Te=m(e,"showEndScreen",7,!0),Ye=m(e,"keyboardControls",15,void 0),{subscribers:it,stores:bt}=a();Ih(f());let gt=Pt(),St=f().logoLink,Qe=d().ui.debugPanelVisible,zt=d().ui.playerSize,Xt=d().state.isLive$,Wt=d().state.isInteractive&&Pl.clientChecker.device.isAndroid,ee=j(void 0),Bt=null,xe=j(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),Dh(d(),bt),Ue(()=>{var U,lt;d().ui.isMobile.set(me()),(lt=(U=p().callbacks)==null?void 0:U.onDomReady)==null||lt.call(U)});let he=(U=!1)=>{B(xe,!0),U?d().actions.external.firstStart(Q()):d().actions.internal.firstStart(Q())},ie=()=>{if(gt.features.qualityDetailsSubMenuEnabled){let U=s1(d().videoId);if(U)switch(U.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,U.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,U.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(U.quality);break}}else{a1(d().videoId),mf()&&d().actions.internal.setTrafficSavingEnabled(!0);let lt=cf(d().videoId);lt&&d().actions.internal.setQuality(lt)}};function Be(U){var st,vt,yi;let lt=l()||U;lt&&d().initVideo({container:s(ee),sources:lt,failoverHosts:ue(),subtitles:y(),volumeMultiplier:Z()});let mi=Da.safeStorage.get(fd)==="true";Qe.set(mi),E()>0&&d().actions.external.seekTime(E());let di=me()?gt.volumeDefault:(vt=(st=A())!=null?st:su())!=null?vt:gt.volumeDefault,pt=(yi=k())!=null?yi:e1();if(d().actions.external.setVolume(di),d().actions.external.setMuted(pt),d().getAdmanWrapper().setInitialVolume(pt?0:di),ie(),gt.features.saveRate&&te()){let kt=o1();kt&&!n()&&d().actions.internal.setPlaybackRate(kt)}if(Ae()){let kt=r1();kt&&d().actions.internal.setAutoplayNextEnabled(kt)}d().ui.isAutoplay.set(I()),I()?he():T()&&gt.features.preload&&d().actions.internal.preload()}let ze=U=>{if(window.ResizeObserver){let lt,mi;Bt=new ResizeObserver((0,Da.throttleFn)(di=>{let pt=di[0];if(pt.contentBoxSize){let st=Array.isArray(pt.contentBoxSize)?pt.contentBoxSize[0]:pt.contentBoxSize;lt=st.inlineSize,mi=st.blockSize}else pt.contentRect&&(lt=pt.contentRect.width,mi=pt.contentRect.height);zt.set({width:lt,height:mi})},300)),Bt.observe(U)}zt.set({width:U.clientWidth,height:U.clientHeight})},Me=()=>{document.hidden&&d().actions.external.stop()};Ot(()=>{var mi,di,pt,st;Wt&&document.addEventListener("visibilitychange",Me),gt.debugLog&&d().actions.internal.startLogging(),ze(s(ee));let U=it.map(vt=>vt.init({store:d(),microStores:bt,config:p(),interactiveController:w(),uiConfig:f()})),lt=()=>{Wt&&document.removeEventListener("visibilitychange",Me),Bt==null||Bt.disconnect(),U.forEach(vt=>vt.unsubscribe()),d().destroy()};return((mi=S())==null?void 0:mi.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),lt):((di=S())==null?void 0:di.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),lt):(((pt=S())==null?void 0:pt.status)==="finished"||((st=S())==null?void 0:st.status)==="postlive")&&!(l()&&(0,Pl.areValidLiveRecordSources)(l()))?(d().actions.internal.setLiveWaitingRecord(!0),lt):(Be(),lt)});function We(){s(xe)?d().actions.external.play():he(!0)}function Re(){d().actions.external.pause()}function et(U){d().actions.external.setMuted(U)}function Lt(){d().actions.external.toggleSubtitle()}function Kt(){var U;(U=d().webApi.slotsApi)!=null&&U.haveSlots()&&d().actions.external.hideControls()}function Je(){var U;(U=d().webApi.slotsApi)!=null&&U.haveSlots()&&d().actions.external.showControls()}function pi(U){me()||U>=0&&U<=1&&d().actions.external.setVolume(U)}function ti(U){d().actions.internal.seekTime(U,S0.SeekAction.UNKNOWN)}function at(U){d().actions.external.seekEpisodeStartTime(U)}function Gt(){d().actions.external.returnFocusToEpisodes()}function ri(U){d().actions.external.setPlaybackRate(U)}function fi(U){d().actions.external.setAutoQualityLimits(U)}let fo=Ku(gt.view),Qi=p().playerView==="preview",Qt=d().state.availableSubtitlesList$;if(gt.features.initSubtitles){let U=!1;Ue(()=>{if(!U&&r().length){U=!0;let lt;if(gt.features.userVideoPrefs&&d().videoId){let di=du(gt.userSalt,String(d().videoId));di!=null&&di.subtitleTrackId&&(lt=r().find(pt=>pt.value===di.subtitleTrackId))}let mi=gf();mi&&(lt!=null||(lt=r().find(di=>di.language===mi))),d().actions.internal.setSubtitle(lt)}})}var ni=Bx();let Fo;var Dt=_(ni);{var $t=U=>{Iv(U,{get store(){return d()},get uiConfig(){return gt},get thumbUrl(){return u()},get interactiveContainer(){return $()},get live(){return S()},get autoplay(){return I()},get canRewindLive(){return R()},get showAds(){return Q()},get adsSlotId(){return q()},get adsParams(){return W()},get adsPreviewParam(){return G()},get adsAutoplayParam(){return X()},get duration(){return Y()},get logoClickable(){return ce()},get logoHidden(){return le()},get logoTargetUrl(){return St},get nextButtonActive(){return ve()},get prevButtonActive(){return ae()},get endScreenVideoTitle(){return Ve()},get endScreenVideoThumb(){return ne()},get isOneVideoPlaylist(){return N()},get supportLink(){return He()},get shadowRootContainer(){return _e()},get outerContainerRef(){return ge()},get fullScreenTarget(){return de()},get showMiniTimer(){return pe()},get playerStarted(){return s(xe)},get seekToInteractive(){return qe()},get playPrevChapter(){return Xe()},firstStart:he,seekTime:ti,get showEndScreen(){return Te()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return ke()},get videoContainer(){return s(ee)},set videoContainer(lt){B(ee,lt,!0)}})},Ei=U=>{var lt=Fe(),mi=fe(lt);{var di=st=>{kv(st,{get thumbUrl(){return u()},get outsideDuration(){return Y()},get canRewindLive(){return R()},get videoContainer(){return s(ee)},set videoContainer(vt){B(ee,vt,!0)}})},pt=st=>{Tv(st,{get store(){return d()},get uiConfig(){return gt},get title(){return v()},get thumbUrl(){return u()},get interactiveContainer(){return $()},get live(){return S()},get autoplay(){return I()},get canRewindLive(){return R()},get showAds(){return Q()},get adsSlotId(){return q()},get adsParams(){return W()},get adsPreviewParam(){return G()},get adsAutoplayParam(){return X()},get duration(){return Y()},get logoClickable(){return ce()},get logoHidden(){return le()},get logoTargetUrl(){return St},get nextButtonActive(){return ve()},get prevButtonActive(){return ae()},get endScreenVideoTitle(){return Ve()},get endScreenVideoThumb(){return ne()},get isOneVideoPlaylist(){return N()},get supportLink(){return He()},get shadowRootContainer(){return _e()},get outerContainerRef(){return ge()},get fullScreenTarget(){return de()},get showMiniTimer(){return pe()},get playerStarted(){return s(xe)},get seekToInteractive(){return qe()},get playPrevChapter(){return Xe()},firstStart:he,get showEndScreen(){return Te()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return ke()},get videoContainer(){return s(ee)},set videoContainer(vt){B(ee,vt,!0)},get keyboardControls(){return Ye()},set keyboardControls(vt){Ye(vt)}})};V(mi,st=>{Qi?st(di):st(pt,!1)})}b(U,lt)};V(Dt,U=>{me()?U($t):U(Ei,!1)})}h(ni),O(U=>{Fo=oe(ni,1,"root svelte-16kg8zb",null,Fo,U),dt(ni,fo)},[()=>({"root--miui-browser":Pl.clientChecker.device.isMobile&&Pl.clientChecker.browser.isMiuiBrowser,"visible-outside":Qi})]),b(t,ni);var Uo=H({initVideo:Be,play:We,pause:Re,setMuted:et,toggleSubtitle:Lt,hideControls:Kt,showControls:Je,setVolume:pi,seekTime:ti,seekEpisodeStartTime:at,returnFocusToEpisodes:Gt,setPlaybackRate:ri,setAutoQualityLimits:fi,get sources(){return l()},set sources(U){l(U)},get store(){return d()},set store(U){d(U)},get microStoresRoot(){return a()},set microStoresRoot(U){a(U)},get videoConfig(){return p()},set videoConfig(U){p(U)},get uiConfig(){return f()},set uiConfig(U){f(U)},get title(){return v()},set title(U){v(U)},get thumbUrl(){return u()},set thumbUrl(U){u(U)},get interactiveContainer(){return $()},set interactiveContainer(U){$(U)},get interactiveController(){return w()},set interactiveController(U){w(U)},get subtitles(){return y()},set subtitles(U){y(U)},get live(){return S()},set live(U){S(U)},get preload(){return T()},set preload(U){T(U)},get autoplay(){return I()},set autoplay(U){I(U)},get volume(){return A()},set volume(U){A(U)},get muted(){return k()},set muted(U){k(U)},get fromTime(){return E()},set fromTime(U){E(U)},get canRewindLive(){return R()},set canRewindLive(U){R(U)},get showAds(){return Q()},set showAds(U){Q(U)},get adsSlotId(){return q()},set adsSlotId(U){q(U)},get adsParams(){return W()},set adsParams(U){W(U)},get adsPreviewParam(){return G()},set adsPreviewParam(U){G(U)},get adsAutoplayParam(){return X()},set adsAutoplayParam(U){X(U)},get duration(){return Y()},set duration(U){Y(U)},get logoClickable(){return ce()},set logoClickable(U){ce(U)},get logoHidden(){return le()},set logoHidden(U){le(U)},get isMobile(){return me()},set isMobile(U){me(U)},get showNextPrevButtons(){return ke()},set showNextPrevButtons(U){ke(U)},get nextButtonActive(){return ve()},set nextButtonActive(U){ve(U)},get prevButtonActive(){return ae()},set prevButtonActive(U){ae(U)},get endScreenVideoTitle(){return Ve()},set endScreenVideoTitle(U){Ve(U)},get endScreenVideoThumb(){return ne()},set endScreenVideoThumb(U){ne(U)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(U){N(U)},get supportLink(){return He()},set supportLink(U){He(U)},get shadowRootContainer(){return _e()},set shadowRootContainer(U){_e(U)},get outerContainerRef(){return ge()},set outerContainerRef(U){ge(U)},get fullScreenTarget(){return de()},set fullScreenTarget(U){de(U)},get failoverHosts(){return ue()},set failoverHosts(U){ue(U)},get showMiniTimer(){return pe()},set showMiniTimer(U){pe(U)},get saveRate(){return te()},set saveRate(U){te(U)},get showAutoplayNext(){return Ae()},set showAutoplayNext(U){Ae(U)},get seekToInteractive(){return qe()},set seekToInteractive(U){qe(U)},get playPrevChapter(){return Xe()},set playPrevChapter(U){Xe(U)},get volumeMultiplier(){return Z()},set volumeMultiplier(U){Z(U)},get showEndScreen(){return Te()},set showEndScreen(U){Te(U)},get keyboardControls(){return Ye()},set keyboardControls(U){Ye(U)}});return o(),Uo}var Dx=Ce('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Av(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Dx();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}function Mv(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Av(t,{get style(){return s(o)}})}var Hx=M('<div class="title svelte-1y9fytq"> </div>'),Fx=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Ux={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function Lv(t,e){z(t,Ux);var i=Fx(),o=_(i);{var n=d=>{var a=Hx(),p=_(a,!0);h(a),O(()=>$e(p,e.title)),b(d,a)};V(o,d=>{e.title&&d(n)})}var r=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);Mv(d,{get isWhite(){return s(a)}})};V(r,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),O(()=>dt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var zx=M('<div class="playerError svelte-m5iv29"><!></div>'),Wx={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}"};function Vv(t){z(t,Wx);var e=zx(),i=_(e);La(i,{}),h(e),b(t,e)}var op=require("@vkontakte/videoplayer-shared/es2018"),Ki=require("@vkontakte/videoplayer-shared/es2018"),gc=require("@vkontakte/videoplayer-core/es2018"),Nl=require("@vkontakte/videoplayer-statistics/es2018");var Gu=require("@vkontakte/videoplayer-shared/es2018"),Qu=class{constructor(){this.subscription=new Gu.Subscription,this.logger=new Gu.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,r]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,r)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var r,l;let o=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()}};var Ml=require("@vkontakte/videoplayer-shared/es2018");var qx=Ce('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function Rv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=qx();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}var Kx=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Qx={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),z(t,Qx);let[i,o]=Oe(),n=()=>C(p,"$interfaceLanguage$",i),r=()=>C(f,"$isMobile$",i),l=Ee(),d=Pt(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,u=g(()=>n()&&v("pip_dummy_title")),$=Ku(d.view);var w=Kx();let y;var S=_(w);let T;var I=_(S);Rv(I,{}),h(S);var A=P(S,2),k=_(A,!0);h(A),h(w),O((E,R)=>{y=oe(w,1,"player-pip-dummy svelte-1pbsod4",null,y,E),dt(w,$),T=oe(S,1,"dummy-image svelte-1pbsod4",null,T,R),$e(k,s(u))},[()=>({"is-pip-api":a}),()=>({desktop:!r()})]),b(t,w),H(),o()}var Gx=Object.defineProperty,jx=(t,e,i)=>e in t?Gx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Al=(t,e,i)=>jx(t,typeof e!="symbol"?e+"":e,i),Yx=460,Zx=280,ac=class{constructor({enabled:e=!0}={enabled:!0}){Al(this,"playerDomElement"),Al(this,"playerParentShadowRoot"),Al(this,"playerDummyElement"),Al(this,"svelteContext"),Al(this,"pipWindow"),Al(this,"info",{isActive$:new Ml.ValueSubject(!1),isEnabled$:new Ml.ValueSubject(!1),type:1}),this.info.isEnabled$=new Ml.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Ml.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Yx,height:Zx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
391
+ `),n=document.createElement("style");n.textContent=o;let r=this.createStretchedContainer(),l=r.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=ts(Nv,d),(e=this.pipWindow)==null||e.document.body.append(r),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(sa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function T0(t){return t instanceof ac}var ju=class{static getLatestSupportedVersion(e){let i=new ga(e),o=new ac(e);if(o.isSupported())return o;if(i.isSupported())return i}};function lc(t,e){var n,r;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(r=(n=e[l])!=null?n:t[l])!=null?r:void 0;return o}var E0="Inner error. Unexpectedly root annotation container null reference exception",I0="Annotation with such name already exists",k0="Annotation with such name does not exist";var Ll=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Vl=require("@vkontakte/videoplayer-shared/es2018"),Xx="1",Jx=100,Yu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Vl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Vl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Jx);this.subscriptions.add((0,Vl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new Ll(E0);if(this.annotations.has(e))throw new Ll(I0);i.style.zIndex=(o=i.style.zIndex)!=null?o:Xx,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new Ll(k0);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||r<0||r+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Ha=require("@vkontakte/videoplayer-shared/es2018"),sn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Ha.assertNonNullable)(e),(0,Ha.assertNonNullable)(i),(0,Ha.assertNonNullable)(n),n.interactiveData&&(0,Ha.assertNonNullable)(o),this.subscription=new Ha.Subscription,this.subscription}};var dc=class extends sn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...re(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(r=>{this.state$.set(r?!0:null)})),o}};var cc=class extends sn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...re(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:r}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=r.state,{controlsVisible:p,isMobile:f}=r.ui,v=ye(f),u=()=>v&&ye(p);return o.add(p.subscribe($=>{if(!v)return;let w=ye(l);ye(a)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(a.subscribe($=>{this.state$.set(!$||u())})),o.add(l.subscribe($=>{if($===null)return;let w=ye(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var uc=class extends sn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=re("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var P0=require("@vkontakte/videoplayer-shared/es2018"),Bv=re(!1),Zu=null,pc=class extends sn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Bv,set:(i,o=!1)=>{i!==ye(Bv)&&(this.clearTimeout(),Bv.set(i),!i&&Zu&&(Zu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:r}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(a.subscribe(v=>{ye(l)&&v&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,P0.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:p}).subscribe(({isPlaying$:v,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{var w,y;if(!(!v||!($!=null&&$.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Zu===null&&(Zu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Xu=require("@vkontakte/videoplayer-shared/es2018");var fc=class extends sn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...re(null),toggle:Xu.noop};this.checkIfShouldHide=i=>Fs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:r}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(ye(l)))return;let a=ye(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,u=ye(p),$=ye(f);if(a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1),v.remove(of),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(r==null?void 0:r.toggleGraphView(!0)),this.state$.set(!0),v.add(of),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Xu.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}})),o}};var Ov=require("@vkontakte/videoplayer-shared/es2018"),mc=class extends sn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:re(!1),isEnabled$:re(!1),type$:re(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:r,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new Ov.ValueSubject(!1),isEnabled$:new Ov.ValueSubject(!1)}};return o.add(r.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var ep=require("@vkontakte/videoplayer-shared/es2018");var Ju=require("@vkontakte/videoplayer-shared/es2018"),A0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?e5({maxCount:t}):void 0,e!==0?t5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},e5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Ju.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},t5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ju.safeStorage.get(e)||"{}")}catch(r){return{}}},o=r=>Ju.safeStorage.set(e,JSON.stringify(r)),n=r=>{let l=i();delete l[r],o(l)};return{notificationShowed:r=>{o({...i(),[r]:{timeout:t,launchTime:Date.now()}})},canShowNotification:r=>{let l=i()[r];if(l){let d=Date.now()-l.launchTime>t;return d&&n(r),d}else return!0}}};var vc=class extends sn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:re({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:r,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=A0({maxShowCount:r,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,ep.filterChanged)(),(0,ep.filter)(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var M0=()=>[dc,cc,uc,pc,fc,mc,vc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var Rl=require("@vkontakte/videoplayer-shared/es2018");var tp=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var i5=Object.defineProperty,o5=(t,e,i)=>e in t?i5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,jt=(t,e,i)=>o5(t,typeof e!="symbol"?e+"":e,i),n5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Ki.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,gc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Dn=j(void 0),ip=class extends HTMLElement{constructor(){super(),jt(this,"svelteStubComponent"),jt(this,"svelteRootComponent"),jt(this,"svelteErrorComponent"),jt(this,"store"),jt(this,"microStoresRoot"),jt(this,"statistics"),jt(this,"sentry"),jt(this,"_shadowRoot"),jt(this,"playerContainer"),jt(this,"rootContainer"),jt(this,"shadowRootContainer"),jt(this,"uiConfig"),jt(this,"coreConfig"),jt(this,"statisticsConfig"),jt(this,"interactiveController"),jt(this,"interactiveContainer"),jt(this,"graphMadePause"),jt(this,"currentPlayingVideoIndex",0),jt(this,"needToRepeatPlaylist",!1),jt(this,"videoConfig"),jt(this,"pictureInPictureApi"),jt(this,"mediaSessionApi"),jt(this,"unsubscribePlayerPhaseSubscription"),jt(this,"logger"),jt(this,"log"),jt(this,"subscription"),jt(this,"interactiveSubscription"),jt(this,"annotationsApi"),jt(this,"slotsApi"),jt(this,"focusManager"),jt(this,"prevIsid"),jt(this,"isInited",!1),jt(this,"internalsExposure",null),jt(this,"shadowDOMCallbacksDisabled",!1),jt(this,"fatalError$",new op.ValueSubject(null)),jt(this,"createOneStat",(e,i={})=>{var o,n,r,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:p,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:u,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:T,interactiveData:I}=lc(this.videoConfig,i),A=(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:R=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new Nl.OneStat({movieId:E,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:R,refDomain:S,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview",...A&&(!this.isInited||k)&&{projectId:Number(A)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(q){console.error(q),this.log({message:q.message})}}),Rl.devNull.create("ui"),this.logger=new Ki.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Ki.Subscription,this.interactiveSubscription=new Ki.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=ts(Vv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,r=oi({title:o,thumbUrl:n}),l={target:this.playerContainer,props:r};this.svelteStubComponent=ts(Lv,l)}disconnectedCallback(){var e,i,o,n,r,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.subscription.unsubscribe(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Rl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:r}=lc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Nl.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:n,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:r})}createPlayer(e,i={},o){var n,r,l,d,a,p,f,v,u,$;if(!this.videoConfig)return;let{albumId:w,statPlace:y,statAuthToken:S,preload:T,autoplay:I,volume:A,muted:k,fromTime:E,canRewindLive:R,supportLink:Q,showAds:q,adsSlotId:W,adsParams:G={},adsPreviewParam:X,adsAutoplayParam:Y,interfaceLanguage:ce,isCyrillicRelatedInterface:le,logoClickable:me,logoHidden:ke,isMobile:ve,isTouch:ae,isAudioDisabled:Ve,isLiveCatchUpMode:ne,fullScreenTarget:N,failoverHosts:He,canDownload:_e,callbacks:ge,interactiveData:de,showThumbTimer:ue,additionalButtons:pe=[],additionalSettingsMenuItems:te=[],additionalContextMenuItems:qe=[],repeat:Xe,saveRate:Z,volumeMultiplier:Ae,showEndScreen:Te,showAutoplayNext:Ye,mediascopePixels:it}=lc(this.videoConfig,i),{sources:bt,title:gt,thumbUrl:St,unitedVideoId:Qe,isClip:zt=!1,duration:Xt,adsParams:Yt={},videoEpisodes:Wt,previewThumbsData:ee,subtitles:Bt,live:xe}=e;if(!bt&&!xe){let ri=new Error("empty sources and live");this.fatalError$.next(ri),(n=ge.onCrashed)==null||n.call(ge,ri.message);return}let he={...G,...Yt},ie=this.getNextVideoInfo(),Be={sources:bt,title:gt,thumbUrl:St,subtitles:Bt,unitedVideoId:Qe,isClip:zt,live:xe,albumId:w,statPlace:y,autoplay:I,muted:k,volume:A,fromTime:E,canRewindLive:R,showAds:q,adsSlotId:W,adsParams:he,adsPreviewParam:X,adsAutoplayParam:Y,duration:Xt,logoClickable:me,logoHidden:ke,isTouch:ae!=null?ae:ve,repeat:Xe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ie.nextVideoTitle,endScreenVideoThumb:ie.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ze={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Be)}`});let Me=(r=this.interactiveController)==null?void 0:r.state.statistics$.getValue(),We=(Me==null?void 0:Me.oneStat)||this.createOneStat(e,i),Re=this.createThinOneStat(e,i),et;it&&(et=new Nl.MediascopePixel({pixels:it})),(We||Re)&&(this.statistics=new Mu(We,Re,et,Me==null?void 0:Me.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new va(this.uiConfig.sentry,{version:pa,env:ou},{movieId:Qe,albumId:w,place:y,autoplay:(l=I&&!this.interactiveController)!=null?l:!1,mobile:ae!=null?ae:ve,clip:zt}),this.interactiveController&&((p=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...va.getInstance()};let Kt=!!de,Je=[],pi="tooltip_interactive_go_back_disabled_first";if(Kt&&this.interactiveController){let ri=this.interactiveController.state.isInitialChapter$.getValue(),fi=this.interactiveController.getHistoryState();ri&&Je.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Je.push("SEEK_TO_INTERACTIVE_BUTTON"),fi.hasPrevChapter$.getValue()||(Je.push("PLAY_PREV_CHAPTER_BUTTON"),ri||(fi.isGoBackLimited$.getValue()?pi="tooltip_interactive_go_back_disabled_limit":pi="tooltip_interactive_go_back_disabled"))}let ti=()=>{var ri;this.isInited=!1,this.prevIsid=void 0;let fi=(o==null?void 0:o.info.isEnded$.getValue())&&((ri=this.interactiveController)==null?void 0:ri.state.isEndChapter$.getValue());ge.onReplayInteractiveVideo&&!fi?ge.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Y1({player:o,interfaceLanguage:ce,isCyrillicRelatedInterface:le,videoId:Qe,isClip:zt,isLiveCatchUpMode:ne,isAudioDisabled:Ve,statAuthToken:S,callbacks:ge,webApi:ze,videoEpisodes:Wt,previewThumbsData:ee,canDownload:_e,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Je,isInteractive:Kt,saveRate:Z,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ti,playPrevChapterDisabledTooltip:pi,hasInteractiveBranches:!!(($=(u=this.interactiveController)==null?void 0:u.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?pe:[],additionalSettingsMenuItems:te!=null?te:[],additionalContextMenuItems:qe!=null?qe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Xe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:at}=this.microStoresRoot=M0(),Gt=()=>{var ri,fi,fo,Qi,Qt,ni;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Dt=>{var $t;return($t=ge==null?void 0:ge.onCurrentFormatChanged)==null?void 0:$t.call(ge,Dt)})),this.subscription.add(at.interactiveControlsOpacity$.subscribe(Dt=>{var $t;Dt!==null&&(($t=this==null?void 0:this.interactiveController)==null||$t.setDisabledControls(Dt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Dt=>{var $t;return($t=ge==null?void 0:ge.onThroughputEstimationChanged)==null?void 0:$t.call(ge,Dt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Dt=>{var $t;return($t=ge==null?void 0:ge.onTrafficSavingEnabledChanged)==null?void 0:$t.call(ge,Dt)})),this.subscription.add(new Ki.Observable(Dt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe($t=>Dt.next($t)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Ki.skip)(1):Dt=>Dt).subscribe(Dt=>{var $t;return($t=ge==null?void 0:ge.onCurrentPlaybackRateChanged)==null?void 0:$t.call(ge,Dt)})),this.subscription.add(this.store.state.volume$.subscribe(Dt=>{var $t;return($t=ge==null?void 0:ge.onVolumeChange)==null?void 0:$t.call(ge,Dt)})),this.subscription.add(this.store.state.muted$.subscribe(Dt=>{var $t,Ei,Uo,U;if(Dt)($t=ge==null?void 0:ge.onMute)==null||$t.call(ge);else{let lt=(Uo=((Ei=this.store)==null?void 0:Ei.state.volume$)&&ye(this.store.state.volume$))!=null?Uo:0;(U=ge==null?void 0:ge.onUnmute)==null||U.call(ge,lt)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Dt=>{var $t;return($t=ge==null?void 0:ge.onVideoBitrateChanged)==null?void 0:$t.call(ge,Dt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Dt=>{var $t;let Ei=($t=this.store)==null?void 0:$t.ui.controls.disabledControls$;Ei&&(Dt&&!Ei.includes(md)&&Ei.add(md),Dt||Ei.remove(md))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Dt=>{var $t;if(!gc.clientChecker.browser.isSamsungBrowser||!Dt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(($t=this.videoConfig)==null?void 0:$t.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Dt=>{var $t;return($t=ge==null?void 0:ge.onVSIDChanged)==null?void 0:$t.call(ge,Dt)})),this.initMediaSession(),B(Dn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:bt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:gt,thumbUrl:St,subtitles:Bt,live:xe,preload:T,autoplay:I,muted:k,volume:A,fromTime:E,canRewindLive:R,supportLink:Q,showAds:q,adsSlotId:W,adsParams:he,adsPreviewParam:X,adsAutoplayParam:Y,duration:Xt,logoClickable:me,logoHidden:ke,isMobile:ae!=null?ae:ve,failoverHosts:He,fullScreenTarget:N,saveRate:Z,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ue,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ie.nextVideoTitle,endScreenVideoThumb:ie.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ae,showEndScreen:Te,showAutoplayNext:Ye},!0);let Fo={target:this.playerContainer,props:s(Dn)};this.svelteRootComponent=ts(Pv,Fo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(fo=(fi=(ri=this.videoConfig)==null?void 0:ri.callbacks)==null?void 0:fi.onInited)==null||fo.call(fi)),(Qi=this.internalsExposure)==null||Qi.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ni=(Qt=this.videoConfig)==null?void 0:Qt.callbacks)!=null&&ni.onDevNullLog)?Rl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Rl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?gc.clientChecker.isInited$.subscribe(ri=>{ri&&(console.log("UI SDK async start"),Gt())}):Gt()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let r=(i=this.videoConfig)==null?void 0:i.callbacks;r&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=r.onPlayerPhaseChanged)==null?void 0:a.call(r,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=r.onPlaybackStateChanged)==null?void 0:a.call(r,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=r.onIsLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=r.onIsActiveLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=r.onIsAudioAvailableChanged)==null?void 0:a.call(r,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=r.onCurrentQualityChanged)==null?void 0:a.call(r,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=r.onAvailableQualitiesChanged)==null?void 0:a.call(r,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&r.onAudioLanguagesAvailable&&r.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,p;return d?(a=r.onPiPEnter)==null?void 0:a.call(r):(p=r.onPiPExit)==null?void 0:p.call(r)}));let l=r==null?void 0:r.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,Ki.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n,r,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,p=a?ye(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:u,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:p,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:u,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let 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(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(f==null?void 0:f.title)||T.config.title};let I=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,I),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:I})=>{var A,k,E,R,Q,q;if(!this.store||!this.microStoresRoot)return;let W=w.getValue();if(T==="action-choice"&&I==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(vd)),T==="action-choice-canceled"){let G=ye(this.store.state.isPlaying$)||W;if(((E=(A=this.videoConfig)==null?void 0:A.isTouch)!=null?E:(k=this.videoConfig)!=null&&k.isMobile)&&G){this.store.ui.interactiveHideMobileControls.set(!0);return}(q=(R=this.videoConfig)==null?void 0:(Q=R.callbacks).onDisabledInteractiveClick)==null||q.call(Q)}})),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(vd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(I=>{var A,k,E;I.length&&((E=(k=(A=this.videoConfig)==null?void 0:A.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,A,k;(k=(I=this.videoConfig)==null?void 0:(A=I.callbacks).onInteractiveChapterChanged)==null||k.call(A,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,I,A,k;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(I=this.videoConfig)==null?void 0:(A=I.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(A)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,n,r,l,d,a,p,f,v,u,$,w,y,S,T,I,A,k,E,R,Q,q,W,G,X,Y,ce,le;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let me=new Error("empty videos");this.fatalError$.next(me),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,me.message);return}else this.fatalError$.next(null);if(this.videoConfig=lc(n5,(0,Ki.cloneDeepWith)(e,me=>me instanceof HTMLElement?me:void 0)),this.uiConfig=Eh((r=i.ui)!=null?r:{}),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((p=this.internalsExposure)!=null||(this.internalsExposure=new Ki.InternalsExposure("UI"))),Rl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,op.now)()]}),(0,Ki.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),(0,Ki.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(S=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.videoConfig.isTouch=(I=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?I:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(E=this.uiConfig.ads.slot)!=null?E:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(R=this.uiConfig.ads.preview)!=null?R:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((Q=this.uiConfig.showLogo)!=null?Q:!this.videoConfig.logoHidden),(q=this.videoConfig).canRewindLive&&(q.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(W=this.videoConfig.supportLink)!=null?W:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(G=this.uiConfig.features.endScreen)!=null?G:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(X=this.uiConfig.features.autoplayNext)!=null?X:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Y=this.uiConfig.features.nextPrevButtons)!=null?Y:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ce=this.videoConfig.videos)!=null&&ce[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let me={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=ju.getLatestSupportedVersion(me):this.pictureInPictureApi=new ga(me)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Qu:void 0,this.slotsApi=this.uiConfig.features.slots?new zu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Yu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),T0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(le=this.slotsApi)==null||le.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new tp(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();s(Dn)&&(s(Dn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Dn).nextButtonActive=this.isNextButtonActive(),s(Dn).prevButtonActive=this.isPrevButtonActive(),s(Dn).endScreenVideoTitle=o.nextVideoTitle,s(Dn).endScreenVideoThumb=o.nextVideoThumb,s(Dn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,r,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(r=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:r.onNextVideoClick)==null||l.call(r)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,r,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(r=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:r.onPrevVideoClick)==null||l.call(r)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,s(Dn)&&(s(Dn).needToRepeatPlaylist=this.needToRepeatPlaylist,s(Dn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Dn).nextButtonActive=this.isNextButtonActive(),s(Dn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let r=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&r(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||r(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var r;(r=this.store)==null||r.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var r;o||n(),(r=this.store)==null||r.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let r=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){r();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=r)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=ye(this.store.state.positionExact$),l=ye(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Ki.once)()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&sa(e)}};var Bl=require("@vkontakte/videoplayer-shared/es2018"),np=require("@vkontakte/videoplayer-core/es2018"),r5=()=>{window.customElements.define("vk-video-player",ip)};