@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.esm.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
- var f0=Object.defineProperty;var vv=t=>{throw TypeError(t)};var m0=(t,e,i)=>e in t?f0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var qn=(t,e,i)=>m0(t,typeof e!="symbol"?e+"":e,i),Fu=(t,e,i)=>e.has(t)||vv("Cannot "+i);var Ii=(t,e,i)=>(Fu(t,e,"read from private field"),i?i.call(t):e.get(t)),Cs=(t,e,i)=>e.has(t)?vv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),La=(t,e,i,o)=>(Fu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),gv=(t,e,i)=>(Fu(t,e,"access private method"),i);var Ss="[",Ts="[!",qs="]",Qr={};var zi=Symbol(),kn=Symbol("filename"),hv=Symbol("hmr"),_v="http://www.w3.org/1999/xhtml",sc="http://www.w3.org/2000/svg";var Uu="@attach";var ac=!0;var $v,yv,bv=(yv=($v=globalThis.process)==null?void 0:$v.env)==null?void 0:yv.NODE_ENV,Pe=bv&&!bv.toLowerCase().startsWith("prod");var Kn=Array.isArray,xv=Array.prototype.indexOf,$l=Array.from,zu=Object.keys,Zi=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,lc=Object.getOwnPropertyDescriptors,Wu=Object.prototype,wv=Array.prototype,Ks=Object.getPrototypeOf,qu=Object.isExtensible;function Es(t){return typeof t=="function"}var re=()=>{};function Cv(t){return t()}function Is(t){for(var e=0;e<t.length;e++)t[e]()}var Lo=Symbol("$state"),Va=Symbol("legacy props"),Sv=Symbol(""),dc=Symbol("proxy path"),cc=1,Ra=3,Qn=8;function uc(t){return t===this.v}function Na(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Tv(t,e){return t!==e}function Ba(t){return!Na(t,this.v)}function Ev(){if(Pe){let t=new Error(`derived_references_self
6
+ var m0=Object.defineProperty;var vv=t=>{throw TypeError(t)};var v0=(t,e,i)=>e in t?m0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var qn=(t,e,i)=>v0(t,typeof e!="symbol"?e+"":e,i),Fu=(t,e,i)=>e.has(t)||vv("Cannot "+i);var ki=(t,e,i)=>(Fu(t,e,"read from private field"),i?i.call(t):e.get(t)),Cs=(t,e,i)=>e.has(t)?vv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),La=(t,e,i,o)=>(Fu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),gv=(t,e,i)=>(Fu(t,e,"access private method"),i);var Ss="[",Ts="[!",qs="]",Qr={};var Ui=Symbol(),kn=Symbol("filename"),hv=Symbol("hmr"),_v="http://www.w3.org/1999/xhtml",sc="http://www.w3.org/2000/svg";var Uu="@attach";var ac=!0;var $v,yv,bv=(yv=($v=globalThis.process)==null?void 0:$v.env)==null?void 0:yv.NODE_ENV,Pe=bv&&!bv.toLowerCase().startsWith("prod");var Kn=Array.isArray,xv=Array.prototype.indexOf,$l=Array.from,zu=Object.keys,ji=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,lc=Object.getOwnPropertyDescriptors,Wu=Object.prototype,wv=Array.prototype,Ks=Object.getPrototypeOf,qu=Object.isExtensible;function Es(t){return typeof t=="function"}var se=()=>{};function Cv(t){return t()}function Is(t){for(var e=0;e<t.length;e++)t[e]()}var Ao=Symbol("$state"),Va=Symbol("legacy props"),Sv=Symbol(""),dc=Symbol("proxy path"),cc=1,Ra=3,Qn=8;function uc(t){return t===this.v}function Na(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Tv(t,e){return t!==e}function Ba(t){return!Na(t,this.v)}function Ev(){if(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 Iv(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 Bv(){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 Ov(){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 Dv(){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 Gr=!1,jr=!1;function Hv(){Gr=!0}var yl=null;function as(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;Zi(e,"stack",{value:n.join(`
25
- `)}),Zi(e,"name",{value:`${t}Error`})}return e}function Er(t,e){return t.label=e,pc(t.v,e),t}function pc(t,e){var i;return(i=t==null?void 0:t[dc])==null||i.call(t,e),t}function Oa(t){if(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;ji(e,"stack",{value:n.join(`
25
+ `)}),ji(e,"name",{value:`${t}Error`})}return e}function Er(t,e){return t.label=e,pc(t.v,e),t}function pc(t,e){var i;return(i=t==null?void 0:t[dc])==null||i.call(t,e),t}function Oa(t){if(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 Vt=null;function xl(t){Vt=t}var Gn=null;function wl(t){Gn=t}function Da(t){return Gu("getContext").get(t)}function Ha(t,e){return Gu("setContext").set(t,e),e}function Cl(){return Gu("getAllContexts")}function H(t,e=!1,i){var o=Vt={p:Vt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Gr&&!e&&(Vt.l={s:null,u:null,r1:[],r2:ur(!1)}),Vo(()=>{o.d=!0}),Pe&&(Vt.function=i,Gn=i)}function F(t){var l,d;let e=Vt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=ft,o=Ct;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];Xi(r.effect),Ri(r.reaction),yo(r.fn)}}finally{Xi(i),Ri(o)}}Vt=e.p,Pe&&(Gn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Yr(){return!Gr||Vt!==null&&Vt.l===null}function Gu(t){var e;return Vt===null&&Oa(t),(e=Vt.c)!=null?e:Vt.c=new Map(g0(Vt)||void 0)}function g0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var h0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ni(t){if(typeof t!="object"||t===null||Lo in t)return t;let e=Ks(t);if(e!==Wu&&e!==wv)return t;var i=new Map,o=Kn(t),n=j(0),r=Pe&&jr?as("CreatedAt"):null,l=Ct,d=f=>{var v=Ct;Ri(l);var u=f();return Ri(v),u};o&&i.set("length",j(t.length,r));var a="";function p(f){a=f,Er(n,`${a} version`);for(let[v,u]of i)Er(u,Qs(a,v))}return new Proxy(t,{defineProperty(f,v,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Bv();var $=i.get(v);return $===void 0?$=d(()=>{var w=j(u.value,r);return i.set(v,w),Pe&&typeof v=="string"&&Er(w,Qs(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),ju(n),Pe&&Er(y,Qs(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),ju(n)}return!0},get(f,v,u){var S;if(v===Lo)return t;if(Pe&&v===dc)return p;var $=i.get(v),w=v in f;if($===void 0&&(!w||(S=Jo(f,v))!=null&&S.writable)&&($=d(()=>{var T=ni(w?f[v]:zi),I=j(T,r);return Pe&&Er(I,Qs(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===Lo)return!0;var u=i.get(v),$=u!==void 0&&u.v!==zi||Reflect.has(f,v);if(u!==void 0||ft!==null&&(!$||(y=Jo(f,v))!=null&&y.writable)){u===void 0&&(u=d(()=>{var S=$?ni(f[v]):zi,T=j(S,r);return Pe&&Er(T,Qs(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&&Er(T,Qs(a,S)))}if(w===void 0)(!y||(R=Jo(f,v))!=null&&R.writable)&&(w=d(()=>j(void 0,r)),B(w,ni(u)),i.set(v,w),Pe&&Er(w,Qs(a,v)));else{y=w.v!==zi;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)}ju(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(){Ov()}})}function Qs(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:h0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function ju(t,e=1){B(t,t.v+e)}function Fa(t){try{if(t!==null&&typeof t=="object"&&Lo in t)return t[Lo]}catch(e){}return t}function Yu(t,e){return Object.is(Fa(t),Fa(e))}function Ir(t){var e=2050,i=Ct!==null&&(Ct.f&2)!==0?Ct:null;ft===null||i!==null&&(i.f&256)!==0?e|=256:ft.f|=1048576;let o={ctx:Vt,deps:null,effects:null,equals:uc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:ft};return Pe&&jr&&(o.created=as("CreatedAt")),o}function g(t){let e=Ir(t);return vc(e),e}function kr(t){let e=Ir(t);return e.equals=Ba,e}function fc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ni(e[i])}}var Zu=[];function _0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function ep(t){var e,i=ft;if(Xi(_0(t)),Pe){let o=Gs;Xu(new Set);try{Zu.includes(t)&&Ev(),Zu.push(t),fc(t),e=mc(t)}finally{Xi(i),Xu(o),Zu.pop()}}else try{fc(t),e=mc(t)}finally{Xi(i)}return e}function tp(t){var e=ep(t);if(t.equals(e)||(t.v=e,t.wv=Sl()),!ls){var i=(ds||(t.f&256)!==0)&&t.deps!==null?4096:1024;mn(t,i)}}var Gs=new Set,Ua=new Map;function Xu(t){Gs=t}function ur(t,e){var i={f:0,v:t,reactions:null,equals:uc,rv:0,wv:0};return Pe&&jr&&(i.created=e!=null?e:as("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function j(t,e){let i=ur(t,e);return vc(i),i}function Zr(t,e=!1,i=!0){var n,r;let o=ur(t);return e||(o.equals=Ba),Gr&&i&&Vt!==null&&Vt.l!==null&&((r=(n=Vt.l).s)!=null?r:n.s=[]).push(o),o}function B(t,e,i=!1){var n;Ct!==null&&(!Zn||(Ct.f&262144)!==0)&&Yr()&&(Ct.f&262162)!==0&&!((n=No)!=null&&n[1].includes(t)&&No[0]===Ct)&&Dv();let o=i?ni(e):e;return Pe&&pc(o,t.label),za(t,o)}function za(t,e){if(!t.equals(e)){var i=t.v;if(ls?Ua.set(t,e):Ua.set(t,i),t.v=e,Pe&&jr&&(t.updated=as("UpdatedAt"),ft!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&ep(t),mn(t,(t.f&256)===0?1024:4096)),t.wv=Sl(),Uv(t,2048),Yr()&&ft!==null&&(ft.f&1024)!==0&&(ft.f&96)===0&&(Yn===null?zv([t]):Yn.push(t)),Pe&&Gs.size>0){let o=Array.from(Gs);for(let n of o)(n.f&1024)!==0&&mn(n,4096),Ys(n)&&Wa(n);Gs.clear()}}return e}function Uv(t,e){var i=t.reactions;if(i!==null)for(var o=Yr(),n=i.length,r=0;r<n;r++){var l=i[r],d=l.f;if((d&2048)===0&&!(!o&&l===ft)){if(Pe&&(d&262144)!==0){Gs.add(l);continue}mn(l,e),(d&1280)!==0&&((d&2)!==0?Uv(l,4096):El(l))}}}var qa="font-weight: bold",Ka="font-weight: normal";function Wv(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 Lt=null;function xl(t){Lt=t}var Gn=null;function wl(t){Gn=t}function Da(t){return Gu("getContext").get(t)}function Ha(t,e){return Gu("setContext").set(t,e),e}function Cl(){return Gu("getAllContexts")}function D(t,e=!1,i){var o=Lt={p:Lt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Gr&&!e&&(Lt.l={s:null,u:null,r1:[],r2:ur(!1)}),Mo(()=>{o.d=!0}),Pe&&(Lt.function=i,Gn=i)}function H(t){var l,d;let e=Lt;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];Yi(r.effect),Ri(r.reaction),bo(r.fn)}}finally{Yi(i),Ri(o)}}Lt=e.p,Pe&&(Gn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Yr(){return!Gr||Lt!==null&&Lt.l===null}function Gu(t){var e;return Lt===null&&Oa(t),(e=Lt.c)!=null?e:Lt.c=new Map(h0(Lt)||void 0)}function h0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var _0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function oi(t){if(typeof t!="object"||t===null||Ao in t)return t;let e=Ks(t);if(e!==Wu&&e!==wv)return t;var i=new Map,o=Kn(t),n=j(0),r=Pe&&jr?as("CreatedAt"):null,l=Tt,d=f=>{var v=Tt;Ri(l);var u=f();return Ri(v),u};o&&i.set("length",j(t.length,r));var a="";function p(f){a=f,Er(n,`${a} version`);for(let[v,u]of i)Er(u,Qs(a,v))}return new Proxy(t,{defineProperty(f,v,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Bv();var $=i.get(v);return $===void 0?$=d(()=>{var w=j(u.value,r);return i.set(v,w),Pe&&typeof v=="string"&&Er(w,Qs(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(Ui,r));i.set(v,y),ju(n),Pe&&Er(y,Qs(a,v))}}else{if(o&&typeof v=="string"){var $=i.get("length"),w=Number(v);Number.isInteger(w)&&w<$.v&&B($,w)}B(u,Ui),ju(n)}return!0},get(f,v,u){var S;if(v===Ao)return t;if(Pe&&v===dc)return p;var $=i.get(v),w=v in f;if($===void 0&&(!w||(S=Xo(f,v))!=null&&S.writable)&&($=d(()=>{var T=oi(w?f[v]:Ui),I=j(T,r);return Pe&&Er(I,Qs(a,v)),I}),i.set(v,$)),$!==void 0){var y=s($);return y===Ui?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!==Ui)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return u},has(f,v){var y;if(v===Ao)return!0;var u=i.get(v),$=u!==void 0&&u.v!==Ui||Reflect.has(f,v);if(u!==void 0||vt!==null&&(!$||(y=Xo(f,v))!=null&&y.writable)){u===void 0&&(u=d(()=>{var S=$?oi(f[v]):Ui,T=j(S,r);return Pe&&Er(T,Qs(a,v)),T}),i.set(v,u));var w=s(u);if(w===Ui)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,Ui):S in f&&(T=d(()=>j(Ui,r)),i.set(S+"",T),Pe&&Er(T,Qs(a,S)))}if(w===void 0)(!y||(R=Xo(f,v))!=null&&R.writable)&&(w=d(()=>j(void 0,r)),B(w,oi(u)),i.set(v,w),Pe&&Er(w,Qs(a,v)));else{y=w.v!==Ui;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)}ju(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!==Ui});for(var[u,$]of i)$.v!==Ui&&!(u in f)&&v.push(u);return v},setPrototypeOf(){Ov()}})}function Qs(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:_0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function ju(t,e=1){B(t,t.v+e)}function Fa(t){try{if(t!==null&&typeof t=="object"&&Ao in t)return t[Ao]}catch(e){}return t}function Yu(t,e){return Object.is(Fa(t),Fa(e))}function Ir(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:Lt,deps:null,effects:null,equals:uc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:vt};return Pe&&jr&&(o.created=as("CreatedAt")),o}function g(t){let e=Ir(t);return vc(e),e}function kr(t){let e=Ir(t);return e.equals=Ba,e}function fc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ni(e[i])}}var Zu=[];function b0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function ep(t){var e,i=vt;if(Yi(b0(t)),Pe){let o=Gs;Xu(new Set);try{Zu.includes(t)&&Ev(),Zu.push(t),fc(t),e=mc(t)}finally{Yi(i),Xu(o),Zu.pop()}}else try{fc(t),e=mc(t)}finally{Yi(i)}return e}function tp(t){var e=ep(t);if(t.equals(e)||(t.v=e,t.wv=Sl()),!ls){var i=(ds||(t.f&256)!==0)&&t.deps!==null?4096:1024;mn(t,i)}}var Gs=new Set,Ua=new Map;function Xu(t){Gs=t}function ur(t,e){var i={f:0,v:t,reactions:null,equals:uc,rv:0,wv:0};return Pe&&jr&&(i.created=e!=null?e:as("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function j(t,e){let i=ur(t,e);return vc(i),i}function Zr(t,e=!1,i=!0){var n,r;let o=ur(t);return e||(o.equals=Ba),Gr&&i&&Lt!==null&&Lt.l!==null&&((r=(n=Lt.l).s)!=null?r:n.s=[]).push(o),o}function B(t,e,i=!1){var n;Tt!==null&&(!Zn||(Tt.f&262144)!==0)&&Yr()&&(Tt.f&262162)!==0&&!((n=Vo)!=null&&n[1].includes(t)&&Vo[0]===Tt)&&Dv();let o=i?oi(e):e;return Pe&&pc(o,t.label),za(t,o)}function za(t,e){if(!t.equals(e)){var i=t.v;if(ls?Ua.set(t,e):Ua.set(t,i),t.v=e,Pe&&jr&&(t.updated=as("UpdatedAt"),vt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&ep(t),mn(t,(t.f&256)===0?1024:4096)),t.wv=Sl(),Uv(t,2048),Yr()&&vt!==null&&(vt.f&1024)!==0&&(vt.f&96)===0&&(Yn===null?zv([t]):Yn.push(t)),Pe&&Gs.size>0){let o=Array.from(Gs);for(let n of o)(n.f&1024)!==0&&mn(n,4096),Ys(n)&&Wa(n);Gs.clear()}}return e}function Uv(t,e){var i=t.reactions;if(i!==null)for(var o=Yr(),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){Gs.add(l);continue}mn(l,e),(d&1280)!==0&&((d&2)!==0?Uv(l,4096):El(l))}}}var qa="font-weight: bold",Ka="font-weight: normal";function Wv(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`,qa,Ka):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function qv(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`,qa,Ka):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`,qa,Ka):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Qv(){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",qa,Ka):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function gc(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`,qa,Ka):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ye=!1;function Ji(t){Ye=t}var mt;function mi(t){if(t===null)throw ks(),Qr;return mt=t}function Bi(){return mi(Bo(mt))}function h(t){if(Ye){if(Bo(mt)!==null)throw ks(),Qr;mt=t}}function we(t=1){if(Ye){for(var e=t,i=mt;e--;)i=Bo(i);mt=i}}function Zs(){for(var t=0,e=mt;;){if(e.nodeType===Qn){var i=e.data;if(i===qs){if(t===0)return e;t-=1}else(i===Ss||i===Ts)&&(t+=1)}var o=Bo(e);e.remove(),e=o}}function hc(t){if(!t||t.nodeType!==Qn)throw ks(),Qr;return t.data}function Gv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Fa(this[a])===r){gc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Fa(this[a])===r){gc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Fa(this[a])===r){gc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Xs,jv,Il,Yv,Zv;function _c(){if(Xs===void 0){Xs=window,jv=document,Il=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Yv=Jo(e,"firstChild").get,Zv=Jo(e,"nextSibling").get,qu(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),qu(i)&&(i.__t=void 0),Pe&&(t.__svelte_meta=null,Gv())}}function vn(t=""){return document.createTextNode(t)}function gi(t){return Yv.call(t)}function Bo(t){return Zv.call(t)}function _(t,e){if(!Ye)return gi(t);var i=gi(mt);if(i===null)i=mt.appendChild(vn());else if(e&&i.nodeType!==Ra){var o=vn();return i==null||i.before(o),mi(o),o}return mi(i),i}function fe(t,e){var n,r;if(!Ye){var i=gi(t);return i.nodeType===8&&i.data===""?Bo(i):i}if(e&&((n=mt)==null?void 0:n.nodeType)!==Ra){var o=vn();return(r=mt)==null||r.before(o),mi(o),o}return mt}function P(t,e=1,i=!1){let o=Ye?mt:t;for(var n;e--;)n=o,o=Bo(o);if(!Ye)return o;if(i&&(o==null?void 0:o.nodeType)!==Ra){var r=vn();return o===null?n==null||n.after(r):o.before(r),mi(r),r}return mi(o),o}function kl(t){t.textContent=""}function np(t){ft===null&&Ct===null&&Pv(t),Ct!==null&&(Ct.f&256)!==0&&ft===null&&kv(),ls&&Iv(t)}function b0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Js(t,e,i,o=!0){var a;var n=ft;if(Pe)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var r={ctx:Vt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Pe&&(r.component_function=Gn),i)try{Wa(r),r.f|=32768}catch(p){throw Ni(r),p}else e!==null&&El(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&&b0(r,n),Ct!==null&&(Ct.f&2)!==0)){var d=Ct;((a=d.effects)!=null?a:d.effects=[]).push(r)}return r}function Vo(t){let e=Js(8,null,!1);return mn(e,1024),e.teardown=t,e}function We(t){var n;np("$effect");var e=ft!==null&&(ft.f&32)!==0&&Vt!==null&&!Vt.m;if(Pe&&Zi(t,"name",{value:"$effect"}),e){var i=Vt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:ft,reaction:Ct})}else{var o=yo(t);return o}}function Ml(t){return np("$effect.pre"),Pe&&Zi(t,"name",{value:"$effect.pre"}),Oo(t)}function yc(t){let e=Js(64,t,!0);return()=>{Ni(e)}}function Jv(t){let e=Js(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Ln(e,()=>{Ni(e),o(void 0)}):(Ni(e),o(void 0))})}function yo(t){return Js(4,t,!1)}function Oo(t){return Js(8,t,!0)}function O(t,e=[],i=Ir){if(Pe)return Oo(()=>{var n=ft,r=()=>t(...l.map(s));Zi(n.fn,"name",{value:"{expression}"}),Zi(r,"name",{value:"{expression}"});let l=e.map(i);Oi(r)});let o=e.map(i);return Oi(()=>t(...o.map(s)))}function Oi(t,e=0){return Js(24|e,t,!0)}function ki(t,e=!0){return Js(40,t,!0,e)}function rp(t){var e=t.teardown;if(e!==null){let i=ls,o=Ct;ip(!0),Ri(null);try{e.call(null)}finally{ip(i),Ri(o)}}}function sp(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:Ni(i,e),i=o}}function eg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ni(e),e=i}}function Ni(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(ap(t.nodes_start,t.nodes_end),i=!0),sp(t,e&&!i),Ll(t,0),mn(t,16384);var o=t.transitions;if(o!==null)for(let r of o)r.stop();rp(t);var n=t.parent;n!==null&&n.first!==null&&lp(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 ap(t,e){for(;t!==null;){var i=t===e?null:Bo(t);t.remove(),t=i}}function lp(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Ln(t,e){var i=[];xc(t,i,!0),dp(i,()=>{Ni(t),e&&e()})}function dp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function xc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;xc(o,e,r?i:!1),o=n}}}function us(t){tg(t,!0)}function tg(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;tg(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}var Vl=[],cp=[];function ig(){var t=Vl;Vl=[],Is(t)}function $0(){var t=cp;cp=[],Is(t)}function gn(t){Vl.length===0&&queueMicrotask(ig),Vl.push(t)}function og(){Vl.length>0&&ig(),cp.length>0&&$0()}function rg(t){var e=ft;if(Pe&&t instanceof Error&&y0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Rl(t,e)}function Rl(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var ng=new WeakSet;function y0(t,e){var l,d;if(ng.has(t))return;ng.add(t);let i=Jo(t,"message");if(!(i&&!i.configurable)){for(var o=Il?" ":" ",n=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,qa,Ka):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ye=!1;function Zi(t){Ye=t}var gt;function vi(t){if(t===null)throw ks(),Qr;return gt=t}function Bi(){return vi(Ro(gt))}function h(t){if(Ye){if(Ro(gt)!==null)throw ks(),Qr;gt=t}}function we(t=1){if(Ye){for(var e=t,i=gt;e--;)i=Ro(i);gt=i}}function Zs(){for(var t=0,e=gt;;){if(e.nodeType===Qn){var i=e.data;if(i===qs){if(t===0)return e;t-=1}else(i===Ss||i===Ts)&&(t+=1)}var o=Ro(e);e.remove(),e=o}}function hc(t){if(!t||t.nodeType!==Qn)throw ks(),Qr;return t.data}function Gv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Fa(this[a])===r){gc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Fa(this[a])===r){gc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Fa(this[a])===r){gc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Xs,jv,Il,Yv,Zv;function _c(){if(Xs===void 0){Xs=window,jv=document,Il=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Yv=Xo(e,"firstChild").get,Zv=Xo(e,"nextSibling").get,qu(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),qu(i)&&(i.__t=void 0),Pe&&(t.__svelte_meta=null,Gv())}}function vn(t=""){return document.createTextNode(t)}function hi(t){return Yv.call(t)}function Ro(t){return Zv.call(t)}function _(t,e){if(!Ye)return hi(t);var i=hi(gt);if(i===null)i=gt.appendChild(vn());else if(e&&i.nodeType!==Ra){var o=vn();return i==null||i.before(o),vi(o),o}return vi(i),i}function fe(t,e){var n,r;if(!Ye){var i=hi(t);return i.nodeType===8&&i.data===""?Ro(i):i}if(e&&((n=gt)==null?void 0:n.nodeType)!==Ra){var o=vn();return(r=gt)==null||r.before(o),vi(o),o}return gt}function P(t,e=1,i=!1){let o=Ye?gt:t;for(var n;e--;)n=o,o=Ro(o);if(!Ye)return o;if(i&&(o==null?void 0:o.nodeType)!==Ra){var r=vn();return o===null?n==null||n.after(r):o.before(r),vi(r),r}return vi(o),o}function kl(t){t.textContent=""}function np(t){vt===null&&Tt===null&&Pv(t),Tt!==null&&(Tt.f&256)!==0&&vt===null&&kv(),ls&&Iv(t)}function $0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Js(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:Lt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Pe&&(r.component_function=Gn),i)try{Wa(r),r.f|=32768}catch(p){throw Ni(r),p}else e!==null&&El(r);var l=i&&r.deps===null&&r.first===null&&r.nodes_start===null&&r.teardown===null&&(r.f&1048704)===0;if(!l&&o&&(n!==null&&$0(r,n),Tt!==null&&(Tt.f&2)!==0)){var d=Tt;((a=d.effects)!=null?a:d.effects=[]).push(r)}return r}function Mo(t){let e=Js(8,null,!1);return mn(e,1024),e.teardown=t,e}function Ue(t){var n;np("$effect");var e=vt!==null&&(vt.f&32)!==0&&Lt!==null&&!Lt.m;if(Pe&&ji(t,"name",{value:"$effect"}),e){var i=Lt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:vt,reaction:Tt})}else{var o=bo(t);return o}}function Ml(t){return np("$effect.pre"),Pe&&ji(t,"name",{value:"$effect.pre"}),No(t)}function yc(t){let e=Js(64,t,!0);return()=>{Ni(e)}}function Jv(t){let e=Js(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Ln(e,()=>{Ni(e),o(void 0)}):(Ni(e),o(void 0))})}function bo(t){return Js(4,t,!1)}function No(t){return Js(8,t,!0)}function O(t,e=[],i=Ir){if(Pe)return No(()=>{var n=vt,r=()=>t(...l.map(s));ji(n.fn,"name",{value:"{expression}"}),ji(r,"name",{value:"{expression}"});let l=e.map(i);Oi(r)});let o=e.map(i);return Oi(()=>t(...o.map(s)))}function Oi(t,e=0){return Js(24|e,t,!0)}function Pi(t,e=!0){return Js(40,t,!0,e)}function rp(t){var e=t.teardown;if(e!==null){let i=ls,o=Tt;ip(!0),Ri(null);try{e.call(null)}finally{ip(i),Ri(o)}}}function sp(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:Ni(i,e),i=o}}function eg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ni(e),e=i}}function Ni(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(ap(t.nodes_start,t.nodes_end),i=!0),sp(t,e&&!i),Ll(t,0),mn(t,16384);var o=t.transitions;if(o!==null)for(let r of o)r.stop();rp(t);var n=t.parent;n!==null&&n.first!==null&&lp(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 ap(t,e){for(;t!==null;){var i=t===e?null:Ro(t);t.remove(),t=i}}function lp(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Ln(t,e){var i=[];xc(t,i,!0),dp(i,()=>{Ni(t),e&&e()})}function dp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function xc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;xc(o,e,r?i:!1),o=n}}}function us(t){tg(t,!0)}function tg(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;tg(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}var Vl=[],cp=[];function ig(){var t=Vl;Vl=[],Is(t)}function y0(){var t=cp;cp=[],Is(t)}function gn(t){Vl.length===0&&queueMicrotask(ig),Vl.push(t)}function og(){Vl.length>0&&ig(),cp.length>0&&y0()}function rg(t){var e=vt;if(Pe&&t instanceof Error&&x0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Rl(t,e)}function Rl(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var ng=new WeakSet;function x0(t,e){var l,d;if(ng.has(t))return;ng.add(t);let i=Xo(t,"message");if(!(i&&!i.configurable)){for(var o=Il?" ":" ",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[kn].split("/").pop()}`,r=r.p;Zi(t,"message",{value:t.message+`
39
+ ${o}in ${(d=r.function)==null?void 0:d[kn].split("/").pop()}`,r=r.p;ji(t,"message",{value:t.message+`
40
40
  ${n}
41
- `}),t.stack&&Zi(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&ji(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var ea=!1,Qa=null,ta=!1,ls=!1;function ip(t){ls=t}var Nl=[],Bl=[],Ct=null,Zn=!1;function Ri(t){Ct=t}var ft=null;function Xi(t){ft=t}var No=null;function vc(t){Ct!==null&&Ct.f&2097152&&(No===null?No=[Ct,[t]]:No[1].push(t))}var hn=null,Xn=0,Yn=null;function zv(t){Yn=t}var lg=1,Cc=0,ds=!1,Sc=null;function Sl(){return++lg}function Ys(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&&ft!==null&&!ds,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],Ys(r)&&tp(r),r.wv>t.wv)return!0}(!o||ft!==null&&!ds)&&mn(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];No!=null&&No[1].includes(t)&&No[0]===Ct||((r.f&2)!==0?dg(r,e,!1):e===r&&(i?mn(r,2048):(r.f&1024)!==0&&mn(r,4096),El(r)))}}function mc(t){var $,w;var e=hn,i=Xn,o=Yn,n=Ct,r=ds,l=No,d=Vt,a=Zn,p=t.f;hn=null,Xn=0,Yn=null,ds=(p&256)!==0&&(Zn||!ta||Ct===null),Ct=(p&96)===0?t:null,No=null,xl(t.ctx),Zn=!1,Cc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(hn!==null){var u;if(Ll(t,Xn),v!==null&&Xn>0)for(v.length=Xn+hn.length,u=0;u<hn.length;u++)v[Xn+u]=hn[u];else t.deps=v=hn;if(!ds||(p&2)!==0&&t.reactions!==null)for(u=Xn;u<v.length;u++)((w=($=v[u]).reactions)!=null?w:$.reactions=[]).push(t)}else v!==null&&Xn<v.length&&(Ll(t,Xn),v.length=Xn);if(Yr()&&Yn!==null&&!Zn&&v!==null&&(t.f&6146)===0)for(u=0;u<Yn.length;u++)dg(Yn[u],t);return n!==null&&n!==t&&(Cc++,Yn!==null&&(o===null?o=Yn:o.push(...Yn))),f}catch(y){rg(y)}finally{hn=e,Xn=i,Yn=o,Ct=n,ds=r,No=l,xl(d),Zn=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&&(hn===null||!hn.includes(e))&&(mn(e,4096),(e.f&768)===0&&(e.f^=512),fc(e),Ll(e,0))}function Ll(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)x0(t,i[o])}function Wa(t){var e=t.f;if((e&16384)===0){mn(t,1024);var i=ft,o=ta;if(ft=t,ta=!0,Pe){var n=Gn;wl(t.component_function)}try{(e&16)!==0?eg(t):sp(t),rp(t);var r=mc(t);if(t.teardown=typeof r=="function"?r:null,t.wv=lg,Pe&&jr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Sl(),l.set_during_effect=!1);Pe&&Bl.push(t)}finally{ta=o,ft=i,Pe&&wl(n)}}}function sg(){console.error("Last ten effects were: ",Bl.slice(-10).map(t=>t.fn)),Bl=[]}function w0(){try{Av()}catch(t){if(Pe&&Zi(t,"stack",{value:""}),Qa!==null)if(Pe)try{Rl(t,Qa)}catch(e){throw sg(),e}else Rl(t,Qa);else throw Pe&&sg(),t}}function pp(){var t=ta;try{var e=0;for(ta=!0;Nl.length>0;){e++>1e3&&w0();var i=Nl,o=i.length;Nl=[];for(var n=0;n<o;n++){var r=S0(i[n]);C0(r)}Ua.clear()}}finally{ea=!1,ta=t,Qa=null,Pe&&(Bl=[])}}function C0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Ys(o)&&(Wa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?lp(o):o.fn=null))}}function El(t){ea||(ea=!0,queueMicrotask(pp));for(var e=Qa=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Nl.push(e)}function S0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,r=n&&(o&1024)!==0;if(!r&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:Ys(i)&&Wa(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function Ga(t){var e;for(t&&(ea=!0,pp(),ea=!0,e=t());;){if(og(),Nl.length===0)return ea=!1,Qa=null,Pe&&(Bl=[]),e;ea=!0,pp()}}async function xo(){await Promise.resolve(),Ga()}function s(t){var e=t.f,i=(e&2)!==0;if(Sc!==null&&Sc.add(t),Ct!==null&&!Zn){if(!(No!=null&&No[1].includes(t))||No[0]!==Ct){var o=Ct.deps;t.rv<Cc&&(t.rv=Cc,hn===null&&o!==null&&o[Xn]===t?Xn++:hn===null?hn=[t]:(!ds||!hn.includes(t))&&hn.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,Ys(n)&&tp(n)),Pe&&jr&&!Zn&&yl!==null&&Ct!==null&&yl.reaction===Ct)if(t.trace)t.trace();else{var l=as("TracedAt");if(l){var d=yl.entries.get(t);d===void 0&&(d={traces:[]},yl.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 ls&&Ua.has(t)?Ua.get(t):t.v}function $t(t){var e=Zn;try{return Zn=!0,t()}finally{Zn=e}}var T0=-7169;function mn(t,e){t.f=t.f&T0|e}function Ec(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Lo in t)Tc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Lo in i&&Tc(i)}}}function Tc(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Tc(t[o],e)}catch(n){}let i=Ks(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=lc(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}function fp(t,e){if(e){let i=document.body;t.autofocus=!0,gn(()=>{document.activeElement===i&&t.focus()})}}function Ol(t){var e=Ct,i=ft;Ri(null),Xi(null);try{return t()}finally{Ri(e),Xi(i)}}var mp=new Set,Ic=new Set;function ia(t){if(!Ye)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 vp(t,e,i,o={}){function n(r){if(o.capture||ja.call(e,r),!r.cancelBubble)return Ol(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?gn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function xt(t,e,i,o,n){var r={capture:o,passive:n},l=vp(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Vo(()=>{e.removeEventListener(t,l,r)})}function ut(t){for(var e=0;e<t.length;e++)mp.add(t[e]);for(var i of Ic)i(t)}function ja(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;a<=p&&(l=a)}if(r=n[l]||t.target,r!==e){Zi(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=Ct,v=ft;Ri(null),Xi(null);try{for(var u,$=[];r!==null;){var w=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!=null&&(!r.disabled||t.target===r))if(Kn(y)){var[S,...T]=y;S.apply(r,[t,...T])}else y.call(r,t)}catch(A){u?$.push(A):u=A}if(t.cancelBubble||w===e||w===null)break;r=w}if(u){for(let A of $)queueMicrotask(()=>{throw A});throw u}}finally{t.__root=e,delete t.currentTarget,Ri(f),Xi(v)}}}var I0;function cg(){I0=void 0}function Ya(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function wo(t,e){var i=ft;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(Ye)return wo(mt,null),mt;n===void 0&&(n=Ya(r?t:"<!>"+t),i||(n=gi(n)));var l=o||Il?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=gi(l),a=l.lastChild;wo(d,a)}else wo(l,l);return l}}function A0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Ye)return wo(mt,null),mt;if(!l){var d=Ya(r),a=gi(d);if(n)for(l=document.createDocumentFragment();gi(a);)l.appendChild(gi(a));else l=gi(a)}var p=l.cloneNode(!0);if(n){var f=gi(p),v=p.lastChild;wo(f,v)}else wo(p,p);return p}}function Ce(t,e){return A0(t,e,"svg")}function Xr(t=""){if(!Ye){var e=vn(t+"");return wo(e,e),e}var i=mt;return i.nodeType!==Ra&&(i.before(i=vn()),mi(i)),wo(i,i),i}function Ue(){if(Ye)return wo(mt,null),mt;var t=document.createDocumentFragment(),e=document.createComment(""),i=vn();return t.append(e,i),wo(e,i),t}function b(t,e){if(Ye){ft.nodes_end=mt,Bi();return}t!==null&&t.before(e)}var M0=/\r/g;function pg(t){t=t.replace(M0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function fg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var L0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function mg(t){return L0.includes(t)}var V0=["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 R0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function vg(t){var e;return t=t.toLowerCase(),(e=R0[t])!=null?e:t}var Q9=[...V0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var N0=["touchstart","touchmove"];function gg(t){return N0.includes(t)}var B0=["$state","$state.raw","$derived","$derived.by"],G9=[...B0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var O0=["textarea","script","style","title"];function hg(t){return O0.includes(t)}function kc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Dl=!0;function Pc(t){Dl=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 Jr(t,e){return _g(t,e)}function hp(t,e){var l;_c(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Ye,n=mt;try{for(var r=gi(i);r&&(r.nodeType!==Qn||r.data!==Ss);)r=Bo(r);if(!r)throw Qr;Ji(!0),mi(r),Bi();let d=_g(t,{...e,anchor:r});if(mt===null||mt.nodeType!==Qn||mt.data!==qs)throw ks(),Qr;return Ji(!1),d}catch(d){if(d===Qr)return e.recover===!1&&Mv(),_c(),kl(i),Ji(!1),Jr(t,e);throw d}finally{Ji(o),mi(n),cg()}}var Za=new Map;function _g(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){_c();var d=new Set,a=v=>{for(var u=0;u<v.length;u++){var $=v[u];if(!d.has($)){d.add($);var w=gg($);e.addEventListener($,ja,{passive:w});var y=Za.get($);y===void 0?(document.addEventListener($,ja,{passive:w}),Za.set($,1)):Za.set($,y+1)}}};a($l(mp)),Ic.add(a);var p=void 0,f=Jv(()=>{var v=i!=null?i:e.appendChild(vn());return ki(()=>{if(r){H({});var u=Vt;u.c=r}n&&(o.$$events=n),Ye&&wo(v,null),Dl=l,p=t(v,o)||{},Dl=!0,Ye&&(ft.nodes_end=mt),r&&F()}),()=>{var w;for(var u of d){e.removeEventListener(u,ja);var $=Za.get(u);--$===0?(document.removeEventListener(u,ja),Za.delete(u)):Za.set(u,$)}Ic.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return gp.set(p,f),p}var gp=new WeakMap;function oa(t,e){let i=gp.get(t);return i?(gp.delete(t),i(e)):(Pe&&Kv(),Promise.resolve())}function be(t,e,...i){var o=t,n=re,r;Oi(()=>{n!==(n=e())&&(r&&(Ni(r),r=null),Pe&&n==null&&Lv(),r=ki(()=>n(o,...i)))},65536),Ye&&(o=mt)}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;Nv(e)},set:o=>{i=o}})}};U0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var U0;function Nt(t){Vt===null&&Oa("onMount"),Gr&&Vt.l!==null?F0(Vt).m.push(t):We(()=>{let e=$t(t);if(typeof e=="function")return e})}function Vn(t){Vt===null&&Oa("onDestroy"),Nt(()=>()=>$t(t))}function F0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var bg=new Map;function $g(t,e){var i=bg.get(t);i||(i=new Set,bg.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){Ye&&i===0&&Bi();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(Ye&&o!==-1){if(i===0){let S=hc(n);S===Ss?o=0:S===Ts?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Zs(),mi(n),Ji(!1),w=!0,o=-1)}d?(r?us(r):$&&(r=ki(()=>$(n))),l&&Ln(l,()=>{l=null})):(l?us(l):$&&(l=ki(()=>$(n,[i+1,o]))),r&&Ln(r,()=>{r=null})),w&&Ji(!0)};Oi(()=>{p=!1,e(f),p||v(null,null)},a),Ye&&(n=mt)}function na(t,e,i){Ye&&Bi();var o=t,n=zi,r,l=Yr()?Tv:Na;Oi(()=>{l(n,n=e())&&(r&&Ln(r),r=ki(()=>i(o)))}),Ye&&(o=mt)}var As=null;function $p(t){As=t}function Hl(t,e){return e}function q0(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)xc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;kl(a),a.append(i),o.clear(),Ps(t,e[0].prev,e[r-1].next)}dp(n,()=>{for(var p=0;p<r;p++){var f=e[p];d||(o.delete(f.k),Ps(t,f.prev,f.next)),Ni(f.e,!d)}})}function yi(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=Ye?mi(gi(p)):p.appendChild(vn())}Ye&&Bi();var f=null,v=!1,u=kr(()=>{var $=i();return Kn($)?$:$==null?[]:$l($)});Oi(()=>{var $=s(u),w=$.length;if(v&&w===0)return;v=w===0;let y=!1;if(Ye){var S=hc(l)===Ts;S!==(w===0)&&(l=Zs(),mi(l),Ji(!1),y=!0)}if(Ye){for(var T=null,I,A=0;A<w;A++){if(mt.nodeType===Qn&&mt.data===qs){l=mt,y=!0,Ji(!1);break}var k=$[A],E=o(k,A);I=wg(mt,d,T,null,k,E,A,n,e,i),d.items.set(E,I),T=I}w>0&&mi(Zs())}Ye||K0($,d,l,n,e,o,i),r!==null&&(w===0?f?us(f):f=ki(()=>r(l)):f!==null&&Ln(f,()=>{f=null})),y&&Ji(!0),s(u)}),Ye&&(l=mt)}function K0(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=wg(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&&Q0(k,I,E,n),(k.e.f&8192)!==0&&(us(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)yg(S[q],G,i);for(q=0;q<T.length;q+=1)$.delete(T[q]);Ps(e,W.prev,Q.next),Ps(e,w,W),Ps(e,Q,G),u=G,w=Q,E-=1,S=[],T=[]}else $.delete(k),yg(k,u,i),Ps(e,k.prev,k.next),Ps(e,k,w===null?e.first:w.next),Ps(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?[]:$l($);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()}q0(e,X,de,f)}}d&&gn(()=>{var se;if(y!==void 0)for(k of y)(se=k.a)==null||se.apply()}),ft.first=e.first&&e.first.e,ft.last=w&&w.e}function Q0(t,e,i,o){(o&1)!==0&&za(t.v,e),(o&2)!==0?za(t.i,i):t.i=i}function wg(t,e,i,o,n,r,l,d,a,p){var f=As,v=(a&1)!==0,u=(a&16)===0,$=v?u?Zr(n,!1,!1):ur(n):n,w=(a&2)===0?l:ur(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};As=y;try{return y.e=ki(()=>d(t,$,w,p),Ye),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{As=f}}function yg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Bo(r);n.before(r),r=l}}function Ps(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 G0(t,e,i){var r,l;if(!e||e===pg(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Gn)!=null&&l[kn]&&(o=`in ${Gn[kn]}`),qv(kc(o))}function Fl(t,e,i=!1,o=!1,n=!1){var r=t,l="";O(()=>{var $;var d=ft;if(l===(l=($=e())!=null?$:"")){Ye&&Bi();return}if(d.nodes_start!==null&&(ap(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Ye){for(var a=mt.data,p=Bi(),f=p;p!==null&&(p.nodeType!==Qn||p.data!=="");)f=p,p=Bo(p);if(p===null)throw ks(),Qr;Pe&&!n&&G0(p.parentNode,a,l),wo(mt,f),r=mi(p);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var u=Ya(v);if((i||o)&&(u=gi(u)),wo(gi(u),u.lastChild),i||o)for(;gi(u);)r.before(gi(u));else r.before(u)}})}function xi(t,e,i){Ye&&Bi();var o=t,n,r;Oi(()=>{n!==(n=e())&&(r&&(Ln(r),r=null),n&&(r=ki(()=>i(o,n))))},65536),Ye&&(o=mt)}function ra(t,e,i,o,n,r){var w;let l=Ye;Ye&&Bi();var d=Pe&&r&&((w=Vt)==null?void 0:w.function[kn]),a,p,f=null;Ye&&mt.nodeType===cc&&(f=mt,Bi());var v=Ye?mt:t,u,$=As;Oi(()=>{let y=e()||null;var S=n?n():i||y==="svg"?sc:null;if(y!==a){var T=As;$p($),u&&(y===null?Ln(u,()=>{u=null,p=null}):y===p?us(u):(Ni(u),Pc(!1))),y&&y!==p&&(u=ki(()=>{if(f=Ye?f:S?document.createElementNS(S,y):document.createElement(y),Pe&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),wo(f,f),o){Ye&&hg(y)&&f.append(document.createComment(""));var I=Ye?gi(f):f.appendChild(vn());Ye&&(I===null?Ji(!1):mi(I)),o(f,I)}ft.nodes_end=f,v.before(f)})),a=y,a&&(p=a),Pc(!0),$p(T)}},65536),l&&(Ji(!0),mi(v))}var xp;function Cg(t){return xp=t.target,new yp(t)}var ps,pr,yp=class{constructor(e){Cs(this,ps);Cs(this,pr);var r,l;var i=new Map,o=(d,a)=>{var p=Zr(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===Va?!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)}});La(this,pr,(e.hydrate?hp:Jr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Ga(),La(this,ps,n.$$events);for(let d of Object.keys(Ii(this,pr)))d==="$set"||d==="$destroy"||d==="$on"||Zi(this,d,{get(){return Ii(this,pr)[d]},set(a){Ii(this,pr)[d]=a},enumerable:!0});Ii(this,pr).$set=d=>{Object.assign(n,d)},Ii(this,pr).$destroy=()=>{oa(Ii(this,pr))}}$set(e){Ii(this,pr).$set(e)}$on(e,i){Ii(this,ps)[e]=Ii(this,ps)[e]||[];let o=(...n)=>i.call(this,...n);return Ii(this,ps)[e].push(o),()=>{Ii(this,ps)[e]=Ii(this,ps)[e].filter(n=>n!==o)}}$destroy(){Ii(this,pr).$destroy()}};ps=new WeakMap,pr=new WeakMap;function z(t,e){gn(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=xp)==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&&$g(e.hash,d)}})}function fs(t,e){var i=void 0,o;Oi(()=>{i!==(i=e())&&(o&&(Ni(o),o=null),i&&(o=ki(()=>{yo(()=>i(t))})))})}function Sg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Sg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Tg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Sg(t))&&(o&&(o+=" "),o+=e);return o}function Ul(t){return typeof t=="object"?Tg(t):t!=null?t:""}var Eg=[...`
44
- \r\f\xA0\v\uFEFF`];function kg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var r=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+r;(l===0||Eg.includes(o[l-1]))&&(d===o.length||Eg.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Ig(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var r=t[n];r!=null&&r!==""&&(o+=" "+n+": "+r+i)}return o}function wp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Pg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var r=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(wp)),n&&a.push(...Object.keys(n).map(wp));var p=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var u=t[v];if(d?u==="/"&&t[v-1]==="*"&&(d=!1):r?r===u&&(r=!1):u==="/"&&t[v+1]==="*"?d=!0:u==='"'||u==="'"?r=u:u==="("?l++:u===")"&&l--,!d&&r===!1&&l===0){if(u===":"&&f===-1)f=v;else if(u===";"||v===y-1){if(f!==-1){var $=wp(t.substring(p,f).trim());if(!a.includes($)){u!==";"&&v++;var w=t.substring(p,v).trim();i+=" "+w+";"}}p=v+1,f=-1}}}}return o&&(i+=Ig(o)),n&&(i+=Ig(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(Ye||l!==i||l===void 0){var d=kg(i,o,r);(!Ye||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 Cp(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 lt(t,e,i,o){var n=t.__style;if(Ye||n!==e){var r=Pg(e,o);(!Ye||r!==t.getAttribute("style"))&&(r==null?t.removeAttribute("style"):t.style.cssText=r),t.__style=e}else o&&(Array.isArray(o)?(Cp(t,i==null?void 0:i[0],o[0]),Cp(t,i==null?void 0:i[1],o[1],"important")):Cp(t,i,o));return o}function zl(t,e,i){if(t.multiple){if(e==null)return;if(!Kn(e))return Qv();for(var o of t.options)o.selected=e.includes(Ag(o));return}for(o of t.options){var n=Ag(o);if(Yu(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Sp(t){var e=new MutationObserver(()=>{zl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Vo(()=>{e.disconnect()})}function Ag(t){return"__value"in t?t.__value:t.value}var Xa=Symbol("class"),Ja=Symbol("style"),Vg=Symbol("is custom element"),Rg=Symbol("is html");function Ng(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=Og(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||i_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Sv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Dg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Bg(t,e,i,o,n=!1){var k;var r=Og(t),l=r[Vg],d=!r[Rg];let a=Ye&&l;a&&Ji(!1);var p=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=Ul(i.class):(o||i[Xa])&&(i.class=null),i[Ja]&&((k=i.style)!=null||(i.style=null));var u=Dg(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[Xa],i[Xa]),p[E]=R,p[Xa]=i[Xa];continue}if(E==="style"){lt(t,R,e==null?void 0:e[Ja],i[Ja]),p[E]=R,p[Ja]=i[Ja];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=mg(W);if(fg(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,ut([W]);else{let Q=function(X){p[E].call(this,X)};var A=Q;p[q]=vp(W,t,Q,G)}else S&&(t[`__${W}`]=void 0)}else if(E==="style")De(t,E,R);else if(E==="autofocus")fp(t,!!R);else if(!l&&(E==="__value"||E==="value"&&R!=null))t.value=t.__value=R;else if(E==="selected"&&f)Ng(t,R);else{var T=E;d||(T=vg(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&&Ji(!0),p}function ke(t,e,i=[],o,n=!1,r=Ir){let l=i.map(r);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(Oi(()=>{var u=e(...l.map(s)),$=Bg(t,d,u,o,n);f&&p&&"value"in u&&zl(t,u.value,!1);for(let y of Object.getOwnPropertySymbols(a))u[y]||Ni(a[y]);for(let y of Object.getOwnPropertySymbols(u)){var w=u[y];y.description===Uu&&(!d||w!==d[y])&&(a[y]&&Ni(a[y]),a[y]=ki(()=>fs(t,()=>w))),$[y]=w}d=$}),p){var v=t;yo(()=>{zl(v,d.value),Sp(v)})}f=!0}function Og(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Vg]:t.nodeName.includes("-"),[Rg]:t.namespaceURI===_v}}var Mg=new Map;function Dg(t){var e=Mg.get(t.nodeName);if(e)return e;Mg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=lc(o);for(var r in i)i[r].set&&e.push(r);o=Ks(o)}return e}function i_(t,e,i){var o;Pe&&(e==="srcset"&&o_(t,i)||Tp((o=t.getAttribute(e))!=null?o:"",i)||Wv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Tp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Lg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function o_(t,e){var i=Lg(t.srcset),o=Lg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(Tp(i[l][0],n)||Tp(n,i[l][0])))}var n_=ac?()=>performance.now():()=>Date.now(),Mr={tick:t=>(ac?requestAnimationFrame:re)(t),now:()=>n_(),tasks:new Set};function Hg(){let t=Mr.now();Mr.tasks.forEach(e=>{e.c(t)||(Mr.tasks.delete(e),e.f())}),Mr.tasks.size!==0&&Mr.tick(Hg)}function Fg(t){let e;return Mr.tasks.size===0&&Mr.tick(Hg),{promise:new Promise(i=>{Mr.tasks.add(e={c:t,f:i})}),abort(){Mr.tasks.delete(e)}}}function Ac(t,e){Ol(()=>{t.dispatchEvent(new CustomEvent(e))})}function l_(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Ug(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=l_(n.trim());e[l]=r.trim()}return e}var d_=t=>t;function Ip(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=Ct,E=ft;Ri(null),Xi(null);try{return p!=null?p:p=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:a})}finally{Ri(k),Xi(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(),Ac(e,"introstart"),u=Ep(e,w(),$,1,()=>{Ac(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,Ac(e,"outrostart"),$=Ep(e,w(),u,0,()=>{Ac(e,"outroend"),k==null||k()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},S=ft;if(((A=S.transitions)!=null?A:S.transitions=[]).push(y),n&&Dl){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&&yo(()=>{$t(()=>y.in())})}}function Ep(t,e,i,o,n){var r=o===1;if(Es(e)){var l,d=!1;return gn(()=>{if(!d){var S=e({direction:r?"in":"out"});l=Ep(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 $=Ug(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=Ug(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&&Fg(()=>{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 Ms,el,Wl,Lc,zg,Vc=class Vc{constructor(e){Cs(this,Lc);Cs(this,Ms,new WeakMap);Cs(this,el);Cs(this,Wl);La(this,Wl,e)}observe(e,i){var o=Ii(this,Ms).get(e)||new Set;return o.add(i),Ii(this,Ms).set(e,o),gv(this,Lc,zg).call(this).observe(e,Ii(this,Wl)),()=>{var n=Ii(this,Ms).get(e);n.delete(i),n.size===0&&(Ii(this,Ms).delete(e),Ii(this,el).unobserve(e))}}};Ms=new WeakMap,el=new WeakMap,Wl=new WeakMap,Lc=new WeakSet,zg=function(){var e;return(e=Ii(this,el))!=null?e:La(this,el,new ResizeObserver(i=>{for(var o of i){Vc.entries.set(o.target,o);for(var n of Ii(this,Ms).get(o.target)||[])n(o)}}))},qn(Vc,"entries",new WeakMap);var kp=Vc;var c_=new kp({box:"border-box"});function es(t,e,i){var o=c_.observe(t,()=>i(t[e]));yo(()=>($t(()=>i(t[e])),o))}function Wg(t,e){return t===e||(t==null?void 0:t[Lo])===e}function rt(t={},e,i,o){return yo(()=>{var n,r;return Oo(()=>{n=r,r=(o==null?void 0:o())||[],$t(()=>{t!==i(...r)&&(e(t,...r),n&&Wg(i(...n),t)&&e(null,...n))})}),()=>{gn(()=>{r&&Wg(i(...r),t)&&e(null,...r)})}}),t}function Lr(t=!1){let e=Vt,i=e.l.u;if(!i)return;let o=()=>Ec(e.s);if(t){let n=0,r={},l=Ir(()=>{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&&Ml(()=>{qg(e,o),Is(i.b)}),We(()=>{let n=$t(()=>i.m.map(Cv));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&We(()=>{qg(e,o),Is(i.a)})}function qg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function ql(t,e,i){if(t==null)return e(void 0),i&&i(void 0),re;let o=$t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var tl=[];function fr(t,e){return{subscribe:ne(t,e).subscribe}}function ne(t,e=re){let i=null,o=new Set;function n(d){if(Na(t,d)&&(t=d,i)){let a=!tl.length;for(let p of o)p[1](),tl.push(p,t);if(a){for(let p=0;p<tl.length;p+=2)tl[p][0](tl[p+1]);tl.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 hi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return fr(i,(l,d)=>{let a=!1,p=[],f=0,v=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)=>ql(w,S=>{p[y]=S,f&=~(1<<y),a&&u()},()=>{f|=1<<y}));return a=!0,u(),function(){Is($),v(),a=!1}})}function ye(t){let e;return ql(t,i=>e=i)(),e}var Rc=!1,Pp=Symbol();function C(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:Zr(void 0),unsubscribe:re};if(o.store!==t&&!(Pp 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=ql(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&Pp in i?ye(t):s(o.source)}function Oe(){let t={};function e(){Vo(()=>{for(var i in t)t[i].unsubscribe();Zi(t,Pp,{enumerable:!1,value:!0})})}return[t,e]}function Ap(t){var e=Rc;try{return Rc=!1,[t(),Rc]}finally{Rc=e}}var h_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&Rv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Me(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},h_)}var __={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Es(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];Es(n)&&(n=n());let r=Jo(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Es(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Jo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Lo||e===Va)return!1;for(let i of t.props)if(Es(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Es(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function ms(...t){return new Proxy({props:t},__)}function Kg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var G,q;var n=(i&1)!==0,r=!Gr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=Ap(()=>t[e]):p=t[e];var f=Lo in t||Va in t,v=l&&((q=(G=Jo(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=$t(o):u=o),u);p===void 0&&o!==void 0&&(v&&r&&Vv(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?Ir:kr)(()=>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=Zr(p),R=Ir(()=>{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=Ba),function(W,Q){if(Sc!==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),Kg(R))return W;$t(()=>s(R))}return W}return Kg(R)?R.v:s(R)}}var b_;typeof HTMLElement=="function"&&(b_=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=$_(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]=Mp(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Cg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=yc(()=>{Oo(()=>{var r;this.$$r=!0;for(let l of zu(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Mp(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]=Mp(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 zu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Mp(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 $_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Qg="5";var Gg,jg,Yg;typeof window!="undefined"&&((Yg=(jg=(Gg=window.__svelte)!=null?Gg:window.__svelte={}).v)!=null?Yg:jg.v=new Set).add(Qg);import{areValidLiveRecordSources as d5,clientChecker as Jm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as X1,safeStorage as c5,throttleFn as u5}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as p5}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as y_,fillWithDefault as x_,VideoQuality as Zg}from"@vkontakte/videoplayer-shared/es2018";var w_={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:y_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Zg.Q_480P,highQualityLimit:Zg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,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"},Xg=t=>x_(t,w_),Jg=t=>Ha("ui-config",t),St=()=>Da("ui-config");var Kl="vk_player_debug_panel_opened";var eh="videoplayer",th="videoplayer";var ts={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ih=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),oh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),nh=new Set(["ShiftRight","ShiftLeft"]);var rh=["TIMELINE"],Ql=[...rh,"GRAPH_BUTTON"],Lp=[...rh,"PLAY_BUTTON"],Gl=[...Ql,"PLAY_BUTTON"];var is=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(is||{}),aa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as sh,VERSION as C_}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as S_}from"@vkontakte/videoplayer-core/es2018";import{VERSION as T_}from"@vkontakte/videoplayer-statistics/es2018";var Nc="prod",il="1.1.70-dev.00565e34.0";var la=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var ah=Symbol("storeContext"),lh=Symbol("microStoresContext"),dh=(t,e)=>{Ha(ah,t),Ha(lh,e),Nc==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=Da(ah);return sh(t,"Store context is empty!"),t},po=()=>{let t=Da(lh);return sh(t,"MicroStores context is empty!"),t},ii=(t,e)=>Oc(t,t.getValue(),e),Oc=(t,e,i)=>fr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),ch=(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=`${il} (core: ${S_}, stat: ${T_}, shared: ${C_})`,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
- `)},uh=(t,e,i)=>{var G,q,W,Q;let o=t.info,{width:n,height:r}=ye(i.ui.playerSize),l={version:il,viewport:`${n}x${r}`,volume:Math.round(ye(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let 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},ph=(t,e)=>la(t,e,"mp4"),fh=t=>!t.type,mh=t=>!!t.type,vh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Bc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}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}};import{isNullable as Bp,safeStorage as Pi}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var gh="vk_player_prefer_traffic_saving_enabled",hh="vk_player_preferred_volume",_h="vk_player_prefer_volume_mute",Op="vk_player_preferred_quality",Vp="vk_player_preferred_default_quality_settings",Rp="vk_player_preferred_quality_settings_by_video",bh="vk_player_preferred_stream_language",$h="vk_player_preferred_rate",yh="vk_player_preferred_autoplay_next",Np="vk_player_preferred_subtitles_language",xh="vk_player_user_video_prefs",wh=t=>t>1?1:t<0?0:t,Dp=t=>Pi.set(hh,wh(t).toString(10)),Dc=()=>{let t=Pi.get(hh);return Bp(t)?void 0:wh(parseFloat(t))},Hp=(t,e)=>Pi.set(Op,JSON.stringify({videoId:t,value:e})),Yl=()=>Pi.remove(Op),Fp=t=>{let e=Pi.get(Op);if(Bp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Yl();return}return o},Up=(t,e)=>{e?Pi.set(t,"true"):Pi.remove(t)},zp=t=>Pi.get(t)==="true",Wp=t=>Up(_h,t),Ch=()=>zp(_h),jl=t=>Up(gh,t),qp=()=>zp(gh),Sh=()=>Pi.get(bh),Kp=t=>Pi.set(bh,t),Qp=()=>Pi.get(Np),Gp=t=>{t?Pi.set(Np,t):Pi.remove(Np)},Th=t=>Pi.set($h,JSON.stringify({rate:t})),Eh=()=>{let t=Pi.get($h);if(Bp(t))return;let{rate:e}=JSON.parse(t);return e},Ih=t=>Up(yh,t),kh=()=>zp(yh),E_=()=>{let t=f=>{Pi.set(Vp,JSON.stringify(f))},e=()=>{try{let f=Pi.get(Vp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Pi.get(Rp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Pi.set(Rp,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=()=>{Pi.remove(Rp)},l=()=>{Pi.remove(Vp)},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":jl(!0);break;case"exact_quality":Hp(f,v.quality)}r(),l()}},p=f=>{let v=Fp(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}qp()&&t({type:"traffic_saving",videoId:f}),jl(!1),Yl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:r,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Qp,savePreferredSubtitlesLanguage:Gp}},{getPreferredQualitySettings:Ph,migrateSettingsToLegacyWay:Ah,savePreferredQualitySettings:Hc,savePreferredDefaultQualitySettings:bM,removePreferredQualitySettingsByVideo:$M,getPreferredDefaultQualitySettings:Fc}=E_(),I_=3,k_=3,Mh=()=>{let t=Pi.get(xh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Uc=(t,e)=>{var n,r;let i=Mh();return(r=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?r:null},jp=(t,e,i)=>{var l,d,a;let o=(l=Mh())!=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=P_(o);Pi.set(xh,JSON.stringify(r))};function P_(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(k_),e.reduce((o,[n])=>(o[n]=A_(t[n]),o),{})}function A_(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(I_),Object.fromEntries(e)}import{PlaybackState as j1}from"@vkontakte/videoplayer-core/es2018";var M_=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 Zl(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=M_();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)}import{isNullable as Rh,InterfaceLanguage as Nh}from"@vkontakte/videoplayer-shared/es2018";var L_={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 ea=!1,Qa=null,ta=!1,ls=!1;function ip(t){ls=t}var Nl=[],Bl=[],Tt=null,Zn=!1;function Ri(t){Tt=t}var vt=null;function Yi(t){vt=t}var Vo=null;function vc(t){Tt!==null&&Tt.f&2097152&&(Vo===null?Vo=[Tt,[t]]:Vo[1].push(t))}var hn=null,Xn=0,Yn=null;function zv(t){Yn=t}var lg=1,Cc=0,ds=!1,Sc=null;function Sl(){return++lg}function Ys(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&&!ds,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],Ys(r)&&tp(r),r.wv>t.wv)return!0}(!o||vt!==null&&!ds)&&mn(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];Vo!=null&&Vo[1].includes(t)&&Vo[0]===Tt||((r.f&2)!==0?dg(r,e,!1):e===r&&(i?mn(r,2048):(r.f&1024)!==0&&mn(r,4096),El(r)))}}function mc(t){var $,w;var e=hn,i=Xn,o=Yn,n=Tt,r=ds,l=Vo,d=Lt,a=Zn,p=t.f;hn=null,Xn=0,Yn=null,ds=(p&256)!==0&&(Zn||!ta||Tt===null),Tt=(p&96)===0?t:null,Vo=null,xl(t.ctx),Zn=!1,Cc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(hn!==null){var u;if(Ll(t,Xn),v!==null&&Xn>0)for(v.length=Xn+hn.length,u=0;u<hn.length;u++)v[Xn+u]=hn[u];else t.deps=v=hn;if(!ds||(p&2)!==0&&t.reactions!==null)for(u=Xn;u<v.length;u++)((w=($=v[u]).reactions)!=null?w:$.reactions=[]).push(t)}else v!==null&&Xn<v.length&&(Ll(t,Xn),v.length=Xn);if(Yr()&&Yn!==null&&!Zn&&v!==null&&(t.f&6146)===0)for(u=0;u<Yn.length;u++)dg(Yn[u],t);return n!==null&&n!==t&&(Cc++,Yn!==null&&(o===null?o=Yn:o.push(...Yn))),f}catch(y){rg(y)}finally{hn=e,Xn=i,Yn=o,Tt=n,ds=r,Vo=l,xl(d),Zn=a,t.f^=2097152}}function w0(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&&(hn===null||!hn.includes(e))&&(mn(e,4096),(e.f&768)===0&&(e.f^=512),fc(e),Ll(e,0))}function Ll(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)w0(t,i[o])}function Wa(t){var e=t.f;if((e&16384)===0){mn(t,1024);var i=vt,o=ta;if(vt=t,ta=!0,Pe){var n=Gn;wl(t.component_function)}try{(e&16)!==0?eg(t):sp(t),rp(t);var r=mc(t);if(t.teardown=typeof r=="function"?r:null,t.wv=lg,Pe&&jr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Sl(),l.set_during_effect=!1);Pe&&Bl.push(t)}finally{ta=o,vt=i,Pe&&wl(n)}}}function sg(){console.error("Last ten effects were: ",Bl.slice(-10).map(t=>t.fn)),Bl=[]}function C0(){try{Av()}catch(t){if(Pe&&ji(t,"stack",{value:""}),Qa!==null)if(Pe)try{Rl(t,Qa)}catch(e){throw sg(),e}else Rl(t,Qa);else throw Pe&&sg(),t}}function pp(){var t=ta;try{var e=0;for(ta=!0;Nl.length>0;){e++>1e3&&C0();var i=Nl,o=i.length;Nl=[];for(var n=0;n<o;n++){var r=T0(i[n]);S0(r)}Ua.clear()}}finally{ea=!1,ta=t,Qa=null,Pe&&(Bl=[])}}function S0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Ys(o)&&(Wa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?lp(o):o.fn=null))}}function El(t){ea||(ea=!0,queueMicrotask(pp));for(var e=Qa=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Nl.push(e)}function T0(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:Ys(i)&&Wa(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function Ga(t){var e;for(t&&(ea=!0,pp(),ea=!0,e=t());;){if(og(),Nl.length===0)return ea=!1,Qa=null,Pe&&(Bl=[]),e;ea=!0,pp()}}async function $o(){await Promise.resolve(),Ga()}function s(t){var e=t.f,i=(e&2)!==0;if(Sc!==null&&Sc.add(t),Tt!==null&&!Zn){if(!(Vo!=null&&Vo[1].includes(t))||Vo[0]!==Tt){var o=Tt.deps;t.rv<Cc&&(t.rv=Cc,hn===null&&o!==null&&o[Xn]===t?Xn++:hn===null?hn=[t]:(!ds||!hn.includes(t))&&hn.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,Ys(n)&&tp(n)),Pe&&jr&&!Zn&&yl!==null&&Tt!==null&&yl.reaction===Tt)if(t.trace)t.trace();else{var l=as("TracedAt");if(l){var d=yl.entries.get(t);d===void 0&&(d={traces:[]},yl.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 ls&&Ua.has(t)?Ua.get(t):t.v}function xt(t){var e=Zn;try{return Zn=!0,t()}finally{Zn=e}}var E0=-7169;function mn(t,e){t.f=t.f&E0|e}function Ec(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ao in t)Tc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ao in i&&Tc(i)}}}function Tc(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Tc(t[o],e)}catch(n){}let i=Ks(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=lc(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}function fp(t,e){if(e){let i=document.body;t.autofocus=!0,gn(()=>{document.activeElement===i&&t.focus()})}}function Ol(t){var e=Tt,i=vt;Ri(null),Yi(null);try{return t()}finally{Ri(e),Yi(i)}}var mp=new Set,Ic=new Set;function ia(t){if(!Ye)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 vp(t,e,i,o={}){function n(r){if(o.capture||ja.call(e,r),!r.cancelBubble)return Ol(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?gn(()=>{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=vp(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Mo(()=>{e.removeEventListener(t,l,r)})}function ct(t){for(var e=0;e<t.length;e++)mp.add(t[e]);for(var i of Ic)i(t)}function ja(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;a<=p&&(l=a)}if(r=n[l]||t.target,r!==e){ji(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=Tt,v=vt;Ri(null),Yi(null);try{for(var u,$=[];r!==null;){var w=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!=null&&(!r.disabled||t.target===r))if(Kn(y)){var[S,...T]=y;S.apply(r,[t,...T])}else y.call(r,t)}catch(A){u?$.push(A):u=A}if(t.cancelBubble||w===e||w===null)break;r=w}if(u){for(let A of $)queueMicrotask(()=>{throw A});throw u}}finally{t.__root=e,delete t.currentTarget,Ri(f),Yi(v)}}}var k0;function cg(){k0=void 0}function Ya(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function yo(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(Ye)return yo(gt,null),gt;n===void 0&&(n=Ya(r?t:"<!>"+t),i||(n=hi(n)));var l=o||Il?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=hi(l),a=l.lastChild;yo(d,a)}else yo(l,l);return l}}function M0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Ye)return yo(gt,null),gt;if(!l){var d=Ya(r),a=hi(d);if(n)for(l=document.createDocumentFragment();hi(a);)l.appendChild(hi(a));else l=hi(a)}var p=l.cloneNode(!0);if(n){var f=hi(p),v=p.lastChild;yo(f,v)}else yo(p,p);return p}}function Ce(t,e){return M0(t,e,"svg")}function Xr(t=""){if(!Ye){var e=vn(t+"");return yo(e,e),e}var i=gt;return i.nodeType!==Ra&&(i.before(i=vn()),vi(i)),yo(i,i),i}function Fe(){if(Ye)return yo(gt,null),gt;var t=document.createDocumentFragment(),e=document.createComment(""),i=vn();return t.append(e,i),yo(e,i),t}function b(t,e){if(Ye){vt.nodes_end=gt,Bi();return}t!==null&&t.before(e)}var L0=/\r/g;function pg(t){t=t.replace(L0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function fg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var V0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function mg(t){return V0.includes(t)}var R0=["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 N0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function vg(t){var e;return t=t.toLowerCase(),(e=N0[t])!=null?e:t}var G9=[...R0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var B0=["touchstart","touchmove"];function gg(t){return B0.includes(t)}var O0=["$state","$state.raw","$derived","$derived.by"],j9=[...O0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var D0=["textarea","script","style","title"];function hg(t){return D0.includes(t)}function kc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Dl=!0;function Pc(t){Dl=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 Jr(t,e){return _g(t,e)}function hp(t,e){var l;_c(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Ye,n=gt;try{for(var r=hi(i);r&&(r.nodeType!==Qn||r.data!==Ss);)r=Ro(r);if(!r)throw Qr;Zi(!0),vi(r),Bi();let d=_g(t,{...e,anchor:r});if(gt===null||gt.nodeType!==Qn||gt.data!==qs)throw ks(),Qr;return Zi(!1),d}catch(d){if(d===Qr)return e.recover===!1&&Mv(),_c(),kl(i),Zi(!1),Jr(t,e);throw d}finally{Zi(o),vi(n),cg()}}var Za=new Map;function _g(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){_c();var d=new Set,a=v=>{for(var u=0;u<v.length;u++){var $=v[u];if(!d.has($)){d.add($);var w=gg($);e.addEventListener($,ja,{passive:w});var y=Za.get($);y===void 0?(document.addEventListener($,ja,{passive:w}),Za.set($,1)):Za.set($,y+1)}}};a($l(mp)),Ic.add(a);var p=void 0,f=Jv(()=>{var v=i!=null?i:e.appendChild(vn());return Pi(()=>{if(r){D({});var u=Lt;u.c=r}n&&(o.$$events=n),Ye&&yo(v,null),Dl=l,p=t(v,o)||{},Dl=!0,Ye&&(vt.nodes_end=gt),r&&H()}),()=>{var w;for(var u of d){e.removeEventListener(u,ja);var $=Za.get(u);--$===0?(document.removeEventListener(u,ja),Za.delete(u)):Za.set(u,$)}Ic.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return gp.set(p,f),p}var gp=new WeakMap;function oa(t,e){let i=gp.get(t);return i?(gp.delete(t),i(e)):(Pe&&Kv(),Promise.resolve())}function be(t,e,...i){var o=t,n=se,r;Oi(()=>{n!==(n=e())&&(r&&(Ni(r),r=null),Pe&&n==null&&Lv(),r=Pi(()=>n(o,...i)))},65536),Ye&&(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;Nv(e)},set:o=>{i=o}})}};z0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var z0;function Nt(t){Lt===null&&Oa("onMount"),Gr&&Lt.l!==null?U0(Lt).m.push(t):Ue(()=>{let e=xt(t);if(typeof e=="function")return e})}function Vn(t){Lt===null&&Oa("onDestroy"),Nt(()=>()=>xt(t))}function U0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var bg=new Map;function $g(t,e){var i=bg.get(t);i||(i=new Set,bg.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){Ye&&i===0&&Bi();var n=t,r=null,l=null,d=Ui,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(Ye&&o!==-1){if(i===0){let S=hc(n);S===Ss?o=0:S===Ts?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Zs(),vi(n),Zi(!1),w=!0,o=-1)}d?(r?us(r):$&&(r=Pi(()=>$(n))),l&&Ln(l,()=>{l=null})):(l?us(l):$&&(l=Pi(()=>$(n,[i+1,o]))),r&&Ln(r,()=>{r=null})),w&&Zi(!0)};Oi(()=>{p=!1,e(f),p||v(null,null)},a),Ye&&(n=gt)}function na(t,e,i){Ye&&Bi();var o=t,n=Ui,r,l=Yr()?Tv:Na;Oi(()=>{l(n,n=e())&&(r&&Ln(r),r=Pi(()=>i(o)))}),Ye&&(o=gt)}var As=null;function $p(t){As=t}function Hl(t,e){return e}function K0(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)xc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;kl(a),a.append(i),o.clear(),Ps(t,e[0].prev,e[r-1].next)}dp(n,()=>{for(var p=0;p<r;p++){var f=e[p];d||(o.delete(f.k),Ps(t,f.prev,f.next)),Ni(f.e,!d)}})}function xi(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var p=t;l=Ye?vi(hi(p)):p.appendChild(vn())}Ye&&Bi();var f=null,v=!1,u=kr(()=>{var $=i();return Kn($)?$:$==null?[]:$l($)});Oi(()=>{var $=s(u),w=$.length;if(v&&w===0)return;v=w===0;let y=!1;if(Ye){var S=hc(l)===Ts;S!==(w===0)&&(l=Zs(),vi(l),Zi(!1),y=!0)}if(Ye){for(var T=null,I,A=0;A<w;A++){if(gt.nodeType===Qn&&gt.data===qs){l=gt,y=!0,Zi(!1);break}var k=$[A],E=o(k,A);I=wg(gt,d,T,null,k,E,A,n,e,i),d.items.set(E,I),T=I}w>0&&vi(Zs())}Ye||Q0($,d,l,n,e,o,i),r!==null&&(w===0?f?us(f):f=Pi(()=>r(l)):f!==null&&Ln(f,()=>{f=null})),y&&Zi(!0),s(u)}),Ye&&(l=gt)}function Q0(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=wg(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&&G0(k,I,E,n),(k.e.f&8192)!==0&&(us(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)yg(S[q],Q,i);for(q=0;q<T.length;q+=1)$.delete(T[q]);Ps(e,W.prev,G.next),Ps(e,w,W),Ps(e,G,Q),u=Q,w=G,E-=1,S=[],T=[]}else $.delete(k),yg(k,u,i),Ps(e,k.prev,k.next),Ps(e,k,w===null?e.first:w.next),Ps(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?[]:$l($);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()}K0(e,X,ce,f)}}d&&gn(()=>{var ae;if(y!==void 0)for(k of y)(ae=k.a)==null||ae.apply()}),vt.first=e.first&&e.first.e,vt.last=w&&w.e}function G0(t,e,i,o){(o&1)!==0&&za(t.v,e),(o&2)!==0?za(t.i,i):t.i=i}function wg(t,e,i,o,n,r,l,d,a,p){var f=As,v=(a&1)!==0,u=(a&16)===0,$=v?u?Zr(n,!1,!1):ur(n):n,w=(a&2)===0?l:ur(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};As=y;try{return y.e=Pi(()=>d(t,$,w,p),Ye),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{As=f}}function yg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Ro(r);n.before(r),r=l}}function Ps(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 j0(t,e,i){var r,l;if(!e||e===pg(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Gn)!=null&&l[kn]&&(o=`in ${Gn[kn]}`),qv(kc(o))}function Fl(t,e,i=!1,o=!1,n=!1){var r=t,l="";O(()=>{var $;var d=vt;if(l===(l=($=e())!=null?$:"")){Ye&&Bi();return}if(d.nodes_start!==null&&(ap(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Ye){for(var a=gt.data,p=Bi(),f=p;p!==null&&(p.nodeType!==Qn||p.data!=="");)f=p,p=Ro(p);if(p===null)throw ks(),Qr;Pe&&!n&&j0(p.parentNode,a,l),yo(gt,f),r=vi(p);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var u=Ya(v);if((i||o)&&(u=hi(u)),yo(hi(u),u.lastChild),i||o)for(;hi(u);)r.before(hi(u));else r.before(u)}})}function wi(t,e,i){Ye&&Bi();var o=t,n,r;Oi(()=>{n!==(n=e())&&(r&&(Ln(r),r=null),n&&(r=Pi(()=>i(o,n))))},65536),Ye&&(o=gt)}function ra(t,e,i,o,n,r){var w;let l=Ye;Ye&&Bi();var d=Pe&&r&&((w=Lt)==null?void 0:w.function[kn]),a,p,f=null;Ye&&gt.nodeType===cc&&(f=gt,Bi());var v=Ye?gt:t,u,$=As;Oi(()=>{let y=e()||null;var S=n?n():i||y==="svg"?sc:null;if(y!==a){var T=As;$p($),u&&(y===null?Ln(u,()=>{u=null,p=null}):y===p?us(u):(Ni(u),Pc(!1))),y&&y!==p&&(u=Pi(()=>{if(f=Ye?f:S?document.createElementNS(S,y):document.createElement(y),Pe&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),yo(f,f),o){Ye&&hg(y)&&f.append(document.createComment(""));var I=Ye?hi(f):f.appendChild(vn());Ye&&(I===null?Zi(!1):vi(I)),o(f,I)}vt.nodes_end=f,v.before(f)})),a=y,a&&(p=a),Pc(!0),$p(T)}},65536),l&&(Zi(!0),vi(v))}var xp;function Cg(t){return xp=t.target,new yp(t)}var ps,pr,yp=class{constructor(e){Cs(this,ps);Cs(this,pr);var r,l;var i=new Map,o=(d,a)=>{var p=Zr(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===Va?!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)}});La(this,pr,(e.hydrate?hp:Jr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Ga(),La(this,ps,n.$$events);for(let d of Object.keys(ki(this,pr)))d==="$set"||d==="$destroy"||d==="$on"||ji(this,d,{get(){return ki(this,pr)[d]},set(a){ki(this,pr)[d]=a},enumerable:!0});ki(this,pr).$set=d=>{Object.assign(n,d)},ki(this,pr).$destroy=()=>{oa(ki(this,pr))}}$set(e){ki(this,pr).$set(e)}$on(e,i){ki(this,ps)[e]=ki(this,ps)[e]||[];let o=(...n)=>i.call(this,...n);return ki(this,ps)[e].push(o),()=>{ki(this,ps)[e]=ki(this,ps)[e].filter(n=>n!==o)}}$destroy(){ki(this,pr).$destroy()}};ps=new WeakMap,pr=new WeakMap;function z(t,e){gn(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=xp)==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&&$g(e.hash,d)}})}function fs(t,e){var i=void 0,o;Oi(()=>{i!==(i=e())&&(o&&(Ni(o),o=null),i&&(o=Pi(()=>{bo(()=>i(t))})))})}function Sg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Sg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Tg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Sg(t))&&(o&&(o+=" "),o+=e);return o}function Ul(t){return typeof t=="object"?Tg(t):t!=null?t:""}var Eg=[...`
44
+ \r\f\xA0\v\uFEFF`];function kg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var r=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+r;(l===0||Eg.includes(o[l-1]))&&(d===o.length||Eg.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Ig(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var r=t[n];r!=null&&r!==""&&(o+=" "+n+": "+r+i)}return o}function wp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Pg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var r=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(wp)),n&&a.push(...Object.keys(n).map(wp));var p=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var u=t[v];if(d?u==="/"&&t[v-1]==="*"&&(d=!1):r?r===u&&(r=!1):u==="/"&&t[v+1]==="*"?d=!0:u==='"'||u==="'"?r=u:u==="("?l++:u===")"&&l--,!d&&r===!1&&l===0){if(u===":"&&f===-1)f=v;else if(u===";"||v===y-1){if(f!==-1){var $=wp(t.substring(p,f).trim());if(!a.includes($)){u!==";"&&v++;var w=t.substring(p,v).trim();i+=" "+w+";"}}p=v+1,f=-1}}}}return o&&(i+=Ig(o)),n&&(i+=Ig(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(Ye||l!==i||l===void 0){var d=kg(i,o,r);(!Ye||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 Cp(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 lt(t,e,i,o){var n=t.__style;if(Ye||n!==e){var r=Pg(e,o);(!Ye||r!==t.getAttribute("style"))&&(r==null?t.removeAttribute("style"):t.style.cssText=r),t.__style=e}else o&&(Array.isArray(o)?(Cp(t,i==null?void 0:i[0],o[0]),Cp(t,i==null?void 0:i[1],o[1],"important")):Cp(t,i,o));return o}function zl(t,e,i){if(t.multiple){if(e==null)return;if(!Kn(e))return Qv();for(var o of t.options)o.selected=e.includes(Ag(o));return}for(o of t.options){var n=Ag(o);if(Yu(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Sp(t){var e=new MutationObserver(()=>{zl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Mo(()=>{e.disconnect()})}function Ag(t){return"__value"in t?t.__value:t.value}var Xa=Symbol("class"),Ja=Symbol("style"),Vg=Symbol("is custom element"),Rg=Symbol("is html");function Ng(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=Og(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||o_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Sv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Dg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Bg(t,e,i,o,n=!1){var k;var r=Og(t),l=r[Vg],d=!r[Rg];let a=Ye&&l;a&&Zi(!1);var p=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=Ul(i.class):(o||i[Xa])&&(i.class=null),i[Ja]&&((k=i.style)!=null||(i.style=null));var u=Dg(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[Xa],i[Xa]),p[E]=R,p[Xa]=i[Xa];continue}if(E==="style"){lt(t,R,e==null?void 0:e[Ja],i[Ja]),p[E]=R,p[Ja]=i[Ja];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=mg(W);if(fg(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,ct([W]);else{let G=function(X){p[E].call(this,X)};var A=G;p[q]=vp(W,t,G,Q)}else S&&(t[`__${W}`]=void 0)}else if(E==="style")De(t,E,R);else if(E==="autofocus")fp(t,!!R);else if(!l&&(E==="__value"||E==="value"&&R!=null))t.value=t.__value=R;else if(E==="selected"&&f)Ng(t,R);else{var T=E;d||(T=vg(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&&Zi(!0),p}function Ie(t,e,i=[],o,n=!1,r=Ir){let l=i.map(r);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(Oi(()=>{var u=e(...l.map(s)),$=Bg(t,d,u,o,n);f&&p&&"value"in u&&zl(t,u.value,!1);for(let y of Object.getOwnPropertySymbols(a))u[y]||Ni(a[y]);for(let y of Object.getOwnPropertySymbols(u)){var w=u[y];y.description===Uu&&(!d||w!==d[y])&&(a[y]&&Ni(a[y]),a[y]=Pi(()=>fs(t,()=>w))),$[y]=w}d=$}),p){var v=t;bo(()=>{zl(v,d.value),Sp(v)})}f=!0}function Og(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Vg]:t.nodeName.includes("-"),[Rg]:t.namespaceURI===_v}}var Mg=new Map;function Dg(t){var e=Mg.get(t.nodeName);if(e)return e;Mg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=lc(o);for(var r in i)i[r].set&&e.push(r);o=Ks(o)}return e}function o_(t,e,i){var o;Pe&&(e==="srcset"&&n_(t,i)||Tp((o=t.getAttribute(e))!=null?o:"",i)||Wv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Tp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Lg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function n_(t,e){var i=Lg(t.srcset),o=Lg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(Tp(i[l][0],n)||Tp(n,i[l][0])))}var r_=ac?()=>performance.now():()=>Date.now(),Mr={tick:t=>(ac?requestAnimationFrame:se)(t),now:()=>r_(),tasks:new Set};function Hg(){let t=Mr.now();Mr.tasks.forEach(e=>{e.c(t)||(Mr.tasks.delete(e),e.f())}),Mr.tasks.size!==0&&Mr.tick(Hg)}function Fg(t){let e;return Mr.tasks.size===0&&Mr.tick(Hg),{promise:new Promise(i=>{Mr.tasks.add(e={c:t,f:i})}),abort(){Mr.tasks.delete(e)}}}function Ac(t,e){Ol(()=>{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 Ug(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=d_(n.trim());e[l]=r.trim()}return e}var c_=t=>t;function Ip(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;Ri(null),Yi(null);try{return p!=null?p:p=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:a})}finally{Ri(k),Yi(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(),Ac(e,"introstart"),u=Ep(e,w(),$,1,()=>{Ac(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,Ac(e,"outrostart"),$=Ep(e,w(),u,0,()=>{Ac(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&&Dl){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&&bo(()=>{xt(()=>y.in())})}}function Ep(t,e,i,o,n){var r=o===1;if(Es(e)){var l,d=!1;return gn(()=>{if(!d){var S=e({direction:r?"in":"out"});l=Ep(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=c_}=e;var u=[];if(r&&i===void 0&&(f&&f(0,1),p)){var $=Ug(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=Ug(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&&Fg(()=>{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 Ms,el,Wl,Lc,zg,Vc=class Vc{constructor(e){Cs(this,Lc);Cs(this,Ms,new WeakMap);Cs(this,el);Cs(this,Wl);La(this,Wl,e)}observe(e,i){var o=ki(this,Ms).get(e)||new Set;return o.add(i),ki(this,Ms).set(e,o),gv(this,Lc,zg).call(this).observe(e,ki(this,Wl)),()=>{var n=ki(this,Ms).get(e);n.delete(i),n.size===0&&(ki(this,Ms).delete(e),ki(this,el).unobserve(e))}}};Ms=new WeakMap,el=new WeakMap,Wl=new WeakMap,Lc=new WeakSet,zg=function(){var e;return(e=ki(this,el))!=null?e:La(this,el,new ResizeObserver(i=>{for(var o of i){Vc.entries.set(o.target,o);for(var n of ki(this,Ms).get(o.target)||[])n(o)}}))},qn(Vc,"entries",new WeakMap);var kp=Vc;var u_=new kp({box:"border-box"});function es(t,e,i){var o=u_.observe(t,()=>i(t[e]));bo(()=>(xt(()=>i(t[e])),o))}function Wg(t,e){return t===e||(t==null?void 0:t[Ao])===e}function nt(t={},e,i,o){return bo(()=>{var n,r;return No(()=>{n=r,r=(o==null?void 0:o())||[],xt(()=>{t!==i(...r)&&(e(t,...r),n&&Wg(i(...n),t)&&e(null,...n))})}),()=>{gn(()=>{r&&Wg(i(...r),t)&&e(null,...r)})}}),t}function Lr(t=!1){let e=Lt,i=e.l.u;if(!i)return;let o=()=>Ec(e.s);if(t){let n=0,r={},l=Ir(()=>{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&&Ml(()=>{qg(e,o),Is(i.b)}),Ue(()=>{let n=xt(()=>i.m.map(Cv));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&Ue(()=>{qg(e,o),Is(i.a)})}function qg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function ql(t,e,i){if(t==null)return e(void 0),i&&i(void 0),se;let o=xt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var tl=[];function fr(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=se){let i=null,o=new Set;function n(d){if(Na(t,d)&&(t=d,i)){let a=!tl.length;for(let p of o)p[1](),tl.push(p,t);if(a){for(let p=0;p<tl.length;p+=2)tl[p][0](tl[p+1]);tl.length=0}}}function r(d){n(d(t))}function l(d,a=se){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,r)||se),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function _i(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return fr(i,(l,d)=>{let a=!1,p=[],f=0,v=se,u=()=>{if(f)return;v();let w=e(o?p[0]:p,l,d);r?l(w):v=typeof w=="function"?w:se},$=n.map((w,y)=>ql(w,S=>{p[y]=S,f&=~(1<<y),a&&u()},()=>{f|=1<<y}));return a=!0,u(),function(){Is($),v(),a=!1}})}function ye(t){let e;return ql(t,i=>e=i)(),e}var Rc=!1,Pp=Symbol();function C(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:Zr(void 0),unsubscribe:se};if(o.store!==t&&!(Pp 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=ql(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&Pp in i?ye(t):s(o.source)}function Oe(){let t={};function e(){Mo(()=>{for(var i in t)t[i].unsubscribe();ji(t,Pp,{enumerable:!1,value:!0})})}return[t,e]}function Ap(t){var e=Rc;try{return Rc=!1,[t(),Rc]}finally{Rc=e}}var __={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&Rv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Le(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},__)}var b_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Es(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];Es(n)&&(n=n());let r=Xo(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Es(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Xo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ao||e===Va)return!1;for(let i of t.props)if(Es(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Es(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function ms(...t){return new Proxy({props:t},b_)}function Kg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var Q,q;var n=(i&1)!==0,r=!Gr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=Ap(()=>t[e]):p=t[e];var f=Ao in t||Va in t,v=l&&((q=(Q=Xo(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=xt(o):u=o),u);p===void 0&&o!==void 0&&(v&&r&&Vv(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?Ir:kr)(()=>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=Zr(p),R=Ir(()=>{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=Ba),function(W,G){if(Sc!==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),Kg(R))return W;xt(()=>s(R))}return W}return Kg(R)?R.v:s(R)}}var $_;typeof HTMLElement=="function"&&($_=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]=Mp(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Cg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=yc(()=>{No(()=>{var r;this.$$r=!0;for(let l of zu(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Mp(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]=Mp(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 zu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Mp(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 Qg="5";var Gg,jg,Yg;typeof window!="undefined"&&((Yg=(jg=(Gg=window.__svelte)!=null?Gg:window.__svelte={}).v)!=null?Yg:jg.v=new Set).add(Qg);import{areValidLiveRecordSources as c5,clientChecker as Jm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as J1,safeStorage as u5,throttleFn as p5}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as f5}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as x_,fillWithDefault as w_,VideoQuality as Zg}from"@vkontakte/videoplayer-shared/es2018";var C_={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:x_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Zg.Q_480P,highQualityLimit:Zg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,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"},Xg=t=>w_(t,C_),Jg=t=>Ha("ui-config",t),It=()=>Da("ui-config");var Kl="vk_player_debug_panel_opened";var eh="videoplayer",th="videoplayer";var ts={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ih=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),oh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),nh=new Set(["ShiftRight","ShiftLeft"]);var rh=["TIMELINE"],Ql=[...rh,"GRAPH_BUTTON"],Lp=[...rh,"PLAY_BUTTON"],Gl=[...Ql,"PLAY_BUTTON"];var is=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(is||{}),aa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as sh,VERSION as S_}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as T_}from"@vkontakte/videoplayer-core/es2018";import{VERSION as E_}from"@vkontakte/videoplayer-statistics/es2018";var Nc="prod",il="1.1.71-dev.ddc44d3f.0";var la=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var ah=Symbol("storeContext"),lh=Symbol("microStoresContext"),dh=(t,e)=>{Ha(ah,t),Ha(lh,e),Nc==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=Da(ah);return sh(t,"Store context is empty!"),t},lo=()=>{let t=Da(lh);return sh(t,"MicroStores context is empty!"),t},ei=(t,e)=>Oc(t,t.getValue(),e),Oc=(t,e,i)=>fr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),ch=(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=`${il} (core: ${T_}, stat: ${E_}, shared: ${S_})`,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
+ `)},uh=(t,e,i)=>{var Q,q,W,G;let o=t.info,{width:n,height:r}=ye(i.ui.playerSize),l={version:il,viewport:`${n}x${r}`,volume:Math.round(ye(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let 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},ph=(t,e)=>la(t,e,"mp4"),fh=t=>!t.type,mh=t=>!!t.type,vh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Bc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}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}};import{isNullable as Bp,safeStorage as Ai}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var gh="vk_player_prefer_traffic_saving_enabled",hh="vk_player_preferred_volume",_h="vk_player_prefer_volume_mute",Op="vk_player_preferred_quality",Vp="vk_player_preferred_default_quality_settings",Rp="vk_player_preferred_quality_settings_by_video",bh="vk_player_preferred_stream_language",$h="vk_player_preferred_rate",yh="vk_player_preferred_autoplay_next",Np="vk_player_preferred_subtitles_language",xh="vk_player_user_video_prefs",wh=t=>t>1?1:t<0?0:t,Dp=t=>Ai.set(hh,wh(t).toString(10)),Dc=()=>{let t=Ai.get(hh);return Bp(t)?void 0:wh(parseFloat(t))},Hp=(t,e)=>Ai.set(Op,JSON.stringify({videoId:t,value:e})),Yl=()=>Ai.remove(Op),Fp=t=>{let e=Ai.get(Op);if(Bp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Yl();return}return o},Up=(t,e)=>{e?Ai.set(t,"true"):Ai.remove(t)},zp=t=>Ai.get(t)==="true",Wp=t=>Up(_h,t),Ch=()=>zp(_h),jl=t=>Up(gh,t),qp=()=>zp(gh),Sh=()=>Ai.get(bh),Kp=t=>Ai.set(bh,t),Qp=()=>Ai.get(Np),Gp=t=>{t?Ai.set(Np,t):Ai.remove(Np)},Th=t=>Ai.set($h,JSON.stringify({rate:t})),Eh=()=>{let t=Ai.get($h);if(Bp(t))return;let{rate:e}=JSON.parse(t);return e},Ih=t=>Up(yh,t),kh=()=>zp(yh),I_=()=>{let t=f=>{Ai.set(Vp,JSON.stringify(f))},e=()=>{try{let f=Ai.get(Vp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Ai.get(Rp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Ai.set(Rp,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=()=>{Ai.remove(Rp)},l=()=>{Ai.remove(Vp)},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":jl(!0);break;case"exact_quality":Hp(f,v.quality)}r(),l()}},p=f=>{let v=Fp(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}qp()&&t({type:"traffic_saving",videoId:f}),jl(!1),Yl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:r,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Qp,savePreferredSubtitlesLanguage:Gp}},{getPreferredQualitySettings:Ph,migrateSettingsToLegacyWay:Ah,savePreferredQualitySettings:Hc,savePreferredDefaultQualitySettings:$M,removePreferredQualitySettingsByVideo:yM,getPreferredDefaultQualitySettings:Fc}=I_(),k_=3,P_=3,Mh=()=>{let t=Ai.get(xh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Uc=(t,e)=>{var n,r;let i=Mh();return(r=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?r:null},jp=(t,e,i)=>{var l,d,a;let o=(l=Mh())!=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=A_(o);Ai.set(xh,JSON.stringify(r))};function A_(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(P_),e.reduce((o,[n])=>(o[n]=M_(t[n]),o),{})}function M_(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(k_),Object.fromEntries(e)}import{PlaybackState as Y1}from"@vkontakte/videoplayer-core/es2018";var L_=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 Zl(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=L_();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)}import{isNullable as Rh,InterfaceLanguage as Nh}from"@vkontakte/videoplayer-shared/es2018";var V_={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`},Lh=L_;var V_={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`},Lh=V_;var R_={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.`},Vh=V_;var vs=new Map;vs.set(Nh.EN,Vh);vs.set(Nh.RU,Lh);var Bh=new Map,Yp=({language:t,pack:e,fallback:i})=>{if(vs.has(t)){let o=vs.get(t);vs.set(t,{...o,...e})}else vs.set(t,e);Bh.set(t,i)},Zp=t=>vs.has(t),Xp=(t,e,i,o)=>{var l;let n=vs.get(t),r=n==null?void 0:n[e];if(Rh(r)){let d=(l=Bh.get(t))!=null?l:o,a=d?vs.get(d):void 0;r=a==null?void 0:a[e]}return Rh(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=St();return Xp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var ol;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ol||(ol={}));var R_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,N_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,B_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,zc="?",O_="X-Sentry-Auth",D_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function H_(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=R_.exec(i[r]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||zc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=B_.exec(i[r]))n={filename:o[2],function:o[1]||zc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=N_.exec(i[r]))r===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||zc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=zc),e.push(n)}return e.length?{value:Oh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Oh(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function F_(t){try{let e=H_(t);if(e)return e}catch(e){}return{value:Oh(t),type:t&&t.name,stacktrace:{frames:[]}}}function U_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Wc=class{constructor(e){if(e&&e.dsn){let i=D_.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:[F_(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(O_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:U_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Dh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function z_(){return window}var qc=class t extends Wc{constructor(e,i=z_()){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=>Dh(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=>Dh(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}};import{isNonNullable as Kc,Subscription as W_}from"@vkontakte/videoplayer-shared/es2018";var Qc=null,da=class{constructor(e,i,o={}){!Qc&&e.dsn&&(this.sentryClient=new qc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new W_,this.options=e,this.context=o,Qc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Qc=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(Kc($)&&v.includes($)||Kc(u)&&f.includes(u))return;if(Math.random()<=d||Kc($)&&p.includes($)||Kc(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?ol.fatal:ol.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Qc}};var gs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(gs||{});var Gc=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()},jc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Hh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Xl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ls=()=>!!Xl(),Yc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Zc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Fh=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))};import{clientChecker as Uh}from"@vkontakte/videoplayer-core/es2018";var zh=()=>({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:Uh.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:Uh.device.isApple?U("hotkey_map_item_next_episode_mac_value"):U("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as q_,ValueSubject as Jp}from"@vkontakte/videoplayer-shared/es2018";var ca=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:q_(this.onResize.bind(this),300)};this.info={isActive$:new Jp(!1),isEnabled$:new Jp(!1),type:0};this.info.isEnabled$=new Jp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}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 ua(t){return t instanceof ca}import{devNull as Wh,now as qh}from"@vkontakte/videoplayer-shared/es2018";Hv();function of(t,e){H(e,!1);let i=Ee();Nt(()=>{i.getAdmanWrapper().startPostroll()}),Lr(),F()}import{noop as K_}from"@vkontakte/videoplayer-shared/es2018";var Q_=(t,e)=>{t.stopPropagation(),e()()},G_=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>'),j_=M("<div><!></div>"),Y_={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function nf(t,e){H(e,!0),z(t,Y_);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,K_),p=Ee().ui.isMobile,f=g(()=>r()>0&&r()>=l());var v=j_();let u;var $=_(v);{var w=S=>{var T=G_();T.__click=[Q_,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=Xr();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()}ut(["click"]);var Z_=M('<button class="svelte-1wy3dql"> </button>'),X_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function rf(t,e){H(e,!1),z(t,X_),Lr();var i=Z_(),o=_(i,!0);h(i),O(n=>$e(o,n),[()=>U("visit_advertiser")],kr),b(t,i),F()}var J_=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),eb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),tb={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.`},Vh=R_;var vs=new Map;vs.set(Nh.EN,Vh);vs.set(Nh.RU,Lh);var Bh=new Map,Yp=({language:t,pack:e,fallback:i})=>{if(vs.has(t)){let o=vs.get(t);vs.set(t,{...o,...e})}else vs.set(t,e);Bh.set(t,i)},Zp=t=>vs.has(t),Xp=(t,e,i,o)=>{var l;let n=vs.get(t),r=n==null?void 0:n[e];if(Rh(r)){let d=(l=Bh.get(t))!=null?l:o,a=d?vs.get(d):void 0;r=a==null?void 0:a[e]}return Rh(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=It();return Xp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var ol;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ol||(ol={}));var N_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,B_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,O_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,zc="?",D_="X-Sentry-Auth",H_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function F_(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=N_.exec(i[r]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||zc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=O_.exec(i[r]))n={filename:o[2],function:o[1]||zc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=B_.exec(i[r]))r===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||zc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=zc),e.push(n)}return e.length?{value:Oh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Oh(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function U_(t){try{let e=F_(t);if(e)return e}catch(e){}return{value:Oh(t),type:t&&t.name,stacktrace:{frames:[]}}}function z_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Wc=class{constructor(e){if(e&&e.dsn){let i=H_.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:[U_(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(D_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:z_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Dh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function W_(){return window}var qc=class t extends Wc{constructor(e,i=W_()){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=>Dh(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=>Dh(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}};import{isNonNullable as Kc,Subscription as q_}from"@vkontakte/videoplayer-shared/es2018";var Qc=null,da=class{constructor(e,i,o={}){!Qc&&e.dsn&&(this.sentryClient=new qc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new q_,this.options=e,this.context=o,Qc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Qc=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(Kc($)&&v.includes($)||Kc(u)&&f.includes(u))return;if(Math.random()<=d||Kc($)&&p.includes($)||Kc(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?ol.fatal:ol.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Qc}};var gs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(gs||{});var Gc=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()},jc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Hh=t=>t.fullscreenEnabled,Fh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Xl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ls=()=>!!Xl(),Yc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Zc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Uh=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))};import{clientChecker as zh}from"@vkontakte/videoplayer-core/es2018";var Wh=()=>({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:zh.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:zh.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as K_,ValueSubject as Jp}from"@vkontakte/videoplayer-shared/es2018";var ca=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:K_(this.onResize.bind(this),300)};this.info={isActive$:new Jp(!1),isEnabled$:new Jp(!1),type:0};this.info.isEnabled$=new Jp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}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 ua(t){return t instanceof ca}import{devNull as qh,now as Kh}from"@vkontakte/videoplayer-shared/es2018";Hv();function of(t,e){D(e,!1);let i=Ee();Nt(()=>{i.getAdmanWrapper().startPostroll()}),Lr(),H()}import{noop as Q_}from"@vkontakte/videoplayer-shared/es2018";var G_=(t,e)=>{t.stopPropagation(),e()()},j_=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>'),Y_=M("<div><!></div>"),Z_={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function nf(t,e){D(e,!0),z(t,Z_);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,Q_),p=Ee().ui.isMobile,f=g(()=>r()>0&&r()>=l());var v=Y_();let u;var $=_(v);{var w=S=>{var T=j_();T.__click=[G_,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=Xr();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()}ct(["click"]);var X_=M('<button class="svelte-1wy3dql"> </button>'),J_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function rf(t,e){D(e,!1),z(t,J_),Lr();var i=X_(),o=_(i,!0);h(i),O(n=>$e(o,n),[()=>F("visit_advertiser")],kr),b(t,i),H()}var eb=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),tb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),ib={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
57
57
  360deg,
58
58
  rgba(0, 0, 0, 0) 0%,
59
59
  rgba(0, 0, 0, 0.05) 12%,
@@ -63,7 +63,7 @@ Try switching the\xA0quality to\xA0Auto.`},Vh=V_;var vs=new Map;vs.set(Nh.EN,Vh)
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 Jl(t,e){H(e,!0),z(t,tb);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=St(),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);Nt(()=>{var Ae;let _e=y.getAdmanWrapper();if(Wh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[qh(),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),Ze=(Ae=$())!=null?Ae:ye(y.ui.isAutoplay),Z={width:pe,height:ee,isFullscreen:Qe,isAutoplay:Ze,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()}),()=>{Wh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[qh(),f()]}),!R&&ue()}});var de=eb(),le=_(de);{var ve=_e=>{var ge=J_();b(_e,ge)};V(le,_e=>{l()&&_e(ve)})}var Ie=P(le,2);rt(Ie,_e=>B(E,_e),()=>s(E));var me=P(Ie,2);{var se=_e=>{nf(_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=>{of(_e,{})};V(Le,_e=>{p()&&_e(oe)})}var N=P(Le,2);{var He=_e=>{rf(_e,{})};V(N,_e=>{s(Y)&&_e(He)})}h(de),rt(de,_e=>B(k,_e),()=>s(k)),b(t,de),F(),o()}var _n=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(r=>String(r).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var ib=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 sf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=ib();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 ob=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 af(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=ob();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 ed(t,e){let i=m(e,"isActive",3,!1);var o=Ue(),n=fe(o);{var r=d=>{af(d,{})},l=d=>{sf(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var nb=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>'),rb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),sb=M('<span class="text svelte-1s15d2i"> </span>'),ab=M("<div><!> <!></div>"),lb={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 Jl(t,e){D(e,!0),z(t,ib);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=It(),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);Nt(()=>{var Ae;let _e=y.getAdmanWrapper();if(qh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Kh(),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),Ze=(Ae=$())!=null?Ae:ye(y.ui.isAutoplay),Z={width:pe,height:te,isFullscreen:qe,isAutoplay:Ze,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()}),()=>{qh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Kh(),f()]}),!R&&ue()}});var ce=tb(),le=_(ce);{var me=_e=>{var ge=eb();b(_e,ge)};V(le,_e=>{l()&&_e(me)})}var ke=P(le,2);nt(ke,_e=>B(E,_e),()=>s(E));var ve=P(ke,2);{var ae=_e=>{nf(_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=>{of(_e,{})};V(Ve,_e=>{p()&&_e(ne)})}var N=P(Ve,2);{var He=_e=>{rf(_e,{})};V(N,_e=>{s(Y)&&_e(He)})}h(ce),nt(ce,_e=>B(k,_e),()=>s(k)),b(t,ce),H(),o()}var _n=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(r=>String(r).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var ob=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 sf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ob();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 nb=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 af(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=nb();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}function ed(t,e){let i=m(e,"isActive",3,!1);var o=Fe(),n=fe(o);{var r=d=>{af(d,{})},l=d=>{sf(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var rb=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>'),sb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),ab=M('<span class="text svelte-1s15d2i"> </span>'),lb=M("<div><!> <!></div>"),db={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.`},Vh=V_;var vs=new Map;vs.set(Nh.EN,Vh)
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 td(t,e){z(t,lb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var r=ab();let l;var d=_(r);{var a=u=>{var $=nb();b(u,$)};V(d,u=>{i()&&u(a)})}var p=P(d,2);{var f=u=>{var $=rb(),w=_($);ed(w,{isActive:!0}),h($),b(u,$)},v=u=>{var $=sb(),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 nl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var db=M('<div role="timer" data-testid="thumb-timer"><!></div>'),cb={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
- opacity var(--controls-transition-duration);}`};function id(t,e){H(e,!0),z(t,cb);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=St(),p=g(()=>_n(e.duration-e.position)),f=ne(!1);var v=db();let u;var $=_(v);td($,{get time(){return s(p)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(v),fs(v,()=>nl(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 rl=t=>{if(!navigator.clipboard){Kh(t);return}navigator.clipboard.writeText(t).catch(()=>Kh(t))};function Kh(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}import{ChromecastState as yb}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as Qh}from"@vkontakte/videoplayer-core/es2018";var lf="focus-hidden";var mr=t=>{t.stopPropagation(),t.preventDefault()},df=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(lf)},pb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},fb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},mb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},vb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Gh=t=>t.code==="Escape",gb=t=>t.code==="ArrowLeft",od=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},jh=t=>{mb(t)?(mr(t),fb(t.target)):vb(t)&&(mr(t),pb(t.target))},Ns=t=>!Qh.device.isAndroid&&(t==null?void 0:t.detail)===0||Qh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",sl=async(t,e,i)=>{await xo(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(await xo(),i.set(!1),t.focus())},Yh=async(t,e,i)=>{await xo(),t&&!e&&ye(i)&&(i.set(!1),t.focus())},nd=async(t,e,i,o=!1)=>{if(await xo(),!!t&&e&&!o){let r=t.children[0];r==null||r.classList.toggle(lf,!i),r==null||r.focus()}},Zh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Xc=(t,e)=>{jh(t),df(t.target),Gh(t)&&(mr(t),e())},Jc=async(t,e)=>{od(t,["ArrowRight"])&&(mr(t),e())},Xh=async(t,e,i)=>{if(jh(t),gb(t)){mr(t),e();return}Gh(t)&&(mr(t),i())},al=(t,e)=>{od(t)&&(mr(t),e())},Jh=(t,e,i)=>{if(od(t))mr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),mr(t);return}o==="ArrowRight"&&!e&&(i(!0),mr(t))}},e1=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}};import{isNullable as eu,isValidURL as xb}from"@vkontakte/videoplayer-shared/es2018";var Vr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as i1}from"@vkontakte/videoplayer-shared/es2018";var _b=(t,e)=>{al(t,()=>e())},bb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),$b={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function cf(t,e){H(e,!0),z(t,$b);let i=m(e,"onClick",3,i1),o=m(e,"closeContextMenu",3,i1),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var r=bb();r.__click=n,r.__keydown=[_b,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()}ut(["click","keydown"]);var fa=(t,e)=>t.weight-e.weight;var rd=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(rd||{});var wb=(t,e)=>{Xc(t,e)},Cb=t=>{t.preventDefault()},Sb=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Tb={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function uf(t,e){H(e,!0),z(t,Tb);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}=po(),k=St(),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()!==yb.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(),Je=$().getBoundingClientRect();B(S,Ve-Je.left),B(T,Fe-Je.top),s(S)+Re.width>Je.width&&B(S,Je.width-Re.width),s(T)+Re.height>Je.height&&B(T,Je.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 xo();let{top:Fe,left:Re,bottom:Je,right:Et}=u(),Kt=Re!=null?Re:0,it=Fe!=null?Fe:0,di=y().getBoundingClientRect();eu(Re)&&!eu(Et)&&(Kt=Et-di.width),eu(Fe)&&!eu(Je)&&(it=Je-di.height),Kt=Math.max(Kt,0),it=Math.max(it,0),ue(Kt,it)}})()});let pe=()=>{I.actions.internal.videoRotate()},ee=()=>{xb(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);la(Re,"vk_player_debug_info","txt")}else rl(I.actions.internal.getDebugTextData())},Ze=()=>{let Ve=I.actions.internal.getTraceTextData(),Fe=new Blob([...Ve],{type:"application/json"}),Re=window.URL.createObjectURL(Fe);la(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())},je=()=>{var Ve,Fe;if(s(Le)){let Re=(Fe=(Ve=I.callbacks)==null?void 0:Ve.onCopyEmbedCodeClicked)==null?void 0:Fe.call(Ve);Re&&rl(Re)}},tt=(Ve=!1)=>{var Fe,Re;if((Fe=I.callbacks)!=null&&Fe.onCopyVideoLink){let Je=(Re=I.callbacks)==null?void 0:Re.onCopyVideoLink(Ve,p());Je&&rl(Je)}},vt=g(()=>k.features.saveDebugInfoToFile?q("menu_save_debug"):q("menu_copy_debug")),It=g(()=>s(me)?{id:"copy-link",weight:Vr["copy-link"],label:q("menu_copy_video_link"),onClick:()=>tt()}:void 0),dt=g(()=>s(se)?{id:"copy-link-timestamp",weight:Vr["copy-link-timestamp"],label:q("menu_copy_video_link_with_timestamp"),onClick:()=>tt(!0)}:void 0),qe=g(()=>s(Le)?{id:"copy-embed-code",weight:Vr["copy-embed-code"],label:q("menu_copy_embed_code"),onClick:je}:void 0),zt=g(()=>s(oe)?{id:"pip",weight:Vr.pip,label:d()?q("menu_pip_close"):q("menu_pip"),onClick:Ae}:void 0),Yt=g(()=>s(N)?{id:"video-loop",weight:Vr["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:Vr.rotate,label:q("menu_video_rotate"),ariaLabel:q("aria_label_menu_rotate"),onClick:pe}:void 0),Wt=g(()=>s(_e)?{id:"report",weight:Vr.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:Vr["save-debug"],label:s(vt),onClick:Qe})),Tt=g(()=>s(ge)?{id:"save-trace",weight:Vr["save-trace"],label:q("menu_save_debug"),onClick:Ze}:void 0),xe=g(()=>({id:"debug-info",weight:Vr["debug-info"],label:q("menu_debug_overlay"),ariaLabel:q("aria_label_menu_debug_overlay"),onClick:Z})),he=g(()=>[s(It),s(dt),s(qe),s(zt),s(Yt),s(qt),s(Wt),s(ae),s(Tt),s(xe),...f()].filter(Ve=>!!Ve).sort(fa));var te=Ue(),Ne=fe(te);{var ze=Ve=>{var Fe=Sb();Fe.__contextmenu=[Cb],Fe.__keydown=[wb,ce],yi(Fe,21,()=>s(he),Re=>Re.id,(Re,Je)=>{cf(Re,{get id(){return s(Je).id},get label(){return s(Je).label},get ariaLabel(){return s(Je).ariaLabel},get onClick(){return s(Je).onClick},closeContextMenu:ce})}),h(Fe),rt(Fe,Re=>y(Re),()=>y()),O(()=>{var Re,Je;return lt(Fe,`top: ${(Re=s(T))!=null?Re:""}px; left: ${(Je=s(S))!=null?Je:""}px;`)}),b(Ve,Fe)};V(Ne,Ve=>{v()&&Ve(ze)})}b(t,te),F(),o()}ut(["contextmenu","keydown"]);var tu=class{constructor(e){this.value=e,this.next=null}};var ll=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new tu(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var Eb=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Ib={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function sd(t,e){H(e,!0),z(t,Ib);let i=m(e,"values",19,()=>[]),o=j(void 0),n=j(null),r=16,l=120,d=60,a=l/d;Nt(()=>{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=Eb(),v=_(f);rt(v,u=>B(o,u),()=>s(o)),h(f),b(t,f),F()}import{safeStorage as o1}from"@vkontakte/videoplayer-shared/es2018";var kb=(t,e)=>{t.stopPropagation(),o1.remove(Kl),e.set(!1)},Pb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Ab=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Mb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Lb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Vb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Rb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Nb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Bb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Ob=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Db=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Hb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Fb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Ub=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),zb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Wb=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>'),qb={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 ad(t,e){H(e,!0),z(t,qb);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 ll(60),w=new ll(60),y=new ll(60),S=j(ni([])),T=j(ni([])),I=j(ni([])),A=U("aria_label_debug_panel");Nt(()=>{o1.set(Kl,"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=Wb();let E;var R=_(k);R.__click=[kb,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=Pb(),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=Ab(),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=Mb(),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=Lb(),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 td(t,e){z(t,db);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var r=lb();let l;var d=_(r);{var a=u=>{var $=rb();b(u,$)};V(d,u=>{i()&&u(a)})}var p=P(d,2);{var f=u=>{var $=sb(),w=_($);ed(w,{isActive:!0}),h($),b(u,$)},v=u=>{var $=ab(),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 nl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var cb=M('<div role="timer" data-testid="thumb-timer"><!></div>'),ub={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
+ opacity var(--controls-transition-duration);}`};function id(t,e){D(e,!0),z(t,ub);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=It(),p=g(()=>_n(e.duration-e.position)),f=re(!1);var v=cb();let u;var $=_(v);td($,{get time(){return s(p)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(v),fs(v,()=>nl(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 rl=t=>{if(!navigator.clipboard){Qh(t);return}navigator.clipboard.writeText(t).catch(()=>Qh(t))};function Qh(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}import{ChromecastState as xb}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as Gh}from"@vkontakte/videoplayer-core/es2018";var lf="focus-hidden";var mr=t=>{t.stopPropagation(),t.preventDefault()},df=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(lf)},fb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},mb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},vb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},gb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},jh=t=>t.code==="Escape",hb=t=>t.code==="ArrowLeft",od=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Yh=t=>{vb(t)?(mr(t),mb(t.target)):gb(t)&&(mr(t),fb(t.target))},Ns=t=>!Gh.device.isAndroid&&(t==null?void 0:t.detail)===0||Gh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",sl=async(t,e,i)=>{await $o(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(await $o(),i.set(!1),t.focus())},Zh=async(t,e,i)=>{await $o(),t&&!e&&ye(i)&&(i.set(!1),t.focus())},nd=async(t,e,i,o=!1)=>{if(await $o(),!!t&&e&&!o){let r=t.children[0];r==null||r.classList.toggle(lf,!i),r==null||r.focus()}},Xh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Xc=(t,e)=>{Yh(t),df(t.target),jh(t)&&(mr(t),e())},Jc=async(t,e)=>{od(t,["ArrowRight"])&&(mr(t),e())},Jh=async(t,e,i)=>{if(Yh(t),hb(t)){mr(t),e();return}jh(t)&&(mr(t),i())},al=(t,e)=>{od(t)&&(mr(t),e())},e1=(t,e,i)=>{if(od(t))mr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),mr(t);return}o==="ArrowRight"&&!e&&(i(!0),mr(t))}},t1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},i1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as eu,isValidURL as wb}from"@vkontakte/videoplayer-shared/es2018";var Vr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as o1}from"@vkontakte/videoplayer-shared/es2018";var bb=(t,e)=>{al(t,()=>e())},$b=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),yb={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function cf(t,e){D(e,!0),z(t,yb);let i=m(e,"onClick",3,o1),o=m(e,"closeContextMenu",3,o1),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var r=$b();r.__click=n,r.__keydown=[bb,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()}ct(["click","keydown"]);var fa=(t,e)=>t.weight-e.weight;var rd=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(rd||{});var Cb=(t,e)=>{Xc(t,e)},Sb=t=>{t.preventDefault()},Tb=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Eb={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function uf(t,e){D(e,!0),z(t,Eb);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}=lo(),k=It(),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()!==xb.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(),Je=$().getBoundingClientRect();B(S,Me-Je.left),B(T,We-Je.top),s(S)+Re.width>Je.width&&B(S,Je.width-Re.width),s(T)+Re.height>Je.height&&B(T,Je.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 $o();let{top:We,left:Re,bottom:Je,right:At}=u(),Wt=Re!=null?Re:0,Xe=We!=null?We:0,ci=y().getBoundingClientRect();eu(Re)&&!eu(At)&&(Wt=At-ci.width),eu(We)&&!eu(Je)&&(Xe=Je-ci.height),Wt=Math.max(Wt,0),Xe=Math.max(Xe,0),ue(Wt,Xe)}})()});let pe=()=>{I.actions.internal.videoRotate()},te=()=>{wb(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);la(Re,"vk_player_debug_info","txt")}else rl(I.actions.internal.getDebugTextData())},Ze=()=>{let Me=I.actions.internal.getTraceTextData(),We=new Blob([...Me],{type:"application/json"}),Re=window.URL.createObjectURL(We);la(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())},je=()=>{var Me,We;if(s(Ve)){let Re=(We=(Me=I.callbacks)==null?void 0:Me.onCopyEmbedCodeClicked)==null?void 0:We.call(Me);Re&&rl(Re)}},tt=(Me=!1)=>{var We,Re;if((We=I.callbacks)!=null&&We.onCopyVideoLink){let Je=(Re=I.callbacks)==null?void 0:Re.onCopyVideoLink(Me,p());Je&&rl(Je)}},ht=g(()=>k.features.saveDebugInfoToFile?q("menu_save_debug"):q("menu_copy_debug")),mt=g(()=>s(ve)?{id:"copy-link",weight:Vr["copy-link"],label:q("menu_copy_video_link"),onClick:()=>tt()}:void 0),wt=g(()=>s(ae)?{id:"copy-link-timestamp",weight:Vr["copy-link-timestamp"],label:q("menu_copy_video_link_with_timestamp"),onClick:()=>tt(!0)}:void 0),Qe=g(()=>s(Ve)?{id:"copy-embed-code",weight:Vr["copy-embed-code"],label:q("menu_copy_embed_code"),onClick:je}:void 0),Ft=g(()=>s(ne)?{id:"pip",weight:Vr.pip,label:d()?q("menu_pip_close"):q("menu_pip"),onClick:Ae}:void 0),Xt=g(()=>s(N)?{id:"video-loop",weight:Vr["video-loop"],label:a()?q("menu_video_loop_off"):q("menu_video_loop_on"),ariaLabel:q("aria_label_menu_loop"),onClick:Te}:void 0),Gt=g(()=>s(He)?{id:"rotate",weight:Vr.rotate,label:q("menu_video_rotate"),ariaLabel:q("aria_label_menu_rotate"),onClick:pe}:void 0),Ut=g(()=>s(_e)?{id:"report",weight:Vr.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:Vr["save-debug"],label:s(ht),onClick:qe})),Rt=g(()=>s(ge)?{id:"save-trace",weight:Vr["save-trace"],label:q("menu_save_debug"),onClick:Ze}:void 0),xe=g(()=>({id:"debug-info",weight:Vr["debug-info"],label:q("menu_debug_overlay"),ariaLabel:q("aria_label_menu_debug_overlay"),onClick:Z})),he=g(()=>[s(mt),s(wt),s(Qe),s(Ft),s(Xt),s(Gt),s(Ut),s(ee),s(Rt),s(xe),...f()].filter(Me=>!!Me).sort(fa));var ie=Fe(),Be=fe(ie);{var ze=Me=>{var We=Tb();We.__contextmenu=[Sb],We.__keydown=[Cb,de],xi(We,21,()=>s(he),Re=>Re.id,(Re,Je)=>{cf(Re,{get id(){return s(Je).id},get label(){return s(Je).label},get ariaLabel(){return s(Je).ariaLabel},get onClick(){return s(Je).onClick},closeContextMenu:de})}),h(We),nt(We,Re=>y(Re),()=>y()),O(()=>{var Re,Je;return lt(We,`top: ${(Re=s(T))!=null?Re:""}px; left: ${(Je=s(S))!=null?Je:""}px;`)}),b(Me,We)};V(Be,Me=>{v()&&Me(ze)})}b(t,ie),H(),o()}ct(["contextmenu","keydown"]);var tu=class{constructor(e){this.value=e,this.next=null}};var ll=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new tu(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var Ib=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),kb={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function sd(t,e){D(e,!0),z(t,kb);let i=m(e,"values",19,()=>[]),o=j(void 0),n=j(null),r=16,l=120,d=60,a=l/d;Nt(()=>{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=Ib(),v=_(f);nt(v,u=>B(o,u),()=>s(o)),h(f),b(t,f),H()}import{safeStorage as n1}from"@vkontakte/videoplayer-shared/es2018";var Pb=(t,e)=>{t.stopPropagation(),n1.remove(Kl),e.set(!1)},Ab=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Mb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Lb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Vb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Rb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Nb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Bb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Ob=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Db=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Hb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Fb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Ub=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),zb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Wb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),qb=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>'),Kb={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 ad(t,e){D(e,!0),z(t,Kb);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 ll(60),w=new ll(60),y=new ll(60),S=j(oi([])),T=j(oi([])),I=j(oi([])),A=F("aria_label_debug_panel");Nt(()=>{n1.set(Kl,"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=qb();let E;var R=_(k);R.__click=[Pb,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=Ab(),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=Mb(),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=Lb(),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=Vb(),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=Vb(),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=Rb(),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=Nb(),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=Bb(),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=Ob(),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 Ze=xe=>{var he=Db(),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(Ze)})}var Z=P(Qe,2);{var Ae=xe=>{var he=Hb(),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 je=xe=>{var he=Fb(),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(je)})}var tt=P(Te,2),vt=P(_(tt),2),It=_(vt);h(vt),h(tt);var dt=P(tt,2);{var qe=xe=>{var he=Ub(),te=P(_(he),2);sd(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(dt,xe=>{s(a).speed&&xe(qe)})}var zt=P(dt,2);{var Yt=xe=>{var he=zb(),te=P(_(he),2);sd(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(zt,xe=>{s(a).bitrate&&xe(Yt)})}var qt=P(zt,2),Wt=P(_(qt),2);sd(Wt,{get values(){return s(S)}});var ae=P(Wt,2),Tt=_(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(It,`${(he=s(v))!=null?he:""} / ${(te=s(f))!=null?te:""} frames`),$e(Tt,s(u))},[()=>({"container-mobile":n()})]),b(t,k),F(),o()}ut(["click"]);import{noop as Kb}from"@vkontakte/videoplayer-shared/es2018";var Qb=(t,e)=>{t.stopPropagation(),e()()},Gb=M('<div class="close svelte-1ome55p"></div>'),jb={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 ma(t,e){H(e,!0),z(t,jb);let i=m(e,"onClick",3,Kb);var o=Gb();o.__click=[Qb,i],b(t,o),F()}ut(["click"]);import{noop as Yb}from"@vkontakte/videoplayer-shared/es2018";var Zb=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>'),Xb={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function ld(t,e){H(e,!0),z(t,Xb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,Yb),n=5e3,r=j(void 0),l,d,a=0,p;We(()=>{i()&&$t(()=>{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()())};Nt(()=>{l=s(r).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),Vn(()=>{f()});var u=Zb(),$=_(u);rt($,w=>B(r,w),()=>s(r)),we(2),h(u),b(t,u),F()}var Jb=(t,e,i)=>{e(!1),i()},e$=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),t$={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function pf(t,e){H(e,!0),z(t,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(),$()};Nt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Ue(),T=fe(S);{var I=A=>{var k=e$(),E=P(fe(k),2),R=_(E),G=_(R),q=_(G,!0);h(G);var W=P(G,2);ma(W,{onClick:y}),h(R);var Q=P(R,2);Q.__click=[Jb,p,v];var X=_(Q),Y=_(X),de=_(Y);let le;var ve=P(de,2);{var Ie=oe=>{let N=g(()=>r()&&n());ld(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),lt(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()}ut(["click"]);import{PlaybackState as va}from"@vkontakte/videoplayer-core/es2018";import{checkNever as o$}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Rn}from"@vkontakte/videoplayer-statistics/es2018";var ff=(t,e)=>Math.min(+(t+e).toFixed(2),1),mf=(t,e)=>Math.max(+(t-e).toFixed(2),0),iu=(t,e,i)=>{let o=ff(e,i);e<1?t.actions.internal.setVolume(o):ye(t.state.muted$)&&t.actions.external.setMuted(!1)},ou=(t,e,i)=>{let o=mf(e,i);e>0&&t.actions.internal.setVolume(o)};var Bs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var n$=(t,e)=>{e(t)},r$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),s$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function vf(t,e){var qt,Wt;H(e,!0),z(t,s$);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=St(),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=(Wt=E.callbacks)==null?void 0:Wt.onAudioDisabledHint,ue=E.state.isAudioAvailable$,pe=E.state.isAudioDisabled,ee=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Qe}=po(),Ze=0,Z=!0,Ae=j(void 0),Te=ae=>(ae!==Z&&(Z=ae,Ze=0),Ze+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*Ze)/1e3),je=(ae,Tt=!1)=>{var di,ei;let xe=ae.target,he=(di=xe==null?void 0:xe.getAttribute("role"))==null?void 0:di.includes("menuitem"),te=xe.classList.contains("btn"),Ne=ae.code;if(te&&Ne==="Space")return!1;let ze=oh.has(Ne);if(he&&ze)return!1;let Ve=!ih.has(Ne);if(ae.ctrlKey&&Ve||ae.altKey&&Ve||ae.metaKey)return!1;let Fe=he&&Ne==="Escape";nh.has(Ne)||Fe||e.hideContextMenu();let Re=n()===va.PLAYING||n()===va.PAUSED,Je=e.isAds&&(r()==="paused"||r()==="playing"),Et=!Je&&!l().has("TIMELINE");if(!(Re||Je))return!1;G({message:`key down, code: ${Ne}, isExternal = ${Tt}`});let Kt=!1,it=()=>{Kt=!0,Tt||ae.preventDefault()};switch(Ne){case"KeyJ":case"ArrowLeft":{if(!Et)break;if(ae.ctrlKey||ae.altKey){let st=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(st),st&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:st.text}),it()}else{let st=ae.shiftKey?Te(!1):R.controls.seekStepKeyboard/1e3,Qt=Math.max(d()-st,0);d()>0&&(E.actions.internal.seekTime(Qt,Rn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:st.toString()}),it())}break}case"KeyL":case"ArrowRight":{if(!Et)break;if(ae.ctrlKey||ae.altKey){let st=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(st),st&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:st.text}),it()}else{let st=ae.shiftKey?Te(!0):R.controls.seekStepKeyboard/1e3,Qt=Math.min(d()+st,a());Math.round(d())<Math.round(a())&&(E.actions.internal.seekTime(Qt,Rn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:st.toString()}),it())}break}case"ArrowUp":{if(Bs({isAudioDisabled:pe,audioDisabledHintCallback:ce,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})){let st=f(),Qt=R.controls.volumeStepKeyboard,qi=st<=1;if(iu(E,st,Qt),qi){let ri=Math.round(ff(st,Qt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ri}})}}it();break}case"ArrowDown":{if(Bs({isAudioDisabled:pe,audioDisabledHintCallback:ce,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})){let st=f(),Qt=R.controls.volumeStepKeyboard,qi=st>=0;if(ou(E,st,Qt),qi){let ri=Math.round(mf(st,Qt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ri}})}}it();break}case"Comma":{if(ae.shiftKey){E.actions.internal.decrementPlaybackRate();let st=v().find(Qt=>Qt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:st==null?void 0:st.displayValue}),it()}else{if(Je||n()!==va.PAUSED)break;let st=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(st,Rn.DOUBLE_TAP),it())}break}case"Period":{if(ae.shiftKey){E.actions.internal.incrementPlaybackRate();let st=v().find(Qt=>Qt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:st==null?void 0:st.displayValue}),it()}else{if(Je||n()!==va.PAUSED)break;let st=Math.min(d()+R.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(st,Rn.DOUBLE_TAP),it())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if($()&&w()&&Qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let st="PLAY";n()===va.PAUSED?st="PAUSE":y()&&(st="REPLAY"),e.showHotKeyHelpers({type:st})}it();break;case"KeyM":{Bs({isAudioDisabled:pe,audioDisabledHintCallback:ce,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),it();break}case"KeyF":e.toggleFullscreen(),it();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"}),it();break;case"KeyI":E.actions.internal.togglePictureInPicture(),it();break;case"Digit1":case"Numpad1":if(ae.shiftKey){let st=t1(I());N.set(st),Le.set(xe),se.set(!0),oe.set(!0),it();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,Rn.DOUBLE_TAP),it();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,Rn.DOUBLE_TAP),it();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,Rn.DOUBLE_TAP),it();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,Rn.DOUBLE_TAP),it();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,Rn.DOUBLE_TAP),it();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,Rn.DOUBLE_TAP),it();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,Rn.DOUBLE_TAP),it();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,Rn.DOUBLE_TAP),it();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,Rn.DOUBLE_TAP),it();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,Rn.DOUBLE_TAP),it();break;case"Slash":{ae.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),it());break}case"KeyN":ae.shiftKey&&A()&&(E.actions.internal.nextVideoClick(),it());break;case"KeyP":ae.shiftKey&&k()&&(E.actions.internal.prevVideoClick(),it());break;case"ShiftLeft":case"ShiftRight":it();break;case"Tab":case"Escape":case"Enter":break;default:o$(Ne);break}return Kt},tt=ae=>{let Tt=ae.code;if(ae.ctrlKey||ae.altKey||ae.metaKey)return;let xe=n()===va.PLAYING||n()===va.PAUSED,he=e.isAds&&(r()==="paused"||r()==="playing");if(xe||he)switch(Tt){case"ShiftLeft":case"ShiftRight":Ze=0;break}},vt=U("aria_label_video_player"),It=()=>{var ae;return(ae=s(Ae))==null?void 0:ae.focus()},dt=ae=>ae.type==="keydown"?je(ae,!0):(ae.type==="keyup"&&tt(ae),!1);var qe=r$();qe.__keyup=tt,qe.__keydown=[n$,je];var zt=_(qe);be(zt,()=>{var ae;return(ae=e.children)!=null?ae:re}),h(qe),rt(qe,ae=>B(Ae,ae),()=>s(Ae)),O(()=>De(qe,"aria-label",vt)),b(t,qe);var Yt=F({focus:It,handleExternalKeyboardEvent:dt});return o(),Yt}ut(["keyup","keydown"]);var a$=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>'),l$={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=Rb(),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=Nb(),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=Bb(),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=Ob(),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=Db(),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 Ze=xe=>{var he=Hb(),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(Ze)})}var Z=P(qe,2);{var Ae=xe=>{var he=Fb(),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 je=xe=>{var he=Ub(),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(je)})}var tt=P(Te,2),ht=P(_(tt),2),mt=_(ht);h(ht),h(tt);var wt=P(tt,2);{var Qe=xe=>{var he=zb(),ie=P(_(he),2);sd(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(wt,xe=>{s(a).speed&&xe(Qe)})}var Ft=P(wt,2);{var Xt=xe=>{var he=Wb(),ie=P(_(he),2);sd(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(Ft,xe=>{s(a).bitrate&&xe(Xt)})}var Gt=P(Ft,2),Ut=P(_(Gt),2);sd(Ut,{get values(){return s(S)}});var ee=P(Ut,2),Rt=_(ee,!0);h(ee),h(Gt),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(mt,`${(he=s(v))!=null?he:""} / ${(ie=s(f))!=null?ie:""} frames`),$e(Rt,s(u))},[()=>({"container-mobile":n()})]),b(t,k),H(),o()}ct(["click"]);import{noop as Qb}from"@vkontakte/videoplayer-shared/es2018";var Gb=(t,e)=>{t.stopPropagation(),e()()},jb=M('<div class="close svelte-1ome55p"></div>'),Yb={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 ma(t,e){D(e,!0),z(t,Yb);let i=m(e,"onClick",3,Qb);var o=jb();o.__click=[Gb,i],b(t,o),H()}ct(["click"]);import{noop as Zb}from"@vkontakte/videoplayer-shared/es2018";var Xb=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>'),Jb={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function ld(t,e){D(e,!0),z(t,Jb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,Zb),n=5e3,r=j(void 0),l,d,a=0,p;Ue(()=>{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()())};Nt(()=>{l=s(r).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),Vn(()=>{f()});var u=Xb(),$=_(u);nt($,w=>B(r,w),()=>s(r)),we(2),h(u),b(t,u),H()}var e$=(t,e,i)=>{e(!1),i()},t$=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),i$={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function pf(t,e){D(e,!0),z(t,i$);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(),$()};Nt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Fe(),T=fe(S);{var I=A=>{var k=t$(),E=P(fe(k),2),R=_(E),Q=_(R),q=_(Q,!0);h(Q);var W=P(Q,2);ma(W,{onClick:y}),h(R);var G=P(R,2);G.__click=[e$,p,v];var X=_(G),Y=_(X),ce=_(Y);let le;var me=P(ce,2);{var ke=ne=>{let N=g(()=>r()&&n());ld(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),lt(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()}ct(["click"]);import{PlaybackState as va}from"@vkontakte/videoplayer-core/es2018";import{checkNever as n$}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Rn}from"@vkontakte/videoplayer-statistics/es2018";var ff=(t,e)=>Math.min(+(t+e).toFixed(2),1),mf=(t,e)=>Math.max(+(t-e).toFixed(2),0),iu=(t,e,i)=>{let o=ff(e,i);e<1?t.actions.internal.setVolume(o):ye(t.state.muted$)&&t.actions.external.setMuted(!1)},ou=(t,e,i)=>{let o=mf(e,i);e>0&&t.actions.internal.setVolume(o)};var Bs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var r$=(t,e)=>{e(t)},s$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),a$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function vf(t,e){var Gt,Ut;D(e,!0),z(t,a$);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=It(),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=(Gt=E.callbacks)==null?void 0:Gt.onAudioDoesNotExistHint,de=(Ut=E.callbacks)==null?void 0:Ut.onAudioDisabledHint,ue=E.state.isAudioAvailable$,pe=E.state.isAudioDisabled,te=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:qe}=lo(),Ze=0,Z=!0,Ae=j(void 0),Te=ee=>(ee!==Z&&(Z=ee,Ze=0),Ze+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*Ze)/1e3),je=(ee,Rt=!1)=>{var ci,ti;let xe=ee.target,he=(ci=xe==null?void 0:xe.getAttribute("role"))==null?void 0:ci.includes("menuitem"),ie=xe.classList.contains("btn"),Be=ee.code;if(ie&&Be==="Space")return!1;let ze=oh.has(Be);if(he&&ze)return!1;let Me=!ih.has(Be);if(ee.ctrlKey&&Me||ee.altKey&&Me||ee.metaKey)return!1;let We=he&&Be==="Escape";nh.has(Be)||We||e.hideContextMenu();let Re=n()===va.PLAYING||n()===va.PAUSED,Je=e.isAds&&(r()==="paused"||r()==="playing"),At=!Je&&!l().has("TIMELINE");if(!(Re||Je))return!1;Q({message:`key down, code: ${Be}, isExternal = ${Rt}`});let Wt=!1,Xe=()=>{Wt=!0,Rt||ee.preventDefault()};switch(Be){case"KeyJ":case"ArrowLeft":{if(!At)break;if(ee.ctrlKey||ee.altKey){let st=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(st),st&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:st.text}),Xe()}else{let st=ee.shiftKey?Te(!1):R.controls.seekStepKeyboard/1e3,Kt=Math.max(d()-st,0);d()>0&&(E.actions.internal.seekTime(Kt,Rn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:st.toString()}),Xe())}break}case"KeyL":case"ArrowRight":{if(!At)break;if(ee.ctrlKey||ee.altKey){let st=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(st),st&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:st.text}),Xe()}else{let st=ee.shiftKey?Te(!0):R.controls.seekStepKeyboard/1e3,Kt=Math.min(d()+st,a());Math.round(d())<Math.round(a())&&(E.actions.internal.seekTime(Kt,Rn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:st.toString()}),Xe())}break}case"ArrowUp":{if(Bs({isAudioDisabled:pe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})){let st=f(),Kt=R.controls.volumeStepKeyboard,ri=st<=1;if(iu(E,st,Kt),ri){let ui=Math.round(ff(st,Kt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ui}})}}Xe();break}case"ArrowDown":{if(Bs({isAudioDisabled:pe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})){let st=f(),Kt=R.controls.volumeStepKeyboard,ri=st>=0;if(ou(E,st,Kt),ri){let ui=Math.round(mf(st,Kt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ui}})}}Xe();break}case"Comma":{if(ee.shiftKey){E.actions.internal.decrementPlaybackRate();let st=v().find(Kt=>Kt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:st==null?void 0:st.displayValue}),Xe()}else{if(Je||n()!==va.PAUSED)break;let st=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(st,Rn.DOUBLE_TAP),Xe())}break}case"Period":{if(ee.shiftKey){E.actions.internal.incrementPlaybackRate();let st=v().find(Kt=>Kt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:st==null?void 0:st.displayValue}),Xe()}else{if(Je||n()!==va.PAUSED)break;let st=Math.min(d()+R.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(st,Rn.DOUBLE_TAP),Xe())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if($()&&w()&&qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let st="PLAY";n()===va.PAUSED?st="PAUSE":y()&&(st="REPLAY"),e.showHotKeyHelpers({type:st})}Xe();break;case"KeyM":{Bs({isAudioDisabled:pe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),Xe();break}case"KeyF":e.toggleFullscreen(),Xe();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"}),Xe();break;case"KeyI":E.actions.internal.togglePictureInPicture(),Xe();break;case"Digit1":case"Numpad1":if(ee.shiftKey){let st=i1(I());N.set(st),Ve.set(xe),ae.set(!0),ne.set(!0),Xe();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,Rn.DOUBLE_TAP),Xe();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,Rn.DOUBLE_TAP),Xe();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,Rn.DOUBLE_TAP),Xe();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,Rn.DOUBLE_TAP),Xe();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,Rn.DOUBLE_TAP),Xe();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,Rn.DOUBLE_TAP),Xe();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,Rn.DOUBLE_TAP),Xe();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,Rn.DOUBLE_TAP),Xe();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,Rn.DOUBLE_TAP),Xe();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,Rn.DOUBLE_TAP),Xe();break;case"Slash":{ee.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),Xe());break}case"KeyN":ee.shiftKey&&A()&&(E.actions.internal.nextVideoClick(),Xe());break;case"KeyP":ee.shiftKey&&k()&&(E.actions.internal.prevVideoClick(),Xe());break;case"ShiftLeft":case"ShiftRight":Xe();break;case"Tab":case"Escape":case"Enter":break;default:n$(Be);break}return Wt},tt=ee=>{let Rt=ee.code;if(ee.ctrlKey||ee.altKey||ee.metaKey)return;let xe=n()===va.PLAYING||n()===va.PAUSED,he=e.isAds&&(r()==="paused"||r()==="playing");if(xe||he)switch(Rt){case"ShiftLeft":case"ShiftRight":Ze=0;break}},ht=F("aria_label_video_player"),mt=()=>{var ee;return(ee=s(Ae))==null?void 0:ee.focus()},wt=ee=>ee.type==="keydown"?je(ee,!0):(ee.type==="keyup"&&tt(ee),!1);var Qe=s$();Qe.__keyup=tt,Qe.__keydown=[r$,je];var Ft=_(Qe);be(Ft,()=>{var ee;return(ee=e.children)!=null?ee:se}),h(Qe),nt(Qe,ee=>B(Ae,ee),()=>s(Ae)),O(()=>De(Qe,"aria-label",ht)),b(t,Qe);var Xt=H({focus:mt,handleExternalKeyboardEvent:wt});return o(),Xt}ct(["keyup","keydown"]);var l$=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>'),d$={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.`},Vh=V_;var vs=new Map;vs.set(Nh.EN,Vh)
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 ga(t,e){z(t,l$);let i=m(e,"style",3,"");var o=a$();O(()=>lt(o,i())),b(t,o)}var d$=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 gf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=d$();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)}import{noop as dl}from"@vkontakte/videoplayer-shared/es2018";var c$=t=>{t.stopPropagation()},u$=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;}
153
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ga(t,e){z(t,d$);let i=m(e,"style",3,"");var o=l$();O(()=>lt(o,i())),b(t,o)}var c$=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 gf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=c$();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)}import{noop as dl}from"@vkontakte/videoplayer-shared/es2018";var u$=t=>{t.stopPropagation()},p$=M("<button><!></button>"),f$={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.`},Vh=V_;var vs=new Map;vs.set(Nh.EN,Vh)
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 Rt(t,e){H(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,dl),$=m(e,"focus",3,dl),w=m(e,"blur",3,dl),y=g(()=>u()===dl?null:k=>{k.stopPropagation(),u()(k)}),S=g(()=>$()===dl?null:k=>{k.preventDefault(),$()()}),T=g(()=>w()===dl?null:k=>{k.preventDefault(),w()()});var I=u$();I.__pointerdown=[c$],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),rt(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"),lt(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)}),xt("focus",I,function(...k){var E;(E=s(S))==null||E.apply(this,k)}),xt("blur",I,function(...k){var E;(E=s(T))==null||E.apply(this,k)}),b(t,I),F()}ut(["pointerdown","click"]);var f$=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>'),v$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function hf(t,e){H(e,!0),z(t,v$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=U("hotkey_map_modal_close_btn_text");var r=m$(),l=_(r),d=_(l);{var a=u=>{var $=f$(),w=_($),y=_(w,!0);h(w);var S=P(w,2);{var T=I=>{Rt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(A,k)=>{gf(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 g$=new Set(["BR"]),n1=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;g$.has(l)||(n=r.parentElement)==null||n.removeChild(r)}return e.innerHTML};var h$=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>'),_$=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>'),$$={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 Vt(t,e){D(e,!0),z(t,f$);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,dl),$=m(e,"focus",3,dl),w=m(e,"blur",3,dl),y=g(()=>u()===dl?null:k=>{k.stopPropagation(),u()(k)}),S=g(()=>$()===dl?null:k=>{k.preventDefault(),$()()}),T=g(()=>w()===dl?null:k=>{k.preventDefault(),w()()});var I=p$();I.__pointerdown=[u$],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),nt(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"),lt(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)}),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),H()}ct(["pointerdown","click"]);var m$=M('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),v$=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>'),g$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function hf(t,e){D(e,!0),z(t,g$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var r=v$(),l=_(r),d=_(l);{var a=u=>{var $=m$(),w=_($),y=_(w,!0);h(w);var S=P(w,2);{var T=I=>{Vt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(A,k)=>{gf(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 h$=new Set(["BR"]),r1=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;h$.has(l)||(n=r.parentElement)==null||n.removeChild(r)}return e.innerHTML};var _$=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>'),b$=M('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),$$=M('<div class="hot-key-map svelte-quklnq"></div>'),y$={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 _f(t,e){H(e,!1),z(t,$$);let[i,o]=Oe(),n=()=>C(l,"$data",i),r=Ee(),{data:l,show:d}=r.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Lr(),hf(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var v=b$();yi(v,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>s($).title,y=()=>s($).items;var S=_$(),T=_(S),I=_(T,!0);h(T);var A=P(T,2);yi(A,5,y,({description:k,value:E})=>E,(k,E)=>{let R=()=>s(E).description,G=()=>s(E).value;var q=h$(),W=_(q),Q=_(W);Fl(Q,()=>n1(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()}import{noop as P1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as C1,PlaybackState as om}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var y$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),x$={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function bf(t,e){z(t,x$);var i=y$(),o=_(i);be(o,()=>{var n;return(n=e.children)!=null?n:re}),h(i),b(t,i)}import{VideoQuality as ud}from"@vkontakte/videoplayer-shared/es2018";var w$=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 $f(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=w$();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 C$=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 yf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=C$();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 S$=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 xf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=S$();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 T$=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 dd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=T$();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 E$=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 cd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=E$();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 nu=t=>{switch(t){case ud.Q_720P:return xf;case ud.Q_1080P:return dd;case ud.Q_1440P:return cd;case ud.Q_2160P:return $f;case ud.Q_4320P:return yf}};var I$=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 wf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=I$();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 Cf(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 P$=M('<div aria-hidden="true"><!> <!></div>'),A$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function pd(t,e){H(e,!0),z(t,A$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>nu(o())),r=g(()=>!!s(n)&&[dd,cd].includes(s(n)));var l=Ue(),d=fe(l);{var a=f=>{wf(f,{})},p=f=>{var v=P$();let u;var $=_(v);{var w=T=>{bf(T,{children:(I,A)=>{var k=Ue(),E=fe(k);xi(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");Cf(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 M$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),L$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function cl(t,e){H(e,!0),z(t,L$);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)&&$t(()=>{e.ref$.set(s(w))})});let y=$("aria_label_settings");async function S(I){let A=Ns(I);n()?v():f(A,xo)}let T=g(()=>n()?"opened":"");Rt(t,{get className(){return s(T)},testId:"btn-settings",click:S,get ariaLabel(){return y},get ariaExpanded(){return n()},get ref(){return s(w)},set ref(I){B(w,I,!0)},children:(I,A)=>{var k=M$(),E=_(k);pd(E,{get isMobile(){return r()},get currentQuality(){return l()}}),h(k),b(I,k)},$$slots:{default:!0}}),F(),o()}var V$=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 Sf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=V$();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 R$=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 fd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=R$();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 Tf(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"));Rt(t,{testId:"btn-Subtitles",get ariaLabel(){return s(r)},get click(){return e.click},get ariaKeyShortCut(){return ts.KeyC},role:"button",children:(l,d)=>{var a=Ue(),p=fe(a);{var f=u=>{Sf(u,{})},v=u=>{fd(u,{})};V(p,u=>{i()?u(f):u(v,!1)})}b(l,a)},$$slots:{default:!0}}),F()}var N$=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),B$=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),O$={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function md(t,e){H(e,!0),z(t,O$);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=St(),d=ne(!1),a=g(()=>_n(e.duration)),p=g(()=>_n(e.position));var f=B$();let v;var u=_(f),$=_(u,!0);h(u);var w=P(u,2);{var y=S=>{var T=N$(),I=_(T,!0);h(T),O(()=>$e(I,s(a))),b(S,T)};V(w,S=>{n()&&S(y)})}h(f),fs(f,()=>nl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),rt(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()}import{noop as ru}from"@vkontakte/videoplayer-shared/es2018";var D$=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>'),H$={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
163
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function _f(t,e){D(e,!1),z(t,y$);let[i,o]=Oe(),n=()=>C(l,"$data",i),r=Ee(),{data:l,show:d}=r.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Lr(),hf(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var v=$$();xi(v,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>s($).title,y=()=>s($).items;var S=b$(),T=_(S),I=_(T,!0);h(T);var A=P(T,2);xi(A,5,y,({description:k,value:E})=>E,(k,E)=>{let R=()=>s(E).description,Q=()=>s(E).value;var q=_$(),W=_(q),G=_(W);Fl(G,()=>r1(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()}import{noop as A1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as S1,PlaybackState as om}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var x$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),w$={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function bf(t,e){z(t,w$);var i=x$(),o=_(i);be(o,()=>{var n;return(n=e.children)!=null?n:se}),h(i),b(t,i)}import{VideoQuality as ud}from"@vkontakte/videoplayer-shared/es2018";var C$=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 $f(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=C$();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 S$=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 yf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=S$();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 T$=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 xf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=T$();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 E$=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 dd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=E$();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 I$=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 cd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=I$();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 nu=t=>{switch(t){case ud.Q_720P:return xf;case ud.Q_1080P:return dd;case ud.Q_1440P:return cd;case ud.Q_2160P:return $f;case ud.Q_4320P:return yf}};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 wf(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 P$=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 Cf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=P$();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 A$=M('<div aria-hidden="true"><!> <!></div>'),M$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function pd(t,e){D(e,!0),z(t,M$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>nu(o())),r=g(()=>!!s(n)&&[dd,cd].includes(s(n)));var l=Fe(),d=fe(l);{var a=f=>{wf(f,{})},p=f=>{var v=A$();let u;var $=_(v);{var w=T=>{bf(T,{children:(I,A)=>{var k=Fe(),E=fe(k);wi(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");Cf(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 L$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),V$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function cl(t,e){D(e,!0),z(t,V$);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)&&xt(()=>{e.ref$.set(s(w))})});let y=$("aria_label_settings");async function S(I){let A=Ns(I);n()?v():f(A,$o)}let T=g(()=>n()?"opened":"");Vt(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=L$(),E=_(k);pd(E,{get isMobile(){return r()},get currentQuality(){return l()}}),h(k),b(I,k)},$$slots:{default:!0}}),H(),o()}var R$=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 Sf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=R$();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 N$=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 fd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=N$();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 Tf(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"));Vt(t,{testId:"btn-Subtitles",get ariaLabel(){return s(r)},get click(){return e.click},get ariaKeyShortCut(){return ts.KeyC},role:"button",children:(l,d)=>{var a=Fe(),p=fe(a);{var f=u=>{Sf(u,{})},v=u=>{fd(u,{})};V(p,u=>{i()?u(f):u(v,!1)})}b(l,a)},$$slots:{default:!0}}),H()}var B$=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),O$=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),D$={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function md(t,e){D(e,!0),z(t,D$);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=It(),d=re(!1),a=g(()=>_n(e.duration)),p=g(()=>_n(e.position));var f=O$();let v;var u=_(f),$=_(u,!0);h(u);var w=P(u,2);{var y=S=>{var T=B$(),I=_(T,!0);h(T),O(()=>$e(I,s(a))),b(S,T)};V(w,S=>{n()&&S(y)})}h(f),fs(f,()=>nl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),nt(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()}import{noop as ru}from"@vkontakte/videoplayer-shared/es2018";var H$=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>'),F$={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 Os(t,e){z(t,H$);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=D$();O(()=>{var d;De(l,"data-value",s(r)),De(l,"data-testid",`volume-${(d=s(r))!=null?d:""}-icon`)}),b(t,l)}import{isNonNullable as s1,noop as Nn}from"@vkontakte/videoplayer-shared/es2018";import{noop as If}from"@vkontakte/videoplayer-shared/es2018";import{noop as U$}from"@vkontakte/videoplayer-shared/es2018";var F$=M('<div class="overlay"><!></div>');function Ef(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())}),Nt(()=>(p(n()),()=>a(n())));var f=F$(),v=_(f);be(v,()=>{var u;return(u=e.children)!=null?u:re}),h(f),rt(f,u=>B(d,u),()=>s(d)),b(t,f),F(),o()}var z$=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),W$=M("<div><!></div> <!>",1),q$={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function ha(t,e){H(e,!0),z(t,q$);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,U$),y=5,S=j(void 0),T=j(void 0),I,A=j(0),k=j(0),E=j(0),R=j(0),G=St(),q=Ee(),W=q.ui.playerSize,Q=q.ui.overlayContainer$;We(()=>{$t(()=>{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,je=s(T).clientWidth,tt=r().width,vt=(Te-je)/2,It=Ae.left+p()-Z.left,dt=It+vt,qe=Ae.top+f()-Z.top,zt=je/2-y,Yt=dt<8,qt=dt+je>tt-8;Yt&&(dt=8,zt=It+Ae.width/2-2.5*y),qt&&(dt=tt-8-je,zt=Ae.left-Z.left+Ae.width/2-dt-y),B(E,dt,!0),B(R,qe),B(A,zt,!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,je=s(T).clientHeight,tt=(Te-je)/2+je,vt=Ae.left+p()-Z.left-s(T).clientWidth,It=2,dt=vt-y;dt<8&&(dt=8);let zt=Ae.top+f()-Z.top+tt,Yt=It-tt/2,qt=It-y;B(E,dt,!0),B(R,zt),B(k,Yt),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 je="";switch($()){case"top":je=`transform: translate(${Z}px, ${Ae}px);`;break;case"bottom":je=`transform: translate(${Z}px, ${Ae}px); top: auto; bottom: 100%;`;break;case"left":je=`transform: translate(${Z}px, ${Ae}px); left: 0; right: auto;`;break;default:je=`transform: translate(${Z}px, ${Ae}px);`}return je+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,je+=` opacity: ${Te?1:0}; visibility: ${Te?"visible":"hidden"}`,je},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)));Nt(Ie),Vn(()=>window.clearTimeout(I));var ce=W$(),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),rt(ue,Z=>B(S,Z),()=>s(S));var Qe=P(ue,2);{var Ze=Z=>{Ef(Z,{children:(Ae,Te)=>{var je=z$(),tt=_(je),vt=_(tt,!0);h(tt);var It=P(tt,2);h(je),rt(je,dt=>B(T,dt),()=>s(T)),O(()=>{lt(je,s(_e)),$e(vt,d()),lt(It,s(ge))}),b(Ae,je)},$$slots:{default:!0}})};V(Qe,Z=>{d()&&!l()&&Z(Ze)})}O(Z=>pe=ie(ue,1,"tooltip-wrapper svelte-hxlyne",null,pe,Z),[()=>({"full-width":v()})]),xt("mouseenter",ue,Le),xt("mouseleave",ue,oe),b(t,ce),F(),o()}ut(["mousemove","mousedown","mouseup"]);var r1=t=>{t.stopPropagation()},K$=M("<div><!></div>"),Q$={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 Co(t,e){H(e,!0),z(t,Q$);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,If),G=m(e,"initialTranslateXPx",3,0),q=m(e,"initialTranslateYPx",19,()=>-18),W=m(e,"mouseEnter",3,If),Q=m(e,"mouseLeave",3,If),X=g(()=>u()?n()?f("tooltip_disabled_when_graph_on"):k():T());var Y=K$();Y.__pointerdown=[r1],Y.__click=[r1];var de=_(Y);{var le=Ie=>{ha(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),rt(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)}),xt("mouseenter",Y,function(...Ie){var me;(me=W())==null||me.apply(this,Ie)}),xt("mouseleave",Y,function(...Ie){var me;(me=Q())==null||me.apply(this,Ie)}),es(Y,"clientWidth",y),b(t,Y),F(),o()}ut(["pointerdown","click"]);var G$=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 vd(t,e){"use strict";var i=G$(),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 j$=M("<div><!></div>"),Y$={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function kf(t,e){H(e,!0),z(t,Y$);let o=Ee().ui.t,n=j(0),r=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Co(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=j$();let p;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);vd(f,{get completed(){return s(v)}}),h(a),O(u=>{p=ie(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),lt(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),es(a,"clientWidth",u=>B(n,u)),b(l,a)},$$slots:{default:!0}}),F()}var Z$=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),X$=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),J$={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 Os(t,e){z(t,F$);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=H$();O(()=>{var d;De(l,"data-value",s(r)),De(l,"data-testid",`volume-${(d=s(r))!=null?d:""}-icon`)}),b(t,l)}import{isNonNullable as a1,noop as Nn}from"@vkontakte/videoplayer-shared/es2018";import{noop as If}from"@vkontakte/videoplayer-shared/es2018";import{noop as z$}from"@vkontakte/videoplayer-shared/es2018";var U$=M('<div class="overlay"><!></div>');function Ef(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())}),Nt(()=>(p(n()),()=>a(n())));var f=U$(),v=_(f);be(v,()=>{var u;return(u=e.children)!=null?u:se}),h(f),nt(f,u=>B(d,u),()=>s(d)),b(t,f),H(),o()}var W$=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),q$=M("<div><!></div> <!>",1),K$={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function ha(t,e){D(e,!0),z(t,K$);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,z$),y=5,S=j(void 0),T=j(void 0),I,A=j(0),k=j(0),E=j(0),R=j(0),Q=It(),q=Ee(),W=q.ui.playerSize,G=q.ui.overlayContainer$;Ue(()=>{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,je=s(T).clientWidth,tt=r().width,ht=(Te-je)/2,mt=Ae.left+p()-Z.left,wt=mt+ht,Qe=Ae.top+f()-Z.top,Ft=je/2-y,Xt=wt<8,Gt=wt+je>tt-8;Xt&&(wt=8,Ft=mt+Ae.width/2-2.5*y),Gt&&(wt=tt-8-je,Ft=Ae.left-Z.left+Ae.width/2-wt-y),B(E,wt,!0),B(R,Qe),B(A,Ft,!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,je=s(T).clientHeight,tt=(Te-je)/2+je,ht=Ae.left+p()-Z.left-s(T).clientWidth,mt=2,wt=ht-y;wt<8&&(wt=8);let Ft=Ae.top+f()-Z.top+tt,Xt=mt-tt/2,Gt=mt-y;B(E,wt,!0),B(R,Ft),B(k,Xt),B(A,Gt)},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 je="";switch($()){case"top":je=`transform: translate(${Z}px, ${Ae}px);`;break;case"bottom":je=`transform: translate(${Z}px, ${Ae}px); top: auto; bottom: 100%;`;break;case"left":je=`transform: translate(${Z}px, ${Ae}px); left: 0; right: auto;`;break;default:je=`transform: translate(${Z}px, ${Ae}px);`}return je+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,je+=` opacity: ${Te?1:0}; visibility: ${Te?"visible":"hidden"}`,je},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)));Nt(ke),Vn(()=>window.clearTimeout(I));var de=q$(),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),nt(ue,Z=>B(S,Z),()=>s(S));var qe=P(ue,2);{var Ze=Z=>{Ef(Z,{children:(Ae,Te)=>{var je=W$(),tt=_(je),ht=_(tt,!0);h(tt);var mt=P(tt,2);h(je),nt(je,wt=>B(T,wt),()=>s(T)),O(()=>{lt(je,s(_e)),$e(ht,d()),lt(mt,s(ge))}),b(Ae,je)},$$slots:{default:!0}})};V(qe,Z=>{d()&&!l()&&Z(Ze)})}O(Z=>pe=oe(ue,1,"tooltip-wrapper svelte-hxlyne",null,pe,Z),[()=>({"full-width":v()})]),Ct("mouseenter",ue,Ve),Ct("mouseleave",ue,ne),b(t,de),H(),o()}ct(["mousemove","mousedown","mouseup"]);var s1=t=>{t.stopPropagation()},Q$=M("<div><!></div>"),G$={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 xo(t,e){D(e,!0),z(t,G$);let[i,o]=Oe(),n=()=>C(p,"$isGraphOpened$",i),r=()=>C(a,"$isMobile",i),l=Ee(),d=lo(),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,If),Q=m(e,"initialTranslateXPx",3,0),q=m(e,"initialTranslateYPx",19,()=>-18),W=m(e,"mouseEnter",3,If),G=m(e,"mouseLeave",3,If),X=g(()=>u()?n()?f("tooltip_disabled_when_graph_on"):k():T());var Y=Q$();Y.__pointerdown=[s1],Y.__click=[s1];var ce=_(Y);{var le=ke=>{ha(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),nt(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)}),Ct("mouseenter",Y,function(...ke){var ve;(ve=W())==null||ve.apply(this,ke)}),Ct("mouseleave",Y,function(...ke){var ve;(ve=G())==null||ve.apply(this,ke)}),es(Y,"clientWidth",y),b(t,Y),H(),o()}ct(["pointerdown","click"]);var j$=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 vd(t,e){"use strict";var i=j$(),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 Y$=M("<div><!></div>"),Z$={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function kf(t,e){D(e,!0),z(t,Z$);let o=Ee().ui.t,n=j(0),r=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));xo(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=Y$();let p;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);vd(f,{get completed(){return s(v)}}),h(a),O(u=>{p=oe(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),lt(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),es(a,"clientWidth",u=>B(n,u)),b(l,a)},$$slots:{default:!0}}),H()}var X$=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),J$=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),e2={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 Pf(t,e){z(t,J$);let i=m(e,"videoEpisodes",19,()=>[]);var o=X$();yi(o,21,i,n=>n.from,(n,r)=>{var l=Z$();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),lt(l,`left: ${s(r).from}%; width: ${s(r).width}%`),lt(p,`transform: translateX(${s(r).loadedWidth/s(r).width*100}%)`),v=ie(f,1,"video-episode-filled svelte-1u6kv8l",null,v,$),lt(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 e2(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 t2(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 i2(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 o2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function n2(t,e,i,o,n,r){let l=e(t.clientX,t.clientY);i()&&o()(l),B(n,!1),r()(l)}var r2=M("<div></div>"),s2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),a2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),l2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
167
+ .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Pf(t,e){z(t,e2);let i=m(e,"videoEpisodes",19,()=>[]);var o=J$();xi(o,21,i,n=>n.from,(n,r)=>{var l=X$();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),lt(l,`left: ${s(r).from}%; width: ${s(r).width}%`),lt(p,`transform: translateX(${s(r).loadedWidth/s(r).width*100}%)`),v=oe(f,1,"video-episode-filled svelte-1u6kv8l",null,v,$),lt(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 t2(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 i2(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 o2(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 n2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function r2(t,e,i,o,n,r){let l=e(t.clientX,t.clientY);i()&&o()(l),B(n,!1),r()(l)}var s2=M("<div></div>"),a2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),l2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),d2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
168
168
  /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
169
169
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
170
170
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
171
171
  .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
172
- .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function _a(t,e){H(e,!0),z(t,l2);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,Nn),S=m(e,"onHandleMove",3,Nn),T=m(e,"onPointerUp",3,Nn),I=m(e,"onPointerEnter",3,Nn),A=m(e,"onPointerMove",3,Nn),k=m(e,"onPointerLeave",3,Nn),E=m(e,"onMouseEnter",3,Nn),R=m(e,"onMouseLeave",3,Nn),G=m(e,"onWheelUp",3,Nn),q=m(e,"onWheelDown",3,Nn),W=m(e,"onWheelLeft",3,Nn),Q=m(e,"onWheelRight",3,Nn),X=m(e,"onDisabledClick",3,Nn),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,Nn),N=St(),He=j(void 0),_e=j(!1),ge=g(()=>{var te;return(te=me())!=null?te:0}),ce=g(()=>{var te;return s1(f())&&((te=f()[f().length-1])==null?void 0:te.time)<s(ge)}),ue=g(()=>s1(f())&&f().length&&s(ce)&&s(ge)?je(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 Ze(){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 je(te,Ne){let ze=N.features.episodesClustering&&!u()?N.episodeMinWidthPc:0,Ve=[],Fe=f()[0].time/s(ge)*100,Re=0,Je=0;for(let it=1;it<f().length;it++)Re=f()[it].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()[it-1].interactive,completed:f()[it-1].completed}),Fe=f()[it].time/s(ge)*100,Je++);let Et={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()[Je].interactive,completed:f()[Je].completed};100-Fe<ze?(Je-=1,Ve[Je].width+=100-Fe,Ve[Je].loadedWidth+=Math.max(0,Math.min(te,100)-Fe),Ve[Je].filledWidth+=Math.max(0,Math.min(Ne,100)-Fe)):Ve[Je]=Et;let Kt=f()[0].time;if(Kt!==0){let it=Kt/s(ge)*100;Ve.unshift({from:0,width:it,loadedWidth:Math.min(it,te),filledWidth:Math.min(it,Ne)})}return Ve}function tt(te){return Math.max(0,Math.min(100,te*100))}var vt=a2(),It=fe(vt);{var dt=te=>{var Ne=r2();let ze;yi(Ne,21,()=>s(ue),Ve=>Ve.from,(Ve,Fe)=>{var Re=Ue(),Je=fe(Re);{var Et=Kt=>{kf(Kt,{get videoEpisode(){return s(Fe)},get disabled(){return $()}})};V(Je,Kt=>{s(Fe).interactive&&Kt(Et)})}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(It,te=>{u()&&te(dt)})}var qe=P(It,2);let zt;qe.__pointerdown=[e2,i,He,$,_e,Ae,y],qe.__pointermove=[t2,$,Ae,Te,A,He,_e,S],qe.__pointerup=[i2,$,_e,Ae,T],qe.__click=[o2,$,X,Ae],qe.__contextmenu=[n2,Ae,$,X,_e,oe];var Yt=_(qe);{var qt=te=>{Pf(te,{get videoEpisodes(){return s(ue)},get disabled(){return $()},get isMobile(){return a()}})},Wt=te=>{var Ne=s2(),ze=_(Ne),Ve=P(ze,2);let Fe;h(Ne),O((Re,Je,Et)=>{lt(ze,Re),Fe=ie(Ve,1,"filled svelte-1tpemng",null,Fe,Je),lt(Ve,Et)},[()=>`transform: translateX(${tt(Y())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${tt(de())}%);`]),b(te,Ne)};V(Yt,te=>{s(ue).length?te(qt):te(Wt,!1)})}var ae=P(Yt,2);let Tt;var xe=_(ae);let he;h(ae),h(qe),rt(qe,te=>i(te),()=>i()),O((te,Ne,ze,Ve)=>{var Fe,Re;zt=ie(qe,1,`slider ${(Fe=o())!=null?Fe:""}`,"svelte-1tpemng",zt,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),Tt=ie(ae,1,"handleWrap svelte-1tpemng",null,Tt,Ne),lt(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(${tt(le())}%);`,()=>({"active-live":d()})]),xt("pointerenter",qe,pe),xt("pointerleave",qe,ee),xt("mouseenter",qe,Qe),xt("mouseleave",qe,Ze),xt("wheel",qe,Z),b(t,vt),F()}ut(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Di=(t,e)=>aa[t]>=aa[e],a1=(t,e)=>aa[t]<aa[e],Ds=(t,e)=>aa[t]<=aa[e],l1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var d2=M("<div><!></div>"),c2=M("<div><!> <!></div>"),u2={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;margin:0 8px;position:relative;width:70px;--slider-height: var(--slider-volume-height);--slider-radius: var(--slider-volume-radius);--slider-handle-size: var(--slider-volume-handle-size);--slider-bg: var(--volume-slider-bg);--slider-filled-bg: var(--volume-slider-filled-bg);--slider-handle-bg: var(--volume-slider-handle-bg);}.volumeBar-slider-vertical {width:50px !important;}.volumeBar-vertical.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function Af(t,e){var Z,Ae;H(e,!0),z(t,u2);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=St(),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(()=>Ds(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(){iu(a,l(),p.controls.volumeStepWheel)}function me(){ou(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=c2();let pe;var ee=_(ue);ha(ee,{get content(){return s(Q)},translateY:-18,children:(Te,je)=>{let tt=g(()=>s(W)?"btn-volume-vertical":"btn-volume-horizontal");Rt(Te,{className:"btn-full-opacity",get disabled(){return s(le)},get testId(){return s(tt)},get ariaLabel(){return s(X)},get click(){return e.click},get ariaKeyShortCut(){return ts.KeyM},role:"button",children:(vt,It)=>{Os(vt,{get volume(){return l()},get muted(){return s(q)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Qe=P(ee,2);{var Ze=Te=>{var je=d2();let tt;var vt=_(je);let It=g(()=>s(W)?"volumeBar-slider-vertical":""),dt=g(()=>s(W)&&!s(E)),qe=g(()=>s(W)?oe:ru),zt=g(()=>s(W)?N:ru),Yt=g(()=>Math.round(s(Y)*100)),qt=g(()=>`${Math.round(s(Y)*100)}%`),Wt=g(()=>s(W)?"volume-slider-vertical":"volume-slider");_a(vt,{get className(){return s(It)},get isHidden(){return s(dt)},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(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(Yt)},get ariaValueText(){return s(qt)},get filledProgress(){return s(Y)},get handleProgress(){return s(Y)},get testId(){return s(Wt)}}),h(je),O(ae=>tt=ie(je,1,"volumeBar svelte-1auih1j",null,tt,ae),[()=>({"volumeBar-vertical":s(W)})]),b(Te,je)};V(Qe,Te=>{s(G)&&Te(Ze)})}h(ue),O(Te=>pe=ie(ue,1,"volumeBar-container svelte-1auih1j",null,pe,Te),[()=>({vertical:s(W)})]),xt("mouseenter",ue,function(...Te){var je;(je=s(W)?He:ru)==null||je.apply(this,Te)}),xt("mouseleave",ue,function(...Te){var je;(je=s(W)?_e:ru)==null||je.apply(this,Te)}),xt("wheel",ue,ce),b(t,ue),F(),o()}import{noop as m2}from"@vkontakte/videoplayer-shared/es2018";var p2=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 Mf(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:"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 f2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Lf(t,e){z(t,f2);let i=m(e,"isFullscreen",8,!1),o=kr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Mf(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function gd(t,e){H(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,m2),n=Ee(),r=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Rt(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:p=>{let f=Ns(p);r.set(f),o()()},get ariaKeyShortCut(){return ts.KeyF},role:"button",children:(p,f)=>{Lf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var v2=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 Vf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=v2();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 g2=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 Rf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=g2();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 h2={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 _a(t,e){D(e,!0),z(t,d2);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,Nn),S=m(e,"onHandleMove",3,Nn),T=m(e,"onPointerUp",3,Nn),I=m(e,"onPointerEnter",3,Nn),A=m(e,"onPointerMove",3,Nn),k=m(e,"onPointerLeave",3,Nn),E=m(e,"onMouseEnter",3,Nn),R=m(e,"onMouseLeave",3,Nn),Q=m(e,"onWheelUp",3,Nn),q=m(e,"onWheelDown",3,Nn),W=m(e,"onWheelLeft",3,Nn),G=m(e,"onWheelRight",3,Nn),X=m(e,"onDisabledClick",3,Nn),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,Nn),N=It(),He=j(void 0),_e=j(!1),ge=g(()=>{var ie;return(ie=ve())!=null?ie:0}),de=g(()=>{var ie;return a1(f())&&((ie=f()[f().length-1])==null?void 0:ie.time)<s(ge)}),ue=g(()=>a1(f())&&f().length&&s(de)&&s(ge)?je(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 Ze(){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 je(ie,Be){let ze=N.features.episodesClustering&&!u()?N.episodeMinWidthPc:0,Me=[],We=f()[0].time/s(ge)*100,Re=0,Je=0;for(let Xe=1;Xe<f().length;Xe++)Re=f()[Xe].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()[Xe-1].interactive,completed:f()[Xe-1].completed}),We=f()[Xe].time/s(ge)*100,Je++);let At={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()[Je].interactive,completed:f()[Je].completed};100-We<ze?(Je-=1,Me[Je].width+=100-We,Me[Je].loadedWidth+=Math.max(0,Math.min(ie,100)-We),Me[Je].filledWidth+=Math.max(0,Math.min(Be,100)-We)):Me[Je]=At;let Wt=f()[0].time;if(Wt!==0){let Xe=Wt/s(ge)*100;Me.unshift({from:0,width:Xe,loadedWidth:Math.min(Xe,ie),filledWidth:Math.min(Xe,Be)})}return Me}function tt(ie){return Math.max(0,Math.min(100,ie*100))}var ht=l2(),mt=fe(ht);{var wt=ie=>{var Be=s2();let ze;xi(Be,21,()=>s(ue),Me=>Me.from,(Me,We)=>{var Re=Fe(),Je=fe(Re);{var At=Wt=>{kf(Wt,{get videoEpisode(){return s(We)},get disabled(){return $()}})};V(Je,Wt=>{s(We).interactive&&Wt(At)})}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(mt,ie=>{u()&&ie(wt)})}var Qe=P(mt,2);let Ft;Qe.__pointerdown=[t2,i,He,$,_e,Ae,y],Qe.__pointermove=[i2,$,Ae,Te,A,He,_e,S],Qe.__pointerup=[o2,$,_e,Ae,T],Qe.__click=[n2,$,X,Ae],Qe.__contextmenu=[r2,Ae,$,X,_e,ne];var Xt=_(Qe);{var Gt=ie=>{Pf(ie,{get videoEpisodes(){return s(ue)},get disabled(){return $()},get isMobile(){return a()}})},Ut=ie=>{var Be=a2(),ze=_(Be),Me=P(ze,2);let We;h(Be),O((Re,Je,At)=>{lt(ze,Re),We=oe(Me,1,"filled svelte-1tpemng",null,We,Je),lt(Me,At)},[()=>`transform: translateX(${tt(Y())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${tt(ce())}%);`]),b(ie,Be)};V(Xt,ie=>{s(ue).length?ie(Gt):ie(Ut,!1)})}var ee=P(Xt,2);let Rt;var xe=_(ee);let he;h(ee),h(Qe),nt(Qe,ie=>i(ie),()=>i()),O((ie,Be,ze,Me)=>{var We,Re;Ft=oe(Qe,1,`slider ${(We=o())!=null?We:""}`,"svelte-1tpemng",Ft,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),Rt=oe(ee,1,"handleWrap svelte-1tpemng",null,Rt,Be),lt(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(${tt(le())}%);`,()=>({"active-live":d()})]),Ct("pointerenter",Qe,pe),Ct("pointerleave",Qe,te),Ct("mouseenter",Qe,qe),Ct("mouseleave",Qe,Ze),Ct("wheel",Qe,Z),b(t,ht),H()}ct(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Di=(t,e)=>aa[t]>=aa[e],l1=(t,e)=>aa[t]<aa[e],Ds=(t,e)=>aa[t]<=aa[e],d1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var c2=M("<div><!></div>"),u2=M("<div><!> <!></div>"),p2={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;margin:0 8px;position:relative;width:70px;--slider-height: var(--slider-volume-height);--slider-radius: var(--slider-volume-radius);--slider-handle-size: var(--slider-volume-handle-size);--slider-bg: var(--volume-slider-bg);--slider-filled-bg: var(--volume-slider-filled-bg);--slider-handle-bg: var(--volume-slider-handle-bg);}.volumeBar-slider-vertical {width:50px !important;}.volumeBar-vertical.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function Af(t,e){var Z,Ae;D(e,!0),z(t,p2);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=It(),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(()=>Ds(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(){iu(a,l(),p.controls.volumeStepWheel)}function ve(){ou(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=u2();let pe;var te=_(ue);ha(te,{get content(){return s(G)},translateY:-18,children:(Te,je)=>{let tt=g(()=>s(W)?"btn-volume-vertical":"btn-volume-horizontal");Vt(Te,{className:"btn-full-opacity",get disabled(){return s(le)},get testId(){return s(tt)},get ariaLabel(){return s(X)},get click(){return e.click},get ariaKeyShortCut(){return ts.KeyM},role:"button",children:(ht,mt)=>{Os(ht,{get volume(){return l()},get muted(){return s(q)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var qe=P(te,2);{var Ze=Te=>{var je=c2();let tt;var ht=_(je);let mt=g(()=>s(W)?"volumeBar-slider-vertical":""),wt=g(()=>s(W)&&!s(E)),Qe=g(()=>s(W)?ne:ru),Ft=g(()=>s(W)?N:ru),Xt=g(()=>Math.round(s(Y)*100)),Gt=g(()=>`${Math.round(s(Y)*100)}%`),Ut=g(()=>s(W)?"volume-slider-vertical":"volume-slider");_a(ht,{get className(){return s(mt)},get isHidden(){return s(wt)},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(Ft)},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(Gt)},get filledProgress(){return s(Y)},get handleProgress(){return s(Y)},get testId(){return s(Ut)}}),h(je),O(ee=>tt=oe(je,1,"volumeBar svelte-1auih1j",null,tt,ee),[()=>({"volumeBar-vertical":s(W)})]),b(Te,je)};V(qe,Te=>{s(Q)&&Te(Ze)})}h(ue),O(Te=>pe=oe(ue,1,"volumeBar-container svelte-1auih1j",null,pe,Te),[()=>({vertical:s(W)})]),Ct("mouseenter",ue,function(...Te){var je;(je=s(W)?He:ru)==null||je.apply(this,Te)}),Ct("mouseleave",ue,function(...Te){var je;(je=s(W)?_e:ru)==null||je.apply(this,Te)}),Ct("wheel",ue,de),b(t,ue),H(),o()}import{noop as v2}from"@vkontakte/videoplayer-shared/es2018";var f2=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 Mf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=f2();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 m2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Lf(t,e){z(t,m2);let i=m(e,"isFullscreen",8,!1),o=kr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Mf(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function gd(t,e){D(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,v2),n=Ee(),r=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Vt(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:p=>{let f=Ns(p);r.set(f),o()()},get ariaKeyShortCut(){return ts.KeyF},role:"button",children:(p,f)=>{Lf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var g2=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 Vf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=g2();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 h2=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 Rf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=h2();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 _2={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 Nf(t,e){z(t,h2);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`);Rf(t,{get width(){return s(l)},height:"24",get viewBox(){return s(a)},get"data-testid"(){return s(d)}})}function hd(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=St(),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()||Ds(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");Rt(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=>{Nf(Y,{get short(){return s(I)},get isCyrillic(){return l()}})},X=Y=>{Vf(Y,{})};V(W,Y=>{s(T)?Y(Q):Y(X,!1)})}b(R,q)},$$slots:{default:!0}}),F(),o()}import{ChromecastState as x2}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as d1}from"@vkontakte/videoplayer-core/es2018";var b2=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>'),$2=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>'),y2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
176
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Nf(t,e){z(t,_2);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`);Rf(t,{get width(){return s(l)},height:"24",get viewBox(){return s(a)},get"data-testid"(){return s(d)}})}function hd(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=It(),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()||Ds(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");Vt(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=>{Nf(Y,{get short(){return s(I)},get isCyrillic(){return l()}})},X=Y=>{Vf(Y,{})};V(W,Y=>{s(T)?Y(G):Y(X,!1)})}b(R,q)},$$slots:{default:!0}}),H(),o()}import{ChromecastState as w2}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as c1}from"@vkontakte/videoplayer-core/es2018";var $2=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>'),y2=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>'),x2={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.`},Vh=V_;var vs=new Map;vs.set(Nh.EN,Vh)
221
221
  100% {
222
222
  opacity: 1;
223
223
  }
224
- }`};function Bf(t,e){H(e,!0),z(t,y2);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===d1.CONNECTED),n=g(()=>e.iconState===d1.CONNECTING);var r=Ue(),l=fe(r);{var d=p=>{var f=b2(),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=$2();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()}import{noop as w2}from"@vkontakte/videoplayer-shared/es2018";function _d(t,e){H(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,w2),l=Ee().ui.t,d=g(()=>e.state===x2.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Rt(t,{get ariaLabel(){return s(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,p)=>{Bf(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),F()}var C2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),S2={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function Of(t,e){z(t,S2);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=C2(),$=_(u);let w;var y=_($);be(y,()=>{var S;return(S=e.children)!=null?S:re}),h($),rt($,S=>B(p,S),()=>s(p)),h(u),rt(u,S=>B(a,S),()=>s(a)),O(S=>{lt(u,`transform: translate(${s(v)}px, ${r()}px);`),w=ie($,1,"tooltip svelte-5ygsa2",null,w,S),lt($,`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 c1=t=>!!(Math.round(Math.abs(t)/90)%2),u1=t=>Math.abs(t)/90%4===1;var T2=M('<div class="preview svelte-1wqg760"></div>'),E2=M('<div class="time svelte-1wqg760"> </div>'),I2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),k2={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function Df(t,e){H(e,!0),z(t,k2);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(()=>c1(n())),W=g(()=>u1(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),Ze=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,je=s(T)*Z,tt=-Ze*s(S),vt=-Qe*s(T);return{imgSrc:e.previewThumbsData.links[ee],imgWidth:Te,imgHeight:je,imgOffsetX:tt,imgOffsetY:vt}}var me=I2();let se;var Le=_(me);{var oe=ue=>{var pe=T2();O(()=>lt(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 Bf(t,e){D(e,!0),z(t,x2);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===c1.CONNECTED),n=g(()=>e.iconState===c1.CONNECTING);var r=Fe(),l=fe(r);{var d=p=>{var f=$2(),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=y2();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()}import{noop as C2}from"@vkontakte/videoplayer-shared/es2018";function _d(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,C2),l=Ee().ui.t,d=g(()=>e.state===w2.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Vt(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)=>{Bf(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var S2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),T2={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function Of(t,e){z(t,T2);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=S2(),$=_(u);let w;var y=_($);be(y,()=>{var S;return(S=e.children)!=null?S:se}),h($),nt($,S=>B(p,S),()=>s(p)),h(u),nt(u,S=>B(a,S),()=>s(a)),O(S=>{lt(u,`transform: translate(${s(v)}px, ${r()}px);`),w=oe($,1,"tooltip svelte-5ygsa2",null,w,S),lt($,`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 u1=t=>!!(Math.round(Math.abs(t)/90)%2),p1=t=>Math.abs(t)/90%4===1;var E2=M('<div class="preview svelte-1wqg760"></div>'),I2=M('<div class="time svelte-1wqg760"> </div>'),k2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),P2={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function Df(t,e){D(e,!0),z(t,P2);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(()=>u1(n())),W=g(()=>p1(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),Ze=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,je=s(T)*Z,tt=-Ze*s(S),ht=-qe*s(T);return{imgSrc:e.previewThumbsData.links[te],imgWidth:Te,imgHeight:je,imgOffsetX:tt,imgOffsetY:ht}}var ve=k2();let ae;var Ve=_(ve);{var ne=ue=>{var pe=E2();O(()=>lt(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=Xr();O(Te=>$e(Ae,Te),[()=>U("tooltip_episode_unfinished")]),b(Z,Ae)},Ze=Z=>{var Ae=Xr();O(()=>$e(Ae,s(G).text||"")),b(Z,Ae)};V(ee,Z=>{u()&&s(G).completed===!1?Z(Qe):Z(Ze,!1)})}b(ue,pe)};V(He,ue=>{s(G)&&ue(_e)})}h(N);var ge=P(N,2);{var ce=ue=>{var pe=E2(),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),lt(me,`width: ${s(q)?s(T):s(S)}px;`)},[()=>({mobile:a()})]),b(t,me),F(),o()}var P2=M('<span class="time svelte-1jr6obn"> </span>'),A2=M("<!> <!>",1),M2={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function Hf(t,e){var te,Ne,ze,Ve,Fe;H(e,!0),z(t,M2);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=St(),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(()=>_n(r())),ge=g(()=>_n(l())),ce=g(()=>l()/r()),ue=g(()=>d()||a()),pe=j(!1),ee=j(""),Qe=j(0),Ze=j(0),Z=j(0),Ae=g(()=>({containerWidth:s(Ze),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"),je=g(()=>oe("aria_timeline_value",{position:s(ge),duration:s(_e)}));function tt(Re){return!ve||!Y?Re:ve(Re*r())/r()}function vt(Re){T.actions.internal.startScrubbing(tt(Re))}function It(Re){a()||T.actions.internal.progressScrubbing(tt(Re))}function dt(Re){T.actions.internal.completeScrubbing(tt(Re)),B(pe,!1)}function qe(Re,Je,Et){qt(Re,Je,Et),B(pe,!0)}function zt(Re,Je,Et){qt(Re,Je,Et),B(pe,!0)}function Yt(){B(pe,!1)}function qt(Re,Je,Et){B(Z,tt(Re),!0),B(Qe,Je,!0),Et&&B(Ze,Et,!0),B(ee,Wt(Re),!0)}function Wt(Re){let Je=_n((p()?1-Re:Re)*r());return p()?`-${Je}`:Je}var ae=A2(),Tt=fe(ae);Of(Tt,ms(()=>s(Ae),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Re,Je)=>{var Et=Ue(),Kt=fe(Et);{var it=ei=>{Df(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}})},di=ei=>{var st=P2(),Qt=_(st,!0);h(st),O(()=>$e(Qt,s(ee))),b(ei,st)};V(Kt,ei=>{I.features.timelinePreview&&Q&&!p()?ei(it):ei(di,!1)})}b(Re,Et)},$$slots:{default:!0}}));var xe=P(Tt,2);let he=g(()=>$().has("TIMELINE"));_a(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(je)},get loadedProgress(){return u()},get filledProgress(){return s(ce)},get handleProgress(){return s(ce)},get videoEpisodes(){return s(He)},onPointerDown:vt,onHandleMove:It,onPointerMove:zt,onPointerUp:dt,onPointerEnter:qe,onPointerLeave:Yt,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:dt,get ref(){return S()},set ref(Re){S(Re)}}),b(t,ae),F(),o()}var L2={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 bd(t,e){H(e,!0),z(t,L2);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(()=>_n(l())),v=g(()=>_n(r())),u=g(()=>r()/l()),$=g(()=>p("aria_timeline_value",{position:s(v),duration:s(f)})),w=g(()=>Math.round(s(u)*100));_a(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 V2=M("<div><!></div>"),R2=M("<div></div>"),N2={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 ba(t,e){H(e,!0),z(t,N2);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=St(),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=V2();let Y;var de=_(X);{var le=Ie=>{bd(Ie,{get position(){return d()},get duration(){return a()}})},ve=Ie=>{Hf(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),fs(X,()=>nl(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=R2();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()}import{noop as D2}from"@vkontakte/videoplayer-shared/es2018";var B2=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 Ff(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=B2();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 O2=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 Uf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=O2();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 H2=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),F2=M('<span class="text svelte-1yhs2ga"> </span>'),U2=M('<span class="text count svelte-1yhs2ga"> </span>'),z2=M("<!> <!>",1),W2={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 $d(t,e){var le,ve,Ie;H(e,!0),z(t,W2);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:D2,$=!!((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=Ns(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(()=>Di(n(),"xl")?"FULL":Di(n(),"m")&&a1(n(),"xl")?"COUNT":"SHORT"),W=g(()=>`${I("tooltip_episodes")}: ${s(G)}`),Q=async(me,se,Le)=>{await xo(),(me==null?void 0:me.getAttribute("aria-expanded"))==="false"&&se&&!Le&&$t(()=>{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(()=>!$);Rt(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=H2(),ee=fe(pe),Qe=_(ee,!0);h(ee);var Ze=P(ee,2),Z=_(Ze);Uf(Z,{}),h(Ze),O(()=>$e(Qe,s(G))),b(ue,pe)},ce=ue=>{var pe=z2(),ee=fe(pe);Ff(ee,{});var Qe=P(ee,2);{var Ze=Ae=>{var Te=F2(),je=_(Te,!0);h(Te),O(()=>$e(je,s(G))),b(Ae,Te)},Z=(Ae,Te)=>{{var je=tt=>{var vt=U2(),It=_(vt,!0);h(vt),O(()=>$e(It,f().length)),b(tt,vt)};V(Ae,tt=>{s(q)==="COUNT"&&tt(je)},Te)}};V(Qe,Ae=>{s(q)==="FULL"?Ae(Ze):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()}import{debounceFn as S1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as X2,PlaybackState as yd,Player as J2,PredefinedQualityLimits as ns,VideoFormat as xd,clientChecker as ey}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Jn,getHighestQuality as ty,InterfaceLanguage as iy,isInvariantQuality as oy,isNonNullable as ny,loadVKLangPack as ry,Logger as sy,map as _1,merge as ay,Observable as b1,Subject as vu,Subscription as Gf,TracerFactory as ly,ValueSubject as dy,VideoQuality as cy,devNull as uy,now as py,filter as fy,once as my}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as _s}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as q2,devNull as Xt,now as Jt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as K2,Subject as on,clearVideoElement as Q2}from"@vkontakte/videoplayer-shared/es2018";var p1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var G2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",au=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 on,loadStarted$:new on,loadEnded$:new on,loadError$:new on,ready$:new on,slotRequested$:new on,started$:new on,timeRemained$:new on,paused$:new on,resumed$:new on,ended$:new on,empty$:new on,skipped$:new on,clicked$:new on,closed$:new on,error$:new on};this.loadAdman=e=>(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Jt()]}),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?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Jt()]}),o())};K2(G2,e,this.loadTimeout).then(()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Jt()]}),window.AdmanHTML?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Jt()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout))}).catch(l=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[Jt()]}),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?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Jt()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Jt()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Jt()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Jt()]}),!d&&(window.AdmanHTML?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Jt()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Jt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Jt(),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;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Jt()]}),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;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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")=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Jt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Jt(),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}=q2(),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:p1(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){Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[Jt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,r;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Jt()]}),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&&Q2(this.videoElement),this.isDestroyed=!0}};var f1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var zf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let r of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=r.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let p=new lu,{startTime:f,endTime:v}=p.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let p=new Wf,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},lu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let r=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return r+l+d+a}},Wf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let 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 lu;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}},m1=zf;import{isNonNullable as qf}from"@vkontakte/videoplayer-shared/es2018";var $a,wi,Kf=0,Qf=!1,v1="",g1=(t,e=0,i=0)=>t<e&&t<i,du=(t,e=0,i=0)=>t>=e&&t<=i,j2=(t,e=0,i=0)=>t>e&&t>i,h1=(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})=>du(t,p,f));let r=t>=Kf,l=t<Kf;if(Kf=t,l&&(Qf=!1),qf($a)&&du(t,$a.startTime,$a.endTime)&&v1===e.value)return $a;if(!qf(wi)&&(n!=null&&n.length)&&!Qf){wi=n.find(({startTime:p,endTime:f})=>du(t,p,f)||r&&g1(t,p,f)),$a=void 0,!qf(wi)&&n[n.length-1].endTime<t&&(Qf=!0);return}else{if(du(t,wi==null?void 0:wi.startTime,wi==null?void 0:wi.endTime))return $a=wi,wi=void 0,v1=e.value,$a;(r&&j2(t,wi==null?void 0:wi.startTime,wi==null?void 0:wi.endTime)||l&&g1(t,wi==null?void 0:wi.startTime,wi==null?void 0:wi.endTime))&&(wi=void 0)}};var cu={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"},Y2={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"},uu=t=>{var e,i;return(i=(e=cu[t])!=null?e:cu[Y2[t]])!=null?i:void 0};import{Subscription as Z2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var pu=class{constructor(e,i,o,n=new Z2){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 fu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(fu||{});var os=t=>t!=null?t:0,hs=(t,e)=>{var n,r;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(os(i==null?void 0:i.top)-os(o==null?void 0:o.top)),left:Math.round(os(i==null?void 0:i.left)-os(o==null?void 0:o.left)),bottom:Math.round(os(i==null?void 0:i.bottom)-os(o==null?void 0:o.top)),right:Math.round(os(i==null?void 0:i.right)-os(o==null?void 0:o.left))}},ul=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:os(e==null?void 0:e.width),height:os(e==null?void 0:e.height)}};var mu="off";var $1=({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 pv,fv,mv;let me={...$,configName:[...(pv=$.configName)!=null?pv:[],"ui"],isAudioDisabled:l,live:{...(fv=$.live)!=null?fv:{},isLiveCatchUpMode:!!n}},se=u,Le=ly.createRootTracer(se.features.tracer),oe=Le.createComponentTracer("Store"),N=w||new J2(me,Le);ve==null||ve.expose({corePlayer:N});let He=new sy,_e=new au(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=da.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,Ze,Z={},Ae=new Bc,Te=new Gf,je=de&&de.oneStat?ii(de.oneStat.vsid$):fr(void 0),tt=ne(Ls()),vt=ne(!1),It=(mv=ce==null?void 0:ce.info.isActive$)!=null?mv:new dy(!1),dt=ne(0),qe=ne(!1),zt=ne(!1),Yt=ne([]),qt=ay(N.events.fatalError$,N.events.managedError$).subscribe(c=>Yt.update(x=>[...x,c])),Wt=fr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ae=async c=>{var J;let x=Object.values(iy).includes(c);if(se.downloadVKLanguages&&(x&&se.updateBuiltinLanguages||!Zp(c))){let Be;try{Be=await ry(c,eh,th)}catch(pt){(J=de==null?void 0:de.oneStat)==null||J.logError({errorType:"VKLangPack",fatal:!1}),ge==null||ge.report(pt,{errorType:"VKLangPack",fatal:!1})}Be&&(Yp({language:c,pack:Be,fallback:se.defaultLanguage}),Tt.set(c))}Zp(c)&&Tt.set(c)},Tt=ne(t),xe=ne(e);ae(t);let he=(c,x)=>{let L=ye(Tt);return Xp(L,c,x,se.defaultLanguage)},te=ne("thumb");te.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&Ve()});let Ne=(()=>{let c=hi([Wt,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 Je=c=>{let x=c.container,L=()=>{Qt=new MutationObserver(Be=>{let{removedNodes:pt}=Be[0];pt.length&&x.append(N.experimental.element$.getValue())}),Qt.observe(x,{childList:!0})},J=N.experimental.element$.getValue();if(J)x.append(J),L();else{let Be=N.experimental.element$.pipe(fy(pt=>!!pt),my()).subscribe(pt=>{x.append(pt),L()});Te.add(Be)}},Et=c=>{ee({message:`init video, config: ${JSON.stringify(c)}`}),S?Je(c):(uy.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[py()]}),N.initVideo(c)),oe.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),Qe=c},Kt=new vu,it=c=>Kt.next(c),di=new vu,ei=new vu,st=new vu,Qt=null,qi={actionRewind$:di,actionSeek$:ei,inPiP$:It,inFullscreen$:new b1(c=>tt.subscribe(x=>c.next(x))),actionSetSubtitle$:st,nextMovie$:Kt},ri={actionSeek$:ei,playerSize$:new b1(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(qi)),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 Gf,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 bi=()=>{ey.device.isIOS&&Ze&&Hh(Ze).catch(c=>{ee({message:`exitIosSafariFullscreen failed: ${c}`})})};Te.add(N.experimental.element$.subscribe(c=>{c&&(Ze=c,c.classList.add("player-media"),ua(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;bi(),(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;ua(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=>{zt.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(I!=null&&I.getValue()&&Fe.add(Gl),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 eo=new Gf,Ft=()=>{var pt,Ot,Ut;let{debugLog:c}=se,x,L="#9df7b7",J="#efd169";if(c&&c!==!0){let{colors:Dt}=c;x=c.tag,L=(pt=Dt==null?void 0:Dt[0])!=null?pt:L,J=(Ut=(Ot=Dt==null?void 0:Dt[1])!=null?Ot:Dt==null?void 0:Dt[0])!=null?Ut:J}let Be=x?`: ${x}`:"";eo.add(N.events.log$.subscribe(Dt=>{console.debug(`%c sdk${Be} `,`background:${L};`,`sdk component: ${Dt.component}`,Dt.message)})).add(He.log$.subscribe(Dt=>{console.debug(`%c ui${Be} `,`background:${J};`,`ui component: ${Dt.component}.`,Dt.message)}))},ci=()=>{eo.unsubscribe()},Ki=(c,x)=>{oe.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Do=(c=!1)=>{oe.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},kt=(c,x,L)=>{oe.log("move camera focus px",{xpx:c,ypx:x,dt:L}),N.moveCameraFocusPX(c,x,L)},yt=()=>{N.holdCamera()},Ai=()=>{N.releaseCamera()},Ci=fr(N.info.position$.getValue(),c=>{let x,L,J=()=>{let Be=N.info.playbackState$.getValue(),pt=N.info.isLive$.getValue(),Ot=N.info.duration$.getValue(),Ut=N.info.position$.getValue();if(Be&&[yd.PLAYING,yd.PAUSED].includes(Be)){let Dt=pt?Ut-Ot:N.getExactTime();Dt!==L&&c(Dt),L=Dt}x=requestAnimationFrame(J)};return J(),()=>cancelAnimationFrame(x)}),D=ii(N.info.playbackState$),Bt=ii(N.info.currentBuffer$),li=ii(N.info.isEnded$),gt=ii(N.info.isLive$),Xe=se.features.playbackRate?ii(N.info.canChangePlaybackSpeed$):fr(!1),at=ii(N.info.liveBufferTime$),Gt=ii(N.info.volume$),Mt=ii(N.info.muted$),Hi=Oc(N.info.predefinedQualityLimitType$.pipe(_1(c=>c===ns.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ns.TRAFFIC_SAVING),Ho=Oc(N.info.predefinedQualityLimitType$.pipe(_1(c=>c===ns.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ns.HIGH_QUALITY),rn=ii(N.info.autoQualityLimitingAvailable$),Si=ii(N.info.availableQualities$),_t=ii(N.info.availableQualitiesFps$),Ti=ii(N.info.chromecastState$),Fo=ii(N.info.chromecastDeviceName$),bn=ii(N.info.currentFormat$),Fi=ii(N.info.throughputEstimation$),Qi=ii(N.info.videoBitrate$),So=ii(N.info.intrinsicVideoSize$),sn=ii(N.info.duration$),On=ii(N.info.isAudioAvailable$),ui=null,Uo=N.info.isBuffering$,$n=fr(Uo.getValue(),c=>{let x=Uo.subscribe(L=>{L&&ui===null?ui=window.setTimeout(()=>{c(Uo.getValue()),ui=null},se.loaderDelay):c(L)});return()=>{x.unsubscribe(),ui&&clearTimeout(ui)}}),zo=()=>{ui&&clearTimeout(ui),ui=null},to=hi([sn,gt],([c,x])=>x?-c:c),er=hi([D],([c])=>c===yd.PLAYING),Or=ii(N.info.atLiveEdge$),Dn=ii(N.info.atLiveDurationEdge$),tr=ii(N.info.position$),Dr=hi([tr,sn],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),vr=hi([Ti],([c])=>c===X2.CONNECTED),an=ii(N.info.availableVideoStreams$),ir=se.features.audioLanguages?ii(N.info.availableAudioStreams$):fr([]),io=ii(N.info.currentVideoStream$),Wo=ii(N.info.currentAudioStream$),or=c=>{c.language&&Kp(c.language),N.setVideoStream(c)},yn=c=>{c.language&&Kp(c.language),N.setAudioStream(c),se.features.userVideoPrefs&&i&&jp(se.userSalt,String(i),{audioTrackId:c.id})},nr=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=Uc(se.userSalt,String(i));if(J!=null&&J.audioTrackId){let Be=c.find(pt=>pt.id===J.audioTrackId);x=Be!=null?Be:x}}let L=Sh();return L&&(x!=null||(x=c.find(({language:J})=>L===J))),x!=null||(x=c.at(0)),x},Hn=!1;Te.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Hn&&c.length){let x=nr(c);x&&(N.setAudioStream(x),Hn=!0)}}));let rr=!1;Te.add(N.info.availableVideoStreams$.subscribe(c=>{if(!rr&&c.length){let x=nr(c);x&&(N.setVideoStream(x),rr=!0)}}));let Fn=ne(void 0),xn=ii(N.info.isAutoQualityEnabled$,c=>c&&Fn.set(void 0)),gr=ii(N.info.currentQuality$,()=>Fn.set(void 0)),hr=hi([Fn,gr],([c,x])=>c!=null?c:x),_r=hi(bn,c=>c!==xd.MPEG),ot=hi([Si,_t,xn,hr,_r],([c,x,L,J,Be])=>{let pt=[];Be&&pt.push({value:"auto",displayValue:he("auto_quality_option"),selected:L});let Ot=c.filter(Ut=>!oy(Ut));for(let Ut of Ot){let Dt=x[Ut];pt.push({value:Ut,displayValue:`${Ut}${Dt?f1(Dt):""}`,selected:L?!1:Ut===J})}return pt}),oi=ii(N.info.currentPlaybackRate$),wn=hi([oi,Or,Dn],([c,x,L])=>{let J=L||S?1:se.controls.playbackRateMin,Be=x?1:se.controls.playbackRateMax,pt=se.controls.playbackRateStep,Ot=[];for(let Ut=J;Ut<=Be;Ut+=pt)Ot.push({value:Ut,displayValue:Ut===1?he("playback_rate_1"):he("playback_rate",{multiplier:Ut.toString(10)}),selected:c===Ut});return Ot}),$i={displayValue:he("subtitles_off"),value:mu,language:""},Mi=ne({...$i}),ln=se.features.subtitles?ii(N.info.availableTextTracks$):fr([]),dn=vh(),fo=hi([ln,Mi],([c,x],L)=>{var pt;let J=[],Be=c.find(({id:Ot})=>Ot===x.value);if(Be!=null&&Be.url){let[,Ot]=(pt=dn.find(Be.url))!=null?pt:[];if(Ot){L(Ot);return}Ae.download(Be.url).then(Ut=>{if(!Ut||Ae.isDestroyed())return;let Dt=new m1,ws=Be.language;if(ws){let u0=!!Be.isAuto,p0=Dt.parse(Ut,ws);J.push({lang:ws,subtitles:p0,isAuto:u0,id:Be.id})}dn.add(Be.url,J),ye(Mi).value===x.value&&L(J)}).catch(Ut=>{var Dt;(Dt=de==null?void 0:de.oneStat)==null||Dt.logError({errorType:"Subtitles download",fatal:!1}),ge==null||ge.report(Ut,{errorType:"Subtitles download",fatal:!1})})}L(J)}),Un=hi([oi,er,Mi],([c,x,L],J)=>{let Ot;if(N.info.isLive$.getValue()&&x&&L.value!==$i.value){let Dt=()=>{let ws=1e3/(3*c);Ot=setTimeout(Dt,ws),J(Date.now())};return Dt(),()=>clearTimeout(Ot)}}),mo=hi([ln,Mi],([c,x])=>{if(!c.length)return[];let L=[];for(let{language:J,isAuto:Be,id:pt}of c){let Ot=J&&uu(J);J&&Ot&&L.push({displayValue:Be?he("subtitles_auto",{language:Ot}):Ot,value:pt,selected:(x==null?void 0:x.value)===pt,isAuto:Be,language:J})}return L.length?(L.unshift({...$i,selected:(x==null?void 0:x.value)===$i.value}),L):[]}),To={available:[],prev:[]},br=()=>{var x,L;let c=N.experimental.getCurrentTime$.getValue();return(L=(x=c==null?void 0:c())!=null?x:Ze==null?void 0:Ze.currentTime)!=null?L:0},rs=hi([Ci,Mi,fo,Un],([c,x,L,J])=>{var pt;let Be=N.info.isLive$.getValue();if(Be&&To.prev!==L){let Ot=L.find(({id:Dt})=>Dt===x.value),Ut=To.prev.find(({id:Dt})=>Dt===x.value);if(Ot){let Dt={...Ot,subtitles:[...(pt=Ut==null?void 0:Ut.subtitles)!=null?pt:[],...Ot.subtitles]};To.available=[Dt],To.prev=L}}if(x&&x.value!==$i.value){let Ot=Be?br():c,Ut=Be?To.available:L;return h1(Ot,x,Ut,Be)}}),$r=hi([rs],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(Mi.subscribe(c=>{var x,L;if(c.value===$i.value)(x=a==null?void 0:a.onSubtitleOff)==null||x.call(a);else{let J=Object.entries(cu).find(([Be,pt])=>pt===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,J?J[0]:"")}}));let Hr=ne(!0),Cn=hi([Bt,to,tr,at],([c,x,L,J])=>{var Ut;let Be=(Ut=c==null?void 0:c.end)!=null?Ut:0;if(!J)return Be/x;let Ot=-L+J-x;return(Be-Ot)/x}),yr=ii(N.info.availableSources$),vo=hi([yr],([c])=>Object.keys((c==null?void 0:c[xd.MPEG])||{}).length>0),sr=()=>{var L,J,Be;let c=Object.keys(((J=(L=N.info.availableSources$)==null?void 0:L.getValue())==null?void 0:J[xd.MPEG])||{}),x=ty(c)||cy.Q_144P;return(Be=Qe.sources[xd.MPEG])==null?void 0:Be[x]},qo=()=>{var x;let c=sr();if(c)oe.log("download video",{url:c}),ph(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?cn(Lt()):Eo(!c)},Ko=()=>{var c;if(At.ui.settingsMenu.visible$.set(!1),!ye(At.ui.settingsSubMenu.visible$)){let x=ye(At.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&x){let J=ul(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")},Fr=async(c,x=()=>Promise.resolve())=>{var Be;At.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),At.ui.settingsMenu.visible$.set(!0),await x();let L=ye(At.ui.settingsMenu.ref$),J=zs();if((Be=a==null?void 0:a.uiInfo)!=null&&Be.onSettingsMenu&&L&&J){let Ot=ul(L),Ut=hs(L,J);a.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:Ut,name:"settings"})}oe.log("open settings menu",{wasOpenedByKeyboard:c})},xr=(c,x=!1)=>{var pt;At.ui.settingsSubMenu.visible$.set(!1);let L=ye(At.ui.settingsMenu.ref$),J=zs(),Be=ye(At.ui.settingsMenu.visible$);if((pt=a==null?void 0:a.uiInfo)!=null&&pt.onSettingsMenu&&L&&J)if(Be&&!x){let Ut=ul(L),Dt=hs(L,J);a.uiInfo.onSettingsMenu({visible:!0,size:Ut,position:Dt,name:"settings"})}else{let Ut=ul(c),Dt={top:0,left:0,bottom:0,right:0},ws=ye(At.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Ut,position:Dt,name:ws})}oe.log("close settings sub menu")},wt=(c,x)=>{var J;At.ui.settingsSubMenu.visible$.set(!0),At.ui.settingsSubMenu.ref$.set(x),At.ui.settingsSubMenu.name$.set(c);let L=zs();if((J=a==null?void 0:a.uiInfo)!=null&&J.onSettingsMenu&&x&&L){let pt=ul(x),Ot=hs(x,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:pt,position:Ot})}oe.log("open settings sub menu",{name:c})},Lt=()=>{var x;let c=Math.max(se.volumeMinRestore,(x=Dc())!=null?x:0);return c===0?se.volumeDefault:c},cn=c=>{let x=c===0?Lt():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,Wp(!1)),N.setVolume(c,L),_e.setVolume(c),Dp(x)},Eo=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)&&Wp(c),!c&&x===0){let J=Lt();N.setVolume(J),Dp(J),_e.setVolume(J)}},un=ne(!1),Io=c=>{var x,L;oe.log("set looped",{isLooped:c}),un.set(c),N.setLooped(c),(L=(x=a==null?void 0:a.uiInfo)==null?void 0:x.onLoopedChanged)==null||L.call(x,c)};Io(Y);let Sn=()=>{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;ee({message:`set autoplayNextEnabled, value: ${c}`}),oe.log("set autoplay next enabled",{autoplayNextEnabled:c}),At.ui.autoplayNextEnabled$.set(c),Ih(c),x&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},Tn=c=>{ee({message:`set timerNextVideoRunning, value: ${c}`}),oe.log("set timer next video running",{timerNextVideoRunning:c}),At.ui.timerNextVideoRunning$.set(c)},ko=(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&&wr("prev")||Q()},ar=(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&&wr("next")||X()},wr=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:L,playbackStatusShow:J}}=se;return L&&J&&!x?(At.ui.aboutToGoNextVideo.set(c),At.ui.userActionsDisabled.set(!0),!0):!1},Ur=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},ss=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},zr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},no=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},pn=()=>{N.prepare()},Cr=()=>{Jn(At);let c=ye(At.ui.controls.disabledControls$),x=ye(At.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 pt;ee({message:"toggle play, call player.play"}),L.action="play",N.play(),(pt=a==null?void 0:a.onPlay)==null||pt.call(a)},Be=()=>{var pt;ee({message:"toggle play, call player.pause"}),L.action="pause",N.pause(),(pt=a==null?void 0:a.onPause)==null||pt.call(a)};if(N.info.isEnded$.getValue()){if(ee({message:"toggle play, video ended, seek to 0"}),di.next(),ei.next(_s.REWIND),S){A==null||A();return}N.seekTime(0),J()}else N.info.playbackState$.getValue()!==yd.PLAYING?J():Be();oe.log("toggle play",L)},nt=(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?(Hc({type:"exact_quality",quality:c,videoId:i},L),Yl(),N.setPredefinedQualityLimits(ns.UNKNOWN)):Hp(i,c),Fn.set(c),N.setQuality(c)):se.features.qualityDetailsSubMenuEnabled?x==="default"&&(Gi("auto_quality",L),ye(Hi)&&Pt(!1),ye(Ho)&&pi(!1)):Yl()},Pt=(c,x="as-default")=>{ee({message:`set trafficSavingEnabled, value: ${c}`}),oe.log("set traffic saving enabled",{trafficSavingEnabled:c});let L=c?ns.TRAFFIC_SAVING:ns.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(ro(L,x),jl(!1)):(N.setPredefinedQualityLimits(L),jl(c))},pi=(c,x="as-default")=>{ee({message:`set highQualityEnabled, value: ${c}`}),oe.log("set high quality enabled",{highQualityEnabled:c}),ro(c?ns.HIGH_QUALITY:ns.UNKNOWN,x)},ro=(c,x)=>{c!==ns.UNKNOWN&&(ye(rn)&&!ye(xn)&&nt("auto",{appliesTo:x,changeReason:"limit-changed"}),Gi(c,x)),N.setPredefinedQualityLimits(c)},Gi=(c,x)=>{Hc({type:c,videoId:i},x),x==="as-default"&&Hc({type:c,videoId:i},"to-video")},so=c=>{oe.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),se.features.saveRate&&le&&!N.info.isLive$.getValue()&&Th(c)},ao=()=>{let c=ye(wn),x=c.findIndex(({selected:J})=>J);if(x===c.length-1)return;let L=c[x+1];so(L.value)},Qo=()=>{let c=ye(wn),x=c.findIndex(({selected:J})=>J);if(x===0)return;let L=c[x-1];so(L.value)},Go=(c={...$i,selected:!1})=>{oe.log("set subtitles",{...c}),c.value!==$i.value&&st.next(c.isAuto?c.value+"_auto":c.value),Mi.set(c),Gp(c.value===$i.value?void 0:c.language),se.features.userVideoPrefs&&i&&jp(se.userSalt,String(i),{subtitleTrackId:c.value===$i.value?void 0:c.value})},En=()=>{oe.log("toggle subtitles");let c=ye(mo),x=ye(Mi),L=ye(Tt);if((x==null?void 0:x.value)===$i.value){let J=c.filter(Be=>Be.value!==$i.value).find(Be=>Be.value===L)||c[1];Go(J)}else Go()},lo=ne(!0),ji=c=>{lo.set(c)},go=(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(),pt=Math.min(0,Be+c);N.seekTime(pt,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(uv(c),L)}},lr=c=>{ee({message:`seek to episode start time: ${c}`}),oe.log("seek to episode start time",{time:c}),go(c,_s.EPISODE,!0)},zn=(c,x)=>{ee({message:`seek to percent, percent: ${c}`}),oe.log("seek to percent",{percent:c,action:x});let L=ye(to)*c;go(L,x,!1)},dr=c=>{ee({message:`seek external, time: ${c}`}),oe.log("seek external",{time:c}),ei.next(_s.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Wr=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}),go(c,_s.EPISODE,!0)},Po=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),Zt=c=>{ee({message:`start scrubbing, progress: ${c}`}),oe.log("start scrubbing",{progress:c}),Ke.set(!0),_i(c)},_i=c=>{jo.set(c)},ho,Ao,Se=()=>{jo.set(void 0),Ke.set(!1)},bt=()=>{clearTimeout(Ao),clearTimeout(ho),ho=window.setTimeout(()=>{Se()},500),Ze==null||Ze.removeEventListener("seeked",bt)},fi=c=>{ee({message:`complete scrubbing, progress: ${c}`}),oe.log("complete scrubbing",{progress:c}),zn(c,_s.SLIDER),ye(At.ui.isMobile)&&ye(At.state.currentFormat$)===xd.HLS?(Ze==null||Ze.addEventListener("seeked",bt),Ao=window.setTimeout(()=>{bt()},300)):Se()},Yi=hi([Ci,to,jo],([c,x,L],J)=>{J(ny(L)?L*x:c)}),Yo=ne(!1),_o=()=>{Yo.set(!0)},et=()=>{Yo.set(!1)},Ht=hi([Re],([{width:c}],x)=>{let L=l1(c);x(L)}),Li=ne(!1),Zo=G.filter(c=>fh(c)),fn=hi([Ht,Li],([c,x])=>x?Zo.filter(L=>!L.hideOnMobile):Zo.filter(L=>{var J;return!((J=L.hideOnDesktopGridTypes)!=null&&J.includes(c))})),co=ne(G.filter(c=>mh(c))),Kr=hi([co,Ht],([c,x])=>c.filter(L=>{var J;return!((J=L.hideOnDesktopGridTypes)!=null&&J.includes(x))})),Sr=hi([Kr,fn],([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}}):[]]),vi=ne(q),Ei=hi([vi],([c])=>se.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),In=(c,x)=>{let L=ye(co).map(J=>J.id!==c?J:{...J,...x});co.set(L)},Wn=c=>{let x=ye(co);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),co.set(x)},Tr=c=>{let x=ye(co);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),co.set(x)},bo=c=>{ei.next(_s.LIVE),ee({message:"live switch to low latency "+c}),oe.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Aa=(c,x)=>{let L=ye(vi).map(J=>J.id!==c?J:{...J,...x});vi.set(L)},Us=c=>{let x=ye(vi);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),vi.set(x)},ht=c=>{let x=ye(vi);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),vi.set(x)},ct=ne(W),uo=hi([ct],([c])=>se.features.additionalContextMenuItems?c:[]),Xo=(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)){ee({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)){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),ct.set(x)},Vi=hi([Li,Wt],([c,x],L)=>{L(c&&x)}),xs=()=>{ei.next(_s.LIVE),ee({message:"switch to active live"}),oe.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==yd.PLAYING&&At.actions.internal.togglePlay()},_l=()=>{oe.log("skip adman"),_e.skip()},Yd=(c=!0)=>{var J;Jn(At),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&&Eo(!0);let x=(J=ye(ze))==null?void 0:J.muted,L=!N.info.muted$.getValue();x!==void 0&&!L&&Eo(x),ze.set(void 0)},Nu=()=>{Jn(At),ee({message:"switch from video to ads"}),oe.log("switch from video to ads"),At.actions.internal.pause(),bi(),te.set("ads")},Zd=c=>{Jn(At);let x=c?"LiveWaitingStart":"thumb";oe.log("set live waiting start",{state:c,playerPhase:x}),te.set(x)},Bu=c=>{Jn(At);let x=c?"LiveWaitingRecover":"thumb";oe.log("set live waiting recover",{state:c,playerPhase:x}),te.set(x)},Xd=c=>{Jn(At);let x=c?"LiveWaitingRecord":"thumb";oe.log("set live waiting record",{state:c,playerPhase:x}),te.set(x)},Ou=()=>(Jn(At),oe.log("get debug text data"),ch(N,Qe,At,Le.getTraceId())),Jd=()=>(Jn(At),JSON.stringify(Le.getFinishedSpans())),Du=()=>(Jn(At),uh(N,Qe,At)),zs=()=>Ze,ec=()=>{ee({message:"toggle chromecast"}),oe.log("toggle chromecast"),N.toggleChromecast()},bl=c=>{var L;if(Jn(At),N.info.isEnded$.getValue())return;let x=!c;if(ye(At.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()},tc=c=>{var L;Jn(At);let x=!c;if(ye(At.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()},ic=c=>{Jn(At);let x=!c;if(ye(At.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()},oc=(c,x)=>{Jn(At),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():At.actions.internal.togglePlay())},Ma=()=>(ee({message:"getting time codes"}),f),nc=()=>{let c=Ma();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(L=>L.time>x)},Hu=c=>{let x=c;x||(x=nc());let L=N.info.position$.getValue();oe.log("seek to next episode",{currentTime:L,...x}),x&&(ee({message:"seek to next episode"}),go(x.time,_s.EPISODE,!0))},rc=()=>{let c=Ma();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=rc());let L=N.info.position$.getValue();oe.log("seek to prev episode",{currentTime:L,...x}),x&&(ee({message:"seek to prev episode"}),go(x.time,_s.EPISODE,!0))},ai=()=>(ee({message:"getting preview thumbs data"}),oe.log("get preview thumbs data",{...v}),v),Mo=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})},Ws=(c=-90)=>{oe.log("rotate video",{alphaDiff:c}),dt.update(x=>x+c)},$o=ne([]);T==null||T.subscribe(c=>{let x=[];for(let L=0;L<c.length;L++){let{range:[J,Be],subjects:pt}=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?!pt.length||pt.every(Ot=>Ot.isRemoved):!pt.length}),Be!==1/0&&x.push({time:Be/1e3,text:"",interactive:!1,completed:!0})}$o.set(x)});let l0=ne(!1);I==null||I.subscribe(c=>{c&&ye(Ke)&&Se()});let uv=c=>{if(!S)return c;let x=ye($o),L=ye(to),Be=ye(tr)/L,pt=x.find(Ot=>Ot.interactive&&!Ot.completed&&Ot.time>Be);return typeof(pt==null?void 0:pt.time)=="number"?Math.min(c,pt.time-.05):c},d0=()=>{At.ui.episodes.panelOpened$.set(!1)},c0=()=>{oe.log("destroy store"),clearTimeout(Ao),clearTimeout(ho),Te.unsubscribe(),eo.unsubscribe(),N.destroy(),_e.destroy(),de==null||de.destroy(),ge==null||ge.destroy(),qt.unsubscribe(),Qt==null||Qt.disconnect(),Qt=null,Ae.destroy()},At={interfaceLanguage$:Tt,isCyrillicRelatedInterface$:xe,initVideo:Et,videoId:i,isClip:o,playerPhase:Ne,vsid:je,state:{positionExact$:Ci,positionWithScrubbing$:Yi,duration$:to,playbackState$:D,isPlaying$:er,isLoaderVisible:$n,bufferedProgress$:Cn,isLive$:gt,canChangePlaybackSpeed$:Xe,isActiveLive$:Or,isOldestAvailableLive$:Dn,isRewindableLive$:Dr,isEnded$:li,muted$:Mt,volume$:Gt,trafficSavingEnabled$:Hi,highQualityEnabled$:Ho,autoQualityLimitingAvailable$:rn,availableVideoStreams$:an,availableAudioStreams$:ir,videoStream$:io,audioStream$:Wo,currentQuality$:hr,isAutoQualityEnabled$:xn,availableQualities$:ot,currentPlaybackRate$:oi,availablePlaybackRates$:wn,currentSubtitle$:Mi,availableTextTracks$:ln,availableSubtitlesList$:mo,currentSubtitleCaptions$:$r,isAutoSubtitleCaptionVisible$:Hr,chromecastState$:Ti,chromecastDeviceName$:Fo,chromecastConnected$:vr,currentFormat$:bn,throughputEstimation$:Fi,videoBitrate$:Qi,videoSize$:So,errorLog$:Yt,crashed$:Wt,isAudioAvailable$:On,isAudioDisabled:!!l,canDownload:se.features.download&&!!d,availableSources$:yr,hasMpegSources$:vo,isInteractive:S,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!ye($o).length,interactiveEpisodes$:$o,isInteractiveTime$:I?ii(I):ne(!1),isInteractiveExpectation$:l0,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,looped$:un,loadedMetadata$:qe,isAutoQualityAvailable$:_r},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:tt,isFullscreenOpenedByKeyboard:vt,rotateAlpha:dt,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:Li,mobileNotReportControlHidden$:Vi,icon3DVideoVisible:ne(!1),scrubbingInProgress:Ke,volumeChangingInProgress:Yo,is3DVideo:zt,currentGridType$:Ht,additionalButtonsDeprecated$:fn,additionalDesktopControlPanelRightButtons$:Sr,additionalSettingsMenuItems$:Ei,additionalContextMenuItems$:uo,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:lo,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:pn,firstStart:c=>oc(c,!1),play:()=>tc(!1),pause:()=>bl(!1),togglePlay:Cr,toggleMuted:ti,openSettingsMenu:Fr,closeSettingsMenu:Ko,openSettingsSubMenu:wt,closeSettingsSubMenu:xr,setVolume:cn,startVolumeChanging:_o,stopVolumeChanging:et,setVideoStream:or,setAudioStream:yn,setQuality:nt,setTrafficSavingEnabled:Pt,setHighQualityEnabled:pi,setPlaybackRate:so,incrementPlaybackRate:ao,decrementPlaybackRate:Qo,setSubtitle:Go,toggleSubtitle:En,togglePictureInPicture:Mo,startScrubbing:Zt,progressScrubbing:_i,completeScrubbing:fi,toggleChromecast:ec,switchToActiveLive:xs,switchFromAdsToVideo:Yd,switchFromVideoToAds:Nu,skipAd:_l,setLiveWaitingStart:Zd,setLiveWaitingRecover:Bu,setLiveWaitingRecord:Xd,getDebugTextData:Ou,getTraceTextData:Jd,getDebugPanelData:Du,getVideoElement:zs,seekTime:(c,x,L)=>go(c,x,L),clearDelayedBufferingCheckTimeout:zo,seekEpisodeStartTime:lr,seekToPercent:zn,getNextEpisode:nc,seekToNextEpisode:Hu,getPrevEpisode:rc,seekToPrevEpisode:Ge,startLogging:Ft,stopLogging:ci,startCameraManualRotation:Ki,stopCameraManualRotation:Do,moveCameraFocusPX:kt,holdCamera:yt,releaseCamera:Ai,getVideoEpisodes:Ma,getPreviewThumbsData:ai,downloadVideo:qo,addLanguage:Yp,setLanguage:ae,nextMovie:it,videoRotate:Ws,correctSeekTimeToInteractive:uv,replayInteractive:A,setLooped:Io,reportProblem:Sn,setAutoplayNextEnabled:oo,setTimerNextVideoRunning:Tn,prevVideoClick:ko,nextVideoClick:ar,nextVideoAnnouncementShow:Ur,nextVideoAnnouncementClick:ss,nextVideoAnnouncementAuto:zr,nextVideoAnnouncementCancel:no},external:{firstStart:c=>oc(c,!0),play:()=>tc(!0),pause:()=>bl(!0),stop:()=>ic(!0),seekTime:c=>dr(c),seekEpisodeStartTime:c=>qr(c),setPlaybackRate:c=>Po(c),setAutoQualityLimits:c=>Wr(c),setMuted:Eo,toggleSubtitle:En,setVolume:cn,returnFocusToEpisodes:d0,updateAdditionalSettingsItem:Aa,addAdditionalSettingsItem:Us,removeAdditionalSettingsItem:ht,updateAdditionalContextItem:Xo,addAdditionalContextItem:Ui,removeAdditionalContextItem:si,updateAdditionalButton:In,addAdditionalButton:Wn,removeAdditionalButton:Tr,setLiveLowLatency:bo,hideControls:()=>ji(!1),showControls:()=>ji(!0)}},callbacks:a,setUiCallbacks:c=>{Z={...c}},getAdmanWrapper:()=>_e,getLogger:()=>He,getPlayer:()=>N,destroy:c0};return At};function Rr(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}=hs(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 vy=["disabledControls$","additionalButtons"],gy=["interactiveTimeIndicator"],pl=(t,e,i,o)=>{if(t){for(let[n,r]of Object.entries(e))if(!vy.includes(n)){let l=o||gy.includes(n);r.set(Rr(t,i,n,l))}}};var gu=async(t,e,i)=>{await xo(),e&&i&&(i.focus(),t.set(!1))};var hy=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 jf(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":"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 Yf(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($)&&$t(()=>{u.set(s($))})});let w=I=>{let A=Ns(I),k=e1(s($));v.set(k),p.set(A),a.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Rt(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return r()},get ariaLabel(){return l()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return s($)},set ref(I){B($,I,!0)},children:(I,A)=>{jf(I,{})},$$slots:{default:!0}}),F(),o()}var _y=t=>{t.stopPropagation()},by=M("<div><!> <div></div> <div></div></div>"),$y={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=Xr();O(Te=>$e(Ae,Te),[()=>F("tooltip_episode_unfinished")]),b(Z,Ae)},Ze=Z=>{var Ae=Xr();O(()=>$e(Ae,s(Q).text||"")),b(Z,Ae)};V(te,Z=>{u()&&s(Q).completed===!1?Z(qe):Z(Ze,!1)})}b(ue,pe)};V(He,ue=>{s(Q)&&ue(_e)})}h(N);var ge=P(N,2);{var de=ue=>{var pe=I2(),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),lt(ve,`width: ${s(q)?s(T):s(S)}px;`)},[()=>({mobile:a()})]),b(t,ve),H(),o()}var A2=M('<span class="time svelte-1jr6obn"> </span>'),M2=M("<!> <!>",1),L2={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function Hf(t,e){var ie,Be,ze,Me,We;D(e,!0),z(t,L2);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=It(),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(()=>_n(r())),ge=g(()=>_n(l())),de=g(()=>l()/r()),ue=g(()=>d()||a()),pe=j(!1),te=j(""),qe=j(0),Ze=j(0),Z=j(0),Ae=g(()=>({containerWidth:s(Ze),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"),je=g(()=>ne("aria_timeline_value",{position:s(ge),duration:s(_e)}));function tt(Re){return!me||!Y?Re:me(Re*r())/r()}function ht(Re){T.actions.internal.startScrubbing(tt(Re))}function mt(Re){a()||T.actions.internal.progressScrubbing(tt(Re))}function wt(Re){T.actions.internal.completeScrubbing(tt(Re)),B(pe,!1)}function Qe(Re,Je,At){Gt(Re,Je,At),B(pe,!0)}function Ft(Re,Je,At){Gt(Re,Je,At),B(pe,!0)}function Xt(){B(pe,!1)}function Gt(Re,Je,At){B(Z,tt(Re),!0),B(qe,Je,!0),At&&B(Ze,At,!0),B(te,Ut(Re),!0)}function Ut(Re){let Je=_n((p()?1-Re:Re)*r());return p()?`-${Je}`:Je}var ee=M2(),Rt=fe(ee);Of(Rt,ms(()=>s(Ae),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Re,Je)=>{var At=Fe(),Wt=fe(At);{var Xe=ti=>{Df(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}})},ci=ti=>{var st=A2(),Kt=_(st,!0);h(st),O(()=>$e(Kt,s(te))),b(ti,st)};V(Wt,ti=>{I.features.timelinePreview&&G&&!p()?ti(Xe):ti(ci,!1)})}b(Re,At)},$$slots:{default:!0}}));var xe=P(Rt,2);let he=g(()=>$().has("TIMELINE"));_a(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(je)},get loadedProgress(){return u()},get filledProgress(){return s(de)},get handleProgress(){return s(de)},get videoEpisodes(){return s(He)},onPointerDown:ht,onHandleMove:mt,onPointerMove:Ft,onPointerUp:wt,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:wt,get ref(){return S()},set ref(Re){S(Re)}}),b(t,ee),H(),o()}var V2={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 bd(t,e){D(e,!0),z(t,V2);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(()=>_n(l())),v=g(()=>_n(r())),u=g(()=>r()/l()),$=g(()=>p("aria_timeline_value",{position:s(v),duration:s(f)})),w=g(()=>Math.round(s(u)*100));_a(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 R2=M("<div><!></div>"),N2=M("<div></div>"),B2={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 ba(t,e){D(e,!0),z(t,B2);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=It(),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=R2();let Y;var ce=_(X);{var le=ke=>{bd(ke,{get position(){return d()},get duration(){return a()}})},me=ke=>{Hf(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),fs(X,()=>nl(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=N2();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()}import{noop as H2}from"@vkontakte/videoplayer-shared/es2018";var O2=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 Ff(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=O2();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 D2=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 Uf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=D2();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 F2=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),U2=M('<span class="text svelte-1yhs2ga"> </span>'),z2=M('<span class="text count svelte-1yhs2ga"> </span>'),W2=M("<!> <!>",1),q2={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function $d(t,e){var le,me,ke;D(e,!0),z(t,q2);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:H2,$=!!((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=Ns(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(()=>Di(n(),"xl")?"FULL":Di(n(),"m")&&l1(n(),"xl")?"COUNT":"SHORT"),W=g(()=>`${I("tooltip_episodes")}: ${s(Q)}`),G=async(ve,ae,Ve)=>{await $o(),(ve==null?void 0:ve.getAttribute("aria-expanded"))==="false"&&ae&&!Ve&&xt(()=>{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(()=>!$);Vt(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=F2(),te=fe(pe),qe=_(te,!0);h(te);var Ze=P(te,2),Z=_(Ze);Uf(Z,{}),h(Ze),O(()=>$e(qe,s(Q))),b(ue,pe)},de=ue=>{var pe=W2(),te=fe(pe);Ff(te,{});var qe=P(te,2);{var Ze=Ae=>{var Te=U2(),je=_(Te,!0);h(Te),O(()=>$e(je,s(Q))),b(Ae,Te)},Z=(Ae,Te)=>{{var je=tt=>{var ht=z2(),mt=_(ht,!0);h(ht),O(()=>$e(mt,f().length)),b(tt,ht)};V(Ae,tt=>{s(q)==="COUNT"&&tt(je)},Te)}};V(qe,Ae=>{s(q)==="FULL"?Ae(Ze):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()}import{debounceFn as T1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as J2,PlaybackState as yd,Player as ey,PredefinedQualityLimits as ns,VideoFormat as xd,clientChecker as ty}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Jn,getHighestQuality as iy,InterfaceLanguage as oy,isInvariantQuality as ny,isNonNullable as ry,loadVKLangPack as sy,Logger as ay,map as b1,merge as ly,Observable as $1,Subject as vu,Subscription as Gf,TracerFactory as dy,ValueSubject as cy,VideoQuality as uy,devNull as py,now as fy,filter as my,once as vy}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as _s}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as K2,devNull as Yt,now as Zt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as Q2,Subject as tn,clearVideoElement as G2}from"@vkontakte/videoplayer-shared/es2018";var f1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var j2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",au=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new tn,loadStarted$:new tn,loadEnded$:new tn,loadError$:new tn,ready$:new tn,slotRequested$:new tn,started$:new tn,timeRemained$:new tn,paused$:new tn,resumed$:new tn,ended$:new tn,empty$:new tn,skipped$:new tn,clicked$:new tn,closed$:new tn,error$:new tn};this.loadAdman=e=>(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Zt()]}),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?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Zt()]}),o())};Q2(j2,e,this.loadTimeout).then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Zt()]}),window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Zt()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout))}).catch(l=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[Zt()]}),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?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Zt()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Zt()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Zt()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Zt()]}),!d&&(window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Zt()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Zt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Zt(),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Zt()]}),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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")=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Zt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Zt(),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}=K2(),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:f1(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){Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[Zt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,r;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Zt()]}),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&&G2(this.videoElement),this.isDestroyed=!0}};var m1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var zf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let r of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=r.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let p=new lu,{startTime:f,endTime:v}=p.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let p=new Wf,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},lu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let r=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return r+l+d+a}},Wf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let 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 lu;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}},v1=zf;import{isNonNullable as qf}from"@vkontakte/videoplayer-shared/es2018";var $a,Ci,Kf=0,Qf=!1,g1="",h1=(t,e=0,i=0)=>t<e&&t<i,du=(t,e=0,i=0)=>t>=e&&t<=i,Y2=(t,e=0,i=0)=>t>e&&t>i,_1=(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})=>du(t,p,f));let r=t>=Kf,l=t<Kf;if(Kf=t,l&&(Qf=!1),qf($a)&&du(t,$a.startTime,$a.endTime)&&g1===e.value)return $a;if(!qf(Ci)&&(n!=null&&n.length)&&!Qf){Ci=n.find(({startTime:p,endTime:f})=>du(t,p,f)||r&&h1(t,p,f)),$a=void 0,!qf(Ci)&&n[n.length-1].endTime<t&&(Qf=!0);return}else{if(du(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime))return $a=Ci,Ci=void 0,g1=e.value,$a;(r&&Y2(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime)||l&&h1(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime))&&(Ci=void 0)}};var cu={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"},Z2={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"},uu=t=>{var e,i;return(i=(e=cu[t])!=null?e:cu[Z2[t]])!=null?i:void 0};import{Subscription as X2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var pu=class{constructor(e,i,o,n=new X2){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 fu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(fu||{});var os=t=>t!=null?t:0,hs=(t,e)=>{var n,r;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(os(i==null?void 0:i.top)-os(o==null?void 0:o.top)),left:Math.round(os(i==null?void 0:i.left)-os(o==null?void 0:o.left)),bottom:Math.round(os(i==null?void 0:i.bottom)-os(o==null?void 0:o.top)),right:Math.round(os(i==null?void 0:i.right)-os(o==null?void 0:o.left))}},ul=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:os(e==null?void 0:e.width),height:os(e==null?void 0:e.height)}};var mu="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 pv,fv,mv;let ve={...$,configName:[...(pv=$.configName)!=null?pv:[],"ui"],isAudioDisabled:l,live:{...(fv=$.live)!=null?fv:{},isLiveCatchUpMode:!!n}},ae=u,Ve=dy.createRootTracer(ae.features.tracer),ne=Ve.createComponentTracer("Store"),N=w||new ey(ve,Ve);me==null||me.expose({corePlayer:N});let He=new ay,_e=new au(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=da.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,Ze,Z={},Ae=new Bc,Te=new Gf,je=ce&&ce.oneStat?ei(ce.oneStat.vsid$):fr(void 0),tt=re(Ls()),ht=re(!1),mt=(mv=de==null?void 0:de.info.isActive$)!=null?mv:new cy(!1),wt=re(0),Qe=re(!1),Ft=re(!1),Xt=re([]),Gt=ly(N.events.fatalError$,N.events.managedError$).subscribe(c=>Xt.update(x=>[...x,c])),Ut=fr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ee=async c=>{var J;let x=Object.values(oy).includes(c);if(ae.downloadVKLanguages&&(x&&ae.updateBuiltinLanguages||!Zp(c))){let Ne;try{Ne=await sy(c,eh,th)}catch(pt){(J=ce==null?void 0:ce.oneStat)==null||J.logError({errorType:"VKLangPack",fatal:!1}),ge==null||ge.report(pt,{errorType:"VKLangPack",fatal:!1})}Ne&&(Yp({language:c,pack:Ne,fallback:ae.defaultLanguage}),Rt.set(c))}Zp(c)&&Rt.set(c)},Rt=re(t),xe=re(e);ee(t);let he=(c,x)=>{let L=ye(Rt);return Xp(L,c,x,ae.defaultLanguage)},ie=re("thumb");ie.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&Me()});let Be=(()=>{let c=_i([Ut,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 Je=c=>{let x=c.container,L=()=>{Kt=new MutationObserver(Ne=>{let{removedNodes:pt}=Ne[0];pt.length&&x.append(N.experimental.element$.getValue())}),Kt.observe(x,{childList:!0})},J=N.experimental.element$.getValue();if(J)x.append(J),L();else{let Ne=N.experimental.element$.pipe(my(pt=>!!pt),vy()).subscribe(pt=>{x.append(pt),L()});Te.add(Ne)}},At=c=>{te({message:`init video, config: ${JSON.stringify(c)}`}),S?Je(c):(py.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[fy()]}),N.initVideo(c)),ne.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),qe=c},Wt=new vu,Xe=c=>Wt.next(c),ci=new vu,ti=new vu,st=new vu,Kt=null,ri={actionRewind$:ci,actionSeek$:ti,inPiP$:mt,inFullscreen$:new $1(c=>tt.subscribe(x=>c.next(x))),actionSetSubtitle$:st,nextMovie$:Wt},ui={actionSeek$:ti,playerSize$:new $1(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(ui)),J.add(x.attachToAds(_e.events)),x.authorize(r))}if(ge){let c=new Gf,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 co=()=>{ty.device.isIOS&&Ze&&Fh(Ze).catch(c=>{te({message:`exitIosSafariFullscreen failed: ${c}`})})};Te.add(N.experimental.element$.subscribe(c=>{c&&(Ze=c,c.classList.add("player-media"),ua(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;co(),(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;ua(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=>{Ft.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(I!=null&&I.getValue()&&We.add(Gl),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 Wi=new Gf,qt=()=>{var pt,Ot,zt;let{debugLog:c}=ae,x,L="#9df7b7",J="#efd169";if(c&&c!==!0){let{colors:Dt}=c;x=c.tag,L=(pt=Dt==null?void 0:Dt[0])!=null?pt:L,J=(zt=(Ot=Dt==null?void 0:Dt[1])!=null?Ot:Dt==null?void 0:Dt[0])!=null?zt:J}let Ne=x?`: ${x}`:"";Wi.add(N.events.log$.subscribe(Dt=>{console.debug(`%c sdk${Ne} `,`background:${L};`,`sdk component: ${Dt.component}`,Dt.message)})).add(He.log$.subscribe(Dt=>{console.debug(`%c ui${Ne} `,`background:${J};`,`ui component: ${Dt.component}.`,Dt.message)}))},ni=()=>{Wi.unsubscribe()},Bo=(c,x)=>{ne.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Bt=(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)},Si=()=>{N.holdCamera()},Oo=()=>{N.releaseCamera()},U=fr(N.info.position$.getValue(),c=>{let x,L,J=()=>{let Ne=N.info.playbackState$.getValue(),pt=N.info.isLive$.getValue(),Ot=N.info.duration$.getValue(),zt=N.info.position$.getValue();if(Ne&&[yd.PLAYING,yd.PAUSED].includes(Ne)){let Dt=pt?zt-Ot:N.getExactTime();Dt!==L&&c(Dt),L=Dt}x=requestAnimationFrame(J)};return J(),()=>cancelAnimationFrame(x)}),at=ei(N.info.playbackState$),pi=ei(N.info.currentBuffer$),li=ei(N.info.isEnded$),ut=ei(N.info.isLive$),rt=ae.features.playbackRate?ei(N.info.canChangePlaybackSpeed$):fr(!1),ft=ei(N.info.liveBufferTime$),bi=ei(N.info.volume$),Et=ei(N.info.muted$),nn=Oc(N.info.predefinedQualityLimitType$.pipe(b1(c=>c===ns.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ns.TRAFFIC_SAVING),Do=Oc(N.info.predefinedQualityLimitType$.pipe(b1(c=>c===ns.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ns.HIGH_QUALITY),rn=ei(N.info.autoQualityLimitingAvailable$),Ti=ei(N.info.availableQualities$),$t=ei(N.info.availableQualitiesFps$),Ei=ei(N.info.chromecastState$),Ho=ei(N.info.chromecastDeviceName$),bn=ei(N.info.currentFormat$),Hi=ei(N.info.throughputEstimation$),qi=ei(N.info.videoBitrate$),wo=ei(N.info.intrinsicVideoSize$),sn=ei(N.info.duration$),On=ei(N.info.isAudioAvailable$),di=null,Fo=N.info.isBuffering$,$n=fr(Fo.getValue(),c=>{let x=Fo.subscribe(L=>{L&&di===null?di=window.setTimeout(()=>{c(Fo.getValue()),di=null},ae.loaderDelay):c(L)});return()=>{x.unsubscribe(),di&&clearTimeout(di)}}),Uo=()=>{di&&clearTimeout(di),di=null},Xi=_i([sn,ut],([c,x])=>x?-c:c),er=_i([at],([c])=>c===yd.PLAYING),Or=ei(N.info.atLiveEdge$),Dn=ei(N.info.atLiveDurationEdge$),tr=ei(N.info.position$),Dr=_i([tr,sn],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),vr=_i([Ei],([c])=>c===J2.CONNECTED),an=ei(N.info.availableVideoStreams$),ir=ae.features.audioLanguages?ei(N.info.availableAudioStreams$):fr([]),Ji=ei(N.info.currentVideoStream$),zo=ei(N.info.currentAudioStream$),or=c=>{c.language&&Kp(c.language),N.setVideoStream(c)},yn=c=>{c.language&&Kp(c.language),N.setAudioStream(c),ae.features.userVideoPrefs&&i&&jp(ae.userSalt,String(i),{audioTrackId:c.id})},nr=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=Uc(ae.userSalt,String(i));if(J!=null&&J.audioTrackId){let Ne=c.find(pt=>pt.id===J.audioTrackId);x=Ne!=null?Ne:x}}let L=Sh();return L&&(x!=null||(x=c.find(({language:J})=>L===J))),x!=null||(x=c.at(0)),x},Hn=!1;Te.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Hn&&c.length){let x=nr(c);x&&(N.setAudioStream(x),Hn=!0)}}));let rr=!1;Te.add(N.info.availableVideoStreams$.subscribe(c=>{if(!rr&&c.length){let x=nr(c);x&&(N.setVideoStream(x),rr=!0)}}));let Fn=re(void 0),xn=ei(N.info.isAutoQualityEnabled$,c=>c&&Fn.set(void 0)),gr=ei(N.info.currentQuality$,()=>Fn.set(void 0)),hr=_i([Fn,gr],([c,x])=>c!=null?c:x),_r=_i(bn,c=>c!==xd.MPEG),it=_i([Ti,$t,xn,hr,_r],([c,x,L,J,Ne])=>{let pt=[];Ne&&pt.push({value:"auto",displayValue:he("auto_quality_option"),selected:L});let Ot=c.filter(zt=>!ny(zt));for(let zt of Ot){let Dt=x[zt];pt.push({value:zt,displayValue:`${zt}${Dt?m1(Dt):""}`,selected:L?!1:zt===J})}return pt}),ii=ei(N.info.currentPlaybackRate$),wn=_i([ii,Or,Dn],([c,x,L])=>{let J=L||S?1:ae.controls.playbackRateMin,Ne=x?1:ae.controls.playbackRateMax,pt=ae.controls.playbackRateStep,Ot=[];for(let zt=J;zt<=Ne;zt+=pt)Ot.push({value:zt,displayValue:zt===1?he("playback_rate_1"):he("playback_rate",{multiplier:zt.toString(10)}),selected:c===zt});return Ot}),yi={displayValue:he("subtitles_off"),value:mu,language:""},Mi=re({...yi}),ln=ae.features.subtitles?ei(N.info.availableTextTracks$):fr([]),dn=vh(),uo=_i([ln,Mi],([c,x],L)=>{var pt;let J=[],Ne=c.find(({id:Ot})=>Ot===x.value);if(Ne!=null&&Ne.url){let[,Ot]=(pt=dn.find(Ne.url))!=null?pt:[];if(Ot){L(Ot);return}Ae.download(Ne.url).then(zt=>{if(!zt||Ae.isDestroyed())return;let Dt=new v1,ws=Ne.language;if(ws){let p0=!!Ne.isAuto,f0=Dt.parse(zt,ws);J.push({lang:ws,subtitles:f0,isAuto:p0,id:Ne.id})}dn.add(Ne.url,J),ye(Mi).value===x.value&&L(J)}).catch(zt=>{var Dt;(Dt=ce==null?void 0:ce.oneStat)==null||Dt.logError({errorType:"Subtitles download",fatal:!1}),ge==null||ge.report(zt,{errorType:"Subtitles download",fatal:!1})})}L(J)}),Un=_i([ii,er,Mi],([c,x,L],J)=>{let Ot;if(N.info.isLive$.getValue()&&x&&L.value!==yi.value){let Dt=()=>{let ws=1e3/(3*c);Ot=setTimeout(Dt,ws),J(Date.now())};return Dt(),()=>clearTimeout(Ot)}}),po=_i([ln,Mi],([c,x])=>{if(!c.length)return[];let L=[];for(let{language:J,isAuto:Ne,id:pt}of c){let Ot=J&&uu(J);J&&Ot&&L.push({displayValue:Ne?he("subtitles_auto",{language:Ot}):Ot,value:pt,selected:(x==null?void 0:x.value)===pt,isAuto:Ne,language:J})}return L.length?(L.unshift({...yi,selected:(x==null?void 0:x.value)===yi.value}),L):[]}),Co={available:[],prev:[]},br=()=>{var x,L;let c=N.experimental.getCurrentTime$.getValue();return(L=(x=c==null?void 0:c())!=null?x:Ze==null?void 0:Ze.currentTime)!=null?L:0},rs=_i([U,Mi,uo,Un],([c,x,L,J])=>{var pt;let Ne=N.info.isLive$.getValue();if(Ne&&Co.prev!==L){let Ot=L.find(({id:Dt})=>Dt===x.value),zt=Co.prev.find(({id:Dt})=>Dt===x.value);if(Ot){let Dt={...Ot,subtitles:[...(pt=zt==null?void 0:zt.subtitles)!=null?pt:[],...Ot.subtitles]};Co.available=[Dt],Co.prev=L}}if(x&&x.value!==yi.value){let Ot=Ne?br():c,zt=Ne?Co.available:L;return _1(Ot,x,zt,Ne)}}),$r=_i([rs],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(Mi.subscribe(c=>{var x,L;if(c.value===yi.value)(x=a==null?void 0:a.onSubtitleOff)==null||x.call(a);else{let J=Object.entries(cu).find(([Ne,pt])=>pt===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,J?J[0]:"")}}));let Hr=re(!0),Cn=_i([pi,Xi,tr,ft],([c,x,L,J])=>{var zt;let Ne=(zt=c==null?void 0:c.end)!=null?zt:0;if(!J)return Ne/x;let Ot=-L+J-x;return(Ne-Ot)/x}),yr=ei(N.info.availableSources$),fo=_i([yr],([c])=>Object.keys((c==null?void 0:c[xd.MPEG])||{}).length>0),sr=()=>{var L,J,Ne;let c=Object.keys(((J=(L=N.info.availableSources$)==null?void 0:L.getValue())==null?void 0:J[xd.MPEG])||{}),x=iy(c)||uy.Q_144P;return(Ne=qe.sources[xd.MPEG])==null?void 0:Ne[x]},Wo=()=>{var x;let c=sr();if(c)ne.log("download video",{url:c}),ph(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?cn(Mt()):So(!c)},qo=()=>{var c;if(Pt.ui.settingsMenu.visible$.set(!1),!ye(Pt.ui.settingsSubMenu.visible$)){let x=ye(Pt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&x){let J=ul(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")},Fr=async(c,x=()=>Promise.resolve())=>{var Ne;Pt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Pt.ui.settingsMenu.visible$.set(!0),await x();let L=ye(Pt.ui.settingsMenu.ref$),J=zs();if((Ne=a==null?void 0:a.uiInfo)!=null&&Ne.onSettingsMenu&&L&&J){let Ot=ul(L),zt=hs(L,J);a.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:zt,name:"settings"})}ne.log("open settings menu",{wasOpenedByKeyboard:c})},xr=(c,x=!1)=>{var pt;Pt.ui.settingsSubMenu.visible$.set(!1);let L=ye(Pt.ui.settingsMenu.ref$),J=zs(),Ne=ye(Pt.ui.settingsMenu.visible$);if((pt=a==null?void 0:a.uiInfo)!=null&&pt.onSettingsMenu&&L&&J)if(Ne&&!x){let zt=ul(L),Dt=hs(L,J);a.uiInfo.onSettingsMenu({visible:!0,size:zt,position:Dt,name:"settings"})}else{let zt=ul(c),Dt={top:0,left:0,bottom:0,right:0},ws=ye(Pt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:zt,position:Dt,name:ws})}ne.log("close settings sub menu")},St=(c,x)=>{var J;Pt.ui.settingsSubMenu.visible$.set(!0),Pt.ui.settingsSubMenu.ref$.set(x),Pt.ui.settingsSubMenu.name$.set(c);let L=zs();if((J=a==null?void 0:a.uiInfo)!=null&&J.onSettingsMenu&&x&&L){let pt=ul(x),Ot=hs(x,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:pt,position:Ot})}ne.log("open settings sub menu",{name:c})},Mt=()=>{var x;let c=Math.max(ae.volumeMinRestore,(x=Dc())!=null?x:0);return c===0?ae.volumeDefault:c},cn=c=>{let x=c===0?Mt():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,Wp(!1)),N.setVolume(c,L),_e.setVolume(c),Dp(x)},So=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)&&Wp(c),!c&&x===0){let J=Mt();N.setVolume(J),Dp(J),_e.setVolume(J)}},un=re(!1),To=c=>{var x,L;ne.log("set looped",{isLooped:c}),un.set(c),N.setLooped(c),(L=(x=a==null?void 0:a.uiInfo)==null?void 0:x.onLoopedChanged)==null||L.call(x,c)};To(Y);let Sn=()=>{var c,x;(x=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},eo=(c,x=!1)=>{var L;te({message:`set autoplayNextEnabled, value: ${c}`}),ne.log("set autoplay next enabled",{autoplayNextEnabled:c}),Pt.ui.autoplayNextEnabled$.set(c),Ih(c),x&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},Tn=c=>{te({message:`set timerNextVideoRunning, value: ${c}`}),ne.log("set timer next video running",{timerNextVideoRunning:c}),Pt.ui.timerNextVideoRunning$.set(c)},Eo=(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&&wr("prev")||G()},ar=(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&&wr("next")||X()},wr=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:L,playbackStatusShow:J}}=ae;return L&&J&&!x?(Pt.ui.aboutToGoNextVideo.set(c),Pt.ui.userActionsDisabled.set(!0),!0):!1},Ur=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},ss=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},zr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},to=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},pn=()=>{N.prepare()},Cr=()=>{Jn(Pt);let c=ye(Pt.ui.controls.disabledControls$),x=ye(Pt.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 pt;te({message:"toggle play, call player.play"}),L.action="play",N.play(),(pt=a==null?void 0:a.onPlay)==null||pt.call(a)},Ne=()=>{var pt;te({message:"toggle play, call player.pause"}),L.action="pause",N.pause(),(pt=a==null?void 0:a.onPause)==null||pt.call(a)};if(N.info.isEnded$.getValue()){if(te({message:"toggle play, video ended, seek to 0"}),ci.next(),ti.next(_s.REWIND),S){A==null||A();return}N.seekTime(0),J()}else N.info.playbackState$.getValue()!==yd.PLAYING?J():Ne();ne.log("toggle play",L)},ot=(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?(Hc({type:"exact_quality",quality:c,videoId:i},L),Yl(),N.setPredefinedQualityLimits(ns.UNKNOWN)):Hp(i,c),Fn.set(c),N.setQuality(c)):ae.features.qualityDetailsSubMenuEnabled?x==="default"&&(Ki("auto_quality",L),ye(nn)&&kt(!1),ye(Do)&&fi(!1)):Yl()},kt=(c,x="as-default")=>{te({message:`set trafficSavingEnabled, value: ${c}`}),ne.log("set traffic saving enabled",{trafficSavingEnabled:c});let L=c?ns.TRAFFIC_SAVING:ns.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?(io(L,x),jl(!1)):(N.setPredefinedQualityLimits(L),jl(c))},fi=(c,x="as-default")=>{te({message:`set highQualityEnabled, value: ${c}`}),ne.log("set high quality enabled",{highQualityEnabled:c}),io(c?ns.HIGH_QUALITY:ns.UNKNOWN,x)},io=(c,x)=>{c!==ns.UNKNOWN&&(ye(rn)&&!ye(xn)&&ot("auto",{appliesTo:x,changeReason:"limit-changed"}),Ki(c,x)),N.setPredefinedQualityLimits(c)},Ki=(c,x)=>{Hc({type:c,videoId:i},x),x==="as-default"&&Hc({type:c,videoId:i},"to-video")},oo=c=>{ne.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ae.features.saveRate&&le&&!N.info.isLive$.getValue()&&Th(c)},no=()=>{let c=ye(wn),x=c.findIndex(({selected:J})=>J);if(x===c.length-1)return;let L=c[x+1];oo(L.value)},Ko=()=>{let c=ye(wn),x=c.findIndex(({selected:J})=>J);if(x===0)return;let L=c[x-1];oo(L.value)},Qo=(c={...yi,selected:!1})=>{ne.log("set subtitles",{...c}),c.value!==yi.value&&st.next(c.isAuto?c.value+"_auto":c.value),Mi.set(c),Gp(c.value===yi.value?void 0:c.language),ae.features.userVideoPrefs&&i&&jp(ae.userSalt,String(i),{subtitleTrackId:c.value===yi.value?void 0:c.value})},En=()=>{ne.log("toggle subtitles");let c=ye(po),x=ye(Mi),L=ye(Rt);if((x==null?void 0:x.value)===yi.value){let J=c.filter(Ne=>Ne.value!==yi.value).find(Ne=>Ne.value===L)||c[1];Qo(J)}else Qo()},ro=re(!0),Qi=c=>{ro.set(c)},mo=(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(),pt=Math.min(0,Ne+c);N.seekTime(pt,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(uv(c),L)}},lr=c=>{te({message:`seek to episode start time: ${c}`}),ne.log("seek to episode start time",{time:c}),mo(c,_s.EPISODE,!0)},zn=(c,x)=>{te({message:`seek to percent, percent: ${c}`}),ne.log("seek to percent",{percent:c,action:x});let L=ye(Xi)*c;mo(L,x,!1)},dr=c=>{te({message:`seek external, time: ${c}`}),ne.log("seek external",{time:c}),ti.next(_s.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Wr=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}),mo(c,_s.EPISODE,!0)},Io=c=>{te({message:`set playback rate to: ${c}`}),ne.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Go=re(void 0),Ke=re(!1),jt=c=>{te({message:`start scrubbing, progress: ${c}`}),ne.log("start scrubbing",{progress:c}),Ke.set(!0),$i(c)},$i=c=>{Go.set(c)},vo,ko,Se=()=>{Go.set(void 0),Ke.set(!1)},yt=()=>{clearTimeout(ko),clearTimeout(vo),vo=window.setTimeout(()=>{Se()},500),Ze==null||Ze.removeEventListener("seeked",yt)},mi=c=>{te({message:`complete scrubbing, progress: ${c}`}),ne.log("complete scrubbing",{progress:c}),zn(c,_s.SLIDER),ye(Pt.ui.isMobile)&&ye(Pt.state.currentFormat$)===xd.HLS?(Ze==null||Ze.addEventListener("seeked",yt),ko=window.setTimeout(()=>{yt()},300)):Se()},Gi=_i([U,Xi,Go],([c,x,L],J)=>{J(ry(L)?L*x:c)}),jo=re(!1),go=()=>{jo.set(!0)},et=()=>{jo.set(!1)},Ht=_i([Re],([{width:c}],x)=>{let L=d1(c);x(L)}),Li=re(!1),Yo=Q.filter(c=>fh(c)),fn=_i([Ht,Li],([c,x])=>x?Yo.filter(L=>!L.hideOnMobile):Yo.filter(L=>{var J;return!((J=L.hideOnDesktopGridTypes)!=null&&J.includes(c))})),so=re(Q.filter(c=>mh(c))),Kr=_i([so,Ht],([c,x])=>c.filter(L=>{var J;return!((J=L.hideOnDesktopGridTypes)!=null&&J.includes(x))})),Sr=_i([Kr,fn],([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}}):[]]),gi=re(q),Ii=_i([gi],([c])=>ae.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),In=(c,x)=>{let L=ye(so).map(J=>J.id!==c?J:{...J,...x});so.set(L)},Wn=c=>{let x=ye(so);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),so.set(x)},Tr=c=>{let x=ye(so);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),so.set(x)},ho=c=>{ti.next(_s.LIVE),te({message:"live switch to low latency "+c}),ne.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Aa=(c,x)=>{let L=ye(gi).map(J=>J.id!==c?J:{...J,...x});gi.set(L)},Us=c=>{let x=ye(gi);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),gi.set(x)},bt=c=>{let x=ye(gi);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),gi.set(x)},dt=re(W),ao=_i([dt],([c])=>ae.features.additionalContextMenuItems?c:[]),Zo=(c,x)=>{let L=ye(dt).map(J=>J.id!==c?J:{...J,...x});dt.set(L)},Fi=c=>{let x=ye(dt);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),dt.set(x)},si=c=>{let x=ye(dt);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),dt.set(x)},Vi=_i([Li,Ut],([c,x],L)=>{L(c&&x)}),xs=()=>{ti.next(_s.LIVE),te({message:"switch to active live"}),ne.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==yd.PLAYING&&Pt.actions.internal.togglePlay()},_l=()=>{ne.log("skip adman"),_e.skip()},Yd=(c=!0)=>{var J;Jn(Pt),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&&So(!0);let x=(J=ye(ze))==null?void 0:J.muted,L=!N.info.muted$.getValue();x!==void 0&&!L&&So(x),ze.set(void 0)},Nu=()=>{Jn(Pt),te({message:"switch from video to ads"}),ne.log("switch from video to ads"),Pt.actions.internal.pause(),co(),ie.set("ads")},Zd=c=>{Jn(Pt);let x=c?"LiveWaitingStart":"thumb";ne.log("set live waiting start",{state:c,playerPhase:x}),ie.set(x)},Bu=c=>{Jn(Pt);let x=c?"LiveWaitingRecover":"thumb";ne.log("set live waiting recover",{state:c,playerPhase:x}),ie.set(x)},Xd=c=>{Jn(Pt);let x=c?"LiveWaitingRecord":"thumb";ne.log("set live waiting record",{state:c,playerPhase:x}),ie.set(x)},Ou=()=>(Jn(Pt),ne.log("get debug text data"),ch(N,qe,Pt,Ve.getTraceId())),Jd=()=>(Jn(Pt),JSON.stringify(Ve.getFinishedSpans())),Du=()=>(Jn(Pt),uh(N,qe,Pt)),zs=()=>Ze,ec=()=>{te({message:"toggle chromecast"}),ne.log("toggle chromecast"),N.toggleChromecast()},bl=c=>{var L;if(Jn(Pt),N.info.isEnded$.getValue())return;let x=!c;if(ye(Pt.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()},tc=c=>{var L;Jn(Pt);let x=!c;if(ye(Pt.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()},ic=c=>{Jn(Pt);let x=!c;if(ye(Pt.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()},oc=(c,x)=>{Jn(Pt),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():Pt.actions.internal.togglePlay())},Ma=()=>(te({message:"getting time codes"}),f),nc=()=>{let c=Ma();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(L=>L.time>x)},Hu=c=>{let x=c;x||(x=nc());let L=N.info.position$.getValue();ne.log("seek to next episode",{currentTime:L,...x}),x&&(te({message:"seek to next episode"}),mo(x.time,_s.EPISODE,!0))},rc=()=>{let c=Ma();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=rc());let L=N.info.position$.getValue();ne.log("seek to prev episode",{currentTime:L,...x}),x&&(te({message:"seek to prev episode"}),mo(x.time,_s.EPISODE,!0))},ai=()=>(te({message:"getting preview thumbs data"}),ne.log("get preview thumbs data",{...v}),v),Po=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})},Ws=(c=-90)=>{ne.log("rotate video",{alphaDiff:c}),wt.update(x=>x+c)},_o=re([]);T==null||T.subscribe(c=>{let x=[];for(let L=0;L<c.length;L++){let{range:[J,Ne],subjects:pt}=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?!pt.length||pt.every(Ot=>Ot.isRemoved):!pt.length}),Ne!==1/0&&x.push({time:Ne/1e3,text:"",interactive:!1,completed:!0})}_o.set(x)});let d0=re(!1);I==null||I.subscribe(c=>{c&&ye(Ke)&&Se()});let uv=c=>{if(!S)return c;let x=ye(_o),L=ye(Xi),Ne=ye(tr)/L,pt=x.find(Ot=>Ot.interactive&&!Ot.completed&&Ot.time>Ne);return typeof(pt==null?void 0:pt.time)=="number"?Math.min(c,pt.time-.05):c},c0=()=>{Pt.ui.episodes.panelOpened$.set(!1)},u0=()=>{ne.log("destroy store"),clearTimeout(ko),clearTimeout(vo),Te.unsubscribe(),Wi.unsubscribe(),N.destroy(),_e.destroy(),ce==null||ce.destroy(),ge==null||ge.destroy(),Gt.unsubscribe(),Kt==null||Kt.disconnect(),Kt=null,Ae.destroy()},Pt={interfaceLanguage$:Rt,isCyrillicRelatedInterface$:xe,initVideo:At,videoId:i,isClip:o,playerPhase:Be,vsid:je,state:{positionExact$:U,positionWithScrubbing$:Gi,duration$:Xi,playbackState$:at,isPlaying$:er,isLoaderVisible:$n,bufferedProgress$:Cn,isLive$:ut,canChangePlaybackSpeed$:rt,isActiveLive$:Or,isOldestAvailableLive$:Dn,isRewindableLive$:Dr,isEnded$:li,muted$:Et,volume$:bi,trafficSavingEnabled$:nn,highQualityEnabled$:Do,autoQualityLimitingAvailable$:rn,availableVideoStreams$:an,availableAudioStreams$:ir,videoStream$:Ji,audioStream$:zo,currentQuality$:hr,isAutoQualityEnabled$:xn,availableQualities$:it,currentPlaybackRate$:ii,availablePlaybackRates$:wn,currentSubtitle$:Mi,availableTextTracks$:ln,availableSubtitlesList$:po,currentSubtitleCaptions$:$r,isAutoSubtitleCaptionVisible$:Hr,chromecastState$:Ei,chromecastDeviceName$:Ho,chromecastConnected$:vr,currentFormat$:bn,throughputEstimation$:Hi,videoBitrate$:qi,videoSize$:wo,errorLog$:Xt,crashed$:Ut,isAudioAvailable$:On,isAudioDisabled:!!l,canDownload:ae.features.download&&!!d,availableSources$:yr,hasMpegSources$:fo,isInteractive:S,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!ye(_o).length,interactiveEpisodes$:_o,isInteractiveTime$:I?ei(I):re(!1),isInteractiveExpectation$:d0,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,looped$:un,loadedMetadata$:Qe,isAutoQualityAvailable$:_r},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:tt,isFullscreenOpenedByKeyboard:ht,rotateAlpha:wt,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:Li,mobileNotReportControlHidden$:Vi,icon3DVideoVisible:re(!1),scrubbingInProgress:Ke,volumeChangingInProgress:jo,is3DVideo:Ft,currentGridType$:Ht,additionalButtonsDeprecated$:fn,additionalDesktopControlPanelRightButtons$:Sr,additionalSettingsMenuItems$:Ii,additionalContextMenuItems$:ao,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:ro,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:pn,firstStart:c=>oc(c,!1),play:()=>tc(!1),pause:()=>bl(!1),togglePlay:Cr,toggleMuted:Jt,openSettingsMenu:Fr,closeSettingsMenu:qo,openSettingsSubMenu:St,closeSettingsSubMenu:xr,setVolume:cn,startVolumeChanging:go,stopVolumeChanging:et,setVideoStream:or,setAudioStream:yn,setQuality:ot,setTrafficSavingEnabled:kt,setHighQualityEnabled:fi,setPlaybackRate:oo,incrementPlaybackRate:no,decrementPlaybackRate:Ko,setSubtitle:Qo,toggleSubtitle:En,togglePictureInPicture:Po,startScrubbing:jt,progressScrubbing:$i,completeScrubbing:mi,toggleChromecast:ec,switchToActiveLive:xs,switchFromAdsToVideo:Yd,switchFromVideoToAds:Nu,skipAd:_l,setLiveWaitingStart:Zd,setLiveWaitingRecover:Bu,setLiveWaitingRecord:Xd,getDebugTextData:Ou,getTraceTextData:Jd,getDebugPanelData:Du,getVideoElement:zs,seekTime:(c,x,L)=>mo(c,x,L),clearDelayedBufferingCheckTimeout:Uo,seekEpisodeStartTime:lr,seekToPercent:zn,getNextEpisode:nc,seekToNextEpisode:Hu,getPrevEpisode:rc,seekToPrevEpisode:Ge,startLogging:qt,stopLogging:ni,startCameraManualRotation:Bo,stopCameraManualRotation:Bt,moveCameraFocusPX:_t,holdCamera:Si,releaseCamera:Oo,getVideoEpisodes:Ma,getPreviewThumbsData:ai,downloadVideo:Wo,addLanguage:Yp,setLanguage:ee,nextMovie:Xe,videoRotate:Ws,correctSeekTimeToInteractive:uv,replayInteractive:A,setLooped:To,reportProblem:Sn,setAutoplayNextEnabled:eo,setTimerNextVideoRunning:Tn,prevVideoClick:Eo,nextVideoClick:ar,nextVideoAnnouncementShow:Ur,nextVideoAnnouncementClick:ss,nextVideoAnnouncementAuto:zr,nextVideoAnnouncementCancel:to},external:{firstStart:c=>oc(c,!0),play:()=>tc(!0),pause:()=>bl(!0),stop:()=>ic(!0),seekTime:c=>dr(c),seekEpisodeStartTime:c=>qr(c),setPlaybackRate:c=>Io(c),setAutoQualityLimits:c=>Wr(c),setMuted:So,toggleSubtitle:En,setVolume:cn,returnFocusToEpisodes:c0,updateAdditionalSettingsItem:Aa,addAdditionalSettingsItem:Us,removeAdditionalSettingsItem:bt,updateAdditionalContextItem:Zo,addAdditionalContextItem:Fi,removeAdditionalContextItem:si,updateAdditionalButton:In,addAdditionalButton:Wn,removeAdditionalButton:Tr,setLiveLowLatency:ho,hideControls:()=>Qi(!1),showControls:()=>Qi(!0)}},callbacks:a,setUiCallbacks:c=>{Z={...c}},getAdmanWrapper:()=>_e,getLogger:()=>He,getPlayer:()=>N,destroy:u0};return Pt};function Rr(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}=hs(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 gy=["disabledControls$","additionalButtons"],hy=["interactiveTimeIndicator"],pl=(t,e,i,o)=>{if(t){for(let[n,r]of Object.entries(e))if(!gy.includes(n)){let l=o||hy.includes(n);r.set(Rr(t,i,n,l))}}};var gu=async(t,e,i)=>{await $o(),e&&i&&(i.focus(),t.set(!1))};var _y=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 jf(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":"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 Yf(t,e){D(e,!0);let[i,o]=Oe(),n=()=>C(a,"$contextMenuVisible$",i),r=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=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($)&&xt(()=>{u.set(s($))})});let w=I=>{let A=Ns(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":"");Vt(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)=>{jf(I,{})},$$slots:{default:!0}}),H(),o()}var by=t=>{t.stopPropagation()},$y=M("<div><!> <div></div> <div></div></div>"),yy={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
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.`},Vh=V_;var vs=new Map;vs.set(Nh.EN,Vh)
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 Cd(t,e){var ue;H(e,!0),z(t,$y);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$,G=g(()=>!n()&&r()),q=g(()=>Ds(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())};Vn(()=>{A.clearTimeout(),de()});let me=()=>{A.set(!1)},se=U("tooltip_interactive_interaction_time_indicator");var Le=by();let oe;Le.__mousemove=[_y],Le.__click=Ie;var N=_(Le);Co(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)=>{vd(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 ce;rt(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)})]),xt("mouseleave",Le,me),b(t,Le),F(),o()}ut(["mousemove","click"]);function hu(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);Co(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);xi(f,()=>s(p),(v,u)=>{u(v,ms(()=>{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 xy=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 Zf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=xy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:re}),we(),h(o),b(t,o)}function Hs(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");Zf(t,{get style(){return s(l)},get width(){return n()},get height(){return r()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var wy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Cy=M("<!> <!>",1),Sy={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 ya(t,e){H(e,!0),z(t,Sy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ee().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),p=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Rt(t,{get className(){return s(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return s(d)},get click(){return e.click},get ariaKeyShortCut(){return s(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var u=Cy(),$=fe(u);{var w=T=>{var I=wy();b(T,I)};V($,T=>{o()&&T(w)})}var y=P($,2);let S=g(()=>e.type==="prev");Hs(y,{get isMobile(){return o()},get isPrev(){return s(S)}}),b(f,u)},$$slots:{default:!0}}),F()}var Ty=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 Sd(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","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)}import{noop as Ey}from"@vkontakte/videoplayer-shared/es2018";var Iy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ky=M("<!> <div><!></div>",1),Py={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function fl(t,e){H(e,!0),z(t,Py);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,Ey),d=U("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${r()}`);Rt(t,{get className(){return s(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return ts.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var v=ky(),u=fe(v);{var $=T=>{var I=Iy();b(T,I)};V(u,T=>{o()&&T($)})}var w=P(u,2);let y;var S=_(w);Sd(S,{}),h(w),O(T=>y=ie(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(p,v)},$$slots:{default:!0}}),F()}var Ay=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 Nr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=Ay(),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 My=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=My(),d=_(l);h(l),O(()=>{De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",n()),De(d,"fill",r())}),b(t,l)}import{noop as Ly}from"@vkontakte/videoplayer-shared/es2018";var Vy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Ry=M("<!> <div><!></div>",1),Ny={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function ml(t,e){H(e,!0),z(t,Ny);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,Ly),$=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:Nr),k=g(()=>`${d()?"btn-m--play":""} ${f()}`),E=g(()=>s(S)?s(y):v());Rt(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 ts.KeyK},get ref(){return l()},set ref(R){l(R)},children:(R,G)=>{var q=Ry();let W=g(()=>s(A));var Q=fe(q);{var X=ve=>{var Ie=Vy();b(ve,Ie)};V(Q,ve=>{d()&&ve(X)})}var Y=P(Q,2);let de;var le=_(Y);xi(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 By=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 Xf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=By();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 Td(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":"");Rt(t,{get className(){return s(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Xf(d,{})},$$slots:{default:!0}}),F()}var Oy=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Dy={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 Ed(t,e){H(e,!0),z(t,Dy);let[i,o]=Oe(),n=()=>C(a,"$autoplayNextEnabled$",i),r=m(e,"ref",15,void 0),l=Ee(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,p=l.actions.internal.setAutoplayNextEnabled,f=()=>{p(!n(),!0)},v=d("aria_label_autoplay"),u=g(()=>n()?"true":"false");Rt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return s(u)},get ref(){return r()},set ref($){r($)},children:($,w)=>{var y=Oy(),S=_(y);let T;var I=_(S);{var A=E=>{Nr(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 Hy=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 Jf(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":"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 Id(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":"");Rt(t,{get className(){return s(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Jf(d,{})},$$slots:{default:!0}}),F()}var Fy=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 em(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",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 Uy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function tm(t,e){z(t,Uy);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");em(t,{get"data-testid"(){return s(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=m(e,"graphIsOpened",3,!1),d=Ee().ui.t,a=g(()=>r()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=g(()=>o()?"hidden":"");Rt(t,{get className(){return s(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let u=g(()=>!!r());tm(f,{get isOpened(){return s(u)}})},$$slots:{default:!0}}),F()}import{PlaybackState as y1}from"@vkontakte/videoplayer-core/es2018";function Pd(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()===y1.PAUSED&&v()}),$=g(()=>r()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),y=g(()=>l()&&n()===y1.PLAYING);Rt(t,{get className(){return s($)},get testId(){return s(w)},get disabled(){return s(y)},get ariaLabel(){return d()},get click(){return s(u)},children:(S,T)=>{ed(S,{get isActive(){return l()}})},$$slots:{default:!0}}),F(),o()}import{noop as x1}from"@vkontakte/videoplayer-shared/es2018";var zy=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Wy=M('<img class="icon" aria-hidden="true"/>');function xa(t,e){"use strict";let i=j(!1),o=()=>{B(i,!0)};var n=Ue(),r=fe(n);{var l=a=>{var p=zy();b(a,p)},d=a=>{var p=Wy();O(()=>De(p,"src",e.icon)),xt("error",p,o),ia(p),b(a,p)};V(r,a=>{s(i)?a(l):a(d,!1)})}b(t,n)}function im(t,e){H(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,x1),n=m(e,"ref",15),r=g(()=>o()===x1),l=g(()=>s(r)||i()),d=g(()=>s(r)?"btn-full-opacity":"");Co(t,{get disabled(){return s(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,p)=>{let f=g(()=>{var v;return(v=e.testId)!=null?v:e.id});Rt(a,{get className(){return s(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(l)},get testId(){return s(f)},children:(v,u)=>{xa(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var w1=t=>!!t.buttonComponent;var ys={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var _u=(t,e,i,o)=>{if(t)for(let[n,r]of Object.entries(e))r.set(Rr(t,i,n,o))};var Qy=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),Gy={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function nm(t,e){var Aa,Us;H(e,!0),z(t,Gy);let[i,o]=Oe(),n=()=>C(yt,"$disabledControls$",i),r=()=>C(Gt,"$adPlaybackState",i),l=()=>C(Et,"$playbackState$",i),d=()=>C(kt,"$currentSubtitle$",i),a=()=>C(di,"$isEnded$",i),p=()=>C(Ho,"$currentGridType$",i),f=()=>C(ei,"$isLive$",i),v=()=>C(Ki,"$chromecastState$",i),u=()=>C(qi,"$isPictureInPictureActive",i),$=()=>C(ri,"$pictureInPictureType$",i),w=()=>C(Do,"$availableSubtitlesList$",i),y=()=>C(D,"$contextMenuOpenedByKeyboard$",i),S=()=>C(Ci,"$showContextMenuBtn$",i),T=()=>C(Hi,"$playerSize",i),I=()=>C(Qt,"$isRewindableLive$",i),A=()=>C(st,"$isActiveLive$",i),k=()=>C(zo,"$graphIsOpened$",i),E=()=>C(Ai,"$contextMenuVisible$",i),R=()=>C(Mt,"$isFullscreen",i),G=()=>C(Si,"$autoplayNextEnabled",i),q=()=>C(s(Fr),"$prevButton",i),W=()=>C(s(xr),"$replayButton",i),Q=()=>C(s(wt),"$playButton",i),X=()=>C(s(Lt),"$nextButton",i),Y=()=>C(s(cn),"$playPrevChapterButton",i),de=()=>C(s(Eo),"$seekToInteractiveButton",i),le=()=>C(s(un),"$interactiveGraphButton",i),ve=()=>C(s(Io),"$liveButton",i),Ie=()=>C(s(Sn),"$time",i),me=()=>C(s(oo),"$episodes",i),se=()=>C(s(Tn),"$vkLogo",i),Le=()=>C(s(ko),"$volume",i),oe=()=>C(s(ar),"$subtitles",i),N=()=>C(s(wr),"$settings",i),He=()=>C(s(Ur),"$context",i),_e=()=>C(s(ss),"$fullscreen",i),ge=()=>C(s(zr),"$chromecast",i),ce=()=>C(rn,"$additionalDesktopControlPanelRightButtons$",i),ue=()=>C(Qi,"$isInteractiveTime$",i),pe=()=>C(bi,"$settingsMenuVisible",i),ee=()=>C(ro,"$settingButtonRef$",i),Qe=()=>C(Bt,"$startedByKeyboard$",i),Ze=()=>C(Kt,"$isAudioAvailable$",i),Z=()=>C(Wt,"$fakeIsPlaying$",i),Ae=()=>C($n,"$seekToInteractiveDisabledTooltip$",i),Te=()=>C(at,"$adPosition",i),je=()=>C(Je,"$position$",i),tt=()=>C(Xe,"$adDuration",i),vt=()=>C(Re,"$duration$",i),It=m(e,"playerControlsWrapperRef",15,void 0),dt=m(e,"playerControlsRef",15,void 0),qe=m(e,"isAds",3,!1),zt=m(e,"logoTargetUrl",3,""),Yt=m(e,"isOneVideoPlaylist",3,!1),qt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Wt}=po(),ae=Ee(),Tt=po(),xe=St(),he=ae.actions.internal.toggleMuted,te=ae.actions.internal.togglePlay,Ne=ae.actions.internal.pause,ze=ae.actions.internal.toggleSubtitle,Ve=(Aa=ae.callbacks)==null?void 0:Aa.onAudioDoesNotExistHint,Fe=(Us=ae.callbacks)==null?void 0:Us.onAudioDisabledHint,Re=ae.state.duration$,Je=ae.state.positionWithScrubbing$,Et=ae.state.playbackState$,Kt=ae.state.isAudioAvailable$,it=ae.state.isAudioDisabled,di=ae.state.isEnded$,ei=ae.state.isLive$,st=ae.state.isActiveLive$,Qt=ae.state.isRewindableLive$,{isActive$:qi,type$:ri}=Tt.pictureInPicture$,bi=ae.ui.settingsMenu.visible$,eo=ae.ui.settingsMenu.openedByBtnKeyboard$,Ft=ae.ui.controls,ci=ae.actions.internal.getVideoEpisodes(),Ki=ae.state.chromecastState$,Do=ae.state.availableSubtitlesList$,kt=ae.state.currentSubtitle$,yt=Ft.disabledControls$,Ai=ae.ui.contextMenu.visible$,Ci=ae.ui.contextMenu.showContextMenuBtn$,D=ae.ui.contextMenu.openedByBtnKeyboard$,Bt=ae.ui.startedByKeyboard$,li=ae.ui.controlBlocks,gt=ae.ui.t,Xe=ae.ads.duration,at=ae.ads.position,Gt=ae.ads.playbackState,Mt=ae.ui.isFullscreen,Hi=ae.ui.playerSize,Ho=ae.ui.currentGridType$,rn=ae.ui.additionalDesktopControlPanelRightButtons$,Si=ae.ui.autoplayNextEnabled$,_t=ae.actions.internal.getVideoElement,Ti=ae.actions.internal.replayInteractive,Fo=ae.actions.internal.prevVideoClick,bn=ae.actions.internal.nextVideoClick,Fi=ae.state.isInteractive,Qi=ae.state.isInteractiveTime$,So=ae.state.showInteractiveGraph,sn=ae.state.showSeekToInteractive,On=ae.state.showPlayPrevChapter,ui=ae.state.showInteractiveTimeIndicator,Uo=ae.state.playPrevChapterDisabledTooltip,$n=Tt.seekToInteractiveDisabledTooltip$,zo=Tt.graphIsOpened$,to=xe.features.interactiveResponsiveUi,er=g(()=>n().has("EPISODE_BUTTON")),Or=g(()=>n().has("GRAPH_BUTTON")),Dn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),tr=g(()=>n().has("PLAY_BUTTON")),Dr=g(()=>n().has("REPLAY_BUTTON")),vr=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),an=()=>ae.actions.internal.toggleChromecast(),ir=g(()=>qe()?r()==="playing":l()===om.PLAYING),io=g(()=>d().value!=="off"),Wo=g(()=>a()&&!qe()||Fi),or=g(()=>to?s(Wo)&&Di(p(),"m"):s(Wo)),yn=g(()=>!a()||Fi||qe()),nr=g(()=>Di(p(),"m")),Hn=g(()=>e.showNextPrevButtons&&Di(p(),"m")&&!qe()&&e.nextButtonActive),rr=g(()=>e.showNextPrevButtons&&Di(p(),"m")&&!qe()&&e.prevButtonActive),Fn=g(()=>!qe()&&!!f()),xn=g(()=>v()!==C1.NOT_AVAILABLE&&!(u()&&$()===1)&&Di(p(),"m")&&!Fi),gr=g(()=>e.showAutoplayNext&&!Yt()&&Di(p(),"s")),hr=g(()=>w().length>0&&Di(p(),"m")),_r=g(()=>y()||S()),ot=g(()=>Di(p(),"s")&&!qe()),oi=g(()=>!e.logoHidden&&!qe()),wn=g(()=>xe.features.fullscreen&&(e.logoHidden||Di(p(),to?"xs":"s"))&&!(u()&&$()===1)&&(Fi?qt():!0)),$i=g(()=>(!f()||qe())&&!(xe.features.interactiveHideTime&&Fi)),Mi=g(()=>T().width>100),ln=g(()=>So&&Di(p(),"m")),dn=g(()=>to?sn&&Di(p(),"s"):sn),fo=g(()=>to?On&&Di(p(),"s"):On),Un=g(()=>!qe()&&!f()&&!!(ci!=null&&ci.length)&&s(nr)&&!s(er)),mo=g(()=>!I()||!!A()),To=g(()=>k()?gt("tooltip_interactive_graph_on"):gt("tooltip_interactive_graph_off")),br=g(()=>E()?gt("tooltip_context_menu_close"):gt("tooltip_context_menu_open")),rs=(ht,ct)=>ht?ct&&ct===om.PAUSED?gt("tooltip_play"):"":gt("tooltip_live"),$r=g(()=>rs(s(mo),l())),Hr=g(()=>xe.logoType==="vk_video"?gt("tooltip_vk_video_logo"):gt("tooltip_vk_logo")),Cn=g(()=>s(io)?gt("tooltip_subtitles_on"):gt("tooltip_subtitles_off")),yr=g(()=>R()?gt("tooltip_fullscreen_on"):gt("tooltip_fullscreen_off")),vo=g(()=>v()===C1.CONNECTED?gt("tooltip_chromecast_on"):gt("tooltip_chromecast_off")),sr=g(()=>G()?gt("tooltip_autoplay_on"):gt("tooltip_autoplay_off")),qo=j(0),ti=ni({}),Ko=ni({}),Fr=g(()=>Ft.prevButton),xr=g(()=>Ft.replayButton),wt=g(()=>Ft.playButton),Lt=g(()=>Ft.nextButton),cn=g(()=>Ft.playPrevChapterButton),Eo=g(()=>Ft.seekToInteractiveButton),un=g(()=>Ft.interactiveGraphButton),Io=g(()=>Ft.liveButton),Sn=g(()=>Ft.time),oo=g(()=>Ft.episodes),Tn=g(()=>Ft.vkLogo),ko=g(()=>Ft.volume),ar=g(()=>Ft.subtitles),wr=g(()=>Ft.settings),Ur=g(()=>Ft.context),ss=g(()=>Ft.fullscreen),zr=g(()=>Ft.chromecast),no=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(ht=>[...ht,40],[]):[]})),pn=j(0);We(()=>{(!s(pn)||s(pn)<s(no).time)&&$t(()=>B(pn,s(no).time,!0))});let Cr=j(!1);We(()=>{let ht=0;s(Un)&&(Di(p(),"xl")?ht=s(no).time:ht=60);let ct=s(no).prevButton+s(no).playButton+s(no).nextButton+s(no).seekToInteractiveButton+s(no).interactiveGraphButton+s(no).liveButton+s(pn)+ht;B(Cr,s($i)&&s(qo)>=ct,!0)});let nt=g(()=>s(Cr)&&Di(p(),"m")),Pt=S1(pl,260),pi=S1(_u,260);We(()=>{T(),ue(),Pt(_t(),Ft,ti,e.showControls),pi(_t(),li,Ko,e.showControls)}),We(()=>{Ko.bottom=It()});let ro=ne();We(()=>{pe(),ee()&&$t(()=>sl(ee(),pe(),eo))});let Gi;We(()=>{Qe(),$t(()=>gu(Bt,Qe(),Gi))});function so(){Bs({isAudioDisabled:it,isAudioAvailable:Ze(),isAds:qe(),audioIsNotExistHintCallback:Ve,audioDisabledHintCallback:Fe})&&he()}let ao=Fi?Ti:te,Qo=g(()=>Z()!==null),Go=g(()=>s(Qo)?Z():s(ir)),En=g(()=>s(Go)?gt("tooltip_pause"):gt("tooltip_play")),lo=gt("tooltip_episodes"),ji=g(()=>{var ht,ct,uo,Xo;return s(rr)?{id:"prevButton",type:"desktop-control-panel-left",weight:bs.prevButton,buttonComponent:ya,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Fo.bind(null,!0)},tooltipEnabled:!((ct=(ht=ae.callbacks)==null?void 0:ht.uiInfo)!=null&&ct.onPrevButtonMouseEnter)&&!((Xo=(uo=ae.callbacks)==null?void 0:uo.uiInfo)!=null&&Xo.onPrevButtonMouseLeave),mouseEnter:()=>{var Ui,si,Vi;(Vi=(si=(Ui=ae.callbacks)==null?void 0:Ui.uiInfo)==null?void 0:si.onPrevButtonMouseEnter)==null||Vi.call(si,Rr(_t(),ti,"prevButton",e.showControls))},mouseLeave:()=>{var Ui,si,Vi;(Vi=(si=(Ui=ae.callbacks)==null?void 0:Ui.uiInfo)==null?void 0:si.onPrevButtonMouseLeave)==null||Vi.call(si,Rr(_t(),ti,"prevButton",e.showControls))},tooltipText:gt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),go=g(()=>s(or)?{id:"replayButton",type:"desktop-control-panel-left",weight:bs.replayButton,buttonComponent:fl,buttonComponentProps:{disabled:s(Dr),click:ao},tooltipText:gt("tooltip_restart"),disabled:s(Dr)}:void 0),lr=g(()=>s(yn)?{id:"playButton",type:"desktop-control-panel-left",weight:bs.playButton,buttonComponent:ml,buttonComponentProps:{disabled:s(tr),isPlaying:s(ir),click:te},tooltipText:s(En),disabled:s(tr)}:void 0),zn=g(()=>{var ht,ct,uo,Xo;return s(Hn)?{id:"nextButton",type:"desktop-control-panel-left",weight:bs.nextButton,buttonComponent:ya,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:bn.bind(null,!0)},tooltipEnabled:!((ct=(ht=ae.callbacks)==null?void 0:ht.uiInfo)!=null&&ct.onNextButtonMouseEnter)&&!((Xo=(uo=ae.callbacks)==null?void 0:uo.uiInfo)!=null&&Xo.onNextButtonMouseLeave),mouseEnter:()=>{var Ui,si,Vi;(Vi=(si=(Ui=ae.callbacks)==null?void 0:Ui.uiInfo)==null?void 0:si.onNextButtonMouseEnter)==null||Vi.call(si,Rr(_t(),ti,"nextButton",e.showControls))},mouseLeave:()=>{var Ui,si,Vi;(Vi=(si=(Ui=ae.callbacks)==null?void 0:Ui.uiInfo)==null?void 0:si.onNextButtonMouseLeave)==null||Vi.call(si,Rr(_t(),ti,"nextButton",e.showControls))},tooltipText:gt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),dr=g(()=>Fi&&s(fo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:bs.playPrevChapterButton,buttonComponent:Td,buttonComponentProps:{disabled:s(vr),click:e.playPrevChapter},tooltipText:gt("tooltip_interactive_go_back"),disabledTooltipContent:gt(Uo),disabled:s(vr)}:void 0),Wr=g(()=>Fi&&s(dn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:bs.seekToInteractiveButton,buttonComponent:Id,buttonComponentProps:{disabled:s(Dn),click:e.seekToInteractive},tooltipText:gt("tooltip_interactive_seek"),disabled:s(Dn),disabledTooltipContent:gt(Ae())}:void 0),qr=g(()=>Fi&&s(ln)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:bs.interactiveGraphButton,buttonComponent:kd,buttonComponentProps:{disabled:s(Or),click:zo.toggle,graphIsOpened:k()},tooltipText:s(To)}:void 0),Po=g(()=>s(Fn)?{id:"liveButton",type:"desktop-control-panel-left",weight:bs.liveButton,buttonComponent:Pd,buttonComponentProps:{isLiveActive:s(mo),ariaLabel:s($r)},tooltipText:s($r),disabled:s(mo)&&l()===om.PLAYING}:void 0),jo=g(()=>[s(ji),s(go),s(lr),s(zn),s(dr),s(Wr),s(qr),s(Po)].filter(ht=>!!ht).sort(fa)),Ke=g(()=>s(oi)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ys.vkLogo,buttonComponent:hd,buttonComponentProps:{targetUrl:zt(),logoClickable:e.logoClickable,click:Ne},tooltipText:s(Hr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Zt=g(()=>s(gr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ys.autoplayNext,buttonComponent:Ed,tooltipText:s(sr)}:void 0),_i=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:ys.volume,buttonComponent:Af,buttonComponentProps:{click:so,isAds:qe()}})),ho=g(()=>s(hr)?{id:"subtitles",type:"desktop-control-panel-right",weight:ys.subtitles,buttonComponent:Tf,buttonComponentProps:{isSubtitlesEnabled:s(io),click:ze},tooltipText:s(Cn)}:void 0),Ao=g(()=>s(ot)?{id:"settings",type:"desktop-control-panel-right",weight:ys.settings,buttonComponent:cl,buttonComponentProps:{ref$:ro},tooltipText:pe()?void 0:gt("tooltip_settings_off")}:void 0),Se=g(()=>xe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ys.context,buttonComponent:Yf,buttonComponentProps:{ariaLabel:gt("aria_label_context_menu")},className:s(_r)?"":"out-of-view",tooltipText:s(br)}:void 0),bt=g(()=>s(wn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ys.fullscreen,buttonComponent:gd,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:s(yr)}:void 0),fi=g(()=>s(xn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ys.chromecast,buttonComponent:_d,buttonComponentProps:{state:v(),click:an},tooltipText:s(vo)}:void 0),Yi=g(()=>[s(Ke),s(Zt),s(_i),s(ho),s(Ao),s(Se),s(bt),s(fi),...ce()].filter(ht=>!!ht).sort(fa));var Yo=Qy(),_o=fe(Yo);let et;var Ht=_(_o);let Li=g(()=>!e.showControls),Zo=g(()=>!s(Mi));ba(Ht,{get isHidden(){return s(Li)},get timelineNotAvailable(){return s(Zo)},get isAds(){return qe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return ti.timeline},set ref(ht){ti.timeline=ht}});var fn=P(Ht,2),co=_(fn),Kr=_(co);yi(Kr,17,()=>s(jo),ht=>ht.id,(ht,ct)=>{hu(ht,{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 ti[s(ct).id]},set ref(uo){ti[s(ct).id]=uo}})});var Sr=P(Kr,2);{var vi=ht=>{let ct=g(()=>!e.showControls),uo=g(()=>qe()?Te():je()),Xo=g(()=>qe()?tt():vt());md(ht,{get isHidden(){return s(ct)},isMobile:!1,get showDuration(){return s(nt)},get position(){return s(uo)},get duration(){return s(Xo)},get ref(){return ti.time},set ref(Ui){ti.time=Ui}})};V(Sr,ht=>{s($i)&&ht(vi)})}var Ei=P(Sr,2);let In=g(()=>!s(Un));Co(Ei,{className:"w-max",get disabled(){return s(In)},get tooltipContent(){return lo},get ref(){return ti.episodes},set ref(ht){ti.episodes=ht},children:(ht,ct)=>{var uo=Ue(),Xo=fe(uo);{var Ui=si=>{$d(si,{get position(){return je()},get duration(){return vt()},get timeCodes(){return ci}})};V(Xo,si=>{s(Un)&&si(Ui)})}b(ht,uo)},$$slots:{default:!0}}),h(co);var Wn=P(co,2);yi(Wn,21,()=>s(Yi),ht=>ht.id,(ht,ct)=>{var uo=Ue(),Xo=fe(uo);{var Ui=Vi=>{hu(Vi,{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 ti[s(ct).id]},set ref(xs){ti[s(ct).id]=xs}})},si=Vi=>{let xs=g(()=>!!s(ct).disabled);im(Vi,{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(xs)},get onClick(){return s(ct).onClick},get disableMouseupTooltipShow(){return s(ct).disableMouseupTooltipShow},get ref(){return ti[s(ct).id]},set ref(_l){ti[s(ct).id]=_l}})};V(Xo,Vi=>{w1(s(ct))?Vi(Ui):Vi(si,!1)})}b(ht,uo)}),h(Wn),h(fn),rt(fn,ht=>dt(ht),()=>dt()),h(_o),rt(_o,ht=>It(ht),()=>It());var Tr=P(_o,2);{var bo=ht=>{Cd(ht,{get ref(){return ti.interactiveTimeIndicator},set ref(ct){ti.interactiveTimeIndicator=ct}})};V(Tr,ht=>{ui&&ht(bo)})}O(ht=>et=ie(_o,1,"wrapper-bottom svelte-f6e8ix",null,et,ht),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),es(co,"clientWidth",ht=>B(qo,ht)),b(t,Yo),F(),o()}import{ChromecastState as E1,PlaybackState as I1}from"@vkontakte/videoplayer-core/es2018";import{noop as T1}from"@vkontakte/videoplayer-shared/es2018";var jy=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Yy=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),Zy={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function rm(t,e){z(t,Zy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,T1),n=g(()=>o()===T1),r=g(()=>s(n)||i()),l=j(!1),d=()=>{B(l,!0)},a=g(()=>s(n)?"btn-full-opacity":"");Rt(t,{get className(){return s(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(r)},get testId(){return e.testId},children:(p,f)=>{var v=Ue(),u=fe(v);{var $=y=>{var S=jy();b(y,S)},w=y=>{var S=Yy();O(()=>De(S,"src",e.iconUrl)),xt("error",S,d),ia(S),b(y,S)};V(u,y=>{s(l)?y($):y(w,!1)})}b(p,v)},$$slots:{default:!0}})}var Xy=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 sm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Xy();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)}import{noop as Jy}from"@vkontakte/videoplayer-shared/es2018";var e4=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),t4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function bu(t,e){H(e,!0),z(t,t4);let i=m(e,"muted",3,!1),o=m(e,"click",3,Jy),n=m(e,"ref",15,void 0),l=Ee().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?sm:Os),p=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Rt(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=e4();let $=g(()=>s(a));var w=_(u);xi(w,()=>s($),(y,S)=>{S(y,{})}),h(u),b(f,u)},$$slots:{default:!0}}),F()}var i4=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 am(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=i4();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 o4={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function lm(t,e){z(t,o4);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");am(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}import{noop as n4}from"@vkontakte/videoplayer-shared/es2018";function dm(t,e){H(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,n4),r=U("menu_pip");Rt(t,{testId:"btn-pip",get ariaLabel(){return r},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{lm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}import{debounceFn as k1}from"@vkontakte/videoplayer-shared/es2018";var r4=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},s4=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},a4=M("<div><!></div>"),l4=M("<div><!></div>"),d4=M("<div><!></div>"),c4=M("<!> <!> <!>",1),u4=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),p4=M('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),f4=M("<div><!></div> <!> <div><!></div>",1),m4=M('<div aria-hidden="true">\xB7</div> <!>',1),v4=M('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!> <!></div></div> <!></div></div> <!>',1),g4={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 Cd(t,e){var ue;D(e,!0),z(t,yy);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=lo(),{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(()=>Ds(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())};Vn(()=>{A.clearTimeout(),ce()});let ve=()=>{A.set(!1)},ae=F("tooltip_interactive_interaction_time_indicator");var Ve=$y();let ne;Ve.__mousemove=[by],Ve.__click=ke;var N=_(Ve);xo(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)=>{vd(pe,{completed:!0})},$$slots:{default:!0}});var He=P(N,2);let _e;nt(He,pe=>v(pe),()=>v());var ge=P(He,2);let de;nt(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)})]),Ct("mouseleave",Ve,ve),b(t,Ve),H(),o()}ct(["mousemove","click"]);function hu(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);xo(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);wi(f,()=>s(p),(v,u)=>{u(v,ms(()=>{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 wy=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 Zf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=wy();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 Hs(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");Zf(t,{get style(){return s(l)},get width(){return n()},get height(){return r()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var Cy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Sy=M("<!> <!>",1),Ty={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 ya(t,e){D(e,!0),z(t,Ty);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}`);Vt(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=Sy(),$=fe(u);{var w=T=>{var I=Cy();b(T,I)};V($,T=>{o()&&T(w)})}var y=P($,2);let S=g(()=>e.type==="prev");Hs(y,{get isMobile(){return o()},get isPrev(){return s(S)}}),b(f,u)},$$slots:{default:!0}}),H()}var Ey=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 Sd(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","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)}import{noop as Iy}from"@vkontakte/videoplayer-shared/es2018";var ky=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Py=M("<!> <div><!></div>",1),Ay={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function fl(t,e){D(e,!0),z(t,Ay);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,Iy),d=F("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${r()}`);Vt(t,{get className(){return s(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return ts.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var v=Py(),u=fe(v);{var $=T=>{var I=ky();b(T,I)};V(u,T=>{o()&&T($)})}var w=P(u,2);let y;var S=_(w);Sd(S,{}),h(w),O(T=>y=oe(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(p,v)},$$slots:{default:!0}}),H()}var My=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 Nr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=My(),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 Ly=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=Ly(),d=_(l);h(l),O(()=>{De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",n()),De(d,"fill",r())}),b(t,l)}import{noop as Vy}from"@vkontakte/videoplayer-shared/es2018";var Ry=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Ny=M("<!> <div><!></div>",1),By={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function ml(t,e){D(e,!0),z(t,By);let[i,o]=Oe(),n=()=>C(r,"$fakeIsPlaying$",i),{fakeIsPlaying$:r}=lo(),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,Vy),$=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:Nr),k=g(()=>`${d()?"btn-m--play":""} ${f()}`),E=g(()=>s(S)?s(y):v());Vt(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 ts.KeyK},get ref(){return l()},set ref(R){l(R)},children:(R,Q)=>{var q=Ny();let W=g(()=>s(A));var G=fe(q);{var X=me=>{var ke=Ry();b(me,ke)};V(G,me=>{d()&&me(X)})}var Y=P(G,2);let ce;var le=_(Y);wi(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 Oy=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 Xf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Oy();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 Td(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":"");Vt(t,{get className(){return s(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Xf(d,{})},$$slots:{default:!0}}),H()}var Dy=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Hy={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function Ed(t,e){D(e,!0),z(t,Hy);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");Vt(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=Dy(),S=_(y);let T;var I=_(S);{var A=E=>{Nr(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 Fy=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 Jf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",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 Id(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":"");Vt(t,{get className(){return s(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Jf(d,{})},$$slots:{default:!0}}),H()}var Uy=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 em(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",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 zy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function tm(t,e){z(t,zy);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");em(t,{get"data-testid"(){return s(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=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":"");Vt(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());tm(f,{get isOpened(){return s(u)}})},$$slots:{default:!0}}),H()}import{PlaybackState as x1}from"@vkontakte/videoplayer-core/es2018";function Pd(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()===x1.PAUSED&&v()}),$=g(()=>r()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),y=g(()=>l()&&n()===x1.PLAYING);Vt(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)=>{ed(S,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}import{noop as w1}from"@vkontakte/videoplayer-shared/es2018";var Wy=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),qy=M('<img class="icon" aria-hidden="true"/>');function xa(t,e){"use strict";let i=j(!1),o=()=>{B(i,!0)};var n=Fe(),r=fe(n);{var l=a=>{var p=Wy();b(a,p)},d=a=>{var p=qy();O(()=>De(p,"src",e.icon)),Ct("error",p,o),ia(p),b(a,p)};V(r,a=>{s(i)?a(l):a(d,!1)})}b(t,n)}function im(t,e){D(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,w1),n=m(e,"ref",15),r=g(()=>o()===w1),l=g(()=>s(r)||i()),d=g(()=>s(r)?"btn-full-opacity":"");xo(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});Vt(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)=>{xa(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var C1=t=>!!t.buttonComponent;var ys={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var _u=(t,e,i,o)=>{if(t)for(let[n,r]of Object.entries(e))r.set(Rr(t,i,n,o))};var Gy=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),jy={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function nm(t,e){var Aa,Us;D(e,!0),z(t,jy);let[i,o]=Oe(),n=()=>C(Si,"$disabledControls$",i),r=()=>C(bi,"$adPlaybackState",i),l=()=>C(At,"$playbackState$",i),d=()=>C(_t,"$currentSubtitle$",i),a=()=>C(ci,"$isEnded$",i),p=()=>C(Do,"$currentGridType$",i),f=()=>C(ti,"$isLive$",i),v=()=>C(Bo,"$chromecastState$",i),u=()=>C(ri,"$isPictureInPictureActive",i),$=()=>C(ui,"$pictureInPictureType$",i),w=()=>C(Bt,"$availableSubtitlesList$",i),y=()=>C(at,"$contextMenuOpenedByKeyboard$",i),S=()=>C(U,"$showContextMenuBtn$",i),T=()=>C(nn,"$playerSize",i),I=()=>C(Kt,"$isRewindableLive$",i),A=()=>C(st,"$isActiveLive$",i),k=()=>C(Uo,"$graphIsOpened$",i),E=()=>C(Oo,"$contextMenuVisible$",i),R=()=>C(Et,"$isFullscreen",i),Q=()=>C(Ti,"$autoplayNextEnabled",i),q=()=>C(s(Fr),"$prevButton",i),W=()=>C(s(xr),"$replayButton",i),G=()=>C(s(St),"$playButton",i),X=()=>C(s(Mt),"$nextButton",i),Y=()=>C(s(cn),"$playPrevChapterButton",i),ce=()=>C(s(So),"$seekToInteractiveButton",i),le=()=>C(s(un),"$interactiveGraphButton",i),me=()=>C(s(To),"$liveButton",i),ke=()=>C(s(Sn),"$time",i),ve=()=>C(s(eo),"$episodes",i),ae=()=>C(s(Tn),"$vkLogo",i),Ve=()=>C(s(Eo),"$volume",i),ne=()=>C(s(ar),"$subtitles",i),N=()=>C(s(wr),"$settings",i),He=()=>C(s(Ur),"$context",i),_e=()=>C(s(ss),"$fullscreen",i),ge=()=>C(s(zr),"$chromecast",i),de=()=>C(rn,"$additionalDesktopControlPanelRightButtons$",i),ue=()=>C(qi,"$isInteractiveTime$",i),pe=()=>C(co,"$settingsMenuVisible",i),te=()=>C(io,"$settingButtonRef$",i),qe=()=>C(pi,"$startedByKeyboard$",i),Ze=()=>C(Wt,"$isAudioAvailable$",i),Z=()=>C(Ut,"$fakeIsPlaying$",i),Ae=()=>C($n,"$seekToInteractiveDisabledTooltip$",i),Te=()=>C(ft,"$adPosition",i),je=()=>C(Je,"$position$",i),tt=()=>C(rt,"$adDuration",i),ht=()=>C(Re,"$duration$",i),mt=m(e,"playerControlsWrapperRef",15,void 0),wt=m(e,"playerControlsRef",15,void 0),Qe=m(e,"isAds",3,!1),Ft=m(e,"logoTargetUrl",3,""),Xt=m(e,"isOneVideoPlaylist",3,!1),Gt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Ut}=lo(),ee=Ee(),Rt=lo(),xe=It(),he=ee.actions.internal.toggleMuted,ie=ee.actions.internal.togglePlay,Be=ee.actions.internal.pause,ze=ee.actions.internal.toggleSubtitle,Me=(Aa=ee.callbacks)==null?void 0:Aa.onAudioDoesNotExistHint,We=(Us=ee.callbacks)==null?void 0:Us.onAudioDisabledHint,Re=ee.state.duration$,Je=ee.state.positionWithScrubbing$,At=ee.state.playbackState$,Wt=ee.state.isAudioAvailable$,Xe=ee.state.isAudioDisabled,ci=ee.state.isEnded$,ti=ee.state.isLive$,st=ee.state.isActiveLive$,Kt=ee.state.isRewindableLive$,{isActive$:ri,type$:ui}=Rt.pictureInPicture$,co=ee.ui.settingsMenu.visible$,Wi=ee.ui.settingsMenu.openedByBtnKeyboard$,qt=ee.ui.controls,ni=ee.actions.internal.getVideoEpisodes(),Bo=ee.state.chromecastState$,Bt=ee.state.availableSubtitlesList$,_t=ee.state.currentSubtitle$,Si=qt.disabledControls$,Oo=ee.ui.contextMenu.visible$,U=ee.ui.contextMenu.showContextMenuBtn$,at=ee.ui.contextMenu.openedByBtnKeyboard$,pi=ee.ui.startedByKeyboard$,li=ee.ui.controlBlocks,ut=ee.ui.t,rt=ee.ads.duration,ft=ee.ads.position,bi=ee.ads.playbackState,Et=ee.ui.isFullscreen,nn=ee.ui.playerSize,Do=ee.ui.currentGridType$,rn=ee.ui.additionalDesktopControlPanelRightButtons$,Ti=ee.ui.autoplayNextEnabled$,$t=ee.actions.internal.getVideoElement,Ei=ee.actions.internal.replayInteractive,Ho=ee.actions.internal.prevVideoClick,bn=ee.actions.internal.nextVideoClick,Hi=ee.state.isInteractive,qi=ee.state.isInteractiveTime$,wo=ee.state.showInteractiveGraph,sn=ee.state.showSeekToInteractive,On=ee.state.showPlayPrevChapter,di=ee.state.showInteractiveTimeIndicator,Fo=ee.state.playPrevChapterDisabledTooltip,$n=Rt.seekToInteractiveDisabledTooltip$,Uo=Rt.graphIsOpened$,Xi=xe.features.interactiveResponsiveUi,er=g(()=>n().has("EPISODE_BUTTON")),Or=g(()=>n().has("GRAPH_BUTTON")),Dn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),tr=g(()=>n().has("PLAY_BUTTON")),Dr=g(()=>n().has("REPLAY_BUTTON")),vr=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),an=()=>ee.actions.internal.toggleChromecast(),ir=g(()=>Qe()?r()==="playing":l()===om.PLAYING),Ji=g(()=>d().value!=="off"),zo=g(()=>a()&&!Qe()||Hi),or=g(()=>Xi?s(zo)&&Di(p(),"m"):s(zo)),yn=g(()=>!a()||Hi||Qe()),nr=g(()=>Di(p(),"m")),Hn=g(()=>e.showNextPrevButtons&&Di(p(),"m")&&!Qe()&&e.nextButtonActive),rr=g(()=>e.showNextPrevButtons&&Di(p(),"m")&&!Qe()&&e.prevButtonActive),Fn=g(()=>!Qe()&&!!f()),xn=g(()=>v()!==S1.NOT_AVAILABLE&&!(u()&&$()===1)&&Di(p(),"m")&&!Hi),gr=g(()=>e.showAutoplayNext&&!Xt()&&Di(p(),"s")),hr=g(()=>w().length>0&&Di(p(),"m")),_r=g(()=>y()||S()),it=g(()=>Di(p(),"s")&&!Qe()),ii=g(()=>!e.logoHidden&&!Qe()),wn=g(()=>xe.features.fullscreen&&(e.logoHidden||Di(p(),Xi?"xs":"s"))&&!(u()&&$()===1)&&(Hi?Gt():!0)),yi=g(()=>(!f()||Qe())&&!(xe.features.interactiveHideTime&&Hi)),Mi=g(()=>T().width>100),ln=g(()=>wo&&Di(p(),"m")),dn=g(()=>Xi?sn&&Di(p(),"s"):sn),uo=g(()=>Xi?On&&Di(p(),"s"):On),Un=g(()=>!Qe()&&!f()&&!!(ni!=null&&ni.length)&&s(nr)&&!s(er)),po=g(()=>!I()||!!A()),Co=g(()=>k()?ut("tooltip_interactive_graph_on"):ut("tooltip_interactive_graph_off")),br=g(()=>E()?ut("tooltip_context_menu_close"):ut("tooltip_context_menu_open")),rs=(bt,dt)=>bt?dt&&dt===om.PAUSED?ut("tooltip_play"):"":ut("tooltip_live"),$r=g(()=>rs(s(po),l())),Hr=g(()=>xe.logoType==="vk_video"?ut("tooltip_vk_video_logo"):ut("tooltip_vk_logo")),Cn=g(()=>s(Ji)?ut("tooltip_subtitles_on"):ut("tooltip_subtitles_off")),yr=g(()=>R()?ut("tooltip_fullscreen_on"):ut("tooltip_fullscreen_off")),fo=g(()=>v()===S1.CONNECTED?ut("tooltip_chromecast_on"):ut("tooltip_chromecast_off")),sr=g(()=>Q()?ut("tooltip_autoplay_on"):ut("tooltip_autoplay_off")),Wo=j(0),Jt=oi({}),qo=oi({}),Fr=g(()=>qt.prevButton),xr=g(()=>qt.replayButton),St=g(()=>qt.playButton),Mt=g(()=>qt.nextButton),cn=g(()=>qt.playPrevChapterButton),So=g(()=>qt.seekToInteractiveButton),un=g(()=>qt.interactiveGraphButton),To=g(()=>qt.liveButton),Sn=g(()=>qt.time),eo=g(()=>qt.episodes),Tn=g(()=>qt.vkLogo),Eo=g(()=>qt.volume),ar=g(()=>qt.subtitles),wr=g(()=>qt.settings),Ur=g(()=>qt.context),ss=g(()=>qt.fullscreen),zr=g(()=>qt.chromecast),to=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(bt=>[...bt,40],[]):[]})),pn=j(0);Ue(()=>{(!s(pn)||s(pn)<s(to).time)&&xt(()=>B(pn,s(to).time,!0))});let Cr=j(!1);Ue(()=>{let bt=0;s(Un)&&(Di(p(),"xl")?bt=s(to).time:bt=60);let dt=s(to).prevButton+s(to).playButton+s(to).nextButton+s(to).seekToInteractiveButton+s(to).interactiveGraphButton+s(to).liveButton+s(pn)+bt;B(Cr,s(yi)&&s(Wo)>=dt,!0)});let ot=g(()=>s(Cr)&&Di(p(),"m")),kt=T1(pl,260),fi=T1(_u,260);Ue(()=>{T(),ue(),kt($t(),qt,Jt,e.showControls),fi($t(),li,qo,e.showControls)}),Ue(()=>{qo.bottom=mt()});let io=re();Ue(()=>{pe(),te()&&xt(()=>sl(te(),pe(),Wi))});let Ki;Ue(()=>{qe(),xt(()=>gu(pi,qe(),Ki))});function oo(){Bs({isAudioDisabled:Xe,isAudioAvailable:Ze(),isAds:Qe(),audioIsNotExistHintCallback:Me,audioDisabledHintCallback:We})&&he()}let no=Hi?Ei:ie,Ko=g(()=>Z()!==null),Qo=g(()=>s(Ko)?Z():s(ir)),En=g(()=>s(Qo)?ut("tooltip_pause"):ut("tooltip_play")),ro=ut("tooltip_episodes"),Qi=g(()=>{var bt,dt,ao,Zo;return s(rr)?{id:"prevButton",type:"desktop-control-panel-left",weight:bs.prevButton,buttonComponent:ya,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ho.bind(null,!0)},tooltipEnabled:!((dt=(bt=ee.callbacks)==null?void 0:bt.uiInfo)!=null&&dt.onPrevButtonMouseEnter)&&!((Zo=(ao=ee.callbacks)==null?void 0:ao.uiInfo)!=null&&Zo.onPrevButtonMouseLeave),mouseEnter:()=>{var Fi,si,Vi;(Vi=(si=(Fi=ee.callbacks)==null?void 0:Fi.uiInfo)==null?void 0:si.onPrevButtonMouseEnter)==null||Vi.call(si,Rr($t(),Jt,"prevButton",e.showControls))},mouseLeave:()=>{var Fi,si,Vi;(Vi=(si=(Fi=ee.callbacks)==null?void 0:Fi.uiInfo)==null?void 0:si.onPrevButtonMouseLeave)==null||Vi.call(si,Rr($t(),Jt,"prevButton",e.showControls))},tooltipText:ut("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),mo=g(()=>s(or)?{id:"replayButton",type:"desktop-control-panel-left",weight:bs.replayButton,buttonComponent:fl,buttonComponentProps:{disabled:s(Dr),click:no},tooltipText:ut("tooltip_restart"),disabled:s(Dr)}:void 0),lr=g(()=>s(yn)?{id:"playButton",type:"desktop-control-panel-left",weight:bs.playButton,buttonComponent:ml,buttonComponentProps:{disabled:s(tr),isPlaying:s(ir),click:ie},tooltipText:s(En),disabled:s(tr)}:void 0),zn=g(()=>{var bt,dt,ao,Zo;return s(Hn)?{id:"nextButton",type:"desktop-control-panel-left",weight:bs.nextButton,buttonComponent:ya,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:bn.bind(null,!0)},tooltipEnabled:!((dt=(bt=ee.callbacks)==null?void 0:bt.uiInfo)!=null&&dt.onNextButtonMouseEnter)&&!((Zo=(ao=ee.callbacks)==null?void 0:ao.uiInfo)!=null&&Zo.onNextButtonMouseLeave),mouseEnter:()=>{var Fi,si,Vi;(Vi=(si=(Fi=ee.callbacks)==null?void 0:Fi.uiInfo)==null?void 0:si.onNextButtonMouseEnter)==null||Vi.call(si,Rr($t(),Jt,"nextButton",e.showControls))},mouseLeave:()=>{var Fi,si,Vi;(Vi=(si=(Fi=ee.callbacks)==null?void 0:Fi.uiInfo)==null?void 0:si.onNextButtonMouseLeave)==null||Vi.call(si,Rr($t(),Jt,"nextButton",e.showControls))},tooltipText:ut("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),dr=g(()=>Hi&&s(uo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:bs.playPrevChapterButton,buttonComponent:Td,buttonComponentProps:{disabled:s(vr),click:e.playPrevChapter},tooltipText:ut("tooltip_interactive_go_back"),disabledTooltipContent:ut(Fo),disabled:s(vr)}:void 0),Wr=g(()=>Hi&&s(dn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:bs.seekToInteractiveButton,buttonComponent:Id,buttonComponentProps:{disabled:s(Dn),click:e.seekToInteractive},tooltipText:ut("tooltip_interactive_seek"),disabled:s(Dn),disabledTooltipContent:ut(Ae())}:void 0),qr=g(()=>Hi&&s(ln)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:bs.interactiveGraphButton,buttonComponent:kd,buttonComponentProps:{disabled:s(Or),click:Uo.toggle,graphIsOpened:k()},tooltipText:s(Co)}:void 0),Io=g(()=>s(Fn)?{id:"liveButton",type:"desktop-control-panel-left",weight:bs.liveButton,buttonComponent:Pd,buttonComponentProps:{isLiveActive:s(po),ariaLabel:s($r)},tooltipText:s($r),disabled:s(po)&&l()===om.PLAYING}:void 0),Go=g(()=>[s(Qi),s(mo),s(lr),s(zn),s(dr),s(Wr),s(qr),s(Io)].filter(bt=>!!bt).sort(fa)),Ke=g(()=>s(ii)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ys.vkLogo,buttonComponent:hd,buttonComponentProps:{targetUrl:Ft(),logoClickable:e.logoClickable,click:Be},tooltipText:s(Hr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),jt=g(()=>s(gr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ys.autoplayNext,buttonComponent:Ed,tooltipText:s(sr)}:void 0),$i=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:ys.volume,buttonComponent:Af,buttonComponentProps:{click:oo,isAds:Qe()}})),vo=g(()=>s(hr)?{id:"subtitles",type:"desktop-control-panel-right",weight:ys.subtitles,buttonComponent:Tf,buttonComponentProps:{isSubtitlesEnabled:s(Ji),click:ze},tooltipText:s(Cn)}:void 0),ko=g(()=>s(it)?{id:"settings",type:"desktop-control-panel-right",weight:ys.settings,buttonComponent:cl,buttonComponentProps:{ref$:io},tooltipText:pe()?void 0:ut("tooltip_settings_off")}:void 0),Se=g(()=>xe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ys.context,buttonComponent:Yf,buttonComponentProps:{ariaLabel:ut("aria_label_context_menu")},className:s(_r)?"":"out-of-view",tooltipText:s(br)}:void 0),yt=g(()=>s(wn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ys.fullscreen,buttonComponent:gd,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:s(yr)}:void 0),mi=g(()=>s(xn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ys.chromecast,buttonComponent:_d,buttonComponentProps:{state:v(),click:an},tooltipText:s(fo)}:void 0),Gi=g(()=>[s(Ke),s(jt),s($i),s(vo),s(ko),s(Se),s(yt),s(mi),...de()].filter(bt=>!!bt).sort(fa));var jo=Gy(),go=fe(jo);let et;var Ht=_(go);let Li=g(()=>!e.showControls),Yo=g(()=>!s(Mi));ba(Ht,{get isHidden(){return s(Li)},get timelineNotAvailable(){return s(Yo)},get isAds(){return Qe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Jt.timeline},set ref(bt){Jt.timeline=bt}});var fn=P(Ht,2),so=_(fn),Kr=_(so);xi(Kr,17,()=>s(Go),bt=>bt.id,(bt,dt)=>{hu(bt,{get buttonComponent(){return s(dt).buttonComponent},get buttonComponentProps(){return s(dt).buttonComponentProps},get tooltipText(){return s(dt).tooltipText},get disabledTooltipContent(){return s(dt).disabledTooltipContent},get disabled(){return s(dt).disabled},get className(){return s(dt).className},get tooltipEnabled(){return s(dt).tooltipEnabled},get mouseEnter(){return s(dt).mouseEnter},get mouseLeave(){return s(dt).mouseLeave},get ref(){return Jt[s(dt).id]},set ref(ao){Jt[s(dt).id]=ao}})});var Sr=P(Kr,2);{var gi=bt=>{let dt=g(()=>!e.showControls),ao=g(()=>Qe()?Te():je()),Zo=g(()=>Qe()?tt():ht());md(bt,{get isHidden(){return s(dt)},isMobile:!1,get showDuration(){return s(ot)},get position(){return s(ao)},get duration(){return s(Zo)},get ref(){return Jt.time},set ref(Fi){Jt.time=Fi}})};V(Sr,bt=>{s(yi)&&bt(gi)})}var Ii=P(Sr,2);let In=g(()=>!s(Un));xo(Ii,{className:"w-max",get disabled(){return s(In)},get tooltipContent(){return ro},get ref(){return Jt.episodes},set ref(bt){Jt.episodes=bt},children:(bt,dt)=>{var ao=Fe(),Zo=fe(ao);{var Fi=si=>{$d(si,{get position(){return je()},get duration(){return ht()},get timeCodes(){return ni}})};V(Zo,si=>{s(Un)&&si(Fi)})}b(bt,ao)},$$slots:{default:!0}}),h(so);var Wn=P(so,2);xi(Wn,21,()=>s(Gi),bt=>bt.id,(bt,dt)=>{var ao=Fe(),Zo=fe(ao);{var Fi=Vi=>{hu(Vi,{get buttonComponent(){return s(dt).buttonComponent},get buttonComponentProps(){return s(dt).buttonComponentProps},get tooltipText(){return s(dt).tooltipText},get disabledTooltipContent(){return s(dt).disabledTooltipContent},get disabled(){return s(dt).disabled},get className(){return s(dt).className},get ref(){return Jt[s(dt).id]},set ref(xs){Jt[s(dt).id]=xs}})},si=Vi=>{let xs=g(()=>!!s(dt).disabled);im(Vi,{get id(){return s(dt).id},get testId(){return s(dt).testId},get icon(){return s(dt).icon},get ariaLabel(){return s(dt).ariaLabel},get tooltipText(){return s(dt).tooltipText},get disabledTooltipContent(){return s(dt).disabledTooltipContent},get disabled(){return s(xs)},get onClick(){return s(dt).onClick},get disableMouseupTooltipShow(){return s(dt).disableMouseupTooltipShow},get ref(){return Jt[s(dt).id]},set ref(_l){Jt[s(dt).id]=_l}})};V(Zo,Vi=>{C1(s(dt))?Vi(Fi):Vi(si,!1)})}b(bt,ao)}),h(Wn),h(fn),nt(fn,bt=>wt(bt),()=>wt()),h(go),nt(go,bt=>mt(bt),()=>mt());var Tr=P(go,2);{var ho=bt=>{Cd(bt,{get ref(){return Jt.interactiveTimeIndicator},set ref(dt){Jt.interactiveTimeIndicator=dt}})};V(Tr,bt=>{di&&bt(ho)})}O(bt=>et=oe(go,1,"wrapper-bottom svelte-f6e8ix",null,et,bt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),es(so,"clientWidth",bt=>B(Wo,bt)),b(t,jo),H(),o()}import{ChromecastState as I1,PlaybackState as k1}from"@vkontakte/videoplayer-core/es2018";import{noop as E1}from"@vkontakte/videoplayer-shared/es2018";var Yy=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Zy=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),Xy={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function rm(t,e){z(t,Xy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,E1),n=g(()=>o()===E1),r=g(()=>s(n)||i()),l=j(!1),d=()=>{B(l,!0)},a=g(()=>s(n)?"btn-full-opacity":"");Vt(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=Yy();b(y,S)},w=y=>{var S=Zy();O(()=>De(S,"src",e.iconUrl)),Ct("error",S,d),ia(S),b(y,S)};V(u,y=>{s(l)?y($):y(w,!1)})}b(p,v)},$$slots:{default:!0}})}var Jy=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 sm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Jy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(),h(o),b(t,o)}import{noop as e4}from"@vkontakte/videoplayer-shared/es2018";var t4=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),i4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function bu(t,e){D(e,!0),z(t,i4);let i=m(e,"muted",3,!1),o=m(e,"click",3,e4),n=m(e,"ref",15,void 0),l=Ee().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?sm:Os),p=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Vt(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=t4();let $=g(()=>s(a));var w=_(u);wi(w,()=>s($),(y,S)=>{S(y,{})}),h(u),b(f,u)},$$slots:{default:!0}}),H()}var o4=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 am(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=o4();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 n4={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function lm(t,e){z(t,n4);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");am(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}import{noop as r4}from"@vkontakte/videoplayer-shared/es2018";function dm(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,r4),r=F("menu_pip");Vt(t,{testId:"btn-pip",get ariaLabel(){return r},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{lm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}import{debounceFn as P1}from"@vkontakte/videoplayer-shared/es2018";var s4=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},a4=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},l4=M("<div><!></div>"),d4=M("<div><!></div>"),c4=M("<div><!></div>"),u4=M("<!> <!> <!>",1),p4=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),f4=M('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),m4=M("<div><!></div> <!> <div><!></div>",1),v4=M('<div aria-hidden="true">\xB7</div> <!>',1),g4=M('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!> <!></div></div> <!></div></div> <!>',1),h4={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.`},Vh=V_;var vs=new Map;vs.set(Nh.EN,Vh)
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 cm(t,e){var pn,Cr;H(e,!0),z(t,g4);let[i,o]=Oe(),n=()=>C(Ti,"$seekToInteractiveDisabledTooltip$",i),r=()=>C(kt,"$disabledControls$",i),l=()=>C(ae,"$playbackState$",i),d=()=>C(Bt,"$adPlaybackState",i),a=()=>C(he,"$isEnded$",i),p=()=>C(gt,"$playerSize",i),f=()=>C(Re,"$scrubbingInProgress",i),v=()=>C(Ki,"$chromecastState$",i),u=()=>C(Et,"$isPictureInPictureActive",i),$=()=>C(Kt,"$pictureInPictureType$",i),w=()=>C(Je,"$mobileNotReportControlHidden$",i),y=()=>C(eo,"$chromecastHidden",i),S=()=>C(Yt,"$playerPhase",i),T=()=>C(ri,"$pipHidden",i),I=()=>C(Ai,"$currentGridType$",i),A=()=>C(Qt,"$vkLogoHidden",i),k=()=>C(st,"$volumeHidden",i),E=()=>C(te,"$isLive$",i),R=()=>C(it,"$settingsMenuVisible",i),G=()=>C(Fe,"$isRewindableLive$",i),q=()=>C(Ve,"$isActiveLive$",i),W=()=>C(Tt,"$isAudioAvailable$",i),Q=()=>C(ze,"$muted$",i),X=()=>C(Ne,"$volume$",i),Y=()=>C(Hi,"$isInteractiveTime$",i),de=()=>C(mo,"$settingButtonRef$",i),le=()=>C(yt,"$startedByKeyboard$",i),ve=()=>C(li,"$isFullscreen",i),Ie=()=>C(Xe,"$additionalButtons$",i),me=()=>C(qi,"$autoplayNextToggleHidden",i),se=()=>C(Do,"$crashed$",i),Le=()=>C(bi,"$settingsHidden",i),oe=()=>C(Fo,"$graphIsOpened$",i),N=()=>C(D,"$adPosition",i),He=()=>C(Ci,"$adDuration",i),_e=()=>C(Wt,"$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),Ze=m(e,"customFullscreenSupported",3,!0),Z=Ee(),Ae=po(),Te=St(),je=Z.actions.internal.toggleMuted,tt=Z.actions.internal.togglePlay,vt=Z.actions.internal.pause,It=Z.actions.internal.prevVideoClick,dt=Z.actions.internal.nextVideoClick,qe=(pn=Z.callbacks)==null?void 0:pn.onAudioDoesNotExistHint,zt=(Cr=Z.callbacks)==null?void 0:Cr.onAudioDisabledHint,Yt=Z.playerPhase,qt=Z.state.duration$,Wt=Z.state.positionWithScrubbing$,ae=Z.state.playbackState$,Tt=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,Je=Z.ui.mobileNotReportControlHidden$,{isActive$:Et,type$:Kt}=Ae.pictureInPicture$,it=Z.ui.settingsMenu.visible$,di=Z.ui.settingsMenu.openedByBtnKeyboard$,ei=Z.ui.controls,{volume:st,vkLogo:Qt,autoplayNextToggle:qi,pip:ri,settings:bi,chromecast:eo}=Z.ui.hiddenControls,Ft=Z.actions.internal.getVideoEpisodes(),ci=Z.webApi.pictureInPictureApi,Ki=Z.state.chromecastState$,Do=Z.state.crashed$,kt=ei.disabledControls$,yt=Z.ui.startedByKeyboard$,Ai=Z.ui.currentGridType$,Ci=Z.ads.duration,D=Z.ads.position,Bt=Z.ads.playbackState,li=Z.ui.isFullscreen,gt=Z.ui.playerSize,Xe=Z.ui.additionalButtonsDeprecated$,at=Z.actions.internal.getVideoElement,Gt=Z.actions.internal.replayInteractive,Mt=Z.state.isInteractive,Hi=Z.state.isInteractiveTime$,Ho=Z.state.showInteractiveGraph,rn=Z.state.showSeekToInteractive,Si=Z.state.showPlayPrevChapter,_t=Z.state.showInteractiveTimeIndicator,Ti=Ae.seekToInteractiveDisabledTooltip$,Fo=Ae.graphIsOpened$,bn=Z.ui.controlBlocks,Fi=g(()=>U(Z.state.playPrevChapterDisabledTooltip)),Qi=g(()=>U(n())),So=g(()=>r().has("EPISODE_BUTTON")),sn=g(()=>r().has("GRAPH_BUTTON")),On=g(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),ui=g(()=>r().has("PLAY_BUTTON")),Uo=g(()=>r().has("REPLAY_BUTTON")),$n=g(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),zo=g(()=>l()===I1.PLAYING),to=g(()=>d()==="paused"),er=g(()=>a()&&!pe()&&!Mt),Or=g(()=>!a()||pe()),Dn=g(()=>e.showNextPrevButtons&&!pe()&&e.prevButtonActive),tr=g(()=>e.showNextPrevButtons&&!pe()&&e.nextButtonActive),Dr=g(()=>p().width>300),vr=g(()=>p().width>400),an=g(f),ir=g(()=>v()!==E1.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!Mt&&!y()),io=g(()=>S()==="LiveWaitingStart"),Wo=g(()=>!!ci&&v()!==E1.CONNECTED&&!w()&&($()===1&&s(io)||!s(io))&&!s(an)&&!Mt&&!T()),or=g(()=>!s(an)&&Di(I(),"s")),yn=g(()=>!e.logoHidden&&p().width>350&&!A()),nr=g(()=>Te.features.fullscreen&&!(u()&&$()===1)&&(Mt?Ze():!0)&&!s(an)),Hn=g(()=>!k()&&!s(an)&&Di(I(),"s")),rr=g(()=>(!E()||pe())&&p().width>260&&!s(an)&&!(Te.features.interactiveHideTime&&Mt)),Fn=g(()=>R()||e.showControls),xn=g(()=>!pe()&&!E()&&!!(Ft!=null&&Ft.length)&&s(Dr)&&!s(So)&&!s(an)),gr=g(()=>!G()||!!q()),hr=g(()=>Ho&&Di(I(),"m")),_r=g(()=>!W()||Q()||X()===0),ot=ni({}),oi=ni({}),wn=k1(pl,260),$i=k1(_u,260);We(()=>{p(),Y(),wn(at(),ei,ot,e.showControls),$i(at(),bn,oi,e.showControls)});let Mi=()=>Z.actions.internal.toggleChromecast();async function ln(){ci!=null&&ci.isActive()?await(ci==null?void 0:ci.exit()):await(ci==null?void 0:ci.request())}function dn(){Bs({isAudioDisabled:xe,audioDisabledHintCallback:zt,isAudioAvailable:W(),audioIsNotExistHintCallback:qe,isAds:pe()})&&je()}let fo=j(""),Un=(nt,Pt)=>{if(!nt){B(fo,U("tooltip_live"),!0);return}Pt&&Pt===I1.PAUSED&&B(fo,U("tooltip_play"),!0)};We(()=>{Un(s(gr),l())});let mo=ne();We(()=>{de()&&sl(de(),R(),di)}),We(()=>{gu(yt,le(),ot.playButton)});var To=v4(),br=fe(To);{var rs=nt=>{var Pt=u4(),pi=fe(Pt);let ro;var Gi=P(pi,2);let so;rt(Gi,et=>oi.topLeft=et,()=>oi==null?void 0:oi.topLeft);var ao=P(Gi,2);let Qo;var Go=_(ao);yi(Go,1,Ie,({iconUrl:et,ariaLabel:Ht,testId:Li,onClick:Zo,tooltip:fn})=>et,(et,Ht)=>{let Li=()=>s(Ht).iconUrl,Zo=()=>s(Ht).ariaLabel,fn=()=>s(Ht).testId,co=()=>s(Ht).onClick,Kr=()=>s(Ht).tooltip,Sr=g(()=>{var vi;return(vi=Zo())!=null?vi:Kr()});rm(et,{get iconUrl(){return Li()},get ariaLabel(){return s(Sr)},get testId(){return fn()},get onClick(){return co()}})});var En=P(Go,2);{var lo=et=>{Ed(et,{get ref(){return ot.autoplayNextToggle},set ref(Ht){ot.autoplayNextToggle=Ht}})};V(En,et=>{e.showAutoplayNext&&!Qe()&&!me()&&et(lo)})}var ji=P(En,2);{var go=et=>{_d(et,{isMobile:!0,click:Mi,get state(){return v()},get ref(){return ot.chromecast},set ref(Ht){ot.chromecast=Ht}})};V(ji,et=>{s(ir)&&et(go)})}var lr=P(ji,2);{var zn=et=>{dm(et,{click:ln,get isPictureInPictureActive(){return u()},get ref(){return ot.pip},set ref(Ht){ot.pip=Ht}})};V(lr,et=>{s(Wo)&&et(zn)})}var dr=P(lr,2);{var Wr=et=>{cl(et,{get ref$(){return mo}})};V(dr,et=>{se()&&!Le()&&et(Wr)})}var qr=P(dr,2);{var Po=et=>{hd(et,{get click(){return vt},get targetUrl(){return ee()},get logoClickable(){return e.logoClickable},get ref(){return ot.vkLogo},set ref(Ht){ot.vkLogo=Ht}})};V(qr,et=>{s(yn)&&et(Po)})}h(ao),rt(ao,et=>oi.topRight=et,()=>oi==null?void 0:oi.topRight);var jo=P(ao,2);let Ke;var Zt=_(jo);{var _i=et=>{let Ht=g(()=>It.bind(null,!0));ya(et,{get click(){return s(Ht)},type:"prev",isMobile:!0,get ref(){return ot.prevButton},set ref(Li){ot.prevButton=Li}})};V(Zt,et=>{s(Dn)&&et(_i)})}var ho=P(Zt,2);{var Ao=et=>{ml(et,{get disabled(){return s(ui)},get click(){return tt},isMobile:!0,get isPlaying(){return s(zo)},get ref(){return ot.playButton},set ref(Ht){ot.playButton=Ht}})};V(ho,et=>{s(Or)&&et(Ao)})}var Se=P(ho,2);{var bt=et=>{fl(et,{get disabled(){return s(Uo)},get click(){return tt},isMobile:!0,get ref(){return ot.replayButton},set ref(Ht){ot.replayButton=Ht}})};V(Se,et=>{s(er)&&et(bt)})}var fi=P(Se,2);{var Yi=et=>{let Ht=g(()=>dt.bind(null,!0));ya(et,{get click(){return s(Ht)},type:"next",isMobile:!0,get ref(){return ot.nextButton},set ref(Li){ot.nextButton=Li}})};V(fi,et=>{s(tr)&&et(Yi)})}h(jo),rt(jo,et=>oi.middle=et,()=>oi==null?void 0:oi.middle);var Yo=P(jo,2);{var _o=et=>{var Ht=c4(),Li=fe(Ht);{var Zo=vi=>{var Ei=a4();let In;Ei.__click=[r4,$n,e,Fi];var Wn=_(Ei);let Tr=g(()=>!e.showControls);Td(Wn,{get hidden(){return s(Tr)},get disabled(){return s($n)},get click(){return e.playPrevChapter},get ref(){return ot.playPrevChapterButton},set ref(bo){ot.playPrevChapterButton=bo}}),h(Ei),O(bo=>In=ie(Ei,1,"wrapper-middle-left svelte-9xcbwc",null,In,bo),[()=>({fullscreen:ve(),hidden:!e.showControls})]),b(vi,Ei)};V(Li,vi=>{Si&&vi(Zo)})}var fn=P(Li,2);{var co=vi=>{var Ei=l4();let In;var Wn=_(Ei);let Tr=g(()=>!e.showControls&&!oe());kd(Wn,{get hidden(){return s(Tr)},get disabled(){return s(sn)},get click(){return Fo.toggle},get graphIsOpened(){return oe()},get ref(){return ot.interactiveGraphButton},set ref(bo){ot.interactiveGraphButton=bo}}),h(Ei),O(bo=>In=ie(Ei,1,Ul(Si?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",In,bo),[()=>({fullscreen:ve(),hidden:!e.showControls&&!oe()})]),b(vi,Ei)};V(fn,vi=>{s(hr)&&vi(co)})}var Kr=P(fn,2);{var Sr=vi=>{var Ei=d4();let In;Ei.__click=[s4,On,e,Qi];var Wn=_(Ei);let Tr=g(()=>!e.showControls);Id(Wn,{get hidden(){return s(Tr)},get disabled(){return s(On)},get click(){return e.seekToInteractive},get ref(){return ot.seekToInteractiveButton},set ref(bo){ot.seekToInteractiveButton=bo}}),h(Ei),O(bo=>In=ie(Ei,1,"wrapper-middle-right svelte-9xcbwc",null,In,bo),[()=>({fullscreen:ve(),hidden:!e.showControls})]),b(vi,Ei)};V(Kr,vi=>{rn&&vi(Sr)})}b(et,Ht)};V(Yo,et=>{Mt&&!f()&&et(_o)})}O((et,Ht,Li,Zo)=>{ro=ie(pi,1,"overlay-mobile svelte-9xcbwc",null,ro,et),so=ie(Gi,1,"wrapper-top-left svelte-9xcbwc",null,so,Ht),Qo=ie(ao,1,"wrapper-top-right svelte-9xcbwc",null,Qo,Li),Ke=ie(jo,1,"wrapper-middle svelte-9xcbwc",null,Ke,Zo)},[()=>({hidden:!s(Fn)}),()=>({hidden:!e.showControls,fullscreen:ve()}),()=>({hidden:!e.showControls&&!w(),fullscreen:ve()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(nt,Pt)};V(br,nt=>{pe()||nt(rs)})}var $r=P(br,2);{var Hr=nt=>{var Pt=f4(),pi=fe(Pt);let ro;var Gi=_(pi);bu(Gi,{get muted(){return Q()},click:dn,get ref(){return ot.volume},set ref(lo){ot.volume=lo}}),h(pi);var so=P(pi,2);{var ao=lo=>{var ji=p4(),go=_(ji);let lr=g(()=>!s(to));ml(go,{get disabled(){return s(ui)},get click(){return tt},isMobile:!0,get isPlaying(){return s(lr)},get ref(){return ot.playButton},set ref(zn){ot.playButton=zn}}),h(ji),b(lo,ji)};V(so,lo=>{s(to)&&lo(ao)})}var Qo=P(so,2);let Go;var En=_(Qo);bd(En,{get position(){return N()},get duration(){return He()}}),h(Qo),O((lo,ji)=>{ro=ie(pi,1,"wrapper-top-right svelte-9xcbwc",null,ro,lo),Go=ie(Qo,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Go,ji)},[()=>({fullscreen:ve()}),()=>({fullscreen:ve()})]),b(nt,Pt)};V($r,nt=>{pe()&&d()!=="inactive"&&nt(Hr)})}var Cn=P($r,2);let yr;var vo=_(Cn);let sr;var qo=_(vo);ie(qo,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var ti=_(qo),Ko=_(ti);{var Fr=nt=>{Co(nt,{get disabled(){return s(Uo)},get ref(){return ot.replayButton},set ref(Pt){ot.replayButton=Pt},children:(Pt,pi)=>{fl(Pt,{get disabled(){return s(Uo)},get click(){return Gt}})},$$slots:{default:!0}})};V(Ko,nt=>{Mt&&nt(Fr)})}var xr=P(Ko,2);{var wt=nt=>{Co(nt,{get ref(){return ot.liveButton},set ref(Pt){ot.liveButton=Pt},children:(Pt,pi)=>{Pd(Pt,{get isLiveActive(){return s(gr)},isMobile:!0,get ariaLabel(){return s(fo)}})},$$slots:{default:!0}})};V(xr,nt=>{!pe()&&E()&&nt(wt)})}var Lt=P(xr,2);{var cn=nt=>{let Pt=g(()=>pe()?N():_e()),pi=g(()=>pe()?He():ge()),ro=g(()=>!e.showControls);md(nt,{get showDuration(){return s(vr)},get position(){return s(Pt)},get duration(){return s(pi)},isMobile:!0,get isHidden(){return s(ro)},get ref(){return ot.time},set ref(Gi){ot.time=Gi}})};V(Lt,nt=>{s(rr)&&nt(cn)})}var Eo=P(Lt,2);let un=g(()=>!s(xn));Co(Eo,{className:"w-max",get disabled(){return s(un)},get ref(){return ot.episodes},set ref(nt){ot.episodes=nt},children:(nt,Pt)=>{var pi=Ue(),ro=fe(pi);{var Gi=so=>{var ao=m4(),Qo=P(fe(ao),2);$d(Qo,{get position(){return _e()},get duration(){return ge()},get timeCodes(){return Ft}}),b(so,ao)};V(ro,so=>{s(xn)&&so(Gi)})}b(nt,pi)},$$slots:{default:!0}}),h(ti),rt(ti,nt=>oi.bottomRight=nt,()=>oi==null?void 0:oi.bottomRight);var Io=P(ti,2),Sn=_(Io);{var oo=nt=>{Co(nt,{get ref(){return ot.volume},set ref(Pt){ot.volume=Pt},children:(Pt,pi)=>{bu(Pt,{get muted(){return s(_r)},click:dn})},$$slots:{default:!0}})};V(Sn,nt=>{s(Hn)&&nt(oo)})}var Tn=P(Sn,2);{var ko=nt=>{Co(nt,{get ref(){return ot.settings},set ref(Pt){ot.settings=Pt},children:(Pt,pi)=>{cl(Pt,{get ref$(){return mo}})},$$slots:{default:!0}})};V(Tn,nt=>{s(or)&&nt(ko)})}var ar=P(Tn,2);{var wr=nt=>{Co(nt,{get ref(){return ot.fullscreen},set ref(Pt){ot.fullscreen=Pt},children:(Pt,pi)=>{gd(Pt,{get click(){return e.toggleFullscreen},get isFullscreen(){return ve()}})},$$slots:{default:!0}})};V(ar,nt=>{s(nr)&&nt(wr)})}h(Io),rt(Io,nt=>oi.bottomRight=nt,()=>oi==null?void 0:oi.bottomRight),h(qo),rt(qo,nt=>ue(nt),()=>ue());var Ur=P(qo,2);let ss=g(()=>!e.showControls);ba(Ur,{get isHidden(){return s(ss)},get isAds(){return pe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return G()},get ref(){return ot.timeline},set ref(nt){ot.timeline=nt}}),h(vo),h(Cn),rt(Cn,nt=>ce(nt),()=>ce());var zr=P(Cn,2);{var no=nt=>{Cd(nt,{get ref(){return ot.interactiveTimeIndicator},set ref(Pt){ot.interactiveTimeIndicator=Pt}})};V(zr,nt=>{_t&&nt(no)})}O((nt,Pt)=>{yr=ie(Cn,1,"wrapper-bottom svelte-9xcbwc",null,yr,nt),sr=ie(vo,1,"controls-wrapper svelte-9xcbwc",null,sr,Pt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:ve()})]),b(t,To),F(),o()}ut(["click"]);function Ad(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,P1),y=m(e,"onDisabledSeekToInteractiveClick",3,P1),T=Ee().ui.isMobile,I=j(!1);Nt(()=>{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=>{cm(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=>{nm(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 h4=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 um(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=h4();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 pm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);um(t,{get style(){return s(o)}})}var _4=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=_4();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 b4=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 mm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=b4();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 $u(t,e){let i=m(e,"isOff",3,!1);var o=Ue(),n=fe(o);{var r=d=>{mm(d,{})},l=d=>{fm(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var $4=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 vm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=$4();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 gm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);vm(t,{get style(){return s(o)}})}var y4=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 hm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=y4();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 _m(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);hm(t,{get style(){return s(o)}})}var x4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),w4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),C4=M("<div><!></div>"),S4={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
261
+ }`};function cm(t,e){var pn,Cr;D(e,!0),z(t,h4);let[i,o]=Oe(),n=()=>C(Ei,"$seekToInteractiveDisabledTooltip$",i),r=()=>C(_t,"$disabledControls$",i),l=()=>C(ee,"$playbackState$",i),d=()=>C(pi,"$adPlaybackState",i),a=()=>C(he,"$isEnded$",i),p=()=>C(ut,"$playerSize",i),f=()=>C(Re,"$scrubbingInProgress",i),v=()=>C(Bo,"$chromecastState$",i),u=()=>C(At,"$isPictureInPictureActive",i),$=()=>C(Wt,"$pictureInPictureType$",i),w=()=>C(Je,"$mobileNotReportControlHidden$",i),y=()=>C(Wi,"$chromecastHidden",i),S=()=>C(Xt,"$playerPhase",i),T=()=>C(ui,"$pipHidden",i),I=()=>C(Oo,"$currentGridType$",i),A=()=>C(Kt,"$vkLogoHidden",i),k=()=>C(st,"$volumeHidden",i),E=()=>C(ie,"$isLive$",i),R=()=>C(Xe,"$settingsMenuVisible",i),Q=()=>C(We,"$isRewindableLive$",i),q=()=>C(Me,"$isActiveLive$",i),W=()=>C(Rt,"$isAudioAvailable$",i),G=()=>C(ze,"$muted$",i),X=()=>C(Be,"$volume$",i),Y=()=>C(nn,"$isInteractiveTime$",i),ce=()=>C(po,"$settingButtonRef$",i),le=()=>C(Si,"$startedByKeyboard$",i),me=()=>C(li,"$isFullscreen",i),ke=()=>C(rt,"$additionalButtons$",i),ve=()=>C(ri,"$autoplayNextToggleHidden",i),ae=()=>C(Bt,"$crashed$",i),Ve=()=>C(co,"$settingsHidden",i),ne=()=>C(Ho,"$graphIsOpened$",i),N=()=>C(at,"$adPosition",i),He=()=>C(U,"$adDuration",i),_e=()=>C(Ut,"$position$",i),ge=()=>C(Gt,"$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),Ze=m(e,"customFullscreenSupported",3,!0),Z=Ee(),Ae=lo(),Te=It(),je=Z.actions.internal.toggleMuted,tt=Z.actions.internal.togglePlay,ht=Z.actions.internal.pause,mt=Z.actions.internal.prevVideoClick,wt=Z.actions.internal.nextVideoClick,Qe=(pn=Z.callbacks)==null?void 0:pn.onAudioDoesNotExistHint,Ft=(Cr=Z.callbacks)==null?void 0:Cr.onAudioDisabledHint,Xt=Z.playerPhase,Gt=Z.state.duration$,Ut=Z.state.positionWithScrubbing$,ee=Z.state.playbackState$,Rt=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,Je=Z.ui.mobileNotReportControlHidden$,{isActive$:At,type$:Wt}=Ae.pictureInPicture$,Xe=Z.ui.settingsMenu.visible$,ci=Z.ui.settingsMenu.openedByBtnKeyboard$,ti=Z.ui.controls,{volume:st,vkLogo:Kt,autoplayNextToggle:ri,pip:ui,settings:co,chromecast:Wi}=Z.ui.hiddenControls,qt=Z.actions.internal.getVideoEpisodes(),ni=Z.webApi.pictureInPictureApi,Bo=Z.state.chromecastState$,Bt=Z.state.crashed$,_t=ti.disabledControls$,Si=Z.ui.startedByKeyboard$,Oo=Z.ui.currentGridType$,U=Z.ads.duration,at=Z.ads.position,pi=Z.ads.playbackState,li=Z.ui.isFullscreen,ut=Z.ui.playerSize,rt=Z.ui.additionalButtonsDeprecated$,ft=Z.actions.internal.getVideoElement,bi=Z.actions.internal.replayInteractive,Et=Z.state.isInteractive,nn=Z.state.isInteractiveTime$,Do=Z.state.showInteractiveGraph,rn=Z.state.showSeekToInteractive,Ti=Z.state.showPlayPrevChapter,$t=Z.state.showInteractiveTimeIndicator,Ei=Ae.seekToInteractiveDisabledTooltip$,Ho=Ae.graphIsOpened$,bn=Z.ui.controlBlocks,Hi=g(()=>F(Z.state.playPrevChapterDisabledTooltip)),qi=g(()=>F(n())),wo=g(()=>r().has("EPISODE_BUTTON")),sn=g(()=>r().has("GRAPH_BUTTON")),On=g(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),di=g(()=>r().has("PLAY_BUTTON")),Fo=g(()=>r().has("REPLAY_BUTTON")),$n=g(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Uo=g(()=>l()===k1.PLAYING),Xi=g(()=>d()==="paused"),er=g(()=>a()&&!pe()&&!Et),Or=g(()=>!a()||pe()),Dn=g(()=>e.showNextPrevButtons&&!pe()&&e.prevButtonActive),tr=g(()=>e.showNextPrevButtons&&!pe()&&e.nextButtonActive),Dr=g(()=>p().width>300),vr=g(()=>p().width>400),an=g(f),ir=g(()=>v()!==I1.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!Et&&!y()),Ji=g(()=>S()==="LiveWaitingStart"),zo=g(()=>!!ni&&v()!==I1.CONNECTED&&!w()&&($()===1&&s(Ji)||!s(Ji))&&!s(an)&&!Et&&!T()),or=g(()=>!s(an)&&Di(I(),"s")),yn=g(()=>!e.logoHidden&&p().width>350&&!A()),nr=g(()=>Te.features.fullscreen&&Hh(document)&&!(u()&&$()===1)&&(Et?Ze():!0)&&!s(an)),Hn=g(()=>!k()&&!s(an)&&Di(I(),"s")),rr=g(()=>(!E()||pe())&&p().width>260&&!s(an)&&!(Te.features.interactiveHideTime&&Et)),Fn=g(()=>R()||e.showControls),xn=g(()=>!pe()&&!E()&&!!(qt!=null&&qt.length)&&s(Dr)&&!s(wo)&&!s(an)),gr=g(()=>!Q()||!!q()),hr=g(()=>Do&&Di(I(),"m")),_r=g(()=>!W()||G()||X()===0),it=oi({}),ii=oi({}),wn=P1(pl,260),yi=P1(_u,260);Ue(()=>{p(),Y(),wn(ft(),ti,it,e.showControls),yi(ft(),bn,ii,e.showControls)});let Mi=()=>Z.actions.internal.toggleChromecast();async function ln(){ni!=null&&ni.isActive()?await(ni==null?void 0:ni.exit()):await(ni==null?void 0:ni.request())}function dn(){Bs({isAudioDisabled:xe,audioDisabledHintCallback:Ft,isAudioAvailable:W(),audioIsNotExistHintCallback:Qe,isAds:pe()})&&je()}let uo=j(""),Un=(ot,kt)=>{if(!ot){B(uo,F("tooltip_live"),!0);return}kt&&kt===k1.PAUSED&&B(uo,F("tooltip_play"),!0)};Ue(()=>{Un(s(gr),l())});let po=re();Ue(()=>{ce()&&sl(ce(),R(),ci)}),Ue(()=>{gu(Si,le(),it.playButton)});var Co=g4(),br=fe(Co);{var rs=ot=>{var kt=p4(),fi=fe(kt);let io;var Ki=P(fi,2);let oo;nt(Ki,et=>ii.topLeft=et,()=>ii==null?void 0:ii.topLeft);var no=P(Ki,2);let Ko;var Qo=_(no);xi(Qo,1,ke,({iconUrl:et,ariaLabel:Ht,testId:Li,onClick:Yo,tooltip:fn})=>et,(et,Ht)=>{let Li=()=>s(Ht).iconUrl,Yo=()=>s(Ht).ariaLabel,fn=()=>s(Ht).testId,so=()=>s(Ht).onClick,Kr=()=>s(Ht).tooltip,Sr=g(()=>{var gi;return(gi=Yo())!=null?gi:Kr()});rm(et,{get iconUrl(){return Li()},get ariaLabel(){return s(Sr)},get testId(){return fn()},get onClick(){return so()}})});var En=P(Qo,2);{var ro=et=>{Ed(et,{get ref(){return it.autoplayNextToggle},set ref(Ht){it.autoplayNextToggle=Ht}})};V(En,et=>{e.showAutoplayNext&&!qe()&&!ve()&&et(ro)})}var Qi=P(En,2);{var mo=et=>{_d(et,{isMobile:!0,click:Mi,get state(){return v()},get ref(){return it.chromecast},set ref(Ht){it.chromecast=Ht}})};V(Qi,et=>{s(ir)&&et(mo)})}var lr=P(Qi,2);{var zn=et=>{dm(et,{click:ln,get isPictureInPictureActive(){return u()},get ref(){return it.pip},set ref(Ht){it.pip=Ht}})};V(lr,et=>{s(zo)&&et(zn)})}var dr=P(lr,2);{var Wr=et=>{cl(et,{get ref$(){return po}})};V(dr,et=>{ae()&&!Ve()&&et(Wr)})}var qr=P(dr,2);{var Io=et=>{hd(et,{get click(){return ht},get targetUrl(){return te()},get logoClickable(){return e.logoClickable},get ref(){return it.vkLogo},set ref(Ht){it.vkLogo=Ht}})};V(qr,et=>{s(yn)&&et(Io)})}h(no),nt(no,et=>ii.topRight=et,()=>ii==null?void 0:ii.topRight);var Go=P(no,2);let Ke;var jt=_(Go);{var $i=et=>{let Ht=g(()=>mt.bind(null,!0));ya(et,{get click(){return s(Ht)},type:"prev",isMobile:!0,get ref(){return it.prevButton},set ref(Li){it.prevButton=Li}})};V(jt,et=>{s(Dn)&&et($i)})}var vo=P(jt,2);{var ko=et=>{ml(et,{get disabled(){return s(di)},get click(){return tt},isMobile:!0,get isPlaying(){return s(Uo)},get ref(){return it.playButton},set ref(Ht){it.playButton=Ht}})};V(vo,et=>{s(Or)&&et(ko)})}var Se=P(vo,2);{var yt=et=>{fl(et,{get disabled(){return s(Fo)},get click(){return tt},isMobile:!0,get ref(){return it.replayButton},set ref(Ht){it.replayButton=Ht}})};V(Se,et=>{s(er)&&et(yt)})}var mi=P(Se,2);{var Gi=et=>{let Ht=g(()=>wt.bind(null,!0));ya(et,{get click(){return s(Ht)},type:"next",isMobile:!0,get ref(){return it.nextButton},set ref(Li){it.nextButton=Li}})};V(mi,et=>{s(tr)&&et(Gi)})}h(Go),nt(Go,et=>ii.middle=et,()=>ii==null?void 0:ii.middle);var jo=P(Go,2);{var go=et=>{var Ht=u4(),Li=fe(Ht);{var Yo=gi=>{var Ii=l4();let In;Ii.__click=[s4,$n,e,Hi];var Wn=_(Ii);let Tr=g(()=>!e.showControls);Td(Wn,{get hidden(){return s(Tr)},get disabled(){return s($n)},get click(){return e.playPrevChapter},get ref(){return it.playPrevChapterButton},set ref(ho){it.playPrevChapterButton=ho}}),h(Ii),O(ho=>In=oe(Ii,1,"wrapper-middle-left svelte-9xcbwc",null,In,ho),[()=>({fullscreen:me(),hidden:!e.showControls})]),b(gi,Ii)};V(Li,gi=>{Ti&&gi(Yo)})}var fn=P(Li,2);{var so=gi=>{var Ii=d4();let In;var Wn=_(Ii);let Tr=g(()=>!e.showControls&&!ne());kd(Wn,{get hidden(){return s(Tr)},get disabled(){return s(sn)},get click(){return Ho.toggle},get graphIsOpened(){return ne()},get ref(){return it.interactiveGraphButton},set ref(ho){it.interactiveGraphButton=ho}}),h(Ii),O(ho=>In=oe(Ii,1,Ul(Ti?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",In,ho),[()=>({fullscreen:me(),hidden:!e.showControls&&!ne()})]),b(gi,Ii)};V(fn,gi=>{s(hr)&&gi(so)})}var Kr=P(fn,2);{var Sr=gi=>{var Ii=c4();let In;Ii.__click=[a4,On,e,qi];var Wn=_(Ii);let Tr=g(()=>!e.showControls);Id(Wn,{get hidden(){return s(Tr)},get disabled(){return s(On)},get click(){return e.seekToInteractive},get ref(){return it.seekToInteractiveButton},set ref(ho){it.seekToInteractiveButton=ho}}),h(Ii),O(ho=>In=oe(Ii,1,"wrapper-middle-right svelte-9xcbwc",null,In,ho),[()=>({fullscreen:me(),hidden:!e.showControls})]),b(gi,Ii)};V(Kr,gi=>{rn&&gi(Sr)})}b(et,Ht)};V(jo,et=>{Et&&!f()&&et(go)})}O((et,Ht,Li,Yo)=>{io=oe(fi,1,"overlay-mobile svelte-9xcbwc",null,io,et),oo=oe(Ki,1,"wrapper-top-left svelte-9xcbwc",null,oo,Ht),Ko=oe(no,1,"wrapper-top-right svelte-9xcbwc",null,Ko,Li),Ke=oe(Go,1,"wrapper-middle svelte-9xcbwc",null,Ke,Yo)},[()=>({hidden:!s(Fn)}),()=>({hidden:!e.showControls,fullscreen:me()}),()=>({hidden:!e.showControls&&!w(),fullscreen:me()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(ot,kt)};V(br,ot=>{pe()||ot(rs)})}var $r=P(br,2);{var Hr=ot=>{var kt=m4(),fi=fe(kt);let io;var Ki=_(fi);bu(Ki,{get muted(){return G()},click:dn,get ref(){return it.volume},set ref(ro){it.volume=ro}}),h(fi);var oo=P(fi,2);{var no=ro=>{var Qi=f4(),mo=_(Qi);let lr=g(()=>!s(Xi));ml(mo,{get disabled(){return s(di)},get click(){return tt},isMobile:!0,get isPlaying(){return s(lr)},get ref(){return it.playButton},set ref(zn){it.playButton=zn}}),h(Qi),b(ro,Qi)};V(oo,ro=>{s(Xi)&&ro(no)})}var Ko=P(oo,2);let Qo;var En=_(Ko);bd(En,{get position(){return N()},get duration(){return He()}}),h(Ko),O((ro,Qi)=>{io=oe(fi,1,"wrapper-top-right svelte-9xcbwc",null,io,ro),Qo=oe(Ko,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Qo,Qi)},[()=>({fullscreen:me()}),()=>({fullscreen:me()})]),b(ot,kt)};V($r,ot=>{pe()&&d()!=="inactive"&&ot(Hr)})}var Cn=P($r,2);let yr;var fo=_(Cn);let sr;var Wo=_(fo);oe(Wo,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var Jt=_(Wo),qo=_(Jt);{var Fr=ot=>{xo(ot,{get disabled(){return s(Fo)},get ref(){return it.replayButton},set ref(kt){it.replayButton=kt},children:(kt,fi)=>{fl(kt,{get disabled(){return s(Fo)},get click(){return bi}})},$$slots:{default:!0}})};V(qo,ot=>{Et&&ot(Fr)})}var xr=P(qo,2);{var St=ot=>{xo(ot,{get ref(){return it.liveButton},set ref(kt){it.liveButton=kt},children:(kt,fi)=>{Pd(kt,{get isLiveActive(){return s(gr)},isMobile:!0,get ariaLabel(){return s(uo)}})},$$slots:{default:!0}})};V(xr,ot=>{!pe()&&E()&&ot(St)})}var Mt=P(xr,2);{var cn=ot=>{let kt=g(()=>pe()?N():_e()),fi=g(()=>pe()?He():ge()),io=g(()=>!e.showControls);md(ot,{get showDuration(){return s(vr)},get position(){return s(kt)},get duration(){return s(fi)},isMobile:!0,get isHidden(){return s(io)},get ref(){return it.time},set ref(Ki){it.time=Ki}})};V(Mt,ot=>{s(rr)&&ot(cn)})}var So=P(Mt,2);let un=g(()=>!s(xn));xo(So,{className:"w-max",get disabled(){return s(un)},get ref(){return it.episodes},set ref(ot){it.episodes=ot},children:(ot,kt)=>{var fi=Fe(),io=fe(fi);{var Ki=oo=>{var no=v4(),Ko=P(fe(no),2);$d(Ko,{get position(){return _e()},get duration(){return ge()},get timeCodes(){return qt}}),b(oo,no)};V(io,oo=>{s(xn)&&oo(Ki)})}b(ot,fi)},$$slots:{default:!0}}),h(Jt),nt(Jt,ot=>ii.bottomRight=ot,()=>ii==null?void 0:ii.bottomRight);var To=P(Jt,2),Sn=_(To);{var eo=ot=>{xo(ot,{get ref(){return it.volume},set ref(kt){it.volume=kt},children:(kt,fi)=>{bu(kt,{get muted(){return s(_r)},click:dn})},$$slots:{default:!0}})};V(Sn,ot=>{s(Hn)&&ot(eo)})}var Tn=P(Sn,2);{var Eo=ot=>{xo(ot,{get ref(){return it.settings},set ref(kt){it.settings=kt},children:(kt,fi)=>{cl(kt,{get ref$(){return po}})},$$slots:{default:!0}})};V(Tn,ot=>{s(or)&&ot(Eo)})}var ar=P(Tn,2);{var wr=ot=>{xo(ot,{get ref(){return it.fullscreen},set ref(kt){it.fullscreen=kt},children:(kt,fi)=>{gd(kt,{get click(){return e.toggleFullscreen},get isFullscreen(){return me()}})},$$slots:{default:!0}})};V(ar,ot=>{s(nr)&&ot(wr)})}h(To),nt(To,ot=>ii.bottomRight=ot,()=>ii==null?void 0:ii.bottomRight),h(Wo),nt(Wo,ot=>ue(ot),()=>ue());var Ur=P(Wo,2);let ss=g(()=>!e.showControls);ba(Ur,{get isHidden(){return s(ss)},get isAds(){return pe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Q()},get ref(){return it.timeline},set ref(ot){it.timeline=ot}}),h(fo),h(Cn),nt(Cn,ot=>de(ot),()=>de());var zr=P(Cn,2);{var to=ot=>{Cd(ot,{get ref(){return it.interactiveTimeIndicator},set ref(kt){it.interactiveTimeIndicator=kt}})};V(zr,ot=>{$t&&ot(to)})}O((ot,kt)=>{yr=oe(Cn,1,"wrapper-bottom svelte-9xcbwc",null,yr,ot),sr=oe(fo,1,"controls-wrapper svelte-9xcbwc",null,sr,kt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:me()})]),b(t,Co),H(),o()}ct(["click"]);function Ad(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,A1),y=m(e,"onDisabledSeekToInteractiveClick",3,A1),T=Ee().ui.isMobile,I=j(!1);Nt(()=>{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=>{cm(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=>{nm(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 _4=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 um(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=_4();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 pm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);um(t,{get style(){return s(o)}})}var b4=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=b4();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 $4=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 mm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=$4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:se}),we(2),h(o),b(t,o)}function $u(t,e){let i=m(e,"isOff",3,!1);var o=Fe(),n=fe(o);{var r=d=>{mm(d,{})},l=d=>{fm(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var y4=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 vm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=y4();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 gm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);vm(t,{get style(){return s(o)}})}var x4=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 hm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=x4();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 _m(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);hm(t,{get style(){return s(o)}})}var w4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),C4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),S4=M("<div><!></div>"),T4={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.`},Vh=V_;var vs=new Map;vs.set(Nh.EN,Vh)
273
273
  @keyframes svelte-1ad3n06-fadeOut {
274
274
  0% {opacity:1;}
275
275
  100% {opacity:0;}
276
- }`};function bm(t,e){H(e,!0),z(t,S4);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=C4();let $;var w=_(u);{var y=S=>{var T=w4(),I=fe(T),A=_(I);{var k=ce=>{let ue=g(()=>s(f)==="FORWARD_SEEK");pm(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=>{Nr(ce,{})};V(G,ce=>{s(f)==="PLAY"&&ce(q)})}var W=P(G,2);{var Q=ce=>{Sd(ce,{})};V(W,ce=>{s(f)==="REPLAY"&&ce(Q)})}var X=P(W,2);{var Y=ce=>{$u(ce,{isOff:!0})};V(X,ce=>{s(f)==="SUBTITLES_OFF"&&ce(Y)})}var de=P(X,2);{var le=ce=>{$u(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");gm(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");_m(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=>{Os(ce,{volume:0})};V(Le,ce=>{s(f)==="MUTE"&&ce(oe)})}var N=P(Le,2);{var He=ce=>{Os(ce,{volume:1})};V(N,ce=>{s(f)==="VOLUME"&&ce(He)})}h(I);var _e=P(I,2);{var ge=ce=>{var ue=x4(),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 T4=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 $m(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=T4();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 E4=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 ym(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=E4();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 Fs(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");$m(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");ym(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 I4=(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}},k4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},P4=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>'),A4={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 Md(t,e){H(e,!0),z(t,A4);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=P4();let u;v.__keydown=[I4,n,r,l,a,d],v.__keyup=[k4,n,p];var $=_(v),w=_($),y=_(w);y.__mousedown=r,y.__mouseup=p;var S=_(y);Fs(S,{direction:"up",useBtnColor:!0}),h(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=p;var I=_(T);Fs(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);Fs(E,{direction:"up",useBtnColor:!0}),h(k);var R=P(k,2);R.__mousedown=l,R.__mouseup=p;var G=_(R);Fs(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()})]),xt("mouseleave",y,p),xt("mouseleave",T,p),xt("mouseleave",k,p),xt("mouseleave",R,p),b(t,v),F()}ut(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as M1,Subscription as M4,filterChanged as L4,filter as V4}from"@vkontakte/videoplayer-shared/es2018";var A1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var yu=class{constructor(){this.flickeringTimeout=A1(1e3);this.subscriptions=new M4;this.isAuto=!1;this.isLive=!1;this.captions$=new M1([]);this.captionsPrepared$=new M1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(V4(()=>this.isEnabled()),L4()).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 R4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),N4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),B4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),O4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),D4=M("<div><!></div>"),H4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
277
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ca(t,e){H(e,!0),z(t,H4);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=St(),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([[]]));Nt(()=>{B(A,new yu().subscribe(),!0);let Q=s(A).captionsPrepared$.subscribe(X=>{B(k,X,!0)});return()=>{var X;(X=s(A))==null||X.destroy(),Q.unsubscribe()}}),Nt(()=>{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=D4();let G;var q=_(R);{var W=Q=>{var X=O4();let Y;var de=_(X),le=_(de);{var ve=me=>{var se=R4(),Le=_(se),oe=_(Le,!0);h(Le),h(se),O(N=>{var He;lt(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);yi(_e,17,()=>s(k),Hl,(ge,ce)=>{var ue=N4(),pe=_(ue);yi(pe,21,()=>s(ce),({value:ee,timeAppeared:Qe})=>Qe,(ee,Qe)=>{let Ze=()=>s(Qe).value,Z=()=>s(Qe).timeAppeared;var Ae=Ue(),Te=fe(Ae);{var je=tt=>{var vt=Xr();O(()=>$e(vt,Ze())),b(tt,vt)};V(Te,tt=>{(!Z()||Z()<=e.position)&&tt(je)})}b(ee,Ae)}),h(pe),h(ue),O(()=>{var ee;return lt(pe,`font-size: ${(ee=s(I))!=null?ee:""}px`)}),b(ge,ue)}),b(N,He)},oe=N=>{var He=Ue(),_e=fe(He);yi(_e,17,()=>e.captions,({value:ge})=>ge,(ge,ce)=>{let ue=()=>s(ce).value;var pe=B4(),ee=_(pe),Qe=_(ee,!0);h(ee),h(pe),O(()=>{var Ze;lt(ee,`font-size: ${(Ze=s(I))!=null?Ze:""}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),lt(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 F4=M('<div class="text svelte-raurnb"> </div>'),U4=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>'),z4={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 Ld(t,e){H(e,!0),z(t,z4);let i=St();var o=U4();let n;var r=P(_(o),2);{var l=d=>{var a=F4(),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),lt(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 W4=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 xm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=W4();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 q4=M('<div class="container svelte-13zpvm8"><!></div>'),K4={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 Sa(t){z(t,K4);var e=q4(),i=_(e);xm(i,{}),h(e),b(t,e)}var Q4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),G4=M("<div><!></div>"),j4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
276
+ }`};function bm(t,e){D(e,!0),z(t,T4);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=S4();let $;var w=_(u);{var y=S=>{var T=C4(),I=fe(T),A=_(I);{var k=de=>{let ue=g(()=>s(f)==="FORWARD_SEEK");pm(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=>{Nr(de,{})};V(Q,de=>{s(f)==="PLAY"&&de(q)})}var W=P(Q,2);{var G=de=>{Sd(de,{})};V(W,de=>{s(f)==="REPLAY"&&de(G)})}var X=P(W,2);{var Y=de=>{$u(de,{isOff:!0})};V(X,de=>{s(f)==="SUBTITLES_OFF"&&de(Y)})}var ce=P(X,2);{var le=de=>{$u(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");gm(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");_m(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=>{Os(de,{volume:0})};V(Ve,de=>{s(f)==="MUTE"&&de(ne)})}var N=P(Ve,2);{var He=de=>{Os(de,{volume:1})};V(N,de=>{s(f)==="VOLUME"&&de(He)})}h(I);var _e=P(I,2);{var ge=de=>{var ue=w4(),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 E4=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 $m(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=E4();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 I4=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 ym(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=I4();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 Fs(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");$m(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");ym(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 k4=(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}},P4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},A4=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>'),M4={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 Md(t,e){D(e,!0),z(t,M4);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=A4();let u;v.__keydown=[k4,n,r,l,a,d],v.__keyup=[P4,n,p];var $=_(v),w=_($),y=_(w);y.__mousedown=r,y.__mouseup=p;var S=_(y);Fs(S,{direction:"up",useBtnColor:!0}),h(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=p;var I=_(T);Fs(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);Fs(E,{direction:"up",useBtnColor:!0}),h(k);var R=P(k,2);R.__mousedown=l,R.__mouseup=p;var Q=_(R);Fs(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()})]),Ct("mouseleave",y,p),Ct("mouseleave",T,p),Ct("mouseleave",k,p),Ct("mouseleave",R,p),b(t,v),H()}ct(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as L1,Subscription as L4,filterChanged as V4,filter as R4}from"@vkontakte/videoplayer-shared/es2018";var M1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var yu=class{constructor(){this.flickeringTimeout=M1(1e3);this.subscriptions=new L4;this.isAuto=!1;this.isLive=!1;this.captions$=new L1([]);this.captionsPrepared$=new L1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(R4(()=>this.isEnabled()),V4()).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 N4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),B4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),O4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),D4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),H4=M("<div><!></div>"),F4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
277
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ca(t,e){D(e,!0),z(t,F4);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=It(),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([[]]));Nt(()=>{B(A,new yu().subscribe(),!0);let G=s(A).captionsPrepared$.subscribe(X=>{B(k,X,!0)});return()=>{var X;(X=s(A))==null||X.destroy(),G.unsubscribe()}}),Nt(()=>{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=H4();let Q;var q=_(R);{var W=G=>{var X=D4();let Y;var ce=_(X),le=_(ce);{var me=ve=>{var ae=N4(),Ve=_(ae),ne=_(Ve,!0);h(Ve),h(ae),O(N=>{var He;lt(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);xi(_e,17,()=>s(k),Hl,(ge,de)=>{var ue=B4(),pe=_(ue);xi(pe,21,()=>s(de),({value:te,timeAppeared:qe})=>qe,(te,qe)=>{let Ze=()=>s(qe).value,Z=()=>s(qe).timeAppeared;var Ae=Fe(),Te=fe(Ae);{var je=tt=>{var ht=Xr();O(()=>$e(ht,Ze())),b(tt,ht)};V(Te,tt=>{(!Z()||Z()<=e.position)&&tt(je)})}b(te,Ae)}),h(pe),h(ue),O(()=>{var te;return lt(pe,`font-size: ${(te=s(I))!=null?te:""}px`)}),b(ge,ue)}),b(N,He)},ne=N=>{var He=Fe(),_e=fe(He);xi(_e,17,()=>e.captions,({value:ge})=>ge,(ge,de)=>{let ue=()=>s(de).value;var pe=O4(),te=_(pe),qe=_(te,!0);h(te),h(pe),O(()=>{var Ze;lt(te,`font-size: ${(Ze=s(I))!=null?Ze:""}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),lt(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 U4=M('<div class="text svelte-raurnb"> </div>'),z4=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>'),W4={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 Ld(t,e){D(e,!0),z(t,W4);let i=It();var o=z4();let n;var r=P(_(o),2);{var l=d=>{var a=U4(),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),lt(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 q4=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 xm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=q4();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 K4=M('<div class="container svelte-13zpvm8"><!></div>'),Q4={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 Sa(t){z(t,Q4);var e=K4(),i=_(e);xm(i,{}),h(e),b(t,e)}var G4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),j4=M("<div><!></div>"),Y4={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 Ta(t,e){H(e,!0),z(t,j4);let i=m(e,"iconVisible",3,!0),o=Ee(),n=St(),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=G4();let f;p.__click=a;var v=_(p);{var u=$=>{var w=Q4();w.__keydown=d;var y=P(_(w),2);Nr(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,$),lt(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,p),F({handlePressKey:d,handleClick:a})}ut(["click","keydown"]);var Y4=M('<div data-testid="video_title"><span> </span></div>'),Z4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
279
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Ta(t,e){D(e,!0),z(t,Y4);let i=m(e,"iconVisible",3,!0),o=Ee(),n=It(),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=j4();let f;p.__click=a;var v=_(p);{var u=$=>{var w=G4();w.__keydown=d;var y=P(_(w),2);Nr(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,$),lt(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,p),H({handlePressKey:d,handleClick:a})}ct(["click","keydown"]);var Z4=M('<div data-testid="video_title"><span> </span></div>'),X4={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 wm(t,e){H(e,!0),z(t,Z4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),r=j(void 0);Nt(()=>{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=Y4();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=ie(l,1,"title svelte-14hk510",null,d,f),$e(p,i())},[()=>({hidden:o()})]),b(t,l),F()}var X4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),J4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),e3=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),t3=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),i3=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),o3={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 Cm(t,e){H(e,!0),z(t,o3);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()};Nt(()=>{l=requestAnimationFrame(p)}),Vn(()=>{cancelAnimationFrame(l)});var f=i3(),v=_(f);{var u=A=>{var k=X4(),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=J4(),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=e3(),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=t3(),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 n3=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 Sm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=n3();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 r3=M('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),s3=M('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),a3=M('<div class="waiting-container svelte-15pewff"><!></div>'),l3={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 Vd(t,e){H(e,!0),z(t,l3);let i=j(!1);We(()=>{B(i,e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3),!0)});var o=a3(),n=_(o);{var r=d=>{var a=r3(),p=_(a),f=_(p);Sm(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=s3(),p=_(a),f=_(p,!0);h(p);var v=P(p,2);let u=g(()=>e.startTime||0);Cm(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(()=>lt(o,`background-image: url(${s(i)?"":e.thumbUrl})`)),b(t,o),F()}var d3=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),c3={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function Ea(t,e){H(e,!0),z(t,c3);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=d3(),l=_(r),d=_(l);ga(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),p=_(a,!0);h(a),h(l),h(r),O(()=>{lt(r,`background-image: url('${i()}')`),$e(p,s(n))}),b(t,r),F()}var u3=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 Tm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=u3();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 p3=M('<div class="select-icon svelte-124aexk"><!></div>'),f3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Rd(t){z(t,f3);var e=p3(),i=_(e);Tm(i,{}),h(e),b(t,e)}var m3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},v3=(t,e)=>{al(t,()=>e.item.selectItem(e.item.value))},g3=M("<p> </p>"),h3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),_3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),b3={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
286
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function wm(t,e){D(e,!0),z(t,X4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),r=j(void 0);Nt(()=>{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=Z4();let d;var a=_(l),p=_(a,!0);h(a),nt(a,f=>n(f),()=>n()),h(l),nt(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 J4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),e3=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),t3=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),i3=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),o3=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),n3={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 Cm(t,e){D(e,!0),z(t,n3);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()};Nt(()=>{l=requestAnimationFrame(p)}),Vn(()=>{cancelAnimationFrame(l)});var f=o3(),v=_(f);{var u=A=>{var k=J4(),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=e3(),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=t3(),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=i3(),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 r3=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 Sm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=r3();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 s3=M('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),a3=M('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),l3=M('<div class="waiting-container svelte-15pewff"><!></div>'),d3={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 Vd(t,e){D(e,!0),z(t,d3);let i=j(!1);Ue(()=>{B(i,e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3),!0)});var o=l3(),n=_(o);{var r=d=>{var a=s3(),p=_(a),f=_(p);Sm(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=a3(),p=_(a),f=_(p,!0);h(p);var v=P(p,2);let u=g(()=>e.startTime||0);Cm(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(()=>lt(o,`background-image: url(${s(i)?"":e.thumbUrl})`)),b(t,o),H()}var c3=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),u3={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function Ea(t,e){D(e,!0),z(t,u3);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=c3(),l=_(r),d=_(l);ga(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),p=_(a,!0);h(a),h(l),h(r),O(()=>{lt(r,`background-image: url('${i()}')`),$e(p,s(n))}),b(t,r),H()}var p3=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 Tm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=p3();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 f3=M('<div class="select-icon svelte-124aexk"><!></div>'),m3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Rd(t){z(t,m3);var e=f3(),i=_(e);Tm(i,{}),h(e),b(t,e)}var v3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},g3=(t,e)=>{al(t,()=>e.item.selectItem(e.item.value))},h3=M("<p> </p>"),_3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),b3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),$3={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 Em(t,e){H(e,!0),z(t,b3);let i=m(e,"isMobile",3,!1);var o=_3();let n;o.__click=[m3,e],o.__keydown=[v3,e];var r=_(o);{var l=w=>{Rd(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);xi(S,()=>e.item.valueComponent,(T,I)=>{I(T,ms(()=>{var A;return(A=e.item.valueComponentParams)!=null?A:{}}))}),b(w,y)},v=w=>{var y=g3();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=h3(),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()}ut(["click","keydown"]);var $3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Im(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=>Jc(y,s(n)));var l=$3();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=>{Rd(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);xi(I,()=>s(T),(A,k)=>{k(A,ms(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(y,S)},w=y=>{var S=Xr();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=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()}ut(["click","keydown"]);var Br={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var x3=(t,e)=>{Xh(t,e.returnFromSubMenu,e.closeSettingsMenu)},w3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},C3=(t,e)=>{od(t)&&(mr(t),e.returnFromSubMenu())},S3=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),T3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
292
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Em(t,e){D(e,!0),z(t,$3);let i=m(e,"isMobile",3,!1);var o=b3();let n;o.__click=[v3,e],o.__keydown=[g3,e];var r=_(o);{var l=w=>{Rd(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);wi(S,()=>e.item.valueComponent,(T,I)=>{I(T,ms(()=>{var A;return(A=e.item.valueComponentParams)!=null?A:{}}))}),b(w,y)},v=w=>{var y=h3();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=_3(),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()}ct(["click","keydown"]);var y3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Im(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),r=g(()=>y=>Jc(y,s(n)));var l=y3();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=>{Rd(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);wi(I,()=>s(T),(A,k)=>{k(A,ms(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(y,S)},w=y=>{var S=Xr();O(()=>$e(S,e.item.label)),b(y,S)};V(u,y=>{e.item.valueComponent?y($):y(w,!1)})}h(f),h(l),nt(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),O((y,S)=>{var T;d=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()}ct(["click","keydown"]);var Br={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var w3=(t,e)=>{Jh(t,e.returnFromSubMenu,e.closeSettingsMenu)},C3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},S3=(t,e)=>{od(t)&&(mr(t),e.returnFromSubMenu())},T3=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>'),E3={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.`},Vh=V_;var vs=new Map;vs.set(Nh.EN,Vh)
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 Pm(t,e){H(e,!0),z(t,T3);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);Nt(()=>{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=S3();let A;var k=_(I);let E;k.__keydown=[x3,e];var R=_(k);let G;R.__click=[w3,e],R.__keydown=[C3,e];var q=_(R);Fs(q,{direction:"left"});var W=P(q,2),Q=_(W,!0);h(W),h(R),rt(R,Y=>B($,Y),()=>s($));var X=P(R,2);yi(X,17,()=>e.items,Hl,(Y,de)=>{var le=Ue(),ve=fe(le);{var Ie=se=>{Em(se,{get item(){return s(de)},get isMobile(){return l()}})},me=(se,Le)=>{{var oe=N=>{Im(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),rt(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}`),lt(I,`min-width: ${s(T)}px`),E=ie(k,1,"items svelte-7dfsuh",null,E,de),lt(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()})]),es(R,"clientWidth",Y=>B(w,Y)),es(R,"clientHeight",Y=>B(y,Y)),b(t,I),F(),o()}ut(["keydown","click"]);import{noop as E3}from"@vkontakte/videoplayer-shared/es2018";var I3=(t,e)=>Jc(t,e()),k3=(t,e)=>{t.stopPropagation(),e()()},P3=M('<div class="value svelte-1ikfjte"> </div>'),A3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),M3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Am(t,e){H(e,!0),z(t,M3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,E3),n=m(e,"valueComponent",3,void 0),r=m(e,"ref",15);var l=A3();let d;l.__click=[k3,o],l.__keydown=[I3,o];var a=_(l),p=_(a);{var f=T=>{xa(T,{get icon(){return e.icon}})},v=T=>{var I=Ue();let A=g(()=>e.icon);var k=fe(I);xi(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);xi(k,()=>s(A),(E,R)=>{R(E,{})}),b(T,I)},S=T=>{var I=P3(),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=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()}ut(["click","keydown"]);import{noop as V1}from"@vkontakte/videoplayer-shared/es2018";var L3=(t,e)=>{al(t,()=>e())},V3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),R3=M('<img class="icon" aria-hidden="true"/>'),N3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),B3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Mm(t,e){H(e,!0),z(t,B3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,V1),n=m(e,"closeSettings",3,V1),r=j(!1),l=()=>{B(r,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=N3();let p;a.__click=d,a.__keydown=[L3,d];var f=_(a),v=_(f);{var u=S=>{var T=Ue(),I=fe(T);{var A=E=>{var R=V3();b(E,R)},k=E=>{var R=R3();O(()=>De(R,"src",e.icon)),xt("error",R,l),ia(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);xi(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()}ut(["click","keydown"]);import{noop as H3}from"@vkontakte/videoplayer-shared/es2018";var O3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),D3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function Lm(t,e){z(t,D3);let i=m(e,"enabled",3,!1);var o=O3(),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 F3=(t,e,i)=>{Jh(t,e(),o=>i()(o))},U3=(t,e,i)=>{t.stopPropagation(),e()(!i())},z3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),W3=M('<li role="menuitem" tabindex="0"><!></li>');function Vm(t,e){H(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,H3),n=m(e,"enabled",3,!1),r=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=W3();let a;d.__click=[U3,o,n],d.__keydown=[F3,n,o];var p=_(d);ha(p,{get content(){return r()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var u=z3();let $;var w=_(u),y=_(w);{var S=E=>{xa(E,{get icon(){return e.icon}})},T=E=>{var R=Ue();let G=g(()=>e.icon);var q=fe(R);xi(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);Lm(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()}ut(["click","keydown"]);import{isValidURL as mx,VideoQuality as q1}from"@vkontakte/videoplayer-shared/es2018";var R1=()=>{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 q3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),K3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),Q3={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function Ia(t,e){H(e,!0),z(t,Q3);let i=m(e,"isSubCase",3,!1),o=g(()=>nu(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=q3();let u=g(()=>s(o));var $=_(v);xi($,()=>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()}import{VideoQuality as G3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as N1}from"@vkontakte/videoplayer-core/es2018";var B1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},O1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=B1({quality:t,availableQualities:e});return i?t===N1.INVARIANT?U("auto_quality_invariant"):U("auto_quality",{actual:o}):o},D1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===N1.INVARIANT?i:`${i}${B1({quality:t,availableQualities:e})}`:"...";var j3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Y3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function vl(t,e){H(e,!0),z(t,Y3);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()!==G3.INVARIANT?v:"")),$=g(()=>D1({prefix:s(u),quality:n(),availableQualities:r(),onlyPrefix:!e.selected}));var w=j3(),y=_(w);let S=g(()=>e.selected?n():void 0);Ia(y,{get quality(){return s(S)},get label(){return s($)},get isMobile(){return l()},isSubCase:!0}),h(w),b(t,w),F(),o()}var Z3=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")},X3={br:!0,span:!0},Rm=(t,e={})=>{var d,a,p,f,v,u,$;if(!t)return t;let i={...X3,...e},o=Object.keys(i);if(!o.length)return t;let n=Z3(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?Rm(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 Nd(t,e){H(e,!1);let i=m(e,"message",8),o=Rm(i());Lr();var n=Ue(),r=fe(n);{var l=d=>{var a=Ue(),p=fe(a);Fl(p,()=>o),b(d,a)};V(r,d=>{o&&d(l)})}b(t,n),F()}var J3=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),ex={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function Nm(t,e){H(e,!1),z(t,ex),Lr();var i=J3(),o=_(i);let n=kr(()=>U("quality_applience",{action:`<span>${U("quality_applience_action")}</span>`}));Nd(o,{get message(){return s(n)}}),h(i),b(t,i),F()}var F1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:vl,valueComponentParams:{prefix:U("other_quality"),selected:o},children:"QUALITY"}},Bm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:U("auto_quality_limit"),valueComponent:e?vl:void 0,valueComponentParams:{prefix:U("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),U1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Nm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Om=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:U("high_quality"),valueComponent:t?vl:void 0,valueComponentParams:{prefix:U("high_quality"),selected:i},sublabel:U("high_quality_description")}),Dm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:U("traffic_saving_quality"),valueComponent:t?vl:void 0,valueComponentParams:{prefix:U("traffic_saving_quality"),selected:i},sublabel:U("traffic_saving_quality_description")});var xu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),wu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=uu(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=xu(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=xu(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=xu(t,d);return U("audio_stream_display_language_index",{language:n,index:a})}}let r=xu(t,e);return U("audio_stream_display_unknown",{index:r})};var tx={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,r=[];return i&&r.push({handler:Bm,selected:e&&!o&&!n||!1}),r.push({handler:Dm,selected:o},{handler:Om,selected:n}),{title:U("submenu_quality"),id:"QUALITY_DETAILS",items:[U1(t),...r.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),F1(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:Ia,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:r=>e(r,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:U("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Bm,selected:((i=Fc())==null?void 0:i.type)==="auto_quality"},{handler:Dm,selected:((o=Fc())==null?void 0:o.type)==="traffic_saving"},{handler:Om,selected:((n=Fc())==null?void 0:n.type)==="high_quality"}].map(({handler:r,selected:l})=>r({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title: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:wu(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===mu?"sub_off":void 0}))})},z1=({subMenuId:t,context:e})=>t?[tx[t](e)]:[];var ix=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 Hm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=ix();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 ox=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 Fm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=ox();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 nx=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 Um(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=nx();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 rx=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 zm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=rx();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 sx=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 Wm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=sx();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 ax=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 Cu(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=ax();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 lx=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 qm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=lx();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 dx=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),cx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Km(t,e){H(e,!0),z(t,cx);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(()=>O1({quality:n(),availableQualities:r(),isAutoQualityEnabled:l()}));var w=dx(),y=_(w);Ia(y,{get quality(){return n()},get label(){return s($)},get isMobile(){return d()}}),h(w),b(t,w),F(),o()}var px={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:pd,label:U("menu_quality"),value:e,valueComponent:Km,weight:Br["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Br["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:U("aria_label_submenu_traffic_saving"),icon:Hm,label:U("menu_traffic_saving"),enabled:t,tooltipText:U("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=wu(t,e);return{id:"AUDIO_LANGUAGES",weight:Br["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:U("aria_label_menu_audio_languages",{actual:i}),icon:Fm,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:Br["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:U("aria_label_menu_rate",{actual:i}),icon:Um,label:U("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Br["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:U("aria_label_menu_subtitle",{actual:t.displayValue}),icon:fd,label:U("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Br.download,type:"CLICK",onClick:t,label:U("download_video_caption"),ariaLabel:U("aria_label_menu_download"),icon:zm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Br.report,type:"CLICK",onClick:t,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,icon:Wm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Br["copy-data"],type:"CLICK",onClick:t,label:U("menu_copy_debug"),ariaLabel:U("menu_copy_debug"),icon:Cu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Br["save-trace-info"],type:"CLICK",onClick:t,label:U("menu_save_debug"),ariaLabel:U("menu_save_debug"),icon:Cu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Br["debug-info"],type:"CLICK",onClick:t,ariaLabel:U("aria_label_menu_debug_overlay"),label:U("menu_debug_overlay"),icon:qm,isHiddenFor:["desktop"]})},W1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>px[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(fa)};var vx=(t,e)=>{Xc(t,e)},gx=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),hx=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),_x=M("<div><!> <!></div>"),bx={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
302
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Pm(t,e){D(e,!0),z(t,E3);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);Nt(()=>{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=T3();let A;var k=_(I);let E;k.__keydown=[w3,e];var R=_(k);let Q;R.__click=[C3,e],R.__keydown=[S3,e];var q=_(R);Fs(q,{direction:"left"});var W=P(q,2),G=_(W,!0);h(W),h(R),nt(R,Y=>B($,Y),()=>s($));var X=P(R,2);xi(X,17,()=>e.items,Hl,(Y,ce)=>{var le=Fe(),me=fe(le);{var ke=ae=>{Em(ae,{get item(){return s(ce)},get isMobile(){return l()}})},ve=(ae,Ve)=>{{var ne=N=>{Im(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),nt(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}`),lt(I,`min-width: ${s(T)}px`),E=oe(k,1,"items svelte-7dfsuh",null,E,ce),lt(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()})]),es(R,"clientWidth",Y=>B(w,Y)),es(R,"clientHeight",Y=>B(y,Y)),b(t,I),H(),o()}ct(["keydown","click"]);import{noop as I3}from"@vkontakte/videoplayer-shared/es2018";var k3=(t,e)=>Jc(t,e()),P3=(t,e)=>{t.stopPropagation(),e()()},A3=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>'),L3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Am(t,e){D(e,!0),z(t,L3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,I3),n=m(e,"valueComponent",3,void 0),r=m(e,"ref",15);var l=M3();let d;l.__click=[P3,o],l.__keydown=[k3,o];var a=_(l),p=_(a);{var f=T=>{xa(T,{get icon(){return e.icon}})},v=T=>{var I=Fe();let A=g(()=>e.icon);var k=fe(I);wi(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);wi(k,()=>s(A),(E,R)=>{R(E,{})}),b(T,I)},S=T=>{var I=A3(),A=_(I,!0);h(I),O(()=>$e(A,e.value)),b(T,I)};V(w,T=>{n()?T(y):T(S,!1)})}h(l),nt(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()}ct(["click","keydown"]);import{noop as R1}from"@vkontakte/videoplayer-shared/es2018";var V3=(t,e)=>{al(t,()=>e())},R3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),N3=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>'),O3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Mm(t,e){D(e,!0),z(t,O3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,R1),n=m(e,"closeSettings",3,R1),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=[V3,d];var f=_(a),v=_(f);{var u=S=>{var T=Fe(),I=fe(T);{var A=E=>{var R=R3();b(E,R)},k=E=>{var R=N3();O(()=>De(R,"src",e.icon)),Ct("error",R,l),ia(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);wi(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()}ct(["click","keydown"]);import{noop as F3}from"@vkontakte/videoplayer-shared/es2018";var D3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),H3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function Lm(t,e){z(t,H3);let i=m(e,"enabled",3,!1);var o=D3(),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 U3=(t,e,i)=>{e1(t,e(),o=>i()(o))},z3=(t,e,i)=>{t.stopPropagation(),e()(!i())},W3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),q3=M('<li role="menuitem" tabindex="0"><!></li>');function Vm(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,F3),n=m(e,"enabled",3,!1),r=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=q3();let a;d.__click=[z3,o,n],d.__keydown=[U3,n,o];var p=_(d);ha(p,{get content(){return r()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var u=W3();let $;var w=_(u),y=_(w);{var S=E=>{xa(E,{get icon(){return e.icon}})},T=E=>{var R=Fe();let Q=g(()=>e.icon);var q=fe(R);wi(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);Lm(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()}ct(["click","keydown"]);import{isValidURL as vx,VideoQuality as K1}from"@vkontakte/videoplayer-shared/es2018";var N1=()=>{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 K3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),Q3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),G3={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function Ia(t,e){D(e,!0),z(t,G3);let i=m(e,"isSubCase",3,!1),o=g(()=>nu(e.quality));var n=Q3(),r=_(n);let l;var d=_(r,!0);h(r);var a=P(r,2);{var p=f=>{var v=K3();let u=g(()=>s(o));var $=_(v);wi($,()=>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()}import{VideoQuality as j3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as B1}from"@vkontakte/videoplayer-core/es2018";var O1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},D1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=O1({quality:t,availableQualities:e});return i?t===B1.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},H1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===B1.INVARIANT?i:`${i}${O1({quality:t,availableQualities:e})}`:"...";var Y3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Z3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function vl(t,e){D(e,!0),z(t,Z3);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()!==j3.INVARIANT?v:"")),$=g(()=>H1({prefix:s(u),quality:n(),availableQualities:r(),onlyPrefix:!e.selected}));var w=Y3(),y=_(w);let S=g(()=>e.selected?n():void 0);Ia(y,{get quality(){return s(S)},get label(){return s($)},get isMobile(){return l()},isSubCase:!0}),h(w),b(t,w),H(),o()}var X3=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")},J3={br:!0,span:!0},Rm=(t,e={})=>{var d,a,p,f,v,u,$;if(!t)return t;let i={...J3,...e},o=Object.keys(i);if(!o.length)return t;let n=X3(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?Rm(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 Nd(t,e){D(e,!1);let i=m(e,"message",8),o=Rm(i());Lr();var n=Fe(),r=fe(n);{var l=d=>{var a=Fe(),p=fe(a);Fl(p,()=>o),b(d,a)};V(r,d=>{o&&d(l)})}b(t,n),H()}var ex=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),tx={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function Nm(t,e){D(e,!1),z(t,tx),Lr();var i=ex(),o=_(i);let n=kr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Nd(o,{get message(){return s(n)}}),h(i),b(t,i),H()}var U1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:vl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},Bm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?vl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),z1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Nm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Om=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?vl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),Dm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:F("traffic_saving_quality"),valueComponent:t?vl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var xu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),wu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=uu(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=xu(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=xu(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=xu(t,d);return F("audio_stream_display_language_index",{language:n,index:a})}}let r=xu(t,e);return F("audio_stream_display_unknown",{index:r})};var ix={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,r=[];return i&&r.push({handler:Bm,selected:e&&!o&&!n||!1}),r.push({handler:Dm,selected:o},{handler:Om,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[z1(t),...r.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),U1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Ia,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:r=>e(r,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Bm,selected:((i=Fc())==null?void 0:i.type)==="auto_quality"},{handler:Dm,selected:((o=Fc())==null?void 0:o.type)==="traffic_saving"},{handler:Om,selected:((n=Fc())==null?void 0:n.type)==="high_quality"}].map(({handler:r,selected:l})=>r({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:wu(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===mu?"sub_off":void 0}))})},W1=({subMenuId:t,context:e})=>t?[ix[t](e)]:[];var ox=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 Hm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ox();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 nx=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 Fm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=nx();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 rx=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 Um(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=rx();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 sx=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 zm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=sx();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 ax=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 Wm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ax();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 lx=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 Cu(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=lx();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 dx=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 qm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=dx();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 cx=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),ux={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Km(t,e){D(e,!0),z(t,ux);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(()=>D1({quality:n(),availableQualities:r(),isAutoQualityEnabled:l()}));var w=cx(),y=_(w);Ia(y,{get quality(){return n()},get label(){return s($)},get isMobile(){return d()}}),h(w),b(t,w),H(),o()}var fx={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:pd,label:F("menu_quality"),value:e,valueComponent:Km,weight:Br["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Br["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:Hm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=wu(t,e);return{id:"AUDIO_LANGUAGES",weight:Br["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:Fm,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Br["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:Um,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Br["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:fd,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Br.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:zm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Br.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:Wm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Br["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:Cu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Br["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:Cu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Br["debug-info"],type:"CLICK",onClick:t,ariaLabel:F("aria_label_menu_debug_overlay"),label:F("menu_debug_overlay"),icon:qm,isHiddenFor:["desktop"]})},q1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>fx[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(fa)};var gx=(t,e)=>{Xc(t,e)},hx=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),_x=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),bx=M("<div><!> <!></div>"),$x={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 Bd(t,e){H(e,!0),z(t,bx);let[i,o]=Oe(),n=()=>C(Qe,"$settingsMenuVisible",i),r=()=>C(Ze,"$settingsMenuOpenedByKeyboard",i),l=()=>C(dt,"$debugPanelVisible",i),d=()=>C(Ae,"$isMobile",i),a=()=>C(It,"$playerSize",i),p=()=>C(ee,"$hasMpegSources$",i),f=()=>C(Te,"$mobileNotReportControlHidden$",i),v=()=>C(oe,"$autoQualityLimitingAvailable$",i),u=()=>C(ue,"$availableSubtitlesList$",i),$=()=>C(je,"$isLiveWithPlaybackSpeed",i),w=()=>C(me,"$availableAudioStreams$",i),y=()=>C(ge,"$availablePlaybackRates$",i),S=()=>C(Ie,"$currentAudioStream$",i),T=()=>C(_e,"$currentPlaybackRate$",i),I=()=>C(tt,"$trafficSavingEnabled",i),A=()=>C(se,"$currentQuality$",i),k=()=>C(N,"$isAutoQualityEnabled$",i),E=()=>C(ce,"$currentSubtitle$",i),R=()=>C(zt,"$additionalSettingsMenuItems$",i),G=()=>C(He,"$isAutoQualityAvailable$",i),q=()=>C(Le,"$availableQualities$",i),W=()=>C(vt,"$highQualityEnabled",i),Q=m(e,"ref",15,void 0),X=m(e,"playerControlsHeight",3,0),Y=ni({}),de=ni({}),le=Ee(),ve=St(),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$,Ze=le.ui.settingsMenu.openedByBtnKeyboard$,Z=le.ui.settingsMenu.ref$,Ae=le.ui.isMobile,Te=le.ui.mobileNotReportControlHidden$,je=le.state.canChangePlaybackSpeed$,tt=le.state.trafficSavingEnabled$,vt=le.state.highQualityEnabled$,It=le.ui.playerSize,dt=le.ui.debugPanelVisible,qe=le.state.isInteractiveTime$,zt=le.ui.additionalSettingsMenuItems$,Yt=le.ui.t,qt=le.actions.internal.downloadVideo,Wt=le.actions.internal.closeSettingsMenu,ae=le.actions.internal.openSettingsSubMenu,Tt=le.actions.internal.closeSettingsSubMenu,xe=j(!1),he=j(void 0),te=R1();We(()=>{!n()&&te.current&&(Tt(de[te.current]),te.popAllSubMenus())}),We(()=>{n()||B(he,void 0)}),We(()=>{!te.current&&s(he)&&Zh(Y,s(he))}),We(()=>{Q()&&Z.set(Q())});async function Ne(Xe){var Gt;te.pushSubMenu(Xe),await xo(),ae(Xe,de[Xe]);let at=(Gt=Q())==null?void 0:Gt.firstElementChild;at&&df(at)}function ze(Xe){var at;Xe==null||Xe.stopPropagation(),r()||(at=e.returnFocus)==null||at.call(e),Wt(),B(xe,!1)}function Ve(Xe,at){le.actions.internal.setQuality(Xe,{appliesTo:at}),ze()}function Fe(Xe){le.actions.internal.setAudioStream(Xe),ze()}function Re(Xe,at){le.actions.internal.setTrafficSavingEnabled(Xe,at),ve.features.qualityDetailsSubMenuEnabled&&ze()}function Je(Xe,at){le.actions.internal.setHighQualityEnabled(Xe,at),ze()}function Et(Xe){le.actions.internal.setPlaybackRate(Xe),ze()}function Kt(Xe){le.actions.internal.setSubtitle(Xe),ze()}function it(){qt()}function di(){mx(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function ei(){rl(le.actions.internal.getDebugTextData())}let st=()=>{let Xe=le.actions.internal.getTraceTextData(),at=new Blob([...Xe],{type:"application/json"}),Gt=window.URL.createObjectURL(at);la(Gt,"vk_player_trace_info","json")};function Qt(){dt.set(!l())}function qi(){B(xe,!0)}function ri(){B(xe,!1)}function bi(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-X()}px; overflow: auto;`}let eo=g(()=>pe&&p()&&!f()),Ft=g(()=>ve.features.trafficSaving&&!f()&&v()&&!ve.features.qualityDetailsSubMenuEnabled),ci=g(()=>u().length>0&&!f()),Ki=g(()=>!!$()&&!f()),Do=g(()=>ve.features.audioLanguages&&w().length>=2&&!f()),kt=g(()=>!f());Nt(()=>qe.subscribe(Xe=>{Xe&&!d()&&!s(xe)&&!r()&&ze()}));let yt=g(()=>{let Xe=[s(kt)&&"QUALITY_SETTINGS",s(Do)&&"AUDIO_LANGUAGES",s(Ki)&&"PLAYBACK_RATE",s(ci)&&"SUBTITLES",s(Ft)&&"TRAFFIC_SAVING_SWITCH",s(eo)&&"DOWNLOAD",ve.showSupport&&"SHOW_SUPPORT","COPY_DATA",ve.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(at=>!!at);return W1({items:Xe,context:{qualityDetailsSubMenuEnabled:ve.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Et,trafficSavingEnabled:I(),toggleTrafficSaving:Re,currentQuality:A()||q1.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:it,onCopyDataClick:ei,onReportProblemClick:di,onSaveTraceDataClick:st,toggleShowDebugInfo:Qt},additionalSettingsMenuItems:R()})}),Ai=g(()=>z1({subMenuId:te.current,context:{availablePlaybackRates:y(),selectPlaybackRate:Et,trafficSavingEnabled:I(),toggleTrafficSaving:Re,currentQuality:A()||q1.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:G()||!1,availableQualities:q(),highQualityEnabled:W(),toggleHighQuality:Je,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Wt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Fe,selectQuality:Ve,selectSubtitle:Kt}}));var Ci=_x();let D;var Bt=_(Ci);{var li=Xe=>{var at=hx();let Gt;at.__keydown=[vx,Wt];var Mt=_(at);{var Hi=Si=>{var _t=gx();let Ti;var Fo=_(_t),bn=_(Fo,!0);h(Fo);var Fi=P(Fo,2);Fi.__click=ze,h(_t),O((Qi,So)=>{Ti=ie(_t,1,"item header svelte-17or3al",null,Ti,Qi),$e(bn,So)},[()=>({mobile:d()}),()=>Yt("submenu_settings")]),b(Si,_t)};V(Mt,Si=>{d()&&Si(Hi)})}var Ho=P(Mt,2);let rn;yi(Ho,21,()=>s(yt),Si=>Si.id,(Si,_t)=>{var Ti=Ue(),Fo=fe(Ti);{var bn=Qi=>{Am(Qi,{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(So){Y[s(_t).id]=So}})},Fi=(Qi,So)=>{{var sn=ui=>{Mm(ui,{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})},On=(ui,Uo)=>{{var $n=zo=>{Vm(zo,{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(ui,zo=>{s(_t).type==="SWITCH"&&zo($n)},Uo)}};V(Qi,ui=>{s(_t).type==="CLICK"?ui(sn):ui(On,!1)},So)}};V(Fo,Qi=>{s(_t).type==="OPEN_SUB_MENU"?Qi(bn):Qi(Fi,!1)})}b(Si,Ti)}),h(Ho),rt(Ho,Si=>Q(Si),()=>Q()),h(at),O((Si,_t,Ti)=>{Gt=ie(at,1,"settings-menu menu svelte-17or3al",null,Gt,Si),rn=ie(Ho,1,"items",null,rn,_t),lt(Ho,Ti)},[()=>({desktop:!d(),mobile:d(),hidden:!!te.current}),()=>({mobile:d()}),bi]),xt("mouseenter",at,qi),xt("mouseleave",at,ri),b(Xe,at)};V(Bt,Xe=>{n()&&Xe(li)})}var gt=P(Bt,2);yi(gt,17,()=>s(Ai),Xe=>Xe.id,(Xe,at)=>{let Gt=g(()=>{var Mt;return(Mt=s(at).minWidth)!=null?Mt:137});Pm(Xe,{get isMobile(){return d()},get playerControlsHeight(){return X()},get returnFromSubMenu(){return te.popSubMenu},get id(){return s(at).id},get title(){return s(at).title},get closeSettingsMenu(){return Wt},openSubMenuList:Ne,get items(){return s(at).items},get minWidth(){return s(Gt)},get refMenuItems(){return Y},get listRef(){return de[s(at).id]},set listRef(Mt){de[s(at).id]=Mt}})}),h(Ci),O(Xe=>D=ie(Ci,1,"settings-menu-container svelte-17or3al",null,D,Xe),[()=>({mobile:d(),hidden:!n()})]),b(t,Ci),F(),o()}ut(["keydown","click"]);var $x=t=>t;function K1(t,{delay:e=0,duration:i=400,easing:o=$x}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:r=>`opacity: ${r*n}`}}var yx=M('<button class="button svelte-1sbbskl"> </button>'),xx={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Qm(t,e){z(t,xx);var i=yx();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 wx=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),Cx={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 Bd(t,e){D(e,!0),z(t,$x);let[i,o]=Oe(),n=()=>C(qe,"$settingsMenuVisible",i),r=()=>C(Ze,"$settingsMenuOpenedByKeyboard",i),l=()=>C(wt,"$debugPanelVisible",i),d=()=>C(Ae,"$isMobile",i),a=()=>C(mt,"$playerSize",i),p=()=>C(te,"$hasMpegSources$",i),f=()=>C(Te,"$mobileNotReportControlHidden$",i),v=()=>C(ne,"$autoQualityLimitingAvailable$",i),u=()=>C(ue,"$availableSubtitlesList$",i),$=()=>C(je,"$isLiveWithPlaybackSpeed",i),w=()=>C(ve,"$availableAudioStreams$",i),y=()=>C(ge,"$availablePlaybackRates$",i),S=()=>C(ke,"$currentAudioStream$",i),T=()=>C(_e,"$currentPlaybackRate$",i),I=()=>C(tt,"$trafficSavingEnabled",i),A=()=>C(ae,"$currentQuality$",i),k=()=>C(N,"$isAutoQualityEnabled$",i),E=()=>C(de,"$currentSubtitle$",i),R=()=>C(Ft,"$additionalSettingsMenuItems$",i),Q=()=>C(He,"$isAutoQualityAvailable$",i),q=()=>C(Ve,"$availableQualities$",i),W=()=>C(ht,"$highQualityEnabled",i),G=m(e,"ref",15,void 0),X=m(e,"playerControlsHeight",3,0),Y=oi({}),ce=oi({}),le=Ee(),me=It(),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$,Ze=le.ui.settingsMenu.openedByBtnKeyboard$,Z=le.ui.settingsMenu.ref$,Ae=le.ui.isMobile,Te=le.ui.mobileNotReportControlHidden$,je=le.state.canChangePlaybackSpeed$,tt=le.state.trafficSavingEnabled$,ht=le.state.highQualityEnabled$,mt=le.ui.playerSize,wt=le.ui.debugPanelVisible,Qe=le.state.isInteractiveTime$,Ft=le.ui.additionalSettingsMenuItems$,Xt=le.ui.t,Gt=le.actions.internal.downloadVideo,Ut=le.actions.internal.closeSettingsMenu,ee=le.actions.internal.openSettingsSubMenu,Rt=le.actions.internal.closeSettingsSubMenu,xe=j(!1),he=j(void 0),ie=N1();Ue(()=>{!n()&&ie.current&&(Rt(ce[ie.current]),ie.popAllSubMenus())}),Ue(()=>{n()||B(he,void 0)}),Ue(()=>{!ie.current&&s(he)&&Xh(Y,s(he))}),Ue(()=>{G()&&Z.set(G())});async function Be(rt){var bi;ie.pushSubMenu(rt),await $o(),ee(rt,ce[rt]);let ft=(bi=G())==null?void 0:bi.firstElementChild;ft&&df(ft)}function ze(rt){var ft;rt==null||rt.stopPropagation(),r()||(ft=e.returnFocus)==null||ft.call(e),Ut(),B(xe,!1)}function Me(rt,ft){le.actions.internal.setQuality(rt,{appliesTo:ft}),ze()}function We(rt){le.actions.internal.setAudioStream(rt),ze()}function Re(rt,ft){le.actions.internal.setTrafficSavingEnabled(rt,ft),me.features.qualityDetailsSubMenuEnabled&&ze()}function Je(rt,ft){le.actions.internal.setHighQualityEnabled(rt,ft),ze()}function At(rt){le.actions.internal.setPlaybackRate(rt),ze()}function Wt(rt){le.actions.internal.setSubtitle(rt),ze()}function Xe(){Gt()}function ci(){vx(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function ti(){rl(le.actions.internal.getDebugTextData())}let st=()=>{let rt=le.actions.internal.getTraceTextData(),ft=new Blob([...rt],{type:"application/json"}),bi=window.URL.createObjectURL(ft);la(bi,"vk_player_trace_info","json")};function Kt(){wt.set(!l())}function ri(){B(xe,!0)}function ui(){B(xe,!1)}function co(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-X()}px; overflow: auto;`}let Wi=g(()=>pe&&p()&&!f()),qt=g(()=>me.features.trafficSaving&&!f()&&v()&&!me.features.qualityDetailsSubMenuEnabled),ni=g(()=>u().length>0&&!f()),Bo=g(()=>!!$()&&!f()),Bt=g(()=>me.features.audioLanguages&&w().length>=2&&!f()),_t=g(()=>!f());Nt(()=>Qe.subscribe(rt=>{rt&&!d()&&!s(xe)&&!r()&&ze()}));let Si=g(()=>{let rt=[s(_t)&&"QUALITY_SETTINGS",s(Bt)&&"AUDIO_LANGUAGES",s(Bo)&&"PLAYBACK_RATE",s(ni)&&"SUBTITLES",s(qt)&&"TRAFFIC_SAVING_SWITCH",s(Wi)&&"DOWNLOAD",me.showSupport&&"SHOW_SUPPORT","COPY_DATA",me.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(ft=>!!ft);return q1({items:rt,context:{qualityDetailsSubMenuEnabled:me.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:At,trafficSavingEnabled:I(),toggleTrafficSaving:Re,currentQuality:A()||K1.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:Xe,onCopyDataClick:ti,onReportProblemClick:ci,onSaveTraceDataClick:st,toggleShowDebugInfo:Kt},additionalSettingsMenuItems:R()})}),Oo=g(()=>W1({subMenuId:ie.current,context:{availablePlaybackRates:y(),selectPlaybackRate:At,trafficSavingEnabled:I(),toggleTrafficSaving:Re,currentQuality:A()||K1.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:Q()||!1,availableQualities:q(),highQualityEnabled:W(),toggleHighQuality:Je,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Ut,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:We,selectQuality:Me,selectSubtitle:Wt}}));var U=bx();let at;var pi=_(U);{var li=rt=>{var ft=_x();let bi;ft.__keydown=[gx,Ut];var Et=_(ft);{var nn=Ti=>{var $t=hx();let Ei;var Ho=_($t),bn=_(Ho,!0);h(Ho);var Hi=P(Ho,2);Hi.__click=ze,h($t),O((qi,wo)=>{Ei=oe($t,1,"item header svelte-17or3al",null,Ei,qi),$e(bn,wo)},[()=>({mobile:d()}),()=>Xt("submenu_settings")]),b(Ti,$t)};V(Et,Ti=>{d()&&Ti(nn)})}var Do=P(Et,2);let rn;xi(Do,21,()=>s(Si),Ti=>Ti.id,(Ti,$t)=>{var Ei=Fe(),Ho=fe(Ei);{var bn=qi=>{Am(qi,{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:()=>{Be(s($t).children),B(he,s($t).id,!0)},get ref(){return Y[s($t).id]},set ref(wo){Y[s($t).id]=wo}})},Hi=(qi,wo)=>{{var sn=di=>{Mm(di,{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})},On=(di,Fo)=>{{var $n=Uo=>{Vm(Uo,{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(di,Uo=>{s($t).type==="SWITCH"&&Uo($n)},Fo)}};V(qi,di=>{s($t).type==="CLICK"?di(sn):di(On,!1)},wo)}};V(Ho,qi=>{s($t).type==="OPEN_SUB_MENU"?qi(bn):qi(Hi,!1)})}b(Ti,Ei)}),h(Do),nt(Do,Ti=>G(Ti),()=>G()),h(ft),O((Ti,$t,Ei)=>{bi=oe(ft,1,"settings-menu menu svelte-17or3al",null,bi,Ti),rn=oe(Do,1,"items",null,rn,$t),lt(Do,Ei)},[()=>({desktop:!d(),mobile:d(),hidden:!!ie.current}),()=>({mobile:d()}),co]),Ct("mouseenter",ft,ri),Ct("mouseleave",ft,ui),b(rt,ft)};V(pi,rt=>{n()&&rt(li)})}var ut=P(pi,2);xi(ut,17,()=>s(Oo),rt=>rt.id,(rt,ft)=>{let bi=g(()=>{var Et;return(Et=s(ft).minWidth)!=null?Et:137});Pm(rt,{get isMobile(){return d()},get playerControlsHeight(){return X()},get returnFromSubMenu(){return ie.popSubMenu},get id(){return s(ft).id},get title(){return s(ft).title},get closeSettingsMenu(){return Ut},openSubMenuList:Be,get items(){return s(ft).items},get minWidth(){return s(bi)},get refMenuItems(){return Y},get listRef(){return ce[s(ft).id]},set listRef(Et){ce[s(ft).id]=Et}})}),h(U),O(rt=>at=oe(U,1,"settings-menu-container svelte-17or3al",null,at,rt),[()=>({mobile:d(),hidden:!n()})]),b(t,U),H(),o()}ct(["keydown","click"]);var yx=t=>t;function Q1(t,{delay:e=0,duration:i=400,easing:o=yx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:r=>`opacity: ${r*n}`}}var xx=M('<button class="button svelte-1sbbskl"> </button>'),wx={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Qm(t,e){z(t,wx);var i=xx();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)}ct(["click"]);var Cx=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),Sx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
307
307
  /**
308
308
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
309
- */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Od(t,e){H(e,!0),z(t,Cx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=St(),{ui:{t:n}}=Ee(),r=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=wx(),d=_(l),a=_(d),p=_(a),f=_(p);Nd(f,{get message(){return r}}),h(p);var v=P(p,2);{var u=w=>{let y=g(()=>n("slow_video_notification_button"));Qm(w,{get label(){return s(y)},get onClick(){return e.onSelectAutoQuality}})};V(v,w=>{o||w(u)})}h(a);var $=P(a,2);ma($,{get onClick(){return e.onClose}}),h(d),h(l),Ip(3,d,()=>K1,()=>({duration:i})),b(t,l),F()}import{isIntersecting as Q1,Subscription as Sx}from"@vkontakte/videoplayer-shared/es2018";var ka="annotation",Su=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:r,hideAllControls:l}=i;e.setAttribute("slot",ka),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),r&&this.runHidingControlsWhenIntersected(n,r),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}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=hs(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(Q1(y,u)))})}));a.observe(r,{childList:!0,subtree:!0}),n.observer=a;let p=new Sx;o.forEach(v=>{l&&p.add(l[v].subscribe(u=>{let $=d==null?void 0:d[v];u&&u.isDisplayed?$==null||$.set(Q1(u,hs(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 Tx=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),Ex={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 Od(t,e){D(e,!0),z(t,Sx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=It(),{ui:{t:n}}=Ee(),r=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=Cx(),d=_(l),a=_(d),p=_(a),f=_(p);Nd(f,{get message(){return r}}),h(p);var v=P(p,2);{var u=w=>{let y=g(()=>n("slow_video_notification_button"));Qm(w,{get label(){return s(y)},get onClick(){return e.onSelectAutoQuality}})};V(v,w=>{o||w(u)})}h(a);var $=P(a,2);ma($,{get onClick(){return e.onClose}}),h(d),h(l),Ip(3,d,()=>Q1,()=>({duration:i})),b(t,l),H()}import{isIntersecting as G1,Subscription as Tx}from"@vkontakte/videoplayer-shared/es2018";var ka="annotation",Su=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:r,hideAllControls:l}=i;e.setAttribute("slot",ka),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),r&&this.runHidingControlsWhenIntersected(n,r),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}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=hs(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(G1(y,u)))})}));a.observe(r,{childList:!0,subtree:!0}),n.observer=a;let p=new Tx;o.forEach(v=>{l&&p.add(l[v].subscribe(u=>{let $=d==null?void 0:d[v];u&&u.isDisplayed?$==null||$.set(G1(u,hs(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 Ex=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),Ix={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.`},Vh=V_;var vs=new Map;vs.set(Nh.EN,Vh)
337
337
  opacity: 0;
338
338
  scale: 0;
339
339
  }
340
- }`};function Gm(t,e){H(e,!0),z(t,Ex);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}}=St(),u=0,$=j(null),w=j(!1);We(()=>{B($,n()?Nr:$s,!0)}),We(()=>{B($,r()?Hs:null,!0)}),We(()=>{if(p)return u=window.setTimeout(()=>{u=0,r()&&s($)===Hs&&(r()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B($,null)},s($)!==Hs?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);na(k,()=>s($),E=>{var R=Tx(),G=_(R),q=_(G);let W=g(()=>r()==="prev");xi(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(()=>lt(G,`animation-duration: ${s($)!==Hs?f:v}ms`)),b(E,R)}),b(I,A)};V(S,I=>{s($)&&p&&I(T)})}b(t,y),F(),o()}var Ix=M('<div><div data-testid="video-container"></div></div>'),kx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
- .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Pa(t,e){H(e,!0),z(t,kx);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:$}=St(),w=g(()=>a()&&n()%180?r().height/r().width:1);var y=Ix();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=ie(y,1,"video-wrapper svelte-1czns9r",null,S,A),I=ie(T,1,"video-container svelte-1czns9r",null,I,k),lt(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()}ut(["contextmenu","mousedown","mouseup","click","dblclick"]);var Px=(t,e,i,o,n,r)=>{if(t.stopPropagation(),e()||o()){r();return}},Ax=M("<div><!></div>"),Mx=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Lx=M("<div><!></div>"),Vx=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),Rx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Nx=M("<!> <!> <!>",1),Bx=M('<div class="blocked svelte-jtgjmv"></div>'),Ox=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Dx={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function jm(t,e){H(e,!0),z(t,Dx);let[i,o]=Oe(),n=()=>C(xn,"$notificationsToShow$",i),r=()=>C(qi,"$playerPhase",i),l=()=>C(Ai,"$isLoaderVisible",i),d=()=>C(ei,"$adPlaybackState",i),a=()=>C(at,"$crashed",i),p=()=>C(Fo,"$isInteractiveTime$",i),f=()=>C(Ft,"$settingsMenuVisible",i),v=()=>C(bn,"$isInteractiveExpectation$",i),u=()=>C(eo,"$controlsVisible",i),$=()=>C(Qi,"$touched",i),w=()=>C(ir,"$graphIsOpened$",i),y=()=>C(ri,"$isFullscreen",i),S=()=>C(er,"$autoplayNextEnabled$",i),T=()=>C(li,"$postrollPassed",i),I=()=>C(Ci,"$isEnded$",i),A=()=>C(ln,"$cursorInside",i),k=()=>C(Dn,"$isControlsAvailable",i),E=()=>C(vr,"$fakeIsPlaying$",i),R=()=>C(oi,"$bottomNoSmooth",i),G=()=>C(ui,"$interactiveTimeIndicator",i),q=()=>C(rn,"$playerSize",i),W=()=>C(Si,"$is3DVideo",i),Q=()=>C(kt,"$contextMenuVisible$",i),X=()=>C(di,"$playbackState$",i),Y=()=>C(So,"$hotKeyMapData",i),de=()=>C(Ki,"$scrubbingInProgress",i),le=()=>C(Do,"$volumeChangingInProgress",i),ve=()=>C(D,"$chromecastConnected$",i),Ie=()=>C($i,"$controlsTimeoutActive",i),me=()=>C(ci,"$settingsMenuOpenedByKeyboard",i),se=()=>C(En,"$contextMenuOpenedByKeyboard$",i),Le=()=>C(go,"$contextMenuOpenedByHotKey$",i),oe=()=>C(lo,"$contextMenuButtonRef$",i),N=()=>C(lr,"$contextMenuLastActiveElem$",i),He=()=>C(bi,"$isFullscreenOpenedByKeyboard",i),_e=()=>C(it,"$language$",i),ge=()=>C(_t,"$icon3DVideoVisible",i),ce=()=>C(Bt,"$chromecastDeviceName$",i),ue=()=>C(Hi,"$currentSubtitle$",i),pe=()=>C(Ho,"$currentSubtitleCaptions$",i),ee=()=>C(st,"$position$",i),Qe=()=>C(Qt,"$duration$",i),Ze=()=>C(gt,"$isLive$",i),Z=()=>C(Xe,"$isPlaying$",i),Ae=()=>C($n,"$contextMenuPosition$",i),Te=()=>C(sn,"$showHotKeyMap",i),je=()=>C(yt,"$debugPanelVisible",i),tt=()=>C(Or,"$userActionsDisabled$",i),vt=m(e,"videoContainer",15),It=m(e,"adsSlotId",3,void 0),dt=m(e,"adsParams",3,void 0),qe=m(e,"adsPreviewParam",3,void 0),zt=m(e,"adsAutoplayParam",3,void 0),Yt=m(e,"duration",3,void 0),qt=m(e,"logoTargetUrl",3,""),Wt=m(e,"showNextPrevButtons",3,!1),ae=m(e,"nextButtonActive",3,!1),Tt=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),Je=m(e,"showEndScreen",3,!0),Et=m(e,"keyboardControls",15),Kt=e.store.getLogger().createComponentLog("Root component"),it=e.store.interfaceLanguage$,di=e.store.state.playbackState$,ei=e.store.ads.playbackState,st=e.store.state.positionWithScrubbing$,Qt=e.store.state.duration$,qi=e.store.playerPhase,ri=e.store.ui.isFullscreen,bi=e.store.ui.isFullscreenOpenedByKeyboard,eo=e.store.ui.controlsVisible,Ft=e.store.ui.settingsMenu.visible$,ci=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ki=e.store.ui.scrubbingInProgress,Do=e.store.ui.volumeChangingInProgress,kt=e.store.ui.contextMenu.visible$,yt=e.store.ui.debugPanelVisible,Ai=e.store.state.isLoaderVisible,Ci=e.store.state.isEnded$,D=e.store.state.chromecastConnected$,Bt=e.store.state.chromecastDeviceName$,li=e.store.ads.postrollPassed,gt=e.store.state.isLive$,Xe=e.store.state.isPlaying$,at=e.store.state.crashed$,Gt=e.store.webApi.annotationsApi,Mt=e.store.webApi.pictureInPictureApi,Hi=e.store.state.currentSubtitle$,Ho=e.store.state.currentSubtitleCaptions$,rn=e.store.ui.playerSize,Si=e.store.ui.is3DVideo,_t=e.store.ui.icon3DVideoVisible,Ti=e.store.state.isInteractive,Fo=e.store.state.isInteractiveTime$,bn=e.store.state.isInteractiveExpectation$,Fi=e.store.state.hasInteractiveBranches,Qi=e.store.ui.touched,So=e.store.ui.modals.hotKeyMap.data,sn=e.store.ui.modals.hotKeyMap.show,On=e.store.ui.overlayContainer$,ui=e.store.ui.controls.interactiveTimeIndicator,Uo=e.store.state.showInteractiveTimeIndicator,$n=e.store.ui.contextMenu.position$,zo=e.store.actions.internal.setQuality,to=e.store.actions.internal.closeSettingsMenu,er=e.store.ui.autoplayNextEnabled$,Or=e.store.ui.userActionsDisabled,Dn=e.store.ui.isControlsAvailable,tr=e.store.ui.videoTitleInfo,Dr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:vr,notifications$:an,graphIsOpened$:ir}=po(),io=j(void 0),Wo=j(void 0),or=j(void 0),yn=j(void 0),nr,Hn,rr;So.set(zh());let{closeNotification:Fn,notificationsToShow$:xn}=an,gr=g(()=>!!n().slow_video),hr=()=>Fn("slow_video"),_r=g(()=>(r()==="video"&&l()||r()==="ads"&&d()==="inactive")&&!a()),ot=j(void 0),oi=ne(!1),wn,$i=ne(!1),Mi=ne(),ln=ne(!1),dn=j(!1),fo=j(!1),Un=j(!1),mo=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),To=g(()=>p()&&!f()&&!(s(dn)||s(fo))&&!(s(Un)&&!v())),br=!0,rs=g(()=>e.uiConfig.features.thumbTimer&&Re()&&r()==="video"&&!u()&&!a()&&!Ti&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),$r=g(()=>r()==="video"&&!w()&&y()),Hr=j(!1),Cn=g(()=>(Je()||e.showAutoplayNext&&S())&&!!xe()&&!!he()&&(e.showAds&&T()||!e.showAds)&&I()&&!a()&&!s(Hr)),yr=g(()=>A()&&!(u()||s(Cn))&&!p()&&k()),vo=j(!1),sr=g(()=>E()!==null),{toggle:qo}=vr,ti=!1,Ko=null;Mt==null||Mt.setContext(Cl());let Fr=()=>{e.autoplay&&!Ti&&e.uiConfig.controls.showOnStartupAtAutoplay&&Lt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Fr});let xr=()=>{window.clearTimeout(nr),$i.set(!1)},wt=()=>{window.clearTimeout(Hn),Mi.set(null)},Lt=Se=>{xr(),$i.set(!0),nr=window.setTimeout(()=>$i.set(!1),Se);let bt=Se-100;wn=window.setTimeout(()=>{R()&&oi.set(!1)},bt>0?bt:Se)},cn=(Se,bt)=>{wt(),Mi.set(bt),Hn=window.setTimeout(()=>Mi.set(null),Se)},Eo=Si.subscribe(Se=>{_t.set(Se),Se&&(window.clearTimeout(rr),rr=window.setTimeout(()=>_t.set(!1),e.uiConfig.controls.hide360IconTimeout))}),un=async()=>{var bt,fi,Yi,Yo;let Se=Ls();if(Se){let _o=Xl(),et=oo();Se=_o===et||_o===Ne()}if(Se){Lt(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Mt==null?void 0:Mt.exit())}catch(_o){Kt({message:String(_o)})}}ri.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),y()?(fi=(bt=e.store.callbacks)==null?void 0:bt.onFullscreenEnter)==null||fi.call(bt):(Yo=(Yi=e.store.callbacks)==null?void 0:Yi.onFullscreenExit)==null||Yo.call(Yi)},Io=Se=>{let{width:bt,height:fi}=Se.target;rn.set({width:bt,height:fi})},Sn=()=>{let{width:Se,height:bt}=s(io).getBoundingClientRect();rn.set({width:Se,height:bt})};Nt(()=>{var bt;return Yc(un),e.uiConfig.features.annotationsInside&&(Gt==null||Gt.init(s(io))),ua(Mt)&&(Mt==null||Mt.assignPlayerContainer(s(io)),Mt==null||Mt.setExternalEventHandlers({resize:Io,leavepictureinpicture:Sn})),e.interactiveContainer&&((bt=vt().parentElement)==null||bt.insertBefore(e.interactiveContainer,vt().nextSibling)),()=>{window.clearTimeout(nr),window.clearTimeout(wn),window.clearTimeout(Hn),window.clearTimeout(rr),Eo(),Mt==null||Mt.dispose().catch(fi=>{Kt({message:String(fi)})}),Zc(un)}});let oo=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ze()?s(io):ze(),bt=Se.getRootNode(),fi=bt instanceof ShadowRoot?bt.host:bt,Yi=Fe()instanceof HTMLElement&&Fe().contains(fi);return e.uiConfig.allowChangingFullscreenTarget&&Fe()&&Yi?Fe():Se},Tn=()=>{kt.set(!1)},ko=()=>{to(),Tn()},ar=async()=>{Tn(),Ls()?(await jc(document),Kt({message:"exit fullscreen"})):(Kt({message:"request fullscreen"}),await Gc(oo()))},wr=Se=>{w()||(Se.preventDefault(),kt.set(!0),$n.set({left:Se.clientX,top:Se.clientY}))};function Ur(){ln.set(!0),Ti||Lt(e.uiConfig.controls.hideTimeoutCursor)}function ss(){Ti||(oi.set(!0),Lt(e.uiConfig.controls.hideTimeoutCursor))}function zr(){ln.set(!1),B(fo,!1),B(dn,!1),ti=!1,e.store.actions.internal.releaseCamera(),Lt(e.uiConfig.controls.hideTimeout)}function no(Se){return Se?Se.offsetTop+no(Se.offsetParent):0}function pn(Se){return Se?Se.offsetLeft+pn(Se.offsetParent):0}function Cr(Se){if(G()&&Uo){let bt=Se.currentTarget,fi=no(bt),Yi=pn(bt),Yo=Se.pageX-Yi,_o=Se.pageY-fi,{left:et,bottom:Ht,right:Li}=G(),Zo=Li-et;return Yo>=et-Zo&&_o<=Ht+Zo}}function nt(Se){if(s(io)){let bt=no(Se.currentTarget),fi=q().height,Yi=Se.pageY-bt;if(Cr(Se)){B(fo,!1);return}Yi<40?B(fo,!0):Yi>fi-40?B(dn,!0):(B(fo,!1),f()||B(dn,!1))}}function Pt(Se){nt(Se),s(To)||Lt(e.uiConfig.controls.hideTimeoutCursor),W()&&ti&&Ko&&e.store.actions.internal.moveCameraFocusPX(Ko.clientX-Se.clientX,Ko.clientY-Se.clientY,Se.timeStamp-Ko.timeStamp),Ko=Se}let pi=Se=>{Se.preventDefault(),Se.button===0&&(ti=!0,e.store.actions.internal.holdCamera()),Lt(e.uiConfig.controls.hideTimeoutCursor)},ro=Se=>{Se.preventDefault(),Se.button===0&&(Ko=Se,ti=!1,e.store.actions.internal.releaseCamera()),Lt(e.uiConfig.controls.hideTimeoutCursor)},Gi=Se=>{Se.preventDefault(),br&&(Kt({message:"double click on video"}),ar(),Lt(e.uiConfig.controls.hideTimeoutCursor))},so=Se=>{var bt;if(Se.preventDefault(),Q()||f()){ko();return}if(!(I()&&!Fi)){if(s(sr))return qo();if((bt=Et())==null||bt.focus(),!Ve()){e.firstStart(),Lt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||X()!==j1.PLAYING)&&e.store.actions.internal.togglePlay(),Lt(e.uiConfig.controls.hideTimeoutCursor)}},ao=Se=>{ko(),Qi.set(!0),Lt(e.uiConfig.controls.hideTimeout),Se&&cn(e.uiConfig.controls.hideHotKeyHelpers,Se)},Qo=()=>{var Se,bt;ko(),(Se=e.store.callbacks)!=null&&Se.onOpenHotKeyMap?(bt=e.store.callbacks)==null||bt.onOpenHotKeyMap(Y()):sn.update(fi=>!fi)},Go=()=>{Qi.set(!0)},En=e.store.ui.contextMenu.openedByBtnKeyboard$,lo=e.store.ui.contextMenu.btnRef$,ji=j(void 0),go=e.store.ui.contextMenu.openedByHotKey$,lr=e.store.ui.contextMenu.lastActiveElem$;We(()=>{On.set(s(ot))}),We(()=>{B(Un,s(mo)&&X()!==j1.PLAYING,!0),s(mo)||$t(()=>B(mo,!0))}),We(()=>{eo.set((s(Un)||I()||f()||de()||le()||ve()||Ie())&&!s(To)&&(r()==="video"||r()==="ads")&&!a()&&k())}),We(()=>{!de()&&s(vo)&&!p()&&Lt(e.uiConfig.controls.hideTimeoutCursor),$t(()=>B(vo,de(),!0))}),We(()=>{s(yn),f(),me(),$t(()=>nd(s(yn),f(),me()))}),We(()=>{s(ji),Q(),se(),Le(),$t(()=>{let Se=se()||Le();nd(s(ji),Q(),Se)})}),We(()=>{let Se=oe();Se&&(Q(),$t(()=>sl(Se,Q(),En)))}),We(()=>{let Se=N();Se&&(Q(),$t(()=>Yh(Se,Q(),go)))}),We(()=>{var Se;!He()&&y()&&($t(()=>bi.set(!1)),(Se=Et())==null||Se.focus())}),We(()=>{w()&&ko()});let zn=U("video360"),dr=j(void 0),Wr=Se=>{tr.set(Rr(Dr(),{title:s(dr)},"title",Se))};var qr=Ox();xt("blur",Xs,ko);var Po=fe(qr);Po.__mousemove=Pt;var jo=_(Po);let Ke=g(()=>r()==="ads"),Zt=g(()=>s(sr)?qo:void 0);rt(vf(jo,{toggleFullscreen:ar,hideContextMenu:ko,showHotKeyHelpers:ao,showKeyMap:Qo,get isAds(){return s(Ke)},get fakePlayButtonHandler(){return s(Zt)},get nextButtonActive(){return ae()},get prevButtonActive(){return Tt()},children:(Se,bt)=>{var fi=Nx(),Yi=fe(fi);Pa(Yi,{get hideCursor(){return s(yr)},onClick:so,onContextMenu:wr,onMouseDown:pi,onMouseUp:ro,onDblClick:Gi,get videoContainer(){return vt()},set videoContainer(et){vt(et)}});var Yo=P(Yi,2);ra(Yo,()=>"slot",!1,(et,Ht)=>{ke(et,()=>({name:ka}))});var _o=P(Yo,2);na(_o,_e,et=>{var Ht=Rx(),Li=fe(Ht);let Zo=g(()=>r()!=="thumb"||a()||Ti&&e.autoplay);Ta(Li,{get hidden(){return s(Zo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var fn=P(Li,2);Gm(fn,{});var co=P(fn,2);{var Kr=Ge=>{let ai=g(()=>{var Mo;return(Mo=e.live)==null?void 0:Mo.startTime});Vd(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(ai)}})};V(co,Ge=>{r()==="LiveWaitingStart"&&Ge(Kr)})}var Sr=P(co,2);{var vi=Ge=>{Ea(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Sr,Ge=>{r()==="LiveWaitingRecover"&&Ge(vi)})}var Ei=P(Sr,2);{var In=Ge=>{Ea(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Ei,Ge=>{r()==="LiveWaitingRecord"&&Ge(In)})}var Wn=P(Ei,2);{var Tr=Ge=>{var ai=Ax();let Mo;var Ws=_(ai);Jl(Ws,{get adsSlotId(){return It()},get adsParams(){return dt()},get adsPreviewParam(){return qe()},get adsAutoplayParam(){return zt()},get duration(){return Yt()}}),h(ai),O($o=>Mo=ie(ai,1,"ads-container svelte-jtgjmv",null,Mo,$o),[()=>({hidden:r()!=="ads"})]),b(Ge,ai)};V(Wn,Ge=>{e.showAds&&Ve()&&Ge(Tr)})}var bo=P(Wn,2);{var Aa=Ge=>{let ai=g(()=>!Je()&&e.showAutoplayNext&&S());pf(Ge,{get title(){return xe()},get thumb(){return he()},get isHide(){return s(ai)},clickCloseIcon:()=>B(Hr,!0)})};V(bo,Ge=>{s(Cn)&&xe()&&he()&&Ge(Aa)})}var Us=P(bo,2);{var ht=Ge=>{let ai=g(()=>!u());wm(Ge,{get title(){return e.title},get isHidden(){return s(ai)},onVisibilityChanged:Wr,get ref(){return s(dr)},set ref(Mo){B(dr,Mo,!0)}})};V(Us,Ge=>{s($r)&&Ge(ht)})}var ct=P(Us,2);{var uo=Ge=>{let ai=g(()=>r()==="video"&&u());Md(Ge,{get isShifted(){return s(ai)}})};V(ct,Ge=>{W()&&Ge(uo)})}var Xo=P(ct,2);{var Ui=Ge=>{var ai=Mx(),Mo=_(ai);Zl(Mo,{get"aria-label"(){return zn}}),h(ai),b(Ge,ai)};V(Xo,Ge=>{ge()&&Ge(Ui)})}var si=P(Xo,2);{var Vi=Ge=>{Ld(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ce()}})};V(si,Ge=>{ve()&&Ge(Vi)})}var xs=P(si,2);{var _l=Ge=>{Ca(Ge,{get shifted(){return u()},get captions(){return pe()},get position(){return ee()},get playerSize(){return q()}})};V(xs,Ge=>{ue().value!=="off"&&Ge(_l)})}var Yd=P(xs,2);{var Nu=Ge=>{var ai=Lx();ai.__contextmenu=wr,ai.__click=[Px,Q,kt,f,Ft,ko];var Mo=_(ai);Sa(Mo,{}),h(ai),b(Ge,ai)};V(Yd,Ge=>{a()&&Ge(Nu)})}var Zd=P(Yd,2);{var Bu=Ge=>{let ai=g(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"),Mo=g(()=>r()==="ads"),Ws=g(()=>e.canRewindLive&&Qe()!==0);Ad(Ge,{get bottomHidden(){return s(ai)},get bottomNoSmooth(){return R()},get showControls(){return u()},get isAds(){return s(Mo)},get canRewindLive(){return s(Ws)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Wt()},get nextButtonActive(){return ae()},get prevButtonActive(){return Tt()},get isOneVideoPlaylist(){return te()},customFullscreenSupported:br,toggleFullscreen:ar,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(Wo)},set playerControlsWrapperRef($o){B(Wo,$o,!0)},get playerControlsRef(){return s(or)},set playerControlsRef($o){B(or,$o,!0)}})};V(Zd,Ge=>{Ve()&&Ge(Bu)})}var Xd=P(Zd,2);{var Ou=Ge=>{var ai=Vx(),Mo=_(ai);let Ws=g(()=>{var $o;return($o=s(or))==null?void 0:$o.clientHeight});Bd(Mo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(Ws)},returnFocus:()=>{var $o;return($o=Et())==null?void 0:$o.focus()},get ref(){return s(yn)},set ref($o){B(yn,$o,!0)}}),h(ai),b(Ge,ai)};V(Xd,Ge=>{!ve()&&r()!=="ads"&&Ge(Ou)})}var Jd=P(Xd,2);let Du=g(()=>!s(rs));id(Jd,{get isLive(){return Ze()},get isHidden(){return s(Du)},get isPlaying(){return Z()},get position(){return ee()},get duration(){return Qe()}});var zs=P(Jd,2);bm(zs,{get data(){return Mi}});var ec=P(zs,2);uf(ec,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=Et())==null?void 0:Ge.focus()},get visible(){return Q()},get playerContainerRef(){return s(io)},get controlsContainerRef(){return s(Wo)},get position(){return Ae()},get menuElementRef(){return s(ji)},set menuElementRef(Ge){B(ji,Ge,!0)}});var bl=P(ec,2);{var tc=Ge=>{Od(Ge,{onClose:hr,onSelectAutoQuality:()=>{zo("auto"),hr()}})};V(bl,Ge=>{s(gr)&&Ge(tc)})}var ic=P(bl,2);{var oc=Ge=>{ga(Ge,{})};V(ic,Ge=>{s(_r)&&Ge(oc)})}var Ma=P(ic,2);{var nc=Ge=>{_f(Ge,{})};V(Ma,Ge=>{Te()&&Ge(nc)})}var Hu=P(Ma,2);{var rc=Ge=>{ad(Ge,{})};V(Hu,Ge=>{je()&&Ge(rc)})}b(et,Ht)}),b(Se,fi)},$$slots:{default:!0}}),Se=>Et(Se),()=>Et());var _i=P(jo,2);rt(_i,Se=>B(ot,Se),()=>s(ot)),h(Po),rt(Po,Se=>B(io,Se),()=>s(io));var ho=P(Po,2);{var Ao=Se=>{var bt=Bx();b(Se,bt)};V(ho,Se=>{tt()&&Se(Ao)})}xt("mouseenter",Po,Ur),xt("mouseleave",Po,zr),xt("click",Po,Go,!0),xt("focusin",Po,ss,!0),b(t,qr),F(),o()}ut(["mousemove","contextmenu","click"]);import{clientChecker as Dd,PlaybackState as jx}from"@vkontakte/videoplayer-core/es2018";import{noop as Yx}from"@vkontakte/videoplayer-shared/es2018";var Hx=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),Fx=M("<div><!></div>"),Ux={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
340
+ }`};function Gm(t,e){D(e,!0),z(t,Ix);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}}=It(),u=0,$=j(null),w=j(!1);Ue(()=>{B($,n()?Nr:$s,!0)}),Ue(()=>{B($,r()?Hs:null,!0)}),Ue(()=>{if(p)return u=window.setTimeout(()=>{u=0,r()&&s($)===Hs&&(r()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B($,null)},s($)!==Hs?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);na(k,()=>s($),E=>{var R=Ex(),Q=_(R),q=_(Q);let W=g(()=>r()==="prev");wi(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(()=>lt(Q,`animation-duration: ${s($)!==Hs?f:v}ms`)),b(E,R)}),b(I,A)};V(S,I=>{s($)&&p&&I(T)})}b(t,y),H(),o()}var kx=M('<div><div data-testid="video-container"></div></div>'),Px={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
+ .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Pa(t,e){D(e,!0),z(t,Px);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:$}=It(),w=g(()=>a()&&n()%180?r().height/r().width:1);var y=kx();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;nt(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),lt(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()}ct(["contextmenu","mousedown","mouseup","click","dblclick"]);var Ax=(t,e,i,o,n,r)=>{if(t.stopPropagation(),e()||o()){r();return}},Mx=M("<div><!></div>"),Lx=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Vx=M("<div><!></div>"),Rx=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),Nx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Bx=M("<!> <!> <!>",1),Ox=M('<div class="blocked svelte-jtgjmv"></div>'),Dx=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Hx={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 jm(t,e){D(e,!0),z(t,Hx);let[i,o]=Oe(),n=()=>C(xn,"$notificationsToShow$",i),r=()=>C(ri,"$playerPhase",i),l=()=>C(Oo,"$isLoaderVisible",i),d=()=>C(ti,"$adPlaybackState",i),a=()=>C(ft,"$crashed",i),p=()=>C(Ho,"$isInteractiveTime$",i),f=()=>C(qt,"$settingsMenuVisible",i),v=()=>C(bn,"$isInteractiveExpectation$",i),u=()=>C(Wi,"$controlsVisible",i),$=()=>C(qi,"$touched",i),w=()=>C(ir,"$graphIsOpened$",i),y=()=>C(ui,"$isFullscreen",i),S=()=>C(er,"$autoplayNextEnabled$",i),T=()=>C(li,"$postrollPassed",i),I=()=>C(U,"$isEnded$",i),A=()=>C(ln,"$cursorInside",i),k=()=>C(Dn,"$isControlsAvailable",i),E=()=>C(vr,"$fakeIsPlaying$",i),R=()=>C(ii,"$bottomNoSmooth",i),Q=()=>C(di,"$interactiveTimeIndicator",i),q=()=>C(rn,"$playerSize",i),W=()=>C(Ti,"$is3DVideo",i),G=()=>C(_t,"$contextMenuVisible$",i),X=()=>C(ci,"$playbackState$",i),Y=()=>C(wo,"$hotKeyMapData",i),ce=()=>C(Bo,"$scrubbingInProgress",i),le=()=>C(Bt,"$volumeChangingInProgress",i),me=()=>C(at,"$chromecastConnected$",i),ke=()=>C(yi,"$controlsTimeoutActive",i),ve=()=>C(ni,"$settingsMenuOpenedByKeyboard",i),ae=()=>C(En,"$contextMenuOpenedByKeyboard$",i),Ve=()=>C(mo,"$contextMenuOpenedByHotKey$",i),ne=()=>C(ro,"$contextMenuButtonRef$",i),N=()=>C(lr,"$contextMenuLastActiveElem$",i),He=()=>C(co,"$isFullscreenOpenedByKeyboard",i),_e=()=>C(Xe,"$language$",i),ge=()=>C($t,"$icon3DVideoVisible",i),de=()=>C(pi,"$chromecastDeviceName$",i),ue=()=>C(nn,"$currentSubtitle$",i),pe=()=>C(Do,"$currentSubtitleCaptions$",i),te=()=>C(st,"$position$",i),qe=()=>C(Kt,"$duration$",i),Ze=()=>C(ut,"$isLive$",i),Z=()=>C(rt,"$isPlaying$",i),Ae=()=>C($n,"$contextMenuPosition$",i),Te=()=>C(sn,"$showHotKeyMap",i),je=()=>C(Si,"$debugPanelVisible",i),tt=()=>C(Or,"$userActionsDisabled$",i),ht=m(e,"videoContainer",15),mt=m(e,"adsSlotId",3,void 0),wt=m(e,"adsParams",3,void 0),Qe=m(e,"adsPreviewParam",3,void 0),Ft=m(e,"adsAutoplayParam",3,void 0),Xt=m(e,"duration",3,void 0),Gt=m(e,"logoTargetUrl",3,""),Ut=m(e,"showNextPrevButtons",3,!1),ee=m(e,"nextButtonActive",3,!1),Rt=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),Je=m(e,"showEndScreen",3,!0),At=m(e,"keyboardControls",15),Wt=e.store.getLogger().createComponentLog("Root component"),Xe=e.store.interfaceLanguage$,ci=e.store.state.playbackState$,ti=e.store.ads.playbackState,st=e.store.state.positionWithScrubbing$,Kt=e.store.state.duration$,ri=e.store.playerPhase,ui=e.store.ui.isFullscreen,co=e.store.ui.isFullscreenOpenedByKeyboard,Wi=e.store.ui.controlsVisible,qt=e.store.ui.settingsMenu.visible$,ni=e.store.ui.settingsMenu.openedByBtnKeyboard$,Bo=e.store.ui.scrubbingInProgress,Bt=e.store.ui.volumeChangingInProgress,_t=e.store.ui.contextMenu.visible$,Si=e.store.ui.debugPanelVisible,Oo=e.store.state.isLoaderVisible,U=e.store.state.isEnded$,at=e.store.state.chromecastConnected$,pi=e.store.state.chromecastDeviceName$,li=e.store.ads.postrollPassed,ut=e.store.state.isLive$,rt=e.store.state.isPlaying$,ft=e.store.state.crashed$,bi=e.store.webApi.annotationsApi,Et=e.store.webApi.pictureInPictureApi,nn=e.store.state.currentSubtitle$,Do=e.store.state.currentSubtitleCaptions$,rn=e.store.ui.playerSize,Ti=e.store.ui.is3DVideo,$t=e.store.ui.icon3DVideoVisible,Ei=e.store.state.isInteractive,Ho=e.store.state.isInteractiveTime$,bn=e.store.state.isInteractiveExpectation$,Hi=e.store.state.hasInteractiveBranches,qi=e.store.ui.touched,wo=e.store.ui.modals.hotKeyMap.data,sn=e.store.ui.modals.hotKeyMap.show,On=e.store.ui.overlayContainer$,di=e.store.ui.controls.interactiveTimeIndicator,Fo=e.store.state.showInteractiveTimeIndicator,$n=e.store.ui.contextMenu.position$,Uo=e.store.actions.internal.setQuality,Xi=e.store.actions.internal.closeSettingsMenu,er=e.store.ui.autoplayNextEnabled$,Or=e.store.ui.userActionsDisabled,Dn=e.store.ui.isControlsAvailable,tr=e.store.ui.videoTitleInfo,Dr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:vr,notifications$:an,graphIsOpened$:ir}=lo(),Ji=j(void 0),zo=j(void 0),or=j(void 0),yn=j(void 0),nr,Hn,rr;wo.set(Wh());let{closeNotification:Fn,notificationsToShow$:xn}=an,gr=g(()=>!!n().slow_video),hr=()=>Fn("slow_video"),_r=g(()=>(r()==="video"&&l()||r()==="ads"&&d()==="inactive")&&!a()),it=j(void 0),ii=re(!1),wn,yi=re(!1),Mi=re(),ln=re(!1),dn=j(!1),uo=j(!1),Un=j(!1),po=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Co=g(()=>p()&&!f()&&!(s(dn)||s(uo))&&!(s(Un)&&!v())),br=!0,rs=g(()=>e.uiConfig.features.thumbTimer&&Re()&&r()==="video"&&!u()&&!a()&&!Ei&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),$r=g(()=>r()==="video"&&!w()&&y()),Hr=j(!1),Cn=g(()=>(Je()||e.showAutoplayNext&&S())&&!!xe()&&!!he()&&(e.showAds&&T()||!e.showAds)&&I()&&!a()&&!s(Hr)),yr=g(()=>A()&&!(u()||s(Cn))&&!p()&&k()),fo=j(!1),sr=g(()=>E()!==null),{toggle:Wo}=vr,Jt=!1,qo=null;Et==null||Et.setContext(Cl());let Fr=()=>{e.autoplay&&!Ei&&e.uiConfig.controls.showOnStartupAtAutoplay&&Mt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Fr});let xr=()=>{window.clearTimeout(nr),yi.set(!1)},St=()=>{window.clearTimeout(Hn),Mi.set(null)},Mt=Se=>{xr(),yi.set(!0),nr=window.setTimeout(()=>yi.set(!1),Se);let yt=Se-100;wn=window.setTimeout(()=>{R()&&ii.set(!1)},yt>0?yt:Se)},cn=(Se,yt)=>{St(),Mi.set(yt),Hn=window.setTimeout(()=>Mi.set(null),Se)},So=Ti.subscribe(Se=>{$t.set(Se),Se&&(window.clearTimeout(rr),rr=window.setTimeout(()=>$t.set(!1),e.uiConfig.controls.hide360IconTimeout))}),un=async()=>{var yt,mi,Gi,jo;let Se=Ls();if(Se){let go=Xl(),et=eo();Se=go===et||go===Be()}if(Se){Mt(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Et==null?void 0:Et.exit())}catch(go){Wt({message:String(go)})}}ui.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),y()?(mi=(yt=e.store.callbacks)==null?void 0:yt.onFullscreenEnter)==null||mi.call(yt):(jo=(Gi=e.store.callbacks)==null?void 0:Gi.onFullscreenExit)==null||jo.call(Gi)},To=Se=>{let{width:yt,height:mi}=Se.target;rn.set({width:yt,height:mi})},Sn=()=>{let{width:Se,height:yt}=s(Ji).getBoundingClientRect();rn.set({width:Se,height:yt})};Nt(()=>{var yt;return Yc(un),e.uiConfig.features.annotationsInside&&(bi==null||bi.init(s(Ji))),ua(Et)&&(Et==null||Et.assignPlayerContainer(s(Ji)),Et==null||Et.setExternalEventHandlers({resize:To,leavepictureinpicture:Sn})),e.interactiveContainer&&((yt=ht().parentElement)==null||yt.insertBefore(e.interactiveContainer,ht().nextSibling)),()=>{window.clearTimeout(nr),window.clearTimeout(wn),window.clearTimeout(Hn),window.clearTimeout(rr),So(),Et==null||Et.dispose().catch(mi=>{Wt({message:String(mi)})}),Zc(un)}});let eo=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ze()?s(Ji):ze(),yt=Se.getRootNode(),mi=yt instanceof ShadowRoot?yt.host:yt,Gi=We()instanceof HTMLElement&&We().contains(mi);return e.uiConfig.allowChangingFullscreenTarget&&We()&&Gi?We():Se},Tn=()=>{_t.set(!1)},Eo=()=>{Xi(),Tn()},ar=async()=>{Tn(),Ls()?(await jc(document),Wt({message:"exit fullscreen"})):(Wt({message:"request fullscreen"}),await Gc(eo()))},wr=Se=>{w()||(Se.preventDefault(),_t.set(!0),$n.set({left:Se.clientX,top:Se.clientY}))};function Ur(){ln.set(!0),Ei||Mt(e.uiConfig.controls.hideTimeoutCursor)}function ss(){Ei||(ii.set(!0),Mt(e.uiConfig.controls.hideTimeoutCursor))}function zr(){ln.set(!1),B(uo,!1),B(dn,!1),Jt=!1,e.store.actions.internal.releaseCamera(),Mt(e.uiConfig.controls.hideTimeout)}function to(Se){return Se?Se.offsetTop+to(Se.offsetParent):0}function pn(Se){return Se?Se.offsetLeft+pn(Se.offsetParent):0}function Cr(Se){if(Q()&&Fo){let yt=Se.currentTarget,mi=to(yt),Gi=pn(yt),jo=Se.pageX-Gi,go=Se.pageY-mi,{left:et,bottom:Ht,right:Li}=Q(),Yo=Li-et;return jo>=et-Yo&&go<=Ht+Yo}}function ot(Se){if(s(Ji)){let yt=to(Se.currentTarget),mi=q().height,Gi=Se.pageY-yt;if(Cr(Se)){B(uo,!1);return}Gi<40?B(uo,!0):Gi>mi-40?B(dn,!0):(B(uo,!1),f()||B(dn,!1))}}function kt(Se){ot(Se),s(Co)||Mt(e.uiConfig.controls.hideTimeoutCursor),W()&&Jt&&qo&&e.store.actions.internal.moveCameraFocusPX(qo.clientX-Se.clientX,qo.clientY-Se.clientY,Se.timeStamp-qo.timeStamp),qo=Se}let fi=Se=>{Se.preventDefault(),Se.button===0&&(Jt=!0,e.store.actions.internal.holdCamera()),Mt(e.uiConfig.controls.hideTimeoutCursor)},io=Se=>{Se.preventDefault(),Se.button===0&&(qo=Se,Jt=!1,e.store.actions.internal.releaseCamera()),Mt(e.uiConfig.controls.hideTimeoutCursor)},Ki=Se=>{Se.preventDefault(),br&&(Wt({message:"double click on video"}),ar(),Mt(e.uiConfig.controls.hideTimeoutCursor))},oo=Se=>{var yt;if(Se.preventDefault(),G()||f()){Eo();return}if(!(I()&&!Hi)){if(s(sr))return Wo();if((yt=At())==null||yt.focus(),!Me()){e.firstStart(),Mt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||X()!==Y1.PLAYING)&&e.store.actions.internal.togglePlay(),Mt(e.uiConfig.controls.hideTimeoutCursor)}},no=Se=>{Eo(),qi.set(!0),Mt(e.uiConfig.controls.hideTimeout),Se&&cn(e.uiConfig.controls.hideHotKeyHelpers,Se)},Ko=()=>{var Se,yt;Eo(),(Se=e.store.callbacks)!=null&&Se.onOpenHotKeyMap?(yt=e.store.callbacks)==null||yt.onOpenHotKeyMap(Y()):sn.update(mi=>!mi)},Qo=()=>{qi.set(!0)},En=e.store.ui.contextMenu.openedByBtnKeyboard$,ro=e.store.ui.contextMenu.btnRef$,Qi=j(void 0),mo=e.store.ui.contextMenu.openedByHotKey$,lr=e.store.ui.contextMenu.lastActiveElem$;Ue(()=>{On.set(s(it))}),Ue(()=>{B(Un,s(po)&&X()!==Y1.PLAYING,!0),s(po)||xt(()=>B(po,!0))}),Ue(()=>{Wi.set((s(Un)||I()||f()||ce()||le()||me()||ke())&&!s(Co)&&(r()==="video"||r()==="ads")&&!a()&&k())}),Ue(()=>{!ce()&&s(fo)&&!p()&&Mt(e.uiConfig.controls.hideTimeoutCursor),xt(()=>B(fo,ce(),!0))}),Ue(()=>{s(yn),f(),ve(),xt(()=>nd(s(yn),f(),ve()))}),Ue(()=>{s(Qi),G(),ae(),Ve(),xt(()=>{let Se=ae()||Ve();nd(s(Qi),G(),Se)})}),Ue(()=>{let Se=ne();Se&&(G(),xt(()=>sl(Se,G(),En)))}),Ue(()=>{let Se=N();Se&&(G(),xt(()=>Zh(Se,G(),mo)))}),Ue(()=>{var Se;!He()&&y()&&(xt(()=>co.set(!1)),(Se=At())==null||Se.focus())}),Ue(()=>{w()&&Eo()});let zn=F("video360"),dr=j(void 0),Wr=Se=>{tr.set(Rr(Dr(),{title:s(dr)},"title",Se))};var qr=Dx();Ct("blur",Xs,Eo);var Io=fe(qr);Io.__mousemove=kt;var Go=_(Io);let Ke=g(()=>r()==="ads"),jt=g(()=>s(sr)?Wo:void 0);nt(vf(Go,{toggleFullscreen:ar,hideContextMenu:Eo,showHotKeyHelpers:no,showKeyMap:Ko,get isAds(){return s(Ke)},get fakePlayButtonHandler(){return s(jt)},get nextButtonActive(){return ee()},get prevButtonActive(){return Rt()},children:(Se,yt)=>{var mi=Bx(),Gi=fe(mi);Pa(Gi,{get hideCursor(){return s(yr)},onClick:oo,onContextMenu:wr,onMouseDown:fi,onMouseUp:io,onDblClick:Ki,get videoContainer(){return ht()},set videoContainer(et){ht(et)}});var jo=P(Gi,2);ra(jo,()=>"slot",!1,(et,Ht)=>{Ie(et,()=>({name:ka}))});var go=P(jo,2);na(go,_e,et=>{var Ht=Nx(),Li=fe(Ht);let Yo=g(()=>r()!=="thumb"||a()||Ei&&e.autoplay);Ta(Li,{get hidden(){return s(Yo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var fn=P(Li,2);Gm(fn,{});var so=P(fn,2);{var Kr=Ge=>{let ai=g(()=>{var Po;return(Po=e.live)==null?void 0:Po.startTime});Vd(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(ai)}})};V(so,Ge=>{r()==="LiveWaitingStart"&&Ge(Kr)})}var Sr=P(so,2);{var gi=Ge=>{Ea(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Sr,Ge=>{r()==="LiveWaitingRecover"&&Ge(gi)})}var Ii=P(Sr,2);{var In=Ge=>{Ea(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Ii,Ge=>{r()==="LiveWaitingRecord"&&Ge(In)})}var Wn=P(Ii,2);{var Tr=Ge=>{var ai=Mx();let Po;var Ws=_(ai);Jl(Ws,{get adsSlotId(){return mt()},get adsParams(){return wt()},get adsPreviewParam(){return Qe()},get adsAutoplayParam(){return Ft()},get duration(){return Xt()}}),h(ai),O(_o=>Po=oe(ai,1,"ads-container svelte-jtgjmv",null,Po,_o),[()=>({hidden:r()!=="ads"})]),b(Ge,ai)};V(Wn,Ge=>{e.showAds&&Me()&&Ge(Tr)})}var ho=P(Wn,2);{var Aa=Ge=>{let ai=g(()=>!Je()&&e.showAutoplayNext&&S());pf(Ge,{get title(){return xe()},get thumb(){return he()},get isHide(){return s(ai)},clickCloseIcon:()=>B(Hr,!0)})};V(ho,Ge=>{s(Cn)&&xe()&&he()&&Ge(Aa)})}var Us=P(ho,2);{var bt=Ge=>{let ai=g(()=>!u());wm(Ge,{get title(){return e.title},get isHidden(){return s(ai)},onVisibilityChanged:Wr,get ref(){return s(dr)},set ref(Po){B(dr,Po,!0)}})};V(Us,Ge=>{s($r)&&Ge(bt)})}var dt=P(Us,2);{var ao=Ge=>{let ai=g(()=>r()==="video"&&u());Md(Ge,{get isShifted(){return s(ai)}})};V(dt,Ge=>{W()&&Ge(ao)})}var Zo=P(dt,2);{var Fi=Ge=>{var ai=Lx(),Po=_(ai);Zl(Po,{get"aria-label"(){return zn}}),h(ai),b(Ge,ai)};V(Zo,Ge=>{ge()&&Ge(Fi)})}var si=P(Zo,2);{var Vi=Ge=>{Ld(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return de()}})};V(si,Ge=>{me()&&Ge(Vi)})}var xs=P(si,2);{var _l=Ge=>{Ca(Ge,{get shifted(){return u()},get captions(){return pe()},get position(){return te()},get playerSize(){return q()}})};V(xs,Ge=>{ue().value!=="off"&&Ge(_l)})}var Yd=P(xs,2);{var Nu=Ge=>{var ai=Vx();ai.__contextmenu=wr,ai.__click=[Ax,G,_t,f,qt,Eo];var Po=_(ai);Sa(Po,{}),h(ai),b(Ge,ai)};V(Yd,Ge=>{a()&&Ge(Nu)})}var Zd=P(Yd,2);{var Bu=Ge=>{let ai=g(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"),Po=g(()=>r()==="ads"),Ws=g(()=>e.canRewindLive&&qe()!==0);Ad(Ge,{get bottomHidden(){return s(ai)},get bottomNoSmooth(){return R()},get showControls(){return u()},get isAds(){return s(Po)},get canRewindLive(){return s(Ws)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Gt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ut()},get nextButtonActive(){return ee()},get prevButtonActive(){return Rt()},get isOneVideoPlaylist(){return ie()},customFullscreenSupported:br,toggleFullscreen:ar,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(zo)},set playerControlsWrapperRef(_o){B(zo,_o,!0)},get playerControlsRef(){return s(or)},set playerControlsRef(_o){B(or,_o,!0)}})};V(Zd,Ge=>{Me()&&Ge(Bu)})}var Xd=P(Zd,2);{var Ou=Ge=>{var ai=Rx(),Po=_(ai);let Ws=g(()=>{var _o;return(_o=s(or))==null?void 0:_o.clientHeight});Bd(Po,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(Ws)},returnFocus:()=>{var _o;return(_o=At())==null?void 0:_o.focus()},get ref(){return s(yn)},set ref(_o){B(yn,_o,!0)}}),h(ai),b(Ge,ai)};V(Xd,Ge=>{!me()&&r()!=="ads"&&Ge(Ou)})}var Jd=P(Xd,2);let Du=g(()=>!s(rs));id(Jd,{get isLive(){return Ze()},get isHidden(){return s(Du)},get isPlaying(){return Z()},get position(){return te()},get duration(){return qe()}});var zs=P(Jd,2);bm(zs,{get data(){return Mi}});var ec=P(zs,2);uf(ec,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=At())==null?void 0:Ge.focus()},get visible(){return G()},get playerContainerRef(){return s(Ji)},get controlsContainerRef(){return s(zo)},get position(){return Ae()},get menuElementRef(){return s(Qi)},set menuElementRef(Ge){B(Qi,Ge,!0)}});var bl=P(ec,2);{var tc=Ge=>{Od(Ge,{onClose:hr,onSelectAutoQuality:()=>{Uo("auto"),hr()}})};V(bl,Ge=>{s(gr)&&Ge(tc)})}var ic=P(bl,2);{var oc=Ge=>{ga(Ge,{})};V(ic,Ge=>{s(_r)&&Ge(oc)})}var Ma=P(ic,2);{var nc=Ge=>{_f(Ge,{})};V(Ma,Ge=>{Te()&&Ge(nc)})}var Hu=P(Ma,2);{var rc=Ge=>{ad(Ge,{})};V(Hu,Ge=>{je()&&Ge(rc)})}b(et,Ht)}),b(Se,mi)},$$slots:{default:!0}}),Se=>At(Se),()=>At());var $i=P(Go,2);nt($i,Se=>B(it,Se),()=>s(it)),h(Io),nt(Io,Se=>B(Ji,Se),()=>s(Ji));var vo=P(Io,2);{var ko=Se=>{var yt=Ox();b(Se,yt)};V(vo,Se=>{tt()&&Se(ko)})}Ct("mouseenter",Io,Ur),Ct("mouseleave",Io,zr),Ct("click",Io,Qo,!0),Ct("focusin",Io,ss,!0),b(t,qr),H(),o()}ct(["mousemove","contextmenu","click"]);import{clientChecker as Dd,PlaybackState as Yx}from"@vkontakte/videoplayer-core/es2018";import{noop as Zx}from"@vkontakte/videoplayer-shared/es2018";var Fx=M('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),Ux=M("<div><!></div>"),zx={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.`},Vh=V_;var vs=new Map;vs.set(Nh.EN,Vh)
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 Tu(t,e){H(e,!0),z(t,Ux);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)};Vn(()=>{window.clearTimeout(n)});var a=Fx();a.__click=d;var p=_(a);{var f=v=>{var u=Hx(),$=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()}ut(["click"]);var zx=(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),qx={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Ym(t,e){H(e,!0),z(t,qx);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(),$()};Nt(()=>{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);ma(W,{onClick:y}),h(R);var Q=P(R,2);Q.__click=[zx,p,v];var X=_(Q),Y=_(X),de=_(Y);let le;var ve=P(de,2);{var Ie=oe=>{ld(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),lt(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()}ut(["click"]);import{clientChecker as Kx}from"@vkontakte/videoplayer-core/es2018";var Y1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Nt(()=>{Kx.device.isIOS&&(o=setTimeout(()=>{let r=t().querySelector("video");if(!r)return;let l=()=>e(!0),d=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",d),i=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",d)}},0))}),Vn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as Qx}from"@vkontakte/videoplayer-core/es2018";var Eu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as Gx}from"@vkontakte/videoplayer-core/es2018";var Z1=({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=()=>Gx.device.isIOS&&ye(l)===Qx.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},u=$=>{if(v(),!f()||!$)return;let w=p();if(!w)return;let y=new Eu(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)}};Nt(()=>i.subscribe(u)),Vn(v)};var Zx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Xx=M("<!> <!>",1),Jx=M("<div><!></div>"),e5=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),t5=M("<div><!></div>"),i5=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),o5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),n5=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),r5={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Zm(t,e){var Fr,xr;H(e,!0),z(t,r5);let[i,o]=Oe(),n=()=>C(Re,"$playerPhase",i),r=()=>C(ri,"$isLoaderVisible",i),l=()=>C(ze,"$adPlaybackState",i),d=()=>C(Ai,"$crashed",i),a=()=>C(Dr,"$notificationsToShow$",i),p=()=>C(Ne,"$playbackState$",i),f=()=>C(xe,"$graphIsOpened$",i),v=()=>C(it,"$interactiveHideMobileControls",i),u=()=>C(bi,"$isEnded$",i),$=()=>C(rn,"$isInteractiveExpectation$",i),w=()=>C(Et,"$controlsVisible",i),y=()=>C(Ti,"$touched",i),S=()=>C(bn,"$autoplayNextEnabled$",i),T=()=>C(ci,"$postrollPassed",i),I=()=>C(ir,"$bottomNoSmooth",i),A=()=>C(Bt,"$videoSize",i),k=()=>C(at,"$playerSize",i),E=()=>C(Je,"$isFullscreen",i),R=()=>C(Ve,"$position$",i),G=()=>C(Fe,"$duration$",i),q=()=>C(Fi,"$loadedMetadata",i),W=()=>C(di,"$settingsMenuVisible",i),Q=()=>C(st,"$scrubbingInProgress",i),X=()=>C(Qt,"$volumeChangingInProgress",i),Y=()=>C(eo,"$chromecastConnected$",i),de=()=>C(Kt,"$isControlsAvailable",i),le=()=>C(Ho,"$isInteractiveTime$",i),ve=()=>C(kt,"$isActiveLive",i),Ie=()=>C(ei,"$settingsMenuOpenedByKeyboard",i),me=()=>C(te,"$language$",i),se=()=>C(_t,"$disabledControls$",i),Le=()=>C(Gt,"$is3DVideo",i),oe=()=>C(Mt,"$icon3DVideoVisible",i),N=()=>C(Ft,"$chromecastDeviceName$",i),He=()=>C(li,"$currentSubtitle$",i),_e=()=>C(gt,"$currentSubtitleCaptions$",i),ge=()=>C(Xe,"$realDuration$",i),ce=()=>C(Ki,"$isLive$",i),ue=()=>C(Do,"$isPlaying$",i),pe=()=>C(qi,"$debugPanelVisible",i),ee=m(e,"videoContainer",15),Qe=m(e,"adsSlotId",3,void 0),Ze=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),je=m(e,"logoTargetUrl",3,""),tt=m(e,"showNextPrevButtons",3,!1),vt=m(e,"nextButtonActive",3,!1),It=m(e,"prevButtonActive",3,!1),dt=m(e,"endScreenVideoTitle",3,void 0),qe=m(e,"endScreenVideoThumb",3,void 0),zt=m(e,"isOneVideoPlaylist",3,!1),Yt=m(e,"showMiniTimer",3,!1),qt=m(e,"fullScreenTarget",3,void 0),Wt=m(e,"playerStarted",3,!1),ae=m(e,"showEndScreen",3,!0),{notifications$:Tt,graphIsOpened$:xe}=po(),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,Je=e.store.ui.isFullscreen,Et=e.store.ui.controlsVisible,Kt=e.store.ui.isControlsAvailable,it=e.store.ui.interactiveHideMobileControls,di=e.store.ui.settingsMenu.visible$,ei=e.store.ui.settingsMenu.openedByBtnKeyboard$,st=e.store.ui.scrubbingInProgress,Qt=e.store.ui.volumeChangingInProgress,qi=e.store.ui.debugPanelVisible,ri=e.store.state.isLoaderVisible,bi=e.store.state.isEnded$,eo=e.store.state.chromecastConnected$,Ft=e.store.state.chromecastDeviceName$,ci=e.store.ads.postrollPassed,Ki=e.store.state.isLive$,Do=e.store.state.isPlaying$,kt=e.store.state.isActiveLive$,yt=e.store.state.isRewindableLive$,Ai=e.store.state.crashed$,Ci=e.store.webApi.annotationsApi,D=e.store.webApi.pictureInPictureApi,Bt=e.store.state.videoSize$,li=e.store.state.currentSubtitle$,gt=e.store.state.currentSubtitleCaptions$,Xe=e.store.state.duration$,at=e.store.ui.playerSize,Gt=e.store.ui.is3DVideo,Mt=e.store.ui.icon3DVideoVisible,Hi=e.store.state.isInteractive,Ho=e.store.state.isInteractiveTime$,rn=e.store.state.isInteractiveExpectation$,Si=e.store.state.hasInteractiveBranches,_t=e.store.ui.controls.disabledControls$,Ti=e.store.ui.touched,Fo=e.store.ui.overlayContainer$,bn=e.store.ui.autoplayNextEnabled$,Fi=e.store.state.loadedMetadata$,Qi=e.store.actions.internal.closeSettingsMenu,So=(Fr=e.store.callbacks)==null?void 0:Fr.onDisabledPlayPrevChapterClick,sn=(xr=e.store.callbacks)==null?void 0:xr.onDisabledSeekToInteractiveClick,On=e.store.actions.internal.setQuality,ui=j(void 0),Uo=j(void 0),$n=j(void 0),zo=j(void 0),to,er,Or=g(()=>(n()==="video"&&r()||n()==="ads"&&l()==="inactive")&&!d()),Dn=j(void 0),{closeNotification:tr,notificationsToShow$:Dr}=Tt,vr=g(()=>!!a().slow_video),an=()=>tr("slow_video"),ir=ne(!1),io,Wo=j(!1),or=g(()=>p()!==jx.PLAYING),yn=j(!1),nr=g(()=>f()||v()||!s(Wo)&&(u()&&!!Si||s(or)&&$())),Hn=j(!0),rr=g(()=>e.uiConfig.features.thumbTimer&&Yt()&&n()==="video"&&!w()&&!d()&&!Hi&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Fn=j(!1),xn=g(()=>(ae()||e.showAutoplayNext&&S())&&!!dt()&&!!qe()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!s(Fn)),gr=j(!1);D==null||D.setContext(Cl());let hr=wt=>{wt&&!Hi&&ot(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:hr});let _r=()=>{clearTimeout(to),B(Wo,!1),v()&&it.set(!1)},ot=wt=>{_r(),B(Wo,!0),to=setTimeout(()=>B(Wo,!1),wt);let Lt=wt-100;io=setTimeout(()=>{I()&&ir.set(!1)},Lt>0?Lt:wt)},oi=Gt.subscribe(wt=>{Mt.set(wt),wt&&(clearTimeout(er),er=setTimeout(()=>Mt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),wn=async(wt=Ls())=>{var Lt,cn,Eo,un,Io,Sn;if(wt&&!Dd.device.isIOS){let oo=Xl(),Tn=fo(),ko=Dd.browser.isSamsungBrowser&&oo===e.shadowRootContainer;wt=oo===Tn||ko}if(wt){ot(e.uiConfig.controls.hideTimeoutFullscreen);try{await(D==null?void 0:D.exit())}catch(oo){he({message:String(oo)})}try{let oo=(Lt=A())!=null&&Lt.width&&((cn=A())!=null&&cn.height)?A():k();await Fh(oo)}catch(oo){he({message:String(oo)})}}Je.set(wt),e.store.getAdmanWrapper().setFullscreen(wt),E()?(un=(Eo=e.store.callbacks)==null?void 0:Eo.onFullscreenEnter)==null||un.call(Eo):(Sn=(Io=e.store.callbacks)==null?void 0:Io.onFullscreenExit)==null||Sn.call(Io)},$i=wt=>{let Lt=wt;at.set({width:Lt.target.width,height:Lt.target.height})};Nt(()=>{var wt;return Yc(wn),e.uiConfig.features.annotationsInside&&(Ci==null||Ci.init(s(ui))),ua(D)&&(D==null||D.assignPlayerContainer(s(ui)),D==null||D.setExternalEventHandlers({resize:$i})),B(Hn,!Dd.device.isIphoneOrOldIpad),e.interactiveContainer&&((wt=ee().parentElement)==null||wt.insertBefore(e.interactiveContainer,ee().nextSibling)),()=>{clearTimeout(to),clearTimeout(io),clearTimeout(er),oi(),D==null||D.dispose().catch(Lt=>{he({message:String(Lt)})}),Zc(wn)}});let Mi=j(!0),ln=j(!0),dn=wt=>{let Lt=R()+(wt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Lt<0?(B(Mi,!1),Lt=0):Lt>=G()&&(B(ln,!1),Lt=G()),B(yn,!0),e.seekTime(Lt)},fo=()=>Dd.device.isIOS?s(ui):!e.uiConfig.allowChangingFullscreenTarget||!qt()?e.outerContainerRef:qt().contains(e.outerContainerRef)?qt():e.outerContainerRef,Un=async()=>{try{if(Ls())await jc(document),he({message:"exit fullscreen"});else{if(he({message:"request fullscreen"}),Dd.device.isIOS&&!q())return;await Gc(fo())}}catch(wt){he({message:String(wt)})}},mo=()=>{Qi()},To=wt=>{if(wt.preventDefault(),W()){mo();return}if(!Wt()){e.firstStart(),ot(e.uiConfig.controls.hideTimeoutCursor);return}B(yn,!1),w()?_r():ot(e.uiConfig.controls.hideTimeoutMobile)},br=()=>{Ti.set(!0)},rs=()=>{Hi||(ir.set(!0),ot(e.uiConfig.controls.hideTimeoutCursor))},$r=wt=>{So&&(So(wt),ot(e.uiConfig.controls.hideTimeoutMobile))},Hr=wt=>{sn&&(sn(wt),ot(e.uiConfig.controls.hideTimeoutMobile))};We(()=>{Fo.set(s(Dn))}),We(()=>{Et.set((s(or)||W()||Q()||X()||Y()||!s(xn)&&(u()||s(Wo)&&!s(yn)))&&!s(nr)&&n()==="video"&&!d()&&de())}),We(()=>{!Q()&&s(gr)&&!le()&&ot(e.uiConfig.controls.hideTimeoutMobile),B(gr,Q(),!0)}),We(()=>{B(Mi,R()>0),B(ln,!ve()&&R()<G(),!0)}),We(()=>{nd(s(zo),W(),Ie(),!0)});let Cn=U("aria_label_video_player"),yr=U("video360");Y1({fullScreenChangeHandler:wn,getFullscreenTarget:fo}),Z1({store:e.store,getFullscreenTarget:fo});var vo=n5();xt("blur",Xs,mo);var sr=_(vo);Pa(sr,{onClick:To,get videoContainer(){return ee()},set videoContainer(wt){ee(wt)}});var qo=P(sr,2);ra(qo,()=>"slot",!1,(wt,Lt)=>{ke(wt,()=>({name:ka}))});var ti=P(qo,2);na(ti,me,wt=>{var Lt=o5(),cn=fe(Lt);let Eo=g(()=>n()!=="thumb"||d()||Hi&&e.autoplay);Ta(cn,{get hidden(){return s(Eo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var un=P(cn,2);{var Io=Ke=>{var Zt=Xx(),_i=fe(Zt);{var ho=bt=>{let fi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Tu(bt,{side:"left",get seekStep(){return s(fi)},handleSingleFirstClick:To,handleSecondClick:()=>dn("backward")})};V(_i,bt=>{s(Mi)&&bt(ho)})}var Ao=P(_i,2);{var Se=bt=>{let fi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Tu(bt,{side:"right",get seekStep(){return s(fi)},handleSingleFirstClick:To,handleSecondClick:()=>dn("forward")})};V(Ao,bt=>{s(ln)&&bt(Se)})}b(Ke,Zt)};V(un,Ke=>{e.canRewindLive&&yt&&!se().has("TIMELINE")&&Ke(Io)})}var Sn=P(un,2);{var oo=Ke=>{let Zt=g(()=>{var _i;return(_i=e.live)==null?void 0:_i.startTime});Vd(Ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(Zt)}})};V(Sn,Ke=>{n()==="LiveWaitingStart"&&Ke(oo)})}var Tn=P(Sn,2);{var ko=Ke=>{Ea(Ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Tn,Ke=>{n()==="LiveWaitingRecover"&&Ke(ko)})}var ar=P(Tn,2);{var wr=Ke=>{Ea(Ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(ar,Ke=>{n()==="LiveWaitingRecord"&&Ke(wr)})}var Ur=P(ar,2);{var ss=Ke=>{var Zt=Jx();let _i;var ho=_(Zt);Jl(ho,{get adsSlotId(){return Qe()},get adsParams(){return Ze()},get adsPreviewParam(){return Z()},get adsAutoplayParam(){return Ae()},get duration(){return Te()}}),h(Zt),O(Ao=>_i=ie(Zt,1,"ads-container svelte-7yl31d",null,_i,Ao),[()=>({hidden:n()!=="ads"})]),b(Ke,Zt)};V(Ur,Ke=>{e.showAds&&Wt()&&Ke(ss)})}var zr=P(Ur,2);{var no=Ke=>{let Zt=g(()=>!ae()&&e.showAutoplayNext&&S());Ym(Ke,{get title(){return dt()},get thumb(){return qe()},get isHide(){return s(Zt)},clickCloseIcon:()=>B(Fn,!0)})};V(zr,Ke=>{s(xn)&&dt()&&qe()&&Ke(no)})}var pn=P(zr,2);{var Cr=Ke=>{Md(Ke,{})};V(pn,Ke=>{Le()&&Ke(Cr)})}var nt=P(pn,2);{var Pt=Ke=>{var Zt=e5(),_i=_(Zt);Zl(_i,{get"aria-label"(){return yr}}),h(Zt),b(Ke,Zt)};V(nt,Ke=>{oe()&&Ke(Pt)})}var pi=P(nt,2);{var ro=Ke=>{Ld(Ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};V(pi,Ke=>{Y()&&Ke(ro)})}var Gi=P(pi,2);{var so=Ke=>{Ca(Ke,{get shifted(){return w()},get captions(){return _e()},get position(){return R()},get playerSize(){return k()},isMobile:!0})};V(Gi,Ke=>{He().value!=="off"&&Ke(so)})}var ao=P(Gi,2);{var Qo=Ke=>{var Zt=t5();Zt.__click=[Zx,W,di,mo];var _i=_(Zt);Sa(_i,{}),h(Zt),b(Ke,Zt)};V(ao,Ke=>{d()&&Ke(Qo)})}var Go=P(ao,2);{var En=Ke=>{let Zt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),_i=g(()=>n()==="ads"),ho=g(()=>e.canRewindLive&&ge()!==0);Ad(Ke,{get bottomHidden(){return s(Zt)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return s(_i)},get canRewindLive(){return s(ho)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return je()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return tt()},get nextButtonActive(){return vt()},get prevButtonActive(){return It()},get isOneVideoPlaylist(){return zt()},get customFullscreenSupported(){return s(Hn)},get endScreenShown(){return s(xn)},toggleFullscreen:Un,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:$r,onDisabledSeekToInteractiveClick:Hr,get playerControlsWrapperRef(){return s(Uo)},set playerControlsWrapperRef(Ao){B(Uo,Ao,!0)},get playerControlsRef(){return s($n)},set playerControlsRef(Ao){B($n,Ao,!0)}})};V(Go,Ke=>{Wt()&&Ke(En)})}var lo=P(Go,2);{var ji=Ke=>{var Zt=i5(),_i=_(Zt);Bd(_i,{get supportLink(){return e.supportLink},get returnFocus(){return Yx},get ref(){return s(zo)},set ref(ho){B(zo,ho,!0)}}),h(Zt),b(Ke,Zt)};V(lo,Ke=>{W()&&Ke(ji)})}var go=P(lo,2);let lr=g(()=>!s(rr));id(go,{get isLive(){return ce()},get isHidden(){return s(lr)},get isPlaying(){return ue()},get position(){return R()},get duration(){return G()}});var zn=P(go,2);{var dr=Ke=>{ga(Ke,{})};V(zn,Ke=>{s(Or)&&Ke(dr)})}var Wr=P(zn,2);{var qr=Ke=>{ad(Ke,{})};V(Wr,Ke=>{pe()&&Ke(qr)})}var Po=P(Wr,2);{var jo=Ke=>{Od(Ke,{onClose:an,onSelectAutoQuality:()=>{On("auto"),an()}})};V(Po,Ke=>{s(vr)&&Ke(jo)})}b(wt,Lt)});var Ko=P(ti,2);rt(Ko,wt=>B(Dn,wt),()=>s(Dn)),h(vo),rt(vo,wt=>B(ui,wt),()=>s(ui)),O(()=>De(vo,"aria-label",Cn)),xt("click",vo,br,!0),xt("focusin",vo,rs,!0),b(t,vo),F(),o()}ut(["click"]);function Iu(t){let e="";return Wi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Wi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Wi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Wi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Wi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Wi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Wi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Wi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Wi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Wi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Wi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Wi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Wi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Wi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Wi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Wi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Wi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Wi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Wi(t.font)&&(e+=`--font:${t.font};`),Wi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Wi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Wi(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as s5}from"@vkontakte/videoplayer-shared/es2018";var a5=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),l5={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function Xm(t,e){H(e,!0),z(t,l5);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=s5(pl,260);We(()=>{n(),Le(de(),Y,Ie,s(ve))});let oe=g(()=>r()?_n(l()-d()):_n(isFinite(l())?l():y()));var N=a5(),He=_(N);Pa(He,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Te){S(Te)}});var _e=P(He,2);ra(_e,()=>"slot",!1,(Te,je)=>{ke(Te,()=>({name:ka}))});var ge=P(_e,2);let ce=g(()=>a()!=="thumb"||p());Ta(ge,{get hidden(){return s(ce)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ue=P(ge,2);{var pe=Te=>{Ca(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);td(Qe,{get isLive(){return $()},get isPlaying(){return r()},get time(){return s(oe)}}),h(ee);var Ze=P(ee,2);let Z;var Ae=_(Ze);ba(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(Ze),h(N),O(Te=>Z=ie(Ze,1,"timeline svelte-1qfjf44",null,Z,Te),[()=>({visible:s(ve)})]),xt("mouseenter",N,me),xt("mouseleave",N,se),b(t,N),F(),o()}var f5=M("<div><!></div>"),m5={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 Tu(t,e){D(e,!0),z(t,zx);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)};Vn(()=>{window.clearTimeout(n)});var a=Ux();a.__click=d;var p=_(a);{var f=v=>{var u=Fx(),$=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()}ct(["click"]);var Wx=(t,e,i)=>{e(!1),i()},qx=M('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),Kx={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Ym(t,e){D(e,!0),z(t,Kx);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(),$()};Nt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Fe(),T=fe(S);{var I=A=>{var k=qx(),E=P(fe(k),2),R=_(E),Q=_(R),q=_(Q,!0);h(Q);var W=P(Q,2);ma(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=>{ld(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),lt(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()}ct(["click"]);import{clientChecker as Qx}from"@vkontakte/videoplayer-core/es2018";var Z1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Nt(()=>{Qx.device.isIOS&&(o=setTimeout(()=>{let r=t().querySelector("video");if(!r)return;let l=()=>e(!0),d=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",d),i=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",d)}},0))}),Vn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as Gx}from"@vkontakte/videoplayer-core/es2018";var Eu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as jx}from"@vkontakte/videoplayer-core/es2018";var X1=({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=()=>jx.device.isIOS&&ye(l)===Gx.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},u=$=>{if(v(),!f()||!$)return;let w=p();if(!w)return;let y=new Eu(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)}};Nt(()=>i.subscribe(u)),Vn(v)};var Xx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Jx=M("<!> <!>",1),e5=M("<div><!></div>"),t5=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),i5=M("<div><!></div>"),o5=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),n5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),r5=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),s5={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Zm(t,e){var Fr,xr;D(e,!0),z(t,s5);let[i,o]=Oe(),n=()=>C(Re,"$playerPhase",i),r=()=>C(ui,"$isLoaderVisible",i),l=()=>C(ze,"$adPlaybackState",i),d=()=>C(Oo,"$crashed",i),a=()=>C(Dr,"$notificationsToShow$",i),p=()=>C(Be,"$playbackState$",i),f=()=>C(xe,"$graphIsOpened$",i),v=()=>C(Xe,"$interactiveHideMobileControls",i),u=()=>C(co,"$isEnded$",i),$=()=>C(rn,"$isInteractiveExpectation$",i),w=()=>C(At,"$controlsVisible",i),y=()=>C(Ei,"$touched",i),S=()=>C(bn,"$autoplayNextEnabled$",i),T=()=>C(ni,"$postrollPassed",i),I=()=>C(ir,"$bottomNoSmooth",i),A=()=>C(pi,"$videoSize",i),k=()=>C(ft,"$playerSize",i),E=()=>C(Je,"$isFullscreen",i),R=()=>C(Me,"$position$",i),Q=()=>C(We,"$duration$",i),q=()=>C(Hi,"$loadedMetadata",i),W=()=>C(ci,"$settingsMenuVisible",i),G=()=>C(st,"$scrubbingInProgress",i),X=()=>C(Kt,"$volumeChangingInProgress",i),Y=()=>C(Wi,"$chromecastConnected$",i),ce=()=>C(Wt,"$isControlsAvailable",i),le=()=>C(Do,"$isInteractiveTime$",i),me=()=>C(_t,"$isActiveLive",i),ke=()=>C(ti,"$settingsMenuOpenedByKeyboard",i),ve=()=>C(ie,"$language$",i),ae=()=>C($t,"$disabledControls$",i),Ve=()=>C(bi,"$is3DVideo",i),ne=()=>C(Et,"$icon3DVideoVisible",i),N=()=>C(qt,"$chromecastDeviceName$",i),He=()=>C(li,"$currentSubtitle$",i),_e=()=>C(ut,"$currentSubtitleCaptions$",i),ge=()=>C(rt,"$realDuration$",i),de=()=>C(Bo,"$isLive$",i),ue=()=>C(Bt,"$isPlaying$",i),pe=()=>C(ri,"$debugPanelVisible",i),te=m(e,"videoContainer",15),qe=m(e,"adsSlotId",3,void 0),Ze=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),je=m(e,"logoTargetUrl",3,""),tt=m(e,"showNextPrevButtons",3,!1),ht=m(e,"nextButtonActive",3,!1),mt=m(e,"prevButtonActive",3,!1),wt=m(e,"endScreenVideoTitle",3,void 0),Qe=m(e,"endScreenVideoThumb",3,void 0),Ft=m(e,"isOneVideoPlaylist",3,!1),Xt=m(e,"showMiniTimer",3,!1),Gt=m(e,"fullScreenTarget",3,void 0),Ut=m(e,"playerStarted",3,!1),ee=m(e,"showEndScreen",3,!0),{notifications$:Rt,graphIsOpened$:xe}=lo(),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,Je=e.store.ui.isFullscreen,At=e.store.ui.controlsVisible,Wt=e.store.ui.isControlsAvailable,Xe=e.store.ui.interactiveHideMobileControls,ci=e.store.ui.settingsMenu.visible$,ti=e.store.ui.settingsMenu.openedByBtnKeyboard$,st=e.store.ui.scrubbingInProgress,Kt=e.store.ui.volumeChangingInProgress,ri=e.store.ui.debugPanelVisible,ui=e.store.state.isLoaderVisible,co=e.store.state.isEnded$,Wi=e.store.state.chromecastConnected$,qt=e.store.state.chromecastDeviceName$,ni=e.store.ads.postrollPassed,Bo=e.store.state.isLive$,Bt=e.store.state.isPlaying$,_t=e.store.state.isActiveLive$,Si=e.store.state.isRewindableLive$,Oo=e.store.state.crashed$,U=e.store.webApi.annotationsApi,at=e.store.webApi.pictureInPictureApi,pi=e.store.state.videoSize$,li=e.store.state.currentSubtitle$,ut=e.store.state.currentSubtitleCaptions$,rt=e.store.state.duration$,ft=e.store.ui.playerSize,bi=e.store.ui.is3DVideo,Et=e.store.ui.icon3DVideoVisible,nn=e.store.state.isInteractive,Do=e.store.state.isInteractiveTime$,rn=e.store.state.isInteractiveExpectation$,Ti=e.store.state.hasInteractiveBranches,$t=e.store.ui.controls.disabledControls$,Ei=e.store.ui.touched,Ho=e.store.ui.overlayContainer$,bn=e.store.ui.autoplayNextEnabled$,Hi=e.store.state.loadedMetadata$,qi=e.store.actions.internal.closeSettingsMenu,wo=(Fr=e.store.callbacks)==null?void 0:Fr.onDisabledPlayPrevChapterClick,sn=(xr=e.store.callbacks)==null?void 0:xr.onDisabledSeekToInteractiveClick,On=e.store.actions.internal.setQuality,di=j(void 0),Fo=j(void 0),$n=j(void 0),Uo=j(void 0),Xi,er,Or=g(()=>(n()==="video"&&r()||n()==="ads"&&l()==="inactive")&&!d()),Dn=j(void 0),{closeNotification:tr,notificationsToShow$:Dr}=Rt,vr=g(()=>!!a().slow_video),an=()=>tr("slow_video"),ir=re(!1),Ji,zo=j(!1),or=g(()=>p()!==Yx.PLAYING),yn=j(!1),nr=g(()=>f()||v()||!s(zo)&&(u()&&!!Ti||s(or)&&$())),Hn=j(!0),rr=g(()=>e.uiConfig.features.thumbTimer&&Xt()&&n()==="video"&&!w()&&!d()&&!nn&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Fn=j(!1),xn=g(()=>(ee()||e.showAutoplayNext&&S())&&!!wt()&&!!Qe()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!s(Fn)),gr=j(!1);at==null||at.setContext(Cl());let hr=St=>{St&&!nn&&it(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:hr});let _r=()=>{clearTimeout(Xi),B(zo,!1),v()&&Xe.set(!1)},it=St=>{_r(),B(zo,!0),Xi=setTimeout(()=>B(zo,!1),St);let Mt=St-100;Ji=setTimeout(()=>{I()&&ir.set(!1)},Mt>0?Mt:St)},ii=bi.subscribe(St=>{Et.set(St),St&&(clearTimeout(er),er=setTimeout(()=>Et.set(!1),e.uiConfig.controls.hide360IconTimeout))}),wn=async(St=Ls())=>{var Mt,cn,So,un,To,Sn;if(St&&!Dd.device.isIOS){let eo=Xl(),Tn=uo(),Eo=Dd.browser.isSamsungBrowser&&eo===e.shadowRootContainer;St=eo===Tn||Eo}if(St){it(e.uiConfig.controls.hideTimeoutFullscreen);try{await(at==null?void 0:at.exit())}catch(eo){he({message:String(eo)})}try{let eo=(Mt=A())!=null&&Mt.width&&((cn=A())!=null&&cn.height)?A():k();await Uh(eo)}catch(eo){he({message:String(eo)})}}Je.set(St),e.store.getAdmanWrapper().setFullscreen(St),E()?(un=(So=e.store.callbacks)==null?void 0:So.onFullscreenEnter)==null||un.call(So):(Sn=(To=e.store.callbacks)==null?void 0:To.onFullscreenExit)==null||Sn.call(To)},yi=St=>{let Mt=St;ft.set({width:Mt.target.width,height:Mt.target.height})};Nt(()=>{var St;return Yc(wn),e.uiConfig.features.annotationsInside&&(U==null||U.init(s(di))),ua(at)&&(at==null||at.assignPlayerContainer(s(di)),at==null||at.setExternalEventHandlers({resize:yi})),B(Hn,!Dd.device.isIphoneOrOldIpad),e.interactiveContainer&&((St=te().parentElement)==null||St.insertBefore(e.interactiveContainer,te().nextSibling)),()=>{clearTimeout(Xi),clearTimeout(Ji),clearTimeout(er),ii(),at==null||at.dispose().catch(Mt=>{he({message:String(Mt)})}),Zc(wn)}});let Mi=j(!0),ln=j(!0),dn=St=>{let Mt=R()+(St==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Mt<0?(B(Mi,!1),Mt=0):Mt>=Q()&&(B(ln,!1),Mt=Q()),B(yn,!0),e.seekTime(Mt)},uo=()=>Dd.device.isIOS?s(di):!e.uiConfig.allowChangingFullscreenTarget||!Gt()?e.outerContainerRef:Gt().contains(e.outerContainerRef)?Gt():e.outerContainerRef,Un=async()=>{try{if(Ls())await jc(document),he({message:"exit fullscreen"});else{if(he({message:"request fullscreen"}),Dd.device.isIOS&&!q())return;await Gc(uo())}}catch(St){he({message:String(St)})}},po=()=>{qi()},Co=St=>{if(St.preventDefault(),W()){po();return}if(!Ut()){e.firstStart(),it(e.uiConfig.controls.hideTimeoutCursor);return}B(yn,!1),w()?_r():it(e.uiConfig.controls.hideTimeoutMobile)},br=()=>{Ei.set(!0)},rs=()=>{nn||(ir.set(!0),it(e.uiConfig.controls.hideTimeoutCursor))},$r=St=>{wo&&(wo(St),it(e.uiConfig.controls.hideTimeoutMobile))},Hr=St=>{sn&&(sn(St),it(e.uiConfig.controls.hideTimeoutMobile))};Ue(()=>{Ho.set(s(Dn))}),Ue(()=>{At.set((s(or)||W()||G()||X()||Y()||!s(xn)&&(u()||s(zo)&&!s(yn)))&&!s(nr)&&n()==="video"&&!d()&&ce())}),Ue(()=>{!G()&&s(gr)&&!le()&&it(e.uiConfig.controls.hideTimeoutMobile),B(gr,G(),!0)}),Ue(()=>{B(Mi,R()>0),B(ln,!me()&&R()<Q(),!0)}),Ue(()=>{nd(s(Uo),W(),ke(),!0)});let Cn=F("aria_label_video_player"),yr=F("video360");Z1({fullScreenChangeHandler:wn,getFullscreenTarget:uo}),X1({store:e.store,getFullscreenTarget:uo});var fo=r5();Ct("blur",Xs,po);var sr=_(fo);Pa(sr,{onClick:Co,get videoContainer(){return te()},set videoContainer(St){te(St)}});var Wo=P(sr,2);ra(Wo,()=>"slot",!1,(St,Mt)=>{Ie(St,()=>({name:ka}))});var Jt=P(Wo,2);na(Jt,ve,St=>{var Mt=n5(),cn=fe(Mt);let So=g(()=>n()!=="thumb"||d()||nn&&e.autoplay);Ta(cn,{get hidden(){return s(So)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var un=P(cn,2);{var To=Ke=>{var jt=Jx(),$i=fe(jt);{var vo=yt=>{let mi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Tu(yt,{side:"left",get seekStep(){return s(mi)},handleSingleFirstClick:Co,handleSecondClick:()=>dn("backward")})};V($i,yt=>{s(Mi)&&yt(vo)})}var ko=P($i,2);{var Se=yt=>{let mi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Tu(yt,{side:"right",get seekStep(){return s(mi)},handleSingleFirstClick:Co,handleSecondClick:()=>dn("forward")})};V(ko,yt=>{s(ln)&&yt(Se)})}b(Ke,jt)};V(un,Ke=>{e.canRewindLive&&Si&&!ae().has("TIMELINE")&&Ke(To)})}var Sn=P(un,2);{var eo=Ke=>{let jt=g(()=>{var $i;return($i=e.live)==null?void 0:$i.startTime});Vd(Ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(jt)}})};V(Sn,Ke=>{n()==="LiveWaitingStart"&&Ke(eo)})}var Tn=P(Sn,2);{var Eo=Ke=>{Ea(Ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Tn,Ke=>{n()==="LiveWaitingRecover"&&Ke(Eo)})}var ar=P(Tn,2);{var wr=Ke=>{Ea(Ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(ar,Ke=>{n()==="LiveWaitingRecord"&&Ke(wr)})}var Ur=P(ar,2);{var ss=Ke=>{var jt=e5();let $i;var vo=_(jt);Jl(vo,{get adsSlotId(){return qe()},get adsParams(){return Ze()},get adsPreviewParam(){return Z()},get adsAutoplayParam(){return Ae()},get duration(){return Te()}}),h(jt),O(ko=>$i=oe(jt,1,"ads-container svelte-7yl31d",null,$i,ko),[()=>({hidden:n()!=="ads"})]),b(Ke,jt)};V(Ur,Ke=>{e.showAds&&Ut()&&Ke(ss)})}var zr=P(Ur,2);{var to=Ke=>{let jt=g(()=>!ee()&&e.showAutoplayNext&&S());Ym(Ke,{get title(){return wt()},get thumb(){return Qe()},get isHide(){return s(jt)},clickCloseIcon:()=>B(Fn,!0)})};V(zr,Ke=>{s(xn)&&wt()&&Qe()&&Ke(to)})}var pn=P(zr,2);{var Cr=Ke=>{Md(Ke,{})};V(pn,Ke=>{Ve()&&Ke(Cr)})}var ot=P(pn,2);{var kt=Ke=>{var jt=t5(),$i=_(jt);Zl($i,{get"aria-label"(){return yr}}),h(jt),b(Ke,jt)};V(ot,Ke=>{ne()&&Ke(kt)})}var fi=P(ot,2);{var io=Ke=>{Ld(Ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};V(fi,Ke=>{Y()&&Ke(io)})}var Ki=P(fi,2);{var oo=Ke=>{Ca(Ke,{get shifted(){return w()},get captions(){return _e()},get position(){return R()},get playerSize(){return k()},isMobile:!0})};V(Ki,Ke=>{He().value!=="off"&&Ke(oo)})}var no=P(Ki,2);{var Ko=Ke=>{var jt=i5();jt.__click=[Xx,W,ci,po];var $i=_(jt);Sa($i,{}),h(jt),b(Ke,jt)};V(no,Ke=>{d()&&Ke(Ko)})}var Qo=P(no,2);{var En=Ke=>{let jt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),$i=g(()=>n()==="ads"),vo=g(()=>e.canRewindLive&&ge()!==0);Ad(Ke,{get bottomHidden(){return s(jt)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return s($i)},get canRewindLive(){return s(vo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return je()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return tt()},get nextButtonActive(){return ht()},get prevButtonActive(){return mt()},get isOneVideoPlaylist(){return Ft()},get customFullscreenSupported(){return s(Hn)},get endScreenShown(){return s(xn)},toggleFullscreen:Un,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:$r,onDisabledSeekToInteractiveClick:Hr,get playerControlsWrapperRef(){return s(Fo)},set playerControlsWrapperRef(ko){B(Fo,ko,!0)},get playerControlsRef(){return s($n)},set playerControlsRef(ko){B($n,ko,!0)}})};V(Qo,Ke=>{Ut()&&Ke(En)})}var ro=P(Qo,2);{var Qi=Ke=>{var jt=o5(),$i=_(jt);Bd($i,{get supportLink(){return e.supportLink},get returnFocus(){return Zx},get ref(){return s(Uo)},set ref(vo){B(Uo,vo,!0)}}),h(jt),b(Ke,jt)};V(ro,Ke=>{W()&&Ke(Qi)})}var mo=P(ro,2);let lr=g(()=>!s(rr));id(mo,{get isLive(){return de()},get isHidden(){return s(lr)},get isPlaying(){return ue()},get position(){return R()},get duration(){return Q()}});var zn=P(mo,2);{var dr=Ke=>{ga(Ke,{})};V(zn,Ke=>{s(Or)&&Ke(dr)})}var Wr=P(zn,2);{var qr=Ke=>{ad(Ke,{})};V(Wr,Ke=>{pe()&&Ke(qr)})}var Io=P(Wr,2);{var Go=Ke=>{Od(Ke,{onClose:an,onSelectAutoQuality:()=>{On("auto"),an()}})};V(Io,Ke=>{s(vr)&&Ke(Go)})}b(St,Mt)});var qo=P(Jt,2);nt(qo,St=>B(Dn,St),()=>s(Dn)),h(fo),nt(fo,St=>B(di,St),()=>s(di)),O(()=>De(fo,"aria-label",Cn)),Ct("click",fo,br,!0),Ct("focusin",fo,rs,!0),b(t,fo),H(),o()}ct(["click"]);function Iu(t){let e="";return zi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),zi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),zi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),zi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),zi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),zi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),zi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),zi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),zi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),zi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),zi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),zi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),zi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),zi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),zi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),zi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),zi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),zi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),zi(t.font)&&(e+=`--font:${t.font};`),zi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),zi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function zi(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as a5}from"@vkontakte/videoplayer-shared/es2018";var l5=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),d5={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function Xm(t,e){D(e,!0),z(t,d5);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=a5(pl,260);Ue(()=>{n(),Ve(ce(),Y,ke,s(me))});let ne=g(()=>r()?_n(l()-d()):_n(isFinite(l())?l():y()));var N=l5(),He=_(N);Pa(He,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Te){S(Te)}});var _e=P(He,2);ra(_e,()=>"slot",!1,(Te,je)=>{Ie(Te,()=>({name:ka}))});var ge=P(_e,2);let de=g(()=>a()!=="thumb"||p());Ta(ge,{get hidden(){return s(de)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ue=P(ge,2);{var pe=Te=>{Ca(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);td(qe,{get isLive(){return $()},get isPlaying(){return r()},get time(){return s(ne)}}),h(te);var Ze=P(te,2);let Z;var Ae=_(Ze);ba(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(Ze),h(N),O(Te=>Z=oe(Ze,1,"timeline svelte-1qfjf44",null,Z,Te),[()=>({visible:s(me)})]),Ct("mouseenter",N,ve),Ct("mouseleave",N,ae),b(t,N),H(),o()}var m5=M("<div><!></div>"),v5={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.`},Vh=V_;var vs=new Map;vs.set(Nh.EN,Vh)
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 ev(t,e){H(e,!0),z(t,m5);let[i,o]=Oe(),n=()=>C(qt,"$isLive$",i),r=()=>C(ci,"$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),Ze=m(e,"seekToInteractive",7,X1),Z=m(e,"playPrevChapter",7,X1),Ae=m(e,"volumeMultiplier",7),Te=m(e,"showAutoplayNext",7),je=m(e,"showEndScreen",7,!0),tt=m(e,"keyboardControls",15,void 0),{subscribers:vt,stores:It}=a();Jg(f());let dt=St(),qe=f().logoLink,zt=d().ui.debugPanelVisible,Yt=d().ui.playerSize,qt=d().state.isLive$,ae=d().state.isInteractive&&Jm.device.isAndroid,Tt=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(),It),We(()=>{var D,Bt;d().ui.isMobile.set(Ie()),(Bt=(D=p().callbacks)==null?void 0:D.onDomReady)==null||Bt.call(D)});let te=(D=!1)=>{B(he,!0),D?d().actions.external.firstStart(q()):d().actions.internal.firstStart(q())},Ne=()=>{if(dt.features.qualityDetailsSubMenuEnabled){let D=Ph(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{Ah(d().videoId),qp()&&d().actions.internal.setTrafficSavingEnabled(!0);let Bt=Fp(d().videoId);Bt&&d().actions.internal.setQuality(Bt)}};function ze(D){var at,Gt,Mt;let Bt=l()||D;Bt&&d().initVideo({container:s(Tt),sources:Bt,failoverHosts:pe(),subtitles:y(),volumeMultiplier:Ae()});let li=c5.get(Kl)==="true";zt.set(li),R()>0&&d().actions.external.seekTime(R());let gt=Ie()?dt.volumeDefault:(Gt=(at=k())!=null?at:Dc())!=null?Gt:dt.volumeDefault,Xe=(Mt=E())!=null?Mt:Ch();if(d().actions.external.setVolume(gt),d().actions.external.setMuted(Xe),d().getAdmanWrapper().setInitialVolume(Xe?0:gt),Ne(),dt.features.saveRate&&Qe()){let Hi=Eh();Hi&&!n()&&d().actions.internal.setPlaybackRate(Hi)}if(Te()){let Hi=kh();Hi&&d().actions.internal.setAutoplayNextEnabled(Hi)}d().ui.isAutoplay.set(A()),A()?te():I()&&dt.features.preload&&d().actions.internal.preload()}let Ve=D=>{if(window.ResizeObserver){let Bt,li;xe=new ResizeObserver(u5(gt=>{let Xe=gt[0];if(Xe.contentBoxSize){let at=Array.isArray(Xe.contentBoxSize)?Xe.contentBoxSize[0]:Xe.contentBoxSize;Bt=at.inlineSize,li=at.blockSize}else Xe.contentRect&&(Bt=Xe.contentRect.width,li=Xe.contentRect.height);Yt.set({width:Bt,height:li})},300)),xe.observe(D)}Yt.set({width:D.clientWidth,height:D.clientHeight})},Fe=()=>{document.hidden&&d().actions.external.stop()};Nt(()=>{var li,gt,Xe,at;ae&&document.addEventListener("visibilitychange",Fe),dt.debugLog&&d().actions.internal.startLogging(),Ve(s(Tt));let D=vt.map(Gt=>Gt.init({store:d(),microStores:It,config:p(),interactiveController:w(),uiConfig:f()})),Bt=()=>{ae&&document.removeEventListener("visibilitychange",Fe),xe==null||xe.disconnect(),D.forEach(Gt=>Gt.unsubscribe()),d().destroy()};return((li=T())==null?void 0:li.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),Bt):((gt=T())==null?void 0:gt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),Bt):(((Xe=T())==null?void 0:Xe.status)==="finished"||((at=T())==null?void 0:at.status)==="postlive")&&!(l()&&d5(l()))?(d().actions.internal.setLiveWaitingRecord(!0),Bt):(ze(),Bt)});function Re(){s(he)?d().actions.external.play():te(!0)}function Je(){d().actions.external.pause()}function Et(D){d().actions.external.setMuted(D)}function Kt(){d().actions.external.toggleSubtitle()}function it(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.hideControls()}function di(){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 st(D){d().actions.internal.seekTime(D,p5.UNKNOWN)}function Qt(D){d().actions.external.seekEpisodeStartTime(D)}function qi(){d().actions.external.returnFocusToEpisodes()}function ri(D){d().actions.external.setPlaybackRate(D)}function bi(D){d().actions.external.setAutoQualityLimits(D)}let eo=Iu(dt.view),Ft=p().playerView==="preview",ci=d().state.availableSubtitlesList$;if(dt.features.initSubtitles){let D=!1;We(()=>{var Bt;if(!D&&r().length){D=!0;let li;if(dt.features.userVideoPrefs&&d().videoId){let Xe=Uc(dt.userSalt,String(d().videoId));Xe!=null&&Xe.subtitleTrackId&&(li=r().find(at=>at.value===Xe.subtitleTrackId))}let gt=(Bt=Qp())!=null?Bt:S();gt&&(li!=null||(li=r().find(Xe=>Xe.language===gt))),d().actions.internal.setSubtitle(li)}})}var Ki=f5();let Do;var kt=_(Ki);{var yt=D=>{Zm(D,{get store(){return d()},get uiConfig(){return dt},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 Ze()},get playPrevChapter(){return Z()},firstStart:te,seekTime:st,get showEndScreen(){return je()},get showAutoplayNext(){return Te()},get showNextPrevButtons(){return me()},get videoContainer(){return s(Tt)},set videoContainer(Bt){B(Tt,Bt,!0)}})},Ai=D=>{var Bt=Ue(),li=fe(Bt);{var gt=at=>{Xm(at,{get thumbUrl(){return u()},get outsideDuration(){return de()},get canRewindLive(){return G()},get videoContainer(){return s(Tt)},set videoContainer(Gt){B(Tt,Gt,!0)}})},Xe=at=>{jm(at,{get store(){return d()},get uiConfig(){return dt},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 Ze()},get playPrevChapter(){return Z()},firstStart:te,get showEndScreen(){return je()},get showAutoplayNext(){return Te()},get showNextPrevButtons(){return me()},get videoContainer(){return s(Tt)},set videoContainer(Gt){B(Tt,Gt,!0)},get keyboardControls(){return tt()},set keyboardControls(Gt){tt(Gt)}})};V(li,at=>{Ft?at(gt):at(Xe,!1)})}b(D,Bt)};V(kt,D=>{Ie()?D(yt):D(Ai,!1)})}h(Ki),O(D=>{Do=ie(Ki,1,"root svelte-16kg8zb",null,Do,D),lt(Ki,eo)},[()=>({"root--miui-browser":Jm.device.isMobile&&Jm.browser.isMiuiBrowser,"visible-outside":Ft})]),b(t,Ki);var Ci=F({initVideo:ze,play:Re,pause:Je,setMuted:Et,toggleSubtitle:Kt,hideControls:it,showControls:di,setVolume:ei,seekTime:st,seekEpisodeStartTime:Qt,returnFocusToEpisodes:qi,setPlaybackRate:ri,setAutoQualityLimits:bi,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 Ze()},set seekToInteractive(D){Ze(D)},get playPrevChapter(){return Z()},set playPrevChapter(D){Z(D)},get volumeMultiplier(){return Ae()},set volumeMultiplier(D){Ae(D)},get showEndScreen(){return je()},set showEndScreen(D){je(D)},get keyboardControls(){return tt()},set keyboardControls(D){tt(D)}});return o(),Ci}var v5=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 tv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=v5();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 iv(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");tv(t,{get style(){return s(o)}})}var g5=M('<div class="title svelte-1y9fytq"> </div>'),h5=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),_5={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function ov(t,e){z(t,_5);var i=h5(),o=_(i);{var n=d=>{var a=g5(),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);iv(d,{get isWhite(){return s(a)}})};V(r,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),O(()=>lt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var b5=M('<div class="playerError svelte-m5iv29"><!></div>'),$5={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 nv(t){z(t,$5);var e=b5(),i=_(e);Sa(i,{}),h(e),b(t,e)}import{now as K5,ValueSubject as Q5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as G5,InterfaceLanguage as j5,isNonNullable as cv,Logger as Y5,Observable as Z5,Subscription as s0,once as X5,InternalsExposure as J5,skip as ew}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as a0,isMobile as tw}from"@vkontakte/videoplayer-core/es2018";import{OneStat as iw,ThinOneStat as ow,MediascopePixel as nw}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as y5,Subscription as x5}from"@vkontakte/videoplayer-shared/es2018";var ku=class{constructor(){this.subscription=new x5,this.logger=new y5,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,r]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,r)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var r,l;let o=ye(e.state.currentPlaybackRate$),n=ye(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(r=navigator.mediaSession).setPositionState)==null||l.call(r,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as av,detectEmbed as I5}from"@vkontakte/videoplayer-shared/es2018";var w5=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=w5();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 C5=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),S5={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function sv(t,e){H(e,!0),z(t,S5);let[i,o]=Oe(),n=()=>C(p,"$interfaceLanguage$",i),r=()=>C(f,"$isMobile$",i),l=Ee(),d=St(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,u=g(()=>n()&&v("pip_dummy_title")),$=Iu(d.view);var w=C5();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),lt(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 T5=Object.defineProperty,E5=(t,e,i)=>e in t?T5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,gl=(t,e,i)=>E5(t,typeof e!="symbol"?e+"":e,i),k5=460,P5=280,Hd=class{constructor({enabled:e=!0}={enabled:!0}){gl(this,"playerDomElement"),gl(this,"playerParentShadowRoot"),gl(this,"playerDummyElement"),gl(this,"svelteContext"),gl(this,"pipWindow"),gl(this,"info",{isActive$:new av(!1),isEnabled$:new av(!1),type:1}),this.info.isEnabled$=new av(e)}isSupported(){let{isEmbed:e}=I5();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:k5,height:P5,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=Jr(sv,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||(oa(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 J1(t){return t instanceof Hd}var Pu=class{static getLatestSupportedVersion(e){let i=new ca(e),o=new Hd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Fd(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",t0="Annotation with such name already exists",i0="Annotation with such name does not exist";var hl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as A5,Subscription as M5,throttleFn as L5}from"@vkontakte/videoplayer-shared/es2018";var V5="1",R5=100,Au=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new M5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=L5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},R5);this.subscriptions.add(A5(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new hl(e0);if(this.annotations.has(e))throw new hl(t0);i.style.zIndex=(o=i.style.zIndex)!=null?o:V5,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new hl(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(){}};import{assertNonNullable as Mu,Subscription as N5}from"@vkontakte/videoplayer-shared/es2018";var nn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Mu(e),Mu(i),Mu(n),n.interactiveData&&Mu(o),this.subscription=new N5,this.subscription}};var Ud=class extends nn{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 zd=class extends nn{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 Wd=class extends nn{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}};import{combine as B5}from"@vkontakte/videoplayer-shared/es2018";var lv=ne(!1),Lu=null,qd=class extends nn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...lv,set:(i,o=!1)=>{i!==ye(lv)&&(this.clearTimeout(),lv.set(i),!i&&Lu&&(Lu=!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(B5({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&&Lu===null&&(Lu=!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)}};import{combine as O5,noop as D5}from"@vkontakte/videoplayer-shared/es2018";var Kd=class extends nn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ne(null),toggle:D5};this.checkIfShouldHide=i=>Ds(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(Lp),!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(Lp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(O5({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}};import{ValueSubject as o0}from"@vkontakte/videoplayer-shared/es2018";var Qd=class extends nn{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 o0(!1),isEnabled$:new o0(!1)}};return o.add(r.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};import{filter as U5,filterChanged as z5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as dv}from"@vkontakte/videoplayer-shared/es2018";var n0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?H5({maxCount:t}):void 0,e!==0?F5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},H5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,dv.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},F5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(dv.get(e)||"{}")}catch(r){return{}}},o=r=>dv.set(e,JSON.stringify(r)),n=r=>{let l=i();delete l[r],o(l)};return{notificationShowed:r=>{o({...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 Gd=class extends nn{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=n0({maxShowCount:r,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(z5(),U5(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 r0=()=>[Ud,zd,Wd,qd,Kd,Qd,Gd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as jd}from"@vkontakte/videoplayer-shared/es2018";var Vu=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 W5=Object.defineProperty,q5=(t,e,i)=>e in t?W5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,jt=(t,e,i)=>q5(t,typeof e!="symbol"?e+"":e,i),rw={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:j5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:tw(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Bn=j(void 0),Ru=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 Q5(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}=Fd(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 iw({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})}}),jd.create("ui"),this.logger=new Y5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new s0,this.interactiveSubscription=new s0,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Jr(nv,{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=Jr(ov,l)}disconnectedCallback(){var e,i,o,n,r,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.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(),jd.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:r}=Fd(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new ow.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:Ze,saveRate:Z,volumeMultiplier:Ae,showEndScreen:Te,showAutoplayNext:je,mediascopePixels:tt}=Fd(this.videoConfig,i),{sources:vt,title:It,thumbUrl:dt,unitedVideoId:qe,isClip:zt=!1,duration:Yt,adsParams:qt={},videoEpisodes:Wt,previewThumbsData:ae,subtitles:Tt,subtitlesDefault:xe,live:he}=e;if(!vt&&!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:vt,title:It,thumbUrl:dt,subtitles:Tt,subtitlesDefault:xe,unitedVideoId:qe,isClip:zt,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:Yt,logoClickable:ve,logoHidden:Ie,isTouch:se!=null?se:me,repeat:Ze,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),Je=this.createThinOneStat(e,i),Et;tt&&(Et=new nw({pixels:tt})),(Re||Je)&&(this.statistics=new pu(Re,Je,Et,Fe==null?void 0:Fe.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new da(this.uiConfig.sentry,{version:il,env:Nc},{movieId:qe,albumId:w,place:y,autoplay:(l=I&&!this.interactiveController)!=null?l:!1,mobile:se!=null?se:me,clip:zt}),this.interactiveController&&((p=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...da.getInstance()};let it=!!ce,di=[],ei="tooltip_interactive_go_back_disabled_first";if(it&&this.interactiveController){let ri=this.interactiveController.state.isInitialChapter$.getValue(),bi=this.interactiveController.getHistoryState();ri&&di.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||di.push("SEEK_TO_INTERACTIVE_BUTTON"),bi.hasPrevChapter$.getValue()||(di.push("PLAY_PREV_CHAPTER_BUTTON"),ri||(bi.isGoBackLimited$.getValue()?ei="tooltip_interactive_go_back_disabled_limit":ei="tooltip_interactive_go_back_disabled"))}let st=()=>{var ri;this.isInited=!1,this.prevIsid=void 0;let bi=(o==null?void 0:o.info.isEnded$.getValue())&&((ri=this.interactiveController)==null?void 0:ri.state.isEndChapter$.getValue());ge.onReplayInteractiveVideo&&!bi?ge.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=$1({player:o,interfaceLanguage:de,isCyrillicRelatedInterface:le,videoId:qe,isClip:zt,isLiveCatchUpMode:oe,isAudioDisabled:Le,statAuthToken:S,callbacks:ge,webApi:Ve,videoEpisodes:Wt,previewThumbsData:ae,canDownload:_e,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:di,isInteractive:it,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:st,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:Ze&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:Qt}=this.microStoresRoot=r0(),qi=()=>{var ri,bi,eo,Ft,ci,Ki;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(kt=>{var yt;return(yt=ge==null?void 0:ge.onCurrentFormatChanged)==null?void 0:yt.call(ge,kt)})),this.subscription.add(Qt.interactiveControlsOpacity$.subscribe(kt=>{var yt;kt!==null&&((yt=this==null?void 0:this.interactiveController)==null||yt.setDisabledControls(kt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(kt=>{var yt;return(yt=ge==null?void 0:ge.onThroughputEstimationChanged)==null?void 0:yt.call(ge,kt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(kt=>{var yt;return(yt=ge==null?void 0:ge.onTrafficSavingEnabledChanged)==null?void 0:yt.call(ge,kt)})),this.subscription.add(new Z5(kt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(yt=>kt.next(yt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?ew(1):kt=>kt).subscribe(kt=>{var yt;return(yt=ge==null?void 0:ge.onCurrentPlaybackRateChanged)==null?void 0:yt.call(ge,kt)})),this.subscription.add(this.store.state.volume$.subscribe(kt=>{var yt;return(yt=ge==null?void 0:ge.onVolumeChange)==null?void 0:yt.call(ge,kt)})),this.subscription.add(this.store.state.muted$.subscribe(kt=>{var yt,Ai,Ci,D;if(kt)(yt=ge==null?void 0:ge.onMute)==null||yt.call(ge);else{let Bt=(Ci=((Ai=this.store)==null?void 0:Ai.state.volume$)&&ye(this.store.state.volume$))!=null?Ci:0;(D=ge==null?void 0:ge.onUnmute)==null||D.call(ge,Bt)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(kt=>{var yt;return(yt=ge==null?void 0:ge.onVideoBitrateChanged)==null?void 0:yt.call(ge,kt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(kt=>{var yt;let Ai=(yt=this.store)==null?void 0:yt.ui.controls.disabledControls$;Ai&&(kt&&!Ai.includes(Ql)&&Ai.add(Ql),kt||Ai.remove(Ql))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async kt=>{var yt;if(!a0.browser.isSamsungBrowser||!kt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((yt=this.videoConfig)==null?void 0:yt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(kt=>{var yt;return(yt=ge==null?void 0:ge.onVSIDChanged)==null?void 0:yt.call(ge,kt)})),this.initMediaSession(),B(Bn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:vt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:It,thumbUrl:dt,subtitles:Tt,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:Yt,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:je},!0);let Do={target:this.playerContainer,props:s(Bn)};this.svelteRootComponent=Jr(ev,Do),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(eo=(bi=(ri=this.videoConfig)==null?void 0:ri.callbacks)==null?void 0:bi.onInited)==null||eo.call(bi)),(Ft=this.internalsExposure)==null||Ft.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ki=(ci=this.videoConfig)==null?void 0:ci.callbacks)!=null&&Ki.onDevNullLog)?jd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):jd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?a0.isInited$.subscribe(ri=>{ri&&(console.log("UI SDK async start"),qi())}):qi()}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&&cv(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}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(Gl)),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(Gl)})),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=Fd(rw,G5(e,ve=>ve instanceof HTMLElement?ve:void 0)),this.uiConfig=Xg((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 J5("UI"))),jd.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:[K5()]}),cv(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),cv(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=Pu.getLatestSupportedVersion(ve):this.pictureInPictureApi=new ca(ve)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new ku:void 0,this.slotsApi=this.uiConfig.features.slots?new Su:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Au(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]),J1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(le=this.slotsApi)==null||le.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Vu(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(Bn)&&(s(Bn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Bn).nextButtonActive=this.isNextButtonActive(),s(Bn).prevButtonActive=this.isPrevButtonActive(),s(Bn).endScreenVideoTitle=o.nextVideoTitle,s(Bn).endScreenVideoThumb=o.nextVideoThumb,s(Bn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,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(Bn)&&(s(Bn).needToRepeatPlaylist=this.needToRepeatPlaylist,s(Bn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Bn).nextButtonActive=this.isNextButtonActive(),s(Bn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}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(X5()).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&&oa(e)}};import{InterfaceLanguage as oee,VKNumericLanguage as nee,loadVKLangPack as ree}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as aee,VideoFormat as lee}from"@vkontakte/videoplayer-core/es2018";var jJ=()=>{window.customElements.define("vk-video-player",Ru)};export{fu as ControlButtonType,is as GridTypes,oee as InterfaceLanguage,rd as MenuItemType,gs as PlayerPhase,il as VERSION,nee as VKNumericLanguage,lee as VideoFormat,aee as VideoQuality,ree as loadVKLangPack,jJ as registerPlayerWebComponent};
390
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function ev(t,e){D(e,!0),z(t,v5);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,J1),Ze=m(e,"playPrevChapter",7,J1),Z=m(e,"volumeMultiplier",7),Ae=m(e,"showAutoplayNext",7),Te=m(e,"showEndScreen",7,!0),je=m(e,"keyboardControls",15,void 0),{subscribers:tt,stores:ht}=a();Jg(f());let mt=It(),wt=f().logoLink,Qe=d().ui.debugPanelVisible,Ft=d().ui.playerSize,Xt=d().state.isLive$,Ut=d().state.isInteractive&&Jm.device.isAndroid,ee=j(void 0),Rt=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(),ht),Ue(()=>{var U,at;d().ui.isMobile.set(me()),(at=(U=p().callbacks)==null?void 0:U.onDomReady)==null||at.call(U)});let he=(U=!1)=>{B(xe,!0),U?d().actions.external.firstStart(Q()):d().actions.internal.firstStart(Q())},ie=()=>{if(mt.features.qualityDetailsSubMenuEnabled){let U=Ph(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{Ah(d().videoId),qp()&&d().actions.internal.setTrafficSavingEnabled(!0);let at=Fp(d().videoId);at&&d().actions.internal.setQuality(at)}};function Be(U){var rt,ft,bi;let at=l()||U;at&&d().initVideo({container:s(ee),sources:at,failoverHosts:ue(),subtitles:y(),volumeMultiplier:Z()});let pi=u5.get(Kl)==="true";Qe.set(pi),E()>0&&d().actions.external.seekTime(E());let li=me()?mt.volumeDefault:(ft=(rt=A())!=null?rt:Dc())!=null?ft:mt.volumeDefault,ut=(bi=k())!=null?bi:Ch();if(d().actions.external.setVolume(li),d().actions.external.setMuted(ut),d().getAdmanWrapper().setInitialVolume(ut?0:li),ie(),mt.features.saveRate&&te()){let Et=Eh();Et&&!n()&&d().actions.internal.setPlaybackRate(Et)}if(Ae()){let Et=kh();Et&&d().actions.internal.setAutoplayNextEnabled(Et)}d().ui.isAutoplay.set(I()),I()?he():T()&&mt.features.preload&&d().actions.internal.preload()}let ze=U=>{if(window.ResizeObserver){let at,pi;Rt=new ResizeObserver(p5(li=>{let ut=li[0];if(ut.contentBoxSize){let rt=Array.isArray(ut.contentBoxSize)?ut.contentBoxSize[0]:ut.contentBoxSize;at=rt.inlineSize,pi=rt.blockSize}else ut.contentRect&&(at=ut.contentRect.width,pi=ut.contentRect.height);Ft.set({width:at,height:pi})},300)),Rt.observe(U)}Ft.set({width:U.clientWidth,height:U.clientHeight})},Me=()=>{document.hidden&&d().actions.external.stop()};Nt(()=>{var pi,li,ut,rt;Ut&&document.addEventListener("visibilitychange",Me),mt.debugLog&&d().actions.internal.startLogging(),ze(s(ee));let U=tt.map(ft=>ft.init({store:d(),microStores:ht,config:p(),interactiveController:w(),uiConfig:f()})),at=()=>{Ut&&document.removeEventListener("visibilitychange",Me),Rt==null||Rt.disconnect(),U.forEach(ft=>ft.unsubscribe()),d().destroy()};return((pi=S())==null?void 0:pi.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),at):((li=S())==null?void 0:li.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),at):(((ut=S())==null?void 0:ut.status)==="finished"||((rt=S())==null?void 0:rt.status)==="postlive")&&!(l()&&c5(l()))?(d().actions.internal.setLiveWaitingRecord(!0),at):(Be(),at)});function We(){s(xe)?d().actions.external.play():he(!0)}function Re(){d().actions.external.pause()}function Je(U){d().actions.external.setMuted(U)}function At(){d().actions.external.toggleSubtitle()}function Wt(){var U;(U=d().webApi.slotsApi)!=null&&U.haveSlots()&&d().actions.external.hideControls()}function Xe(){var U;(U=d().webApi.slotsApi)!=null&&U.haveSlots()&&d().actions.external.showControls()}function ci(U){me()||U>=0&&U<=1&&d().actions.external.setVolume(U)}function ti(U){d().actions.internal.seekTime(U,f5.UNKNOWN)}function st(U){d().actions.external.seekEpisodeStartTime(U)}function Kt(){d().actions.external.returnFocusToEpisodes()}function ri(U){d().actions.external.setPlaybackRate(U)}function ui(U){d().actions.external.setAutoQualityLimits(U)}let co=Iu(mt.view),Wi=p().playerView==="preview",qt=d().state.availableSubtitlesList$;if(mt.features.initSubtitles){let U=!1;Ue(()=>{if(!U&&r().length){U=!0;let at;if(mt.features.userVideoPrefs&&d().videoId){let li=Uc(mt.userSalt,String(d().videoId));li!=null&&li.subtitleTrackId&&(at=r().find(ut=>ut.value===li.subtitleTrackId))}let pi=Qp();pi&&(at!=null||(at=r().find(li=>li.language===pi))),d().actions.internal.setSubtitle(at)}})}var ni=m5();let Bo;var Bt=_(ni);{var _t=U=>{Zm(U,{get store(){return d()},get uiConfig(){return mt},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 wt},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 Ze()},firstStart:he,seekTime:ti,get showEndScreen(){return Te()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return ke()},get videoContainer(){return s(ee)},set videoContainer(at){B(ee,at,!0)}})},Si=U=>{var at=Fe(),pi=fe(at);{var li=rt=>{Xm(rt,{get thumbUrl(){return u()},get outsideDuration(){return Y()},get canRewindLive(){return R()},get videoContainer(){return s(ee)},set videoContainer(ft){B(ee,ft,!0)}})},ut=rt=>{jm(rt,{get store(){return d()},get uiConfig(){return mt},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 wt},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 Ze()},firstStart:he,get showEndScreen(){return Te()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return ke()},get videoContainer(){return s(ee)},set videoContainer(ft){B(ee,ft,!0)},get keyboardControls(){return je()},set keyboardControls(ft){je(ft)}})};V(pi,rt=>{Wi?rt(li):rt(ut,!1)})}b(U,at)};V(Bt,U=>{me()?U(_t):U(Si,!1)})}h(ni),O(U=>{Bo=oe(ni,1,"root svelte-16kg8zb",null,Bo,U),lt(ni,co)},[()=>({"root--miui-browser":Jm.device.isMobile&&Jm.browser.isMiuiBrowser,"visible-outside":Wi})]),b(t,ni);var Oo=H({initVideo:Be,play:We,pause:Re,setMuted:Je,toggleSubtitle:At,hideControls:Wt,showControls:Xe,setVolume:ci,seekTime:ti,seekEpisodeStartTime:st,returnFocusToEpisodes:Kt,setPlaybackRate:ri,setAutoQualityLimits:ui,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 Ze()},set playPrevChapter(U){Ze(U)},get volumeMultiplier(){return Z()},set volumeMultiplier(U){Z(U)},get showEndScreen(){return Te()},set showEndScreen(U){Te(U)},get keyboardControls(){return je()},set keyboardControls(U){je(U)}});return o(),Oo}var g5=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 tv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=g5();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 iv(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");tv(t,{get style(){return s(o)}})}var h5=M('<div class="title svelte-1y9fytq"> </div>'),_5=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),b5={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function ov(t,e){z(t,b5);var i=_5(),o=_(i);{var n=d=>{var a=h5(),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);iv(d,{get isWhite(){return s(a)}})};V(r,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),O(()=>lt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var $5=M('<div class="playerError svelte-m5iv29"><!></div>'),y5={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 nv(t){z(t,y5);var e=$5(),i=_(e);Sa(i,{}),h(e),b(t,e)}import{now as Q5,ValueSubject as G5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as j5,InterfaceLanguage as Y5,isNonNullable as cv,Logger as Z5,Observable as X5,Subscription as a0,once as J5,InternalsExposure as ew,skip as tw}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as l0,isMobile as iw}from"@vkontakte/videoplayer-core/es2018";import{OneStat as ow,ThinOneStat as nw,MediascopePixel as rw}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as x5,Subscription as w5}from"@vkontakte/videoplayer-shared/es2018";var ku=class{constructor(){this.subscription=new w5,this.logger=new x5,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,r]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,r)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var r,l;let o=ye(e.state.currentPlaybackRate$),n=ye(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(r=navigator.mediaSession).setPositionState)==null||l.call(r,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as av,detectEmbed as k5}from"@vkontakte/videoplayer-shared/es2018";var C5=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=C5();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 S5=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),T5={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 sv(t,e){D(e,!0),z(t,T5);let[i,o]=Oe(),n=()=>C(p,"$interfaceLanguage$",i),r=()=>C(f,"$isMobile$",i),l=Ee(),d=It(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,u=g(()=>n()&&v("pip_dummy_title")),$=Iu(d.view);var w=S5();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),lt(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 E5=Object.defineProperty,I5=(t,e,i)=>e in t?E5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,gl=(t,e,i)=>I5(t,typeof e!="symbol"?e+"":e,i),P5=460,A5=280,Hd=class{constructor({enabled:e=!0}={enabled:!0}){gl(this,"playerDomElement"),gl(this,"playerParentShadowRoot"),gl(this,"playerDummyElement"),gl(this,"svelteContext"),gl(this,"pipWindow"),gl(this,"info",{isActive$:new av(!1),isEnabled$:new av(!1),type:1}),this.info.isEnabled$=new av(e)}isSupported(){let{isEmbed:e}=k5();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:P5,height:A5,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=Jr(sv,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||(oa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function e0(t){return t instanceof Hd}var Pu=class{static getLatestSupportedVersion(e){let i=new ca(e),o=new Hd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Fd(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",i0="Annotation with such name already exists",o0="Annotation with such name does not exist";var hl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as M5,Subscription as L5,throttleFn as V5}from"@vkontakte/videoplayer-shared/es2018";var R5="1",N5=100,Au=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new L5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=V5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},N5);this.subscriptions.add(M5(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new hl(t0);if(this.annotations.has(e))throw new hl(i0);i.style.zIndex=(o=i.style.zIndex)!=null?o:R5,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new hl(o0);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||r<0||r+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Mu,Subscription as B5}from"@vkontakte/videoplayer-shared/es2018";var on=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Mu(e),Mu(i),Mu(n),n.interactiveData&&Mu(o),this.subscription=new B5,this.subscription}};var Ud=class extends on{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 zd=class extends on{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 Wd=class extends on{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}};import{combine as O5}from"@vkontakte/videoplayer-shared/es2018";var lv=re(!1),Lu=null,qd=class extends on{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...lv,set:(i,o=!1)=>{i!==ye(lv)&&(this.clearTimeout(),lv.set(i),!i&&Lu&&(Lu=!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(O5({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&&Lu===null&&(Lu=!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)}};import{combine as D5,noop as H5}from"@vkontakte/videoplayer-shared/es2018";var Kd=class extends on{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...re(null),toggle:H5};this.checkIfShouldHide=i=>Ds(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(Lp),!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(Lp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(D5({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}};import{ValueSubject as n0}from"@vkontakte/videoplayer-shared/es2018";var Qd=class extends on{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 n0(!1),isEnabled$:new n0(!1)}};return o.add(r.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};import{filter as z5,filterChanged as W5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as dv}from"@vkontakte/videoplayer-shared/es2018";var r0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?F5({maxCount:t}):void 0,e!==0?U5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},F5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,dv.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},U5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(dv.get(e)||"{}")}catch(r){return{}}},o=r=>dv.set(e,JSON.stringify(r)),n=r=>{let l=i();delete l[r],o(l)};return{notificationShowed:r=>{o({...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 Gd=class extends on{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=r0({maxShowCount:r,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(W5(),z5(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var s0=()=>[Ud,zd,Wd,qd,Kd,Qd,Gd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as jd}from"@vkontakte/videoplayer-shared/es2018";var Vu=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 q5=Object.defineProperty,K5=(t,e,i)=>e in t?q5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Qt=(t,e,i)=>K5(t,typeof e!="symbol"?e+"":e,i),sw={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Y5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:iw(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Bn=j(void 0),Ru=class extends HTMLElement{constructor(){super(),Qt(this,"svelteStubComponent"),Qt(this,"svelteRootComponent"),Qt(this,"svelteErrorComponent"),Qt(this,"store"),Qt(this,"microStoresRoot"),Qt(this,"statistics"),Qt(this,"sentry"),Qt(this,"_shadowRoot"),Qt(this,"playerContainer"),Qt(this,"rootContainer"),Qt(this,"shadowRootContainer"),Qt(this,"uiConfig"),Qt(this,"coreConfig"),Qt(this,"statisticsConfig"),Qt(this,"interactiveController"),Qt(this,"interactiveContainer"),Qt(this,"graphMadePause"),Qt(this,"currentPlayingVideoIndex",0),Qt(this,"needToRepeatPlaylist",!1),Qt(this,"videoConfig"),Qt(this,"pictureInPictureApi"),Qt(this,"mediaSessionApi"),Qt(this,"unsubscribePlayerPhaseSubscription"),Qt(this,"logger"),Qt(this,"log"),Qt(this,"subscription"),Qt(this,"interactiveSubscription"),Qt(this,"annotationsApi"),Qt(this,"slotsApi"),Qt(this,"focusManager"),Qt(this,"prevIsid"),Qt(this,"isInited",!1),Qt(this,"internalsExposure",null),Qt(this,"shadowDOMCallbacksDisabled",!1),Qt(this,"fatalError$",new G5(null)),Qt(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}=Fd(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 ow({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})}}),jd.create("ui"),this.logger=new Z5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new a0,this.interactiveSubscription=new a0,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Jr(nv,{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=Jr(ov,l)}disconnectedCallback(){var e,i,o,n,r,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.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(),jd.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:r}=Fd(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new nw.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:Ze,saveRate:Z,volumeMultiplier:Ae,showEndScreen:Te,showAutoplayNext:je,mediascopePixels:tt}=Fd(this.videoConfig,i),{sources:ht,title:mt,thumbUrl:wt,unitedVideoId:Qe,isClip:Ft=!1,duration:Xt,adsParams:Gt={},videoEpisodes:Ut,previewThumbsData:ee,subtitles:Rt,live:xe}=e;if(!ht&&!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,...Gt},ie=this.getNextVideoInfo(),Be={sources:ht,title:mt,thumbUrl:wt,subtitles:Rt,unitedVideoId:Qe,isClip:Ft,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:Ze,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),Je;tt&&(Je=new rw({pixels:tt})),(We||Re)&&(this.statistics=new pu(We,Re,Je,Me==null?void 0:Me.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new da(this.uiConfig.sentry,{version:il,env:Nc},{movieId:Qe,albumId:w,place:y,autoplay:(l=I&&!this.interactiveController)!=null?l:!1,mobile:ae!=null?ae:ve,clip:Ft}),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,...da.getInstance()};let Wt=!!de,Xe=[],ci="tooltip_interactive_go_back_disabled_first";if(Wt&&this.interactiveController){let ri=this.interactiveController.state.isInitialChapter$.getValue(),ui=this.interactiveController.getHistoryState();ri&&Xe.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Xe.push("SEEK_TO_INTERACTIVE_BUTTON"),ui.hasPrevChapter$.getValue()||(Xe.push("PLAY_PREV_CHAPTER_BUTTON"),ri||(ui.isGoBackLimited$.getValue()?ci="tooltip_interactive_go_back_disabled_limit":ci="tooltip_interactive_go_back_disabled"))}let ti=()=>{var ri;this.isInited=!1,this.prevIsid=void 0;let ui=(o==null?void 0:o.info.isEnded$.getValue())&&((ri=this.interactiveController)==null?void 0:ri.state.isEndChapter$.getValue());ge.onReplayInteractiveVideo&&!ui?ge.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=y1({player:o,interfaceLanguage:ce,isCyrillicRelatedInterface:le,videoId:Qe,isClip:Ft,isLiveCatchUpMode:ne,isAudioDisabled:Ve,statAuthToken:S,callbacks:ge,webApi:ze,videoEpisodes:Ut,previewThumbsData:ee,canDownload:_e,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Xe,isInteractive:Wt,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:ci,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:Ze&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:st}=this.microStoresRoot=s0(),Kt=()=>{var ri,ui,co,Wi,qt,ni;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Bt=>{var _t;return(_t=ge==null?void 0:ge.onCurrentFormatChanged)==null?void 0:_t.call(ge,Bt)})),this.subscription.add(st.interactiveControlsOpacity$.subscribe(Bt=>{var _t;Bt!==null&&((_t=this==null?void 0:this.interactiveController)==null||_t.setDisabledControls(Bt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Bt=>{var _t;return(_t=ge==null?void 0:ge.onThroughputEstimationChanged)==null?void 0:_t.call(ge,Bt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Bt=>{var _t;return(_t=ge==null?void 0:ge.onTrafficSavingEnabledChanged)==null?void 0:_t.call(ge,Bt)})),this.subscription.add(new X5(Bt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(_t=>Bt.next(_t)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?tw(1):Bt=>Bt).subscribe(Bt=>{var _t;return(_t=ge==null?void 0:ge.onCurrentPlaybackRateChanged)==null?void 0:_t.call(ge,Bt)})),this.subscription.add(this.store.state.volume$.subscribe(Bt=>{var _t;return(_t=ge==null?void 0:ge.onVolumeChange)==null?void 0:_t.call(ge,Bt)})),this.subscription.add(this.store.state.muted$.subscribe(Bt=>{var _t,Si,Oo,U;if(Bt)(_t=ge==null?void 0:ge.onMute)==null||_t.call(ge);else{let at=(Oo=((Si=this.store)==null?void 0:Si.state.volume$)&&ye(this.store.state.volume$))!=null?Oo:0;(U=ge==null?void 0:ge.onUnmute)==null||U.call(ge,at)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Bt=>{var _t;return(_t=ge==null?void 0:ge.onVideoBitrateChanged)==null?void 0:_t.call(ge,Bt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Bt=>{var _t;let Si=(_t=this.store)==null?void 0:_t.ui.controls.disabledControls$;Si&&(Bt&&!Si.includes(Ql)&&Si.add(Ql),Bt||Si.remove(Ql))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Bt=>{var _t;if(!l0.browser.isSamsungBrowser||!Bt||!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(Bt=>{var _t;return(_t=ge==null?void 0:ge.onVSIDChanged)==null?void 0:_t.call(ge,Bt)})),this.initMediaSession(),B(Bn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ht,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:mt,thumbUrl:wt,subtitles:Rt,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:je},!0);let Bo={target:this.playerContainer,props:s(Bn)};this.svelteRootComponent=Jr(ev,Bo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(co=(ui=(ri=this.videoConfig)==null?void 0:ri.callbacks)==null?void 0:ui.onInited)==null||co.call(ui)),(Wi=this.internalsExposure)==null||Wi.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)?jd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):jd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?l0.isInited$.subscribe(ri=>{ri&&(console.log("UI SDK async start"),Kt())}):Kt()}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&&cv(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}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(Gl)),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(Gl)})),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=Fd(sw,j5(e,me=>me instanceof HTMLElement?me:void 0)),this.uiConfig=Xg((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 ew("UI"))),jd.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:[Q5()]}),cv(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),cv(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=Pu.getLatestSupportedVersion(me):this.pictureInPictureApi=new ca(me)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new ku:void 0,this.slotsApi=this.uiConfig.features.slots?new Su:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Au(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),e0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(le=this.slotsApi)==null||le.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Vu(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(Bn)&&(s(Bn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Bn).nextButtonActive=this.isNextButtonActive(),s(Bn).prevButtonActive=this.isPrevButtonActive(),s(Bn).endScreenVideoTitle=o.nextVideoTitle,s(Bn).endScreenVideoThumb=o.nextVideoThumb,s(Bn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,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(Bn)&&(s(Bn).needToRepeatPlaylist=this.needToRepeatPlaylist,s(Bn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Bn).nextButtonActive=this.isNextButtonActive(),s(Bn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}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(J5()).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&&oa(e)}};import{InterfaceLanguage as ree,VKNumericLanguage as see,loadVKLangPack as aee}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as dee,VideoFormat as cee}from"@vkontakte/videoplayer-core/es2018";var ZJ=()=>{window.customElements.define("vk-video-player",Ru)};export{fu as ControlButtonType,is as GridTypes,ree as InterfaceLanguage,rd as MenuItemType,gs as PlayerPhase,il as VERSION,see as VKNumericLanguage,cee as VideoFormat,dee as VideoQuality,aee as loadVKLangPack,ZJ as registerPlayerWebComponent};