@vkontakte/videoplayer 1.1.65-dev.b4cd3784.0 → 1.1.65-dev.d779f3ab.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,63 +1,63 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.65-dev.b4cd3784.0
3
- * Fri, 20 Jun 2025 14:12:43 GMT
2
+ * @vkontakte/videoplayer v1.1.65-dev.d779f3ab.0
3
+ * Wed, 02 Jul 2025 13:59:31 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-65/doc/
5
5
  */
6
- var N1=Object.defineProperty;var zm=t=>{throw TypeError(t)};var D1=(t,e,i)=>e in t?N1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Mn=(t,e,i)=>D1(t,typeof e!="symbol"?e+"":e,i),$u=(t,e,i)=>e.has(t)||zm("Cannot "+i);var Ti=(t,e,i)=>($u(t,e,"read from private field"),i?i.call(t):e.get(t)),ls=(t,e,i)=>e.has(t)?zm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),xa=(t,e,i,o)=>($u(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Wm=(t,e,i)=>($u(t,e,"access private method"),i);var ds="[",Ps="[!",As="]",zr={};var Ii=Symbol(),mi=Symbol("filename"),qm=Symbol("hmr"),Km="http://www.w3.org/1999/xhtml",yu="http://www.w3.org/2000/svg";var qd=!0;var Gm,Ym,Qm=(Ym=(Gm=globalThis.process)==null?void 0:Gm.env)==null?void 0:Ym.NODE_ENV,ke=Qm&&!Qm.toLowerCase().startsWith("prod");var Bo=Symbol("$state"),Wr=Symbol("$state metadata"),dl=Symbol("legacy props"),jm=Symbol("");var mr=Array.isArray,Zm=Array.prototype.indexOf,cl=Array.from,xu=Object.keys,ji=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,Kd=Object.getOwnPropertyDescriptors,wu=Object.prototype,Xm=Array.prototype,qr=Object.getPrototypeOf;function cs(t){return typeof t=="function"}var te=()=>{};function Jm(t){return t()}function us(t){for(var e=0;e<t.length;e++)t[e]()}var ul=[],Su=[];function ev(){var t=ul;ul=[],us(t)}function O1(){var t=Su;Su=[],us(t)}function jo(t){ul.length===0&&queueMicrotask(ev),ul.push(t)}function Cu(){ul.length>0&&ev(),Su.length>0&&O1()}function Qd(t){return t===this.v}function wa(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 Sa(t){return!wa(t,this.v)}function iv(){if(ke){let t=new Error(`derived_references_self
6
+ var W1=Object.defineProperty;var Qm=t=>{throw TypeError(t)};var q1=(t,e,i)=>e in t?W1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var zn=(t,e,i)=>q1(t,typeof e!="symbol"?e+"":e,i),Cu=(t,e,i)=>e.has(t)||Qm("Cannot "+i);var Ei=(t,e,i)=>(Cu(t,e,"read from private field"),i?i.call(t):e.get(t)),xs=(t,e,i)=>e.has(t)?Qm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ta=(t,e,i,o)=>(Cu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Gm=(t,e,i)=>(Cu(t,e,"access private method"),i);var ws="[",Hs="[!",Fs="]",ts={};var ki=Symbol(),ui=Symbol("filename"),Ym=Symbol("hmr"),jm="http://www.w3.org/1999/xhtml",Tu="http://www.w3.org/2000/svg";var Yd=!0;var Xm,Jm,Zm=(Jm=(Xm=globalThis.process)==null?void 0:Xm.env)==null?void 0:Jm.NODE_ENV,Le=Zm&&!Zm.toLowerCase().startsWith("prod");var qo=Symbol("$state"),is=Symbol("$state metadata"),gl=Symbol("legacy props"),ev=Symbol("");var wr=Array.isArray,tv=Array.prototype.indexOf,hl=Array.from,Iu=Object.keys,eo=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,jd=Object.getOwnPropertyDescriptors,Eu=Object.prototype,iv=Array.prototype,os=Object.getPrototypeOf;function Ss(t){return typeof t=="function"}var oe=()=>{};function ov(t){return t()}function Cs(t){for(var e=0;e<t.length;e++)t[e]()}var _l=[],ku=[];function nv(){var t=_l;_l=[],Cs(t)}function K1(){var t=ku;ku=[],Cs(t)}function nn(t){_l.length===0&&queueMicrotask(nv),_l.push(t)}function Pu(){_l.length>0&&nv(),ku.length>0&&K1()}function Zd(t){return t===this.v}function Ia(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function rv(t,e){return t!==e}function Ea(t){return!Ia(t,this.v)}function sv(){if(Le){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
8
- https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function ov(t){if(ke){let e=new Error(`effect_in_teardown
8
+ https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function av(t){if(Le){let e=new Error(`effect_in_teardown
9
9
  \`${t}\` cannot be used inside an effect cleanup function
10
- https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function nv(){if(ke){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function rv(t){if(ke){let e=new Error(`effect_orphan
10
+ https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function lv(){if(Le){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function dv(t){if(Le){let e=new Error(`effect_orphan
11
11
  \`${t}\` can only be used inside an effect (e.g. during component initialisation)
12
- https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function sv(){if(ke){let t=new Error(`effect_update_depth_exceeded
12
+ https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function cv(){if(Le){let t=new Error(`effect_update_depth_exceeded
13
13
  Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
14
- https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function av(){if(ke){let t=new Error(`hydration_failed
14
+ https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function uv(){if(Le){let t=new Error(`hydration_failed
15
15
  Failed to hydrate the application
16
- https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function lv(){if(ke){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function dv(t){if(ke){let e=new Error(`props_invalid_value
16
+ https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function pv(){if(Le){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function fv(t){if(Le){let e=new Error(`props_invalid_value
17
17
  Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
18
- https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function cv(t){if(ke){let e=new Error(`props_rest_readonly
18
+ https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function mv(t){if(Le){let e=new Error(`props_rest_readonly
19
19
  Rest element properties of \`$props()\` such as \`${t}\` are readonly
20
- https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function uv(t){if(ke){let e=new Error(`rune_outside_svelte
20
+ https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function vv(t){if(Le){let e=new Error(`rune_outside_svelte
21
21
  The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
22
- https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function pv(){if(ke){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 fv(){if(ke){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 mv(){if(ke){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function vv(){if(ke){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived 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 Ar=!1,Mr=!1;function gv(){Ar=!0}var pl=null;function Kr(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
22
+ https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function gv(){if(Le){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function hv(){if(Le){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function _v(){if(Le){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function bv(){if(Le){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived 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 zr=!1,Wr=!1;function $v(){zr=!0}var bl=null;function ns(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
- `];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;ji(e,"stack",{value:n.join(`
25
- `)}),ji(e,"name",{value:`${t}Error`})}return e}var Ms=new Set,Ca=new Map;function Eu(t){Ms=t}function Hi(t,e){var i={f:0,v:t,reactions:null,equals:Qd,rv:0,wv:0};return ke&&Mr&&(i.created=e!=null?e:Kr("CreatedAt"),i.debug=null),i}function X(t){return H1(Hi(t))}function Gr(t,e=!1){var o,n;let i=Hi(t);return e||(i.equals=Sa),Ar&&Pt!==null&&Pt.l!==null&&((n=(o=Pt.l).s)!=null?n:o.s=[]).push(i),i}function H1(t){return Ft!==null&&!Rn&&(Ft.f&2)!==0&&(vr===null?bv([t]):vr.push(t)),t}function D(t,e){return Ft!==null&&!Rn&&Lr()&&(Ft.f&18)!==0&&(vr===null||!vr.includes(t))&&vv(),Ta(t,e)}function Ta(t,e){var o;if(!t.equals(e)){var i=t.v;if(Vs?Ca.set(t,e):Ca.set(t,i),t.v=e,t.wv=ml(),ke&&Mr&&(t.updated=Kr("UpdatedAt"),kt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),_v(t,2048),Lr()&&kt!==null&&(kt.f&1024)!==0&&(kt.f&96)===0&&(Vn===null?$v([t]):Vn.push(t)),ke&&Ms.size>0){let n=Array.from(Ms);for(let a of n)(a.f&1024)!==0&&Jo(a,4096),ps(a)&&Ia(a);Ms.clear()}}return e}function _v(t,e){var i=t.reactions;if(i!==null)for(var o=Lr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===kt)){if(ke&&(d&262144)!==0){Ms.add(s);continue}Jo(s,e),(d&1280)!==0&&((d&2)!==0?_v(s,4096):ka(s))}}}function v(t){var e=2050,i=Ft!==null&&(Ft.f&2)!==0?Ft:null;kt===null||i!==null&&(i.f&256)!==0?e|=256:kt.f|=1048576;let o={ctx:Pt,deps:null,effects:null,equals:Qd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:kt};return ke&&Mr&&(o.created=Kr("CreatedAt")),o}function hr(t){let e=v(t);return e.equals=Sa,e}function Gd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Xi(e[i])}}var Pu=[];function F1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function U1(t){var e,i=kt;if(Zi(F1(t)),ke){let o=Ms;Eu(new Set);try{Pu.includes(t)&&iv(),Pu.push(t),Gd(t),e=Yd(t)}finally{Zi(i),Eu(o),Pu.pop()}}else try{Gd(t),e=Yd(t)}finally{Zi(i)}return e}function Mu(t){var e=U1(t),i=(Yr||(t.f&256)!==0)&&t.deps!==null?4096:1024;Jo(t,i),t.equals(e)||(t.v=e,t.wv=ml())}var Rs="font-weight: bold",Bs="font-weight: normal";function yv(t,e,i){ke?console.warn(`%c[svelte] hydration_attribute_changed
24
+ `];for(let a=0;a<o.length;a++){let r=o[a];if(r!=="Error"){if(r.includes("validate_each_keys"))return null;r.includes("svelte/src/internal")||n.push(r)}}if(n.length===1)return null;eo(e,"stack",{value:n.join(`
25
+ `)}),eo(e,"name",{value:`${t}Error`})}return e}var Us=new Set,ka=new Map;function Vu(t){Us=t}function Fi(t,e){var i={f:0,v:t,reactions:null,equals:Zd,rv:0,wv:0};return Le&&Wr&&(i.created=e!=null?e:ns("CreatedAt"),i.debug=null),i}function X(t){return Q1(Fi(t))}function ss(t,e=!1){var o,n;let i=Fi(t);return e||(i.equals=Ea),zr&&Pt!==null&&Pt.l!==null&&((n=(o=Pt.l).s)!=null?n:o.s=[]).push(i),i}function Q1(t){return Dt!==null&&!Kn&&(Dt.f&2)!==0&&(Sr===null?wv([t]):Sr.push(t)),t}function D(t,e){return Dt!==null&&!Kn&&qr()&&(Dt.f&18)!==0&&(Sr===null||!Sr.includes(t))&&bv(),Pa(t,e)}function Pa(t,e){var o;if(!t.equals(e)){var i=t.v;if(Ws?ka.set(t,e):ka.set(t,i),t.v=e,t.wv=yl(),Le&&Wr&&(t.updated=ns("UpdatedAt"),It!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),xv(t,2048),qr()&&It!==null&&(It.f&1024)!==0&&(It.f&96)===0&&(qn===null?Sv([t]):qn.push(t)),Le&&Us.size>0){let n=Array.from(Us);for(let a of n)(a.f&1024)!==0&&an(a,4096),Ts(a)&&Aa(a);Us.clear()}}return e}function xv(t,e){var i=t.reactions;if(i!==null)for(var o=qr(),n=i.length,a=0;a<n;a++){var r=i[a],d=r.f;if((d&2048)===0&&!(!o&&r===It)){if(Le&&(d&262144)!==0){Us.add(r);continue}an(r,e),(d&1280)!==0&&((d&2)!==0?xv(r,4096):Ma(r))}}}function v(t){var e=2050,i=Dt!==null&&(Dt.f&2)!==0?Dt:null;It===null||i!==null&&(i.f&256)!==0?e|=256:It.f|=1048576;let o={ctx:Pt,deps:null,effects:null,equals:Zd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:It};return Le&&Wr&&(o.created=ns("CreatedAt")),o}function Tr(t){let e=v(t);return e.equals=Ea,e}function Xd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)io(e[i])}}var Ru=[];function G1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Y1(t){var e,i=It;if(to(G1(t)),Le){let o=Us;Vu(new Set);try{Ru.includes(t)&&sv(),Ru.push(t),Xd(t),e=Jd(t)}finally{to(i),Vu(o),Ru.pop()}}else try{Xd(t),e=Jd(t)}finally{to(i)}return e}function Nu(t){var e=Y1(t),i=(as||(t.f&256)!==0)&&t.deps!==null?4096:1024;an(t,i),t.equals(e)||(t.v=e,t.wv=yl())}var qs="font-weight: bold",Ks="font-weight: normal";function Cv(t,e,i){Le?console.warn(`%c[svelte] hydration_attribute_changed
26
26
  %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
27
- https://svelte.dev/e/hydration_attribute_changed`,Rs,Bs):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function xv(t){ke?console.warn(`%c[svelte] hydration_html_changed
27
+ https://svelte.dev/e/hydration_attribute_changed`,qs,Ks):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Tv(t){Le?console.warn(`%c[svelte] hydration_html_changed
28
28
  %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"}
29
- https://svelte.dev/e/hydration_html_changed`,Rs,Bs):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ns(t){ke?console.warn(`%c[svelte] hydration_mismatch
29
+ https://svelte.dev/e/hydration_html_changed`,qs,Ks):console.warn("https://svelte.dev/e/hydration_html_changed")}function Qs(t){Le?console.warn(`%c[svelte] hydration_mismatch
30
30
  %c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
31
- https://svelte.dev/e/hydration_mismatch`,Rs,Bs):console.warn("https://svelte.dev/e/hydration_mismatch")}function wv(){ke?console.warn(`%c[svelte] lifecycle_double_unmount
31
+ https://svelte.dev/e/hydration_mismatch`,qs,Ks):console.warn("https://svelte.dev/e/hydration_mismatch")}function Iv(){Le?console.warn(`%c[svelte] lifecycle_double_unmount
32
32
  %cTried to unmount a component that was not mounted
33
- https://svelte.dev/e/lifecycle_double_unmount`,Rs,Bs):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Sv(t,e,i){ke?console.warn(`%c[svelte] ownership_invalid_binding
33
+ https://svelte.dev/e/lifecycle_double_unmount`,qs,Ks):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Ev(t,e,i){Le?console.warn(`%c[svelte] ownership_invalid_binding
34
34
  %c${t} passed a value to ${e} with \`bind:\`, but the value is owned by ${i}. Consider creating a binding between ${i} and ${t}
35
- https://svelte.dev/e/ownership_invalid_binding`,Rs,Bs):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Lu(t,e){ke?console.warn(`%c[svelte] ownership_invalid_mutation
35
+ https://svelte.dev/e/ownership_invalid_binding`,qs,Ks):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Du(t,e){Le?console.warn(`%c[svelte] ownership_invalid_mutation
36
36
  %c${t?`${t} mutated a value owned by ${e}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
37
- https://svelte.dev/e/ownership_invalid_mutation`,Rs,Bs):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function jd(t){ke?console.warn(`%c[svelte] state_proxy_equality_mismatch
37
+ https://svelte.dev/e/ownership_invalid_mutation`,qs,Ks):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function ec(t){Le?console.warn(`%c[svelte] state_proxy_equality_mismatch
38
38
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
39
- https://svelte.dev/e/state_proxy_equality_mismatch`,Rs,Bs):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ge=!1;function Ji(t){Ge=t}var _t;function vi(t){if(t===null)throw Ns(),zr;return _t=t}function Li(){return vi(To(_t))}function g(t){if(Ge){if(To(_t)!==null)throw Ns(),zr;_t=t}}function $e(t=1){if(Ge){for(var e=t,i=_t;e--;)i=To(i);_t=i}}function Ea(){for(var t=0,e=_t;;){if(e.nodeType===8){var i=e.data;if(i===As){if(t===0)return e;t-=1}else(i===ds||i===Ps)&&(t+=1)}var o=To(e);e.remove(),e=o}}function fe(t,e=null,i){var p,f;var o=null;if(ke&&Mr&&(o=Kr("CreatedAt")),typeof t!="object"||t===null||Bo in t)return t;let n=qr(t);if(n!==wu&&n!==Xm)return t;var a=new Map,s=mr(t),d=Hi(0);s&&a.set("length",Hi(t.length,o));var l;if(ke)if(l={parent:e,owners:null},i){let y=(f=(p=i.v)==null?void 0:p[Wr])==null?void 0:f.owners;l.owners=y?new Set(y):null}else l.owners=e===null?Pt!==null?new Set([Pt.function]):null:new Set;return new Proxy(t,{defineProperty(y,u,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&pv();var w=a.get(u);return w===void 0?(w=Hi(_.value,o),a.set(u,w)):D(w,fe(_.value,l)),!0},deleteProperty(y,u){var _=a.get(u);if(_===void 0)u in y&&a.set(u,Hi(Ii,o));else{if(s&&typeof u=="string"){var w=a.get("length"),b=Number(u);Number.isInteger(b)&&b<w.v&&D(w,b)}D(_,Ii),Cv(d)}return!0},get(y,u,_){var I;if(ke&&u===Wr)return l;if(u===Bo)return t;var w=a.get(u),b=u in y;if(w===void 0&&(!b||(I=Ln(y,u))!=null&&I.writable)&&(w=Hi(fe(b?y[u]:Ii,l),o),a.set(u,w)),w!==void 0){var C=r(w);if(ke){var T=C==null?void 0:C[Wr];T&&(T==null?void 0:T.parent)!==l&&Vu(l,T)}return C===Ii?void 0:C}return Reflect.get(y,u,_)},getOwnPropertyDescriptor(y,u){var _=Reflect.getOwnPropertyDescriptor(y,u);if(_&&"value"in _){var w=a.get(u);w&&(_.value=r(w))}else if(_===void 0){var b=a.get(u),C=b==null?void 0:b.v;if(b!==void 0&&C!==Ii)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return _},has(y,u){var C;if(ke&&u===Wr||u===Bo)return!0;var _=a.get(u),w=_!==void 0&&_.v!==Ii||Reflect.has(y,u);if(_!==void 0||kt!==null&&(!w||(C=Ln(y,u))!=null&&C.writable)){_===void 0&&(_=Hi(w?fe(y[u],l):Ii,o),a.set(u,_));var b=r(_);if(b===Ii)return!1}return w},set(y,u,_,w){var W;var b=a.get(u),C=u in y;if(s&&u==="length")for(var T=_;T<b.v;T+=1){var I=a.get(T+"");I!==void 0?D(I,Ii):T in y&&(I=Hi(Ii,o),a.set(T+"",I))}if(b===void 0?(!C||(W=Ln(y,u))!=null&&W.writable)&&(b=Hi(void 0,o),D(b,fe(_,l)),a.set(u,b)):(C=b.v!==Ii,D(b,fe(_,l))),ke){var M=_==null?void 0:_[Wr];M&&(M==null?void 0:M.parent)!==l&&Vu(l,M),Tv(l)}var P=Reflect.getOwnPropertyDescriptor(y,u);if(P!=null&&P.set&&P.set.call(w,_),!C){if(s&&typeof u=="string"){var k=a.get("length"),V=Number(u);Number.isInteger(V)&&V>=k.v&&D(k,V+1)}Cv(d)}return!0},ownKeys(y){r(d);var u=Reflect.ownKeys(y).filter(b=>{var C=a.get(b);return C===void 0||C.v!==Ii});for(var[_,w]of a)w.v!==Ii&&!(_ in y)&&u.push(_);return u},setPrototypeOf(){fv()}})}function Cv(t,e=1){D(t,t.v+e)}function Zd(t){return t!==null&&typeof t=="object"&&Bo in t?t[Bo]:t}function Iv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(a,s){let d=i.call(this,a,s);if(d===-1){for(let l=s!=null?s:0;l<this.length;l+=1)if(Zd(this[l])===a){jd("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,s){let d=o.call(this,a,s!=null?s:this.length-1);if(d===-1){for(let l=0;l<=(s!=null?s:this.length-1);l+=1)if(Zd(this[l])===a){jd("array.lastIndexOf(...)");break}}return d},t.includes=function(a,s){let d=n.call(this,a,s);if(!d){for(let l=0;l<this.length;l+=1)if(Zd(this[l])===a){jd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Ds,kv,vl,Ev,Pv;function Xd(){if(Ds===void 0){Ds=window,kv=document,vl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;Ev=Ln(e,"firstChild").get,Pv=Ln(e,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0,ke&&(t.__svelte_meta=null,Iv())}}function en(t=""){return document.createTextNode(t)}function gi(t){return Ev.call(t)}function To(t){return Pv.call(t)}function h(t,e){if(!Ge)return gi(t);var i=gi(_t);if(i===null)i=_t.appendChild(en());else if(e&&i.nodeType!==3){var o=en();return i==null||i.before(o),vi(o),o}return vi(i),i}function pe(t,e){var n,a;if(!Ge){var i=gi(t);return i.nodeType===8&&i.data===""?To(i):i}if(e&&((n=_t)==null?void 0:n.nodeType)!==3){var o=en();return(a=_t)==null||a.before(o),vi(o),o}return _t}function A(t,e=1,i=!1){let o=Ge?_t:t;for(var n;e--;)n=o,o=To(o);if(!Ge)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=en();return o===null?n==null||n.after(s):o.before(s),vi(s),s}return vi(o),o}function gl(t){t.textContent=""}var Av=new WeakSet,Jd=!1,bl=!1,hl=null,Os=!1,Vs=!1;function Nu(t){Vs=t}var _l=[],tc=[],Ft=null,Rn=!1;function mo(t){Ft=t}var kt=null;function Zi(t){kt=t}var vr=null;function bv(t){vr=t}var tn=null,Nn=0,Vn=null;function $v(t){Vn=t}var Bv=1,ic=0,Yr=!1,fl=null;function ml(){return++Bv}function ps(t){var y,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,a,s=(e&512)!==0,d=o&&kt!==null&&!Yr,l=i.length;if(s||d){var p=t,f=p.parent;for(n=0;n<l;n++)a=i[n],(s||!((y=a==null?void 0:a.reactions)!=null&&y.includes(p)))&&((u=a.reactions)!=null?u:a.reactions=[]).push(p);s&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<l;n++)if(a=i[n],ps(a)&&Mu(a),a.wv>t.wv)return!0}(!o||kt!==null&&!Yr)&&Jo(t,1024)}return!1}function Mv(t,e){for(var i=e;i!==null;){if((i.f&128)!==0)try{i.fn(t);return}catch(o){i.f^=128}i=i.parent}throw Jd=!1,t}function Lv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Aa(t,e,i,o){var f,y;if(Jd){if(i===null&&(Jd=!1),Lv(e))throw t;return}if(i!==null&&(Jd=!0),!ke||o===null||!(t instanceof Error)||Av.has(t)){Mv(t,e);return}Av.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let s=o;for(;s!==null;){if(ke){var d=(y=s.function)==null?void 0:y[mi];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=vl?" ":" ";ji(t,"message",{value:t.message+`
39
+ https://svelte.dev/e/state_proxy_equality_mismatch`,qs,Ks):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ye=!1;function oo(t){Ye=t}var ft;function pi(t){if(t===null)throw Qs(),ts;return ft=t}function Bi(){return pi(Ao(ft))}function g(t){if(Ye){if(Ao(ft)!==null)throw Qs(),ts;ft=t}}function we(t=1){if(Ye){for(var e=t,i=ft;e--;)i=Ao(i);ft=i}}function La(){for(var t=0,e=ft;;){if(e.nodeType===8){var i=e.data;if(i===Fs){if(t===0)return e;t-=1}else(i===ws||i===Hs)&&(t+=1)}var o=Ao(e);e.remove(),e=o}}function ve(t,e=null,i){var p,f;var o=null;if(Le&&Wr&&(o=ns("CreatedAt")),typeof t!="object"||t===null||qo in t)return t;let n=os(t);if(n!==Eu&&n!==iv)return t;var a=new Map,r=wr(t),d=Fi(0);r&&a.set("length",Fi(t.length,o));var l;if(Le)if(l={parent:e,owners:null},i){let b=(f=(p=i.v)==null?void 0:p[is])==null?void 0:f.owners;l.owners=b?new Set(b):null}else l.owners=e===null?Pt!==null?new Set([Pt.function]):null:new Set;return new Proxy(t,{defineProperty(b,u,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&gv();var w=a.get(u);return w===void 0?(w=Fi(_.value,o),a.set(u,w)):D(w,ve(_.value,l)),!0},deleteProperty(b,u){var _=a.get(u);if(_===void 0)u in b&&a.set(u,Fi(ki,o));else{if(r&&typeof u=="string"){var w=a.get("length"),y=Number(u);Number.isInteger(y)&&y<w.v&&D(w,y)}D(_,ki),kv(d)}return!0},get(b,u,_){var I;if(Le&&u===is)return l;if(u===qo)return t;var w=a.get(u),y=u in b;if(w===void 0&&(!y||(I=Wn(b,u))!=null&&I.writable)&&(w=Fi(ve(y?b[u]:ki,l),o),a.set(u,w)),w!==void 0){var C=s(w);if(Le){var T=C==null?void 0:C[is];T&&(T==null?void 0:T.parent)!==l&&Ou(l,T)}return C===ki?void 0:C}return Reflect.get(b,u,_)},getOwnPropertyDescriptor(b,u){var _=Reflect.getOwnPropertyDescriptor(b,u);if(_&&"value"in _){var w=a.get(u);w&&(_.value=s(w))}else if(_===void 0){var y=a.get(u),C=y==null?void 0:y.v;if(y!==void 0&&C!==ki)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return _},has(b,u){var C;if(Le&&u===is||u===qo)return!0;var _=a.get(u),w=_!==void 0&&_.v!==ki||Reflect.has(b,u);if(_!==void 0||It!==null&&(!w||(C=Wn(b,u))!=null&&C.writable)){_===void 0&&(_=Fi(w?ve(b[u],l):ki,o),a.set(u,_));var y=s(_);if(y===ki)return!1}return w},set(b,u,_,w){var z;var y=a.get(u),C=u in b;if(r&&u==="length")for(var T=_;T<y.v;T+=1){var I=a.get(T+"");I!==void 0?D(I,ki):T in b&&(I=Fi(ki,o),a.set(T+"",I))}if(y===void 0?(!C||(z=Wn(b,u))!=null&&z.writable)&&(y=Fi(void 0,o),D(y,ve(_,l)),a.set(u,y)):(C=y.v!==ki,D(y,ve(_,l))),Le){var M=_==null?void 0:_[is];M&&(M==null?void 0:M.parent)!==l&&Ou(l,M),Pv(l)}var P=Reflect.getOwnPropertyDescriptor(b,u);if(P!=null&&P.set&&P.set.call(w,_),!C){if(r&&typeof u=="string"){var E=a.get("length"),R=Number(u);Number.isInteger(R)&&R>=E.v&&D(E,R+1)}kv(d)}return!0},ownKeys(b){s(d);var u=Reflect.ownKeys(b).filter(y=>{var C=a.get(y);return C===void 0||C.v!==ki});for(var[_,w]of a)w.v!==ki&&!(_ in b)&&u.push(_);return u},setPrototypeOf(){hv()}})}function kv(t,e=1){D(t,t.v+e)}function tc(t){return t!==null&&typeof t=="object"&&qo in t?t[qo]:t}function Av(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(a,r){let d=i.call(this,a,r);if(d===-1){for(let l=r!=null?r:0;l<this.length;l+=1)if(tc(this[l])===a){ec("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,r){let d=o.call(this,a,r!=null?r:this.length-1);if(d===-1){for(let l=0;l<=(r!=null?r:this.length-1);l+=1)if(tc(this[l])===a){ec("array.lastIndexOf(...)");break}}return d},t.includes=function(a,r){let d=n.call(this,a,r);if(!d){for(let l=0;l<this.length;l+=1)if(tc(this[l])===a){ec("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Gs,Mv,xl,Lv,Vv;function ic(){if(Gs===void 0){Gs=window,Mv=document,xl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;Lv=Wn(e,"firstChild").get,Vv=Wn(e,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0,Le&&(t.__svelte_meta=null,Av())}}function ln(t=""){return document.createTextNode(t)}function fi(t){return Lv.call(t)}function Ao(t){return Vv.call(t)}function h(t,e){if(!Ye)return fi(t);var i=fi(ft);if(i===null)i=ft.appendChild(ln());else if(e&&i.nodeType!==3){var o=ln();return i==null||i.before(o),pi(o),o}return pi(i),i}function he(t,e){var n,a;if(!Ye){var i=fi(t);return i.nodeType===8&&i.data===""?Ao(i):i}if(e&&((n=ft)==null?void 0:n.nodeType)!==3){var o=ln();return(a=ft)==null||a.before(o),pi(o),o}return ft}function A(t,e=1,i=!1){let o=Ye?ft:t;for(var n;e--;)n=o,o=Ao(o);if(!Ye)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var r=ln();return o===null?n==null||n.after(r):o.before(r),pi(r),r}return pi(o),o}function wl(t){t.textContent=""}var Rv=new WeakSet,oc=!1,Tl=!1,Sl=null,Ys=!1,Ws=!1;function Uu(t){Ws=t}var Cl=[],rc=[],Dt=null,Kn=!1;function ho(t){Dt=t}var It=null;function to(t){It=t}var Sr=null;function wv(t){Sr=t}var dn=null,Gn=0,qn=null;function Sv(t){qn=t}var Hv=1,sc=0,as=!1,$l=null;function yl(){return++Hv}function Ts(t){var b,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,a,r=(e&512)!==0,d=o&&It!==null&&!as,l=i.length;if(r||d){var p=t,f=p.parent;for(n=0;n<l;n++)a=i[n],(r||!((b=a==null?void 0:a.reactions)!=null&&b.includes(p)))&&((u=a.reactions)!=null?u:a.reactions=[]).push(p);r&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<l;n++)if(a=i[n],Ts(a)&&Nu(a),a.wv>t.wv)return!0}(!o||It!==null&&!as)&&an(t,1024)}return!1}function Bv(t,e){for(var i=e;i!==null;){if((i.f&128)!==0)try{i.fn(t);return}catch(o){i.f^=128}i=i.parent}throw oc=!1,t}function Nv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Ra(t,e,i,o){var f,b;if(oc){if(i===null&&(oc=!1),Nv(e))throw t;return}if(i!==null&&(oc=!0),!Le||o===null||!(t instanceof Error)||Rv.has(t)){Bv(t,e);return}Rv.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let r=o;for(;r!==null;){if(Le){var d=(b=r.function)==null?void 0:b[ui];if(d){let u=d.split("/").pop();n.push(u)}}r=r.p}let l=xl?" ":" ";eo(t,"message",{value:t.message+`
40
40
  ${n.map(u=>`
41
41
  ${l}in ${u}`).join("")}
42
- `}),ji(t,"component_stack",{value:n});let p=t.stack;if(p){let u=p.split(`
43
- `),_=[];for(let w=0;w<u.length;w++){let b=u[w];b.includes("svelte/src/internal")||_.push(b)}ji(t,"stack",{value:_.join(`
44
- `)})}if(Mv(t,e),Lv(e))throw t}function Nv(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var a=o[n];(a.f&2)!==0?Nv(a,e,!1):e===a&&(i?Jo(a,2048):(a.f&1024)!==0&&Jo(a,4096),ka(a))}}function Yd(t){var _,w;var e=tn,i=Nn,o=Vn,n=Ft,a=Yr,s=vr,d=Pt,l=Rn,p=t.f;tn=null,Nn=0,Vn=null,Yr=(p&256)!==0&&(Rn||!Os||Ft===null),Ft=(p&96)===0?t:null,vr=null,yl(t.ctx),Rn=!1,ic++;try{var f=(0,t.fn)(),y=t.deps;if(tn!==null){var u;if($l(t,Nn),y!==null&&Nn>0)for(y.length=Nn+tn.length,u=0;u<tn.length;u++)y[Nn+u]=tn[u];else t.deps=y=tn;if(!Yr)for(u=Nn;u<y.length;u++)((w=(_=y[u]).reactions)!=null?w:_.reactions=[]).push(t)}else y!==null&&Nn<y.length&&($l(t,Nn),y.length=Nn);if(Lr()&&Vn!==null&&!Rn&&y!==null&&(t.f&6146)===0)for(u=0;u<Vn.length;u++)Nv(Vn[u],t);return n!==null&&(ic++,Vn!==null&&(o===null?o=Vn:o.push(...Vn))),f}finally{tn=e,Nn=i,Vn=o,Ft=n,Yr=a,vr=s,yl(d),Rn=l}}function z1(t,e){let i=e.reactions;if(i!==null){var o=Zm.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&&(tn===null||!tn.includes(e))&&(Jo(e,4096),(e.f&768)===0&&(e.f^=512),Gd(e),$l(e,0))}function $l(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)z1(t,i[o])}function Ia(t){var e=t.f;if((e&16384)===0){Jo(t,1024);var i=kt,o=Pt,n=Os;if(kt=t,Os=!0,ke){var a=on;xl(t.component_function)}try{(e&16)!==0?Dv(t):Ou(t),Du(t);var s=Yd(t);t.teardown=typeof s=="function"?s:null,t.wv=Bv;var d=t.deps;if(ke&&Mr&&(t.f&2048)!==0&&d!==null)for(let p=0;p<d.length;p++){var l=d[p];l.trace_need_increase&&(l.wv=ml(),l.trace_need_increase=void 0,l.trace_v=void 0)}ke&&tc.push(t)}catch(p){Aa(p,t,i,o||t.ctx)}finally{Os=n,kt=i,ke&&xl(a)}}}function Vv(){console.error("Last ten effects were: ",tc.slice(-10).map(t=>t.fn)),tc=[]}function W1(){try{sv()}catch(t){if(ke&&ji(t,"stack",{value:""}),hl!==null)if(ke)try{Aa(t,hl,null,null)}catch(e){throw Vv(),e}else Aa(t,hl,null,null);else throw ke&&Vv(),t}}function Ru(){var t=Os;try{var e=0;for(Os=!0;_l.length>0;){e++>1e3&&W1();var i=_l,o=i.length;_l=[];for(var n=0;n<o;n++){var a=K1(i[n]);q1(a)}}}finally{bl=!1,Os=t,hl=null,ke&&(tc=[]),Ca.clear()}}function q1(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if((o.f&24576)===0)try{ps(o)&&(Ia(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Hu(o):o.fn=null))}catch(n){Aa(n,o,null,o.ctx)}}}function ka(t){bl||(bl=!0,queueMicrotask(Ru));for(var e=hl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}_l.push(e)}function K1(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,a=n&&(o&1024)!==0;if(!a&&(o&8192)===0){if((o&4)!==0)e.push(i);else if(n)i.f^=1024;else{var s=Ft;try{Ft=i,ps(i)&&Ia(i)}catch(p){Aa(p,i,null,i.ctx)}finally{Ft=s}}var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function Ma(t){var e;for(t&&(bl=!0,Ru(),e=t()),Cu();_l.length>0;)bl=!0,Ru(),Cu();return e}async function vo(){await Promise.resolve(),Ma()}function r(t){var e=t.f,i=(e&2)!==0;if(fl!==null&&fl.add(t),Ft!==null&&!Rn){vr!==null&&vr.includes(t)&&mv();var o=Ft.deps;t.rv<ic&&(t.rv=ic,tn===null&&o!==null&&o[Nn]===t?Nn++:tn===null?tn=[t]:(!Yr||!tn.includes(t))&&tn.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,a=n.parent;a!==null&&(a.f&256)===0&&(n.f^=256)}if(i&&(n=t,ps(n)&&Mu(n)),ke&&Mr&&pl!==null&&Ft!==null&&pl.reaction===Ft){if(t.debug)t.debug();else if(t.created){var s=pl.entries.get(t);s===void 0&&(s={read:[]},pl.entries.set(t,s)),s.read.push(Kr("TracedAt"))}}return Vs&&Ca.has(t)?Ca.get(t):t.v}function wt(t){var e=Rn;try{return Rn=!0,t()}finally{Rn=e}}var Q1=-7169;function Jo(t,e){t.f=t.f&Q1|e}function nc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Bo in t)oc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Bo in i&&oc(i)}}}function oc(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{oc(t[o],e)}catch(n){}let i=qr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Kd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function Uu(t){kt===null&&Ft===null&&rv(t),Ft!==null&&(Ft.f&256)!==0&&kt===null&&nv(),Vs&&ov(t)}function G1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Hs(t,e,i,o=!0){var l;var n=kt;if(ke)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Pt,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(ke&&(a.component_function=on),i)try{Ia(a),a.f|=32768}catch(p){throw Xi(a),p}else e!==null&&ka(a);var s=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!s&&o&&(n!==null&&G1(a,n),Ft!==null&&(Ft.f&2)!==0)){var d=Ft;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function nn(t){let e=Hs(8,null,!1);return Jo(e,1024),e.teardown=t,e}function Fe(t){var n;Uu("$effect");var e=kt!==null&&(kt.f&32)!==0&&Pt!==null&&!Pt.m;if(ke&&ji(t,"name",{value:"$effect"}),e){var i=Pt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:kt,reaction:Ft})}else{var o=pn(t);return o}}function La(t){return Uu("$effect.pre"),ke&&ji(t,"name",{value:"$effect.pre"}),go(t)}function sc(t){let e=Hs(64,t,!0);return()=>{Xi(e)}}function Hv(t){let e=Hs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?fn(e,()=>{Xi(e),o(void 0)}):(Xi(e),o(void 0))})}function pn(t){return Hs(4,t,!1)}function go(t){return Hs(8,t,!0)}function E(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return ke&&ji(n,"name",{value:"{expression}"}),eo(n)}function eo(t,e=0){return Hs(24|e,t,!0)}function Fi(t,e=!0){return Hs(40,t,!0,e)}function Du(t){var e=t.teardown;if(e!==null){let i=Vs,o=Ft;Nu(!0),mo(null);try{e.call(null)}finally{Nu(i),mo(o)}}}function Ou(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:Xi(i,e),i=o}}function Dv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Xi(e),e=i}}function Xi(t,e=!0){var i=!1;if((e||(t.f&524288)!==0)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var a=o===n?null:To(o);o.remove(),o=a}i=!0}Ou(t,e&&!i),$l(t,0),Jo(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();Du(t);var d=t.parent;d!==null&&d.first!==null&&Hu(t),ke&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Hu(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 fn(t,e){var i=[];ac(t,i,!0),zu(i,()=>{Xi(t),e&&e()})}function zu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function ac(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let s of t.transitions)(s.is_global||i)&&e.push(s);for(var o=t.first;o!==null;){var n=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;ac(o,e,a?i:!1),o=n}}}function jr(t){Fv(t,!0)}function Fv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),ps(t)&&(Jo(t,2048),ka(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Fv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var Y1={},j1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,Z1=/@(.+):(\d+):(\d+)$/;function X1(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
- `)){let n=(i=j1.exec(o))!=null?i:Z1.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Uv(){var e;let t=(e=X1())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=Y1[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var lc=Symbol("ADD_OWNER");function Wu(t,e,i=!1,o=!1){if(t&&!i){let n=on,a=t[Wr];if(a&&!qu(a,n)){let s=Ku(a);e&&e[mi]!==n[mi]&&!o&&Sv(n[mi],e[mi],s[mi])}}dc(t,e,new Set)}function Vu(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function dc(t,e,i){var a;let o=t==null?void 0:t[Wr];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),lc in t&&t[lc])go(()=>{t[lc](e)});else{var n=qr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ii;go(()=>{let l=t[s];d!==l&&(d=l,dc(l,e,i))})}else dc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)dc(t[s],e,i)}}}function qu(t,e){return t.owners===null?!0:t.owners.has(e)||mi in e&&[...t.owners].some(i=>i[mi]===e[mi])||t.parent!==null&&qu(t.parent,e)}function Ku(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Ku(t.parent)}var J1=!1;function Tv(t){if(J1)return;let e=Uv();if(e&&!qu(t,e)){let i=Ku(t);i[mi]!==e[mi]?Lu(e[mi],i[mi]):Lu()}}function Va(t){if(ke){let e=new Error(`lifecycle_outside_component
42
+ `}),eo(t,"component_stack",{value:n});let p=t.stack;if(p){let u=p.split(`
43
+ `),_=[];for(let w=0;w<u.length;w++){let y=u[w];y.includes("svelte/src/internal")||_.push(y)}eo(t,"stack",{value:_.join(`
44
+ `)})}if(Bv(t,e),Nv(e))throw t}function Fv(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var a=o[n];(a.f&2)!==0?Fv(a,e,!1):e===a&&(i?an(a,2048):(a.f&1024)!==0&&an(a,4096),Ma(a))}}function Jd(t){var _,w;var e=dn,i=Gn,o=qn,n=Dt,a=as,r=Sr,d=Pt,l=Kn,p=t.f;dn=null,Gn=0,qn=null,as=(p&256)!==0&&(Kn||!Ys||Dt===null),Dt=(p&96)===0?t:null,Sr=null,El(t.ctx),Kn=!1,sc++;try{var f=(0,t.fn)(),b=t.deps;if(dn!==null){var u;if(Il(t,Gn),b!==null&&Gn>0)for(b.length=Gn+dn.length,u=0;u<dn.length;u++)b[Gn+u]=dn[u];else t.deps=b=dn;if(!as)for(u=Gn;u<b.length;u++)((w=(_=b[u]).reactions)!=null?w:_.reactions=[]).push(t)}else b!==null&&Gn<b.length&&(Il(t,Gn),b.length=Gn);if(qr()&&qn!==null&&!Kn&&b!==null&&(t.f&6146)===0)for(u=0;u<qn.length;u++)Fv(qn[u],t);return n!==null&&(sc++,qn!==null&&(o===null?o=qn:o.push(...qn))),f}finally{dn=e,Gn=i,qn=o,Dt=n,as=a,Sr=r,El(d),Kn=l}}function j1(t,e){let i=e.reactions;if(i!==null){var o=tv.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&&(dn===null||!dn.includes(e))&&(an(e,4096),(e.f&768)===0&&(e.f^=512),Xd(e),Il(e,0))}function Il(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)j1(t,i[o])}function Aa(t){var e=t.f;if((e&16384)===0){an(t,1024);var i=It,o=Pt,n=Ys;if(It=t,Ys=!0,Le){var a=cn;kl(t.component_function)}try{(e&16)!==0?Uv(t):Wu(t),zu(t);var r=Jd(t);t.teardown=typeof r=="function"?r:null,t.wv=Hv;var d=t.deps;if(Le&&Wr&&(t.f&2048)!==0&&d!==null)for(let p=0;p<d.length;p++){var l=d[p];l.trace_need_increase&&(l.wv=yl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Le&&rc.push(t)}catch(p){Ra(p,t,i,o||t.ctx)}finally{Ys=n,It=i,Le&&kl(a)}}}function Dv(){console.error("Last ten effects were: ",rc.slice(-10).map(t=>t.fn)),rc=[]}function Z1(){try{cv()}catch(t){if(Le&&eo(t,"stack",{value:""}),Sl!==null)if(Le)try{Ra(t,Sl,null,null)}catch(e){throw Dv(),e}else Ra(t,Sl,null,null);else throw Le&&Dv(),t}}function Hu(){var t=Ys;try{var e=0;for(Ys=!0;Cl.length>0;){e++>1e3&&Z1();var i=Cl,o=i.length;Cl=[];for(var n=0;n<o;n++){var a=J1(i[n]);X1(a)}}}finally{Tl=!1,Ys=t,Sl=null,Le&&(rc=[]),ka.clear()}}function X1(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if((o.f&24576)===0)try{Ts(o)&&(Aa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?qu(o):o.fn=null))}catch(n){Ra(n,o,null,o.ctx)}}}function Ma(t){Tl||(Tl=!0,queueMicrotask(Hu));for(var e=Sl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Cl.push(e)}function J1(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,a=n&&(o&1024)!==0;if(!a&&(o&8192)===0){if((o&4)!==0)e.push(i);else if(n)i.f^=1024;else{var r=Dt;try{Dt=i,Ts(i)&&Aa(i)}catch(p){Ra(p,i,null,i.ctx)}finally{Dt=r}}var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function Ba(t){var e;for(t&&(Tl=!0,Hu(),e=t()),Pu();Cl.length>0;)Tl=!0,Hu(),Pu();return e}async function _o(){await Promise.resolve(),Ba()}function s(t){var e=t.f,i=(e&2)!==0;if($l!==null&&$l.add(t),Dt!==null&&!Kn){Sr!==null&&Sr.includes(t)&&_v();var o=Dt.deps;t.rv<sc&&(t.rv=sc,dn===null&&o!==null&&o[Gn]===t?Gn++:dn===null?dn=[t]:(!as||!dn.includes(t))&&dn.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,a=n.parent;a!==null&&(a.f&256)===0&&(n.f^=256)}if(i&&(n=t,Ts(n)&&Nu(n)),Le&&Wr&&bl!==null&&Dt!==null&&bl.reaction===Dt){if(t.debug)t.debug();else if(t.created){var r=bl.entries.get(t);r===void 0&&(r={read:[]},bl.entries.set(t,r)),r.read.push(ns("TracedAt"))}}return Ws&&ka.has(t)?ka.get(t):t.v}function wt(t){var e=Kn;try{return Kn=!0,t()}finally{Kn=e}}var e0=-7169;function an(t,e){t.f=t.f&e0|e}function lc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(qo in t)ac(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&qo in i&&ac(i)}}}function ac(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{ac(t[o],e)}catch(n){}let i=os(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=jd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(r){}}}}}function Qu(t){It===null&&Dt===null&&dv(t),Dt!==null&&(Dt.f&256)!==0&&It===null&&lv(),Ws&&av(t)}function t0(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 l;var n=It;if(Le)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Pt,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(Le&&(a.component_function=cn),i)try{Aa(a),a.f|=32768}catch(p){throw io(a),p}else e!==null&&Ma(a);var r=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!r&&o&&(n!==null&&t0(a,n),Dt!==null&&(Dt.f&2)!==0)){var d=Dt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function un(t){let e=js(8,null,!1);return an(e,1024),e.teardown=t,e}function Ue(t){var n;Qu("$effect");var e=It!==null&&(It.f&32)!==0&&Pt!==null&&!Pt.m;if(Le&&eo(t,"name",{value:"$effect"}),e){var i=Pt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:It,reaction:Dt})}else{var o=yn(t);return o}}function Na(t){return Qu("$effect.pre"),Le&&eo(t,"name",{value:"$effect.pre"}),bo(t)}function cc(t){let e=js(64,t,!0);return()=>{io(e)}}function Wv(t){let e=js(64,t,!0);return(i={})=>new Promise(o=>{i.outro?xn(e,()=>{io(e),o(void 0)}):(io(e),o(void 0))})}function yn(t){return js(4,t,!1)}function bo(t){return js(8,t,!0)}function k(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(s));return Le&&eo(n,"name",{value:"{expression}"}),no(n)}function no(t,e=0){return js(24|e,t,!0)}function Ui(t,e=!0){return js(40,t,!0,e)}function zu(t){var e=t.teardown;if(e!==null){let i=Ws,o=Dt;Uu(!0),ho(null);try{e.call(null)}finally{Uu(i),ho(o)}}}function Wu(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:io(i,e),i=o}}function Uv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&io(e),e=i}}function io(t,e=!0){var i=!1;if((e||(t.f&524288)!==0)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var a=o===n?null:Ao(o);o.remove(),o=a}i=!0}Wu(t,e&&!i),Il(t,0),an(t,16384);var r=t.transitions;if(r!==null)for(let l of r)l.stop();zu(t);var d=t.parent;d!==null&&d.first!==null&&qu(t),Le&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function qu(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 xn(t,e){var i=[];uc(t,i,!0),Gu(i,()=>{io(t),e&&e()})}function Gu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function uc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let r of t.transitions)(r.is_global||i)&&e.push(r);for(var o=t.first;o!==null;){var n=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;uc(o,e,a?i:!1),o=n}}}function ls(t){qv(t,!0)}function qv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),Ts(t)&&(an(t,2048),Ma(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;qv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var i0={},o0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,n0=/@(.+):(\d+):(\d+)$/;function r0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
+ `)){let n=(i=o0.exec(o))!=null?i:n0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Kv(){var e;let t=(e=r0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=i0[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var pc=Symbol("ADD_OWNER");function Yu(t,e,i=!1,o=!1){if(t&&!i){let n=cn,a=t[is];if(a&&!ju(a,n)){let r=Zu(a);e&&e[ui]!==n[ui]&&!o&&Ev(n[ui],e[ui],r[ui])}}fc(t,e,new Set)}function Ou(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function fc(t,e,i){var a;let o=t==null?void 0:t[is];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),pc in t&&t[pc])bo(()=>{t[pc](e)});else{var n=os(t);if(n===Object.prototype)for(let r in t)if((a=Object.getOwnPropertyDescriptor(t,r))!=null&&a.get){let d=ki;bo(()=>{let l=t[r];d!==l&&(d=l,fc(l,e,i))})}else fc(t[r],e,i);else if(n===Array.prototype)for(let r=0;r<t.length;r+=1)fc(t[r],e,i)}}}function ju(t,e){return t.owners===null?!0:t.owners.has(e)||ui in e&&[...t.owners].some(i=>i[ui]===e[ui])||t.parent!==null&&ju(t.parent,e)}function Zu(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Zu(t.parent)}var s0=!1;function Pv(t){if(s0)return;let e=Kv();if(e&&!ju(t,e)){let i=Zu(t);i[ui]!==e[ui]?Du(e[ui],i[ui]):Du()}}function Da(t){if(Le){let e=new Error(`lifecycle_outside_component
46
46
  \`${t}(...)\` can only be used during component initialisation
47
- 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 Pt=null;function yl(t){Pt=t}var on=null;function xl(t){on=t}function Ra(t){return Qu("getContext").get(t)}function Ba(t,e){let i=Qu("setContext");return ke&&wt(()=>Wu(e,null,!0)),i.set(t,e),e}function Sl(){return Qu("getAllContexts")}function F(t,e=!1,i){var o=Pt={p:Pt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Ar&&!e&&(Pt.l={s:null,u:null,r1:[],r2:Hi(!1)}),nn(()=>{o.d=!0}),ke&&(Pt.function=i,on=i)}function U(t){var s,d;let e=Pt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=kt,o=Ft;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];Zi(a.effect),mo(a.reaction),pn(a.fn)}}finally{Zi(i),mo(o)}}Pt=e.p,ke&&(on=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Lr(){return!Ar||Pt!==null&&Pt.l===null}function Qu(t){var e;return Pt===null&&Va(t),(e=Pt.c)!=null?e:Pt.c=new Map(t0(Pt)||void 0)}function t0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var i0=/\r/g;function zv(t){t=t.replace(i0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Wv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var o0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function qv(t){return o0.includes(t)}var n0=["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 Kv(t){var e;return t=t.toLowerCase(),(e=r0[t])!=null?e:t}var $6=[...n0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var s0=["touchstart","touchmove"];function Qv(t){return s0.includes(t)}var a0=["textarea","script","style","title"];function Gv(t){return a0.includes(t)}function Gu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Yv=new Map;function jv(t,e){var i=Yv.get(t);i||(i=new Set,Yv.set(t,i)),i.add(e)}function Yu(t,e){if(e){let i=document.body;t.autofocus=!0,jo(()=>{document.activeElement===i&&t.focus()})}}function Cl(t){var e=Ft,i=kt;mo(null),Zi(null);try{return t()}finally{mo(e),Zi(i)}}var ju=new Set,cc=new Set;function Fs(t){if(!Ge)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Zu(t,e,i,o={}){function n(a){if(o.capture||Na.call(e,a),!a.cancelBubble)return Cl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?jo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Tt(t,e,i,o,n){var a={capture:o,passive:n},s=Zu(t,e,i,a);(e===document.body||e===window||e===document)&&nn(()=>{e.removeEventListener(t,s,a)})}function st(t){for(var e=0;e<t.length;e++)ju.add(t[e]);for(var i of cc)i(t)}function Na(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;l<=p&&(s=l)}if(a=n[s]||t.target,a!==e){ji(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Ft,y=kt;mo(null),Zi(null);try{for(var u,_=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var b=a["__"+o];if(b!=null&&(!a.disabled||t.target===a))if(mr(b)){var[C,...T]=b;C.apply(a,[t,...T])}else b.call(a,t)}catch(M){u?_.push(M):u=M}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let M of _)queueMicrotask(()=>{throw M});throw u}}finally{t.__root=e,delete t.currentTarget,mo(f),Zi(y)}}}var d0;function Zv(){d0=void 0}function Da(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ho(t,e){var i=kt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ge)return ho(_t,null),_t;n===void 0&&(n=Da(a?t:"<!>"+t),i||(n=gi(n)));var s=o||vl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=gi(s),l=s.lastChild;ho(d,l)}else ho(s,s);return s}}function ye(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ge)return ho(_t,null),_t;if(!s){var d=Da(a),l=gi(d);if(n)for(s=document.createDocumentFragment();gi(l);)s.appendChild(gi(l));else s=gi(l)}var p=s.cloneNode(!0);if(n){var f=gi(p),y=p.lastChild;ho(f,y)}else ho(p,p);return p}}function Vr(t=""){if(!Ge){var e=en(t+"");return ho(e,e),e}var i=_t;return i.nodeType!==3&&(i.before(i=en()),vi(i)),ho(i,i),i}function Oe(){if(Ge)return ho(_t,null),_t;var t=document.createDocumentFragment(),e=document.createComment(""),i=en();return t.append(e,i),ho(e,i),t}function $(t,e){if(Ge){kt.nodes_end=_t,Li();return}t!==null&&t.before(e)}var Tl=!0;function uc(t){Tl=t}function me(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 Zr(t,e){return Jv(t,e)}function Ju(t,e){var s;Xd(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ge,n=_t;try{for(var a=gi(i);a&&(a.nodeType!==8||a.data!==ds);)a=To(a);if(!a)throw zr;Ji(!0),vi(a),Li();let d=Jv(t,{...e,anchor:a});if(_t===null||_t.nodeType!==8||_t.data!==As)throw Ns(),zr;return Ji(!1),d}catch(d){if(d===zr)return e.recover===!1&&av(),Xd(),gl(i),Ji(!1),Zr(t,e);throw d}finally{Ji(o),vi(n),Zv()}}var Oa=new Map;function Jv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Xd();var d=new Set,l=y=>{for(var u=0;u<y.length;u++){var _=y[u];if(!d.has(_)){d.add(_);var w=Qv(_);e.addEventListener(_,Na,{passive:w});var b=Oa.get(_);b===void 0?(document.addEventListener(_,Na,{passive:w}),Oa.set(_,1)):Oa.set(_,b+1)}}};l(cl(ju)),cc.add(l);var p=void 0,f=Hv(()=>{var y=i!=null?i:e.appendChild(en());return Fi(()=>{if(a){F({});var u=Pt;u.c=a}n&&(o.$$events=n),Ge&&ho(y,null),Tl=s,p=t(y,o)||{},Tl=!0,Ge&&(kt.nodes_end=_t),a&&U()}),()=>{var w;for(var u of d){e.removeEventListener(u,Na);var _=Oa.get(u);--_===0?(document.removeEventListener(u,Na),Oa.delete(u)):Oa.set(u,_)}cc.delete(l),y!==i&&((w=y.parentNode)==null||w.removeChild(y))}});return Xu.set(p,f),p}var Xu=new WeakMap;function Us(t,e){let i=Xu.get(t);return i?(Xu.delete(t),i(e)):(ke&&wv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Ge&&i===0&&Li();var n=t,a=null,s=null,d=Ii,l=i>0?65536:0,p=!1;let f=(u,_=!0)=>{p=!0,y(_,u)},y=(u,_)=>{if(d===(d=u))return;let w=!1;if(Ge&&o!==-1){if(i===0){let C=n.data;C===ds?o=0:C===Ps?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let b=o>i;!!d===b&&(n=Ea(),vi(n),Ji(!1),w=!0,o=-1)}d?(a?jr(a):_&&(a=Fi(()=>_(n))),s&&fn(s,()=>{s=null})):(s?jr(s):_&&(s=Fi(()=>_(n,[i+1,o]))),a&&fn(a,()=>{a=null})),w&&Ji(!0)};eo(()=>{p=!1,e(f),p||y(null,null)},l),Ge&&(n=_t)}function zs(t,e,i){Ge&&Li();var o=t,n=Ii,a,s=Lr()?tv:wa;eo(()=>{s(n,n=e())&&(a&&fn(a),a=Fi(()=>i(o)))}),Ge&&(o=_t)}var ms=null;function ip(t){ms=t}function Il(t,e){return e}function f0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)ac(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;gl(l),l.append(i),o.clear(),fs(t,e[0].prev,e[a-1].next)}zu(n,()=>{for(var p=0;p<a;p++){var f=e[p];d||(o.delete(f.k),fs(t,f.prev,f.next)),Xi(f.e,!d)}})}function $i(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var p=t;s=Ge?vi(gi(p)):p.appendChild(en())}Ge&&Li();var f=null,y=!1,u=hr(()=>{var _=i();return mr(_)?_:_==null?[]:cl(_)});eo(()=>{var _=r(u),w=_.length;if(y&&w===0)return;y=w===0;let b=!1;if(Ge){var C=s.data===Ps;C!==(w===0)&&(s=Ea(),vi(s),Ji(!1),b=!0)}if(Ge){for(var T=null,I,M=0;M<w;M++){if(_t.nodeType===8&&_t.data===As){s=_t,b=!0,Ji(!1);break}var P=_[M],k=o(P,M);I=ig(_t,d,T,null,P,k,M,n,e,i),d.items.set(k,I),T=I}w>0&&vi(Ea())}Ge||m0(_,d,s,n,e,o,i),a!==null&&(w===0?f?jr(f):f=Fi(()=>a(s)):f!==null&&fn(f,()=>{f=null})),b&&Ji(!0),r(u)}),Ge&&(s=_t)}function m0(t,e,i,o,n,a,s){var ce,Ee,Me,ge;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,f=e.items,y=e.first,u=y,_,w=null,b,C=[],T=[],I,M,P,k;if(d)for(k=0;k<p;k+=1)I=t[k],M=a(I,k),P=f.get(M),P!==void 0&&((ce=P.a)==null||ce.measure(),(b!=null?b:b=new Set).add(P));for(k=0;k<p;k+=1){if(I=t[k],M=a(I,k),P=f.get(M),P===void 0){var V=u?u.e.nodes_start:i;w=ig(V,e,w,w===null?e.first:w.next,I,M,k,o,n,s),f.set(M,w),C=[],T=[],u=w.next;continue}if(l&&v0(P,I,k,n),(P.e.f&8192)!==0&&(jr(P.e),d&&((Ee=P.a)==null||Ee.unfix(),(b!=null?b:b=new Set).delete(P))),P!==u){if(_!==void 0&&_.has(P)){if(C.length<T.length){var W=T[0],j;w=W.prev;var H=C[0],Q=C[C.length-1];for(j=0;j<C.length;j+=1)eg(C[j],W,i);for(j=0;j<T.length;j+=1)_.delete(T[j]);fs(e,H.prev,Q.next),fs(e,w,H),fs(e,Q,W),u=W,w=Q,k-=1,C=[],T=[]}else _.delete(P),eg(P,u,i),fs(e,P.prev,P.next),fs(e,P,w===null?e.first:w.next),fs(e,w,P),w=P;continue}for(C=[],T=[];u!==null&&u.k!==M;)(u.e.f&8192)===0&&(_!=null?_:_=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;P=u}C.push(P),w=P,u=P.next}if(u!==null||_!==void 0){for(var ie=_===void 0?[]:cl(_);u!==null;)(u.e.f&8192)===0&&ie.push(u),u=u.next;var Z=ie.length;if(Z>0){var se=(n&4)!==0&&p===0?i:null;if(d){for(k=0;k<Z;k+=1)(Me=ie[k].a)==null||Me.measure();for(k=0;k<Z;k+=1)(ge=ie[k].a)==null||ge.fix()}f0(e,ie,se,f)}}d&&jo(()=>{var ae;if(b!==void 0)for(P of b)(ae=P.a)==null||ae.apply()}),kt.first=e.first&&e.first.e,kt.last=w&&w.e}function v0(t,e,i,o){(o&1)!==0&&Ta(t.v,e),(o&2)!==0?Ta(t.i,i):t.i=i}function ig(t,e,i,o,n,a,s,d,l,p){var f=ms,y=(l&1)!==0,u=(l&16)===0,_=y?u?Gr(n):Hi(n):n,w=(l&2)===0?s:Hi(s);ke&&y&&(_.debug=()=>{var C=typeof w=="number"?s:w.v;p()[C]});var b={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};ms=b;try{return b.e=Fi(()=>d(t,_,w,p),Ge),b.e.prev=i&&i.e,b.e.next=o&&o.e,i===null?e.first=b:(i.next=b,i.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{ms=f}}function eg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=To(a);n.before(a),a=s}}function fs(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 a,s;if(!e||e===zv(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=on)!=null&&s[mi]&&(o=`in ${on[mi]}`),xv(Gu(o))}function kl(t,e,i,o,n){var a=t,s="",d;eo(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ge&&Li();return}d!==void 0&&(Xi(d),d=void 0),s!==""&&(d=Fi(()=>{if(Ge){for(var p=_t.data,f=Li(),y=f;f!==null&&(f.nodeType!==8||f.data!=="");)y=f,f=To(f);if(f===null)throw Ns(),zr;ke&&!n&&g0(f.parentNode,p,s),ho(_t,y),a=vi(f);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var _=Da(u);if((i||o)&&(_=gi(_)),ho(gi(_),_.lastChild),i||o)for(;gi(_);)a.before(gi(_));else a.before(_)}))})}function ve(t,e,...i){var o=t,n=te,a;eo(()=>{n!==(n=e())&&(a&&(Xi(a),a=null),ke&&n==null&&lv(),a=Fi(()=>n(o,...i)))},65536),Ge&&(o=_t)}function yi(t,e,i){Ge&&Li();var o=t,n,a;eo(()=>{n!==(n=e())&&(a&&(fn(a),a=null),n&&(a=Fi(()=>i(o,n))))},65536),Ge&&(o=_t)}function Ws(t,e,i,o,n,a){var w;let s=Ge;Ge&&Li();var d=ke&&a&&((w=Pt)==null?void 0:w.function[mi]),l,p,f=null;Ge&&_t.nodeType===1&&(f=_t,Li());var y=Ge?_t:t,u,_=ms;eo(()=>{let b=e()||null;var C=n?n():i||b==="svg"?yu:null;if(b!==l){var T=ms;ip(_),u&&(b===null?fn(u,()=>{u=null,p=null}):b===p?jr(u):(Xi(u),uc(!1))),b&&b!==p&&(u=Fi(()=>{if(f=Ge?f:C?document.createElementNS(C,b):document.createElement(b),ke&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),ho(f,f),o){Ge&&Gv(b)&&f.append(document.createComment(""));var I=Ge?gi(f):f.appendChild(en());Ge&&(I===null?Ji(!1):vi(I)),o(f,I)}kt.nodes_end=f,y.before(f)})),l=b,l&&(p=l),uc(!0),ip(T)}},65536),s&&(Ji(!0),vi(y))}var np;function og(t){return np=t.target,new op(t)}var Xr,ir,op=class{constructor(e){ls(this,Xr);ls(this,ir);var a,s;var i=new Map,o=(d,l)=>{var p=Gr(l);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var p;return r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l)))},has(d,l){var p;return l===dl?!0:(r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var f;return D((f=i.get(l))!=null?f:o(l,p),p),Reflect.set(d,l,p)}});xa(this,ir,(e.hydrate?Ju:Zr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Ma(),xa(this,Xr,n.$$events);for(let d of Object.keys(Ti(this,ir)))d==="$set"||d==="$destroy"||d==="$on"||ji(this,d,{get(){return Ti(this,ir)[d]},set(l){Ti(this,ir)[d]=l},enumerable:!0});Ti(this,ir).$set=d=>{Object.assign(n,d)},Ti(this,ir).$destroy=()=>{Us(Ti(this,ir))}}$set(e){Ti(this,ir).$set(e)}$on(e,i){Ti(this,Xr)[e]=Ti(this,Xr)[e]||[];let o=(...n)=>i.call(this,...n);return Ti(this,Xr)[e].push(o),()=>{Ti(this,Xr)[e]=Ti(this,Xr)[e].filter(n=>n!==o)}}$destroy(){Ti(this,ir).$destroy()}};Xr=new WeakMap,ir=new WeakMap;function q(t,e){jo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=np)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ke&&jv(e.hash,d)}})}function ng(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=ng(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function rg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=ng(t))&&(o&&(o+=" "),o+=e);return o}function El(t){return typeof t=="object"?rg(t):t!=null?t:""}var sg=[...`
48
- \r\f\xA0\v\uFEFF`];function lg(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 a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||sg.includes(o[s-1]))&&(d===o.length||sg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function ag(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function rp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function dg(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 a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(rp)),n&&l.push(...Object.keys(n).map(rp));var p=0,f=-1;let b=t.length;for(var y=0;y<b;y++){var u=t[y];if(d?u==="/"&&t[y-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[y+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&f===-1)f=y;else if(u===";"||y===b-1){if(f!==-1){var _=rp(t.substring(p,f).trim());if(!l.includes(_)){u!==";"&&y++;var w=t.substring(p,y).trim();i+=" "+w+";"}}p=y+1,f=-1}}}}return o&&(i+=ag(o)),n&&(i+=ag(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,a){var s=t.__className;if(Ge||s!==i){var d=lg(i,o,a);(!Ge||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var p=!!a[l];(n==null||p!==!!n[l])&&t.classList.toggle(l,p)}return a}function sp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function rt(t,e,i,o){var n=t.__style;if(Ge||n!==e){var a=dg(e,o);(!Ge||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(sp(t,i==null?void 0:i[0],o[0]),sp(t,i==null?void 0:i[1],o[1],"important")):sp(t,i,o));return o}var Ha=Symbol("class"),Fa=Symbol("style"),pg=Symbol("is custom element"),fg=Symbol("is html");function mg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ne(t,e,i,o){var n=vg(t);if(Ge&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||w0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[jm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&gg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Te(t,e,i,o,n=!1){var P;var a=vg(t),s=a[pg],d=!a[fg];let l=Ge&&s;l&&Ji(!1);var p=e||{},f=t.tagName==="OPTION";for(var y in e)y in i||(i[y]=null);i.class?i.class=El(i.class):(o||i[Ha])&&(i.class=null),i[Fa]&&((P=i.style)!=null||(i.style=null));var u=gg(t);for(let k in i){let V=i[k];if(f&&k==="value"&&V==null){t.value=t.__value="",p[k]=V;continue}if(k==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,_,V,o,e==null?void 0:e[Ha],i[Ha]),p[k]=V,p[Ha]=i[Ha];continue}if(k==="style"){rt(t,V,e==null?void 0:e[Fa],i[Fa]),p[k]=V,p[Fa]=i[Fa];continue}var w=p[k];if(V!==w){p[k]=V;var b=k[0]+k[1];if(b!=="$$")if(b==="on"){let W={},j="$$"+k,H=k.slice(2);var C=qv(H);if(Wv(H)&&(H=H.slice(0,-7),W.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(H,p[j],W),p[j]=null}if(V!=null)if(C)t[`__${H}`]=V,st([H]);else{let Q=function(ie){p[k].call(this,ie)};var M=Q;p[j]=Zu(H,t,Q,W)}else C&&(t[`__${H}`]=void 0)}else if(k==="style")Ne(t,k,V);else if(k==="autofocus")Yu(t,!!V);else if(!s&&(k==="__value"||k==="value"&&V!=null))t.value=t.__value=V;else if(k==="selected"&&f)mg(t,V);else{var T=k;d||(T=Kv(T));var I=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!I)if(a[k]=null,T==="value"||T==="checked"){let W=t,j=e===void 0;if(T==="value"){let H=W.defaultValue;W.removeAttribute(T),W.defaultValue=H,W.value=W.__value=j?H:null}else{let H=W.defaultChecked;W.removeAttribute(T),W.defaultChecked=H,W.checked=j?H:!1}}else t.removeAttribute(k);else I||u.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&Ne(t,T,V,n)}}}return l&&Ji(!0),p}function vg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[pg]:t.nodeName.includes("-"),[fg]:t.namespaceURI===Km}}var cg=new Map;function gg(t){var e=cg.get(t.nodeName);if(e)return e;cg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Kd(o);for(var a in i)i[a].set&&e.push(a);o=qr(o)}return e}function w0(t,e,i){var o;ke&&(e==="srcset"&&S0(t,i)||ap((o=t.getAttribute(e))!=null?o:"",i)||yv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function ap(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ug(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function S0(t,e){var i=ug(t.srcset),o=ug(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(ap(i[s][0],n)||ap(n,i[s][0])))}var C0=qd?()=>performance.now():()=>Date.now(),br={tick:t=>(qd?requestAnimationFrame:te)(t),now:()=>C0(),tasks:new Set};function hg(){let t=br.now();br.tasks.forEach(e=>{e.c(t)||(br.tasks.delete(e),e.f())}),br.tasks.size!==0&&br.tick(hg)}function _g(t){let e;return br.tasks.size===0&&br.tick(hg),{promise:new Promise(i=>{br.tasks.add(e={c:t,f:i})}),abort(){br.tasks.delete(e)}}}function pc(t,e){Cl(()=>{t.dispatchEvent(new CustomEvent(e))})}function E0(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 bg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=E0(n.trim());e[s]=a.trim()}return e}var P0=t=>t;function dp(t,e,i,o){var M;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",p,f=e.inert,y=e.style.overflow,u,_;function w(){var V;var P=Ft,k=kt;mo(null),Zi(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{mo(P),Zi(k)}}var b={is_global:d,in(){var P;if(e.inert=f,!n){_==null||_.abort(),(P=_==null?void 0:_.reset)==null||P.call(_);return}a||u==null||u.abort(),pc(e,"introstart"),u=lp(e,w(),_,1,()=>{pc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=y})},out(P){if(!a){P==null||P(),p=void 0;return}e.inert=!0,pc(e,"outrostart"),_=lp(e,w(),u,0,()=>{pc(e,"outroend"),P==null||P()})},stop:()=>{u==null||u.abort(),_==null||_.abort()}},C=kt;if(((M=C.transitions)!=null?M:C.transitions=[]).push(b),n&&Tl){var T=d;if(!T){for(var I=C.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&pn(()=>{wt(()=>b.in())})}}function lp(t,e,i,o,n){var a=o===1;if(cs(e)){var s,d=!1;return jo(()=>{if(!d){var C=e({direction:a?"in":"out"});s=lp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:te,deactivate:te,reset:te,t:()=>o};let{delay:l=0,css:p,tick:f,easing:y=P0}=e;var u=[];if(a&&i===void 0&&(f&&f(0,1),p)){var _=bg(p(0,1));u.push(_,_)}var w=()=>1-o,b=t.animate(u,{duration:l});return b.onfinish=()=>{var H;var C=(H=i==null?void 0:i.t())!=null?H:1-o;i==null||i.abort();var T=o-C,I=e.duration*Math.abs(T),M=[];if(I>0){var P=!1;if(p)for(var k=Math.ceil(I/16.666666666666668),V=0;V<=k;V+=1){var W=C+T*y(V/k),j=bg(p(W,1-W));M.push(j),P||(P=j.overflow==="hidden")}P&&(t.style.overflow="hidden"),w=()=>{var Q=b.currentTime;return C+T*y(Q/I)},f&&_g(()=>{if(b.playState!=="running")return!1;var Q=w();return f(Q,1-Q),!0})}b=t.animate(M,{duration:I,fill:"forwards"}),b.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=te)},deactivate:()=>{n=te},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var vs,Ua,Pl,mc,$g,vc=class vc{constructor(e){ls(this,mc);ls(this,vs,new WeakMap);ls(this,Ua);ls(this,Pl);xa(this,Pl,e)}observe(e,i){var o=Ti(this,vs).get(e)||new Set;return o.add(i),Ti(this,vs).set(e,o),Wm(this,mc,$g).call(this).observe(e,Ti(this,Pl)),()=>{var n=Ti(this,vs).get(e);n.delete(i),n.size===0&&(Ti(this,vs).delete(e),Ti(this,Ua).unobserve(e))}}};vs=new WeakMap,Ua=new WeakMap,Pl=new WeakMap,mc=new WeakSet,$g=function(){var e;return(e=Ti(this,Ua))!=null?e:xa(this,Ua,new ResizeObserver(i=>{for(var o of i){vc.entries.set(o.target,o);for(var n of Ti(this,vs).get(o.target)||[])n(o)}}))},Mn(vc,"entries",new WeakMap);var cp=vc;var L0=new cp({box:"border-box"});function Rr(t,e,i){var o=L0.observe(t,()=>i(t[e]));pn(()=>(wt(()=>i(t[e])),o))}function yg(t,e){return t===e||(t==null?void 0:t[Bo])===e}function gt(t={},e,i,o){return pn(()=>{var n,a;return go(()=>{n=a,a=(o==null?void 0:o())||[],wt(()=>{t!==i(...a)&&(e(t,...a),n&&yg(i(...n),t)&&e(null,...n))})}),()=>{jo(()=>{a&&yg(i(...a),t)&&e(null,...a)})}}),t}function $r(t=!1){let e=Pt,i=e.l.u;if(!i)return;let o=()=>nc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&La(()=>{xg(e,o),us(i.b)}),Fe(()=>{let n=wt(()=>i.m.map(Jm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Fe(()=>{xg(e,o),us(i.a)})}function xg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;uv(e)},set:o=>{i=o}})}};R0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var R0;function zt(t){Pt===null&&Va("onMount"),Ar&&Pt.l!==null?V0(Pt).m.push(t):Fe(()=>{let e=wt(t);if(typeof e=="function")return e})}function mn(t){Pt===null&&Va("onDestroy"),zt(()=>()=>wt(t))}function V0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Al(t,e,i){if(t==null)return e(void 0),i&&i(void 0),te;let o=wt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var za=[];function or(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=te){let i=null,o=new Set;function n(d){if(wa(t,d)&&(t=d,i)){let l=!za.length;for(let p of o)p[1](),za.push(p,t);if(l){for(let p=0;p<za.length;p+=2)za[p][0](za[p+1]);za.length=0}}}function a(d){n(d(t))}function s(d,l=te){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||te),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}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 a=e.length<2;return or(i,(s,d)=>{let l=!1,p=[],f=0,y=te,u=()=>{if(f)return;y();let w=e(o?p[0]:p,s,d);a?s(w):y=typeof w=="function"?w:te},_=n.map((w,b)=>Al(w,C=>{p[b]=C,f&=~(1<<b),l&&u()},()=>{f|=1<<b}));return l=!0,u(),function(){us(_),y(),l=!1}})}function xe(t){let e;return Al(t,i=>e=i)(),e}var gc=!1,up=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Gr(void 0),unsubscribe:te};if(o.store!==t&&!(up in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=te;else{var n=!0;o.unsubscribe=Al(t,s=>{n?o.source.v=s:D(o.source,s)}),n=!1}return t&&up in i?xe(t):r(o.source)}function De(){let t={};function e(){nn(()=>{for(var i in t)t[i].unsubscribe();ji(t,up,{enumerable:!1,value:!0})})}return[t,e]}function pp(t){var e=gc;try{return gc=!1,[t(),gc]}finally{gc=e}}var U0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&cv(`${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 Ae(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},U0)}var z0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(cs(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];cs(n)&&(n=n());let a=Ln(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Ln(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Bo||e===dl)return!1;for(let i of t.props)if(cs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){cs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Jr(...t){return new Proxy({props:t},z0)}function wg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var W,j;var n=(i&1)!==0,a=!Ar||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=pp(()=>t[e]):p=t[e];var f=Bo in t||dl in t,y=s&&((j=(W=Ln(t,e))==null?void 0:W.set)!=null?j:f&&e in t&&(H=>t[e]=H))||void 0,u=o,_=!0,w=!1,b=()=>(w=!0,_&&(_=!1,d?u=wt(o):u=o),u);p===void 0&&o!==void 0&&(y&&a&&dv(e),p=b(),y&&y(p));var C;if(a)C=()=>{var H=t[e];return H===void 0?b():(_=!0,w=!1,H)};else{var T=(n?v:hr)(()=>t[e]);T.f|=131072,C=()=>{var H=r(T);return H!==void 0&&(u=void 0),H===void 0?u:H}}if((i&4)===0)return C;if(y){var I=t.$$legacy;return function(H,Q){return arguments.length>0?((!a||!Q||I||l)&&y(Q?C():H),H):C()}}var M=!1,P=!1,k=Gr(p),V=v(()=>{var H=C(),Q=r(k);return M?(M=!1,P=!0,Q):(P=!1,k.v=H)});return s&&r(V),n||(V.equals=Sa),function(H,Q){if(fl!==null&&(M=P,C(),r(k)),arguments.length>0){let ie=Q?r(V):a&&s?fe(H):H;if(!V.equals(ie)){if(M=!0,D(k,ie),w&&u!==void 0&&(u=ie),wg(V))return H;wt(()=>r(V))}return H}return wg(V)?V.v:r(V)}}var W0;typeof HTMLElement=="function"&&(W0=class extends HTMLElement{constructor(e,i,o){super();Mn(this,"$$ctor");Mn(this,"$$s");Mn(this,"$$c");Mn(this,"$$cn",!1);Mn(this,"$$d",{});Mn(this,"$$r",!1);Mn(this,"$$p_d",{});Mn(this,"$$l",{});Mn(this,"$$l_u",new Map);Mn(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(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),$(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=q0(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=fp(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=og({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=sc(()=>{go(()=>{var a;this.$$r=!0;for(let s of xu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=fp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=fp(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 xu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function fp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.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 q0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Sg="5";var Cg,Tg,Ig;typeof window!="undefined"&&((Ig=(Tg=(Cg=window.__svelte)!=null?Cg:window.__svelte={}).v)!=null?Ig:Tg.v=new Set).add(Sg);import{clientChecker as km}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as x1,safeStorage as Px,throttleFn as Ax}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Mx}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as Q0,fillWithDefault as G0,VideoQuality as kg}from"@vkontakte/videoplayer-shared/es2018";var Y0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Q0.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:kg.Q_480P,highQualityLimit:kg.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,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1,usePuid:!0},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}},Eg=t=>G0(t,Y0),Pg=t=>Ba("ui-config",t),Wt=()=>Ra("ui-config");var Ml="vk_player_debug_panel_opened";var Ag="videoplayer",Mg="videoplayer";var Br={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Lg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Vg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Rg=new Set(["ShiftRight","ShiftLeft"]);var Bg=["TIMELINE"],Ll=[...Bg,"GRAPH_BUTTON"],mp=[...Bg,"PLAY_BUTTON"],Vl=[...Ll,"PLAY_BUTTON"];var Nr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Nr||{}),Ks={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Ng,VERSION as j0}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as Z0}from"@vkontakte/videoplayer-core/es2018";import{VERSION as X0}from"@vkontakte/videoplayer-statistics/es2018";var hc="prod",Wa="1.1.65-dev.b4cd3784.0";var Qs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Dg=Symbol("storeContext"),Og=Symbol("microStoresContext"),Hg=(t,e)=>{Ba(Dg,t),Ba(Og,e),hc==="dev"&&(window.app={store:t,microStores:e})},Ce=()=>{let t=Ra(Dg);return Ng(t,"Store context is empty!"),t},to=()=>{let t=Ra(Og);return Ng(t,"MicroStores context is empty!"),t},ei=(t,e)=>bc(t,t.getValue(),e),bc=(t,e,i)=>or(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Fg=(t,e,i,o)=>{var P,k,V,W,j,H;let n=t.info,{width:a,height:s}=xe(i.ui.playerSize),d=(k=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?k:0,l=(W=(V=n.rttEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?W:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${Wa} (core: ${Z0}, stat: ${X0}, shared: ${j0})`,y=xe(i.state.errorLog$),u=y.length?`
49
- `+y.map((Q,ie)=>{var Ee;let Z=`${ie}) Type: ${Q.id}
50
- `,se=`Message: ${Q.message} (${Q.thrown})
51
- `,ce=`Trace: ${(Ee=Q.thrown)==null?void 0:Ee.stack}
52
- `;return Z+se+ce}).join(`
53
- `):void 0,_=i.state.isAudioDisabled?"disabled":xe(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),b=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(j=w==null?void 0:w.codec)!=null?j:""}`+(w!=null&&w.hdr?" (HDR)":"")),b&&C.push(`Audio: ${(H=b==null?void 0:b.codec)!=null?H:""}`+(b!=null&&b.language?` (${b.language})`:""));let T=n.currentQuality$.getValue(),I="";if(T){let Q=n.availableQualitiesFps$.getValue()[T];I=Q?`${Q}fps`:""}let M={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:xe(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${l}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${p} ${T} ${I}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:_,Position:`${xe(i.state.positionExact$)}s`,State:`${xe(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${a}x${s}`,URL:window.location.href,Errors:u};return Object.entries(M).filter(([Q,ie])=>ie!==void 0).map(([Q,ie])=>`${Q}: ${ie}`).join(`
54
- `)},Ug=(t,e,i)=>{var W,j,H,Q;let o=t.info,{width:n,height:a}=xe(i.ui.playerSize),s={version:Wa,viewport:`${n}x${a}`,volume:Math.round(xe(i.state.volume$)*100)};s.id=i.videoId,o.currentFormat$.getValue()&&(s.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(s.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(s.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),y=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(y&&u?s.buffer=f.end-u:s.buffer=Math.max(f.end-xe(i.state.positionExact$),0));let _=o.throughputEstimation$.getValue();_&&(s.speed=_);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let b=o.liveLatency$.getValue();b&&(s.liveLatency=b);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let I=xe(i.vsid);typeof I=="string"&&(s.vsid=I);let M=(W=t.info.currentVideoStream$.getValue())==null?void 0:W.codec;M&&(s.videoCodec=M);let P=(j=t.info.currentAudioStream$.getValue())==null?void 0:j.codec;P&&(s.audioCodec=P),((H=t.info.currentVideoStream$.getValue())==null?void 0:H.hdr)&&(s.hdr=!0);let V=(Q=t.info.currentAudioStream$.getValue())==null?void 0:Q.language;return V&&(s.audioLanguage=V),s},zg=(t,e)=>Qs(t,e,"mp4"),Wg=t=>!t.type,qg=t=>!!t.type,Kg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},_c=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 hp,safeStorage as _o}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var Qg="vk_player_prefer_traffic_saving_enabled",Gg="vk_player_preferred_volume",Yg="vk_player_prefer_volume_mute",_p="vk_player_preferred_quality",vp="vk_player_preferred_default_quality_settings",gp="vk_player_preferred_quality_settings_by_video",jg="vk_player_preferred_stream_language",Zg="vk_player_preferred_rate",Xg="vk_player_preferred_autoplay_next",Jg=t=>t>1?1:t<0?0:t,bp=t=>_o.set(Gg,Jg(t).toString(10)),$c=()=>{let t=_o.get(Gg);return hp(t)?void 0:Jg(parseFloat(t))},$p=(t,e)=>_o.set(_p,JSON.stringify({videoId:t,value:e})),Bl=()=>_o.remove(_p),yp=t=>{let e=_o.get(_p);if(hp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Bl();return}return o},xp=(t,e)=>{e?_o.set(t,"true"):_o.remove(t)},wp=t=>_o.get(t)==="true",Sp=t=>xp(Yg,t),eh=()=>wp(Yg),Rl=t=>xp(Qg,t),Cp=()=>wp(Qg),th=()=>_o.get(jg),Tp=t=>_o.set(jg,t),ih=t=>_o.set(Zg,JSON.stringify({rate:t})),oh=()=>{let t=_o.get(Zg);if(hp(t))return;let{rate:e}=JSON.parse(t);return e},nh=t=>xp(Xg,t),rh=()=>wp(Xg),J0=()=>{let t=f=>{_o.set(vp,JSON.stringify(f))},e=()=>{try{let f=_o.get(vp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=_o.get(gp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{_o.set(gp,JSON.stringify(f))},n=f=>{p(f);let y=f?i():null;if(y&&(y==null?void 0:y.videoId)===f)return{...y,appliesTo:"to-video"};y&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{_o.remove(gp)},s=()=>{_o.remove(vp)},d=(f,y="as-default")=>{f.type==="exact_quality"?o(f):y==="as-default"?t(f):o(f)},l=f=>{let y=n(f);if(y){switch(y.type){case"traffic_saving":Rl(!0);break;case"exact_quality":$p(f,y.quality)}a(),s()}},p=f=>{let y=yp(f);if(y){o({type:"exact_quality",videoId:f,quality:y});return}Cp()&&t({type:"traffic_saving",videoId:f}),Rl(!1),Bl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:sh,migrateSettingsToLegacyWay:ah,savePreferredQualitySettings:yc,savePreferredDefaultQualitySettings:YP,removePreferredQualitySettingsByVideo:jP,getPreferredDefaultQualitySettings:xc}=J0();import{PlaybackState as b1}from"@vkontakte/videoplayer-core/es2018";var e_=ye('<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 Nl(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=e_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),$(t,o)}import{isNullable as ch,InterfaceLanguage as uh}from"@vkontakte/videoplayer-shared/es2018";var t_={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_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume_on:"\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_volume:"\u0417\u0432\u0443\u043A",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",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
47
+ 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 Pt=null;function El(t){Pt=t}var cn=null;function kl(t){cn=t}function Oa(t){return Xu("getContext").get(t)}function Ha(t,e){let i=Xu("setContext");return Le&&wt(()=>Yu(e,null,!0)),i.set(t,e),e}function Al(){return Xu("getAllContexts")}function O(t,e=!1,i){var o=Pt={p:Pt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};zr&&!e&&(Pt.l={s:null,u:null,r1:[],r2:Fi(!1)}),un(()=>{o.d=!0}),Le&&(Pt.function=i,cn=i)}function H(t){var r,d;let e=Pt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=It,o=Dt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];to(a.effect),ho(a.reaction),yn(a.fn)}}finally{to(i),ho(o)}}Pt=e.p,Le&&(cn=(d=(r=e.p)==null?void 0:r.function)!=null?d:null),e.m=!0}return t||{}}function qr(){return!zr||Pt!==null&&Pt.l===null}function Xu(t){var e;return Pt===null&&Da(t),(e=Pt.c)!=null?e:Pt.c=new Map(l0(Pt)||void 0)}function l0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var d0=/\r/g;function Qv(t){t=t.replace(d0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Gv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var c0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Yv(t){return c0.includes(t)}var u0=["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 p0={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 jv(t){var e;return t=t.toLowerCase(),(e=p0[t])!=null?e:t}var A6=[...u0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var f0=["touchstart","touchmove"];function Zv(t){return f0.includes(t)}var m0=["textarea","script","style","title"];function Xv(t){return m0.includes(t)}function Ju(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Jv=new Map;function eg(t,e){var i=Jv.get(t);i||(i=new Set,Jv.set(t,i)),i.add(e)}function ep(t,e){if(e){let i=document.body;t.autofocus=!0,nn(()=>{document.activeElement===i&&t.focus()})}}function Ml(t){var e=Dt,i=It;ho(null),to(null);try{return t()}finally{ho(e),to(i)}}var tp=new Set,mc=new Set;function Zs(t){if(!Ye)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function ip(t,e,i,o={}){function n(a){if(o.capture||Fa.call(e,a),!a.cancelBubble)return Ml(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?nn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Tt(t,e,i,o,n){var a={capture:o,passive:n},r=ip(t,e,i,a);(e===document.body||e===window||e===document)&&un(()=>{e.removeEventListener(t,r,a)})}function lt(t){for(var e=0;e<t.length;e++)tp.add(t[e]);for(var i of mc)i(t)}function Fa(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.call(t))||[],a=n[0]||t.target,r=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;l<=p&&(r=l)}if(a=n[r]||t.target,a!==e){eo(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Dt,b=It;ho(null),to(null);try{for(var u,_=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!=null&&(!a.disabled||t.target===a))if(wr(y)){var[C,...T]=y;C.apply(a,[t,...T])}else y.call(a,t)}catch(M){u?_.push(M):u=M}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let M of _)queueMicrotask(()=>{throw M});throw u}}finally{t.__root=e,delete t.currentTarget,ho(f),to(b)}}}var g0;function tg(){g0=void 0}function Ua(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function $o(t,e){var i=It;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ye)return $o(ft,null),ft;n===void 0&&(n=Ua(a?t:"<!>"+t),i||(n=fi(n)));var r=o||xl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=fi(r),l=r.lastChild;$o(d,l)}else $o(r,r);return r}}function Se(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,r;return()=>{if(Ye)return $o(ft,null),ft;if(!r){var d=Ua(a),l=fi(d);if(n)for(r=document.createDocumentFragment();fi(l);)r.appendChild(fi(l));else r=fi(l)}var p=r.cloneNode(!0);if(n){var f=fi(p),b=p.lastChild;$o(f,b)}else $o(p,p);return p}}function Kr(t=""){if(!Ye){var e=ln(t+"");return $o(e,e),e}var i=ft;return i.nodeType!==3&&(i.before(i=ln()),pi(i)),$o(i,i),i}function He(){if(Ye)return $o(ft,null),ft;var t=document.createDocumentFragment(),e=document.createComment(""),i=ln();return t.append(e,i),$o(e,i),t}function $(t,e){if(Ye){It.nodes_end=ft,Bi();return}t!==null&&t.before(e)}var Ll=!0;function vc(t){Ll=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 ds(t,e){return og(t,e)}function np(t,e){var r;ic(),e.intro=(r=e.intro)!=null?r:!1;let i=e.target,o=Ye,n=ft;try{for(var a=fi(i);a&&(a.nodeType!==8||a.data!==ws);)a=Ao(a);if(!a)throw ts;oo(!0),pi(a),Bi();let d=og(t,{...e,anchor:a});if(ft===null||ft.nodeType!==8||ft.data!==Fs)throw Qs(),ts;return oo(!1),d}catch(d){if(d===ts)return e.recover===!1&&uv(),ic(),wl(i),oo(!1),ds(t,e);throw d}finally{oo(o),pi(n),tg()}}var za=new Map;function og(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:r=!0}){ic();var d=new Set,l=b=>{for(var u=0;u<b.length;u++){var _=b[u];if(!d.has(_)){d.add(_);var w=Zv(_);e.addEventListener(_,Fa,{passive:w});var y=za.get(_);y===void 0?(document.addEventListener(_,Fa,{passive:w}),za.set(_,1)):za.set(_,y+1)}}};l(hl(tp)),mc.add(l);var p=void 0,f=Wv(()=>{var b=i!=null?i:e.appendChild(ln());return Ui(()=>{if(a){O({});var u=Pt;u.c=a}n&&(o.$$events=n),Ye&&$o(b,null),Ll=r,p=t(b,o)||{},Ll=!0,Ye&&(It.nodes_end=ft),a&&H()}),()=>{var w;for(var u of d){e.removeEventListener(u,Fa);var _=za.get(u);--_===0?(document.removeEventListener(u,Fa),za.delete(u)):za.set(u,_)}mc.delete(l),b!==i&&((w=b.parentNode)==null||w.removeChild(b))}});return op.set(p,f),p}var op=new WeakMap;function Xs(t,e){let i=op.get(t);return i?(op.delete(t),i(e)):(Le&&Iv(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){Ye&&i===0&&Bi();var n=t,a=null,r=null,d=ki,l=i>0?65536:0,p=!1;let f=(u,_=!0)=>{p=!0,b(_,u)},b=(u,_)=>{if(d===(d=u))return;let w=!1;if(Ye&&o!==-1){if(i===0){let C=n.data;C===ws?o=0:C===Hs?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=La(),pi(n),oo(!1),w=!0,o=-1)}d?(a?ls(a):_&&(a=Ui(()=>_(n))),r&&xn(r,()=>{r=null})):(r?ls(r):_&&(r=Ui(()=>_(n,[i+1,o]))),a&&xn(a,()=>{a=null})),w&&oo(!0)};no(()=>{p=!1,e(f),p||b(null,null)},l),Ye&&(n=ft)}function Js(t,e,i){Ye&&Bi();var o=t,n=ki,a,r=qr()?rv:Ia;no(()=>{r(n,n=e())&&(a&&xn(a),a=Ui(()=>i(o)))}),Ye&&(o=ft)}var Es=null;function ap(t){Es=t}function Vl(t,e){return e}function $0(t,e,i,o){for(var n=[],a=e.length,r=0;r<a;r++)uc(e[r].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;wl(l),l.append(i),o.clear(),Is(t,e[0].prev,e[a-1].next)}Gu(n,()=>{for(var p=0;p<a;p++){var f=e[p];d||(o.delete(f.k),Is(t,f.prev,f.next)),io(f.e,!d)}})}function bi(t,e,i,o,n,a=null){var r=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var p=t;r=Ye?pi(fi(p)):p.appendChild(ln())}Ye&&Bi();var f=null,b=!1,u=Tr(()=>{var _=i();return wr(_)?_:_==null?[]:hl(_)});no(()=>{var _=s(u),w=_.length;if(b&&w===0)return;b=w===0;let y=!1;if(Ye){var C=r.data===Hs;C!==(w===0)&&(r=La(),pi(r),oo(!1),y=!0)}if(Ye){for(var T=null,I,M=0;M<w;M++){if(ft.nodeType===8&&ft.data===Fs){r=ft,y=!0,oo(!1);break}var P=_[M],E=o(P,M);I=sg(ft,d,T,null,P,E,M,n,e,i),d.items.set(E,I),T=I}w>0&&pi(La())}Ye||y0(_,d,r,n,e,o,i),a!==null&&(w===0?f?ls(f):f=Ui(()=>a(r)):f!==null&&xn(f,()=>{f=null})),y&&oo(!0),s(u)}),Ye&&(r=ft)}function y0(t,e,i,o,n,a,r){var le,Me,Be,ge;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,f=e.items,b=e.first,u=b,_,w=null,y,C=[],T=[],I,M,P,E;if(d)for(E=0;E<p;E+=1)I=t[E],M=a(I,E),P=f.get(M),P!==void 0&&((le=P.a)==null||le.measure(),(y!=null?y:y=new Set).add(P));for(E=0;E<p;E+=1){if(I=t[E],M=a(I,E),P=f.get(M),P===void 0){var R=u?u.e.nodes_start:i;w=sg(R,e,w,w===null?e.first:w.next,I,M,E,o,n,r),f.set(M,w),C=[],T=[],u=w.next;continue}if(l&&x0(P,I,E,n),(P.e.f&8192)!==0&&(ls(P.e),d&&((Me=P.a)==null||Me.unfix(),(y!=null?y:y=new Set).delete(P))),P!==u){if(_!==void 0&&_.has(P)){if(C.length<T.length){var z=T[0],q;w=z.prev;var U=C[0],Y=C[C.length-1];for(q=0;q<C.length;q+=1)ng(C[q],z,i);for(q=0;q<T.length;q+=1)_.delete(T[q]);Is(e,U.prev,Y.next),Is(e,w,U),Is(e,Y,z),u=z,w=Y,E-=1,C=[],T=[]}else _.delete(P),ng(P,u,i),Is(e,P.prev,P.next),Is(e,P,w===null?e.first:w.next),Is(e,w,P),w=P;continue}for(C=[],T=[];u!==null&&u.k!==M;)(u.e.f&8192)===0&&(_!=null?_:_=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;P=u}C.push(P),w=P,u=P.next}if(u!==null||_!==void 0){for(var se=_===void 0?[]:hl(_);u!==null;)(u.e.f&8192)===0&&se.push(u),u=u.next;var Q=se.length;if(Q>0){var de=(n&4)!==0&&p===0?i:null;if(d){for(E=0;E<Q;E+=1)(Be=se[E].a)==null||Be.measure();for(E=0;E<Q;E+=1)(ge=se[E].a)==null||ge.fix()}$0(e,se,de,f)}}d&&nn(()=>{var ce;if(y!==void 0)for(P of y)(ce=P.a)==null||ce.apply()}),It.first=e.first&&e.first.e,It.last=w&&w.e}function x0(t,e,i,o){(o&1)!==0&&Pa(t.v,e),(o&2)!==0?Pa(t.i,i):t.i=i}function sg(t,e,i,o,n,a,r,d,l,p){var f=Es,b=(l&1)!==0,u=(l&16)===0,_=b?u?ss(n):Fi(n):n,w=(l&2)===0?r:Fi(r);Le&&b&&(_.debug=()=>{var C=typeof w=="number"?r:w.v;p()[C]});var y={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};Es=y;try{return y.e=Ui(()=>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{Es=f}}function ng(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var r=Ao(a);n.before(a),a=r}}function Is(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function w0(t,e,i){var a,r;if(!e||e===Qv(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(r=cn)!=null&&r[ui]&&(o=`in ${cn[ui]}`),Tv(Ju(o))}function Rl(t,e,i,o,n){var a=t,r="",d;no(()=>{var l;if(r===(r=(l=e())!=null?l:"")){Ye&&Bi();return}d!==void 0&&(io(d),d=void 0),r!==""&&(d=Ui(()=>{if(Ye){for(var p=ft.data,f=Bi(),b=f;f!==null&&(f.nodeType!==8||f.data!=="");)b=f,f=Ao(f);if(f===null)throw Qs(),ts;Le&&!n&&w0(f.parentNode,p,r),$o(ft,b),a=pi(f);return}var u=r+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var _=Ua(u);if((i||o)&&(_=fi(_)),$o(fi(_),_.lastChild),i||o)for(;fi(_);)a.before(fi(_));else a.before(_)}))})}function be(t,e,...i){var o=t,n=oe,a;no(()=>{n!==(n=e())&&(a&&(io(a),a=null),Le&&n==null&&pv(),a=Ui(()=>n(o,...i)))},65536),Ye&&(o=ft)}function $i(t,e,i){Ye&&Bi();var o=t,n,a;no(()=>{n!==(n=e())&&(a&&(xn(a),a=null),n&&(a=Ui(()=>i(o,n))))},65536),Ye&&(o=ft)}function ea(t,e,i,o,n,a){var w;let r=Ye;Ye&&Bi();var d=Le&&a&&((w=Pt)==null?void 0:w.function[ui]),l,p,f=null;Ye&&ft.nodeType===1&&(f=ft,Bi());var b=Ye?ft:t,u,_=Es;no(()=>{let y=e()||null;var C=n?n():i||y==="svg"?Tu:null;if(y!==l){var T=Es;ap(_),u&&(y===null?xn(u,()=>{u=null,p=null}):y===p?ls(u):(io(u),vc(!1))),y&&y!==p&&(u=Ui(()=>{if(f=Ye?f:C?document.createElementNS(C,y):document.createElement(y),Le&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),$o(f,f),o){Ye&&Xv(y)&&f.append(document.createComment(""));var I=Ye?fi(f):f.appendChild(ln());Ye&&(I===null?oo(!1):pi(I)),o(f,I)}It.nodes_end=f,b.before(f)})),l=y,l&&(p=l),vc(!0),ap(T)}},65536),r&&(oo(!0),pi(b))}var dp;function ag(t){return dp=t.target,new lp(t)}var cs,ur,lp=class{constructor(e){xs(this,cs);xs(this,ur);var a,r;var i=new Map,o=(d,l)=>{var p=ss(l);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var p;return s((p=i.get(l))!=null?p:o(l,Reflect.get(d,l)))},has(d,l){var p;return l===gl?!0:(s((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var f;return D((f=i.get(l))!=null?f:o(l,p),p),Reflect.set(d,l,p)}});Ta(this,ur,(e.hydrate?np:ds)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((r=e==null?void 0:e.props)!=null&&r.$$host)||e.sync===!1)&&Ba(),Ta(this,cs,n.$$events);for(let d of Object.keys(Ei(this,ur)))d==="$set"||d==="$destroy"||d==="$on"||eo(this,d,{get(){return Ei(this,ur)[d]},set(l){Ei(this,ur)[d]=l},enumerable:!0});Ei(this,ur).$set=d=>{Object.assign(n,d)},Ei(this,ur).$destroy=()=>{Xs(Ei(this,ur))}}$set(e){Ei(this,ur).$set(e)}$on(e,i){Ei(this,cs)[e]=Ei(this,cs)[e]||[];let o=(...n)=>i.call(this,...n);return Ei(this,cs)[e].push(o),()=>{Ei(this,cs)[e]=Ei(this,cs)[e].filter(n=>n!==o)}}$destroy(){Ei(this,ur).$destroy()}};cs=new WeakMap,ur=new WeakMap;function W(t,e){nn(()=>{var n,a,r;var i=t.getRootNode(),o=i.host?i:(r=(n=i.head)!=null?n:i.ownerDocument.head)!=null?r:(a=dp)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Le&&eg(e.hash,d)}})}function lg(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=lg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function dg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=lg(t))&&(o&&(o+=" "),o+=e);return o}function Bl(t){return typeof t=="object"?dg(t):t!=null?t:""}var cg=[...`
48
+ \r\f\xA0\v\uFEFF`];function pg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,r=0;(r=o.indexOf(n,r))>=0;){var d=r+a;(r===0||cg.includes(o[r-1]))&&(d===o.length||cg.includes(o[d]))?o=(r===0?"":o.substring(0,r))+o.substring(d+1):r=d}}return o===""?null:o}function ug(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function cp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function fg(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 a=!1,r=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(cp)),n&&l.push(...Object.keys(n).map(cp));var p=0,f=-1;let y=t.length;for(var b=0;b<y;b++){var u=t[b];if(d?u==="/"&&t[b-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[b+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?r++:u===")"&&r--,!d&&a===!1&&r===0){if(u===":"&&f===-1)f=b;else if(u===";"||b===y-1){if(f!==-1){var _=cp(t.substring(p,f).trim());if(!l.includes(_)){u!==";"&&b++;var w=t.substring(p,b).trim();i+=" "+w+";"}}p=b+1,f=-1}}}}return o&&(i+=ug(o)),n&&(i+=ug(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,a){var r=t.__className;if(Ye||r!==i){var d=pg(i,o,a);(!Ye||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var p=!!a[l];(n==null||p!==!!n[l])&&t.classList.toggle(l,p)}return a}function up(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function st(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=fg(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(up(t,i==null?void 0:i[0],o[0]),up(t,i==null?void 0:i[1],o[1],"important")):up(t,i,o));return o}var Wa=Symbol("class"),qa=Symbol("style"),gg=Symbol("is custom element"),hg=Symbol("is html");function _g(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ne(t,e,i,o){var n=bg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||P0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[ev]=i),i==null?t.removeAttribute(e):typeof i!="string"&&$g(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function ke(t,e,i,o,n=!1){var P;var a=bg(t),r=a[gg],d=!a[hg];let l=Ye&&r;l&&oo(!1);var p=e||{},f=t.tagName==="OPTION";for(var b in e)b in i||(i[b]=null);i.class?i.class=Bl(i.class):(o||i[Wa])&&(i.class=null),i[qa]&&((P=i.style)!=null||(i.style=null));var u=$g(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";J(t,_,R,o,e==null?void 0:e[Wa],i[Wa]),p[E]=R,p[Wa]=i[Wa];continue}if(E==="style"){st(t,R,e==null?void 0:e[qa],i[qa]),p[E]=R,p[qa]=i[qa];continue}var w=p[E];if(R!==w){p[E]=R;var y=E[0]+E[1];if(y!=="$$")if(y==="on"){let z={},q="$$"+E,U=E.slice(2);var C=Yv(U);if(Gv(U)&&(U=U.slice(0,-7),z.capture=!0),!C&&w){if(R!=null)continue;t.removeEventListener(U,p[q],z),p[q]=null}if(R!=null)if(C)t[`__${U}`]=R,lt([U]);else{let Y=function(se){p[E].call(this,se)};var M=Y;p[q]=ip(U,t,Y,z)}else C&&(t[`__${U}`]=void 0)}else if(E==="style")Ne(t,E,R);else if(E==="autofocus")ep(t,!!R);else if(!r&&(E==="__value"||E==="value"&&R!=null))t.value=t.__value=R;else if(E==="selected"&&f)_g(t,R);else{var T=E;d||(T=jv(T));var I=T==="defaultValue"||T==="defaultChecked";if(R==null&&!r&&!I)if(a[E]=null,T==="value"||T==="checked"){let z=t,q=e===void 0;if(T==="value"){let U=z.defaultValue;z.removeAttribute(T),z.defaultValue=U,z.value=z.__value=q?U:null}else{let U=z.defaultChecked;z.removeAttribute(T),z.defaultChecked=U,z.checked=q?U:!1}}else t.removeAttribute(E);else I||u.includes(T)&&(r||typeof R!="string")?t[T]=R:typeof R!="function"&&Ne(t,T,R,n)}}}return l&&oo(!0),p}function bg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[gg]:t.nodeName.includes("-"),[hg]:t.namespaceURI===jm}}var mg=new Map;function $g(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=jd(o);for(var a in i)i[a].set&&e.push(a);o=os(o)}return e}function P0(t,e,i){var o;Le&&(e==="srcset"&&A0(t,i)||pp((o=t.getAttribute(e))!=null?o:"",i)||Cv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function pp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function vg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function A0(t,e){var i=vg(t.srcset),o=vg(e);return o.length===i.length&&o.every(([n,a],r)=>a===i[r][1]&&(pp(i[r][0],n)||pp(n,i[r][0])))}var M0=Yd?()=>performance.now():()=>Date.now(),Er={tick:t=>(Yd?requestAnimationFrame:oe)(t),now:()=>M0(),tasks:new Set};function yg(){let t=Er.now();Er.tasks.forEach(e=>{e.c(t)||(Er.tasks.delete(e),e.f())}),Er.tasks.size!==0&&Er.tick(yg)}function xg(t){let e;return Er.tasks.size===0&&Er.tick(yg),{promise:new Promise(i=>{Er.tasks.add(e={c:t,f:i})}),abort(){Er.tasks.delete(e)}}}function gc(t,e){Ml(()=>{t.dispatchEvent(new CustomEvent(e))})}function B0(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 wg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let r=B0(n.trim());e[r]=a.trim()}return e}var N0=t=>t;function mp(t,e,i,o){var M;var n=(t&1)!==0,a=(t&2)!==0,r=n&&a,d=(t&4)!==0,l=r?"both":n?"in":"out",p,f=e.inert,b=e.style.overflow,u,_;function w(){var R;var P=Dt,E=It;ho(null),to(null);try{return p!=null?p:p=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{ho(P),to(E)}}var y={is_global:d,in(){var P;if(e.inert=f,!n){_==null||_.abort(),(P=_==null?void 0:_.reset)==null||P.call(_);return}a||u==null||u.abort(),gc(e,"introstart"),u=fp(e,w(),_,1,()=>{gc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=b})},out(P){if(!a){P==null||P(),p=void 0;return}e.inert=!0,gc(e,"outrostart"),_=fp(e,w(),u,0,()=>{gc(e,"outroend"),P==null||P()})},stop:()=>{u==null||u.abort(),_==null||_.abort()}},C=It;if(((M=C.transitions)!=null?M:C.transitions=[]).push(y),n&&Ll){var T=d;if(!T){for(var I=C.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&yn(()=>{wt(()=>y.in())})}}function fp(t,e,i,o,n){var a=o===1;if(Ss(e)){var r,d=!1;return nn(()=>{if(!d){var C=e({direction:a?"in":"out"});r=fp(t,C,i,o,n)}}),{abort:()=>{d=!0,r==null||r.abort()},deactivate:()=>r.deactivate(),reset:()=>r.reset(),t:()=>r.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:p,tick:f,easing:b=N0}=e;var u=[];if(a&&i===void 0&&(f&&f(0,1),p)){var _=wg(p(0,1));u.push(_,_)}var w=()=>1-o,y=t.animate(u,{duration:l});return y.onfinish=()=>{var U;var C=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var T=o-C,I=e.duration*Math.abs(T),M=[];if(I>0){var P=!1;if(p)for(var E=Math.ceil(I/16.666666666666668),R=0;R<=E;R+=1){var z=C+T*b(R/E),q=wg(p(z,1-z));M.push(q),P||(P=q.overflow==="hidden")}P&&(t.style.overflow="hidden"),w=()=>{var Y=y.currentTime;return C+T*b(Y/I)},f&&xg(()=>{if(y.playState!=="running")return!1;var Y=w();return f(Y,1-Y),!0})}y=t.animate(M,{duration:I,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var ks,Ka,Nl,_c,Sg,bc=class bc{constructor(e){xs(this,_c);xs(this,ks,new WeakMap);xs(this,Ka);xs(this,Nl);Ta(this,Nl,e)}observe(e,i){var o=Ei(this,ks).get(e)||new Set;return o.add(i),Ei(this,ks).set(e,o),Gm(this,_c,Sg).call(this).observe(e,Ei(this,Nl)),()=>{var n=Ei(this,ks).get(e);n.delete(i),n.size===0&&(Ei(this,ks).delete(e),Ei(this,Ka).unobserve(e))}}};ks=new WeakMap,Ka=new WeakMap,Nl=new WeakMap,_c=new WeakSet,Sg=function(){var e;return(e=Ei(this,Ka))!=null?e:Ta(this,Ka,new ResizeObserver(i=>{for(var o of i){bc.entries.set(o.target,o);for(var n of Ei(this,ks).get(o.target)||[])n(o)}}))},zn(bc,"entries",new WeakMap);var vp=bc;var H0=new vp({box:"border-box"});function Qr(t,e,i){var o=H0.observe(t,()=>i(t[e]));yn(()=>(wt(()=>i(t[e])),o))}function Cg(t,e){return t===e||(t==null?void 0:t[qo])===e}function tt(t={},e,i,o){return yn(()=>{var n,a;return bo(()=>{n=a,a=(o==null?void 0:o())||[],wt(()=>{t!==i(...a)&&(e(t,...a),n&&Cg(i(...n),t)&&e(null,...n))})}),()=>{nn(()=>{a&&Cg(i(...a),t)&&e(null,...a)})}}),t}function kr(t=!1){let e=Pt,i=e.l.u;if(!i)return;let o=()=>lc(e.s);if(t){let n=0,a={},r=v(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>s(r)}i.b.length&&Na(()=>{Tg(e,o),Cs(i.b)}),Ue(()=>{let n=wt(()=>i.m.map(ov));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Ue(()=>{Tg(e,o),Cs(i.a)})}function Tg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}if(Le){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;vv(e)},set:o=>{i=o}})}};U0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var U0;function Rt(t){Pt===null&&Da("onMount"),zr&&Pt.l!==null?F0(Pt).m.push(t):Ue(()=>{let e=wt(t);if(typeof e=="function")return e})}function wn(t){Pt===null&&Da("onDestroy"),Rt(()=>()=>wt(t))}function F0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Dl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=wt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Qa=[];function pr(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=oe){let i=null,o=new Set;function n(d){if(Ia(t,d)&&(t=d,i)){let l=!Qa.length;for(let p of o)p[1](),Qa.push(p,t);if(l){for(let p=0;p<Qa.length;p+=2)Qa[p][0](Qa[p+1]);Qa.length=0}}}function a(d){n(d(t))}function r(d,l=oe){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:r}}function mi(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 a=e.length<2;return pr(i,(r,d)=>{let l=!1,p=[],f=0,b=oe,u=()=>{if(f)return;b();let w=e(o?p[0]:p,r,d);a?r(w):b=typeof w=="function"?w:oe},_=n.map((w,y)=>Dl(w,C=>{p[y]=C,f&=~(1<<y),l&&u()},()=>{f|=1<<y}));return l=!0,u(),function(){Cs(_),b(),l=!1}})}function xe(t){let e;return Dl(t,i=>e=i)(),e}var $c=!1,gp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:ss(void 0),unsubscribe:oe};if(o.store!==t&&!(gp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=Dl(t,r=>{n?o.source.v=r:D(o.source,r)}),n=!1}return t&&gp in i?xe(t):s(o.source)}function De(){let t={};function e(){un(()=>{for(var i in t)t[i].unsubscribe();eo(t,gp,{enumerable:!1,value:!0})})}return[t,e]}function hp(t){var e=$c;try{return $c=!1,[t(),$c]}finally{$c=e}}var Y0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Le&&mv(`${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 Ve(t,e,i){return new Proxy(Le?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},Y0)}var j0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ss(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Ss(n)&&(n=n());let a=Wn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ss(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Wn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===qo||e===gl)return!1;for(let i of t.props)if(Ss(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Ss(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function us(...t){return new Proxy({props:t},j0)}function Ig(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var z,q;var n=(i&1)!==0,a=!zr||(i&2)!==0,r=(i&8)!==0,d=(i&16)!==0,l=!1,p;r?[p,l]=hp(()=>t[e]):p=t[e];var f=qo in t||gl in t,b=r&&((q=(z=Wn(t,e))==null?void 0:z.set)!=null?q:f&&e in t&&(U=>t[e]=U))||void 0,u=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?u=wt(o):u=o),u);p===void 0&&o!==void 0&&(b&&a&&fv(e),p=y(),b&&b(p));var C;if(a)C=()=>{var U=t[e];return U===void 0?y():(_=!0,w=!1,U)};else{var T=(n?v:Tr)(()=>t[e]);T.f|=131072,C=()=>{var U=s(T);return U!==void 0&&(u=void 0),U===void 0?u:U}}if((i&4)===0)return C;if(b){var I=t.$$legacy;return function(U,Y){return arguments.length>0?((!a||!Y||I||l)&&b(Y?C():U),U):C()}}var M=!1,P=!1,E=ss(p),R=v(()=>{var U=C(),Y=s(E);return M?(M=!1,P=!0,Y):(P=!1,E.v=U)});return r&&s(R),n||(R.equals=Ea),function(U,Y){if($l!==null&&(M=P,C(),s(E)),arguments.length>0){let se=Y?s(R):a&&r?ve(U):U;if(!R.equals(se)){if(M=!0,D(E,se),w&&u!==void 0&&(u=se),Ig(R))return U;wt(()=>s(R))}return U}return Ig(R)?R.v:s(R)}}var Z0;typeof HTMLElement=="function"&&(Z0=class extends HTMLElement{constructor(e,i,o){super();zn(this,"$$ctor");zn(this,"$$s");zn(this,"$$c");zn(this,"$$cn",!1);zn(this,"$$d",{});zn(this,"$$r",!1);zn(this,"$$p_d",{});zn(this,"$$l",{});zn(this,"$$l_u",new Map);zn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return r=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),$(r,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=X0(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let r=this.$$g_p(a.name);r in this.$$d||(this.$$d[r]=_p(r,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=ag({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=cc(()=>{bo(()=>{var a;this.$$r=!0;for(let r of Iu(this.$$c)){if(!((a=this.$$p_d[r])!=null&&a.reflect))continue;this.$$d[r]=this.$$c[r];let d=_p(r,this.$$d[r],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,d)}this.$$r=!1})});for(let a in this.$$l)for(let r of this.$$l[a]){let d=this.$$c.$on(a,r);this.$$l_u.set(r,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=_p(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 Iu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function _p(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.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 X0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Eg="5";var kg,Pg,Ag;typeof window!="undefined"&&((Ag=(Pg=(kg=window.__svelte)!=null?kg:window.__svelte={}).v)!=null?Ag:Pg.v=new Set).add(Eg);import{areValidLiveRecordSources as Ox,clientChecker as Lm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as P1,safeStorage as Hx,throttleFn as Fx}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Ux}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as e_,fillWithDefault as t_,VideoQuality as Mg}from"@vkontakte/videoplayer-shared/es2018";var i_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:e_.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:Mg.Q_480P,highQualityLimit:Mg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null}},Lg=t=>t_(t,i_),Vg=t=>Ha("ui-config",t),Ht=()=>Oa("ui-config");var Ol="vk_player_debug_panel_opened";var Rg="videoplayer",Bg="videoplayer";var Gr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Ng=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Dg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Og=new Set(["ShiftRight","ShiftLeft"]);var Hg=["TIMELINE"],Hl=[...Hg,"GRAPH_BUTTON"],bp=[...Hg,"PLAY_BUTTON"],Fl=[...Hl,"PLAY_BUTTON"];var Yr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Yr||{}),ia={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Fg,VERSION as o_}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as n_}from"@vkontakte/videoplayer-core/es2018";import{VERSION as r_}from"@vkontakte/videoplayer-statistics/es2018";var yc="prod",Ga="1.1.65-dev.d779f3ab.0";var oa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Ug=Symbol("storeContext"),zg=Symbol("microStoresContext"),Wg=(t,e)=>{Ha(Ug,t),Ha(zg,e),yc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Oa(Ug);return Fg(t,"Store context is empty!"),t},ro=()=>{let t=Oa(zg);return Fg(t,"MicroStores context is empty!"),t},Xt=(t,e)=>wc(t,t.getValue(),e),wc=(t,e,i)=>pr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),qg=(t,e,i,o)=>{var R,z,q,U,Y,se,Q,de;let n=t.info,{width:a,height:r}=xe(i.ui.playerSize),d=(z=(R=n.throughputEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?z:0,l=(U=(q=n.rttEstimation$.getValue())==null?void 0:q.toFixed(0))!=null?U:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${Ga} (core: ${n_}, stat: ${r_}, shared: ${o_})`,b=xe(i.state.errorLog$),u=b.length?`
49
+ `+b.map((le,Me)=>{var Ae;let Be=`${Me}) Type: ${le.id}
50
+ `,ge=`Message: ${le.message} (${le.thrown})
51
+ `,ce=`Trace: ${(Ae=le.thrown)==null?void 0:Ae.stack}
52
+ `;return Be+ge+ce}).join(`
53
+ `):void 0,_=i.state.isAudioDisabled?"disabled":xe(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(Y=w==null?void 0:w.codec)!=null?Y:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&C.push(`Audio: ${(se=y==null?void 0:y.codec)!=null?se:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=n.currentQuality$.getValue(),I="";if(T){let le=n.availableQualitiesFps$.getValue()[T];I=le?`${le}fps`:""}let M=(de=(Q=n.currentBuffer$.getValue())==null?void 0:Q.end)!=null?de:0,P=Math.max(M-xe(i.state.positionExact$),0),E={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:xe(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${l}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${p} ${T} ${I}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:_,Position:`${xe(i.state.positionExact$)}s`,Buffer:`${P}s`,State:`${xe(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${a}x${r}`,URL:window.location.href,Errors:u};return Object.entries(E).filter(([le,Me])=>Me!==void 0).map(([le,Me])=>`${le}: ${Me}`).join(`
54
+ `)},Kg=(t,e,i)=>{var z,q,U,Y;let o=t.info,{width:n,height:a}=xe(i.ui.playerSize),r={version:Ga,viewport:`${n}x${a}`,volume:Math.round(xe(i.state.volume$)*100)};r.id=i.videoId,o.currentFormat$.getValue()&&(r.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(r.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(r.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),b=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(b&&u?r.buffer=f.end-u:r.buffer=Math.max(f.end-xe(i.state.positionExact$),0)),r.position=xe(i.state.positionExact$);let _=o.throughputEstimation$.getValue();_&&(r.speed=_);let w=o.videoBitrate$.getValue();w&&(r.bitrate=w);let y=o.liveLatency$.getValue();y&&(r.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(r.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(r.currentAudioSegmentLength=T);let I=xe(i.vsid);typeof I=="string"&&(r.vsid=I);let M=(z=t.info.currentVideoStream$.getValue())==null?void 0:z.codec;M&&(r.videoCodec=M);let P=(q=t.info.currentAudioStream$.getValue())==null?void 0:q.codec;P&&(r.audioCodec=P),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(r.hdr=!0);let R=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.language;return R&&(r.audioLanguage=R),r},Qg=(t,e)=>oa(t,e,"mp4"),Gg=t=>!t.type,Yg=t=>!!t.type,jg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},xc=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 xp,safeStorage as yo}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var Zg="vk_player_prefer_traffic_saving_enabled",Xg="vk_player_preferred_volume",Jg="vk_player_prefer_volume_mute",wp="vk_player_preferred_quality",$p="vk_player_preferred_default_quality_settings",yp="vk_player_preferred_quality_settings_by_video",eh="vk_player_preferred_stream_language",th="vk_player_preferred_rate",ih="vk_player_preferred_autoplay_next",oh=t=>t>1?1:t<0?0:t,Sp=t=>yo.set(Xg,oh(t).toString(10)),Sc=()=>{let t=yo.get(Xg);return xp(t)?void 0:oh(parseFloat(t))},Cp=(t,e)=>yo.set(wp,JSON.stringify({videoId:t,value:e})),zl=()=>yo.remove(wp),Tp=t=>{let e=yo.get(wp);if(xp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){zl();return}return o},Ip=(t,e)=>{e?yo.set(t,"true"):yo.remove(t)},Ep=t=>yo.get(t)==="true",kp=t=>Ip(Jg,t),nh=()=>Ep(Jg),Ul=t=>Ip(Zg,t),Pp=()=>Ep(Zg),rh=()=>yo.get(eh),Ap=t=>yo.set(eh,t),sh=t=>yo.set(th,JSON.stringify({rate:t})),ah=()=>{let t=yo.get(th);if(xp(t))return;let{rate:e}=JSON.parse(t);return e},lh=t=>Ip(ih,t),dh=()=>Ep(ih),s_=()=>{let t=f=>{yo.set($p,JSON.stringify(f))},e=()=>{try{let f=yo.get($p);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=yo.get(yp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{yo.set(yp,JSON.stringify(f))},n=f=>{p(f);let b=f?i():null;if(b&&(b==null?void 0:b.videoId)===f)return{...b,appliesTo:"to-video"};b&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{yo.remove(yp)},r=()=>{yo.remove($p)},d=(f,b="as-default")=>{f.type==="exact_quality"?o(f):b==="as-default"?t(f):o(f)},l=f=>{let b=n(f);if(b){switch(b.type){case"traffic_saving":Ul(!0);break;case"exact_quality":Cp(f,b.quality)}a(),r()}},p=f=>{let b=Tp(f);if(b){o({type:"exact_quality",videoId:f,quality:b});return}Pp()&&t({type:"traffic_saving",videoId:f}),Ul(!1),zl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:ch,migrateSettingsToLegacyWay:uh,savePreferredQualitySettings:Cc,savePreferredDefaultQualitySettings:sA,removePreferredQualitySettingsByVideo:aA,getPreferredDefaultQualitySettings:Tc}=s_();import{PlaybackState as I1}from"@vkontakte/videoplayer-core/es2018";var a_=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function Wl(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=a_();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),$(t,o)}import{isNullable as mh,InterfaceLanguage as vh}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_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_volume:"\u0417\u0432\u0443\u043A",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",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,
55
55
  \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 -
56
- \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=t_;var i_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_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_on:"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_volume:"Volume",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",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,
56
+ \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`},ph=l_;var d_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_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_volume:"Volume",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",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,
57
57
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
58
- Try switching the\xA0quality to\xA0Auto.`},dh=i_;var es=new Map;es.set(uh.EN,dh);es.set(uh.RU,lh);var ph=new Map,Ip=({language:t,pack:e,fallback:i})=>{if(es.has(t)){let o=es.get(t);es.set(t,{...o,...e})}else es.set(t,e);ph.set(t,i)},kp=t=>es.has(t),Ep=(t,e,i,o)=>{var s;let n=es.get(t),a=n==null?void 0:n[e];if(ch(a)){let d=(s=ph.get(t))!=null?s:o,l=d?es.get(d):void 0;a=l==null?void 0:l[e]}return ch(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var p;return(p=i[l])!=null?p:""}):a},z=(t,e)=>{let{interfaceLanguage$:i}=Ce(),o=xe(i),n=Wt();return Ep(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var qa;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(qa||(qa={}));var o_=/^\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,r_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wc="?",s_="X-Sentry-Auth",a_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function l_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
59
- `),o,n;for(let a=0;a<i.length;++a){if(o=o_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||wc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=r_.exec(i[a]))n={filename:o[2],function:o[1]||wc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=n_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||wc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=wc),e.push(n)}return e.length?{value:fh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function fh(t){return(t&&t.message||"No error message").split(`
60
- `).filter(i=>!!i)[0]}function d_(t){try{let e=l_(t);if(e)return e}catch(e){}return{value:fh(t),type:t&&t.name,stacktrace:{frames:[]}}}function c_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Sc=class{constructor(e){if(e&&e.dsn){let i=a_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/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:[d_(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(s_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:c_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function mh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function u_(){return window}var Cc=class t extends Sc{constructor(e,i=u_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:a=p=>p,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=s,this.ignoreErrors=d,this.release=l}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=>mh(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=>mh(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],a=Array.isArray(n)?n:null,s=e[o],d=Array.isArray(s)?s:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof n!="string"?n:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Tc,Subscription as p_}from"@vkontakte/videoplayer-shared/es2018";var Ic=null,Gs=class{constructor(e,i,o={}){!Ic&&e.dsn&&(this.sentryClient=new Cc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new p_,this.options=e,this.context=o,Ic=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Ic=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:a,options:s}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:y}=s,{errorType:u,category:_}=i;if(Tc(_)&&y.includes(_)||Tc(u)&&f.includes(u))return;if(Math.random()<=d||Tc(_)&&p.includes(_)||Tc(u)&&l.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras({...a,...o});try{u&&n.captureMessage(u,i.fatal?qa.fatal:qa.error),n.report(e)}catch(b){console.error(b)}}}static getInstance(){return Ic}};var ts=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ts||{});var kc=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()},Ec=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),vh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Dl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},gs=()=>!!Dl(),Pc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Ac=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},gh=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 hh}from"@vkontakte/videoplayer-core/es2018";var _h=()=>({title:z("hotkey_map_modal_title"),closeBtnText:z("hotkey_map_modal_close_btn_text"),groups:[{title:z("hotkey_map_group_title_common"),items:[{description:z("hotkey_map_item_mute_description"),value:z("hotkey_map_item_mute_value")},{description:z("hotkey_map_item_volume_up_description"),value:z("hotkey_map_item_volume_up_value")},{description:z("hotkey_map_item_volume_down_description"),value:z("hotkey_map_item_volume_down_value")},{description:z("hotkey_map_item_pip_description"),value:z("hotkey_map_item_pip_value")},{description:z("hotkey_map_item_full_screen_description"),value:z("hotkey_map_item_full_screen_value")},{description:z("hotkey_map_item_show_context_menu_description"),value:z("hotkey_map_item_show_context_menu_value")},{description:z("hotkey_map_item_show_hotkey_map_description"),value:z("hotkey_map_item_show_hotkey_map_value")}]},{title:z("hotkey_map_group_title_playback"),items:[{description:z("hotkey_map_item_play_toggle_description"),value:z("hotkey_map_item_play_toggle_value")},{description:z("hotkey_map_item_seek_backward_description"),value:z("hotkey_map_item_seek_backward_value")},{description:z("hotkey_map_item_seek_forward_description"),value:z("hotkey_map_item_seek_forward_value")},{description:z("hotkey_map_item_fast_seek_backward_description"),value:z("hotkey_map_item_fast_seek_backward_value")},{description:z("hotkey_map_item_fast_seek_forward_description"),value:z("hotkey_map_item_fast_seek_forward_value")},{description:z("hotkey_map_item_rate_down_description"),value:z("hotkey_map_item_rate_down_value")},{description:z("hotkey_map_item_rate_up_description"),value:z("hotkey_map_item_rate_up_value")},{description:z("hotkey_map_item_prev_frame_description"),value:z("hotkey_map_item_prev_frame_value")},{description:z("hotkey_map_item_next_frame_description"),value:z("hotkey_map_item_next_frame_value")},{description:z("hotkey_map_item_jump_seek_description"),value:z("hotkey_map_item_jump_seek_value")},{description:z("hotkey_map_item_next_video_description"),value:z("hotkey_map_item_next_video_value")},{description:z("hotkey_map_item_prev_video_description"),value:z("hotkey_map_item_prev_video_value")}]},{title:z("hotkey_map_group_title_subtitles"),items:[{description:z("hotkey_map_item_subtitles_toggle_description"),value:z("hotkey_map_item_subtitles_toggle_value")}]},{title:z("hotkey_map_group_title_episodes"),items:[{description:z("hotkey_map_item_prev_episode_description"),value:hh.device.isApple?z("hotkey_map_item_prev_episode_mac_value"):z("hotkey_map_item_prev_episode_pc_value")},{description:z("hotkey_map_item_next_episode_description"),value:hh.device.isApple?z("hotkey_map_item_next_episode_mac_value"):z("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as f_,ValueSubject as Pp}from"@vkontakte/videoplayer-shared/es2018";var Ys=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:f_(this.onResize.bind(this),300)};this.info={isActive$:new Pp(!1),isEnabled$:new Pp(!1),type:0};this.info.isEnabled$=new Pp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}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 remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function js(t){return t instanceof Ys}import{devNull as bh,now as $h}from"@vkontakte/videoplayer-shared/es2018";gv();function Lp(t,e){F(e,!1);let i=Ce();zt(()=>{i.getAdmanWrapper().startPostroll()}),$r(),U()}import{noop as m_}from"@vkontakte/videoplayer-shared/es2018";var v_=(t,e)=>{t.stopPropagation(),e()()},g_=L('<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>'),h_=L("<div><!></div>"),__={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 Vp(t,e){F(e,!0),q(t,__);let[i,o]=De(),n=()=>S(p,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,m_),p=Ce().ui.isMobile,f=v(()=>a()>0&&a()>=s());var y=h_();let u;var _=h(y);{var w=C=>{var T=g_();T.__click=[v_,d];var I=h(T);$e(),g(T),E(M=>me(I,`${M!=null?M:""} `),[()=>z("skip_ads_now")]),$(C,T)},b=C=>{var T=Vr();E(I=>me(T,I),[()=>z("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),$(C,T)};R(_,C=>{r(f)?C(w):C(b,!1)})}g(y),E(C=>u=J(y,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,y),U(),o()}st(["click"]);var b_=L('<button class="svelte-1wy3dql"> </button>'),$_={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 Rp(t,e){F(e,!1),q(t,$_),$r();var i=b_(),o=h(i,!0);g(i),E(n=>me(o,n),[()=>z("visit_advertiser")],hr),$(t,i),U()}var y_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),x_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),w_={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(
58
+ Try switching the\xA0quality to\xA0Auto.`},fh=d_;var ps=new Map;ps.set(vh.EN,fh);ps.set(vh.RU,ph);var gh=new Map,Mp=({language:t,pack:e,fallback:i})=>{if(ps.has(t)){let o=ps.get(t);ps.set(t,{...o,...e})}else ps.set(t,e);gh.set(t,i)},Lp=t=>ps.has(t),Vp=(t,e,i,o)=>{var r;let n=ps.get(t),a=n==null?void 0:n[e];if(mh(a)){let d=(r=gh.get(t))!=null?r:o,l=d?ps.get(d):void 0;a=l==null?void 0:l[e]}return mh(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var p;return(p=i[l])!=null?p:""}):a},F=(t,e)=>{let{interfaceLanguage$:i}=Ie(),o=xe(i),n=Ht();return Vp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var Ya;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Ya||(Ya={}));var c_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,u_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,p_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ic="?",f_="X-Sentry-Auth",m_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function v_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
59
+ `),o,n;for(let a=0;a<i.length;++a){if(o=c_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Ic,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=p_.exec(i[a]))n={filename:o[2],function:o[1]||Ic,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=u_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Ic,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Ic),e.push(n)}return e.length?{value:hh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function hh(t){return(t&&t.message||"No error message").split(`
60
+ `).filter(i=>!!i)[0]}function g_(t){try{let e=v_(t);if(e)return e}catch(e){}return{value:hh(t),type:t&&t.name,stacktrace:{frames:[]}}}function h_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Ec=class{constructor(e){if(e&&e.dsn){let i=m_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/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:[g_(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(f_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:h_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function _h(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function __(){return window}var kc=class t extends Ec{constructor(e,i=__()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:a=p=>p,blacklistUrls:r=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=r,this.ignoreErrors=d,this.release=l}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=>_h(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=>_h(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],a=Array.isArray(n)?n:null,r=e[o],d=Array.isArray(r)?r:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof n!="string"?n:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Pc,Subscription as b_}from"@vkontakte/videoplayer-shared/es2018";var Ac=null,na=class{constructor(e,i,o={}){!Ac&&e.dsn&&(this.sentryClient=new kc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new b_,this.options=e,this.context=o,Ac=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Ac=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:a,options:r}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:b}=r,{errorType:u,category:_}=i;if(Pc(_)&&b.includes(_)||Pc(u)&&f.includes(u))return;if(Math.random()<=d||Pc(_)&&p.includes(_)||Pc(u)&&l.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras({...a,...o});try{u&&n.captureMessage(u,i.fatal?Ya.fatal:Ya.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Ac}};var fs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(fs||{});var Mc=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()},Lc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),bh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},ql=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ps=()=>!!ql(),Vc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Rc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},$h=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 yh}from"@vkontakte/videoplayer-core/es2018";var xh=()=>({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:yh.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:yh.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as $_,ValueSubject as Rp}from"@vkontakte/videoplayer-shared/es2018";var ra=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:$_(this.onResize.bind(this),300)};this.info={isActive$:new Rp(!1),isEnabled$:new Rp(!1),type:0};this.info.isEnabled$=new Rp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}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 remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,r;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(r=this.playerDummyElement)==null||r.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function sa(t){return t instanceof ra}import{devNull as wh,now as Sh}from"@vkontakte/videoplayer-shared/es2018";$v();function Dp(t,e){O(e,!1);let i=Ie();Rt(()=>{i.getAdmanWrapper().startPostroll()}),kr(),H()}import{noop as y_}from"@vkontakte/videoplayer-shared/es2018";var x_=(t,e)=>{t.stopPropagation(),e()()},w_=L('<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>'),S_=L("<div><!></div>"),C_={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 Op(t,e){O(e,!0),W(t,C_);let[i,o]=De(),n=()=>S(p,"$isMobile",i),a=m(e,"position",3,0),r=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,y_),p=Ie().ui.isMobile,f=v(()=>a()>0&&a()>=r());var b=S_();let u;var _=h(b);{var w=C=>{var T=w_();T.__click=[x_,d];var I=h(T);we(),g(T),k(M=>_e(I,`${M!=null?M:""} `),[()=>F("skip_ads_now")]),$(C,T)},y=C=>{var T=Kr();k(I=>_e(T,I),[()=>F("skip_ads_after",{time:Math.ceil(r()-a()).toFixed(0)})]),$(C,T)};V(_,C=>{s(f)?C(w):C(y,!1)})}g(b),k(C=>u=J(b,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":n(),skippable:s(f)})]),$(t,b),H(),o()}lt(["click"]);var T_=L('<button class="svelte-1wy3dql"> </button>'),I_={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 Hp(t,e){O(e,!1),W(t,I_),kr();var i=T_(),o=h(i,!0);g(i),k(n=>_e(o,n),[()=>F("visit_advertiser")],Tr),$(t,i),H()}var E_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),k_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),P_={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(
61
61
  360deg,
62
62
  rgba(0, 0, 0, 0) 0%,
63
63
  rgba(0, 0, 0, 0.05) 12%,
@@ -67,7 +67,7 @@ Try switching the\xA0quality to\xA0Auto.`},dh=i_;var es=new Map;es.set(uh.EN,dh)
67
67
  rgba(0, 0, 0, 0.5) 77%,
68
68
  rgba(0, 0, 0, 0.55) 88%,
69
69
  rgba(0, 0, 0, 0.65) 100%
70
- );}`};function Ol(t,e){F(e,!0),q(t,w_);let[i,o]=De(),n=()=>S(j,"$canSkipAd",i),a=()=>S(W,"$adPlaybackState",i),s=()=>S(I,"$isMobile",i),d=()=>S(H,"$adPosition",i),l=()=>S(Q,"$secondsToWatchBeforeSkipAd",i),p=()=>S(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),y=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),b=Ce(),C=Wt(),T=b.state.isEnded$,I=b.ui.isMobile,M=C.ads.isMobileGoToSiteButton,P=X(void 0),k=X(void 0),V=!1,W=b.ads.playbackState,j=b.ads.canSkip,H=b.ads.position,Q=b.ads.secondsToWatchBeforeSkip,ie=v(()=>n()&&a()!=="inactive"),Z=v(()=>s()&&a()!=="inactive"&&M);zt(()=>{var Ve;let _e=b.getAdmanWrapper();if(bh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[$h(),f()]}),!f()){_e.onAdmanLoadingError();return}let ze=Ie=>{_e.initAdman(Ie),V=!0},re=new AbortController,K=()=>{re.abort()},{width:he,height:ee}=xe(b.ui.playerSize),He=xe(b.ui.isFullscreen),je=(Ve=_())!=null?Ve:xe(b.ui.isAutoplay),we={width:he,height:ee,isFullscreen:He,isAutoplay:je,adsContainer:r(P),adsVideoElement:r(k),slotId:f(),params:y(),previewParam:u(),duration:w()};return window.AdmanHTML?ze(we):_e.loadAdman(re.signal).then(()=>{ze(we)}).catch(()=>{_e.onAdmanLoadingError()}),()=>{bh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[$h(),f()]}),!V&&K()}});var se=x_(),ce=h(se);{var Ee=_e=>{var ze=y_();$(_e,ze)};R(ce,_e=>{s()&&_e(Ee)})}var Me=A(ce,2);gt(Me,_e=>D(k,_e),()=>r(k));var ge=A(Me,2);{var ae=_e=>{Vp(_e,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return b.actions.internal.skipAd}})};R(ge,_e=>{r(ie)&&_e(ae)})}var Pe=A(ge,2);{var ne=_e=>{Lp(_e,{})};R(Pe,_e=>{p()&&_e(ne)})}var N=A(Pe,2);{var ue=_e=>{Rp(_e,{})};R(N,_e=>{r(Z)&&_e(ue)})}g(se),gt(se,_e=>D(P,_e),()=>r(P)),$(t,se),U(),o()}var rn=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(a=>String(a).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var S_=ye('<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 Bp(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=S_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i})),$(t,o)}var C_=ye('<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 Np(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=C_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i})),$(t,o)}function Hl(t,e){let i=m(e,"isActive",3,!1);var o=Oe(),n=pe(o);{var a=d=>{Np(d,{})},s=d=>{Bp(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}$(t,o)}var T_=L('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),I_=L('<div class="live-icon svelte-1s15d2i"><!></div>'),k_=L('<span class="text svelte-1s15d2i"> </span>'),E_=L("<div><!> <!></div>"),P_={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),
70
+ );}`};function Kl(t,e){O(e,!0),W(t,P_);let[i,o]=De(),n=()=>S(q,"$canSkipAd",i),a=()=>S(z,"$adPlaybackState",i),r=()=>S(I,"$isMobile",i),d=()=>S(U,"$adPosition",i),l=()=>S(Y,"$secondsToWatchBeforeSkipAd",i),p=()=>S(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),b=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=Ie(),C=Ht(),T=y.state.isEnded$,I=y.ui.isMobile,M=C.ads.isMobileGoToSiteButton,P=X(void 0),E=X(void 0),R=!1,z=y.ads.playbackState,q=y.ads.canSkip,U=y.ads.position,Y=y.ads.secondsToWatchBeforeSkip,se=v(()=>n()&&a()!=="inactive"),Q=v(()=>r()&&a()!=="inactive"&&M);Rt(()=>{var ie;let ee=y.getAdmanWrapper();if(wh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Sh(),f()]}),!f()){ee.onAdmanLoadingError();return}let We=Ee=>{ee.initAdman(Ee),R=!0},ne=new AbortController,me=()=>{ne.abort()},{width:$e,height:Z}=xe(y.ui.playerSize),ze=xe(y.ui.isFullscreen),Je=(ie=_())!=null?ie:xe(y.ui.isAutoplay),Ce={width:$e,height:Z,isFullscreen:ze,isAutoplay:Je,adsContainer:s(P),adsVideoElement:s(E),slotId:f(),params:b(),previewParam:u(),duration:w()};return window.AdmanHTML?We(Ce):ee.loadAdman(ne.signal).then(()=>{We(Ce)}).catch(()=>{ee.onAdmanLoadingError()}),()=>{wh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Sh(),f()]}),!R&&me()}});var de=k_(),le=h(de);{var Me=ee=>{var We=E_();$(ee,We)};V(le,ee=>{r()&&ee(Me)})}var Be=A(le,2);tt(Be,ee=>D(E,ee),()=>s(E));var ge=A(Be,2);{var ce=ee=>{Op(ee,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};V(ge,ee=>{s(se)&&ee(ce)})}var Ae=A(ge,2);{var ae=ee=>{Dp(ee,{})};V(Ae,ee=>{p()&&ee(ae)})}var N=A(Ae,2);{var Ge=ee=>{Hp(ee,{})};V(N,ee=>{s(Q)&&ee(Ge)})}g(de),tt(de,ee=>D(P,ee),()=>s(P)),$(t,de),H(),o()}var pn=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(a=>String(a).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var A_=Se('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function Fp(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=A_();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i})),$(t,o)}var M_=Se('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #FF3347)" rx="5"></rect><path fill="#F2F3F5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function Up(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=M_();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i})),$(t,o)}function Ql(t,e){let i=m(e,"isActive",3,!1);var o=He(),n=he(o);{var a=d=>{Up(d,{})},r=d=>{Fp(d,{})};V(n,d=>{i()?d(a):d(r,!1)})}$(t,o)}var L_=L('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),V_=L('<div class="live-icon svelte-1s15d2i"><!></div>'),R_=L('<span class="text svelte-1s15d2i"> </span>'),B_=L("<div><!> <!></div>"),N_={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),
71
71
  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%;
72
72
  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;
73
73
  animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
@@ -138,10 +138,10 @@ Try switching the\xA0quality to\xA0Auto.`},dh=i_;var es=new Map;es.set(uh.EN,dh)
138
138
  100% {
139
139
  transform: scaleY(0.6);
140
140
  }
141
- }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Fl(t,e){q(t,P_);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var a=E_();let s;var d=h(a);{var l=u=>{var _=T_();$(u,_)};R(d,u=>{i()&&u(l)})}var p=A(d,2);{var f=u=>{var _=I_(),w=h(_);Hl(w,{isActive:!0}),g(_),$(u,_)},y=u=>{var _=k_(),w=h(_,!0);g(_),E(()=>me(w,e.time)),$(u,_)};R(p,u=>{o()?u(f):u(y,!1)})}g(a),E(u=>s=J(a,1,"wrapper svelte-1s15d2i",null,s,u),[()=>({live:o(),playing:n()})]),$(t,a)}var A_=L('<div role="timer" data-testid="thumb-timer"><!></div>'),M_={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
142
- opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function Ul(t,e){F(e,!0),q(t,M_);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),a=v(()=>rn(e.duration-e.position));var s=A_();let d;var l=h(s);Fl(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),E(p=>d=J(s,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),$(t,s),U()}var Ka=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 z_}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as yh}from"@vkontakte/videoplayer-core/es2018";var nr=t=>{t.stopPropagation(),t.preventDefault()},V_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},R_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},B_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},N_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},xh=t=>t.code==="Escape",D_=t=>t.code==="ArrowLeft",zl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},wh=t=>{if(B_(t)){nr(t),R_(t.target);return}N_(t)&&(nr(t),V_(t.target))},bs=t=>!yh.device.isAndroid&&(t==null?void 0:t.detail)===0||yh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Qa=async(t,e,i)=>{await vo(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(await vo(),i.set(!1),t.focus())},Sh=async(t,e,i)=>{await vo(),t&&!e&&xe(i)&&(i.set(!1),t.focus())},Ga=async(t,e,i)=>{var n;await vo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},Ch=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Mc=(t,e)=>{wh(t),xh(t)&&(nr(t),e())},Lc=async(t,e)=>{zl(t,["ArrowRight"])&&(nr(t),e())},Th=async(t,e,i)=>{if(wh(t),D_(t)){nr(t),e();return}xh(t)&&(nr(t),i())},Ya=(t,e)=>{zl(t)&&(nr(t),e())},Ih=(t,e,i)=>{if(zl(t))nr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),nr(t);return}o==="ArrowRight"&&!e&&(i(!0),nr(t))}},kh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Eh=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 Vc,isValidURL as W_}from"@vkontakte/videoplayer-shared/es2018";var yr={"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 Ph}from"@vkontakte/videoplayer-shared/es2018";var H_=(t,e)=>{Ya(t,()=>e())},F_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),U_={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 Dp(t,e){F(e,!0),q(t,U_);let i=m(e,"onClick",3,Ph),o=m(e,"closeContextMenu",3,Ph),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=F_();a.__click=n,a.__keydown=[H_,n];var s=h(a,!0);g(a),E(()=>{var d;Ne(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ne(a,"data-testid",e.id),me(s,e.label)}),$(t,a),U()}st(["click","keydown"]);var Xs=(t,e)=>t.weight-e.weight;var Wl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Wl||{});var q_=(t,e)=>{Mc(t,e)},K_=t=>{t.preventDefault()},Q_=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),G_={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 Op(t,e){F(e,!0),q(t,G_);let[i,o]=De(),n=()=>S(ie,"$isLive$",i),a=()=>S(Ee,"$isPiPEnabled$",i),s=()=>S(Q,"$chromecastState$",i),d=()=>S(Me,"$pictureInPictureApiIsActive$",i),l=()=>S(ce,"$isLooped$",i),p=()=>S(Z,"$positionExact$",i),f=()=>S(W,"$additionalContextMenuItems$",i),y=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),b=m(e,"menuElementRef",15,void 0),C=X(0),T=X(0),I=Ce(),{pictureInPicture$:M}=to(),P=Wt(),k=I.ui.contextMenu.visible$,V=I.ui.debugPanelVisible,W=I.ui.additionalContextMenuItems$,j=I.ui.t,H=I.actions.internal.togglePictureInPicture,Q=I.state.chromecastState$,ie=I.state.isLive$,Z=I.state.positionExact$,se=I.state.isInteractive,ce=I.state.looped$,{isEnabled$:Ee,isActive$:Me}=M,ge=v(()=>{var Le;return P.features.copyVideoLink&&((Le=I.callbacks)==null?void 0:Le.onCopyVideoLink)}),ae=v(()=>r(ge)&&!n()&&!se),Pe=v(()=>{var Le;return!!((Le=I.callbacks)!=null&&Le.onCopyEmbedCodeClicked)}),ne=v(()=>a()&&s()!==z_.CONNECTED&&!se),N=v(()=>P.features.videoRotate&&!se),ue=v(()=>P.showSupport&&!d()),_e=v(()=>P.features.saveTraceInfoToFile),ze=()=>{var Le;k.set(!1),(Le=e.returnFocus)==null||Le.call(e)},re=(Le,tt)=>{if(!b()||!_()||!w())return;let Xe=b().getBoundingClientRect(),bt=_().getBoundingClientRect();D(C,Le-bt.left),D(T,tt-bt.top),r(C)+Xe.width>bt.width&&D(C,bt.width-Xe.width),r(T)+Xe.height>bt.height&&D(T,bt.height-Xe.height),D(C,fe(Math.max(r(C),0))),D(T,fe(Math.max(r(T),0)))};Fe(()=>{(async()=>{if(b()&&_()&&w()){await vo();let{top:tt,left:Xe,bottom:bt,right:ut}=u(),ft=Xe!=null?Xe:0,Bt=tt!=null?tt:0,Qe=b().getBoundingClientRect();Vc(Xe)&&!Vc(ut)&&(ft=ut-Qe.width),Vc(tt)&&!Vc(bt)&&(Bt=bt-Qe.height),ft=Math.max(ft,0),Bt=Math.max(Bt,0),re(ft,Bt)}})()});let K=()=>{I.actions.internal.videoRotate()},he=()=>{W_(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},ee=()=>{let Le=I.actions.internal.getDebugTextData();if(P.features.saveDebugInfoToFile){let tt=new Blob([...Le],{type:"plain/text"}),Xe=window.URL.createObjectURL(tt);Qs(Xe,"vk_player_debug_info","txt")}else Ka(I.actions.internal.getDebugTextData())},He=()=>{let Le=I.actions.internal.getTraceTextData(),tt=new Blob([...Le],{type:"application/json"}),Xe=window.URL.createObjectURL(tt);Qs(Xe,"vk_player_trace_info","json")},je=()=>{V.set(!0)},we=async()=>{var Le;try{H()}finally{(Le=e.returnFocus)==null||Le.call(e)}},Ve=()=>{I.actions.internal.setLooped(!l())},Ie=()=>{var Le,tt;if(r(Pe)){let Xe=(tt=(Le=I.callbacks)==null?void 0:Le.onCopyEmbedCodeClicked)==null?void 0:tt.call(Le);Xe&&Ka(Xe)}},Ue=(Le=!1)=>{var tt,Xe;if((tt=I.callbacks)!=null&&tt.onCopyVideoLink){let bt=(Xe=I.callbacks)==null?void 0:Xe.onCopyVideoLink(Le,p());bt&&Ka(bt)}},lt=v(()=>P.features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug")),dt=v(()=>r(ge)?{id:"copy-link",weight:yr["copy-link"],label:j("menu_copy_video_link"),onClick:()=>Ue()}:void 0),it=v(()=>r(ae)?{id:"copy-link-timestamp",weight:yr["copy-link-timestamp"],label:j("menu_copy_video_link_with_timestamp"),onClick:()=>Ue(!0)}:void 0),It=v(()=>r(Pe)?{id:"copy-embed-code",weight:yr["copy-embed-code"],label:j("menu_copy_embed_code"),onClick:Ie}:void 0),ht=v(()=>r(ne)?{id:"pip",weight:yr.pip,label:j("menu_pip"),onClick:we}:void 0),Qt=v(()=>({id:"video-loop",weight:yr["video-loop"],label:l()?j("menu_video_loop_off"):j("menu_video_loop_on"),ariaLabel:j("aria_label_menu_loop"),onClick:Ve})),Zt=v(()=>r(N)?{id:"rotate",weight:yr.rotate,label:j("menu_video_rotate"),ariaLabel:j("aria_label_menu_rotate"),onClick:K}:void 0),At=v(()=>r(ue)?{id:"report",weight:yr.report,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,onClick:he}:void 0),Rt=v(()=>({id:"save-debug",weight:yr["save-debug"],label:r(lt),onClick:ee})),O=v(()=>r(_e)?{id:"save-trace",weight:yr["save-trace"],label:j("menu_save_debug"),onClick:He}:void 0),be=v(()=>({id:"debug-info",weight:yr["debug-info"],label:j("menu_debug_overlay"),ariaLabel:j("aria_label_menu_debug_overlay"),onClick:je})),oe=v(()=>[r(dt),r(it),r(It),r(ht),r(Qt),r(Zt),r(At),r(Rt),r(O),r(be),...f()].filter(Le=>!!Le).sort(Xs));var Be=Oe(),Ke=pe(Be);{var Ye=Le=>{var tt=Q_();tt.__contextmenu=[K_],tt.__keydown=[q_,ze],$i(tt,21,()=>r(oe),Xe=>Xe.id,(Xe,bt)=>{Dp(Xe,{get id(){return r(bt).id},get label(){return r(bt).label},get ariaLabel(){return r(bt).ariaLabel},get onClick(){return r(bt).onClick},closeContextMenu:ze})}),g(tt),gt(tt,Xe=>b(Xe),()=>b()),E(()=>{var Xe,bt;return rt(tt,`top: ${(Xe=r(T))!=null?Xe:""}px; left: ${(bt=r(C))!=null?bt:""}px;`)}),$(Le,tt)};R(Ke,Le=>{y()&&Le(Ye)})}$(t,Be),U(),o()}st(["contextmenu","keydown"]);var Rc=class{constructor(e){this.value=e,this.next=null}};var ja=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Rc(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 Y_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),j_={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 ql(t,e){F(e,!0),q(t,j_);let i=m(e,"values",19,()=>[]),o=X(void 0),n=X(null),a=16,s=120,d=60,l=s/d;zt(()=>{r(o).width=s,r(o).height=a,D(n,fe(r(o).getContext("2d")))});function p(u,_,w,b,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect(_,w,b,C)}Fe(()=>{let u="";if(r(n)){let _=i()[0];for(let b=1;b<i().length;b++)i()[b]>_&&(_=i()[b]);r(n).clearRect(0,0,s,a);let w=d-1;for(let b=i().length-1;b>=0;b--){let C=w*l,T=_>0?a*(i()[b]/_):0;p(r(n),C,0,l,T),u=T+" "+u,w--}}});var f=Y_(),y=h(f);gt(y,u=>D(o,u),()=>r(o)),g(f),$(t,f),U()}import{safeStorage as Ah}from"@vkontakte/videoplayer-shared/es2018";var Z_=(t,e)=>{t.stopPropagation(),Ah.remove(Ml),e.set(!1)},X_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),J_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),ob=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),nb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),db=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),ub=L('<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>'),pb={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 Kl(t,e){F(e,!0),q(t,pb);let[i,o]=De(),n=()=>S(d,"$isMobile",i),a=Ce(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=X(fe(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),f=X(0),y=X(0),u=X(0),_=new ja(60),w=new ja(60),b=new ja(60),C=X(fe([])),T=X(fe([])),I=X(fe([])),M=z("aria_label_debug_panel");zt(()=>{Ah.set(Ml,"true"),a.actions.internal.startLogging(),p&&(D(y,fe(p.getVideoPlaybackQuality().droppedVideoFrames)),D(f,fe(p.getVideoPlaybackQuality().totalVideoFrames)));let O=window.setInterval(()=>{D(l,fe(a.actions.internal.getDebugPanelData()))},500),be;return p&&(be=window.setInterval(()=>{if(p){D(y,fe(p.getVideoPlaybackQuality().droppedVideoFrames));let oe=p.getVideoPlaybackQuality().totalVideoFrames;D(u,oe-r(f)),D(f,fe(oe)),_.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&b.push(r(l).bitrate),D(C,fe(_.getValuesFromBottom())),D(T,fe(w.getValuesFromBottom())),D(I,fe(b.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(O),be&&clearInterval(be)}});var P=ub();let k;Ne(P,"aria-label",M);var V=h(P);V.__click=[Z_,s];var W=A(V,2),j=h(W),H=A(h(j),2),Q=h(H,!0);g(H),g(j);var ie=A(j,2);{var Z=O=>{var be=X_(),oe=A(h(be),2),Be=h(oe,!0);g(oe),g(be),E(()=>me(Be,r(l).id)),$(O,be)};R(ie,O=>{r(l).id&&O(Z)})}var se=A(ie,2);{var ce=O=>{var be=J_(),oe=A(h(be),2),Be=h(oe,!0);g(oe),g(be),E(()=>me(Be,r(l).vsid)),$(O,be)};R(se,O=>{r(l).vsid&&O(ce)})}var Ee=A(se,2);{var Me=O=>{var be=eb(),oe=A(h(be),2),Be=h(oe,!0);g(oe),g(be),E(()=>me(Be,r(l).provider)),$(O,be)};R(Ee,O=>{r(l).provider&&O(Me)})}var ge=A(Ee,2);{var ae=O=>{var be=tb(),oe=A(h(be),2),Be=h(oe);g(oe),g(be),E(()=>{var Ke,Ye;return me(Be,`Video: ${r(l).videoCodec||""} ${(Ke=r(l).hdr?"(HDR)":"")!=null?Ke:""}
141
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Gl(t,e){W(t,N_);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var a=B_();let r;var d=h(a);{var l=u=>{var _=L_();$(u,_)};V(d,u=>{i()&&u(l)})}var p=A(d,2);{var f=u=>{var _=V_(),w=h(_);Ql(w,{isActive:!0}),g(_),$(u,_)},b=u=>{var _=R_(),w=h(_,!0);g(_),k(()=>_e(w,e.time)),$(u,_)};V(p,u=>{o()?u(f):u(b,!1)})}g(a),k(u=>r=J(a,1,"wrapper svelte-1s15d2i",null,r,u),[()=>({live:o(),playing:n()})]),$(t,a)}var D_=L('<div role="timer" data-testid="thumb-timer"><!></div>'),O_={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
142
+ opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function Yl(t,e){O(e,!0),W(t,O_);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),a=v(()=>pn(e.duration-e.position));var r=D_();let d;var l=h(r);Gl(l,{get time(){return s(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(r),k(p=>d=J(r,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),$(t,r),H()}var ja=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 j_}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as Ch}from"@vkontakte/videoplayer-core/es2018";var fr=t=>{t.stopPropagation(),t.preventDefault()},F_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},U_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},z_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},W_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Th=t=>t.code==="Escape",q_=t=>t.code==="ArrowLeft",jl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Ih=t=>{if(z_(t)){fr(t),U_(t.target);return}W_(t)&&(fr(t),F_(t.target))},Ls=t=>!Ch.device.isAndroid&&(t==null?void 0:t.detail)===0||Ch.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Za=async(t,e,i)=>{await _o(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(await _o(),i.set(!1),t.focus())},Eh=async(t,e,i)=>{await _o(),t&&!e&&xe(i)&&(i.set(!1),t.focus())},Xa=async(t,e,i)=>{var n;await _o(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},kh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Bc=(t,e)=>{Ih(t),Th(t)&&(fr(t),e())},Nc=async(t,e)=>{jl(t,["ArrowRight"])&&(fr(t),e())},Ph=async(t,e,i)=>{if(Ih(t),q_(t)){fr(t),e();return}Th(t)&&(fr(t),i())},Ja=(t,e)=>{jl(t)&&(fr(t),e())},Ah=(t,e,i)=>{if(jl(t))fr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),fr(t);return}o==="ArrowRight"&&!e&&(i(!0),fr(t))}},Mh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Lh=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 Dc,isValidURL as Z_}from"@vkontakte/videoplayer-shared/es2018";var Pr={"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 Vh}from"@vkontakte/videoplayer-shared/es2018";var Q_=(t,e)=>{Ja(t,()=>e())},G_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Y_={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 zp(t,e){O(e,!0),W(t,Y_);let i=m(e,"onClick",3,Vh),o=m(e,"closeContextMenu",3,Vh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=G_();a.__click=n,a.__keydown=[Q_,n];var r=h(a,!0);g(a),k(()=>{var d;Ne(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ne(a,"data-testid",e.id),_e(r,e.label)}),$(t,a),H()}lt(["click","keydown"]);var la=(t,e)=>t.weight-e.weight;var Zl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Zl||{});var X_=(t,e)=>{Bc(t,e)},J_=t=>{t.preventDefault()},eb=L('<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 Wp(t,e){O(e,!0),W(t,tb);let[i,o]=De(),n=()=>S(se,"$isLive$",i),a=()=>S(Me,"$isPiPEnabled$",i),r=()=>S(Y,"$chromecastState$",i),d=()=>S(Be,"$pictureInPictureApiIsActive$",i),l=()=>S(le,"$isLooped$",i),p=()=>S(Q,"$positionExact$",i),f=()=>S(z,"$additionalContextMenuItems$",i),b=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),C=X(0),T=X(0),I=Ie(),{pictureInPicture$:M}=ro(),P=Ht(),E=I.ui.contextMenu.visible$,R=I.ui.debugPanelVisible,z=I.ui.additionalContextMenuItems$,q=I.ui.t,U=I.actions.internal.togglePictureInPicture,Y=I.state.chromecastState$,se=I.state.isLive$,Q=I.state.positionExact$,de=I.state.isInteractive,le=I.state.looped$,{isEnabled$:Me,isActive$:Be}=M,ge=v(()=>{var fe;return P.features.copyVideoLink&&((fe=I.callbacks)==null?void 0:fe.onCopyVideoLink)}),ce=v(()=>s(ge)&&!n()&&!de),Ae=v(()=>{var fe;return!!((fe=I.callbacks)!=null&&fe.onCopyEmbedCodeClicked)}),ae=v(()=>a()&&r()!==j_.CONNECTED&&!de),N=v(()=>P.features.videoRotate&&!de),Ge=v(()=>P.showSupport&&!d()),ee=v(()=>P.features.saveTraceInfoToFile),We=()=>{var fe;E.set(!1),(fe=e.returnFocus)==null||fe.call(e)},ne=(fe,Ke)=>{if(!y()||!_()||!w())return;let it=y().getBoundingClientRect(),Ze=_().getBoundingClientRect();D(C,fe-Ze.left),D(T,Ke-Ze.top),s(C)+it.width>Ze.width&&D(C,Ze.width-it.width),s(T)+it.height>Ze.height&&D(T,Ze.height-it.height),D(C,ve(Math.max(s(C),0))),D(T,ve(Math.max(s(T),0)))};Ue(()=>{(async()=>{if(y()&&_()&&w()){await _o();let{top:Ke,left:it,bottom:Ze,right:yt}=u(),mt=it!=null?it:0,Wt=Ke!=null?Ke:0,gt=y().getBoundingClientRect();Dc(it)&&!Dc(yt)&&(mt=yt-gt.width),Dc(Ke)&&!Dc(Ze)&&(Wt=Ze-gt.height),mt=Math.max(mt,0),Wt=Math.max(Wt,0),ne(mt,Wt)}})()});let me=()=>{I.actions.internal.videoRotate()},$e=()=>{Z_(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},Z=()=>{let fe=I.actions.internal.getDebugTextData();if(P.features.saveDebugInfoToFile){let Ke=new Blob([...fe],{type:"plain/text"}),it=window.URL.createObjectURL(Ke);oa(it,"vk_player_debug_info","txt")}else ja(I.actions.internal.getDebugTextData())},ze=()=>{let fe=I.actions.internal.getTraceTextData(),Ke=new Blob([...fe],{type:"application/json"}),it=window.URL.createObjectURL(Ke);oa(it,"vk_player_trace_info","json")},Je=()=>{R.set(!0)},Ce=async()=>{var fe;try{U()}finally{(fe=e.returnFocus)==null||fe.call(e)}},ie=()=>{I.actions.internal.setLooped(!l())},Ee=()=>{var fe,Ke;if(s(Ae)){let it=(Ke=(fe=I.callbacks)==null?void 0:fe.onCopyEmbedCodeClicked)==null?void 0:Ke.call(fe);it&&ja(it)}},qe=(fe=!1)=>{var Ke,it;if((Ke=I.callbacks)!=null&&Ke.onCopyVideoLink){let Ze=(it=I.callbacks)==null?void 0:it.onCopyVideoLink(fe,p());Ze&&ja(Ze)}},nt=v(()=>P.features.saveDebugInfoToFile?q("menu_save_debug"):q("menu_copy_debug")),dt=v(()=>s(ge)?{id:"copy-link",weight:Pr["copy-link"],label:q("menu_copy_video_link"),onClick:()=>qe()}:void 0),rt=v(()=>s(ce)?{id:"copy-link-timestamp",weight:Pr["copy-link-timestamp"],label:q("menu_copy_video_link_with_timestamp"),onClick:()=>qe(!0)}:void 0),St=v(()=>s(Ae)?{id:"copy-embed-code",weight:Pr["copy-embed-code"],label:q("menu_copy_embed_code"),onClick:Ee}:void 0),ct=v(()=>s(ae)?{id:"pip",weight:Pr.pip,label:q("menu_pip"),onClick:Ce}:void 0),Yt=v(()=>({id:"video-loop",weight:Pr["video-loop"],label:l()?q("menu_video_loop_off"):q("menu_video_loop_on"),ariaLabel:q("aria_label_menu_loop"),onClick:ie})),ni=v(()=>s(N)?{id:"rotate",weight:Pr.rotate,label:q("menu_video_rotate"),ariaLabel:q("aria_label_menu_rotate"),onClick:me}:void 0),Ot=v(()=>s(Ge)?{id:"report",weight:Pr.report,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,onClick:$e}:void 0),Et=v(()=>({id:"save-debug",weight:Pr["save-debug"],label:s(nt),onClick:Z})),te=v(()=>s(ee)?{id:"save-trace",weight:Pr["save-trace"],label:q("menu_save_debug"),onClick:ze}:void 0),At=v(()=>({id:"debug-info",weight:Pr["debug-info"],label:q("menu_debug_overlay"),ariaLabel:q("aria_label_menu_debug_overlay"),onClick:Je})),j=v(()=>[s(dt),s(rt),s(St),s(ct),s(Yt),s(ni),s(Ot),s(Et),s(te),s(At),...f()].filter(fe=>!!fe).sort(la));var pe=He(),Pe=he(pe);{var Re=fe=>{var Ke=eb();Ke.__contextmenu=[J_],Ke.__keydown=[X_,We],bi(Ke,21,()=>s(j),it=>it.id,(it,Ze)=>{zp(it,{get id(){return s(Ze).id},get label(){return s(Ze).label},get ariaLabel(){return s(Ze).ariaLabel},get onClick(){return s(Ze).onClick},closeContextMenu:We})}),g(Ke),tt(Ke,it=>y(it),()=>y()),k(()=>{var it,Ze;return st(Ke,`top: ${(it=s(T))!=null?it:""}px; left: ${(Ze=s(C))!=null?Ze:""}px;`)}),$(fe,Ke)};V(Pe,fe=>{b()&&fe(Re)})}$(t,pe),H(),o()}lt(["contextmenu","keydown"]);var Oc=class{constructor(e){this.value=e,this.next=null}};var el=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Oc(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=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),ob={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 Xl(t,e){O(e,!0),W(t,ob);let i=m(e,"values",19,()=>[]),o=X(void 0),n=X(null),a=16,r=120,d=60,l=r/d;Rt(()=>{s(o).width=r,s(o).height=a,D(n,ve(s(o).getContext("2d")))});function p(u,_,w,y,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect(_,w,y,C)}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,r,a);let w=d-1;for(let y=i().length-1;y>=0;y--){let C=w*l,T=_>0?a*(i()[y]/_):0;p(s(n),C,0,l,T),u=T+" "+u,w--}}});var f=ib(),b=h(f);tt(b,u=>D(o,u),()=>s(o)),g(f),$(t,f),H()}import{safeStorage as Rh}from"@vkontakte/videoplayer-shared/es2018";var nb=(t,e)=>{t.stopPropagation(),Rh.remove(Ol),e.set(!1)},rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),db=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),ub=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),pb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),fb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),mb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),vb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),gb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),hb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),_b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),bb=L('<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>'),$b={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 Jl(t,e){O(e,!0),W(t,$b);let[i,o]=De(),n=()=>S(d,"$isMobile",i),a=Ie(),r=a.ui.debugPanelVisible,d=a.ui.isMobile,l=X(ve(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),f=X(0),b=X(0),u=X(0),_=new el(60),w=new el(60),y=new el(60),C=X(ve([])),T=X(ve([])),I=X(ve([])),M=F("aria_label_debug_panel");Rt(()=>{Rh.set(Ol,"true"),a.actions.internal.startLogging(),p&&(D(b,ve(p.getVideoPlaybackQuality().droppedVideoFrames)),D(f,ve(p.getVideoPlaybackQuality().totalVideoFrames)));let j=window.setInterval(()=>{D(l,ve(a.actions.internal.getDebugPanelData()))},500),pe;return p&&(pe=window.setInterval(()=>{if(p){D(b,ve(p.getVideoPlaybackQuality().droppedVideoFrames));let Pe=p.getVideoPlaybackQuality().totalVideoFrames;D(u,Pe-s(f)),D(f,ve(Pe)),_.push(s(u)),s(l).speed&&w.push(s(l).speed),s(l).bitrate&&y.push(s(l).bitrate),D(C,ve(_.getValuesFromBottom())),D(T,ve(w.getValuesFromBottom())),D(I,ve(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(j),pe&&clearInterval(pe)}});var P=bb();let E;Ne(P,"aria-label",M);var R=h(P);R.__click=[nb,r];var z=A(R,2),q=h(z),U=A(h(q),2),Y=h(U,!0);g(U),g(q);var se=A(q,2);{var Q=j=>{var pe=rb(),Pe=A(h(pe),2),Re=h(Pe,!0);g(Pe),g(pe),k(()=>_e(Re,s(l).id)),$(j,pe)};V(se,j=>{s(l).id&&j(Q)})}var de=A(se,2);{var le=j=>{var pe=sb(),Pe=A(h(pe),2),Re=h(Pe,!0);g(Pe),g(pe),k(()=>_e(Re,s(l).vsid)),$(j,pe)};V(de,j=>{s(l).vsid&&j(le)})}var Me=A(de,2);{var Be=j=>{var pe=ab(),Pe=A(h(pe),2),Re=h(Pe,!0);g(Pe),g(pe),k(()=>_e(Re,s(l).provider)),$(j,pe)};V(Me,j=>{s(l).provider&&j(Be)})}var ge=A(Me,2);{var ce=j=>{var pe=lb(),Pe=A(h(pe),2),Re=h(Pe);g(Pe),g(pe),k(()=>{var fe,Ke;return _e(Re,`Video: ${s(l).videoCodec||""} ${(fe=s(l).hdr?"(HDR)":"")!=null?fe:""}
143
143
  &
144
- Audio: ${r(l).audioCodec||""} ${(Ye=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?Ye:""}`)}),$(O,be)};R(ge,O=>{(r(l).videoCodec||r(l).audioCodec)&&O(ae)})}var Pe=A(ge,2);{var ne=O=>{var be=ib(),oe=A(h(be),2),Be=h(oe,!0);g(oe),g(be),E(()=>me(Be,r(l).viewport)),$(O,be)};R(Pe,O=>{r(l).viewport&&O(ne)})}var N=A(Pe,2);{var ue=O=>{var be=ob(),oe=A(h(be),2),Be=h(oe,!0);g(oe),g(be),E(()=>me(Be,r(l).videoSize)),$(O,be)};R(N,O=>{r(l).videoSize&&O(ue)})}var _e=A(N,2);{var ze=O=>{var be=nb(),oe=A(h(be),2),Be=h(oe,!0);g(oe),g(be),E(()=>me(Be,r(l).cdn)),$(O,be)};R(_e,O=>{r(l).cdn&&O(ze)})}var re=A(_e,2);{var K=O=>{var be=rb(),oe=A(h(be),2),Be=h(oe);g(oe),g(be),E(()=>{var Ke;return me(Be,`${(Ke=r(l).volume)!=null?Ke:""} %`)}),$(O,be)};R(re,O=>{r(l).volume&&O(K)})}var he=A(re,2);{var ee=O=>{var be=sb(),oe=A(h(be),2),Be=h(oe);g(oe),g(be),E(Ke=>me(Be,`${Ke!=null?Ke:""} s`),[()=>r(l).buffer.toFixed(2)]),$(O,be)};R(he,O=>{r(l).buffer&&O(ee)})}var He=A(he,2);{var je=O=>{var be=ab(),oe=A(h(be),2),Be=h(oe);g(oe),g(be),E(Ke=>me(Be,`${Ke!=null?Ke:""} s`),[()=>r(l).liveLatency.toFixed(2)]),$(O,be)};R(He,O=>{r(l).liveLatency&&O(je)})}var we=A(He,2);{var Ve=O=>{var be=lb(),oe=A(h(be),2),Be=h(oe,!0);g(oe),g(be),E(Ke=>me(Be,Ke),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ke})=>Ke).map(({value:Ke,title:Ye})=>`${Ye} ${((Ke!=null?Ke:0)/1e3).toFixed(2)} s`).join(" & ")]),$(O,be)};R(we,O=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&O(Ve)})}var Ie=A(we,2),Ue=A(h(Ie),2),lt=h(Ue);g(Ue),g(Ie);var dt=A(Ie,2);{var it=O=>{var be=db(),oe=A(h(be),2);ql(oe,{get values(){return r(T)}});var Be=A(oe,2),Ke=h(Be);g(Be),g(be),E(Ye=>me(Ke,`${Ye!=null?Ye:""} Kbps`),[()=>r(l).speed.toFixed(2)]),$(O,be)};R(dt,O=>{r(l).speed&&O(it)})}var It=A(dt,2);{var ht=O=>{var be=cb(),oe=A(h(be),2);ql(oe,{get values(){return r(I)}});var Be=A(oe,2),Ke=h(Be);g(Be),g(be),E(Ye=>me(Ke,`${Ye!=null?Ye:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),$(O,be)};R(It,O=>{r(l).bitrate&&O(ht)})}var Qt=A(It,2),Zt=A(h(Qt),2);ql(Zt,{get values(){return r(C)}});var At=A(Zt,2),Rt=h(At,!0);g(At),g(Qt),g(W),g(P),E(O=>{var be,oe;k=J(P,1,"container svelte-4deykz",null,k,O),me(Q,r(l).version),me(lt,`${(be=r(y))!=null?be:""} / ${(oe=r(f))!=null?oe:""} frames`),me(Rt,r(u))},[()=>({"container-mobile":n()})]),$(t,P),U(),o()}st(["click"]);import{noop as fb}from"@vkontakte/videoplayer-shared/es2018";var mb=(t,e)=>{t.stopPropagation(),e()()},vb=L('<div class="close svelte-1ome55p"></div>'),gb={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 Js(t,e){F(e,!0),q(t,gb);let i=m(e,"onClick",3,fb);var o=vb();o.__click=[mb,i],$(t,o),U()}st(["click"]);import{noop as hb}from"@vkontakte/videoplayer-shared/es2018";var _b=L('<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>'),bb={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 Ql(t,e){F(e,!0),q(t,bb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,hb),n=5e3,a=X(void 0),s,d,l=X(0),p;Fe(()=>{i()&&(d=Date.now(),D(l,fe(requestAnimationFrame(y))))});let f=()=>{r(l)&&(cancelAnimationFrame(r(l)),D(l,0))},y=()=>{if(!i()){f();return}p=(Date.now()-d)/n,p<1?(s==null||s.clearRect(0,0,100,100),s==null||s.beginPath(),s==null||s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),s==null||s.stroke(),D(l,fe(requestAnimationFrame(y)))):o()()};zt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{f()}}),mn(()=>{f()});var u=_b(),_=h(u);gt(_,w=>D(a,w),()=>r(a)),$e(2),g(u),$(t,u),U()}var $b=(t,e,i)=>{e(!1),i()},yb=L('<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),xb={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 Hp(t,e){F(e,!0),q(t,xb);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,y=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},b=()=>{e.clickCloseIcon(),_()};zt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var C=Oe(),T=pe(C);{var I=M=>{var P=yb(),k=A(pe(P),2),V=h(k),W=h(V),j=h(W,!0);g(W);var H=A(W,2);Js(H,{onClick:b}),g(V);var Q=A(V,2);Q.__click=[$b,p,y];var ie=h(Q),Z=h(ie),se=h(Z);let ce;var Ee=A(se,2);{var Me=ne=>{let N=v(()=>a()&&n());Ql(ne,{get isRunning(){return r(N)},onTimerEnded:w})};R(Ee,ne=>{n()&&ne(Me)})}g(Z),g(ie);var ge=A(ie,2),ae=h(ge),Pe=h(ae,!0);g(ae),g(ge),g(Q),g(k),E((ne,N)=>{me(j,ne),rt(Z,`background-image: url('${e.thumb}')`),ce=J(se,1,"thumb-overlay svelte-jfbaax",null,ce,N),me(Pe,e.title)},[()=>z("end_screen_next_video"),()=>({withOpacity:n()})]),$(M,P)};R(T,M=>{e.isHide||M(I)})}$(t,C),U(),o()}st(["click"]);import{PlaybackState as ea}from"@vkontakte/videoplayer-core/es2018";import{checkNever as Sb}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as vn}from"@vkontakte/videoplayer-statistics/es2018";var Fp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Up=(t,e)=>Math.max(+(t-e).toFixed(2),0),Bc=(t,e,i)=>{let o=Fp(e,i);e<1?t.actions.internal.setVolume(o):xe(t.state.muted$)&&t.actions.external.setMuted(!1)},Nc=(t,e,i)=>{let o=Up(e,i);e>0&&t.actions.internal.setVolume(o)};var $s=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var Cb=(t,e)=>{e(t)},Tb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Ib={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function zp(t,e){var At,Rt;F(e,!0),q(t,Ib);let[i,o]=De(),n=()=>S(j,"$playbackState$",i),a=()=>S(H,"$adPlaybackState",i),s=()=>S(se,"$disabledControls$",i),d=()=>S(Q,"$positionExact$",i),l=()=>S(ie,"$duration$",i),p=()=>S(K,"$isAudioAvailable$",i),f=()=>S(Z,"$volume$",i),y=()=>S(ge,"$availablePlaybackRates$",i),u=()=>S(Me,"$currentPlaybackRate$",i),_=()=>S(ee,"$isInteractiveTime$",i),w=()=>S(He,"$showInteractiveTimeIndicatorTooltip$",i),b=()=>S(ue,"$isEnded$",i),C=()=>S(ce,"$muted$",i),T=()=>S(Ee,"$currentSubtitle$",i),I=()=>S(_e,"$overlayContainer$",i),M=m(e,"nextButtonActive",3,!1),P=m(e,"prevButtonActive",3,!1),k=Ce(),V=Wt(),W=k.getLogger().createComponentLog("KeyboardControls component"),j=k.state.playbackState$,H=k.ads.playbackState,Q=k.state.positionExact$,ie=k.state.duration$,Z=k.state.volume$,se=k.ui.controls.disabledControls$,ce=k.state.muted$,Ee=k.state.currentSubtitle$,Me=k.state.currentPlaybackRate$,ge=k.state.availablePlaybackRates$,ae=k.ui.contextMenu.openedByHotKey$,Pe=k.ui.contextMenu.lastActiveElem$,ne=k.ui.contextMenu.visible$,N=k.ui.contextMenu.position$,ue=k.state.isEnded$,_e=k.ui.overlayContainer$,ze=(At=k.callbacks)==null?void 0:At.onAudioDoesNotExistHint,re=(Rt=k.callbacks)==null?void 0:Rt.onAudioDisabledHint,K=k.state.isAudioAvailable$,he=k.state.isAudioDisabled,ee=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:He}=to(),je=0,we=!0,Ve=X(void 0),Ie=O=>(O!==we&&(we=O,je=0),je+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*je)/1e3),Ue=(O,be=!1)=>{var ri,bi;let oe=O.target,Be=(ri=oe==null?void 0:oe.getAttribute("role"))==null?void 0:ri.includes("menuitem"),Ke=oe.classList.contains("btn"),Ye=O.code;if(Ke&&Ye==="Space")return!1;let Le=Vg.has(Ye);if(Be&&Le)return!1;let tt=!Lg.has(Ye);if(O.ctrlKey&&tt||O.altKey&&tt||O.metaKey)return!1;let Xe=Be&&Ye==="Escape";Rg.has(Ye)||Xe||e.hideContextMenu();let bt=n()===ea.PLAYING||n()===ea.PAUSED,ut=e.isAds&&(a()==="paused"||a()==="playing"),ft=!ut&&!s().has("TIMELINE");if(!(bt||ut))return!1;W({message:`key down, code: ${Ye}, isExternal = ${be}`});let Bt=!1,Qe=()=>{Bt=!0,be||O.preventDefault()};switch(Ye){case"KeyJ":case"ArrowLeft":{if(!ft)break;if(O.ctrlKey||O.altKey){let et=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(et),et&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:et.text}),Qe()}else{let et=O.shiftKey?Ie(!1):V.controls.seekStepKeyboard/1e3,Gt=Math.max(d()-et,0);d()>0&&(k.actions.internal.seekTime(Gt,vn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:et.toString()}),Qe())}break}case"KeyL":case"ArrowRight":{if(!ft)break;if(O.ctrlKey||O.altKey){let et=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(et),et&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:et.text}),Qe()}else{let et=O.shiftKey?Ie(!0):V.controls.seekStepKeyboard/1e3,Gt=Math.min(d()+et,l());Math.round(d())<Math.round(l())&&(k.actions.internal.seekTime(Gt,vn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:et.toString()}),Qe())}break}case"ArrowUp":{if($s({isAudioDisabled:he,audioDisabledHintCallback:re,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})){let et=f(),Gt=V.controls.volumeStepKeyboard,ki=et<=1;if(Bc(k,et,Gt),ki){let zi=Math.round(Fp(et,Gt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:zi}})}}Qe();break}case"ArrowDown":{if($s({isAudioDisabled:he,audioDisabledHintCallback:re,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})){let et=f(),Gt=V.controls.volumeStepKeyboard,ki=et>=0;if(Nc(k,et,Gt),ki){let zi=Math.round(Up(et,Gt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:zi}})}}Qe();break}case"Comma":{if(O.shiftKey){k.actions.internal.decrementPlaybackRate();let et=y().find(Gt=>Gt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:et==null?void 0:et.displayValue}),Qe()}else{if(ut||n()!==ea.PAUSED)break;let et=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(et,vn.DOUBLE_TAP),Qe())}break}case"Period":{if(O.shiftKey){k.actions.internal.incrementPlaybackRate();let et=y().find(Gt=>Gt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:et==null?void 0:et.displayValue}),Qe()}else{if(ut||n()!==ea.PAUSED)break;let et=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(et,vn.DOUBLE_TAP),Qe())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if(_()&&w()&&He.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let et="PLAY";n()===ea.PAUSED?et="PAUSE":b()&&(et="REPLAY"),e.showHotKeyHelpers({type:et})}Qe();break;case"KeyM":{$s({isAudioDisabled:he,audioDisabledHintCallback:re,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),Qe();break}case"KeyF":e.toggleFullscreen(),Qe();break;case"KeyC":k.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(bi=T())==null?void 0:bi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Qe();break;case"KeyI":k.actions.internal.togglePictureInPicture(),Qe();break;case"Digit1":case"Numpad1":if(O.shiftKey){let et=Eh(I());N.set(et),Pe.set(oe),ae.set(!0),ne.set(!0),Qe();break}e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,vn.DOUBLE_TAP),Qe();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,vn.DOUBLE_TAP),Qe();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,vn.DOUBLE_TAP),Qe();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,vn.DOUBLE_TAP),Qe();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,vn.DOUBLE_TAP),Qe();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,vn.DOUBLE_TAP),Qe();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,vn.DOUBLE_TAP),Qe();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,vn.DOUBLE_TAP),Qe();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,vn.DOUBLE_TAP),Qe();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,vn.DOUBLE_TAP),Qe();break;case"Slash":{O.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),Qe());break}case"KeyN":O.shiftKey&&M()&&(k.actions.internal.nextVideoClick(),Qe());break;case"KeyP":O.shiftKey&&P()&&(k.actions.internal.prevVideoClick(),Qe());break;case"ShiftLeft":case"ShiftRight":Qe();break;case"Tab":case"Escape":case"Enter":break;default:Sb(Ye);break}return Bt},lt=O=>{let be=O.code;if(O.ctrlKey||O.altKey||O.metaKey)return;let oe=n()===ea.PLAYING||n()===ea.PAUSED,Be=e.isAds&&(a()==="paused"||a()==="playing");if(oe||Be)switch(be){case"ShiftLeft":case"ShiftRight":je=0;break}},dt=z("aria_label_video_player"),it=()=>{var O;return(O=r(Ve))==null?void 0:O.focus()},It=O=>O.type==="keydown"?Ue(O,!0):(O.type==="keyup"&&lt(O),!1);var ht=Tb();ht.__keyup=lt,ht.__keydown=[Cb,Ue],Ne(ht,"aria-label",dt);var Qt=h(ht);ve(Qt,()=>{var O;return(O=e.children)!=null?O:te}),g(ht),gt(ht,O=>D(Ve,O),()=>r(Ve)),$(t,ht);var Zt=U({focus:it,handleExternalKeyboardEvent:It});return o(),Zt}st(["keyup","keydown"]);var kb=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),Eb={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);}
144
+ Audio: ${s(l).audioCodec||""} ${(Ke=s(l).audioLanguage?`(${s(l).audioLanguage})`:"")!=null?Ke:""}`)}),$(j,pe)};V(ge,j=>{(s(l).videoCodec||s(l).audioCodec)&&j(ce)})}var Ae=A(ge,2);{var ae=j=>{var pe=db(),Pe=A(h(pe),2),Re=h(Pe,!0);g(Pe),g(pe),k(()=>_e(Re,s(l).viewport)),$(j,pe)};V(Ae,j=>{s(l).viewport&&j(ae)})}var N=A(Ae,2);{var Ge=j=>{var pe=cb(),Pe=A(h(pe),2),Re=h(Pe,!0);g(Pe),g(pe),k(()=>_e(Re,s(l).videoSize)),$(j,pe)};V(N,j=>{s(l).videoSize&&j(Ge)})}var ee=A(N,2);{var We=j=>{var pe=ub(),Pe=A(h(pe),2),Re=h(Pe,!0);g(Pe),g(pe),k(()=>_e(Re,s(l).cdn)),$(j,pe)};V(ee,j=>{s(l).cdn&&j(We)})}var ne=A(ee,2);{var me=j=>{var pe=pb(),Pe=A(h(pe),2),Re=h(Pe);g(Pe),g(pe),k(()=>{var fe;return _e(Re,`${(fe=s(l).volume)!=null?fe:""} %`)}),$(j,pe)};V(ne,j=>{s(l).volume&&j(me)})}var $e=A(ne,2);{var Z=j=>{var pe=fb(),Pe=A(h(pe),2),Re=h(Pe);g(Pe),g(pe),k(fe=>_e(Re,`${fe!=null?fe:""} s`),[()=>s(l).position.toFixed(2)]),$(j,pe)};V($e,j=>{s(l).position&&j(Z)})}var ze=A($e,2);{var Je=j=>{var pe=mb(),Pe=A(h(pe),2),Re=h(Pe);g(Pe),g(pe),k(fe=>_e(Re,`${fe!=null?fe:""} s`),[()=>s(l).buffer.toFixed(2)]),$(j,pe)};V(ze,j=>{s(l).buffer&&j(Je)})}var Ce=A(ze,2);{var ie=j=>{var pe=vb(),Pe=A(h(pe),2),Re=h(Pe);g(Pe),g(pe),k(fe=>_e(Re,`${fe!=null?fe:""} s`),[()=>s(l).liveLatency.toFixed(2)]),$(j,pe)};V(Ce,j=>{s(l).liveLatency&&j(ie)})}var Ee=A(Ce,2);{var qe=j=>{var pe=gb(),Pe=A(h(pe),2),Re=h(Pe,!0);g(Pe),g(pe),k(fe=>_e(Re,fe),[()=>[{value:s(l).currentVideoSegmentLength,title:"Video:"},{value:s(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:fe})=>fe).map(({value:fe,title:Ke})=>`${Ke} ${((fe!=null?fe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(j,pe)};V(Ee,j=>{(s(l).currentVideoSegmentLength||s(l).currentAudioSegmentLength)&&j(qe)})}var nt=A(Ee,2),dt=A(h(nt),2),rt=h(dt);g(dt),g(nt);var St=A(nt,2);{var ct=j=>{var pe=hb(),Pe=A(h(pe),2);Xl(Pe,{get values(){return s(T)}});var Re=A(Pe,2),fe=h(Re);g(Re),g(pe),k(Ke=>_e(fe,`${Ke!=null?Ke:""} Kbps`),[()=>s(l).speed.toFixed(2)]),$(j,pe)};V(St,j=>{s(l).speed&&j(ct)})}var Yt=A(St,2);{var ni=j=>{var pe=_b(),Pe=A(h(pe),2);Xl(Pe,{get values(){return s(I)}});var Re=A(Pe,2),fe=h(Re);g(Re),g(pe),k(Ke=>_e(fe,`${Ke!=null?Ke:""} Kbps`),[()=>s(l).bitrate.toFixed(2)]),$(j,pe)};V(Yt,j=>{s(l).bitrate&&j(ni)})}var Ot=A(Yt,2),Et=A(h(Ot),2);Xl(Et,{get values(){return s(C)}});var te=A(Et,2),At=h(te,!0);g(te),g(Ot),g(z),g(P),k(j=>{var pe,Pe;E=J(P,1,"container svelte-4deykz",null,E,j),_e(Y,s(l).version),_e(rt,`${(pe=s(b))!=null?pe:""} / ${(Pe=s(f))!=null?Pe:""} frames`),_e(At,s(u))},[()=>({"container-mobile":n()})]),$(t,P),H(),o()}lt(["click"]);import{noop as yb}from"@vkontakte/videoplayer-shared/es2018";var xb=(t,e)=>{t.stopPropagation(),e()()},wb=L('<div class="close svelte-1ome55p"></div>'),Sb={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 da(t,e){O(e,!0),W(t,Sb);let i=m(e,"onClick",3,yb);var o=wb();o.__click=[xb,i],$(t,o),H()}lt(["click"]);import{noop as Cb}from"@vkontakte/videoplayer-shared/es2018";var Tb=L('<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>'),Ib={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function ed(t,e){O(e,!0),W(t,Ib);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,Cb),n=5e3,a=X(void 0),r,d,l=X(0),p;Ue(()=>{i()&&(d=Date.now(),D(l,ve(requestAnimationFrame(b))))});let f=()=>{s(l)&&(cancelAnimationFrame(s(l)),D(l,0))},b=()=>{if(!i()){f();return}p=(Date.now()-d)/n,p<1?(r==null||r.clearRect(0,0,100,100),r==null||r.beginPath(),r==null||r.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),r==null||r.stroke(),D(l,ve(requestAnimationFrame(b)))):o()()};Rt(()=>{if(r=s(a).getContext("2d"),!!r)return r.lineWidth=6,r.lineCap="round",r.strokeStyle="#fff",()=>{f()}}),wn(()=>{f()});var u=Tb(),_=h(u);tt(_,w=>D(a,w),()=>s(a)),we(2),g(u),$(t,u),H()}var Eb=(t,e,i)=>{e(!1),i()},kb=L('<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),Pb={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 qp(t,e){O(e,!0),W(t,Pb);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),r=Ie(),d=r.ui.autoplayNextEnabled$,l=r.ui.timerNextVideoRunning$,p=r.actions.internal.nextVideoClick,f=r.actions.internal.nextVideoAnnouncementShow,b=r.actions.internal.nextVideoAnnouncementClick,u=r.actions.internal.nextVideoAnnouncementAuto,_=r.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),_()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var C=He(),T=he(C);{var I=M=>{var P=kb(),E=A(he(P),2),R=h(E),z=h(R),q=h(z,!0);g(z);var U=A(z,2);da(U,{onClick:y}),g(R);var Y=A(R,2);Y.__click=[Eb,p,b];var se=h(Y),Q=h(se),de=h(Q);let le;var Me=A(de,2);{var Be=ae=>{let N=v(()=>a()&&n());ed(ae,{get isRunning(){return s(N)},onTimerEnded:w})};V(Me,ae=>{n()&&ae(Be)})}g(Q),g(se);var ge=A(se,2),ce=h(ge),Ae=h(ce,!0);g(ce),g(ge),g(Y),g(E),k((ae,N)=>{_e(q,ae),st(Q,`background-image: url('${e.thumb}')`),le=J(de,1,"thumb-overlay svelte-jfbaax",null,le,N),_e(Ae,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),$(M,P)};V(T,M=>{e.isHide||M(I)})}$(t,C),H(),o()}lt(["click"]);import{PlaybackState as ca}from"@vkontakte/videoplayer-core/es2018";import{checkNever as Mb}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Sn}from"@vkontakte/videoplayer-statistics/es2018";var Kp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Qp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Hc=(t,e,i)=>{let o=Kp(e,i);e<1?t.actions.internal.setVolume(o):xe(t.state.muted$)&&t.actions.external.setMuted(!1)},Fc=(t,e,i)=>{let o=Qp(e,i);e>0&&t.actions.internal.setVolume(o)};var Vs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var Lb=(t,e)=>{e(t)},Vb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Rb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Gp(t,e){var Ot,Et;O(e,!0),W(t,Rb);let[i,o]=De(),n=()=>S(q,"$playbackState$",i),a=()=>S(U,"$adPlaybackState",i),r=()=>S(de,"$disabledControls$",i),d=()=>S(Y,"$positionExact$",i),l=()=>S(se,"$duration$",i),p=()=>S(me,"$isAudioAvailable$",i),f=()=>S(Q,"$volume$",i),b=()=>S(ge,"$availablePlaybackRates$",i),u=()=>S(Be,"$currentPlaybackRate$",i),_=()=>S(Z,"$isInteractiveTime$",i),w=()=>S(ze,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(Ge,"$isEnded$",i),C=()=>S(le,"$muted$",i),T=()=>S(Me,"$currentSubtitle$",i),I=()=>S(ee,"$overlayContainer$",i),M=m(e,"nextButtonActive",3,!1),P=m(e,"prevButtonActive",3,!1),E=Ie(),R=Ht(),z=E.getLogger().createComponentLog("KeyboardControls component"),q=E.state.playbackState$,U=E.ads.playbackState,Y=E.state.positionExact$,se=E.state.duration$,Q=E.state.volume$,de=E.ui.controls.disabledControls$,le=E.state.muted$,Me=E.state.currentSubtitle$,Be=E.state.currentPlaybackRate$,ge=E.state.availablePlaybackRates$,ce=E.ui.contextMenu.openedByHotKey$,Ae=E.ui.contextMenu.lastActiveElem$,ae=E.ui.contextMenu.visible$,N=E.ui.contextMenu.position$,Ge=E.state.isEnded$,ee=E.ui.overlayContainer$,We=(Ot=E.callbacks)==null?void 0:Ot.onAudioDoesNotExistHint,ne=(Et=E.callbacks)==null?void 0:Et.onAudioDisabledHint,me=E.state.isAudioAvailable$,$e=E.state.isAudioDisabled,Z=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:ze}=ro(),Je=0,Ce=!0,ie=X(void 0),Ee=te=>(te!==Ce&&(Ce=te,Je=0),Je+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*Je)/1e3),qe=(te,At=!1)=>{var xi,zt;let j=te.target,pe=(xi=j==null?void 0:j.getAttribute("role"))==null?void 0:xi.includes("menuitem"),Pe=j.classList.contains("btn"),Re=te.code;if(Pe&&Re==="Space")return!1;let fe=Dg.has(Re);if(pe&&fe)return!1;let Ke=!Ng.has(Re);if(te.ctrlKey&&Ke||te.altKey&&Ke||te.metaKey)return!1;let it=pe&&Re==="Escape";Og.has(Re)||it||e.hideContextMenu();let Ze=n()===ca.PLAYING||n()===ca.PAUSED,yt=e.isAds&&(a()==="paused"||a()==="playing"),mt=!yt&&!r().has("TIMELINE");if(!(Ze||yt))return!1;z({message:`key down, code: ${Re}, isExternal = ${At}`});let Wt=!1,gt=()=>{Wt=!0,At||te.preventDefault()};switch(Re){case"KeyJ":case"ArrowLeft":{if(!mt)break;if(te.ctrlKey||te.altKey){let je=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(je),je&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:je.text}),gt()}else{let je=te.shiftKey?Ee(!1):R.controls.seekStepKeyboard/1e3,Jt=Math.max(d()-je,0);d()>0&&(E.actions.internal.seekTime(Jt,Sn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:je.toString()}),gt())}break}case"KeyL":case"ArrowRight":{if(!mt)break;if(te.ctrlKey||te.altKey){let je=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(je),je&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:je.text}),gt()}else{let je=te.shiftKey?Ee(!0):R.controls.seekStepKeyboard/1e3,Jt=Math.min(d()+je,l());Math.round(d())<Math.round(l())&&(E.actions.internal.seekTime(Jt,Sn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:je.toString()}),gt())}break}case"ArrowUp":{if(Vs({isAudioDisabled:$e,audioDisabledHintCallback:ne,isAudioAvailable:p(),audioIsNotExistHintCallback:We,isAds:e.isAds})){let je=f(),Jt=R.controls.volumeStepKeyboard,Wi=je<=1;if(Hc(E,je,Jt),Wi){let Ni=Math.round(Kp(je,Jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ni}})}}gt();break}case"ArrowDown":{if(Vs({isAudioDisabled:$e,audioDisabledHintCallback:ne,isAudioAvailable:p(),audioIsNotExistHintCallback:We,isAds:e.isAds})){let je=f(),Jt=R.controls.volumeStepKeyboard,Wi=je>=0;if(Fc(E,je,Jt),Wi){let Ni=Math.round(Qp(je,Jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ni}})}}gt();break}case"Comma":{if(te.shiftKey){E.actions.internal.decrementPlaybackRate();let je=b().find(Jt=>Jt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:je==null?void 0:je.displayValue}),gt()}else{if(yt||n()!==ca.PAUSED)break;let je=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(je,Sn.DOUBLE_TAP),gt())}break}case"Period":{if(te.shiftKey){E.actions.internal.incrementPlaybackRate();let je=b().find(Jt=>Jt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:je==null?void 0:je.displayValue}),gt()}else{if(yt||n()!==ca.PAUSED)break;let je=Math.min(d()+R.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(je,Sn.DOUBLE_TAP),gt())}break}case"KeyK":case"Space":if(!r().has("PLAY_BUTTON"))if(_()&&w()&&ze.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let je="PLAY";n()===ca.PAUSED?je="PAUSE":y()&&(je="REPLAY"),e.showHotKeyHelpers({type:je})}gt();break;case"KeyM":{Vs({isAudioDisabled:$e,audioDisabledHintCallback:ne,isAudioAvailable:p(),audioIsNotExistHintCallback:We,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),gt();break}case"KeyF":e.toggleFullscreen(),gt();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(zt=T())==null?void 0:zt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),gt();break;case"KeyI":E.actions.internal.togglePictureInPicture(),gt();break;case"Digit1":case"Numpad1":if(te.shiftKey){let je=Lh(I());N.set(je),Ae.set(j),ce.set(!0),ae.set(!0),gt();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,Sn.DOUBLE_TAP),gt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,Sn.DOUBLE_TAP),gt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,Sn.DOUBLE_TAP),gt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,Sn.DOUBLE_TAP),gt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,Sn.DOUBLE_TAP),gt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,Sn.DOUBLE_TAP),gt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,Sn.DOUBLE_TAP),gt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,Sn.DOUBLE_TAP),gt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,Sn.DOUBLE_TAP),gt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,Sn.DOUBLE_TAP),gt();break;case"Slash":{te.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),gt());break}case"KeyN":te.shiftKey&&M()&&(E.actions.internal.nextVideoClick(),gt());break;case"KeyP":te.shiftKey&&P()&&(E.actions.internal.prevVideoClick(),gt());break;case"ShiftLeft":case"ShiftRight":gt();break;case"Tab":case"Escape":case"Enter":break;default:Mb(Re);break}return Wt},nt=te=>{let At=te.code;if(te.ctrlKey||te.altKey||te.metaKey)return;let j=n()===ca.PLAYING||n()===ca.PAUSED,pe=e.isAds&&(a()==="paused"||a()==="playing");if(j||pe)switch(At){case"ShiftLeft":case"ShiftRight":Je=0;break}},dt=F("aria_label_video_player"),rt=()=>{var te;return(te=s(ie))==null?void 0:te.focus()},St=te=>te.type==="keydown"?qe(te,!0):(te.type==="keyup"&&nt(te),!1);var ct=Vb();ct.__keyup=nt,ct.__keydown=[Lb,qe],Ne(ct,"aria-label",dt);var Yt=h(ct);be(Yt,()=>{var te;return(te=e.children)!=null?te:oe}),g(ct),tt(ct,te=>D(ie,te),()=>s(ie)),$(t,ct);var ni=H({focus:rt,handleExternalKeyboardEvent:St});return o(),ni}lt(["keyup","keydown"]);var Bb=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),Nb={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);}
145
145
 
146
146
  @keyframes svelte-1dbnjb1-dot_animation {
147
147
  0% {
@@ -154,7 +154,7 @@ Try switching the\xA0quality to\xA0Auto.`},dh=i_;var es=new Map;es.set(uh.EN,dh)
154
154
  opacity: 0.2;
155
155
  }
156
156
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
157
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ta(t,e){q(t,Eb);let i=m(e,"style",3,"");var o=kb();E(()=>rt(o,i())),$(t,o)}var Pb=ye('<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 Wp(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Pb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i})),$(t,o)}import{noop as Za}from"@vkontakte/videoplayer-shared/es2018";var Ab=t=>{t.stopPropagation()},Mb=L("<button><!></button>"),Lb={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;}
157
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ua(t,e){W(t,Nb);let i=m(e,"style",3,"");var o=Bb();k(()=>st(o,i())),$(t,o)}var Db=Se('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function Yp(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Db();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i})),$(t,o)}import{noop as tl}from"@vkontakte/videoplayer-shared/es2018";var Ob=t=>{t.stopPropagation()},Hb=L("<button><!></button>"),Fb={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;}
158
158
 
159
159
  /* \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;}
160
160
 
@@ -162,22 +162,22 @@ Try switching the\xA0quality to\xA0Auto.`},dh=i_;var es=new Map;es.set(uh.EN,dh)
162
162
  /* mobile */
163
163
  /* 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,
164
164
  .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;
165
- /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.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){F(e,!0),q(t,Lb);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),a=m(e,"testId",3,void 0),s=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),l=m(e,"ref",15,void 0),p=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),y=m(e,"tabIndex",3,0),u=m(e,"click",3,Za),_=m(e,"focus",3,Za),w=m(e,"blur",3,Za),b=v(()=>u()===Za?null:P=>{P.stopPropagation(),u()(P)}),C=v(()=>_()===Za?null:P=>{P.preventDefault(),_()()}),T=v(()=>w()===Za?null:P=>{P.preventDefault(),w()()});var I=Mb();I.__pointerdown=[Ab],I.__click=function(...P){var k;(k=r(b))==null||k.apply(this,P)};var M=h(I);ve(M,()=>{var P;return(P=e.children)!=null?P:te}),g(I),gt(I,P=>l(P),()=>l()),E(()=>{var P,k,V,W,j,H,Q;J(I,1,`btn ${(P=i())!=null?P:""}`,"svelte-wr0kwr"),rt(I,o()||null),I.disabled=(k=n())!=null?k:null,Ne(I,"aria-hidden",(V=s())!=null?V:null),Ne(I,"aria-label",(W=d())!=null?W:null),Ne(I,"aria-keyshortcuts",(j=p())!=null?j:null),Ne(I,"aria-expanded",(H=f())!=null?H:null),Ne(I,"data-testid",(Q=a())!=null?Q:null),Ne(I,"tabindex",y()),Ne(I,"role",e.role)}),Tt("focus",I,function(...P){var k;(k=r(C))==null||k.apply(this,P)}),Tt("blur",I,function(...P){var k;(k=r(T))==null||k.apply(this,P)}),$(t,I),U()}st(["pointerdown","click"]);var Vb=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Rb=L('<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>'),Bb={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 qp(t,e){F(e,!0),q(t,Bb);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=z("hotkey_map_modal_close_btn_text");var a=Rb(),s=h(a),d=h(s);{var l=u=>{var _=Vb(),w=h(_),b=h(w,!0);g(w);var C=A(w,2);{var T=I=>{Vt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(M,P)=>{Wp(M,{})},$$slots:{default:!0}})};R(C,I=>{o()&&I(T)})}g(_),E(()=>me(b,e.title)),$(u,_)};R(d,u=>{i()&&u(l)})}var p=A(d,2),f=h(p),y=h(f);ve(y,()=>{var u;return(u=e.children)!=null?u:te}),g(f),g(p),g(s),g(a),$(t,a),U()}var Nb=new Set(["BR"]),Mh=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],s=a.tagName;Nb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var Db=L('<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>'),Ob=L('<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>'),Hb=L('<div class="hot-key-map svelte-quklnq"></div>'),Fb={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
165
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.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){O(e,!0),W(t,Fb);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),a=m(e,"testId",3,void 0),r=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),l=m(e,"ref",15,void 0),p=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),b=m(e,"tabIndex",3,0),u=m(e,"click",3,tl),_=m(e,"focus",3,tl),w=m(e,"blur",3,tl),y=v(()=>u()===tl?null:P=>{P.stopPropagation(),u()(P)}),C=v(()=>_()===tl?null:P=>{P.preventDefault(),_()()}),T=v(()=>w()===tl?null:P=>{P.preventDefault(),w()()});var I=Hb();I.__pointerdown=[Ob],I.__click=function(...P){var E;(E=s(y))==null||E.apply(this,P)};var M=h(I);be(M,()=>{var P;return(P=e.children)!=null?P:oe}),g(I),tt(I,P=>l(P),()=>l()),k(()=>{var P,E,R,z,q,U,Y;J(I,1,`btn ${(P=i())!=null?P:""}`,"svelte-wr0kwr"),st(I,o()||null),I.disabled=(E=n())!=null?E:null,Ne(I,"aria-hidden",(R=r())!=null?R:null),Ne(I,"aria-label",(z=d())!=null?z:null),Ne(I,"aria-keyshortcuts",(q=p())!=null?q:null),Ne(I,"aria-expanded",(U=f())!=null?U:null),Ne(I,"data-testid",(Y=a())!=null?Y:null),Ne(I,"tabindex",b()),Ne(I,"role",e.role)}),Tt("focus",I,function(...P){var E;(E=s(C))==null||E.apply(this,P)}),Tt("blur",I,function(...P){var E;(E=s(T))==null||E.apply(this,P)}),$(t,I),H()}lt(["pointerdown","click"]);var Ub=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),zb=L('<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>'),Wb={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 jp(t,e){O(e,!0),W(t,Wb);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var a=zb(),r=h(a),d=h(r);{var l=u=>{var _=Ub(),w=h(_),y=h(w,!0);g(w);var C=A(w,2);{var T=I=>{Vt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(M,P)=>{Yp(M,{})},$$slots:{default:!0}})};V(C,I=>{o()&&I(T)})}g(_),k(()=>_e(y,e.title)),$(u,_)};V(d,u=>{i()&&u(l)})}var p=A(d,2),f=h(p),b=h(f);be(b,()=>{var u;return(u=e.children)!=null?u:oe}),g(f),g(p),g(r),g(a),$(t,a),H()}var qb=new Set(["BR"]),Bh=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],r=a.tagName;qb.has(r)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var Kb=L('<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>'),Qb=L('<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>'),Gb=L('<div class="hot-key-map svelte-quklnq"></div>'),Yb={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
166
166
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
167
- .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Kp(t,e){F(e,!1),q(t,Fb);let[i,o]=De(),n=()=>S(s,"$data",i),a=Ce(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};$r(),qp(t,{get title(){return n().title},onClose:l,children:(p,f)=>{var y=Hb();$i(y,5,()=>n().groups,({title:u,items:_})=>u,(u,_)=>{let w=()=>r(_).title,b=()=>r(_).items;var C=Ob(),T=h(C),I=h(T,!0);g(T);var M=A(T,2);$i(M,5,b,({description:P,value:k})=>k,(P,k)=>{let V=()=>r(k).description,W=()=>r(k).value;var j=Db(),H=h(j),Q=h(H);kl(Q,()=>Mh(V()),!1,!1),g(H);var ie=A(H,2),Z=h(ie,!0);g(ie),g(j),E(()=>me(Z,W())),$(P,j)}),g(M),g(C),E(()=>me(I,w())),$(u,C)}),g(y),$(p,y)},$$slots:{default:!0}}),U(),o()}import{noop as t1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Zh,PlaybackState as Mf}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var Ub=L('<div class="pillow svelte-1oe0j8n"><!></div>'),zb={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 Qp(t,e){q(t,zb);var i=Ub(),o=h(i);ve(o,()=>{var n;return(n=e.children)!=null?n:te}),g(i),$(t,i)}import{VideoQuality as jl}from"@vkontakte/videoplayer-shared/es2018";var Wb=ye('<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 Gp(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Wb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var qb=ye('<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 Yp(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=qb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var Kb=ye('<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 jp(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Kb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var Qb=ye('<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 Gl(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Qb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),$(t,o)}var Gb=ye('<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 Yl(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Gb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),$(t,o)}var Dc=t=>{switch(t){case jl.Q_720P:return jp;case jl.Q_1080P:return Gl;case jl.Q_1440P:return Yl;case jl.Q_2160P:return Gp;case jl.Q_4320P:return Yp}};var Yb=ye('<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 Zp(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Yb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),$(t,o)}var jb=ye('<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 Xp(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=jb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),$(t,o)}var Zb=L('<div aria-hidden="true"><!> <!></div>'),Xb={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 Zl(t,e){F(e,!0),q(t,Xb);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=v(()=>Dc(o())),a=v(()=>!!r(n)&&[Gl,Yl].includes(r(n)));var s=Oe(),d=pe(s);{var l=f=>{Zp(f,{})},p=f=>{var y=Zb();let u;var _=h(y);{var w=T=>{Qp(T,{children:(I,M)=>{var P=Oe(),k=pe(P);yi(k,()=>r(n),(V,W)=>{W(V,{})}),$(I,P)},$$slots:{default:!0}})};R(_,T=>{r(n)&&T(w)})}var b=A(_,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");Xp(b,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g(y),E(T=>u=J(y,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(a)})]),$(f,y)};R(d,f=>{i()?f(l):f(p,!1)})}$(t,s),U()}var Jb=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),e$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Xa(t,e){F(e,!0),q(t,e$);let[i,o]=De(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(f,"$settingsMenuVisible",i),s=()=>S(_,"$isMobile",i),d=()=>S(p,"$currentQuality",i),l=Ce(),p=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,y=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,_=l.ui.isMobile,w=l.ui.t,b=X(void 0);Fe(()=>{n()&&wt(()=>{e.ref$.set(r(b))})});let C=w("aria_label_settings");async function T(M){let P=bs(M);a()?u():y(P,vo)}let I=v(()=>a()?"opened":"");Vt(t,{get className(){return r(I)},testId:"btn-settings",click:T,ariaLabel:C,get ariaExpanded(){return a()},get ref(){return r(b)},set ref(M){D(b,fe(M))},children:(M,P)=>{var k=Jb(),V=h(k);Zl(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(k),$(M,k)},$$slots:{default:!0}}),U(),o()}var t$=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"></path></svg>');function Jp(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=t$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),$(t,o)}var i$=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"></path></svg>');function Xl(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=i$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),$(t,o)}function ef(t,e){F(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ce().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Vt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Br.KeyC},children:(s,d)=>{var l=Oe(),p=pe(l);{var f=u=>{Jp(u,{})},y=u=>{Xl(u,{})};R(p,u=>{i()?u(f):u(y,!1)})}$(s,l)},$$slots:{default:!0}}),U()}var o$=L('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),n$=L('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),r$={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 Jl(t,e){F(e,!0),q(t,r$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),a=v(()=>rn(e.duration)),s=v(()=>rn(e.position));var d=n$();let l;var p=h(d),f=h(p,!0);g(p);var y=A(p,2);{var u=_=>{var w=o$(),b=h(w,!0);g(w),E(()=>me(b,r(a))),$(_,w)};R(y,_=>{o()&&_(u)})}g(d),gt(d,_=>n(_),()=>n()),E(_=>{l=J(d,1,"time svelte-sz9er7",null,l,_),me(f,r(s))},[()=>({mobile:i()})]),$(t,d),U()}import{noop as Oc}from"@vkontakte/videoplayer-shared/es2018";var s$=ye('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-1n5yyua" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path class="wave2 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"></path><path class="wave1 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"></path><path class="cross svelte-1n5yyua" d="m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"></path></g></svg>'),a$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
167
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Zp(t,e){O(e,!1),W(t,Yb);let[i,o]=De(),n=()=>S(r,"$data",i),a=Ie(),{data:r,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};kr(),jp(t,{get title(){return n().title},onClose:l,children:(p,f)=>{var b=Gb();bi(b,5,()=>n().groups,({title:u,items:_})=>u,(u,_)=>{let w=()=>s(_).title,y=()=>s(_).items;var C=Qb(),T=h(C),I=h(T,!0);g(T);var M=A(T,2);bi(M,5,y,({description:P,value:E})=>E,(P,E)=>{let R=()=>s(E).description,z=()=>s(E).value;var q=Kb(),U=h(q),Y=h(U);Rl(Y,()=>Bh(R()),!1,!1),g(U);var se=A(U,2),Q=h(se,!0);g(se),g(q),k(()=>_e(Q,z())),$(P,q)}),g(M),g(C),k(()=>_e(I,w())),$(u,C)}),g(b),$(p,b)},$$slots:{default:!0}}),H(),o()}import{noop as l1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as i1,PlaybackState as Nf}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var jb=L('<div class="pillow svelte-1oe0j8n"><!></div>'),Zb={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 Xp(t,e){W(t,Zb);var i=jb(),o=h(i);be(o,()=>{var n;return(n=e.children)!=null?n:oe}),g(i),$(t,i)}import{VideoQuality as od}from"@vkontakte/videoplayer-shared/es2018";var Xb=Se('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function Jp(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Xb();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var Jb=Se('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function ef(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Jb();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var e$=Se('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function tf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=e$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var t$=Se('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function td(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=t$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),$(t,o)}var i$=Se('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function id(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=i$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),$(t,o)}var Uc=t=>{switch(t){case od.Q_720P:return tf;case od.Q_1080P:return td;case od.Q_1440P:return id;case od.Q_2160P:return Jp;case od.Q_4320P:return ef}};var o$=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function of(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=o$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),$(t,o)}var n$=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function nf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=n$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),$(t,o)}var r$=L('<div aria-hidden="true"><!> <!></div>'),s$={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 nd(t,e){O(e,!0),W(t,s$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=v(()=>Uc(o())),a=v(()=>!!s(n)&&[td,id].includes(s(n)));var r=He(),d=he(r);{var l=f=>{of(f,{})},p=f=>{var b=r$();let u;var _=h(b);{var w=T=>{Xp(T,{children:(I,M)=>{var P=He(),E=he(P);$i(E,()=>s(n),(R,z)=>{z(R,{})}),$(I,P)},$$slots:{default:!0}})};V(_,T=>{s(n)&&T(w)})}var y=A(_,2);let C=v(()=>s(n)?"settings-icon--labeled":"settings-icon");nf(y,{get"data-testid"(){return s(C)},fill:"var(--btn-color, #fff)"}),g(b),k(T=>u=J(b,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:s(a)})]),$(f,b)};V(d,f=>{i()?f(l):f(p,!1)})}$(t,r),H()}var a$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),l$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function il(t,e){O(e,!0),W(t,l$);let[i,o]=De(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(f,"$settingsMenuVisible",i),r=()=>S(_,"$isMobile",i),d=()=>S(p,"$currentQuality",i),l=Ie(),p=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,b=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,_=l.ui.isMobile,w=l.ui.t,y=X(void 0);Ue(()=>{n()&&wt(()=>{e.ref$.set(s(y))})});let C=w("aria_label_settings");async function T(M){let P=Ls(M);a()?u():b(P,_o)}let I=v(()=>a()?"opened":"");Vt(t,{get className(){return s(I)},testId:"btn-settings",click:T,ariaLabel:C,get ariaExpanded(){return a()},role:"button",get ref(){return s(y)},set ref(M){D(y,ve(M))},children:(M,P)=>{var E=a$(),R=h(E);nd(R,{get isMobile(){return r()},get currentQuality(){return d()}}),g(E),$(M,E)},$$slots:{default:!0}}),H(),o()}var d$=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"></path></svg>');function rf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=d$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),$(t,o)}var c$=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"></path></svg>');function rd(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=c$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),$(t,o)}function sf(t,e){O(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ie().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Vt(t,{testId:"btn-Subtitles",get ariaLabel(){return s(a)},get click(){return e.click},get ariaKeyShortCut(){return Gr.KeyC},role:"button",children:(r,d)=>{var l=He(),p=he(l);{var f=u=>{rf(u,{})},b=u=>{rd(u,{})};V(p,u=>{i()?u(f):u(b,!1)})}$(r,l)},$$slots:{default:!0}}),H()}var u$=L('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),p$=L('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),f$={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 sd(t,e){O(e,!0),W(t,f$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),a=v(()=>pn(e.duration)),r=v(()=>pn(e.position));var d=p$();let l;var p=h(d),f=h(p,!0);g(p);var b=A(p,2);{var u=_=>{var w=u$(),y=h(w,!0);g(w),k(()=>_e(y,s(a))),$(_,w)};V(b,_=>{o()&&_(u)})}g(d),tt(d,_=>n(_),()=>n()),k(_=>{l=J(d,1,"time svelte-sz9er7",null,l,_),_e(f,s(r))},[()=>({mobile:i()})]),$(t,d),H()}import{noop as zc}from"@vkontakte/videoplayer-shared/es2018";var m$=Se('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-1n5yyua" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path class="wave2 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"></path><path class="wave1 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"></path><path class="cross svelte-1n5yyua" d="m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"></path></g></svg>'),v$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
168
168
  .icon[data-value='off'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:visible;}.icon[data-value='mid'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua),
169
- .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function ys(t,e){q(t,a$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=v(()=>n(i(),o()));var s=s$();E(()=>{var d;Ne(s,"data-value",r(a)),Ne(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),$(t,s)}import{isNonNullable as Vh,noop as Dn}from"@vkontakte/videoplayer-shared/es2018";import{noop as of}from"@vkontakte/videoplayer-shared/es2018";import{noop as d$}from"@vkontakte/videoplayer-shared/es2018";var l$=L('<div class="overlay"><!></div>');function tf(t,e){F(e,!0);let[i,o]=De(),n=()=>S(s,"$overlayContainer$",i),s=Ce().ui.overlayContainer$,d=X(void 0),l=u=>{!u||!r(d)||!u.contains(r(d))||u.removeChild(r(d))},p=u=>{!u||!r(d)||u.contains(r(d))||u.appendChild(r(d))};Fe(()=>{p(n())}),zt(()=>(p(n()),()=>l(n())));var f=l$(),y=h(f);ve(y,()=>{var u;return(u=e.children)!=null?u:te}),g(f),gt(f,u=>D(d,u),()=>r(d)),$(t,f),U(),o()}var c$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),u$=L("<div><!></div> <!>",1),p$={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 ia(t,e){F(e,!0),q(t,p$);let[i,o]=De(),n=()=>S(Q,"$overlayContainer$",i),a=()=>S(H,"$containerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"content",3,""),l=m(e,"active",15,!1),p=m(e,"translateX",3,0),f=m(e,"translateY",3,0),y=m(e,"isFullWidthWrapper",3,!1),u=m(e,"maxTooltipWidth",3,void 0),_=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,d$),b=5,C=X(void 0),T=X(void 0),I,M=X(0),P=X(0),k=X(0),V=X(0),W=Wt(),j=Ce(),H=j.ui.playerSize,Q=j.ui.overlayContainer$;Fe(()=>{wt(()=>{w()(l())})});let ie=j.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!n()||!r(T)||!r(C))return;D(P,b);let we=n().getBoundingClientRect(),Ve=r(C).getBoundingClientRect(),Ie=Ve.width,Ue=r(T).clientWidth,lt=a().width,dt=(Ie-Ue)/2,it=Ve.left+p()-we.left,It=it+dt,ht=Ve.top+f()-we.top,Qt=Ue/2-b,Zt=It<8,At=It+Ue>lt-8;Zt&&(It=8,Qt=it+Ve.width/2-2.5*b),At&&(It=lt-8-Ue,Qt=Ve.left-we.left+Ve.width/2-It-b),D(k,fe(It)),D(V,ht),D(M,fe(Qt))},se=()=>{!n()||!r(T)||!r(C)||D(P,-b)},ce=()=>{if(!n()||!r(T)||!r(C))return;D(M,b);let we=n().getBoundingClientRect(),Ve=r(C).getBoundingClientRect(),Ie=Ve.height,Ue=r(T).clientHeight,lt=(Ie-Ue)/2+Ue,dt=Ve.left+p()-we.left-r(T).clientWidth,it=2,It=dt-b;It<8&&(It=8);let Qt=Ve.top+f()-we.top+lt,Zt=it-lt/2,At=it-b;D(k,fe(It)),D(V,Qt),D(P,Zt),D(M,At)},Ee=()=>{!n()||!r(T)||!r(C)||D(M,-b)},Me=()=>{switch(_()){case"top":Z();break;case"bottom":se();break;case"left":ce();break;default:Ee()}},ge=()=>{try{if(!n()||!r(C))return;Me(),l(!0)}catch(we){ie({message:String(we)})}},ae=()=>{l(!1)},Pe=()=>{r(T)&&(I||(I=window.setTimeout(ge,W.controls.hideTimeoutTooltips)),l()&&ge())},ne=()=>{ae(),window.clearTimeout(I),I=void 0},N=(we,Ve,Ie)=>{let Ue="";switch(_()){case"top":Ue=`transform: translate(${we}px, ${Ve}px);`;break;case"bottom":Ue=`transform: translate(${we}px, ${Ve}px); top: auto; bottom: 100%;`;break;case"left":Ue=`transform: translate(${we}px, ${Ve}px); left: 0; right: auto;`;break;default:Ue=`transform: translate(${we}px, ${Ve}px);`}return Ue+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ue+=` opacity: ${Ie?1:0}; visibility: ${Ie?"visible":"hidden"}`,Ue},ue=(we,Ve)=>{let Ie="";switch(_()){case"top":Ie=`transform: translate(${we}px, ${Ve}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ie=`transform: translate(${we}px, ${Ve}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ie=`transform: translate(${we}px, ${Ve}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ie=`transform: translate(${we}px, ${Ve}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ie},_e=v(()=>N(r(k),r(V),l())),ze=v(()=>ue(r(M),r(P)));zt(Me),mn(()=>window.clearTimeout(I));var re=u$(),K=pe(re);let he;K.__mousemove=Pe,K.__mousedown=ne,K.__mouseup=Pe;var ee=h(K);ve(ee,()=>{var we;return(we=e.children)!=null?we:te}),g(K),gt(K,we=>D(C,we),()=>r(C));var He=A(K,2);{var je=we=>{tf(we,{children:(Ve,Ie)=>{var Ue=c$(),lt=h(Ue),dt=h(lt,!0);g(lt);var it=A(lt,2);g(Ue),gt(Ue,It=>D(T,It),()=>r(T)),E(()=>{rt(Ue,r(_e)),me(dt,d()),rt(it,r(ze))}),$(Ve,Ue)},$$slots:{default:!0}})};R(He,we=>{d()&&!s()&&we(je)})}E(we=>he=J(K,1,"tooltip-wrapper svelte-hxlyne",null,he,we),[()=>({"full-width":y()})]),Tt("mouseenter",K,Pe),Tt("mouseleave",K,ne),$(t,re),U(),o()}st(["mousemove","mousedown","mouseup"]);var Lh=t=>{t.stopPropagation()},f$=L("<div><!></div>"),m$={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 Io(t,e){F(e,!0),q(t,m$);let[i,o]=De(),n=()=>S(p,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),s=Ce(),d=to(),l=s.ui.isMobile,p=d.graphIsOpened$,f=s.ui.t,y=m(e,"className",3,""),u=m(e,"disabled",3,!1),_=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),b=m(e,"width",15,void 0),C=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),I=m(e,"tooltipActive",3,!1),M=m(e,"tooltipPlacement",3,"top"),P=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),k=m(e,"isAriaHidden",3,!1),V=m(e,"onTooltipVisibilityChange",3,of),W=m(e,"initialTranslateXPx",3,0),j=m(e,"initialTranslateYPx",19,()=>-18),H=m(e,"mouseEnter",3,of),Q=m(e,"mouseLeave",3,of),ie=v(()=>u()?n()?f("tooltip_disabled_when_graph_on"):P():T());var Z=f$();Z.__pointerdown=[Lh],Z.__click=[Lh];var se=h(Z);{var ce=Me=>{ia(Me,{get content(){return r(ie)},get translateX(){return W()},get translateY(){return j()},get isFullWidthWrapper(){return C()},get active(){return I()},get placement(){return M()},get onVisibilityChange(){return V()},children:(ge,ae)=>{var Pe=Oe(),ne=pe(Pe);ve(ne,()=>{var N;return(N=e.children)!=null?N:te}),$(ge,Pe)},$$slots:{default:!0}})},Ee=Me=>{var ge=Oe(),ae=pe(ge);ve(ae,()=>{var Pe;return(Pe=e.children)!=null?Pe:te}),$(Me,ge)};R(se,Me=>{_()&&r(ie)&&!a()?Me(ce):Me(Ee,!1)})}g(Z),gt(Z,Me=>w(Me),()=>w()),E(()=>{var Me;J(Z,1,`btn-container ${(Me=y())!=null?Me:""}`,"svelte-p9r045"),Ne(Z,"aria-hidden",k()||null)}),Tt("mouseenter",Z,function(...Me){var ge;(ge=H())==null||ge.apply(this,Me)}),Tt("mouseleave",Z,function(...Me){var ge;(ge=Q())==null||ge.apply(this,Me)}),Rr(Z,"clientWidth",b),$(t,Z),U(),o()}st(["pointerdown","click"]);var v$=ye('<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 ed(t,e){"use strict";var i=v$(),o=h(i),n=A(o);g(i),E(()=>{Ne(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ne(o,"fill-opacity",e.completed?1:.24),Ne(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var g$=L("<div><!></div>"),h$={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 nf(t,e){F(e,!0),q(t,h$);let o=Ce().ui.t,n=X(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Io(t,{get tooltipContent(){return r(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(s,d)=>{var l=g$();let p;var f=h(l);let y=v(()=>!!e.videoEpisode.completed);ed(f,{get completed(){return r(y)}}),g(l),E(u=>{p=J(l,1,"interactive-episode-icon svelte-bklhpe",null,p,u),rt(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Rr(l,"clientWidth",u=>D(n,u)),$(s,l)},$$slots:{default:!0}}),U()}var _$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),b$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),$$={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,
169
+ .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function Rs(t,e){W(t,v$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=v(()=>n(i(),o()));var r=m$();k(()=>{var d;Ne(r,"data-value",s(a)),Ne(r,"data-testid",`volume-${(d=s(a))!=null?d:""}-icon`)}),$(t,r)}import{isNonNullable as Dh,noop as Yn}from"@vkontakte/videoplayer-shared/es2018";import{noop as lf}from"@vkontakte/videoplayer-shared/es2018";import{noop as h$}from"@vkontakte/videoplayer-shared/es2018";var g$=L('<div class="overlay"><!></div>');function af(t,e){O(e,!0);let[i,o]=De(),n=()=>S(r,"$overlayContainer$",i),r=Ie().ui.overlayContainer$,d=X(void 0),l=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())}),Rt(()=>(p(n()),()=>l(n())));var f=g$(),b=h(f);be(b,()=>{var u;return(u=e.children)!=null?u:oe}),g(f),tt(f,u=>D(d,u),()=>s(d)),$(t,f),H(),o()}var _$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),b$=L("<div><!></div> <!>",1),$$={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 pa(t,e){O(e,!0),W(t,$$);let[i,o]=De(),n=()=>S(Y,"$overlayContainer$",i),a=()=>S(U,"$containerSize",i),r=m(e,"isMobile",3,!1),d=m(e,"content",3,""),l=m(e,"active",15,!1),p=m(e,"translateX",3,0),f=m(e,"translateY",3,0),b=m(e,"isFullWidthWrapper",3,!1),u=m(e,"maxTooltipWidth",3,void 0),_=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,h$),y=5,C=X(void 0),T=X(void 0),I,M=X(0),P=X(0),E=X(0),R=X(0),z=Ht(),q=Ie(),U=q.ui.playerSize,Y=q.ui.overlayContainer$;Ue(()=>{wt(()=>{w()(l())})});let se=q.getLogger().createComponentLog("Tooltip component"),Q=()=>{if(!n()||!s(T)||!s(C))return;D(P,y);let Ce=n().getBoundingClientRect(),ie=s(C).getBoundingClientRect(),Ee=ie.width,qe=s(T).clientWidth,nt=a().width,dt=(Ee-qe)/2,rt=ie.left+p()-Ce.left,St=rt+dt,ct=ie.top+f()-Ce.top,Yt=qe/2-y,ni=St<8,Ot=St+qe>nt-8;ni&&(St=8,Yt=rt+ie.width/2-2.5*y),Ot&&(St=nt-8-qe,Yt=ie.left-Ce.left+ie.width/2-St-y),D(E,ve(St)),D(R,ct),D(M,ve(Yt))},de=()=>{!n()||!s(T)||!s(C)||D(P,-y)},le=()=>{if(!n()||!s(T)||!s(C))return;D(M,y);let Ce=n().getBoundingClientRect(),ie=s(C).getBoundingClientRect(),Ee=ie.height,qe=s(T).clientHeight,nt=(Ee-qe)/2+qe,dt=ie.left+p()-Ce.left-s(T).clientWidth,rt=2,St=dt-y;St<8&&(St=8);let Yt=ie.top+f()-Ce.top+nt,ni=rt-nt/2,Ot=rt-y;D(E,ve(St)),D(R,Yt),D(P,ni),D(M,Ot)},Me=()=>{!n()||!s(T)||!s(C)||D(M,-y)},Be=()=>{switch(_()){case"top":Q();break;case"bottom":de();break;case"left":le();break;default:Me()}},ge=()=>{try{if(!n()||!s(C))return;Be(),l(!0)}catch(Ce){se({message:String(Ce)})}},ce=()=>{l(!1)},Ae=()=>{s(T)&&(I||(I=window.setTimeout(ge,z.controls.hideTimeoutTooltips)),l()&&ge())},ae=()=>{ce(),window.clearTimeout(I),I=void 0},N=(Ce,ie,Ee)=>{let qe="";switch(_()){case"top":qe=`transform: translate(${Ce}px, ${ie}px);`;break;case"bottom":qe=`transform: translate(${Ce}px, ${ie}px); top: auto; bottom: 100%;`;break;case"left":qe=`transform: translate(${Ce}px, ${ie}px); left: 0; right: auto;`;break;default:qe=`transform: translate(${Ce}px, ${ie}px);`}return qe+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,qe+=` opacity: ${Ee?1:0}; visibility: ${Ee?"visible":"hidden"}`,qe},Ge=(Ce,ie)=>{let Ee="";switch(_()){case"top":Ee=`transform: translate(${Ce}px, ${ie}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ee=`transform: translate(${Ce}px, ${ie}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ee=`transform: translate(${Ce}px, ${ie}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ee=`transform: translate(${Ce}px, ${ie}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ee},ee=v(()=>N(s(E),s(R),l())),We=v(()=>Ge(s(M),s(P)));Rt(Be),wn(()=>window.clearTimeout(I));var ne=b$(),me=he(ne);let $e;me.__mousemove=Ae,me.__mousedown=ae,me.__mouseup=Ae;var Z=h(me);be(Z,()=>{var Ce;return(Ce=e.children)!=null?Ce:oe}),g(me),tt(me,Ce=>D(C,Ce),()=>s(C));var ze=A(me,2);{var Je=Ce=>{af(Ce,{children:(ie,Ee)=>{var qe=_$(),nt=h(qe),dt=h(nt,!0);g(nt);var rt=A(nt,2);g(qe),tt(qe,St=>D(T,St),()=>s(T)),k(()=>{st(qe,s(ee)),_e(dt,d()),st(rt,s(We))}),$(ie,qe)},$$slots:{default:!0}})};V(ze,Ce=>{d()&&!r()&&Ce(Je)})}k(Ce=>$e=J(me,1,"tooltip-wrapper svelte-hxlyne",null,$e,Ce),[()=>({"full-width":b()})]),Tt("mouseenter",me,Ae),Tt("mouseleave",me,ae),$(t,ne),H(),o()}lt(["mousemove","mousedown","mouseup"]);var Nh=t=>{t.stopPropagation()},y$=L("<div><!></div>"),x$={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Mo(t,e){O(e,!0),W(t,x$);let[i,o]=De(),n=()=>S(p,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),r=Ie(),d=ro(),l=r.ui.isMobile,p=d.graphIsOpened$,f=r.ui.t,b=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),C=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),I=m(e,"tooltipActive",3,!1),M=m(e,"tooltipPlacement",3,"top"),P=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),R=m(e,"onTooltipVisibilityChange",3,lf),z=m(e,"initialTranslateXPx",3,0),q=m(e,"initialTranslateYPx",19,()=>-18),U=m(e,"mouseEnter",3,lf),Y=m(e,"mouseLeave",3,lf),se=v(()=>u()?n()?f("tooltip_disabled_when_graph_on"):P():T());var Q=y$();Q.__pointerdown=[Nh],Q.__click=[Nh];var de=h(Q);{var le=Be=>{pa(Be,{get content(){return s(se)},get translateX(){return z()},get translateY(){return q()},get isFullWidthWrapper(){return C()},get active(){return I()},get placement(){return M()},get onVisibilityChange(){return R()},children:(ge,ce)=>{var Ae=He(),ae=he(Ae);be(ae,()=>{var N;return(N=e.children)!=null?N:oe}),$(ge,Ae)},$$slots:{default:!0}})},Me=Be=>{var ge=He(),ce=he(ge);be(ce,()=>{var Ae;return(Ae=e.children)!=null?Ae:oe}),$(Be,ge)};V(de,Be=>{_()&&s(se)&&!a()?Be(le):Be(Me,!1)})}g(Q),tt(Q,Be=>w(Be),()=>w()),k(()=>{var Be;J(Q,1,`btn-container ${(Be=b())!=null?Be:""}`,"svelte-p9r045"),Ne(Q,"aria-hidden",E()||null)}),Tt("mouseenter",Q,function(...Be){var ge;(ge=U())==null||ge.apply(this,Be)}),Tt("mouseleave",Q,function(...Be){var ge;(ge=Y())==null||ge.apply(this,Be)}),Qr(Q,"clientWidth",y),$(t,Q),H(),o()}lt(["pointerdown","click"]);var w$=Se('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function ad(t,e){"use strict";var i=w$(),o=h(i),n=A(o);g(i),k(()=>{Ne(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ne(o,"fill-opacity",e.completed?1:.24),Ne(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var S$=L("<div><!></div>"),C$={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 df(t,e){O(e,!0),W(t,C$);let o=Ie().ui.t,n=X(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Mo(t,{get tooltipContent(){return s(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return s(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(r,d)=>{var l=S$();let p;var f=h(l);let b=v(()=>!!e.videoEpisode.completed);ad(f,{get completed(){return s(b)}}),g(l),k(u=>{p=J(l,1,"interactive-episode-icon svelte-bklhpe",null,p,u),st(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Qr(l,"clientWidth",u=>D(n,u)),$(r,l)},$$slots:{default:!0}}),H()}var T$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),I$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),E$={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,
170
170
  .video-episode-loaded.svelte-1u6kv8l,
171
- .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 rf(t,e){q(t,$$);let i=m(e,"videoEpisodes",19,()=>[]);var o=b$();$i(o,21,i,n=>n.from,(n,a)=>{var s=_$();let d;var l=h(s),p=h(l),f=A(p,2);let y;g(l),g(s),E((u,_)=>{d=J(s,1,"video-episode svelte-1u6kv8l",null,d,u),rt(s,`left: ${r(a).from}%; width: ${r(a).width}%`),rt(p,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),y=J(f,1,"video-episode-filled svelte-1u6kv8l",null,y,_),rt(f,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,s)}),g(o),$(t,o)}function y$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&D(i,fe(e().getBoundingClientRect())),o()||r(n)||!e())return;D(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function x$(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),p=o(t.clientX);n()(l,p,r(a).width),r(s)&&d()(l)}function w$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;D(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function S$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var C$=L("<div></div>"),T$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),I$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),k$={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 {
171
+ .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 cf(t,e){W(t,E$);let i=m(e,"videoEpisodes",19,()=>[]);var o=I$();bi(o,21,i,n=>n.from,(n,a)=>{var r=T$();let d;var l=h(r),p=h(l),f=A(p,2);let b;g(l),g(r),k((u,_)=>{d=J(r,1,"video-episode svelte-1u6kv8l",null,d,u),st(r,`left: ${s(a).from}%; width: ${s(a).width}%`),st(p,`transform: translateX(${s(a).loadedWidth/s(a).width*100}%)`),b=J(f,1,"video-episode-filled svelte-1u6kv8l",null,b,_),st(f,`transform: translateX(${s(a).filledWidth/s(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,r)}),g(o),$(t,o)}function k$(t,e,i,o,n,a,r){if(t.preventDefault(),e()&&D(i,ve(e().getBoundingClientRect())),o()||s(n)||!e())return;D(n,!0);let d=a(t.clientX,t.clientY);r()(d),e().setPointerCapture(t.pointerId)}function P$(t,e,i,o,n,a,r,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),p=o(t.clientX);n()(l,p,s(a).width),s(r)&&d()(l)}function A$(t,e,i,o,n){if(t.preventDefault(),e()||!s(i))return;D(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function M$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var L$=L("<div></div>"),V$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),R$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),B$={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 {
172
172
  /* 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,
173
173
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
174
174
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
175
175
  .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),
176
- .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 oa(t,e){F(e,!0),q(t,k$);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),a=m(e,"isHidden",3,!1),s=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),l=m(e,"isMobile",3,!1),p=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),y=m(e,"withWheelHandler",3,!1),u=m(e,"isInteractive",3,!1),_=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),b=m(e,"onPointerDown",3,Dn),C=m(e,"onHandleMove",3,Dn),T=m(e,"onPointerUp",3,Dn),I=m(e,"onPointerEnter",3,Dn),M=m(e,"onPointerMove",3,Dn),P=m(e,"onPointerLeave",3,Dn),k=m(e,"onMouseEnter",3,Dn),V=m(e,"onMouseLeave",3,Dn),W=m(e,"onWheelUp",3,Dn),j=m(e,"onWheelDown",3,Dn),H=m(e,"onWheelLeft",3,Dn),Q=m(e,"onWheelRight",3,Dn),ie=m(e,"onDisabledClick",3,Dn),Z=m(e,"loadedProgress",3,0),se=m(e,"filledProgress",3,0),ce=m(e,"handleProgress",3,0),Ee=m(e,"ariaLabel",3,""),Me=m(e,"ariaValueMin",3,void 0),ge=m(e,"ariaValueMax",3,void 0),ae=m(e,"ariaValueNow",3,void 0),Pe=m(e,"ariaValueText",3,""),ne=Wt(),N=X(void 0),ue=X(!1),_e=v(()=>{var oe;return(oe=ge())!=null?oe:0}),ze=v(()=>{var oe;return Vh(f())&&((oe=f()[f().length-1])==null?void 0:oe.time)<r(_e)}),re=v(()=>Vh(f())&&f().length&&r(ze)&&r(_e)?Ie(Z()*100,se()*100):[]);function K(oe){if(oe.preventDefault(),i()&&D(N,fe(i().getBoundingClientRect())),_())return;let Be=we(oe.clientX,oe.clientY),Ke=Ve(oe.clientX);I()(Be,Ke,r(N).width)}function he(oe){oe.preventDefault(),!_()&&P()()}function ee(){k()()}function He(){V()()}function je(oe){_()||y()&&(oe.preventDefault(),oe.deltaY<0?W()():oe.deltaY>0?j()():oe.deltaX>0?Q()():H()())}function we(oe,Be){return s()?Math.max(0,Math.min(1,(r(N).height-(Be-r(N).top))/r(N).height)):Math.min(Math.max(oe-r(N).x,0),r(N).width)/r(N).width}function Ve(oe){return Math.min(Math.max(oe-r(N).x,0),r(N).width)}function Ie(oe,Be){let Ke=ne.features.episodesClustering&&!u()?ne.episodeMinWidthPc:0,Ye=[],Le=f()[0].time/r(_e)*100,tt=0,Xe=0;for(let ft=1;ft<f().length;ft++)tt=f()[ft].time/r(_e)*100,tt-Le>Ke&&(Ye.push({from:Le,width:Math.max(0,tt-Le),loadedWidth:Math.max(0,Math.min(tt,oe)-Le),filledWidth:Math.max(0,Math.min(tt,Be)-Le),interactive:f()[ft-1].interactive,completed:f()[ft-1].completed}),Le=f()[ft].time/r(_e)*100,Xe++);let bt={from:Le,width:Math.max(0,100-Le),loadedWidth:Math.max(0,Math.min(oe,100)-Le),filledWidth:Math.max(0,Math.min(Be,100)-Le),interactive:f()[Xe].interactive,completed:f()[Xe].completed};100-Le<Ke?(Xe-=1,Ye[Xe].width+=100-Le,Ye[Xe].loadedWidth+=Math.max(0,Math.min(oe,100)-Le),Ye[Xe].filledWidth+=Math.max(0,Math.min(Be,100)-Le)):Ye[Xe]=bt;let ut=f()[0].time;if(ut!==0){let ft=ut/r(_e)*100;Ye.unshift({from:0,width:ft,loadedWidth:Math.min(ft,oe),filledWidth:Math.min(ft,Be)})}return Ye}var Ue=I$(),lt=pe(Ue);{var dt=oe=>{var Be=C$();let Ke;$i(Be,21,()=>r(re),Ye=>Ye.from,(Ye,Le)=>{var tt=Oe(),Xe=pe(tt);{var bt=ut=>{nf(ut,{get videoEpisode(){return r(Le)},get disabled(){return _()}})};R(Xe,ut=>{r(Le).interactive&&ut(bt)})}$(Ye,tt)}),g(Be),E(Ye=>Ke=J(Be,1,"interactive-icons svelte-1tpemng",null,Ke,Ye),[()=>({mobile:l(),hidden:l()&&!r(ue)})]),$(oe,Be)};R(lt,oe=>{u()&&oe(dt)})}var it=A(lt,2);let It;it.__pointerdown=[y$,i,N,_,ue,we,b],it.__pointermove=[x$,_,we,Ve,M,N,ue,C],it.__pointerup=[w$,_,ue,we,T],it.__click=[S$,_,ie,we];var ht=h(it);{var Qt=oe=>{rf(oe,{get videoEpisodes(){return r(re)},get disabled(){return _()},get isMobile(){return l()}})},Zt=oe=>{var Be=T$(),Ke=h(Be),Ye=A(Ke,2);let Le;g(Be),E(tt=>{rt(Ke,`transform: translateX(${Z()*100}%);`),Le=J(Ye,1,"filled svelte-1tpemng",null,Le,tt),rt(Ye,`transform: translateX(${se()*100}%);`)},[()=>({"active-live":d()})]),$(oe,Be)};R(ht,oe=>{r(re).length?oe(Qt):oe(Zt,!1)})}var At=A(ht,2);let Rt;var O=h(At);let be;g(At),g(it),gt(it,oe=>i(oe),()=>i()),E((oe,Be,Ke)=>{var Ye,Le;It=J(it,1,`slider ${(Ye=o())!=null?Ye:""}`,"svelte-1tpemng",It,oe),Ne(it,"aria-label",Ee()),Ne(it,"aria-valuemin",Me()),Ne(it,"aria-valuemax",ge()),Ne(it,"aria-valuenow",ae()),Ne(it,"aria-valuetext",Pe()),Ne(it,"data-testid",(Le=n())!=null?Le:null),Rt=J(At,1,"handleWrap svelte-1tpemng",null,Rt,Be),rt(At,`transform: translateX(${ce()*100}%);`),be=J(O,1,"handle svelte-1tpemng",null,be,Ke)},[()=>({disabled:_(),"slider-dragging":r(ue),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),Tt("pointerenter",it,K),Tt("pointerleave",it,he),Tt("mouseenter",it,ee),Tt("mouseleave",it,He),Tt("wheel",it,je),$(t,Ue),U()}st(["pointerdown","pointermove","pointerup","click"]);var Ui=(t,e)=>Ks[t]>=Ks[e],Rh=(t,e)=>Ks[t]<Ks[e],xs=(t,e)=>Ks[t]<=Ks[e],Bh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var E$=L("<div><!></div>"),P$=L("<div><!> <!></div>"),A$={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 sf(t,e){var we,Ve;F(e,!0),q(t,A$);let[i,o]=De(),n=()=>S(I,"$isAudioAvailable$",i),a=()=>S(y,"$muted$",i),s=()=>S(f,"$volume$",i),d=()=>S(b,"$currentGridType$",i),l=Ce(),p=Wt(),f=l.state.volume$,y=l.state.muted$,{setVolume:u,startVolumeChanging:_,stopVolumeChanging:w}=l.actions.internal,b=l.ui.currentGridType$,C=(we=l.callbacks)==null?void 0:we.onAudioDoesNotExistHint,T=(Ve=l.callbacks)==null?void 0:Ve.onAudioDisabledHint,I=l.state.isAudioAvailable$,M=l.state.isAudioDisabled,P=l.ui.t,k=X(!1),V,W=v(()=>e.isAds||n()),j=v(()=>!r(W)||a()||s()===0),H=v(()=>xs(d(),"s")),Q=v(()=>r(H)?"":r(j)?!n()||M?P("tooltip_sound_unavailable"):P("tooltip_volume_on"):P("tooltip_volume_muted")),ie=P("aria_label_volume"),Z=v(()=>r(j)?0:s()),se=!1,ce=v(()=>e.isAds?!1:M?!T:n()?!1:!C);function Ee(Ie){_(),u(Ie)}function Me(){Bc(l,s(),p.controls.volumeStepWheel)}function ge(){Nc(l,s(),p.controls.volumeStepWheel)}function ae(Ie){u(Ie)}function Pe(Ie){u(Ie),w()}function ne(){se=!0}function N(){se=!1,ze()}function ue(){clearTimeout(V),D(k,!0)}function _e(){ze()}function ze(){V=window.setTimeout(()=>{se||D(k,!1)},p.controls.volumeBarTimeout)}function re(Ie){Ie.preventDefault(),Ie.deltaY<0?Me():Ie.deltaY>0&&ge()}var K=P$();let he;var ee=h(K);ia(ee,{get content(){return r(Q)},translateY:-18,children:(Ie,Ue)=>{let lt=v(()=>r(H)?"btn-volume-vertical":"btn-volume-horizontal");Vt(Ie,{className:"btn-full-opacity",get disabled(){return r(ce)},get testId(){return r(lt)},ariaLabel:ie,get click(){return e.click},get ariaKeyShortCut(){return Br.KeyM},role:"switch",children:(dt,it)=>{ys(dt,{get volume(){return s()},get muted(){return r(j)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var He=A(ee,2);{var je=Ie=>{var Ue=E$();let lt;var dt=h(Ue);let it=v(()=>r(H)?"volumeBar-slider-vertical":""),It=v(()=>r(H)&&!r(k)),ht=v(()=>r(H)?ne:Oc),Qt=v(()=>r(H)?N:Oc),Zt=v(()=>Math.round(r(Z)*100)),At=v(()=>`${Math.round(r(Z)*100)}%`),Rt=v(()=>r(H)?"volume-slider-vertical":"volume-slider");oa(dt,{get className(){return r(it)},get isHidden(){return r(It)},get isVertical(){return r(H)},withWheelHandler:!0,onWheelUp:Me,onWheelDown:ge,onPointerDown:Ee,onHandleMove:ae,onPointerUp:Pe,get onPointerEnter(){return r(ht)},get onPointerLeave(){return r(Qt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Zt)},get ariaValueText(){return r(At)},get filledProgress(){return r(Z)},get handleProgress(){return r(Z)},get testId(){return r(Rt)}}),g(Ue),E(O=>lt=J(Ue,1,"volumeBar svelte-1auih1j",null,lt,O),[()=>({"volumeBar-vertical":r(H)})]),$(Ie,Ue)};R(He,Ie=>{r(W)&&Ie(je)})}g(K),E(Ie=>he=J(K,1,"volumeBar-container svelte-1auih1j",null,he,Ie),[()=>({vertical:r(H)})]),Tt("mouseenter",K,function(...Ie){var Ue;(Ue=r(H)?ue:Oc)==null||Ue.apply(this,Ie)}),Tt("mouseleave",K,function(...Ie){var Ue;(Ue=r(H)?_e:Oc)==null||Ue.apply(this,Ie)}),Tt("wheel",K,re),$(t,K),U(),o()}import{noop as V$}from"@vkontakte/videoplayer-shared/es2018";var M$=ye('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function af(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=M$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),$(t,o)}var L$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function lf(t,e){q(t,L$);let i=m(e,"isFullscreen",8,!1),o=hr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");af(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function td(t,e){F(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,V$),n=Ce(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Vt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let f=bs(p);a.set(f),o()()},get ariaKeyShortCut(){return Br.KeyF},children:(p,f)=>{lf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var R$=ye('<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 df(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=R$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i})),$(t,o)}var B$=ye('<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 cf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=B$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(4),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}var N$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
176
+ .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 fa(t,e){O(e,!0),W(t,B$);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),a=m(e,"isHidden",3,!1),r=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),l=m(e,"isMobile",3,!1),p=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),b=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,Yn),C=m(e,"onHandleMove",3,Yn),T=m(e,"onPointerUp",3,Yn),I=m(e,"onPointerEnter",3,Yn),M=m(e,"onPointerMove",3,Yn),P=m(e,"onPointerLeave",3,Yn),E=m(e,"onMouseEnter",3,Yn),R=m(e,"onMouseLeave",3,Yn),z=m(e,"onWheelUp",3,Yn),q=m(e,"onWheelDown",3,Yn),U=m(e,"onWheelLeft",3,Yn),Y=m(e,"onWheelRight",3,Yn),se=m(e,"onDisabledClick",3,Yn),Q=m(e,"loadedProgress",3,0),de=m(e,"filledProgress",3,0),le=m(e,"handleProgress",3,0),Me=m(e,"ariaLabel",3,""),Be=m(e,"ariaValueMin",3,void 0),ge=m(e,"ariaValueMax",3,void 0),ce=m(e,"ariaValueNow",3,void 0),Ae=m(e,"ariaValueText",3,""),ae=Ht(),N=X(void 0),Ge=X(!1),ee=v(()=>{var j;return(j=ge())!=null?j:0}),We=v(()=>{var j;return Dh(f())&&((j=f()[f().length-1])==null?void 0:j.time)<s(ee)}),ne=v(()=>Dh(f())&&f().length&&s(We)&&s(ee)?Ee(Q()*100,de()*100):[]);function me(j){if(j.preventDefault(),i()&&D(N,ve(i().getBoundingClientRect())),_())return;let pe=Ce(j.clientX,j.clientY),Pe=ie(j.clientX);I()(pe,Pe,s(N).width)}function $e(j){j.preventDefault(),!_()&&P()()}function Z(){E()()}function ze(){R()()}function Je(j){_()||b()&&(j.preventDefault(),j.deltaY<0?z()():j.deltaY>0?q()():j.deltaX>0?Y()():U()())}function Ce(j,pe){return r()?Math.max(0,Math.min(1,(s(N).height-(pe-s(N).top))/s(N).height)):Math.min(Math.max(j-s(N).x,0),s(N).width)/s(N).width}function ie(j){return Math.min(Math.max(j-s(N).x,0),s(N).width)}function Ee(j,pe){let Pe=ae.features.episodesClustering&&!u()?ae.episodeMinWidthPc:0,Re=[],fe=f()[0].time/s(ee)*100,Ke=0,it=0;for(let mt=1;mt<f().length;mt++)Ke=f()[mt].time/s(ee)*100,Ke-fe>Pe&&(Re.push({from:fe,width:Math.max(0,Ke-fe),loadedWidth:Math.max(0,Math.min(Ke,j)-fe),filledWidth:Math.max(0,Math.min(Ke,pe)-fe),interactive:f()[mt-1].interactive,completed:f()[mt-1].completed}),fe=f()[mt].time/s(ee)*100,it++);let Ze={from:fe,width:Math.max(0,100-fe),loadedWidth:Math.max(0,Math.min(j,100)-fe),filledWidth:Math.max(0,Math.min(pe,100)-fe),interactive:f()[it].interactive,completed:f()[it].completed};100-fe<Pe?(it-=1,Re[it].width+=100-fe,Re[it].loadedWidth+=Math.max(0,Math.min(j,100)-fe),Re[it].filledWidth+=Math.max(0,Math.min(pe,100)-fe)):Re[it]=Ze;let yt=f()[0].time;if(yt!==0){let mt=yt/s(ee)*100;Re.unshift({from:0,width:mt,loadedWidth:Math.min(mt,j),filledWidth:Math.min(mt,pe)})}return Re}var qe=R$(),nt=he(qe);{var dt=j=>{var pe=L$();let Pe;bi(pe,21,()=>s(ne),Re=>Re.from,(Re,fe)=>{var Ke=He(),it=he(Ke);{var Ze=yt=>{df(yt,{get videoEpisode(){return s(fe)},get disabled(){return _()}})};V(it,yt=>{s(fe).interactive&&yt(Ze)})}$(Re,Ke)}),g(pe),k(Re=>Pe=J(pe,1,"interactive-icons svelte-1tpemng",null,Pe,Re),[()=>({mobile:l(),hidden:l()&&!s(Ge)})]),$(j,pe)};V(nt,j=>{u()&&j(dt)})}var rt=A(nt,2);let St;rt.__pointerdown=[k$,i,N,_,Ge,Ce,y],rt.__pointermove=[P$,_,Ce,ie,M,N,Ge,C],rt.__pointerup=[A$,_,Ge,Ce,T],rt.__click=[M$,_,se,Ce];var ct=h(rt);{var Yt=j=>{cf(j,{get videoEpisodes(){return s(ne)},get disabled(){return _()},get isMobile(){return l()}})},ni=j=>{var pe=V$(),Pe=h(pe),Re=A(Pe,2);let fe;g(pe),k(Ke=>{st(Pe,`transform: translateX(${Q()*100}%);`),fe=J(Re,1,"filled svelte-1tpemng",null,fe,Ke),st(Re,`transform: translateX(${de()*100}%);`)},[()=>({"active-live":d()})]),$(j,pe)};V(ct,j=>{s(ne).length?j(Yt):j(ni,!1)})}var Ot=A(ct,2);let Et;var te=h(Ot);let At;g(Ot),g(rt),tt(rt,j=>i(j),()=>i()),k((j,pe,Pe)=>{var Re,fe;St=J(rt,1,`slider ${(Re=o())!=null?Re:""}`,"svelte-1tpemng",St,j),Ne(rt,"aria-label",Me()),Ne(rt,"aria-valuemin",Be()),Ne(rt,"aria-valuemax",ge()),Ne(rt,"aria-valuenow",ce()),Ne(rt,"aria-valuetext",Ae()),Ne(rt,"data-testid",(fe=n())!=null?fe:null),Et=J(Ot,1,"handleWrap svelte-1tpemng",null,Et,pe),st(Ot,`transform: translateX(${le()*100}%);`),At=J(te,1,"handle svelte-1tpemng",null,At,Pe)},[()=>({disabled:_(),"slider-dragging":s(Ge),hidden:a(),"slider-vertical":r(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),Tt("pointerenter",rt,me),Tt("pointerleave",rt,$e),Tt("mouseenter",rt,Z),Tt("mouseleave",rt,ze),Tt("wheel",rt,Je),$(t,qe),H()}lt(["pointerdown","pointermove","pointerup","click"]);var zi=(t,e)=>ia[t]>=ia[e],Oh=(t,e)=>ia[t]<ia[e],Bs=(t,e)=>ia[t]<=ia[e],Hh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var N$=L("<div><!></div>"),D$=L("<div><!> <!></div>"),O$={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 uf(t,e){var Ce,ie;O(e,!0),W(t,O$);let[i,o]=De(),n=()=>S(I,"$isAudioAvailable$",i),a=()=>S(b,"$muted$",i),r=()=>S(f,"$volume$",i),d=()=>S(y,"$currentGridType$",i),l=Ie(),p=Ht(),f=l.state.volume$,b=l.state.muted$,{setVolume:u,startVolumeChanging:_,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,C=(Ce=l.callbacks)==null?void 0:Ce.onAudioDoesNotExistHint,T=(ie=l.callbacks)==null?void 0:ie.onAudioDisabledHint,I=l.state.isAudioAvailable$,M=l.state.isAudioDisabled,P=l.ui.t,E=X(!1),R,z=v(()=>e.isAds||n()),q=v(()=>!s(z)||a()||r()===0),U=v(()=>Bs(d(),"s")),Y=v(()=>s(U)?"":s(q)?!n()||M?P("tooltip_sound_unavailable"):P("tooltip_volume"):P("tooltip_volume_muted")),se=v(()=>s(q)?P("tooltip_volume"):P("tooltip_volume_muted")),Q=v(()=>s(q)?0:r()),de=!1,le=v(()=>e.isAds?!1:M?!T:n()?!1:!C);function Me(Ee){_(),u(Ee)}function Be(){Hc(l,r(),p.controls.volumeStepWheel)}function ge(){Fc(l,r(),p.controls.volumeStepWheel)}function ce(Ee){u(Ee)}function Ae(Ee){u(Ee),w()}function ae(){de=!0}function N(){de=!1,We()}function Ge(){clearTimeout(R),D(E,!0)}function ee(){We()}function We(){R=window.setTimeout(()=>{de||D(E,!1)},p.controls.volumeBarTimeout)}function ne(Ee){Ee.preventDefault(),Ee.deltaY<0?Be():Ee.deltaY>0&&ge()}var me=D$();let $e;var Z=h(me);pa(Z,{get content(){return s(Y)},translateY:-18,children:(Ee,qe)=>{let nt=v(()=>s(U)?"btn-volume-vertical":"btn-volume-horizontal");Vt(Ee,{className:"btn-full-opacity",get disabled(){return s(le)},get testId(){return s(nt)},get ariaLabel(){return s(se)},get click(){return e.click},get ariaKeyShortCut(){return Gr.KeyM},role:"button",children:(dt,rt)=>{Rs(dt,{get volume(){return r()},get muted(){return s(q)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ze=A(Z,2);{var Je=Ee=>{var qe=N$();let nt;var dt=h(qe);let rt=v(()=>s(U)?"volumeBar-slider-vertical":""),St=v(()=>s(U)&&!s(E)),ct=v(()=>s(U)?ae:zc),Yt=v(()=>s(U)?N:zc),ni=v(()=>Math.round(s(Q)*100)),Ot=v(()=>`${Math.round(s(Q)*100)}%`),Et=v(()=>s(U)?"volume-slider-vertical":"volume-slider");fa(dt,{get className(){return s(rt)},get isHidden(){return s(St)},get isVertical(){return s(U)},withWheelHandler:!0,onWheelUp:Be,onWheelDown:ge,onPointerDown:Me,onHandleMove:ce,onPointerUp:Ae,get onPointerEnter(){return s(ct)},get onPointerLeave(){return s(Yt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return s(ni)},get ariaValueText(){return s(Ot)},get filledProgress(){return s(Q)},get handleProgress(){return s(Q)},get testId(){return s(Et)}}),g(qe),k(te=>nt=J(qe,1,"volumeBar svelte-1auih1j",null,nt,te),[()=>({"volumeBar-vertical":s(U)})]),$(Ee,qe)};V(ze,Ee=>{s(z)&&Ee(Je)})}g(me),k(Ee=>$e=J(me,1,"volumeBar-container svelte-1auih1j",null,$e,Ee),[()=>({vertical:s(U)})]),Tt("mouseenter",me,function(...Ee){var qe;(qe=s(U)?Ge:zc)==null||qe.apply(this,Ee)}),Tt("mouseleave",me,function(...Ee){var qe;(qe=s(U)?ee:zc)==null||qe.apply(this,Ee)}),Tt("wheel",me,ne),$(t,me),H(),o()}import{noop as U$}from"@vkontakte/videoplayer-shared/es2018";var H$=Se('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function pf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=H$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),$(t,o)}var F$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function ff(t,e){W(t,F$);let i=m(e,"isFullscreen",8,!1),o=Tr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");pf(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function ld(t,e){O(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,U$),n=Ie(),a=n.ui.isFullscreenOpenedByKeyboard,r=n.ui.t,d=v(()=>i()?r("tooltip_fullscreen_on"):r("tooltip_fullscreen_off"));Vt(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:p=>{let f=Ls(p);a.set(f),o()()},get ariaKeyShortCut(){return Gr.KeyF},role:"button",children:(p,f)=>{ff(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var z$=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function mf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=z$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i})),$(t,o)}var W$=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function vf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=W$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(4),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}var q$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
178
178
  svg[data-testid="vk-video-logo-icon--short"] ._en,
179
179
  svg[data-testid="vk-video-logo-icon"] ._en,
180
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function uf(t,e){q(t,N$);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${r(s)+1} 24`);cf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function id(t,e){F(e,!0);let[i,o]=De(),n=()=>S(_,"$isMobile",i),a=()=>S(u,"$currentGridType$",i),s=()=>S(b,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),l=m(e,"logoClickable",3,!1),p=m(e,"targetUrl",3,""),f=Wt(),y=Ce(),u=y.ui.currentGridType$,_=y.ui.isMobile,w=y.ui.t,b=y.isCyrillicRelatedInterface$,C=v(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),I=v(()=>(n()||xs(a(),"l"))&&r(T)),M=()=>{var V,W;e.click(),(V=y.callbacks)!=null&&V.onLogoClicked?(W=y.callbacks)==null||W.onLogoClicked():p()&&window.open(p(),"_blank")},P=v(()=>!l()),k=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Vt(t,{className:"btn-full-opacity",get disabled(){return r(P)},click:M,get testId(){return r(k)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(V){d(V)},children:(V,W)=>{var j=Oe(),H=pe(j);{var Q=Z=>{uf(Z,{get short(){return r(I)},get isCyrillic(){return s()}})},ie=Z=>{df(Z,{})};R(H,Z=>{r(T)?Z(Q):Z(ie,!1)})}$(V,j)},$$slots:{default:!0}}),U(),o()}import{ChromecastState as U$}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Nh}from"@vkontakte/videoplayer-core/es2018";var O$=ye('<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>'),H$=ye('<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>'),F$={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) {
180
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function gf(t,e){W(t,q$);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,r=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${s(r)+1} 24`);vf(t,{get width(){return s(r)},height:"24",get viewBox(){return s(l)},get"data-testid"(){return s(d)}})}function dd(t,e){O(e,!0);let[i,o]=De(),n=()=>S(_,"$isMobile",i),a=()=>S(u,"$currentGridType$",i),r=()=>S(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),l=m(e,"logoClickable",3,!1),p=m(e,"targetUrl",3,""),f=Ht(),b=Ie(),u=b.ui.currentGridType$,_=b.ui.isMobile,w=b.ui.t,y=b.isCyrillicRelatedInterface$,C=v(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),I=v(()=>(n()||Bs(a(),"l"))&&s(T)),M=()=>{var R,z;e.click(),(R=b.callbacks)!=null&&R.onLogoClicked?(z=b.callbacks)==null||z.onLogoClicked():p()&&window.open(p(),"_blank")},P=v(()=>!l()),E=v(()=>s(T)?"btn-vk-video-logo":"btn-vk-logo");Vt(t,{className:"btn-full-opacity",get disabled(){return s(P)},click:M,get testId(){return s(E)},get ariaLabel(){return s(C)},get ref(){return d()},set ref(R){d(R)},children:(R,z)=>{var q=He(),U=he(q);{var Y=Q=>{gf(Q,{get short(){return s(I)},get isCyrillic(){return r()}})},se=Q=>{mf(Q,{})};V(U,Q=>{s(T)?Q(Y):Q(se,!1)})}$(R,q)},$$slots:{default:!0}}),H(),o()}import{ChromecastState as j$}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Fh}from"@vkontakte/videoplayer-core/es2018";var Q$=Se('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),G$=Se('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),Y$={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) {
181
181
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
182
182
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
183
183
  animation-name: svelte-8z1bf5-wave3;}
@@ -225,9 +225,9 @@ Try switching the\xA0quality to\xA0Auto.`},dh=i_;var es=new Map;es.set(uh.EN,dh)
225
225
  100% {
226
226
  opacity: 1;
227
227
  }
228
- }`};function pf(t,e){F(e,!0),q(t,F$);let i=m(e,"isMobile",3,!1),o=v(()=>e.iconState===Nh.CONNECTED),n=v(()=>e.iconState===Nh.CONNECTING);var a=Oe(),s=pe(a);{var d=p=>{var f=O$(),y=h(f),u=h(y),_=h(u);$e(),g(u);var w=A(u);$e(),g(y);var b=A(y),C=h(b),T=h(C);g(C),$e(),g(b),g(f),E(()=>{Ne(_,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(p,f)},l=p=>{var f=H$();let y;var u=h(f),_=A(h(u),5);let w;g(u),g(f),E((b,C)=>{y=J(f,0,"svelte-8z1bf5",null,y,b),w=J(_,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(p,f)};R(s,p=>{i()?p(d):p(l,!1)})}$(t,a),U()}import{noop as z$}from"@vkontakte/videoplayer-shared/es2018";function od(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,z$),s=Ce().ui.t,d=v(()=>e.state===U$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Vt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,p)=>{pf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var W$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),q$={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 ff(t,e){q(t,q$);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),a=m(e,"translateYPx",3,0),s=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),l=X(void 0),p=X(void 0);function f(C){if(!r(p))return 0;let{width:T}=r(p).getBoundingClientRect(),I=T/2;return C<I?I+s():C>e.containerWidth-I?e.containerWidth-I-d():C}let y=v(()=>f(n()));var u=W$(),_=h(u);let w;var b=h(_);ve(b,()=>{var C;return(C=e.children)!=null?C:te}),g(_),gt(_,C=>D(p,C),()=>r(p)),g(u),gt(u,C=>D(l,C),()=>r(l)),E(C=>{rt(u,`transform: translate(${r(y)}px, ${a()}px);`),w=J(_,1,"tooltip svelte-5ygsa2",null,w,C),rt(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,u)}var Hc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Dh=t=>!!(Math.round(Math.abs(t)/90)%2),Oh=t=>Math.abs(t)/90%4===1;var K$=L('<div class="preview svelte-1wqg760"></div>'),Q$=L('<div class="time svelte-1wqg760"> </div>'),G$=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),Y$={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 mf(t,e){F(e,!0),q(t,Y$);let[i,o]=De(),n=()=>S(w,"$rotateAlpha",i),a=()=>S(b,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),l=m(e,"isMobile",3,!1),p=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),y=m(e,"duration",3,0),u=m(e,"isInteractive",3,!1),_=Ce(),w=_.ui.rotateAlpha,b=_.ui.playerSize,C=X(0),T=X(0),I=X(""),M=X(0),P=X(0),k=X(0),V=X(0),W=v(()=>Hc(f(),y(),p())),j=v(()=>Dh(n())),H=v(()=>Oh(n())),Q=v(se),ie=v(()=>(r(H)?1:-1)*(r(C)/2-r(T)/2)),Z=v(()=>r(ie)*-1);Fe(()=>{(K=>(D(C,fe(K.width)),D(T,fe(K.height))))(Ee())}),Fe(()=>{(K=>(D(I,fe(K.imgSrc)),D(M,fe(K.imgWidth)),D(P,fe(K.imgHeight)),D(k,fe(K.imgOffsetX)),D(V,fe(K.imgOffsetY))))(Me(f()))});function se(){var He;let K=l()?s.MOBILE:s.DESKTOP,{isVertical:he}=ce(),ee=30;return(He=r(W))!=null&&He.text&&(ee+=16),(he||r(j))&&(ee+=18,ee+=50),Math.min(Math.max(a().height-ee,0),K)}function ce(){let K=e.previewThumbsData.frameWidth,he=e.previewThumbsData.frameHeight,ee=he>K;return{width:K,height:he,isHorizontal:!ee,isVertical:ee}}function Ee(){let{height:K,isHorizontal:he,isVertical:ee,width:He}=ce();return he&&(K=K/He*r(Q),He=r(Q)),ee&&(He=He/K*r(Q),K=r(Q)),{width:He,height:K}}function Me(K){let he;e.previewThumbsData.isUV?he=Math.floor(y()*K/e.previewThumbsData.frequency):he=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*K)));let ee=Math.floor(he/e.previewThumbsData.countPerImage),He=Math.floor(he%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),je=he%e.previewThumbsData.countPerRow,we=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(we=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&we++);let Ve=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ve=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ie=r(C)*Ve,Ue=r(T)*we,lt=-je*r(C),dt=-He*r(T);return{imgSrc:e.previewThumbsData.links[ee],imgWidth:Ie,imgHeight:Ue,imgOffsetX:lt,imgOffsetY:dt}}var ge=G$();let ae;var Pe=h(ge);{var ne=K=>{var he=K$();E(()=>rt(he,`width: ${r(C)}px; height: ${r(T)}px; background-image: url(${r(I)}); background-size: ${r(M)}px ${r(P)}px; background-position: ${r(k)}px ${r(V)}px;
229
- transform: rotate(${n()}deg) ${r(j)?`translate(${r(ie)}px, ${r(Z)}px)`:""};
230
- `)),$(K,he)};R(Pe,K=>{r(I)&&K(ne)})}var N=A(Pe,2),ue=h(N);{var _e=K=>{var he=Oe(),ee=pe(he);{var He=we=>{var Ve=Vr();E(Ie=>me(Ve,Ie),[()=>z("tooltip_episode_unfinished")]),$(we,Ve)},je=we=>{var Ve=Vr();E(()=>me(Ve,r(W).text||"")),$(we,Ve)};R(ee,we=>{u()&&r(W).completed===!1?we(He):we(je,!1)})}$(K,he)};R(ue,K=>{r(W)&&K(_e)})}g(N);var ze=A(N,2);{var re=K=>{var he=Q$(),ee=h(he,!0);g(he),E(()=>me(ee,d())),$(K,he)};R(ze,K=>{u()||K(re)})}g(ge),E(K=>{ae=J(ge,1,"timeline-preview svelte-1wqg760",null,ae,K),rt(ge,`width: ${r(j)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),$(t,ge),U(),o()}var j$=L('<span class="time svelte-1jr6obn"> </span>'),Z$=L("<!> <!>",1),X$={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 vf(t,e){var Ye,Le,tt,Xe,bt;F(e,!0),q(t,X$);let[i,o]=De(),n=()=>S(ie,"$interactiveEpisodes$",i),a=()=>S(k,"$duration$",i),s=()=>S(P,"$position$",i),d=()=>S(ce,"$isInteractiveExpectation$",i),l=()=>S(se,"$isInteractiveTime$",i),p=()=>S(V,"$isLive$",i),f=()=>S(j,"$isMobile",i),y=()=>S(W,"$isActiveLive$",i),u=()=>S(M,"$bufferedProgress$",i),_=()=>S(ge,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),b=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=Ce(),I=Wt(),M=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,k=T.state.duration$,V=T.state.isLive$,W=T.state.isActiveLive$,j=T.ui.isMobile,H=I.features.episodes&&b()?T.actions.internal.getVideoEpisodes():void 0,Q=T.actions.internal.getPreviewThumbsData(),ie=T.state.interactiveEpisodes$,Z=T.state.isInteractive,se=T.state.isInteractiveTime$,ce=T.state.isInteractiveExpectation$,Ee=T.actions.internal.correctSeekTimeToInteractive,Me=(Ye=T.callbacks)==null?void 0:Ye.onDisabledTimelineClick,ge=T.ui.controls.disabledControls$,ae=(tt=(Le=T.callbacks)==null?void 0:Le.uiInfo)==null?void 0:tt.onTimelineMouseEnter,Pe=(bt=(Xe=T.callbacks)==null?void 0:Xe.uiInfo)==null?void 0:bt.onTimelineMouseLeave,ne=T.ui.t,N=I.features.interactiveResponsiveUi,ue=v(()=>Z?n():H),_e=v(()=>rn(a())),ze=v(()=>rn(s())),re=v(()=>s()/a()),K=v(()=>d()||l()),he=X(!1),ee=X(""),He=X(0),je=X(0),we=X(0),Ve=v(()=>({containerWidth:r(je),translateXPx:r(He),translateYPx:Z&&Q?-36:-16,active:r(he)&&w()&&!r(K)&&!N,pointer:!I.features.timelinePreview||!Q||p()})),Ie=ne("aria_timeline"),Ue=v(()=>ne("aria_timeline_value",{position:r(ze),duration:r(_e)}));function lt(ut){return!Ee||!Z?ut:Ee(ut*a())/a()}function dt(ut){T.actions.internal.startScrubbing(lt(ut))}function it(ut){l()||T.actions.internal.progressScrubbing(lt(ut))}function It(ut){T.actions.internal.completeScrubbing(lt(ut)),D(he,!1)}function ht(ut,ft,Bt){At(ut,ft,Bt),D(he,!0)}function Qt(ut,ft,Bt){At(ut,ft,Bt),D(he,!0)}function Zt(){D(he,!1)}function At(ut,ft,Bt){D(we,fe(lt(ut))),D(He,fe(ft)),Bt&&D(je,fe(Bt)),D(ee,fe(Rt(ut)))}function Rt(ut){let ft=rn((p()?1-ut:ut)*a());return p()?`-${ft}`:ft}var O=Z$(),be=pe(O);ff(be,Jr(()=>r(Ve),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(ut,ft)=>{var Bt=Oe(),Qe=pe(Bt);{var ri=et=>{mf(et,{get time(){return r(ee)},get isMobile(){return f()},get videoEpisodes(){return r(ue)},previewThumbsData:Q,get progress(){return r(we)},get duration(){return a()},isInteractive:Z})},bi=et=>{var Gt=j$(),ki=h(Gt,!0);g(Gt),E(()=>me(ki,r(ee))),$(et,Gt)};R(Qe,et=>{I.features.timelinePreview&&Q&&!p()?et(ri):et(bi,!1)})}$(ut,Bt)},$$slots:{default:!0}}));var oe=A(be,2);let Be=v(()=>Math.round(r(re)*100)),Ke=v(()=>_().has("TIMELINE"));oa(oe,{className:"timeline-slider",get isActiveLive(){return y()},get isMobile(){return f()},ariaLabel:Ie,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Be)},get ariaValueText(){return r(Ue)},get loadedProgress(){return u()},get filledProgress(){return r(re)},get handleProgress(){return r(re)},get videoEpisodes(){return r(ue)},onPointerDown:dt,onHandleMove:it,onPointerMove:Qt,onPointerUp:It,onPointerEnter:ht,onPointerLeave:Zt,onMouseEnter:ae,onMouseLeave:Pe,onDisabledClick:Me,isInteractive:Z,get disabled(){return r(Ke)},get hideHandel(){return l()},testId:"progress_bar",get ref(){return C()},set ref(ut){C(ut)}}),$(t,O),U(),o()}var J$={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 nd(t,e){F(e,!0),q(t,J$);let[i,o]=De(),n=()=>S(l,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"duration",3,0),d=Ce(),l=d.ui.isMobile,p=d.ui.t,f=v(()=>rn(s())),y=v(()=>rn(a())),u=v(()=>a()/s()),_=v(()=>p("aria_timeline_value",{position:r(y),duration:r(f)})),w=v(()=>Math.round(r(u)*100));oa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(_)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),U(),o()}var e2=L("<div><!></div>"),t2=L("<div></div>"),i2={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 na(t,e){F(e,!0),q(t,i2);let[i,o]=De(),n=()=>S(_,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(b,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=m(e,"isAds",3,!1),p=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),y=m(e,"ref",15,void 0),u=Ce(),_=u.state.isLive$,w=u.ads.duration,b=u.ads.position,C=u.ui.isMobile,T=v(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=Oe(),M=pe(I);{var P=V=>{var W=e2();let j;var H=h(W);{var Q=Z=>{nd(Z,{get position(){return s()},get duration(){return d()}})},ie=Z=>{vf(Z,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(se){y(se)}})};R(H,Z=>{l()?Z(Q):Z(ie,!1)})}g(W),E(Z=>j=J(W,1,"timeline svelte-41cp6d",null,j,Z),[()=>({withoutPadding:!f(),mobile:a()})]),$(V,W)},k=V=>{var W=t2();let j;E(H=>j=J(W,1,"timeline-stub svelte-41cp6d",null,j,H),[()=>({mobile:a()})]),$(V,W)};R(M,V=>{r(T)?V(P):V(k,!1)})}$(t,I),U(),o()}import{noop as r2}from"@vkontakte/videoplayer-shared/es2018";var o2=ye('<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 gf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=o2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(3),g(o),E(()=>n=Te(o,n,{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})),$(t,o)}var n2=ye('<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 hf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=n2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),$(t,o)}var s2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),a2=L('<span class="text svelte-1yhs2ga"> </span>'),l2=L('<span class="text count svelte-1yhs2ga"> </span>'),d2=L("<!> <!>",1),c2={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 rd(t,e){var ce,Ee,Me;F(e,!0),q(t,c2);let[i,o]=De(),n=()=>S(w,"$currentGridType$",i),a=()=>S(b,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=m(e,"position",3,0),p=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),y=Ce(),u=(Ee=(ce=y.callbacks)==null?void 0:ce.onEpisodeChanged)!=null?Ee:r2,_=!!((Me=y.callbacks)!=null&&Me.onEpisodeClicked),w=y.ui.currentGridType$,b=y.ui.episodes.openedByKeyboard$,C=y.ui.episodes.panelOpened$,T=y.ui.isMobile,I=y.ui.t,M=X(void 0),P=ge=>{var Pe,ne,N;if(!!((Pe=y.callbacks)!=null&&Pe.onEpisodeClicked)){let ue=bs(ge);b.set(ue),C.set(!0),(N=(ne=y.callbacks)==null?void 0:ne.onEpisodeClicked)==null||N.call(ne,ue)}},k=X(null),V=v(()=>l()/p());Fe(()=>{var ae;let ge=Hc(r(V),p(),f());ge?((ae=r(k))==null?void 0:ae.time)!==ge.time&&(u(ge),D(k,fe(ge))):D(k,null)});let W=v(()=>{var ge;return((ge=r(k))==null?void 0:ge.text)||""}),j=v(()=>Ui(n(),"xl")?"FULL":Ui(n(),"m")&&Rh(n(),"xl")?"COUNT":"SHORT"),H=v(()=>`${I("tooltip_episodes")}: ${r(W)}`),Q=async(ge,ae,Pe)=>{await vo(),(ge==null?void 0:ge.getAttribute("aria-expanded"))==="false"&&ae&&!Pe&&wt(()=>{b.set(!1),ge.focus()})};Fe(()=>{Q(r(M),a(),s())});var ie=Oe(),Z=pe(ie);{var se=ge=>{let ae=v(()=>d()?"px-0":"");Vt(ge,{get className(){var Pe;return`w-max btn-full-opacity btn-jc-l ${(Pe=r(ae))!=null?Pe:""}`},testId:"btn-episodes",click:P,disabled:!_,get ariaExpanded(){return s()},get ariaLabel(){return r(H)},get ref(){return r(M)},set ref(Pe){D(M,fe(Pe))},children:(Pe,ne)=>{var N=Oe(),ue=pe(N);{var _e=re=>{var K=s2(),he=pe(K),ee=h(he,!0);g(he);var He=A(he,2),je=h(He);hf(je,{}),g(He),E(()=>me(ee,r(W))),$(re,K)},ze=re=>{var K=d2(),he=pe(K);gf(he,{});var ee=A(he,2);{var He=we=>{var Ve=a2(),Ie=h(Ve,!0);g(Ve),E(()=>me(Ie,r(W))),$(we,Ve)},je=(we,Ve)=>{{var Ie=Ue=>{var lt=l2(),dt=h(lt,!0);g(lt),E(()=>me(dt,f().length)),$(Ue,lt)};R(we,Ue=>{r(j)==="COUNT"&&Ue(Ie)},Ve)}};R(ee,we=>{r(j)==="FULL"?we(He):we(je,!1)})}$(re,K)};R(ue,re=>{d()?re(_e):re(ze,!1)})}$(Pe,N)},$$slots:{default:!0}})};R(Z,ge=>{r(k)&&ge(se)})}$(t,ie),U(),o()}import{debounceFn as cy}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as _2,PlaybackState as sd,Player as b2,PredefinedQualityLimits as Or,VideoFormat as ad,clientChecker as $2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as On,getHighestQuality as y2,InterfaceLanguage as x2,isInvariantQuality as w2,isNonNullable as S2,loadVKLangPack as C2,Logger as T2,map as Kh,merge as I2,Observable as k2,Subject as Yc,Subscription as wf,TracerFactory as E2,ValueSubject as P2,VideoQuality as A2,devNull as M2,now as L2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as os}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as u2,devNull as Yt,now as jt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as p2,Subject as No,clearVideoElement as f2}from"@vkontakte/videoplayer-shared/es2018";var Hh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var m2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Fc=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 No,loadStarted$:new No,loadEnded$:new No,loadError$:new No,ready$:new No,slotRequested$:new No,started$:new No,timeRemained$:new No,paused$:new No,resumed$:new No,ended$:new No,empty$:new No,skipped$:new No,clicked$:new No,closed$:new No,error$:new No};this.loadAdman=e=>(Yt.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 a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[jt()]}),o())};p2(m2,e,this.loadTimeout).then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[jt()]}),window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[jt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[jt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[jt()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[jt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[jt()]}),s()),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:[jt()]}),!d&&(window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[jt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Yt.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)=>{Yt.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"}),xe(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Yt.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;Yt.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(Yt.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;Yt.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;Yt.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;Yt.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;Yt.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")=>{Yt.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"),Yt.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,this.usePuid=i.usePuid}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var M;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[jt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:p={},duration:f,previewParam:y}=e,u,_=this.playerState&&xe(this.playerState.vsid);_&&(this.isVsidOriginal?u=_:u=parseInt(_,36));let{isEmbed:w,immediateOrigin:b}=u2(),C=(M=w?b:window.location.href)!=null?M:window.location.href,T={...p,dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:y,...u?{request_id:u}:{},duration:f,...this.usePuid?{puid10:Hh(i,o),puid11:n?0:1}:{}};y||delete T.preview;let I={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let P=new window.AdmanHTML;P.setDebug(!1),P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.init(I),this.adman=P,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(P){Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[jt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Yt.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.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(Yt.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=xe(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Yt.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(Yt.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(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),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:[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(Yt.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(Yt.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,a,s,d,l,p,f,y,u;Yt.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),(a=this.adman)==null||a.adMidrollPoint(void 0),(s=this.adman)==null||s.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(y=this.adman)==null||y.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&f2(this.videoElement),this.isDestroyed=!0}};var Fh=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 _f=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 a of n){let s={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!s.startTime&&!s.endTime){let p=new Uc,{startTime:f,endTime:y}=p.parse(l);s.startTime=f,s.endTime=y}else if(l.trim()!==""){let p=new bf,{texts:f}=p.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Uc=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 a=Number(e)*60*60,s=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+s+d+l}},bf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let d=0,l=[];for(;d<s.length;){let p=["<",">"].reduce((f,y)=>{let u=s.indexOf(y,d);return f===-1||f>u?u:f},-1);if(p===-1){l.push(s.substring(d));break}l.push(s.substring(d,p)),d=p+1}return l}}),a=new Uc;for(let s of n)a.isTime(s)?i.texts.push({type:"timestamp",value:a.parseTime(s)}):i.texts.push({type:"text",value:s});return i}},Uh=_f;import{isNonNullable as $f}from"@vkontakte/videoplayer-shared/es2018";var ra,xi,yf=0,xf=!1,zh="",Wh=(t,e=0,i=0)=>t<e&&t<i,zc=(t,e=0,i=0)=>t>=e&&t<=i,v2=(t,e=0,i=0)=>t>e&&t>i,qh=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:l})=>l===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:f})=>zc(t,p,f));let a=t>=yf,s=t<yf;if(yf=t,s&&(xf=!1),$f(ra)&&zc(t,ra.startTime,ra.endTime)&&zh===e.value)return ra;if(!$f(xi)&&(n!=null&&n.length)&&!xf){xi=n.find(({startTime:p,endTime:f})=>zc(t,p,f)||a&&Wh(t,p,f)),ra=void 0,!$f(xi)&&n[n.length-1].endTime<t&&(xf=!0);return}else{if(zc(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime))return ra=xi,xi=void 0,zh=e.value,ra;(a&&v2(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime)||s&&Wh(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime))&&(xi=void 0)}};var Wc={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},g2={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},qc=t=>{var e,i;return(i=(e=Wc[t])!=null?e:Wc[g2[t]])!=null?i:void 0};import{Subscription as h2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var Kc=class{constructor(e,i=new h2){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Qc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Qc||{});var Dr=t=>t!=null?t:0,is=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(Dr(i==null?void 0:i.top)-Dr(o==null?void 0:o.top)),left:Math.round(Dr(i==null?void 0:i.left)-Dr(o==null?void 0:o.left)),bottom:Math.round(Dr(i==null?void 0:i.bottom)-Dr(o==null?void 0:o.top)),right:Math.round(Dr(i==null?void 0:i.right)-Dr(o==null?void 0:o.left))}},Ja=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Dr(e==null?void 0:e.width),height:Dr(e==null?void 0:e.height)}};var Gc="off";var Qh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:f,previewThumbsData:y,uiConfig:u,coreConfig:_,player:w,disabledControls:b,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:M,stopPlayer:P,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:V,additionalButtons:W,additionalSettingsMenuItems:j,additionalContextMenuItems:H,playPrevVideo:Q,playNextVideo:ie,looped:Z=!1,statistics:se,saveRate:ce,internalsExposure:Ee,playerView:Me})=>{var Hm,Fm,Um;let ge={..._,configName:[...(Hm=_.configName)!=null?Hm:[],"ui"],isAudioDisabled:s,live:{...(Fm=_.live)!=null?Fm:{},isLiveCatchUpMode:!!n}},ae=u,Pe=E2.createRootTracer(ae.features.tracer),ne=Pe.createComponentTracer("Store"),N=w||new b2(ge,Pe);Ee==null||Ee.expose({corePlayer:N});let ue=new T2,_e=new Fc(ue,{loadTimeout:ae.ads.loadTimeout,initTimeout:ae.ads.initTimeout,runtimeTimeout:ae.ads.runtimeTimeout,useAdmanFromNPM:ae.ads.useAdmanFromNPM,volumeMultiplier:ae.ads.volumeMultiplier,isVsidOriginal:ae.ads.isVsidOriginal,usePuid:ae.ads.usePuid}),ze=Gs.getInstance(),re=p==null?void 0:p.pictureInPictureApi,K=p==null?void 0:p.annotationsApi,he=p==null?void 0:p.slotsApi,ee=ue.createComponentLog("Store"),He,je,we={},Ve=new _c,Ie=se?ei(se.oneStat.vsid$):or(void 0),Ue=le(gs()),lt=le(!1),dt=(Um=re==null?void 0:re.info.isActive$)!=null?Um:new P2(!1),it=le(0),It=le([]),ht=I2(N.events.fatalError$,N.events.managedError$).subscribe(c=>It.update(x=>[...x,c])),Qt=or(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Zt=async c=>{var de;let x=Object.values(x2).includes(c);if(ae.downloadVKLanguages&&(x&&ae.updateBuiltinLanguages||!kp(c))){let qe;try{qe=await C2(c,Ag,Mg)}catch(Ct){(de=se==null?void 0:se.oneStat)==null||de.logError({errorType:"VKLangPack",fatal:!1}),ze==null||ze.report(Ct,{errorType:"VKLangPack",fatal:!1})}qe&&(Ip({language:c,pack:qe,fallback:ae.defaultLanguage}),At.set(c))}kp(c)&&At.set(c)},At=le(t),Rt=le(e);Zt(t);let O=(c,x)=>{let B=xe(At);return Ep(B,c,x,ae.defaultLanguage)},be=le("thumb"),oe=(()=>{let c=hi([Qt,be],([x,B])=>x?"crashed":B);return{...c,is:x=>xe(c)===x}})(),Be=(()=>{let c=le(new Set(b));return{...c,add:x=>{c.update(B=>new Set([...B].concat(x)))},remove:x=>{c.update(B=>{let de=[...B];return new Set(Array.isArray(x)?de.filter(qe=>!x.includes(qe)):de.filter(qe=>qe!==x))})},includes:x=>{let B=xe(c);return Array.isArray(x)?x.every(de=>B.has(de)):B.has(x)}}})();ne.log("create store"),ee({message:"create store"});let Ke=c=>{let x=c.container;x.append(N.experimental.element$.getValue()),ft=new MutationObserver(B=>{let{removedNodes:de}=B[0];de.length&&x.append(N.experimental.element$.getValue())}),ft.observe(x,{childList:!0})},Ye=c=>{ee({message:`init video, config: ${JSON.stringify(c)}`}),C?Ke(c):(M2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[L2()]}),N.initVideo(c)),ne.log("init video",{isInteractive:C}),c.subtitles&&N.setExternalTextTracks(c.subtitles),He=c},Le=new Yc,tt=c=>Le.next(c),Xe=new Yc,bt=new Yc,ut=new Yc,ft=null,Bt={actionRewind$:Xe,actionSeek$:bt,inPiP$:dt,inFullscreen$:new k2(c=>Ue.subscribe(x=>c.next(x))),actionSetSubtitle$:ut,nextMovie$:Le};if(se){let{oneStat:c,statSubscription:x}=se;C||x.add(c.attachTo(N)),x.add(c.attachToUi(Bt)),x.add(c.attachToAds(_e.events)),c.authorize(a).catch(B=>{ee({message:`onestat auth error ${String(B)}`})})}if(ze){let c=new wf,x=(B,de)=>c.add(B.subscribe(de));if(x(N.events.managedError$,B=>{ze.logIError(B)}),x(N.events.fatalError$,B=>{ze.logIError(B,!0)}),se){let{oneStat:B}=se;x(B.experimental.error$,de=>{ze.logIError(de)})}ze.sentrySubscription.add(c)}let Qe=()=>{$2.device.isIOS&&je&&vh(je).catch(c=>{ee({message:`exitIosSafariFullscreen failed: ${c}`})})},ri=new wf().add(N.experimental.element$.subscribe(c=>{c&&(je=c,c.classList.add("player-media"),js(re)&&(re.updateVideoElement(),re.registryEventHandlers()),C&&c.setAttribute("pip","false"),Me==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;Qe(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(N.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(N.events.started$.subscribe(async()=>{var x,B;js(re)&&await(re==null?void 0:re.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(B=we.onStarted)==null||B.call(we,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var B;(B=l==null?void 0:l.onSeek)==null||B.call(l,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(N.info.position$.subscribe(c=>{var B;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((B=l==null?void 0:l.onTimeupdate)==null||B.call(l,x,c),_e.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=l==null?void 0:l.onCrashed)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=l==null?void 0:l.onRecoverableError)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{Et.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{Et.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{C&&(c?(I!=null&&I.getValue()&&Be.add(Vl),Be.add("PLAY_BUTTON")):Be.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(_e.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(_e.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(_e.events.loadError$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(_e.events.init$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(_e.events.ready$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(_e.events.started$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:B.call(x,c)})).add(_e.events.timeRemained$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:B.call(x,c)})).add(_e.events.ended$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:B.call(x,c)})).add(_e.events.empty$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(_e.events.clicked$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:B.call(x,c)})).add(_e.events.closed$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:B.call(x,c)})).add(_e.events.error$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:B.call(x,c)})).add(_e.events.paused$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(_e.events.resumed$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)})),bi=new wf,et=()=>{var Ct,Ot,Kt;let{debugLog:c}=ae,x,B="#9df7b7",de="#efd169";if(c&&c!==!0){let{colors:Ht}=c;x=c.tag,B=(Ct=Ht==null?void 0:Ht[0])!=null?Ct:B,de=(Kt=(Ot=Ht==null?void 0:Ht[1])!=null?Ot:Ht==null?void 0:Ht[0])!=null?Kt:de}let qe=x?`: ${x}`:"";bi.add(N.events.log$.subscribe(Ht=>{console.debug(`%c sdk${qe} `,`background:${B};`,`sdk component: ${Ht.component}`,Ht.message)})).add(ue.log$.subscribe(Ht=>{console.debug(`%c ui${qe} `,`background:${de};`,`ui component: ${Ht.component}.`,Ht.message)}))},Gt=()=>{bi.unsubscribe()},ki=(c,x)=>{ne.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},zi=(c=!1)=>{ne.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Mt=(c,x,B)=>{ne.log("move camera focus px",{xpx:c,ypx:x,dt:B}),N.moveCameraFocusPX(c,x,B)},$t=()=>{N.holdCamera()},Nt=()=>{N.releaseCamera()},oo=or(N.info.position$.getValue(),c=>{let x,B,de=()=>{let qe=N.info.playbackState$.getValue(),Ct=N.info.isLive$.getValue(),Ot=N.info.duration$.getValue(),Kt=N.info.position$.getValue();if(qe&&[sd.PLAYING,sd.PAUSED].includes(qe)){let Ht=Ct?Kt-Ot:N.getExactTime();Ht!==B&&c(Ht),B=Ht}x=requestAnimationFrame(de)};return de(),()=>cancelAnimationFrame(x)}),sn=ei(N.info.playbackState$),hn=ei(N.info.currentBuffer$),bo=ei(N.info.isEnded$),G=ei(N.info.isLive$),Xt=ae.features.playbackRate?ei(N.info.canChangePlaybackSpeed$):or(!1),_i=ei(N.info.liveBufferTime$),Ei=ei(N.info.volume$),ai=ei(N.info.muted$),mt=bc(N.info.predefinedQualityLimitType$.pipe(Kh(c=>c===Or.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===Or.TRAFFIC_SAVING),pi=bc(N.info.predefinedQualityLimitType$.pipe(Kh(c=>c===Or.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===Or.HIGH_QUALITY),Je=ei(N.info.autoQualityLimitingAvailable$),Lt=ei(N.info.availableQualities$),no=ei(N.info.availableQualitiesFps$),ti=ei(N.info.chromecastState$),rr=ei(N.info.chromecastDeviceName$),ro=ei(N.info.currentFormat$),ko=ei(N.info.throughputEstimation$),li=ei(N.info.videoBitrate$),St=ei(N.info.intrinsicVideoSize$),Pi=ei(N.info.duration$),Eo=ei(N.info.isAudioAvailable$),ui=null,Oo=N.info.isBuffering$,Vi=or(Oo.getValue(),c=>{let x=Oo.subscribe(B=>{B&&ui===null?ui=window.setTimeout(()=>{c(Oo.getValue()),ui=null},ae.loaderDelay):c(B)});return()=>{x.unsubscribe(),ui&&clearTimeout(ui)}}),$o=()=>{ui&&clearTimeout(ui),ui=null},yo=hi([Pi,G],([c,x])=>x?-c:c),Hn=hi([sn],([c])=>c===sd.PLAYING),Ri=ei(N.info.atLiveEdge$),_n=ei(N.info.atLiveDurationEdge$),xo=ei(N.info.position$),Po=hi([xo,Pi],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),bn=hi([ti],([c])=>c===_2.CONNECTED),Sr=ei(N.info.availableVideoStreams$),sr=ae.features.audioLanguages?ei(N.info.availableAudioStreams$):or([]),Fn=ei(N.info.currentVideoStream$),$n=ei(N.info.currentAudioStream$),yn=c=>{c.language&&Tp(c.language),N.setVideoStream(c)},Un=c=>{c.language&&Tp(c.language),N.setAudioStream(c)},so=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(de=>"isDefault"in de&&de.isDefault)),x)return x;let B=th();return B&&(x=c.find(({language:de})=>B===de)),x!=null||(x=c.at(0)),x},ot=!1;ri.add(N.info.availableAudioStreams$.subscribe(c=>{if(!ot&&c.length){let x=so(c);x&&(N.setAudioStream(x),ot=!0)}}));let xn=!1;ri.add(N.info.availableVideoStreams$.subscribe(c=>{if(!xn&&c.length){let x=so(c);x&&(N.setVideoStream(x),xn=!0)}}));let Ho=le(void 0),wn=ei(N.info.isAutoQualityEnabled$,c=>c&&Ho.set(void 0)),Sn=ei(N.info.currentQuality$,()=>Ho.set(void 0)),Ao=hi([Ho,Sn],([c,x])=>c!=null?c:x),ar=hi(ro,c=>c!==ad.MPEG),Fo=hi([Lt,no,wn,Ao,ar],([c,x,B,de,qe])=>{let Ct=[];qe&&Ct.push({value:"auto",displayValue:O("auto_quality_option"),selected:B});let Ot=c.filter(Kt=>!w2(Kt));for(let Kt of Ot){let Ht=x[Kt];Ct.push({value:Kt,displayValue:`${Kt}${Ht?Fh(Ht):""}`,selected:B?!1:Kt===de})}return Ct}),Cn=ei(N.info.currentPlaybackRate$),Uo=hi([Cn,Ri,_n],([c,x,B])=>{let de=B||C?1:ae.controls.playbackRateMin,qe=x?1:ae.controls.playbackRateMax,Ct=ae.controls.playbackRateStep,Ot=[];for(let Kt=de;Kt<=qe;Kt+=Ct)Ot.push({value:Kt,displayValue:Kt===1?O("playback_rate_1"):O("playback_rate",{multiplier:Kt.toString(10)}),selected:c===Kt});return Ot}),ao={displayValue:O("subtitles_off"),value:Gc},Bi=le({...ao}),Tn=ae.features.subtitles?ei(N.info.availableTextTracks$):or([]),Mo=Kg(),zo=hi([Tn,Bi],([c,x],B)=>{var Ct;let de=[],qe=c.find(({id:Ot})=>Ot===x.value);if(qe!=null&&qe.url){let[,Ot]=(Ct=Mo.find(qe.url))!=null?Ct:[];if(Ot){B(Ot);return}Ve.download(qe.url).then(Kt=>{if(!Kt||Ve.isDestroyed())return;let Ht=new Uh,as=qe.language;if(as){let R1=!!qe.isAuto,B1=Ht.parse(Kt,as);de.push({lang:as,subtitles:B1,isAuto:R1,id:qe.id})}Mo.add(qe.url,de),xe(Bi).value===x.value&&B(de)}).catch(Kt=>{var Ht;(Ht=se==null?void 0:se.oneStat)==null||Ht.logError({errorType:"Subtitles download",fatal:!1}),ze==null||ze.report(Kt,{errorType:"Subtitles download",fatal:!1})})}B(de)}),Lo=hi([Cn,Hn,Bi],([c,x,B],de)=>{let Ot;if(N.info.isLive$.getValue()&&x&&B.value!==ao.value){let Ht=()=>{let as=1e3/(3*c);Ot=setTimeout(Ht,as),de(Date.now())};return Ht(),()=>clearTimeout(Ot)}}),In=hi([Tn,Bi],([c,x])=>{if(!c.length)return[];let B=[];for(let{language:de,isAuto:qe,id:Ct}of c){let Ot=de&&qc(de);de&&Ot&&B.push({displayValue:qe?O("subtitles_auto",{language:Ot}):Ot,value:Ct,selected:(x==null?void 0:x.value)===Ct,isAuto:qe})}return B.length?(B.unshift({...ao,selected:(x==null?void 0:x.value)===ao.value}),B):[]}),Ni={available:[],prev:[]},Di=()=>{var x,B;let c=N.experimental.getCurrentTime$.getValue();return(B=(x=c==null?void 0:c())!=null?x:je==null?void 0:je.currentTime)!=null?B:0},lr=hi([oo,Bi,zo,Lo],([c,x,B,de])=>{var Ct;let qe=N.info.isLive$.getValue();if(qe&&Ni.prev!==B){let Ot=B.find(({id:Ht})=>Ht===x.value),Kt=Ni.prev.find(({id:Ht})=>Ht===x.value);if(Ot){let Ht={...Ot,subtitles:[...(Ct=Kt==null?void 0:Kt.subtitles)!=null?Ct:[],...Ot.subtitles]};Ni.available=[Ht],Ni.prev=B}}if(x&&x.value!==ao.value){let Ot=qe?Di():c,Kt=qe?Ni.available:B;return qh(Ot,x,Kt,qe)}}),Vo=hi([lr],([c])=>c!=null&&c.texts?c.texts:[]);ri.add(Bi.subscribe(c=>{var x,B;if(c.value===ao.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let de=Object.entries(Wc).find(([qe,Ct])=>Ct===c.displayValue);(B=l==null?void 0:l.onSubtitleOn)==null||B.call(l,de?de[0]:"")}}));let zn=le(!0),kn=hi([hn,yo,xo,_i],([c,x,B,de])=>{var Kt;let qe=(Kt=c==null?void 0:c.end)!=null?Kt:0;if(!de)return qe/x;let Ot=-B+de-x;return(qe-Ot)/x}),Wn=ei(N.info.availableSources$),dr=hi([Wn],([c])=>Object.keys((c==null?void 0:c[ad.MPEG])||{}).length>0),an=()=>{var B,de,qe;let c=Object.keys(((de=(B=N.info.availableSources$)==null?void 0:B.getValue())==null?void 0:de[ad.MPEG])||{}),x=y2(c)||A2.Q_144P;return(qe=He.sources[ad.MPEG])==null?void 0:qe[x]},cr=()=>{var x;let c=an();if(c)ne.log("download video",{url:c}),zg(c,((x=He==null?void 0:He.meta)==null?void 0:x.title)||"video");else{let B="There is no URL for download video";ne.log("download video",{message:B}),ee({message:B})}},ur=()=>{ee({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Kn(Jt()):Qn(!c)},qn=()=>{var c;if(Et.ui.settingsMenu.visible$.set(!1),!xe(Et.ui.settingsSubMenu.visible$)){let x=xe(Et.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let de=Ja(x),qe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:de,position:qe,name:"settings"})}}ne.log("close settings menu")},Cr=async(c,x=()=>Promise.resolve())=>{var qe;Et.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Et.ui.settingsMenu.visible$.set(!0),await x();let B=xe(Et.ui.settingsMenu.ref$),de=ks();if((qe=l==null?void 0:l.uiInfo)!=null&&qe.onSettingsMenu&&B&&de){let Ot=Ja(B),Kt=is(B,de);l.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:Kt,name:"settings"})}ne.log("open settings menu",{wasOpenedByKeyboard:c})},Tr=(c,x=!1)=>{var Ct;Et.ui.settingsSubMenu.visible$.set(!1);let B=xe(Et.ui.settingsMenu.ref$),de=ks(),qe=xe(Et.ui.settingsMenu.visible$);if((Ct=l==null?void 0:l.uiInfo)!=null&&Ct.onSettingsMenu&&B&&de)if(qe&&!x){let Kt=Ja(B),Ht=is(B,de);l.uiInfo.onSettingsMenu({visible:!0,size:Kt,position:Ht,name:"settings"})}else{let Kt=Ja(c),Ht={top:0,left:0,bottom:0,right:0},as=xe(Et.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Kt,position:Ht,name:as})}ne.log("close settings sub menu")},En=(c,x)=>{var de;Et.ui.settingsSubMenu.visible$.set(!0),Et.ui.settingsSubMenu.ref$.set(x),Et.ui.settingsSubMenu.name$.set(c);let B=ks();if((de=l==null?void 0:l.uiInfo)!=null&&de.onSettingsMenu&&x&&B){let Ct=Ja(x),Ot=is(x,B);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:Ct,position:Ot})}ne.log("open settings sub menu",{name:c})},Jt=()=>{var x;let c=Math.max(ae.volumeMinRestore,(x=$c())!=null?x:0);return c===0?ae.volumeDefault:c},Kn=c=>{let x=c===0?Jt():c,B=N.info.muted$.getValue();ee({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let de=!s||oe.is("ads");B&&c>0&&de&&(B=!1,Sp(!1)),N.setVolume(c,B),_e.setVolume(c),bp(x)},Qn=c=>{let x=N.info.volume$.getValue();if(ee({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c,oe.is("ads")),_e.setVolume(c?0:x),Sp(c),!c&&x===0){let B=Jt();N.setVolume(B),bp(B),_e.setVolume(B)}},nt=le(!1),yt=c=>{var x,B;ne.log("set looped",{isLooped:c}),nt.set(c),N.setLooped(c),(B=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||B.call(x,c)};yt(Z);let wi=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},wo=(c,x=!1)=>{var B;ee({message:`set autoplayNextEnabled, value: ${c}`}),ne.log("set autoplay next enabled",{autoplayNextEnabled:c}),Et.ui.autoplayNextEnabled$.set(c),nh(c),x&&((B=l==null?void 0:l.onSetAutoplayNextEnabled)==null||B.call(l,c))},lo=c=>{ee({message:`set timerNextVideoRunning, value: ${c}`}),ne.log("set timer next video running",{timerNextVideoRunning:c}),Et.ui.timerNextVideoRunning$.set(c)},So=(c=!0)=>{var de;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(de=l==null?void 0:l.onPrevVideoClick)==null?void 0:de.call(l)}catch(qe){ee({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&ct("prev")||Q()},Co=(c=!0)=>{var de;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(de=l==null?void 0:l.onNextVideoClick)==null?void 0:de.call(l)}catch(qe){ee({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&ct("next")||ie()},ct=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:B,playbackStatusShow:de}}=ae;return B&&de&&!x?(Et.ui.aboutToGoNextVideo.set(c),Et.ui.userActionsDisabled.set(!0),!0):!1},qt=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},oi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},fi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Qi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},co=()=>{N.prepare()},Wi=()=>{On(Et);let c=xe(Et.ui.controls.disabledControls$),x=xe(Et.playerPhase),B={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ee({message:"toggle play"}),x==="ads"){B.action="play",ne.log("toggle adman play",B),_e.togglePlay();return}let de=()=>{var Ct;ee({message:"toggle play, call player.play"}),B.action="play",N.play(),(Ct=l==null?void 0:l.onPlay)==null||Ct.call(l)},qe=()=>{var Ct;ee({message:"toggle play, call player.pause"}),B.action="pause",N.pause(),(Ct=l==null?void 0:l.onPause)==null||Ct.call(l)};if(N.info.isEnded$.getValue()){if(ee({message:"toggle play, video ended, seek to 0"}),Xe.next(),bt.next(os.REWIND),C){M==null||M();return}N.seekTime(0),de()}else N.info.playbackState$.getValue()!==sd.PLAYING?de():qe();ne.log("toggle play",B)},Oi=(c,{changeReason:x="default",appliesTo:B="to-video"}={})=>{ee({message:`set quality, quality: ${c}`}),ne.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ae.features.qualityDetailsSubMenuEnabled?(yc({type:"exact_quality",quality:c,videoId:i},B),Bl(),N.setPredefinedQualityLimits(Or.UNKNOWN)):$p(i,c),Ho.set(c),N.setQuality(c)):ae.features.qualityDetailsSubMenuEnabled?x==="default"&&(Ir("auto_quality",B),xe(mt)&&Si(!1),xe(pi)&&Wo(!1)):Bl()},Si=(c,x="as-default")=>{ee({message:`set trafficSavingEnabled, value: ${c}`}),ne.log("set traffic saving enabled",{trafficSavingEnabled:c});let B=c?Or.TRAFFIC_SAVING:Or.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?(Pn(B,x),Rl(!1)):(N.setPredefinedQualityLimits(B),Rl(c))},Wo=(c,x="as-default")=>{ee({message:`set highQualityEnabled, value: ${c}`}),ne.log("set high quality enabled",{highQualityEnabled:c}),Pn(c?Or.HIGH_QUALITY:Or.UNKNOWN,x)},Pn=(c,x)=>{c!==Or.UNKNOWN&&(xe(Je)&&!xe(wn)&&Oi("auto",{appliesTo:x,changeReason:"limit-changed"}),Ir(c,x)),N.setPredefinedQualityLimits(c)},Ir=(c,x)=>{yc({type:c,videoId:i},x),x==="as-default"&&yc({type:c,videoId:i},"to-video")},Gn=c=>{ne.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ae.features.saveRate&&ce&&!N.info.isLive$.getValue()&&ih(c)},kr=()=>{let c=xe(Uo),x=c.findIndex(({selected:de})=>de);if(x===c.length-1)return;let B=c[x+1];Gn(B.value)},ln=()=>{let c=xe(Uo),x=c.findIndex(({selected:de})=>de);if(x===0)return;let B=c[x-1];Gn(B.value)},Yn=(c={...ao,selected:!1})=>{ne.log("set subtitles",{...c}),c&&c.value!==ao.value&&ut.next(c.isAuto?c.value+"_auto":c.value),Bi.set(c)},jn=()=>{ne.log("toggle subtitles");let c=xe(In),x=xe(Bi),B=xe(At);if((x==null?void 0:x.value)===ao.value){let de=c.filter(qe=>qe.value!==ao.value).find(qe=>qe.value===B)||c[1];Yn(de)}else Yn()},Hr=le(!0),Zn=c=>{Hr.set(c)},qo=(c,x,B=!0)=>{var de;if(ee({message:`seek to time, time: ${c}`}),ne.log("seek to time",{time:c,action:x,forcePrecise:B}),bt.next(x),N.info.isLive$.getValue()){let qe=N.info.duration$.getValue(),Ct=Math.min(0,qe+c);N.seekTime(Ct,B)}else{if(I!=null&&I.getValue())return;N.info.isEnded$.getValue()&&(ee({message:"seek after ended, call callbacks.onPlay"}),(de=l==null?void 0:l.onPlay)==null||de.call(l)),N.seekTime(Om(c),B)}},pr=c=>{ee({message:`seek to episode start time: ${c}`}),ne.log("seek to episode start time",{time:c}),qo(c,os.EPISODE,!0)},Ko=(c,x)=>{ee({message:`seek to percent, percent: ${c}`}),ne.log("seek to percent",{percent:c,action:x});let B=xe(yo)*c;qo(B,x,!1)},fr=c=>{ee({message:`seek external, time: ${c}`}),ne.log("seek external",{time:c}),bt.next(os.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Fr=c=>{var de,qe;let x=(de=c.max)!=null?de:"none",B=(qe=c.min)!=null?qe:"none";ee({message:`set auto quality limitation. Max: ${x}. Min: ${B}`}),ne.log("set auto quality limits",{max:x,min:B}),N.setAutoQualityLimits(c)},Er=c=>{ee({message:`seek external to episode start time: ${c}`}),ne.log("seek external to episode start time",{time:c}),qo(c,os.EPISODE,!0)},Pr=c=>{ee({message:`set playback rate to: ${c}`}),ne.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Ze=le(void 0),Dt=le(!1),Ai=c=>{ee({message:`start scrubbing, progress: ${c}`}),ne.log("start scrubbing",{progress:c}),Dt.set(!0),Qo(c)},Qo=c=>{Ze.set(c)},Ro,An,dn=()=>{Ze.set(void 0),Dt.set(!1)},Se=()=>{clearTimeout(An),clearTimeout(Ro),Ro=window.setTimeout(()=>{dn()},500),je==null||je.removeEventListener("seeked",Se)},pt=c=>{ee({message:`complete scrubbing, progress: ${c}`}),ne.log("complete scrubbing",{progress:c}),Ko(c,os.SLIDER),xe(Et.ui.isMobile)&&xe(Et.state.currentFormat$)===ad.HLS?(je==null||je.addEventListener("seeked",Se),An=window.setTimeout(()=>{Se()},300)):dn()},Ut=hi([oo,yo,Ze],([c,x,B],de)=>{de(S2(B)?B*x:c)}),si=le(!1),Gi=()=>{si.set(!0)},Re=()=>{si.set(!1)},vt=le({width:0,height:0}),ni=hi([vt],([{width:c}],x)=>{let B=Bh(c);x(B)}),Yi=le(!1),uo=W.filter(c=>Wg(c)),Ur=hi([ni,Yi],([c,x])=>x?uo.filter(B=>!B.hideOnMobile):uo.filter(B=>{var de;return!((de=B.hideOnDesktopGridTypes)!=null&&de.includes(c))})),Mi=le(W.filter(c=>qg(c))),Xn=hi([Mi,ni],([c,x])=>c.filter(B=>{var de;return!((de=B.hideOnDesktopGridTypes)!=null&&de.includes(x))})),Cs=hi([Xn,Ur],([c,x])=>[...ae.features.additionalButtonsDesktopControlPanelRight?c.filter(B=>B.type==="desktop-control-panel-right"):[],...ae.features.additionalButtons?x.map((B,de)=>{var qe;return{id:de,weight:de,type:"desktop-control-panel-right",testId:B.testId,icon:B.iconUrl,onClick:B.onClick,ariaLabel:(qe=B.ariaLabel)!=null?qe:B.tooltip,tooltipText:B.tooltip}}):[]]),Jn=le(j),va=hi([Jn],([c])=>ae.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),sl=(c,x)=>{let B=xe(Mi).map(de=>de.id!==c?de:{...de,...x});Mi.set(B)},ga=c=>{let x=xe(Mi);if(x.some(B=>B.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),Mi.set(x)},ha=c=>{let x=xe(Mi);if(!x.some(B=>B.id===c)){ee({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),Mi.set(x)},_a=c=>{bt.next(os.LIVE),ee({message:"live switch to low latency "+c}),ne.log("live switch to low latency "+c),N.setLiveLowLatency(c)},al=(c,x)=>{let B=xe(Jn).map(de=>de.id!==c?de:{...de,...x});Jn.set(B)},Ts=c=>{let x=xe(Jn);if(x.some(B=>B.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),Jn.set(x)},ba=c=>{let x=xe(Jn);if(!x.some(B=>B.id===c)){ee({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),Jn.set(x)},at=le(H),xt=hi([at],([c])=>ae.features.additionalContextMenuItems?c:[]),qi=(c,x)=>{let B=xe(at).map(de=>de.id!==c?de:{...de,...x});at.set(B)},Go=c=>{let x=xe(at);if(x.some(B=>B.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),at.set(x)},Ki=c=>{let x=xe(at);if(!x.some(B=>B.id===c)){ee({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),at.set(x)},ci=hi([Yi,Qt],([c,x],B)=>{B(c&&x)}),Ci=()=>{bt.next(os.LIVE),ee({message:"switch to active live"}),ne.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==sd.PLAYING&&Et.actions.internal.togglePlay()},Is=()=>{ne.log("skip adman"),_e.skip()},$a=(c=!0)=>{On(Et),ee({message:`switch from ads to video, callPlay: ${c}`}),ne.log("switch from ads to video",{callPlay:c}),be.set("video"),c&&N.play(),s&&Qn(!0)},vu=()=>{On(Et),ee({message:"switch from video to ads"}),ne.log("switch from video to ads"),Et.actions.internal.pause(),Qe(),be.set("ads")},Bd=c=>{On(Et);let x=c?"LiveWaitingStart":"thumb";ne.log("set live waiting start",{state:c,playerPhase:x}),be.set(x)},gu=c=>{On(Et);let x=c?"LiveWaitingRecover":"thumb";ne.log("set live waiting recover",{state:c,playerPhase:x}),be.set(x)},Nd=c=>{On(Et);let x=c?"LiveWaitingRecord":"thumb";ne.log("set live waiting record",{state:c,playerPhase:x}),be.set(x)},hu=()=>(On(Et),ne.log("get debug text data"),Fg(N,He,Et,Pe.getTraceId())),Dd=()=>(On(Et),JSON.stringify(Pe.getFinishedSpans())),_u=()=>(On(Et),Ug(N,He,Et)),ks=()=>je,Od=()=>{ee({message:"toggle chromecast"}),ne.log("toggle chromecast"),N.toggleChromecast()},ll=c=>{var B;if(On(Et),N.info.isEnded$.getValue())return;let x=!c;if(xe(Et.playerPhase)==="ads"){ee({message:`pause ads, internalCall: ${x}`}),ne.log("pause ads",{internalCall:x}),_e.pause();return}ee({message:`pause video, internalCall: ${x}`}),ne.log("pause video",{internalCall:x}),x&&((B=l==null?void 0:l.onPause)==null||B.call(l)),N.pause()},Hd=c=>{var B;On(Et);let x=!c;if(xe(Et.playerPhase)==="ads"){ee({message:`play ads, internalCall: ${x}`}),ne.log("play ads",{internalCall:x}),_e.play();return}ee({message:`play video, internalCall: ${x}`}),ne.log("play video",{internalCall:x}),x&&((B=l==null?void 0:l.onPlay)==null||B.call(l)),N.play()},Fd=c=>{On(Et);let x=!c;if(xe(Et.playerPhase)==="ads"){ee({message:"player cannot be stopped during ads via external method"});return}ee({message:`player will be stopped, internalCall: ${x}`}),P==null||P()},Ud=(c,x)=>{On(Et),ee({message:`first start, show ads: ${c}, internalCall: ${!x}`}),ne.log("first start",{showAds:c,external:x}),c?be.set("ads"):(be.set("video"),x?N.play():Et.actions.internal.togglePlay())},ya=()=>(ee({message:"getting time codes"}),f),zd=()=>{let c=ya();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(B=>B.time>x)},bu=c=>{let x=c;x||(x=zd());let B=N.info.position$.getValue();ne.log("seek to next episode",{currentTime:B,...x}),x&&(ee({message:"seek to next episode"}),qo(x.time,os.EPISODE,!0))},Wd=()=>{let c=ya();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),B=c.findIndex(qe=>qe.time>x),de=B===-1?c.length-2:B-2;if(!(de<0))return c[de]},We=c=>{let x=c;x||(x=Wd());let B=N.info.position$.getValue();ne.log("seek to prev episode",{currentTime:B,...x}),x&&(ee({message:"seek to prev episode"}),qo(x.time,os.EPISODE,!0))},di=()=>(ee({message:"getting preview thumbs data"}),ne.log("get preview thumbs data",{...y}),y),Yo=async()=>{let c=re==null?void 0:re.isActive(),x="none";re!=null&&re.isActive()?(x="remove",await(re==null?void 0:re.remove())):(x="request",await(re==null?void 0:re.request())),ne.log("toggle picture in picture",{isActive:c,action:x})},Es=(c=-90)=>{ne.log("rotate video",{alphaDiff:c}),it.update(x=>x+c)},po=le([]);T==null||T.subscribe(c=>{let x=[];for(let B=0;B<c.length;B++){let{range:[de,qe],subjects:Ct}=c[B];B===0&&de!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:de/1e3,text:"",interactive:!0,completed:ae.features.interactiveTimeOpenUri?!Ct.length||Ct.every(Ot=>Ot.isRemoved):!Ct.length}),qe!==1/0&&x.push({time:qe/1e3,text:"",interactive:!1,completed:!0})}po.set(x)});let M1=le(!1);I==null||I.subscribe(c=>{c&&xe(Dt)&&dn()});let Om=c=>{if(!C)return c;let x=xe(po),B=xe(yo),qe=xe(xo)/B,Ct=x.find(Ot=>Ot.interactive&&!Ot.completed&&Ot.time>qe);return typeof(Ct==null?void 0:Ct.time)=="number"?Math.min(c,Ct.time-.05):c},L1=()=>{Et.ui.episodes.panelOpened$.set(!1)},V1=()=>{ne.log("destroy store"),clearTimeout(An),clearTimeout(Ro),ri.unsubscribe(),bi.unsubscribe(),N.destroy(),_e.destroy(),se==null||se.destroy(),ze==null||ze.destroy(),ht.unsubscribe(),ft==null||ft.disconnect(),ft=null,Ve.destroy()},Et={interfaceLanguage$:At,isCyrillicRelatedInterface$:Rt,initVideo:Ye,videoId:i,isClip:o,playerPhase:oe,vsid:Ie,state:{positionExact$:oo,positionWithScrubbing$:Ut,duration$:yo,playbackState$:sn,isPlaying$:Hn,isLoaderVisible:Vi,bufferedProgress$:kn,isLive$:G,canChangePlaybackSpeed$:Xt,isActiveLive$:Ri,isOldestAvailableLive$:_n,isRewindableLive$:Po,isEnded$:bo,muted$:ai,volume$:Ei,trafficSavingEnabled$:mt,highQualityEnabled$:pi,autoQualityLimitingAvailable$:Je,availableVideoStreams$:Sr,availableAudioStreams$:sr,videoStream$:Fn,audioStream$:$n,currentQuality$:Ao,isAutoQualityEnabled$:wn,availableQualities$:Fo,currentPlaybackRate$:Cn,availablePlaybackRates$:Uo,currentSubtitle$:Bi,availableTextTracks$:Tn,availableSubtitlesList$:In,currentSubtitleCaptions$:Vo,isAutoSubtitleCaptionVisible$:zn,chromecastState$:ti,chromecastDeviceName$:rr,chromecastConnected$:bn,currentFormat$:ro,throughputEstimation$:ko,videoBitrate$:li,videoSize$:St,errorLog$:It,crashed$:Qt,isAudioAvailable$:Eo,isAudioDisabled:!!s,canDownload:ae.features.download&&!!d,availableSources$:Wn,hasMpegSources$:dr,isInteractive:C,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!xe(po).length,interactiveEpisodes$:po,isInteractiveTime$:I?ei(I):le(!1),isInteractiveExpectation$:M1,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:V,looped$:nt,loadedMetadata$:le(!1),isAutoQualityAvailable$:ar},ui:{t:O,controlsVisible:le(!1),touched:le(!1),controls:{prevButton:le(void 0),playButton:le(void 0),replayButton:le(void 0),nextButton:le(void 0),playPrevChapterButton:le(void 0),seekToInteractiveButton:le(void 0),interactiveGraphButton:le(void 0),liveButton:le(void 0),time:le(void 0),episodes:le(void 0),volume:le(void 0),subtitles:le(void 0),settings:le(void 0),context:le(void 0),chromecast:le(void 0),pip:le(void 0),fullscreen:le(void 0),vkLogo:le(void 0),interactiveTimeIndicator:le(void 0),timeline:le(void 0),autoplayNextToggle:le(void 0),additionalButtons:W.length?W.reduce(c=>[...c,le(void 0)],[]):[],disabledControls$:Be},modals:{hotKeyMap:{show:le(!1),data:le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ue,isFullscreenOpenedByKeyboard:lt,rotateAlpha:it,isAutoplay:le(!1),debugPanelVisible:le(!1),episodes:{panelOpened$:le(!1),openedByKeyboard$:le(!1)},contextMenu:{visible$:le(!1),btnRef$:le(void 0),openedByBtnKeyboard$:le(!1),openedByHotKey$:le(!1),lastActiveElem$:le(void 0),showContextMenuBtn$:le(!1),position$:le({top:0,left:0})},playerSize:vt,isMobile:Yi,mobileNotReportControlHidden$:ci,mobileUnmuteButtonExpanded:le(!1),mobileUnmuteButtonVisible:le(!1),icon3DVideoVisible:le(!1),scrubbingInProgress:Dt,volumeChangingInProgress:si,is3DVideo:le(!1),currentGridType$:ni,additionalButtonsDeprecated$:Ur,additionalDesktopControlPanelRightButtons$:Cs,additionalSettingsMenuItems$:va,additionalContextMenuItems$:xt,interactiveHideMobileControls:le(!1),overlayContainer$:le(void 0),startedByKeyboard$:le(!1),autoplayNextEnabled$:le(!1),timerNextVideoRunning$:le(!0),settingsMenu:{visible$:le(!1),ref$:le(void 0),openedByBtnKeyboard$:le(!1)},settingsSubMenu:{visible$:le(!1),ref$:le(void 0),name$:le(void 0)},aboutToGoNextVideo:le(void 0),userActionsDisabled:le(!1),hiddenControls:{volume:le(!1)},isControlsAvailable:le(!0)},ads:{position:le(0),duration:le(0),playbackState:le("inactive"),canSkip:le(!1),secondsToWatchBeforeSkip:le(0),postrollPassed:le(!1)},webApi:{pictureInPictureApi:re,annotationsApi:K,slotsApi:he},actions:{internal:{preload:co,firstStart:c=>Ud(c,!1),play:()=>Hd(!1),pause:()=>ll(!1),togglePlay:Wi,toggleMuted:ur,openSettingsMenu:Cr,closeSettingsMenu:qn,openSettingsSubMenu:En,closeSettingsSubMenu:Tr,setVolume:Kn,startVolumeChanging:Gi,stopVolumeChanging:Re,setVideoStream:yn,setAudioStream:Un,setQuality:Oi,setTrafficSavingEnabled:Si,setHighQualityEnabled:Wo,setPlaybackRate:Gn,incrementPlaybackRate:kr,decrementPlaybackRate:ln,setSubtitle:Yn,toggleSubtitle:jn,togglePictureInPicture:Yo,startScrubbing:Ai,progressScrubbing:Qo,completeScrubbing:pt,toggleChromecast:Od,switchToActiveLive:Ci,switchFromAdsToVideo:$a,switchFromVideoToAds:vu,skipAd:Is,setLiveWaitingStart:Bd,setLiveWaitingRecover:gu,setLiveWaitingRecord:Nd,getDebugTextData:hu,getTraceTextData:Dd,getDebugPanelData:_u,getVideoElement:ks,seekTime:(c,x,B)=>qo(c,x,B),clearDelayedBufferingCheckTimeout:$o,seekEpisodeStartTime:pr,seekToPercent:Ko,getNextEpisode:zd,seekToNextEpisode:bu,getPrevEpisode:Wd,seekToPrevEpisode:We,startLogging:et,stopLogging:Gt,startCameraManualRotation:ki,stopCameraManualRotation:zi,moveCameraFocusPX:Mt,holdCamera:$t,releaseCamera:Nt,getVideoEpisodes:ya,getPreviewThumbsData:di,downloadVideo:cr,addLanguage:Ip,setLanguage:Zt,nextMovie:tt,videoRotate:Es,correctSeekTimeToInteractive:Om,replayInteractive:M,setLooped:yt,reportProblem:wi,setAutoplayNextEnabled:wo,setTimerNextVideoRunning:lo,prevVideoClick:So,nextVideoClick:Co,nextVideoAnnouncementShow:qt,nextVideoAnnouncementClick:oi,nextVideoAnnouncementAuto:fi,nextVideoAnnouncementCancel:Qi},external:{firstStart:c=>Ud(c,!0),play:()=>Hd(!0),pause:()=>ll(!0),stop:()=>Fd(!0),seekTime:c=>fr(c),seekEpisodeStartTime:c=>Er(c),setPlaybackRate:c=>Pr(c),setAutoQualityLimits:c=>Fr(c),setMuted:Qn,toggleSubtitle:jn,setVolume:Kn,returnFocusToEpisodes:L1,updateAdditionalSettingsItem:al,addAdditionalSettingsItem:Ts,removeAdditionalSettingsItem:ba,updateAdditionalContextItem:qi,addAdditionalContextItem:Go,removeAdditionalContextItem:Ki,updateAdditionalButton:sl,addAdditionalButton:ga,removeAdditionalButton:ha,setLiveLowLatency:_a,hideControls:()=>Zn(!1),showControls:()=>Zn(!0)}},callbacks:l,setUiCallbacks:c=>{we={...c}},getAdmanWrapper:()=>_e,getLogger:()=>ue,getPlayer:()=>N,destroy:V1};return Et};function sa(t,e,i,o){var y;let n=["interactiveTimeIndicator"],a=(y=e[i])==null?void 0:y.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:p,right:f}=is(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?d:0,bottom:s?p:0,isDisplayed:s}}var el=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(sa(t,i,n,o))};var jc=async(t,e,i)=>{await vo(),e&&i&&(i.focus(),t.set(!1))};var V2=ye('<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 Sf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=V2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),$(t,o)}function Cf(t,e){F(e,!0);let[i,o]=De(),n=()=>S(l,"$contextMenuVisible$",i),a=m(e,"disabled",3,!1),s=m(e,"ariaLabel",3,""),d=Ce(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,y=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,_=X(void 0);Fe(()=>{r(_)&&wt(()=>{u.set(r(_))})});let w=I=>{let M=bs(I),P=kh(r(_));y.set(P),p.set(M),l.set(!n())},b=()=>{f.set(!0)},C=()=>{f.set(!1)},T=v(()=>n()?"opened":"");Vt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:b,blur:C,get ariaExpanded(){return n()},get ref(){return r(_)},set ref(I){D(_,fe(I))},children:(I,M)=>{Sf(I,{})},$$slots:{default:!0}}),U(),o()}var R2=t=>{t.stopPropagation()},B2=L("<div><!> <div></div> <div></div></div>"),N2={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;}
228
+ }`};function hf(t,e){O(e,!0),W(t,Y$);let i=m(e,"isMobile",3,!1),o=v(()=>e.iconState===Fh.CONNECTED),n=v(()=>e.iconState===Fh.CONNECTING);var a=He(),r=he(a);{var d=p=>{var f=Q$(),b=h(f),u=h(b),_=h(u);we(),g(u);var w=A(u);we(),g(b);var y=A(b),C=h(y),T=h(C);g(C),we(),g(y),g(f),k(()=>{Ne(_,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(w,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(T,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)")}),$(p,f)},l=p=>{var f=G$();let b;var u=h(f),_=A(h(u),5);let w;g(u),g(f),k((y,C)=>{b=J(f,0,"svelte-8z1bf5",null,b,y),w=J(_,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:s(n)}),()=>({hidden:!s(o)})]),$(p,f)};V(r,p=>{i()?p(d):p(l,!1)})}$(t,a),H()}import{noop as Z$}from"@vkontakte/videoplayer-shared/es2018";function cd(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,Z$),r=Ie().ui.t,d=v(()=>e.state===j$.CONNECTED?r("tooltip_chromecast_on"):r("tooltip_chromecast_off"));Vt(t,{get ariaLabel(){return s(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,p)=>{hf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var X$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),J$={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 _f(t,e){W(t,J$);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),a=m(e,"translateYPx",3,0),r=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),l=X(void 0),p=X(void 0);function f(C){if(!s(p))return 0;let{width:T}=s(p).getBoundingClientRect(),I=T/2;return C<I?I+r():C>e.containerWidth-I?e.containerWidth-I-d():C}let b=v(()=>f(n()));var u=X$(),_=h(u);let w;var y=h(_);be(y,()=>{var C;return(C=e.children)!=null?C:oe}),g(_),tt(_,C=>D(p,C),()=>s(p)),g(u),tt(u,C=>D(l,C),()=>s(l)),k(C=>{st(u,`transform: translate(${s(b)}px, ${a()}px);`),w=J(_,1,"tooltip svelte-5ygsa2",null,w,C),st(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,u)}var Wc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Uh=t=>!!(Math.round(Math.abs(t)/90)%2),zh=t=>Math.abs(t)/90%4===1;var e2=L('<div class="preview svelte-1wqg760"></div>'),t2=L('<div class="time svelte-1wqg760"> </div>'),i2=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),o2={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 bf(t,e){O(e,!0),W(t,o2);let[i,o]=De(),n=()=>S(w,"$rotateAlpha",i),a=()=>S(y,"$playerSize",i),r={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),l=m(e,"isMobile",3,!1),p=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),b=m(e,"duration",3,0),u=m(e,"isInteractive",3,!1),_=Ie(),w=_.ui.rotateAlpha,y=_.ui.playerSize,C=X(0),T=X(0),I=X(""),M=X(0),P=X(0),E=X(0),R=X(0),z=v(()=>Wc(f(),b(),p())),q=v(()=>Uh(n())),U=v(()=>zh(n())),Y=v(de),se=v(()=>(s(U)?1:-1)*(s(C)/2-s(T)/2)),Q=v(()=>s(se)*-1);Ue(()=>{(me=>(D(C,ve(me.width)),D(T,ve(me.height))))(Me())}),Ue(()=>{(me=>(D(I,ve(me.imgSrc)),D(M,ve(me.imgWidth)),D(P,ve(me.imgHeight)),D(E,ve(me.imgOffsetX)),D(R,ve(me.imgOffsetY))))(Be(f()))});function de(){var ze;let me=l()?r.MOBILE:r.DESKTOP,{isVertical:$e}=le(),Z=30;return(ze=s(z))!=null&&ze.text&&(Z+=16),($e||s(q))&&(Z+=18,Z+=50),Math.min(Math.max(a().height-Z,0),me)}function le(){let me=e.previewThumbsData.frameWidth,$e=e.previewThumbsData.frameHeight,Z=$e>me;return{width:me,height:$e,isHorizontal:!Z,isVertical:Z}}function Me(){let{height:me,isHorizontal:$e,isVertical:Z,width:ze}=le();return $e&&(me=me/ze*s(Y),ze=s(Y)),Z&&(ze=ze/me*s(Y),me=s(Y)),{width:ze,height:me}}function Be(me){let $e;e.previewThumbsData.isUV?$e=Math.floor(b()*me/e.previewThumbsData.frequency):$e=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*me)));let Z=Math.floor($e/e.previewThumbsData.countPerImage),ze=Math.floor($e%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Je=$e%e.previewThumbsData.countPerRow,Ce=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Ce=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Ce++);let ie=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ie=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ee=s(C)*ie,qe=s(T)*Ce,nt=-Je*s(C),dt=-ze*s(T);return{imgSrc:e.previewThumbsData.links[Z],imgWidth:Ee,imgHeight:qe,imgOffsetX:nt,imgOffsetY:dt}}var ge=i2();let ce;var Ae=h(ge);{var ae=me=>{var $e=e2();k(()=>st($e,`width: ${s(C)}px; height: ${s(T)}px; background-image: url(${s(I)}); background-size: ${s(M)}px ${s(P)}px; background-position: ${s(E)}px ${s(R)}px;
229
+ transform: rotate(${n()}deg) ${s(q)?`translate(${s(se)}px, ${s(Q)}px)`:""};
230
+ `)),$(me,$e)};V(Ae,me=>{s(I)&&me(ae)})}var N=A(Ae,2),Ge=h(N);{var ee=me=>{var $e=He(),Z=he($e);{var ze=Ce=>{var ie=Kr();k(Ee=>_e(ie,Ee),[()=>F("tooltip_episode_unfinished")]),$(Ce,ie)},Je=Ce=>{var ie=Kr();k(()=>_e(ie,s(z).text||"")),$(Ce,ie)};V(Z,Ce=>{u()&&s(z).completed===!1?Ce(ze):Ce(Je,!1)})}$(me,$e)};V(Ge,me=>{s(z)&&me(ee)})}g(N);var We=A(N,2);{var ne=me=>{var $e=t2(),Z=h($e,!0);g($e),k(()=>_e(Z,d())),$(me,$e)};V(We,me=>{u()||me(ne)})}g(ge),k(me=>{ce=J(ge,1,"timeline-preview svelte-1wqg760",null,ce,me),st(ge,`width: ${s(q)?s(T):s(C)}px;`)},[()=>({mobile:l()})]),$(t,ge),H(),o()}var n2=L('<span class="time svelte-1jr6obn"> </span>'),r2=L("<!> <!>",1),s2={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 $f(t,e){var Pe,Re,fe,Ke,it;O(e,!0),W(t,s2);let[i,o]=De(),n=()=>S(se,"$interactiveEpisodes$",i),a=()=>S(E,"$duration$",i),r=()=>S(P,"$position$",i),d=()=>S(le,"$isInteractiveExpectation$",i),l=()=>S(de,"$isInteractiveTime$",i),p=()=>S(R,"$isLive$",i),f=()=>S(q,"$isMobile",i),b=()=>S(z,"$isActiveLive$",i),u=()=>S(M,"$bufferedProgress$",i),_=()=>S(ge,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=Ie(),I=Ht(),M=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,E=T.state.duration$,R=T.state.isLive$,z=T.state.isActiveLive$,q=T.ui.isMobile,U=I.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,Y=T.actions.internal.getPreviewThumbsData(),se=T.state.interactiveEpisodes$,Q=T.state.isInteractive,de=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,Me=T.actions.internal.correctSeekTimeToInteractive,Be=(Pe=T.callbacks)==null?void 0:Pe.onDisabledTimelineClick,ge=T.ui.controls.disabledControls$,ce=(fe=(Re=T.callbacks)==null?void 0:Re.uiInfo)==null?void 0:fe.onTimelineMouseEnter,Ae=(it=(Ke=T.callbacks)==null?void 0:Ke.uiInfo)==null?void 0:it.onTimelineMouseLeave,ae=T.ui.t,N=I.features.interactiveResponsiveUi,Ge=v(()=>Q?n():U),ee=v(()=>pn(a())),We=v(()=>pn(r())),ne=v(()=>r()/a()),me=v(()=>d()||l()),$e=X(!1),Z=X(""),ze=X(0),Je=X(0),Ce=X(0),ie=v(()=>({containerWidth:s(Je),translateXPx:s(ze),translateYPx:Q&&Y?-36:-16,active:s($e)&&w()&&!s(me)&&!N,pointer:!I.features.timelinePreview||!Y||p()})),Ee=ae("aria_timeline"),qe=v(()=>ae("aria_timeline_value",{position:s(We),duration:s(ee)}));function nt(Ze){return!Me||!Q?Ze:Me(Ze*a())/a()}function dt(Ze){T.actions.internal.startScrubbing(nt(Ze))}function rt(Ze){l()||T.actions.internal.progressScrubbing(nt(Ze))}function St(Ze){T.actions.internal.completeScrubbing(nt(Ze)),D($e,!1)}function ct(Ze,yt,mt){Ot(Ze,yt,mt),D($e,!0)}function Yt(Ze,yt,mt){Ot(Ze,yt,mt),D($e,!0)}function ni(){D($e,!1)}function Ot(Ze,yt,mt){D(Ce,ve(nt(Ze))),D(ze,ve(yt)),mt&&D(Je,ve(mt)),D(Z,ve(Et(Ze)))}function Et(Ze){let yt=pn((p()?1-Ze:Ze)*a());return p()?`-${yt}`:yt}var te=r2(),At=he(te);_f(At,us(()=>s(ie),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Ze,yt)=>{var mt=He(),Wt=he(mt);{var gt=zt=>{bf(zt,{get time(){return s(Z)},get isMobile(){return f()},get videoEpisodes(){return s(Ge)},previewThumbsData:Y,get progress(){return s(Ce)},get duration(){return a()},isInteractive:Q})},xi=zt=>{var je=n2(),Jt=h(je,!0);g(je),k(()=>_e(Jt,s(Z))),$(zt,je)};V(Wt,zt=>{I.features.timelinePreview&&Y&&!p()?zt(gt):zt(xi,!1)})}$(Ze,mt)},$$slots:{default:!0}}));var j=A(At,2);let pe=v(()=>_().has("TIMELINE"));fa(j,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return f()},ariaLabel:Ee,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r()},get ariaValueText(){return s(qe)},get loadedProgress(){return u()},get filledProgress(){return s(ne)},get handleProgress(){return s(ne)},get videoEpisodes(){return s(Ge)},onPointerDown:dt,onHandleMove:rt,onPointerMove:Yt,onPointerUp:St,onPointerEnter:ct,onPointerLeave:ni,onMouseEnter:ce,onMouseLeave:Ae,onDisabledClick:Be,isInteractive:Q,get disabled(){return s(pe)},get hideHandel(){return l()},testId:"progress_bar",get ref(){return C()},set ref(Ze){C(Ze)}}),$(t,te),H(),o()}var a2={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 ud(t,e){O(e,!0),W(t,a2);let[i,o]=De(),n=()=>S(l,"$isMobile",i),a=m(e,"position",3,0),r=m(e,"duration",3,0),d=Ie(),l=d.ui.isMobile,p=d.ui.t,f=v(()=>pn(r())),b=v(()=>pn(a())),u=v(()=>a()/r()),_=v(()=>p("aria_timeline_value",{position:s(b),duration:s(f)})),w=v(()=>Math.round(s(u)*100));fa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return s(w)},get ariaValueText(){return s(_)},get filledProgress(){return s(u)},hideHandel:!0,get squareBorders(){return n()}}),H(),o()}var l2=L("<div><!></div>"),d2=L("<div></div>"),c2={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 ma(t,e){O(e,!0),W(t,c2);let[i,o]=De(),n=()=>S(_,"$isLive$",i),a=()=>S(C,"$isMobile",i),r=()=>S(y,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=m(e,"isAds",3,!1),p=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),b=m(e,"ref",15,void 0),u=Ie(),_=u.state.isLive$,w=u.ads.duration,y=u.ads.position,C=u.ui.isMobile,T=v(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=He(),M=he(I);{var P=R=>{var z=l2();let q;var U=h(z);{var Y=Q=>{ud(Q,{get position(){return r()},get duration(){return d()}})},se=Q=>{$f(Q,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return s(T)},get withEpisodes(){return e.withEpisodes},get ref(){return b()},set ref(de){b(de)}})};V(U,Q=>{l()?Q(Y):Q(se,!1)})}g(z),k(Q=>q=J(z,1,"timeline svelte-41cp6d",null,q,Q),[()=>({withoutPadding:!f(),mobile:a()})]),$(R,z)},E=R=>{var z=d2();let q;k(U=>q=J(z,1,"timeline-stub svelte-41cp6d",null,q,U),[()=>({mobile:a()})]),$(R,z)};V(M,R=>{s(T)?R(P):R(E,!1)})}$(t,I),H(),o()}import{noop as f2}from"@vkontakte/videoplayer-shared/es2018";var u2=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function yf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=u2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(3),g(o),k(()=>n=ke(o,n,{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})),$(t,o)}var p2=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function xf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=p2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),$(t,o)}var m2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),v2=L('<span class="text svelte-1yhs2ga"> </span>'),g2=L('<span class="text count svelte-1yhs2ga"> </span>'),h2=L("<!> <!>",1),_2={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 pd(t,e){var le,Me,Be;O(e,!0),W(t,_2);let[i,o]=De(),n=()=>S(w,"$currentGridType$",i),a=()=>S(y,"$openedByKeyboard$",i),r=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=m(e,"position",3,0),p=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),b=Ie(),u=(Me=(le=b.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Me:f2,_=!!((Be=b.callbacks)!=null&&Be.onEpisodeClicked),w=b.ui.currentGridType$,y=b.ui.episodes.openedByKeyboard$,C=b.ui.episodes.panelOpened$,T=b.ui.isMobile,I=b.ui.t,M=X(void 0),P=ge=>{var Ae,ae,N;if(!!((Ae=b.callbacks)!=null&&Ae.onEpisodeClicked)){let Ge=Ls(ge);y.set(Ge),C.set(!0),(N=(ae=b.callbacks)==null?void 0:ae.onEpisodeClicked)==null||N.call(ae,Ge)}},E=X(null),R=v(()=>l()/p());Ue(()=>{var ce;let ge=Wc(s(R),p(),f());ge?((ce=s(E))==null?void 0:ce.time)!==ge.time&&(u(ge),D(E,ve(ge))):D(E,null)});let z=v(()=>{var ge;return((ge=s(E))==null?void 0:ge.text)||""}),q=v(()=>zi(n(),"xl")?"FULL":zi(n(),"m")&&Oh(n(),"xl")?"COUNT":"SHORT"),U=v(()=>`${I("tooltip_episodes")}: ${s(z)}`),Y=async(ge,ce,Ae)=>{await _o(),(ge==null?void 0:ge.getAttribute("aria-expanded"))==="false"&&ce&&!Ae&&wt(()=>{y.set(!1),ge.focus()})};Ue(()=>{Y(s(M),a(),r())});var se=He(),Q=he(se);{var de=ge=>{let ce=v(()=>d()?"px-0":"");Vt(ge,{get className(){var Ae;return`w-max btn-full-opacity btn-jc-l ${(Ae=s(ce))!=null?Ae:""}`},testId:"btn-episodes",click:P,disabled:!_,get ariaExpanded(){return r()},get ariaLabel(){return s(U)},get ref(){return s(M)},set ref(Ae){D(M,ve(Ae))},children:(Ae,ae)=>{var N=He(),Ge=he(N);{var ee=ne=>{var me=m2(),$e=he(me),Z=h($e,!0);g($e);var ze=A($e,2),Je=h(ze);xf(Je,{}),g(ze),k(()=>_e(Z,s(z))),$(ne,me)},We=ne=>{var me=h2(),$e=he(me);yf($e,{});var Z=A($e,2);{var ze=Ce=>{var ie=v2(),Ee=h(ie,!0);g(ie),k(()=>_e(Ee,s(z))),$(Ce,ie)},Je=(Ce,ie)=>{{var Ee=qe=>{var nt=g2(),dt=h(nt,!0);g(nt),k(()=>_e(dt,f().length)),$(qe,nt)};V(Ce,qe=>{s(q)==="COUNT"&&qe(Ee)},ie)}};V(Z,Ce=>{s(q)==="FULL"?Ce(ze):Ce(Je,!1)})}$(ne,me)};V(Ge,ne=>{d()?ne(ee):ne(We,!1)})}$(Ae,N)},$$slots:{default:!0}})};V(Q,ge=>{s(E)&&ge(de)})}$(t,se),H(),o()}import{debounceFn as o1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as T2,PlaybackState as fd,Player as I2,PredefinedQualityLimits as Zr,VideoFormat as md,clientChecker as E2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as jn,getHighestQuality as k2,InterfaceLanguage as P2,isInvariantQuality as A2,isNonNullable as M2,loadVKLangPack as L2,Logger as V2,map as jh,merge as R2,Observable as Zh,Subject as Jc,Subscription as Ef,TracerFactory as B2,ValueSubject as N2,VideoQuality as D2,devNull as O2,now as H2,filter as F2,once as U2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as vs}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as b2,devNull as Qt,now as Gt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as $2,Subject as Ko,clearVideoElement as y2}from"@vkontakte/videoplayer-shared/es2018";var Wh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var x2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",qc=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 Ko,loadStarted$:new Ko,loadEnded$:new Ko,loadError$:new Ko,ready$:new Ko,slotRequested$:new Ko,started$:new Ko,timeRemained$:new Ko,paused$:new Ko,resumed$:new Ko,ended$:new Ko,empty$:new Ko,skipped$:new Ko,clicked$:new Ko,closed$:new Ko,error$:new Ko};this.loadAdman=e=>(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Gt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Gt()]}),i(),this.events.loadEnded$.next()):(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Gt()]}),o())};$2(x2,e,this.loadTimeout).then(()=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Gt()]}),window.AdmanHTML?(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Gt()]}),i(),this.events.loadEnded$.next()):(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Gt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(r=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(r)],numbers:[Gt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Gt()]}),i(),this.events.loadEnded$.next()):(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Gt()]}),o())},r=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Gt()]}),r()},this.loadTimeout);e.addEventListener("abort",r),e.aborted&&(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Gt()]}),r()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Gt()]}),!d&&(window.AdmanHTML?(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Gt()]}),i(),this.events.loadEnded$.next()):(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Gt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},r).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",r)})});this.onAdsReady=()=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Gt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Gt(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),xe(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),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;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),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(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Gt()]}),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;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),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;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),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")=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Gt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Gt()]}),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 M;if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Gt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:r,adsVideoElement:d,slotId:l,params:p={},duration:f,previewParam:b}=e,u,_=this.playerState&&xe(this.playerState.vsid);_&&(this.isVsidOriginal?u=_:u=parseInt(_,36));let{isEmbed:w,immediateOrigin:y}=b2(),C=(M=w?y:window.location.href)!=null?M:window.location.href,T={...p,dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:b,...u?{request_id:u}:{},duration:f,puid10:Wh(i,o),puid11:n?0:1};b||delete T.preview;let I={slot:l,wrapper:r,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let P=new window.AdmanHTML;P.setDebug(!1),P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.init(I),this.adman=P,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(P){Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[Gt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Gt()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let r="Switch to video: Adman state was not updated correctly";this.log({message:r}),this.events.error$.next(r)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.adsState){this.log({message:"toggle play"});let i=xe(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Gt()]}),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(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),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(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),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(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),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,a,r,d,l,p,f,b,u;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Gt()]}),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),(a=this.adman)==null||a.adMidrollPoint(void 0),(r=this.adman)==null||r.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(b=this.adman)==null||b.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&y2(this.videoElement),this.isDestroyed=!0}};var qh=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 wf=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 a of n){let r={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!r.startTime&&!r.endTime){let p=new Kc,{startTime:f,endTime:b}=p.parse(l);r.startTime=f,r.endTime=b}else if(l.trim()!==""){let p=new Sf,{texts:f}=p.parse(l);r.texts=[...r.texts,...f]}(r.startTime||r.endTime)&&r.texts.length>0&&o.push(r)}return o}},Kc=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 a=Number(e)*60*60,r=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+r+d+l}},Sf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let d=0,l=[];for(;d<r.length;){let p=["<",">"].reduce((f,b)=>{let u=r.indexOf(b,d);return f===-1||f>u?u:f},-1);if(p===-1){l.push(r.substring(d));break}l.push(r.substring(d,p)),d=p+1}return l}}),a=new Kc;for(let r of n)a.isTime(r)?i.texts.push({type:"timestamp",value:a.parseTime(r)}):i.texts.push({type:"text",value:r});return i}},Kh=wf;import{isNonNullable as Cf}from"@vkontakte/videoplayer-shared/es2018";var va,yi,Tf=0,If=!1,Qh="",Gh=(t,e=0,i=0)=>t<e&&t<i,Qc=(t,e=0,i=0)=>t>=e&&t<=i,w2=(t,e=0,i=0)=>t>e&&t>i,Yh=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:l})=>l===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:f})=>Qc(t,p,f));let a=t>=Tf,r=t<Tf;if(Tf=t,r&&(If=!1),Cf(va)&&Qc(t,va.startTime,va.endTime)&&Qh===e.value)return va;if(!Cf(yi)&&(n!=null&&n.length)&&!If){yi=n.find(({startTime:p,endTime:f})=>Qc(t,p,f)||a&&Gh(t,p,f)),va=void 0,!Cf(yi)&&n[n.length-1].endTime<t&&(If=!0);return}else{if(Qc(t,yi==null?void 0:yi.startTime,yi==null?void 0:yi.endTime))return va=yi,yi=void 0,Qh=e.value,va;(a&&w2(t,yi==null?void 0:yi.startTime,yi==null?void 0:yi.endTime)||r&&Gh(t,yi==null?void 0:yi.startTime,yi==null?void 0:yi.endTime))&&(yi=void 0)}};var Gc={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"},S2={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"},Yc=t=>{var e,i;return(i=(e=Gc[t])!=null?e:Gc[S2[t]])!=null?i:void 0};import{Subscription as C2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var jc=class{constructor(e,i,o=new C2){this.oneStat=e;this.thinOneStat=i;this.statSubscription=o}destroy(){var e,i;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),this.statSubscription.unsubscribe()}};var Zc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Zc||{});var jr=t=>t!=null?t:0,ms=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(jr(i==null?void 0:i.top)-jr(o==null?void 0:o.top)),left:Math.round(jr(i==null?void 0:i.left)-jr(o==null?void 0:o.left)),bottom:Math.round(jr(i==null?void 0:i.bottom)-jr(o==null?void 0:o.top)),right:Math.round(jr(i==null?void 0:i.right)-jr(o==null?void 0:o.left))}},ol=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:jr(e==null?void 0:e.width),height:jr(e==null?void 0:e.height)}};var Xc="off";var Xh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:r,canDownload:d,callbacks:l,webApi:p,videoEpisodes:f,previewThumbsData:b,uiConfig:u,coreConfig:_,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:M,stopPlayer:P,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,additionalButtons:z,additionalSettingsMenuItems:q,additionalContextMenuItems:U,playPrevVideo:Y,playNextVideo:se,looped:Q=!1,statistics:de,saveRate:le,internalsExposure:Me,playerView:Be})=>{var Wm,qm,Km;let ge={..._,configName:[...(Wm=_.configName)!=null?Wm:[],"ui"],isAudioDisabled:r,live:{...(qm=_.live)!=null?qm:{},isLiveCatchUpMode:!!n}},ce=u,Ae=B2.createRootTracer(ce.features.tracer),ae=Ae.createComponentTracer("Store"),N=w||new I2(ge,Ae);Me==null||Me.expose({corePlayer:N});let Ge=new V2,ee=new qc(Ge,{loadTimeout:ce.ads.loadTimeout,initTimeout:ce.ads.initTimeout,runtimeTimeout:ce.ads.runtimeTimeout,useAdmanFromNPM:ce.ads.useAdmanFromNPM,volumeMultiplier:ce.ads.volumeMultiplier,isVsidOriginal:ce.ads.isVsidOriginal}),We=na.getInstance(),ne=p==null?void 0:p.pictureInPictureApi,me=p==null?void 0:p.annotationsApi,$e=p==null?void 0:p.slotsApi,Z=Ge.createComponentLog("Store"),ze,Je,Ce={},ie=new xc,Ee=new Ef,qe=de&&de.oneStat?Xt(de.oneStat.vsid$):pr(void 0),nt=re(Ps()),dt=re(!1),rt=(Km=ne==null?void 0:ne.info.isActive$)!=null?Km:new N2(!1),St=re(0),ct=re([]),Yt=R2(N.events.fatalError$,N.events.managedError$).subscribe(c=>ct.update(x=>[...x,c])),ni=pr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Ot=async c=>{var ue;let x=Object.values(P2).includes(c);if(ce.downloadVKLanguages&&(x&&ce.updateBuiltinLanguages||!Lp(c))){let Oe;try{Oe=await L2(c,Rg,Bg)}catch(pt){(ue=de==null?void 0:de.oneStat)==null||ue.logError({errorType:"VKLangPack",fatal:!1}),We==null||We.report(pt,{errorType:"VKLangPack",fatal:!1})}Oe&&(Mp({language:c,pack:Oe,fallback:ce.defaultLanguage}),Et.set(c))}Lp(c)&&Et.set(c)},Et=re(t),te=re(e);Ot(t);let At=(c,x)=>{let B=xe(Et);return Vp(B,c,x,ce.defaultLanguage)},j=re("thumb"),pe=(()=>{let c=mi([ni,j],([x,B])=>x?"crashed":B);return{...c,is:x=>xe(c)===x}})(),Pe=(()=>{let c=re(new Set(y));return{...c,add:x=>{c.update(B=>new Set([...B].concat(x)))},remove:x=>{c.update(B=>{let ue=[...B];return new Set(Array.isArray(x)?ue.filter(Oe=>!x.includes(Oe)):ue.filter(Oe=>Oe!==x))})},includes:x=>{let B=xe(c);return Array.isArray(x)?x.every(ue=>B.has(ue)):B.has(x)}}})();ae.log("create store"),Z({message:"create store"});let Re=c=>{let x=c.container,B=()=>{Wt=new MutationObserver(Oe=>{let{removedNodes:pt}=Oe[0];pt.length&&x.append(N.experimental.element$.getValue())}),Wt.observe(x,{childList:!0})},ue=N.experimental.element$.getValue();if(ue)x.append(ue),B();else{let Oe=N.experimental.element$.pipe(F2(pt=>!!pt),U2()).subscribe(pt=>{x.append(pt),B()});Ee.add(Oe)}},fe=c=>{Z({message:`init video, config: ${JSON.stringify(c)}`}),C?Re(c):(O2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[H2()]}),N.initVideo(c)),ae.log("init video",{isInteractive:C}),c.subtitles&&N.setExternalTextTracks(c.subtitles),ze=c},Ke=new Jc,it=c=>Ke.next(c),Ze=new Jc,yt=new Jc,mt=new Jc,Wt=null,gt={actionRewind$:Ze,actionSeek$:yt,inPiP$:rt,inFullscreen$:new Zh(c=>nt.subscribe(x=>c.next(x))),actionSetSubtitle$:mt,nextMovie$:Ke},xi={actionSeek$:yt,playerSize$:new Zh(c=>Ft.subscribe(x=>c.next(x)))};if(de){let{oneStat:c,thinOneStat:x,statSubscription:B}=de;c&&(C||B.add(c.attachTo(N)),B.add(c.attachToUi(gt)),B.add(c.attachToAds(ee.events)),c.authorize(a).catch(ue=>{Z({message:`onestat auth error ${String(ue)}`})})),x&&(B.add(x.attachTo(N)),B.add(x.attachToUi(xi)),x.authorize(a))}if(We){let c=new Ef,x=(B,ue)=>c.add(B.subscribe(ue));if(x(N.events.managedError$,B=>{We.logIError(B)}),x(N.events.fatalError$,B=>{We.logIError(B,!0)}),de){let{oneStat:B}=de;B&&x(B.experimental.error$,ue=>{We.logIError(ue)})}We.sentrySubscription.add(c)}let zt=()=>{E2.device.isIOS&&Je&&bh(Je).catch(c=>{Z({message:`exitIosSafariFullscreen failed: ${c}`})})};Ee.add(N.experimental.element$.subscribe(c=>{c&&(Je=c,c.classList.add("player-media"),sa(ne)&&(ne.updateVideoElement(),ne.registryEventHandlers()),C&&c.setAttribute("pip","false"),Be==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;zt(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(N.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(N.events.started$.subscribe(async()=>{var x,B;sa(ne)&&await(ne==null?void 0:ne.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(B=Ce.onStarted)==null||B.call(Ce,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var B;(B=l==null?void 0:l.onSeek)==null||B.call(l,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(N.info.position$.subscribe(c=>{var B;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((B=l==null?void 0:l.onTimeupdate)==null||B.call(l,x,c),ee.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=l==null?void 0:l.onCrashed)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=l==null?void 0:l.onRecoverableError)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{kt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{kt.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{C&&(c?(I!=null&&I.getValue()&&Pe.add(Fl),Pe.add("PLAY_BUTTON")):Pe.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(ee.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(ee.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(ee.events.loadError$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(ee.events.init$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(ee.events.ready$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(ee.events.started$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:B.call(x,c)})).add(ee.events.timeRemained$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:B.call(x,c)})).add(ee.events.ended$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:B.call(x,c)})).add(ee.events.empty$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(ee.events.clicked$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:B.call(x,c)})).add(ee.events.closed$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:B.call(x,c)})).add(ee.events.error$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:B.call(x,c)})).add(ee.events.paused$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(ee.events.resumed$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let je=new Ef,Jt=()=>{var pt,Bt,Ut;let{debugLog:c}=ce,x,B="#9df7b7",ue="#efd169";if(c&&c!==!0){let{colors:Nt}=c;x=c.tag,B=(pt=Nt==null?void 0:Nt[0])!=null?pt:B,ue=(Ut=(Bt=Nt==null?void 0:Nt[1])!=null?Bt:Nt==null?void 0:Nt[0])!=null?Ut:ue}let Oe=x?`: ${x}`:"";je.add(N.events.log$.subscribe(Nt=>{console.debug(`%c sdk${Oe} `,`background:${B};`,`sdk component: ${Nt.component}`,Nt.message)})).add(Ge.log$.subscribe(Nt=>{console.debug(`%c ui${Oe} `,`background:${ue};`,`ui component: ${Nt.component}.`,Nt.message)}))},Wi=()=>{je.unsubscribe()},Ni=(c,x)=>{ae.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},ao=(c=!1)=>{ae.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},qi=(c,x,B)=>{ae.log("move camera focus px",{xpx:c,ypx:x,dt:B}),N.moveCameraFocusPX(c,x,B)},ot=()=>{N.holdCamera()},bt=()=>{N.releaseCamera()},li=pr(N.info.position$.getValue(),c=>{let x,B,ue=()=>{let Oe=N.info.playbackState$.getValue(),pt=N.info.isLive$.getValue(),Bt=N.info.duration$.getValue(),Ut=N.info.position$.getValue();if(Oe&&[fd.PLAYING,fd.PAUSED].includes(Oe)){let Nt=pt?Ut-Bt:N.getExactTime();Nt!==B&&c(Nt),B=Nt}x=requestAnimationFrame(ue)};return ue(),()=>cancelAnimationFrame(x)}),wi=Xt(N.info.playbackState$),xo=Xt(N.info.currentBuffer$),G=Xt(N.info.isEnded$),qt=Xt(N.info.isLive$),ci=ce.features.playbackRate?Xt(N.info.canChangePlaybackSpeed$):pr(!1),Pi=Xt(N.info.liveBufferTime$),si=Xt(N.info.volume$),di=Xt(N.info.muted$),ut=wc(N.info.predefinedQualityLimitType$.pipe(jh(c=>c===Zr.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===Zr.TRAFFIC_SAVING),et=wc(N.info.predefinedQualityLimitType$.pipe(jh(c=>c===Zr.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===Zr.HIGH_QUALITY),Mt=Xt(N.info.autoQualityLimitingAvailable$),lo=Xt(N.info.availableQualities$),ei=Xt(N.info.availableQualitiesFps$),Zn=Xt(N.info.chromecastState$),Ai=Xt(N.info.chromecastDeviceName$),Lo=Xt(N.info.currentFormat$),_i=Xt(N.info.throughputEstimation$),vt=Xt(N.info.videoBitrate$),Mi=Xt(N.info.intrinsicVideoSize$),Vo=Xt(N.info.duration$),Tn=Xt(N.info.isAudioAvailable$),ai=null,Si=N.info.isBuffering$,Ro=pr(Si.getValue(),c=>{let x=Si.subscribe(B=>{B&&ai===null?ai=window.setTimeout(()=>{c(Si.getValue()),ai=null},ce.loaderDelay):c(B)});return()=>{x.unsubscribe(),ai&&clearTimeout(ai)}}),In=()=>{ai&&clearTimeout(ai),ai=null},Bo=mi([Vo,qt],([c,x])=>x?-c:c),wo=mi([wi],([c])=>c===fd.PLAYING),fn=Xt(N.info.atLiveEdge$),Go=Xt(N.info.atLiveDurationEdge$),co=Xt(N.info.position$),So=mi([co,Vo],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Vr=mi([Zn],([c])=>c===T2.CONNECTED),mr=Xt(N.info.availableVideoStreams$),Xn=ce.features.audioLanguages?Xt(N.info.availableAudioStreams$):pr([]),Jn=Xt(N.info.currentVideoStream$),er=Xt(N.info.currentAudioStream$),En=c=>{c.language&&Ap(c.language),N.setVideoStream(c)},Xr=c=>{c.language&&Ap(c.language),N.setAudioStream(c)},kn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ue=>"isDefault"in ue&&ue.isDefault)),x)return x;let B=rh();return B&&(x=c.find(({language:ue})=>B===ue)),x!=null||(x=c.at(0)),x},Li=!1;Ee.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Li&&c.length){let x=kn(c);x&&(N.setAudioStream(x),Li=!0)}}));let Pn=!1;Ee.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Pn&&c.length){let x=kn(c);x&&(N.setVideoStream(x),Pn=!0)}}));let Yo=re(void 0),jo=Xt(N.info.isAutoQualityEnabled$,c=>c&&Yo.set(void 0)),An=Xt(N.info.currentQuality$,()=>Yo.set(void 0)),Mn=mi([Yo,An],([c,x])=>c!=null?c:x),No=mi(Lo,c=>c!==md.MPEG),Rr=mi([lo,ei,jo,Mn,No],([c,x,B,ue,Oe])=>{let pt=[];Oe&&pt.push({value:"auto",displayValue:At("auto_quality_option"),selected:B});let Bt=c.filter(Ut=>!A2(Ut));for(let Ut of Bt){let Nt=x[Ut];pt.push({value:Ut,displayValue:`${Ut}${Nt?qh(Nt):""}`,selected:B?!1:Ut===ue})}return pt}),Ln=Xt(N.info.currentPlaybackRate$),tr=mi([Ln,fn,Go],([c,x,B])=>{let ue=B||C?1:ce.controls.playbackRateMin,Oe=x?1:ce.controls.playbackRateMax,pt=ce.controls.playbackRateStep,Bt=[];for(let Ut=ue;Ut<=Oe;Ut+=pt)Bt.push({value:Ut,displayValue:Ut===1?At("playback_rate_1"):At("playback_rate",{multiplier:Ut.toString(10)}),selected:c===Ut});return Bt}),Di={displayValue:At("subtitles_off"),value:Xc},Co=re({...Di}),at=ce.features.subtitles?Xt(N.info.availableTextTracks$):pr([]),jt=jg(),vr=mi([at,Co],([c,x],B)=>{var pt;let ue=[],Oe=c.find(({id:Bt})=>Bt===x.value);if(Oe!=null&&Oe.url){let[,Bt]=(pt=jt.find(Oe.url))!=null?pt:[];if(Bt){B(Bt);return}ie.download(Oe.url).then(Ut=>{if(!Ut||ie.isDestroyed())return;let Nt=new Kh,ys=Oe.language;if(ys){let U1=!!Oe.isAuto,z1=Nt.parse(Ut,ys);ue.push({lang:ys,subtitles:z1,isAuto:U1,id:Oe.id})}jt.add(Oe.url,ue),xe(Co).value===x.value&&B(ue)}).catch(Ut=>{var Nt;(Nt=de==null?void 0:de.oneStat)==null||Nt.logError({errorType:"Subtitles download",fatal:!1}),We==null||We.report(Ut,{errorType:"Subtitles download",fatal:!1})})}B(ue)}),Vn=mi([Ln,wo,Co],([c,x,B],ue)=>{let Bt;if(N.info.isLive$.getValue()&&x&&B.value!==Di.value){let Nt=()=>{let ys=1e3/(3*c);Bt=setTimeout(Nt,ys),ue(Date.now())};return Nt(),()=>clearTimeout(Bt)}}),mn=mi([at,Co],([c,x])=>{if(!c.length)return[];let B=[];for(let{language:ue,isAuto:Oe,id:pt}of c){let Bt=ue&&Yc(ue);ue&&Bt&&B.push({displayValue:Oe?At("subtitles_auto",{language:Bt}):Bt,value:pt,selected:(x==null?void 0:x.value)===pt,isAuto:Oe})}return B.length?(B.unshift({...Di,selected:(x==null?void 0:x.value)===Di.value}),B):[]}),Vi={available:[],prev:[]},Rn=()=>{var x,B;let c=N.experimental.getCurrentTime$.getValue();return(B=(x=c==null?void 0:c())!=null?x:Je==null?void 0:Je.currentTime)!=null?B:0},To=mi([li,Co,vr,Vn],([c,x,B,ue])=>{var pt;let Oe=N.info.isLive$.getValue();if(Oe&&Vi.prev!==B){let Bt=B.find(({id:Nt})=>Nt===x.value),Ut=Vi.prev.find(({id:Nt})=>Nt===x.value);if(Bt){let Nt={...Bt,subtitles:[...(pt=Ut==null?void 0:Ut.subtitles)!=null?pt:[],...Bt.subtitles]};Vi.available=[Nt],Vi.prev=B}}if(x&&x.value!==Di.value){let Bt=Oe?Rn():c,Ut=Oe?Vi.available:B;return Yh(Bt,x,Ut,Oe)}}),Bn=mi([To],([c])=>c!=null&&c.texts?c.texts:[]);Ee.add(Co.subscribe(c=>{var x,B;if(c.value===Di.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let ue=Object.entries(Gc).find(([Oe,pt])=>pt===c.displayValue);(B=l==null?void 0:l.onSubtitleOn)==null||B.call(l,ue?ue[0]:"")}}));let Io=re(!0),Nn=mi([xo,Bo,co,Pi],([c,x,B,ue])=>{var Ut;let Oe=(Ut=c==null?void 0:c.end)!=null?Ut:0;if(!ue)return Oe/x;let Bt=-B+ue-x;return(Oe-Bt)/x}),Dn=Xt(N.info.availableSources$),ir=mi([Dn],([c])=>Object.keys((c==null?void 0:c[md.MPEG])||{}).length>0),gr=()=>{var B,ue,Oe;let c=Object.keys(((ue=(B=N.info.availableSources$)==null?void 0:B.getValue())==null?void 0:ue[md.MPEG])||{}),x=k2(c)||D2.Q_144P;return(Oe=ze.sources[md.MPEG])==null?void 0:Oe[x]},or=()=>{var x;let c=gr();if(c)ae.log("download video",{url:c}),Qg(c,((x=ze==null?void 0:ze.meta)==null?void 0:x.title)||"video");else{let B="There is no URL for download video";ae.log("download video",{message:B}),Z({message:B})}},Do=()=>{Z({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?uo(Kt()):Eo(!c)},Br=()=>{var c;if(kt.ui.settingsMenu.visible$.set(!1),!xe(kt.ui.settingsSubMenu.visible$)){let x=xe(kt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ue=ol(x),Oe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ue,position:Oe,name:"settings"})}}ae.log("close settings menu")},nr=async(c,x=()=>Promise.resolve())=>{var Oe;kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),kt.ui.settingsMenu.visible$.set(!0),await x();let B=xe(kt.ui.settingsMenu.ref$),ue=Ca();if((Oe=l==null?void 0:l.uiInfo)!=null&&Oe.onSettingsMenu&&B&&ue){let Bt=ol(B),Ut=ms(B,ue);l.uiInfo.onSettingsMenu({visible:!0,size:Bt,position:Ut,name:"settings"})}ae.log("open settings menu",{wasOpenedByKeyboard:c})},hr=(c,x=!1)=>{var pt;kt.ui.settingsSubMenu.visible$.set(!1);let B=xe(kt.ui.settingsMenu.ref$),ue=Ca(),Oe=xe(kt.ui.settingsMenu.visible$);if((pt=l==null?void 0:l.uiInfo)!=null&&pt.onSettingsMenu&&B&&ue)if(Oe&&!x){let Ut=ol(B),Nt=ms(B,ue);l.uiInfo.onSettingsMenu({visible:!0,size:Ut,position:Nt,name:"settings"})}else{let Ut=ol(c),Nt={top:0,left:0,bottom:0,right:0},ys=xe(kt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Ut,position:Nt,name:ys})}ae.log("close settings sub menu")},Zo=(c,x)=>{var ue;kt.ui.settingsSubMenu.visible$.set(!0),kt.ui.settingsSubMenu.ref$.set(x),kt.ui.settingsSubMenu.name$.set(c);let B=Ca();if((ue=l==null?void 0:l.uiInfo)!=null&&ue.onSettingsMenu&&x&&B){let pt=ol(x),Bt=ms(x,B);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:pt,position:Bt})}ae.log("open settings sub menu",{name:c})},Kt=()=>{var x;let c=Math.max(ce.volumeMinRestore,(x=Sc())!=null?x:0);return c===0?ce.volumeDefault:c},uo=c=>{let x=c===0?Kt():c,B=N.info.muted$.getValue();Z({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let ue=!r||pe.is("ads");B&&c>0&&ue&&(B=!1,kp(!1)),N.setVolume(c,B),ee.setVolume(c),Sp(x)},Eo=c=>{let x=N.info.volume$.getValue();if(Z({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c,pe.is("ads")),ee.setVolume(c?0:x),kp(c),!c&&x===0){let B=Kt();N.setVolume(B),Sp(B),ee.setVolume(B)}},rr=re(!1),_r=c=>{var x,B;ae.log("set looped",{isLooped:c}),rr.set(c),N.setLooped(c),(B=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||B.call(x,c)};_r(Q);let Ci=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},Jr=(c,x=!1)=>{var B;Z({message:`set autoplayNextEnabled, value: ${c}`}),ae.log("set autoplay next enabled",{autoplayNextEnabled:c}),kt.ui.autoplayNextEnabled$.set(c),lh(c),x&&((B=l==null?void 0:l.onSetAutoplayNextEnabled)==null||B.call(l,c))},Nr=c=>{Z({message:`set timerNextVideoRunning, value: ${c}`}),ae.log("set timer next video running",{timerNextVideoRunning:c}),kt.ui.timerNextVideoRunning$.set(c)},br=(c=!0)=>{var ue;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(ue=l==null?void 0:l.onPrevVideoClick)==null?void 0:ue.call(l)}catch(Oe){Z({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Zt("prev")||Y()},ht=(c=!0)=>{var ue;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(ue=l==null?void 0:l.onNextVideoClick)==null?void 0:ue.call(l)}catch(Oe){Z({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Zt("next")||se()},Zt=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:B,playbackStatusShow:ue}}=ce;return B&&ue&&!x?(kt.ui.aboutToGoNextVideo.set(c),kt.ui.userActionsDisabled.set(!0),!0):!1},Oo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},po=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Gi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Xo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},On=()=>{N.prepare()},fo=()=>{jn(kt);let c=xe(kt.ui.controls.disabledControls$),x=xe(kt.playerPhase),B={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(Z({message:"toggle play"}),x==="ads"){B.action="play",ae.log("toggle adman play",B),ee.togglePlay();return}let ue=()=>{var pt;Z({message:"toggle play, call player.play"}),B.action="play",N.play(),(pt=l==null?void 0:l.onPlay)==null||pt.call(l)},Oe=()=>{var pt;Z({message:"toggle play, call player.pause"}),B.action="pause",N.pause(),(pt=l==null?void 0:l.onPause)==null||pt.call(l)};if(N.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),Ze.next(),yt.next(vs.REWIND),C){M==null||M();return}N.seekTime(0),ue()}else N.info.playbackState$.getValue()!==fd.PLAYING?ue():Oe();ae.log("toggle play",B)},vn=(c,{changeReason:x="default",appliesTo:B="to-video"}={})=>{Z({message:`set quality, quality: ${c}`}),ae.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ce.features.qualityDetailsSubMenuEnabled?(Cc({type:"exact_quality",quality:c,videoId:i},B),zl(),N.setPredefinedQualityLimits(Zr.UNKNOWN)):Cp(i,c),Yo.set(c),N.setQuality(c)):ce.features.qualityDetailsSubMenuEnabled?x==="default"&&(vi("auto_quality",B),xe(ut)&&Jo(!1),xe(et)&&Xe(!1)):zl()},Jo=(c,x="as-default")=>{Z({message:`set trafficSavingEnabled, value: ${c}`}),ae.log("set traffic saving enabled",{trafficSavingEnabled:c});let B=c?Zr.TRAFFIC_SAVING:Zr.UNKNOWN;ce.features.qualityDetailsSubMenuEnabled?(Lt(B,x),Ul(!1)):(N.setPredefinedQualityLimits(B),Ul(c))},Xe=(c,x="as-default")=>{Z({message:`set highQualityEnabled, value: ${c}`}),ae.log("set high quality enabled",{highQualityEnabled:c}),Lt(c?Zr.HIGH_QUALITY:Zr.UNKNOWN,x)},Lt=(c,x)=>{c!==Zr.UNKNOWN&&(xe(Mt)&&!xe(jo)&&vn("auto",{appliesTo:x,changeReason:"limit-changed"}),vi(c,x)),N.setPredefinedQualityLimits(c)},vi=(c,x)=>{Cc({type:c,videoId:i},x),x==="as-default"&&Cc({type:c,videoId:i},"to-video")},mo=c=>{ae.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ce.features.saveRate&&le&&!N.info.isLive$.getValue()&&sh(c)},Yi=()=>{let c=xe(tr),x=c.findIndex(({selected:ue})=>ue);if(x===c.length-1)return;let B=c[x+1];mo(B.value)},Ho=()=>{let c=xe(tr),x=c.findIndex(({selected:ue})=>ue);if(x===0)return;let B=c[x-1];mo(B.value)},Ki=(c={...Di,selected:!1})=>{ae.log("set subtitles",{...c}),c&&c.value!==Di.value&&mt.next(c.isAuto?c.value+"_auto":c.value),Co.set(c)},Fo=()=>{ae.log("toggle subtitles");let c=xe(mn),x=xe(Co),B=xe(Et);if((x==null?void 0:x.value)===Di.value){let ue=c.filter(Oe=>Oe.value!==Di.value).find(Oe=>Oe.value===B)||c[1];Ki(ue)}else Ki()},ko=re(!0),Oi=c=>{ko.set(c)},gi=(c,x,B=!0)=>{var ue;if(Z({message:`seek to time, time: ${c}`}),ae.log("seek to time",{time:c,action:x,forcePrecise:B}),yt.next(x),N.info.isLive$.getValue()){let Oe=N.info.duration$.getValue(),pt=Math.min(0,Oe+c);N.seekTime(pt,B)}else{if(I!=null&&I.getValue())return;N.info.isEnded$.getValue()&&(Z({message:"seek after ended, call callbacks.onPlay"}),(ue=l==null?void 0:l.onPlay)==null||ue.call(l)),N.seekTime($s(c),B)}},Uo=c=>{Z({message:`seek to episode start time: ${c}`}),ae.log("seek to episode start time",{time:c}),gi(c,vs.EPISODE,!0)},en=(c,x)=>{Z({message:`seek to percent, percent: ${c}`}),ae.log("seek to percent",{percent:c,action:x});let B=xe(Bo)*c;gi(B,x,!1)},Hi=c=>{Z({message:`seek external, time: ${c}`}),ae.log("seek external",{time:c}),yt.next(vs.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},$r=c=>{var ue,Oe;let x=(ue=c.max)!=null?ue:"none",B=(Oe=c.min)!=null?Oe:"none";Z({message:`set auto quality limitation. Max: ${x}. Min: ${B}`}),ae.log("set auto quality limits",{max:x,min:B}),N.setAutoQualityLimits(c)},Dr=c=>{Z({message:`seek external to episode start time: ${c}`}),ae.log("seek external to episode start time",{time:c}),gi(c,vs.EPISODE,!0)},Or=c=>{Z({message:`set playback rate to: ${c}`}),ae.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},gn=re(void 0),Hn=re(!1),Hr=c=>{Z({message:`start scrubbing, progress: ${c}`}),ae.log("start scrubbing",{progress:c}),Hn.set(!0),ji(c)},ji=c=>{gn.set(c)},zo,Fn,sr=()=>{gn.set(void 0),Hn.set(!1)},ar=()=>{clearTimeout(Fn),clearTimeout(zo),zo=window.setTimeout(()=>{sr()},500),Je==null||Je.removeEventListener("seeked",ar)},Fr=c=>{Z({message:`complete scrubbing, progress: ${c}`}),ae.log("complete scrubbing",{progress:c}),en(c,vs.SLIDER),xe(kt.ui.isMobile)&&xe(kt.state.currentFormat$)===md.HLS?(Je==null||Je.addEventListener("seeked",ar),Fn=window.setTimeout(()=>{ar()},300)):sr()},es=mi([li,Bo,gn],([c,x,B],ue)=>{ue(M2(B)?B*x:c)}),Te=re(!1),ye=()=>{Te.set(!0)},xt=()=>{Te.set(!1)},Ft=re({width:0,height:0}),Ti=mi([Ft],([{width:c}],x)=>{let B=Hh(c);x(B)}),hi=re(!1),Fe=z.filter(c=>Gg(c)),Ct=mi([Ti,hi],([c,x])=>x?Fe.filter(B=>!B.hideOnMobile):Fe.filter(B=>{var ue;return!((ue=B.hideOnDesktopGridTypes)!=null&&ue.includes(c))})),ti=re(z.filter(c=>Yg(c))),tn=mi([ti,Ti],([c,x])=>c.filter(B=>{var ue;return!((ue=B.hideOnDesktopGridTypes)!=null&&ue.includes(x))})),hn=mi([tn,Ct],([c,x])=>[...ce.features.additionalButtonsDesktopControlPanelRight?c.filter(B=>B.type==="desktop-control-panel-right"):[],...ce.features.additionalButtons?x.map((B,ue)=>{var Oe;return{id:ue,weight:ue,type:"desktop-control-panel-right",testId:B.testId,icon:B.iconUrl,onClick:B.onClick,ariaLabel:(Oe=B.ariaLabel)!=null?Oe:B.tooltip,tooltipText:B.tooltip}}):[]]),Zi=re(q),Ur=mi([Zi],([c])=>ce.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),yr=(c,x)=>{let B=xe(ti).map(ue=>ue.id!==c?ue:{...ue,...x});ti.set(B)},Qi=c=>{let x=xe(ti);if(x.some(B=>B.id===c.id)){Z({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ti.set(x)},Ii=c=>{let x=xe(ti);if(!x.some(B=>B.id===c)){Z({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),ti.set(x)},_n=c=>{yt.next(vs.LIVE),Z({message:"live switch to low latency "+c}),ae.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Un=(c,x)=>{let B=xe(Zi).map(ue=>ue.id!==c?ue:{...ue,...x});Zi.set(B)},xr=c=>{let x=xe(Zi);if(x.some(B=>B.id===c.id)){Z({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Zi.set(x)},vo=c=>{let x=xe(Zi);if(!x.some(B=>B.id===c)){Z({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),Zi.set(x)},lr=re(U),Os=mi([lr],([c])=>ce.features.additionalContextMenuItems?c:[]),$t=(c,x)=>{let B=xe(lr).map(ue=>ue.id!==c?ue:{...ue,...x});lr.set(B)},_t=c=>{let x=xe(lr);if(x.some(B=>B.id===c.id)){Z({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),lr.set(x)},Xi=c=>{let x=xe(lr);if(!x.some(B=>B.id===c)){Z({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),lr.set(x)},Wo=mi([hi,ni],([c,x],B)=>{B(c&&x)}),Ji=()=>{yt.next(vs.LIVE),Z({message:"switch to active live"}),ae.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==fd.PLAYING&&kt.actions.internal.togglePlay()},ri=()=>{ae.log("skip adman"),ee.skip()},Ri=(c=!0)=>{jn(kt),Z({message:`switch from ads to video, callPlay: ${c}`}),ae.log("switch from ads to video",{callPlay:c}),j.set("video"),c&&N.play(),r&&Eo(!0)},bs=()=>{jn(kt),Z({message:"switch from video to ads"}),ae.log("switch from video to ads"),kt.actions.internal.pause(),zt(),j.set("ads")},cl=c=>{jn(kt);let x=c?"LiveWaitingStart":"thumb";ae.log("set live waiting start",{state:c,playerPhase:x}),j.set(x)},zd=c=>{jn(kt);let x=c?"LiveWaitingRecover":"thumb";ae.log("set live waiting recover",{state:c,playerPhase:x}),j.set(x)},bu=c=>{jn(kt);let x=c?"LiveWaitingRecord":"thumb";ae.log("set live waiting record",{state:c,playerPhase:x}),j.set(x)},Wd=()=>(jn(kt),ae.log("get debug text data"),qg(N,ze,kt,Ae.getTraceId())),$u=()=>(jn(kt),JSON.stringify(Ae.getFinishedSpans())),qd=()=>(jn(kt),Kg(N,ze,kt)),Ca=()=>Je,Kd=()=>{Z({message:"toggle chromecast"}),ae.log("toggle chromecast"),N.toggleChromecast()},Qd=c=>{var B;if(jn(kt),N.info.isEnded$.getValue())return;let x=!c;if(xe(kt.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${x}`}),ae.log("pause ads",{internalCall:x}),ee.pause();return}Z({message:`pause video, internalCall: ${x}`}),ae.log("pause video",{internalCall:x}),x&&((B=l==null?void 0:l.onPause)==null||B.call(l)),N.pause()},ul=c=>{var B;jn(kt);let x=!c;if(xe(kt.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${x}`}),ae.log("play ads",{internalCall:x}),ee.play();return}Z({message:`play video, internalCall: ${x}`}),ae.log("play video",{internalCall:x}),x&&((B=l==null?void 0:l.onPlay)==null||B.call(l)),N.play()},Gd=c=>{jn(kt);let x=!c;if(xe(kt.playerPhase)==="ads"){Z({message:"player cannot be stopped during ads via external method"});return}Z({message:`player will be stopped, internalCall: ${x}`}),P==null||P()},pl=(c,x)=>{jn(kt),Z({message:`first start, show ads: ${c}, internalCall: ${!x}`}),ae.log("first start",{showAds:c,external:x}),c?j.set("ads"):(j.set("video"),x?N.play():kt.actions.internal.togglePlay())},fl=()=>(Z({message:"getting time codes"}),f),ml=()=>{let c=fl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(B=>B.time>x)},yu=c=>{let x=c;x||(x=ml());let B=N.info.position$.getValue();ae.log("seek to next episode",{currentTime:B,...x}),x&&(Z({message:"seek to next episode"}),gi(x.time,vs.EPISODE,!0))},vl=()=>{let c=fl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),B=c.findIndex(Oe=>Oe.time>x),ue=B===-1?c.length-2:B-2;if(!(ue<0))return c[ue]},xu=c=>{let x=c;x||(x=vl());let B=N.info.position$.getValue();ae.log("seek to prev episode",{currentTime:B,...x}),x&&(Z({message:"seek to prev episode"}),gi(x.time,vs.EPISODE,!0))},wu=()=>(Z({message:"getting preview thumbs data"}),ae.log("get preview thumbs data",{...b}),b),Su=async()=>{let c=ne==null?void 0:ne.isActive(),x="none";ne!=null&&ne.isActive()?(x="remove",await(ne==null?void 0:ne.remove())):(x="request",await(ne==null?void 0:ne.request())),ae.log("toggle picture in picture",{isActive:c,action:x})},Qe=(c=-90)=>{ae.log("rotate video",{alphaDiff:c}),St.update(x=>x+c)},ii=re([]);T==null||T.subscribe(c=>{let x=[];for(let B=0;B<c.length;B++){let{range:[ue,Oe],subjects:pt}=c[B];B===0&&ue!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ue/1e3,text:"",interactive:!0,completed:ce.features.interactiveTimeOpenUri?!pt.length||pt.every(Bt=>Bt.isRemoved):!pt.length}),Oe!==1/0&&x.push({time:Oe/1e3,text:"",interactive:!1,completed:!0})}ii.set(x)});let Po=re(!1);I==null||I.subscribe(c=>{c&&xe(Hn)&&sr()});let $s=c=>{if(!C)return c;let x=xe(ii),B=xe(Bo),Oe=xe(co)/B,pt=x.find(Bt=>Bt.interactive&&!Bt.completed&&Bt.time>Oe);return typeof(pt==null?void 0:pt.time)=="number"?Math.min(c,pt.time-.05):c},on=()=>{kt.ui.episodes.panelOpened$.set(!1)},F1=()=>{ae.log("destroy store"),clearTimeout(Fn),clearTimeout(zo),Ee.unsubscribe(),je.unsubscribe(),N.destroy(),ee.destroy(),de==null||de.destroy(),We==null||We.destroy(),Yt.unsubscribe(),Wt==null||Wt.disconnect(),Wt=null,ie.destroy()},kt={interfaceLanguage$:Et,isCyrillicRelatedInterface$:te,initVideo:fe,videoId:i,isClip:o,playerPhase:pe,vsid:qe,state:{positionExact$:li,positionWithScrubbing$:es,duration$:Bo,playbackState$:wi,isPlaying$:wo,isLoaderVisible:Ro,bufferedProgress$:Nn,isLive$:qt,canChangePlaybackSpeed$:ci,isActiveLive$:fn,isOldestAvailableLive$:Go,isRewindableLive$:So,isEnded$:G,muted$:di,volume$:si,trafficSavingEnabled$:ut,highQualityEnabled$:et,autoQualityLimitingAvailable$:Mt,availableVideoStreams$:mr,availableAudioStreams$:Xn,videoStream$:Jn,audioStream$:er,currentQuality$:Mn,isAutoQualityEnabled$:jo,availableQualities$:Rr,currentPlaybackRate$:Ln,availablePlaybackRates$:tr,currentSubtitle$:Co,availableTextTracks$:at,availableSubtitlesList$:mn,currentSubtitleCaptions$:Bn,isAutoSubtitleCaptionVisible$:Io,chromecastState$:Zn,chromecastDeviceName$:Ai,chromecastConnected$:Vr,currentFormat$:Lo,throughputEstimation$:_i,videoBitrate$:vt,videoSize$:Mi,errorLog$:ct,crashed$:ni,isAudioAvailable$:Tn,isAudioDisabled:!!r,canDownload:ce.features.download&&!!d,availableSources$:Dn,hasMpegSources$:ir,isInteractive:C,showInteractiveGraph:ce.features.interactiveGraph,showSeekToInteractive:ce.features.seekToInteractive,showPlayPrevChapter:ce.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ce.features.interactiveTimeIndicator&&!!xe(ii).length,interactiveEpisodes$:ii,isInteractiveTime$:I?Xt(I):re(!1),isInteractiveExpectation$:Po,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,looped$:rr,loadedMetadata$:re(!1),isAutoQualityAvailable$:No},ui:{t:At,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:z.length?z.reduce(c=>[...c,re(void 0)],[]):[],disabledControls$:Pe},modals:{hotKeyMap:{show:re(!1),data:re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:nt,isFullscreenOpenedByKeyboard:dt,rotateAlpha:St,isAutoplay:re(!1),debugPanelVisible:re(!1),episodes:{panelOpened$:re(!1),openedByKeyboard$:re(!1)},contextMenu:{visible$:re(!1),btnRef$:re(void 0),openedByBtnKeyboard$:re(!1),openedByHotKey$:re(!1),lastActiveElem$:re(void 0),showContextMenuBtn$:re(!1),position$:re({top:0,left:0})},playerSize:Ft,isMobile:hi,mobileNotReportControlHidden$:Wo,mobileUnmuteButtonExpanded:re(!1),mobileUnmuteButtonVisible:re(!1),icon3DVideoVisible:re(!1),scrubbingInProgress:Hn,volumeChangingInProgress:Te,is3DVideo:re(!1),currentGridType$:Ti,additionalButtonsDeprecated$:Ct,additionalDesktopControlPanelRightButtons$:hn,additionalSettingsMenuItems$:Ur,additionalContextMenuItems$:Os,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:ko,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:ne,annotationsApi:me,slotsApi:$e},actions:{internal:{preload:On,firstStart:c=>pl(c,!1),play:()=>ul(!1),pause:()=>Qd(!1),togglePlay:fo,toggleMuted:Do,openSettingsMenu:nr,closeSettingsMenu:Br,openSettingsSubMenu:Zo,closeSettingsSubMenu:hr,setVolume:uo,startVolumeChanging:ye,stopVolumeChanging:xt,setVideoStream:En,setAudioStream:Xr,setQuality:vn,setTrafficSavingEnabled:Jo,setHighQualityEnabled:Xe,setPlaybackRate:mo,incrementPlaybackRate:Yi,decrementPlaybackRate:Ho,setSubtitle:Ki,toggleSubtitle:Fo,togglePictureInPicture:Su,startScrubbing:Hr,progressScrubbing:ji,completeScrubbing:Fr,toggleChromecast:Kd,switchToActiveLive:Ji,switchFromAdsToVideo:Ri,switchFromVideoToAds:bs,skipAd:ri,setLiveWaitingStart:cl,setLiveWaitingRecover:zd,setLiveWaitingRecord:bu,getDebugTextData:Wd,getTraceTextData:$u,getDebugPanelData:qd,getVideoElement:Ca,seekTime:(c,x,B)=>gi(c,x,B),clearDelayedBufferingCheckTimeout:In,seekEpisodeStartTime:Uo,seekToPercent:en,getNextEpisode:ml,seekToNextEpisode:yu,getPrevEpisode:vl,seekToPrevEpisode:xu,startLogging:Jt,stopLogging:Wi,startCameraManualRotation:Ni,stopCameraManualRotation:ao,moveCameraFocusPX:qi,holdCamera:ot,releaseCamera:bt,getVideoEpisodes:fl,getPreviewThumbsData:wu,downloadVideo:or,addLanguage:Mp,setLanguage:Ot,nextMovie:it,videoRotate:Qe,correctSeekTimeToInteractive:$s,replayInteractive:M,setLooped:_r,reportProblem:Ci,setAutoplayNextEnabled:Jr,setTimerNextVideoRunning:Nr,prevVideoClick:br,nextVideoClick:ht,nextVideoAnnouncementShow:Oo,nextVideoAnnouncementClick:po,nextVideoAnnouncementAuto:Gi,nextVideoAnnouncementCancel:Xo},external:{firstStart:c=>pl(c,!0),play:()=>ul(!0),pause:()=>Qd(!0),stop:()=>Gd(!0),seekTime:c=>Hi(c),seekEpisodeStartTime:c=>Dr(c),setPlaybackRate:c=>Or(c),setAutoQualityLimits:c=>$r(c),setMuted:Eo,toggleSubtitle:Fo,setVolume:uo,returnFocusToEpisodes:on,updateAdditionalSettingsItem:Un,addAdditionalSettingsItem:xr,removeAdditionalSettingsItem:vo,updateAdditionalContextItem:$t,addAdditionalContextItem:_t,removeAdditionalContextItem:Xi,updateAdditionalButton:yr,addAdditionalButton:Qi,removeAdditionalButton:Ii,setLiveLowLatency:_n,hideControls:()=>Oi(!1),showControls:()=>Oi(!0)}},callbacks:l,setUiCallbacks:c=>{Ce={...c}},getAdmanWrapper:()=>ee,getLogger:()=>Ge,getPlayer:()=>N,destroy:F1};return kt};function Ar(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),a=o&&!!n&&!!(n.right-n.left),{top:r,left:d,bottom:l,right:p}=ms(e[i],t||void 0);return{left:a?d:0,right:a?p:0,top:a?r:0,bottom:a?l:0,isDisplayed:a}}var z2=["disabledControls$","additionalButtons"],W2=["interactiveTimeIndicator"],nl=(t,e,i,o)=>{if(t){for(let[n,a]of Object.entries(e))if(!z2.includes(n)){let r=o||W2.includes(n);a.set(Ar(t,i,n,r))}}};var eu=async(t,e,i)=>{await _o(),e&&i&&(i.focus(),t.set(!1))};var q2=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function kf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=q2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),$(t,o)}function Pf(t,e){O(e,!0);let[i,o]=De(),n=()=>S(l,"$contextMenuVisible$",i),a=m(e,"disabled",3,!1),r=m(e,"ariaLabel",3,""),d=Ie(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,b=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,_=X(void 0);Ue(()=>{s(_)&&wt(()=>{u.set(s(_))})});let w=I=>{let M=Ls(I),P=Mh(s(_));b.set(P),p.set(M),l.set(!n())},y=()=>{f.set(!0)},C=()=>{f.set(!1)},T=v(()=>n()?"opened":"");Vt(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return r()},click:w,focus:y,blur:C,get ariaExpanded(){return n()},role:"button",get ref(){return s(_)},set ref(I){D(_,ve(I))},children:(I,M)=>{kf(I,{})},$$slots:{default:!0}}),H(),o()}var K2=t=>{t.stopPropagation()},Q2=L("<div><!> <div></div> <div></div></div>"),G2={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;}
231
231
 
232
232
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
233
233
  }
@@ -252,16 +252,17 @@ Try switching the\xA0quality to\xA0Auto.`},dh=i_;var es=new Map;es.set(uh.EN,dh)
252
252
  opacity: 0;
253
253
  }
254
254
  }.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);
255
- 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 dd(t,e){var K;F(e,!0),q(t,N2);let[i,o]=De(),n=()=>S(C,"$isMobile",i),a=()=>S(P,"$areControlsVisible",i),s=()=>S(V,"$currentGridType$",i),d=()=>S(I,"$isInteractiveTime$",i),l=()=>S(b,"$interactiveControlsOpacity$",i),p=()=>S(M,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),y=m(e,"ref",15,void 0),u=X(void 0),_=Ce(),w=to(),{interactiveControlsOpacity$:b}=w,C=_.ui.isMobile,T=_.ui.isFullscreen,I=_.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,P=_.ui.controlsVisible,k=(K=_.callbacks)==null?void 0:K.onInteractiveTimeIndicatorClick,V=_.ui.currentGridType$,W=v(()=>!n()&&a()),j=v(()=>xs(s(),"s")),H=v(()=>!d()||!!l()||r(W)),Q=X(!1);Fe(()=>{D(Q,fe(r(H)))});let ie=()=>{D(Q,!0)},Z=()=>{var he;se(),(he=r(u))==null||he.addEventListener("animationiteration",ie,{once:!0})},se=()=>{var he;D(Q,!1),(he=r(u))==null||he.removeEventListener("animationiteration",ie)},ce=he=>{M.set(he)},Ee=v(()=>p()&&!r(H));Fe(()=>{p()?Z():se()});let Me=()=>{r(H)||(M.set(!0),k==null||k())};mn(()=>{M.clearTimeout(),se()});let ge=()=>{M.set(!1)},ae=z("tooltip_interactive_interaction_time_indicator");var Pe=B2();let ne;Pe.__mousemove=[R2],Pe.__click=Me;var N=h(Pe);Io(N,{tooltipContent:ae,get tooltipActive(){return r(Ee)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ce,get ref(){return y()},set ref(he){y(he)},children:(he,ee)=>{ed(he,{completed:!0})},$$slots:{default:!0}});var ue=A(N,2);let _e;gt(ue,he=>y(he),()=>y());var ze=A(ue,2);let re;gt(ze,he=>D(u,he),()=>r(u)),g(Pe),E((he,ee,He)=>{ne=J(Pe,1,"interactive-episode-icon-animated svelte-od3veb",null,ne,he),_e=J(ue,1,"ref-block svelte-od3veb",null,_e,ee),re=J(ze,1,"pulse svelte-od3veb",null,re,He)},[()=>({mobile:n(),fullscreen:f(),invisible:r(H),"icon-small":r(j)}),()=>({hidden:r(H)}),()=>({paused:r(Q)})]),Tt("mouseleave",Pe,ge),$(t,Pe),U(),o()}st(["mousemove","click"]);function Zc(t,e){F(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),a=m(e,"ref",15);Io(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 a()},set ref(s){a(s)},children:(s,d)=>{var l=Oe();let p=v(()=>e.buttonComponent);var f=pe(l);yi(f,()=>r(p),(y,u)=>{u(y,Jr(()=>{var _;return(_=e.buttonComponentProps)!=null?_:{}}))}),$(s,l)},$$slots:{default:!0}}),U()}var ns={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var O2=ye('<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 Tf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=O2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}function ws(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),a=m(e,"height",3,"24"),s=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");Tf(t,{get style(){return r(s)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var H2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),F2=L("<!> <!>",1),U2={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 aa(t,e){F(e,!0),q(t,U2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=Ce().ui.t,d=v(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=v(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),p=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Vt(t,{get className(){return r(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(f){i(f)},children:(f,y)=>{var u=F2(),_=pe(u);{var w=T=>{var I=H2();$(T,I)};R(_,T=>{o()&&T(w)})}var b=A(_,2);let C=v(()=>e.type==="prev");ws(b,{get isMobile(){return o()},get isPrev(){return r(C)}}),$(f,u)},$$slots:{default:!0}}),U()}var z2=ye('<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 cd(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=z2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),$(t,o)}import{noop as W2}from"@vkontakte/videoplayer-shared/es2018";var q2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),K2=L("<!> <div><!></div>",1),Q2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function tl(t,e){F(e,!0),q(t,Q2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),a=m(e,"className",3,""),s=m(e,"click",3,W2),d=z("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Vt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Br.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var y=K2(),u=pe(y);{var _=T=>{var I=q2();$(T,I)};R(u,T=>{o()&&T(_)})}var w=A(u,2);let b;var C=h(w);cd(C,{}),g(w),E(T=>b=J(w,1,"svelte-1ot3duq",null,b,T),[()=>({mobile:o()})]),$(p,y)},$$slots:{default:!0}}),U()}var G2=ye('<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 xr(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"),a=m(e,"fill",3,"var(--btn-color)");var s=G2(),d=h(s);g(s),E(()=>{Ne(s,"width",i()),Ne(s,"height",o()),Ne(s,"viewBox",n()),Ne(d,"fill",a())}),$(t,s)}var Y2=ye('<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 rs(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"),a=m(e,"fill",3,"var(--btn-color)");var s=Y2(),d=h(s);g(s),E(()=>{Ne(s,"width",i()),Ne(s,"height",o()),Ne(s,"viewBox",n()),Ne(d,"fill",a())}),$(t,s)}import{noop as j2}from"@vkontakte/videoplayer-shared/es2018";var Z2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),X2=L("<!> <div><!></div>",1),J2={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 il(t,e){F(e,!0),q(t,J2);let[i,o]=De(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=to(),s=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),l=m(e,"isPlaying",3,!1),p=m(e,"disabled",3,!1),f=m(e,"className",3,""),y=m(e,"click",3,j2),_=Ce().ui.t,{toggle:w}=a,b=v(()=>w),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),I=v(()=>r(T)?_("tooltip_pause"):_("tooltip_play")),M=v(()=>r(T)?rs:xr),P=v(()=>`${d()?"btn-m--play":""} ${f()}`),k=v(()=>r(C)?r(b):y());Vt(t,{get className(){return r(P)},testId:"btn-play",get click(){return r(k)},get disabled(){return p()},get ariaLabel(){return r(I)},get ariaKeyShortCut(){return Br.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,W)=>{var j=X2();let H=v(()=>r(M));var Q=pe(j);{var ie=Ee=>{var Me=Z2();$(Ee,Me)};R(Q,Ee=>{d()&&Ee(ie)})}var Z=A(Q,2);let se;var ce=h(Z);yi(ce,()=>r(H),(Ee,Me)=>{Me(Ee,{})}),g(Z),E(Ee=>se=J(Z,1,"svelte-1ot3duq",null,se,Ee),[()=>({mobile:d()})]),$(V,j)},$$slots:{default:!0}}),U(),o()}var ey=ye('<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 If(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=ey();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),$(t,o)}function ud(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=z("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Vt(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{If(d,{})},$$slots:{default:!0}}),U()}var ty=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),iy={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function pd(t,e){F(e,!0),q(t,iy);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),a=m(e,"ref",15,void 0),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Vt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,y)=>{var u=ty(),_=h(u);let w;var b=h(_);{var C=I=>{xr(I,{width:"14",height:"14",fill:"#000"})},T=I=>{rs(I,{width:"14",height:"14",fill:"#000"})};R(b,I=>{n()?I(C):I(T,!1)})}g(_),g(u),E(I=>w=J(_,1,"toggler svelte-et3q1q",null,w,I),[()=>({enabled:n()})]),$(f,u)},$$slots:{default:!0}}),U(),o()}var oy=ye('<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 kf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=oy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{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})),$(t,o)}function fd(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=z("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Vt(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{kf(d,{})},$$slots:{default:!0}}),U()}var ny=ye('<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 Ef(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=ny();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}var ry={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Pf(t,e){q(t,ry);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Ef(t,{get"data-testid"(){return r(o)}})}function md(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=m(e,"graphIsOpened",3,!1),d=Ce().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=v(()=>o()?"hidden":"");Vt(t,{get className(){return r(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,y)=>{let u=v(()=>!!a());Pf(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),U()}import{PlaybackState as Gh}from"@vkontakte/videoplayer-core/es2018";function vd(t,e){F(e,!0);let[i,o]=De(),n=()=>S(p,"$playbackState$",i),a=m(e,"isMobile",3,!1),s=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),l=Ce(),p=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,y=l.actions.internal.togglePlay,u=v(()=>()=>{if(!s()){f();return}n()===Gh.PAUSED&&y()}),_=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),b=v(()=>s()&&n()===Gh.PLAYING);Vt(t,{get className(){return r(_)},get testId(){return r(w)},get disabled(){return r(b)},get ariaLabel(){return d()},get click(){return r(u)},children:(C,T)=>{Hl(C,{get isActive(){return s()}})},$$slots:{default:!0}}),U(),o()}import{noop as Yh}from"@vkontakte/videoplayer-shared/es2018";var sy=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),ay=L('<img class="icon" aria-hidden="true">');function la(t,e){"use strict";let i=X(!1),o=()=>{D(i,!0)};var n=Oe(),a=pe(n);{var s=l=>{var p=sy();$(l,p)},d=l=>{var p=ay();E(()=>Ne(p,"src",e.icon)),Tt("error",p,o),Fs(p),$(l,p)};R(a,l=>{r(i)?l(s):l(d,!1)})}$(t,n)}function Af(t,e){F(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Yh),n=m(e,"ref",15),a=v(()=>o()===Yh),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");Io(t,{get disabled(){return r(s)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(l){n(l)},children:(l,p)=>{let f=v(()=>{var y;return(y=e.testId)!=null?y:e.id});Vt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(f)},children:(y,u)=>{la(y,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var jh=t=>!!t.buttonComponent;var ss={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var uy=L('<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),py={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 Lf(t,e){var Ts,ba;F(e,!0),q(t,py);let[i,o]=De(),n=()=>S(G,"$disabledControls$",i),a=()=>S(Lt,"$adPlaybackState",i),s=()=>S(ft,"$playbackState$",i),d=()=>S(bo,"$currentSubtitle$",i),l=()=>S(ri,"$isEnded$",i),p=()=>S(rr,"$currentGridType$",i),f=()=>S(bi,"$isLive$",i),y=()=>S(sn,"$chromecastState$",i),u=()=>S(ki,"$isPictureInPictureActive",i),_=()=>S(zi,"$pictureInPictureType$",i),w=()=>S(hn,"$availableSubtitlesList$",i),b=()=>S(Ei,"$contextMenuOpenedByKeyboard$",i),C=()=>S(_i,"$showContextMenuBtn$",i),T=()=>S(ti,"$playerSize",i),I=()=>S(Gt,"$isRewindableLive$",i),M=()=>S(et,"$isActiveLive$",i),P=()=>S(xo,"$graphIsOpened$",i),k=()=>S(Xt,"$contextMenuVisible$",i),V=()=>S(no,"$isFullscreen",i),W=()=>S(ko,"$autoplayNextEnabled",i),j=()=>S(r(Kn),"$prevButton",i),H=()=>S(r(Qn),"$replayButton",i),Q=()=>S(r(nt),"$playButton",i),ie=()=>S(r(yt),"$nextButton",i),Z=()=>S(r(wi),"$playPrevChapterButton",i),se=()=>S(r(wo),"$seekToInteractiveButton",i),ce=()=>S(r(lo),"$interactiveGraphButton",i),Ee=()=>S(r(So),"$liveButton",i),Me=()=>S(r(Co),"$time",i),ge=()=>S(r(ct),"$episodes",i),ae=()=>S(r(qt),"$vkLogo",i),Pe=()=>S(r(oi),"$volume",i),ne=()=>S(r(fi),"$subtitles",i),N=()=>S(r(Qi),"$settings",i),ue=()=>S(r(co),"$context",i),_e=()=>S(r(Wi),"$fullscreen",i),ze=()=>S(r(Oi),"$chromecast",i),re=()=>S(ro,"$additionalDesktopControlPanelRightButtons$",i),K=()=>S(Oo,"$isInteractiveTime$",i),he=()=>S(Mt,"$settingsMenuVisible",i),ee=()=>S(kr,"$settingButtonRef$",i),He=()=>S(ai,"$startedByKeyboard$",i),je=()=>S(Bt,"$isAudioAvailable$",i),we=()=>S(Rt,"$fakeIsPlaying$",i),Ve=()=>S(_n,"$seekToInteractiveDisabledTooltip$",i),Ie=()=>S(Je,"$adPosition",i),Ue=()=>S(ut,"$position$",i),lt=()=>S(pi,"$adDuration",i),dt=()=>S(bt,"$duration$",i),it=m(e,"playerControlsWrapperRef",15,void 0),It=m(e,"playerControlsRef",15,void 0),ht=m(e,"isAds",3,!1),Qt=m(e,"logoTargetUrl",3,""),Zt=m(e,"isOneVideoPlaylist",3,!1),At=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Rt}=to(),O=Ce(),be=to(),oe=Wt(),Be=O.actions.internal.toggleMuted,Ke=O.actions.internal.togglePlay,Ye=O.actions.internal.pause,Le=O.actions.internal.toggleSubtitle,tt=(Ts=O.callbacks)==null?void 0:Ts.onAudioDoesNotExistHint,Xe=(ba=O.callbacks)==null?void 0:ba.onAudioDisabledHint,bt=O.state.duration$,ut=O.state.positionWithScrubbing$,ft=O.state.playbackState$,Bt=O.state.isAudioAvailable$,Qe=O.state.isAudioDisabled,ri=O.state.isEnded$,bi=O.state.isLive$,et=O.state.isActiveLive$,Gt=O.state.isRewindableLive$,{isActive$:ki,type$:zi}=be.pictureInPicture$,Mt=O.ui.settingsMenu.visible$,$t=O.ui.settingsMenu.openedByBtnKeyboard$,Nt=O.ui.controls,oo=O.actions.internal.getVideoEpisodes(),sn=O.state.chromecastState$,hn=O.state.availableSubtitlesList$,bo=O.state.currentSubtitle$,G=Nt.disabledControls$,Xt=O.ui.contextMenu.visible$,_i=O.ui.contextMenu.showContextMenuBtn$,Ei=O.ui.contextMenu.openedByBtnKeyboard$,ai=O.ui.startedByKeyboard$,mt=O.ui.t,pi=O.ads.duration,Je=O.ads.position,Lt=O.ads.playbackState,no=O.ui.isFullscreen,ti=O.ui.playerSize,rr=O.ui.currentGridType$,ro=O.ui.additionalDesktopControlPanelRightButtons$,ko=O.ui.autoplayNextEnabled$,li=O.actions.internal.getVideoElement,St=O.actions.internal.replayInteractive,Pi=O.actions.internal.prevVideoClick,Eo=O.actions.internal.nextVideoClick,ui=O.state.isInteractive,Oo=O.state.isInteractiveTime$,Vi=O.state.showInteractiveGraph,$o=O.state.showSeekToInteractive,yo=O.state.showPlayPrevChapter,Hn=O.state.showInteractiveTimeIndicator,Ri=O.state.playPrevChapterDisabledTooltip,_n=be.seekToInteractiveDisabledTooltip$,xo=be.graphIsOpened$,Po=oe.features.interactiveResponsiveUi,bn=v(()=>n().has("EPISODE_BUTTON")),Sr=v(()=>n().has("GRAPH_BUTTON")),sr=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Fn=v(()=>n().has("PLAY_BUTTON")),$n=v(()=>n().has("REPLAY_BUTTON")),yn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Un=()=>O.actions.internal.toggleChromecast(),so=v(()=>ht()?a()==="playing":s()===Mf.PLAYING),ot=v(()=>d().value!=="off"),xn=v(()=>l()&&!ht()||ui),Ho=v(()=>Po?r(xn)&&Ui(p(),"m"):r(xn)),wn=v(()=>!l()||ui||ht()),Sn=v(()=>Ui(p(),"m")),Ao=v(()=>e.showNextPrevButtons&&Ui(p(),"m")&&!ht()&&e.nextButtonActive),ar=v(()=>e.showNextPrevButtons&&Ui(p(),"m")&&!ht()&&e.prevButtonActive),Fo=v(()=>!ht()&&!!f()),Cn=v(()=>y()!==Zh.NOT_AVAILABLE&&!(u()&&_()===1)&&Ui(p(),"m")&&!ui),Uo=v(()=>e.showAutoplayNext&&!Zt()&&Ui(p(),"s")),ao=v(()=>w().length>0&&Ui(p(),"m")),Bi=v(()=>b()||C()),Tn=v(()=>Ui(p(),"s")&&!ht()),Mo=v(()=>!e.logoHidden&&!ht()),zo=v(()=>oe.features.fullscreen&&(e.logoHidden||Ui(p(),Po?"xs":"s"))&&!(u()&&_()===1)&&(ui?At():!0)),Lo=v(()=>(!f()||ht())&&!(oe.features.interactiveHideTime&&ui)),In=v(()=>T().width>100),Ni=v(()=>Vi&&Ui(p(),"m")),Di=v(()=>Po?$o&&Ui(p(),"s"):$o),lr=v(()=>Po?yo&&Ui(p(),"s"):yo),Vo=v(()=>!ht()&&!f()&&!!(oo!=null&&oo.length)&&r(Sn)&&!r(bn)),zn=v(()=>!I()||!!M()),kn=v(()=>P()?mt("tooltip_interactive_graph_on"):mt("tooltip_interactive_graph_off")),Wn=v(()=>k()?mt("tooltip_context_menu_close"):mt("tooltip_context_menu_open")),dr=(at,xt)=>at?xt&&xt===Mf.PAUSED?mt("tooltip_play"):"":mt("tooltip_live"),an=v(()=>dr(r(zn),s())),cr=v(()=>oe.logoType==="vk_video"?mt("tooltip_vk_video_logo"):mt("tooltip_vk_logo")),ur=v(()=>r(ot)?mt("tooltip_subtitles_on"):mt("tooltip_subtitles_off")),qn=v(()=>V()?mt("tooltip_fullscreen_on"):mt("tooltip_fullscreen_off")),Cr=v(()=>y()===Zh.CONNECTED?mt("tooltip_chromecast_on"):mt("tooltip_chromecast_off")),Tr=v(()=>W()?mt("tooltip_autoplay_on"):mt("tooltip_autoplay_off")),En=X(0),Jt=fe({}),Kn=v(()=>Nt.prevButton),Qn=v(()=>Nt.replayButton),nt=v(()=>Nt.playButton),yt=v(()=>Nt.nextButton),wi=v(()=>Nt.playPrevChapterButton),wo=v(()=>Nt.seekToInteractiveButton),lo=v(()=>Nt.interactiveGraphButton),So=v(()=>Nt.liveButton),Co=v(()=>Nt.time),ct=v(()=>Nt.episodes),qt=v(()=>Nt.vkLogo),oi=v(()=>Nt.volume),fi=v(()=>Nt.subtitles),Qi=v(()=>Nt.settings),co=v(()=>Nt.context),Wi=v(()=>Nt.fullscreen),Oi=v(()=>Nt.chromecast),Si=v(()=>({prevButton:j()?j().right-j().left:0,replayButton:H()?H().right-H().left:0,playButton:Q()?Q().right-Q().left:0,nextButton:ie()?ie().right-ie().left:0,playPrevChapterButton:Z()?Z().right-Z().left:0,seekToInteractiveButton:se()?se().right-se().left:0,interactiveGraphButton:ce()?ce().right-ce().left:0,liveButton:Ee()?Ee().right-Ee().left:0,time:Me()?Me().right-Me().left:0,episodes:ge()?ge().right-ge().left:0,vkLogo:ae()?ae().right-ae().left:0,volume:Pe()?Pe().right-Pe().left:0,subtitles:ne()?ne().right-ne().left:0,settings:N()?N().right-N().left:0,context:ue()?ue().right-ue().left:0,fullscreen:_e()?_e().right-_e().left:0,chromecast:ze()?ze().right-ze().left:0,additionalButtons:re().length?re().reduce(at=>[...at,40],[]):[]})),Wo=X(0);Fe(()=>{(!r(Wo)||r(Wo)<r(Si).time)&&wt(()=>D(Wo,fe(r(Si).time)))});let Pn=X(!1);Fe(()=>{let at=0;r(Vo)&&(Ui(p(),"xl")?at=r(Si).time:at=60);let xt=r(Si).prevButton+r(Si).playButton+r(Si).nextButton+r(Si).seekToInteractiveButton+r(Si).interactiveGraphButton+r(Si).liveButton+r(Wo)+at;D(Pn,fe(r(Lo)&&r(En)>=xt))});let Ir=v(()=>r(Pn)&&Ui(p(),"m")),Gn=cy(el,260);Fe(()=>{T(),K(),Gn(li(),Nt,Jt,e.showControls)});let kr=le();Fe(()=>{he(),ee()&&wt(()=>Qa(ee(),he(),$t))});let ln;Fe(()=>{He(),wt(()=>jc(ai,He(),ln))});function Yn(){$s({isAudioDisabled:Qe,isAudioAvailable:je(),isAds:ht(),audioIsNotExistHintCallback:tt,audioDisabledHintCallback:Xe})&&Be()}let jn=ui?St:Ke,Hr=v(()=>we()!==null),Zn=v(()=>r(Hr)?we():r(so)),qo=v(()=>r(Zn)?mt("tooltip_pause"):mt("tooltip_play")),pr=mt("tooltip_episodes"),Ko=v(()=>{var at,xt,qi,Go;return r(ar)?{id:"prevButton",type:"desktop-control-panel-left",weight:ns.prevButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Pi.bind(null,!0)},tooltipEnabled:!((xt=(at=O.callbacks)==null?void 0:at.uiInfo)!=null&&xt.onPrevButtonMouseEnter)&&!((Go=(qi=O.callbacks)==null?void 0:qi.uiInfo)!=null&&Go.onPrevButtonMouseLeave),mouseEnter:()=>{var Ki,ci,Ci;(Ci=(ci=(Ki=O.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:ci.onPrevButtonMouseEnter)==null||Ci.call(ci,sa(li(),Jt,"prevButton",e.showControls))},mouseLeave:()=>{var Ki,ci,Ci;(Ci=(ci=(Ki=O.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:ci.onPrevButtonMouseLeave)==null||Ci.call(ci,sa(li(),Jt,"prevButton",e.showControls))},tooltipText:mt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),fr=v(()=>r(Ho)?{id:"replayButton",type:"desktop-control-panel-left",weight:ns.replayButton,buttonComponent:tl,buttonComponentProps:{disabled:r($n),click:jn},tooltipText:mt("tooltip_restart"),disabled:r($n)}:void 0),Fr=v(()=>r(wn)?{id:"playButton",type:"desktop-control-panel-left",weight:ns.playButton,buttonComponent:il,buttonComponentProps:{disabled:r(Fn),isPlaying:r(so),click:Ke},tooltipText:r(qo),disabled:r(Fn)}:void 0),Er=v(()=>{var at,xt,qi,Go;return r(Ao)?{id:"nextButton",type:"desktop-control-panel-left",weight:ns.nextButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Eo.bind(null,!0)},tooltipEnabled:!((xt=(at=O.callbacks)==null?void 0:at.uiInfo)!=null&&xt.onNextButtonMouseEnter)&&!((Go=(qi=O.callbacks)==null?void 0:qi.uiInfo)!=null&&Go.onNextButtonMouseLeave),mouseEnter:()=>{var Ki,ci,Ci;(Ci=(ci=(Ki=O.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:ci.onNextButtonMouseEnter)==null||Ci.call(ci,sa(li(),Jt,"nextButton",e.showControls))},mouseLeave:()=>{var Ki,ci,Ci;(Ci=(ci=(Ki=O.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:ci.onNextButtonMouseLeave)==null||Ci.call(ci,sa(li(),Jt,"nextButton",e.showControls))},tooltipText:mt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Pr=v(()=>ui&&r(lr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ns.playPrevChapterButton,buttonComponent:ud,buttonComponentProps:{disabled:r(yn),click:e.playPrevChapter},tooltipText:mt("tooltip_interactive_go_back"),disabledTooltipContent:mt(Ri),disabled:r(yn)}:void 0),Ze=v(()=>ui&&r(Di)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ns.seekToInteractiveButton,buttonComponent:fd,buttonComponentProps:{disabled:r(sr),click:e.seekToInteractive},tooltipText:mt("tooltip_interactive_seek"),disabled:r(sr),disabledTooltipContent:mt(Ve())}:void 0),Dt=v(()=>ui&&r(Ni)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ns.interactiveGraphButton,buttonComponent:md,buttonComponentProps:{disabled:r(Sr),click:xo.toggle,graphIsOpened:P()},tooltipText:r(kn)}:void 0),Ai=v(()=>r(Fo)?{id:"liveButton",type:"desktop-control-panel-left",weight:ns.liveButton,buttonComponent:vd,buttonComponentProps:{isLiveActive:r(zn),ariaLabel:r(an)},tooltipText:r(an),disabled:r(zn)&&s()===Mf.PLAYING}:void 0),Qo=v(()=>[r(Ko),r(fr),r(Fr),r(Er),r(Pr),r(Ze),r(Dt),r(Ai)].filter(at=>!!at).sort(Xs)),Ro=v(()=>r(Mo)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ss.vkLogo,buttonComponent:id,buttonComponentProps:{targetUrl:Qt(),logoClickable:e.logoClickable,click:Ye},tooltipText:r(cr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),An=v(()=>r(Uo)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ss.autoplayNext,buttonComponent:pd,tooltipText:r(Tr)}:void 0),dn=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:ss.volume,buttonComponent:sf,buttonComponentProps:{click:Yn,isAds:ht()}})),Se=v(()=>r(ao)?{id:"subtitles",type:"desktop-control-panel-right",weight:ss.subtitles,buttonComponent:ef,buttonComponentProps:{isSubtitlesEnabled:r(ot),click:Le},tooltipText:r(ur)}:void 0),pt=v(()=>r(Tn)?{id:"settings",type:"desktop-control-panel-right",weight:ss.settings,buttonComponent:Xa,buttonComponentProps:{ref$:kr},tooltipText:he()?void 0:mt("tooltip_settings_off")}:void 0),Ut=v(()=>oe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ss.context,buttonComponent:Cf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:mt("aria_label_context_menu")},className:r(Bi)?"":"out-of-view",tooltipText:r(Wn)}:void 0),si=v(()=>r(zo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ss.fullscreen,buttonComponent:td,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(qn)}:void 0),Gi=v(()=>r(Cn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ss.chromecast,buttonComponent:od,buttonComponentProps:{state:y(),click:Un},tooltipText:r(Cr)}:void 0),Re=v(()=>[r(Ro),r(An),r(dn),r(Se),r(pt),r(Ut),r(si),r(Gi),...re()].filter(at=>!!at).sort(Xs));var vt=uy(),ni=pe(vt);let Yi;var uo=h(ni);let Ur=v(()=>!r(In));na(uo,{get isHidden(){return r(Ur)},get isAds(){return ht()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Jt.timeline},set ref(at){Jt.timeline=at}});var Mi=A(uo,2),Xn=h(Mi),Cs=h(Xn);$i(Cs,17,()=>r(Qo),at=>at.id,(at,xt)=>{Zc(at,{get buttonComponent(){return r(xt).buttonComponent},get buttonComponentProps(){return r(xt).buttonComponentProps},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(xt).disabled},get className(){return r(xt).className},get tooltipEnabled(){return r(xt).tooltipEnabled},get mouseEnter(){return r(xt).mouseEnter},get mouseLeave(){return r(xt).mouseLeave},get ref(){return Jt[r(xt).id]},set ref(qi){Jt[r(xt).id]=qi}})});var Jn=A(Cs,2);{var va=at=>{let xt=v(()=>ht()?Ie():Ue()),qi=v(()=>ht()?lt():dt());Jl(at,{isMobile:!1,get showDuration(){return r(Ir)},get position(){return r(xt)},get duration(){return r(qi)},get ref(){return Jt.time},set ref(Go){Jt.time=Go}})};R(Jn,at=>{r(Lo)&&at(va)})}var sl=A(Jn,2);let ga=v(()=>!r(Vo));Io(sl,{className:"w-max",get disabled(){return r(ga)},tooltipContent:pr,get ref(){return Jt.episodes},set ref(at){Jt.episodes=at},children:(at,xt)=>{var qi=Oe(),Go=pe(qi);{var Ki=ci=>{rd(ci,{get position(){return Ue()},get duration(){return dt()},timeCodes:oo})};R(Go,ci=>{r(Vo)&&ci(Ki)})}$(at,qi)},$$slots:{default:!0}}),g(Xn);var ha=A(Xn,2);$i(ha,21,()=>r(Re),at=>at.id,(at,xt)=>{var qi=Oe(),Go=pe(qi);{var Ki=Ci=>{Zc(Ci,{get buttonComponent(){return r(xt).buttonComponent},get buttonComponentProps(){return r(xt).buttonComponentProps},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(xt).disabled},get className(){return r(xt).className},get ref(){return Jt[r(xt).id]},set ref(Is){Jt[r(xt).id]=Is}})},ci=Ci=>{let Is=v(()=>!!r(xt).disabled);Af(Ci,{get id(){return r(xt).id},get testId(){return r(xt).testId},get icon(){return r(xt).icon},get ariaLabel(){return r(xt).ariaLabel},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(Is)},get onClick(){return r(xt).onClick},get ref(){return Jt[r(xt).id]},set ref($a){Jt[r(xt).id]=$a}})};R(Go,Ci=>{jh(r(xt))?Ci(Ki):Ci(ci,!1)})}$(at,qi)}),g(ha),g(Mi),gt(Mi,at=>It(at),()=>It()),g(ni),gt(ni,at=>it(at),()=>it());var _a=A(ni,2);{var al=at=>{dd(at,{get ref(){return Jt.interactiveTimeIndicator},set ref(xt){Jt.interactiveTimeIndicator=xt}})};R(_a,at=>{Hn&&at(al)})}E(at=>Yi=J(ni,1,"wrapper-bottom svelte-f6e8ix",null,Yi,at),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Rr(Xn,"clientWidth",at=>D(En,at)),$(t,vt),U(),o()}import{ChromecastState as Jh,PlaybackState as e1}from"@vkontakte/videoplayer-core/es2018";import{noop as Xh}from"@vkontakte/videoplayer-shared/es2018";var fy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),my=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),vy={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 Vf(t,e){q(t,vy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Xh),n=v(()=>o()===Xh),a=v(()=>r(n)||i()),s=X(!1),d=()=>{D(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Vt(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(p,f)=>{var y=Oe(),u=pe(y);{var _=b=>{var C=fy();$(b,C)},w=b=>{var C=my();E(()=>Ne(C,"src",e.iconUrl)),Tt("error",C,d),Fs(C),$(b,C)};R(u,b=>{r(s)?b(_):b(w,!1)})}$(p,y)},$$slots:{default:!0}})}var gy=ye('<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 Rf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=gy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),$(t,o)}import{noop as hy}from"@vkontakte/videoplayer-shared/es2018";var _y=L('<span class="text svelte-6gmlbk"> </span>'),by=L('<div aria-hidden="true"><!> <!></div>'),$y={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function Xc(t,e){F(e,!0),q(t,$y);let i=m(e,"expanded",3,!1),o=m(e,"click",3,hy),n=m(e,"ref",15,void 0),s=Ce().ui.t,d=s("aria_label_volume"),l=v(()=>i()?ys:Rf),p=v(()=>i()?"btn-mobile-unmuted":"btn-mobile-muted");Vt(t,{get testId(){return r(p)},get click(){return o()},ariaLabel:d,role:"switch",get ref(){return n()},set ref(f){n(f)},children:(f,y)=>{var u=by();let _=v(()=>r(l)),w;var b=h(u);yi(b,()=>r(_),(I,M)=>{M(I,{})});var C=A(b,2);{var T=I=>{var M=_y(),P=h(M,!0);g(M),E(k=>me(P,k),[()=>s("mobile_unmute")]),$(I,M)};R(C,I=>{i()&&I(T)})}g(u),E(I=>w=J(u,1,"container svelte-6gmlbk",null,w,I),[()=>({expanded:i()})]),$(f,u)},$$slots:{default:!0}}),U()}var yy=ye('<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 Bf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=yy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(3),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),$(t,o)}var xy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
256
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Nf(t,e){q(t,xy);let i=m(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");Bf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as wy}from"@vkontakte/videoplayer-shared/es2018";function Df(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,wy),a=z("menu_pip");Vt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{Nf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}import{debounceFn as Sy}from"@vkontakte/videoplayer-shared/es2018";var Cy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},Ty=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Iy=L("<div><!></div>"),ky=L("<div><!></div>"),Ey=L("<div><!></div>"),Py=L("<!> <!> <!>",1),Ay=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),My=L("<div><!></div>"),Ly=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),Vy=L("<!> <!> <div><!></div>",1),Ry=L('<div aria-hidden="true">\xB7</div> <!>',1),By=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Ny={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {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-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {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-1afsgkw {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-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
257
- .wrapper-middle-left-second.svelte-1afsgkw,
258
- .wrapper-middle-right.svelte-1afsgkw {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-1afsgkw {left:12px;}.wrapper-middle-left-second.svelte-1afsgkw {left:64px;}.wrapper-middle-right.svelte-1afsgkw {right:12px;}.controls.svelte-1afsgkw {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;}.controls.svelte-1afsgkw > *:not(:first-child) {margin-left:8px;}.hidden.svelte-1afsgkw {visibility:hidden;opacity:0;}.controls-hidden.svelte-1afsgkw {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1afsgkw {transition:none;}.overlay-mobile.svelte-1afsgkw {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
255
+ 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 gd(t,e){var me;O(e,!0),W(t,G2);let[i,o]=De(),n=()=>S(C,"$isMobile",i),a=()=>S(P,"$areControlsVisible",i),r=()=>S(R,"$currentGridType$",i),d=()=>S(I,"$isInteractiveTime$",i),l=()=>S(y,"$interactiveControlsOpacity$",i),p=()=>S(M,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),b=m(e,"ref",15,void 0),u=X(void 0),_=Ie(),w=ro(),{interactiveControlsOpacity$:y}=w,C=_.ui.isMobile,T=_.ui.isFullscreen,I=_.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,P=_.ui.controlsVisible,E=(me=_.callbacks)==null?void 0:me.onInteractiveTimeIndicatorClick,R=_.ui.currentGridType$,z=v(()=>!n()&&a()),q=v(()=>Bs(r(),"s")),U=v(()=>!d()||!!l()||s(z)),Y=X(!1);Ue(()=>{D(Y,ve(s(U)))});let se=()=>{D(Y,!0)},Q=()=>{var $e;de(),($e=s(u))==null||$e.addEventListener("animationiteration",se,{once:!0})},de=()=>{var $e;D(Y,!1),($e=s(u))==null||$e.removeEventListener("animationiteration",se)},le=$e=>{M.set($e)},Me=v(()=>p()&&!s(U));Ue(()=>{p()?Q():de()});let Be=()=>{s(U)||(M.set(!0),E==null||E())};wn(()=>{M.clearTimeout(),de()});let ge=()=>{M.set(!1)},ce=F("tooltip_interactive_interaction_time_indicator");var Ae=Q2();let ae;Ae.__mousemove=[K2],Ae.__click=Be;var N=h(Ae);Mo(N,{tooltipContent:ce,get tooltipActive(){return s(Me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return b()},set ref($e){b($e)},children:($e,Z)=>{ad($e,{completed:!0})},$$slots:{default:!0}});var Ge=A(N,2);let ee;tt(Ge,$e=>b($e),()=>b());var We=A(Ge,2);let ne;tt(We,$e=>D(u,$e),()=>s(u)),g(Ae),k(($e,Z,ze)=>{ae=J(Ae,1,"interactive-episode-icon-animated svelte-od3veb",null,ae,$e),ee=J(Ge,1,"ref-block svelte-od3veb",null,ee,Z),ne=J(We,1,"pulse svelte-od3veb",null,ne,ze)},[()=>({mobile:n(),fullscreen:f(),invisible:s(U),"icon-small":s(q)}),()=>({hidden:s(U)}),()=>({paused:s(Y)})]),Tt("mouseleave",Ae,ge),$(t,Ae),H(),o()}lt(["mousemove","click"]);function tu(t,e){O(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),a=m(e,"ref",15);Mo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(r){a(r)},children:(r,d)=>{var l=He();let p=v(()=>e.buttonComponent);var f=he(l);$i(f,()=>s(p),(b,u)=>{u(b,us(()=>{var _;return(_=e.buttonComponentProps)!=null?_:{}}))}),$(r,l)},$$slots:{default:!0}}),H()}var gs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var j2=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Af(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=j2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}function Ns(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),a=m(e,"height",3,"24"),r=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");Af(t,{get style(){return s(r)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var Z2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),X2=L("<!> <!>",1),J2={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 ga(t,e){O(e,!0),W(t,J2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),r=Ie().ui.t,d=v(()=>e.type==="prev"?r("tooltip_previous"):r("tooltip_next")),l=v(()=>e.type==="prev"?r("hotkey_map_item_prev_video_value"):r("hotkey_map_item_next_video_value")),p=v(()=>`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(l)},get ref(){return i()},set ref(f){i(f)},children:(f,b)=>{var u=X2(),_=he(u);{var w=T=>{var I=Z2();$(T,I)};V(_,T=>{o()&&T(w)})}var y=A(_,2);let C=v(()=>e.type==="prev");Ns(y,{get isMobile(){return o()},get isPrev(){return s(C)}}),$(f,u)},$$slots:{default:!0}}),H()}var ey=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function hd(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=ey();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),$(t,o)}import{noop as ty}from"@vkontakte/videoplayer-shared/es2018";var iy=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),oy=L("<!> <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 rl(t,e){O(e,!0),W(t,ny);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),a=m(e,"className",3,""),r=m(e,"click",3,ty),d=F("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Vt(t,{get className(){return s(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return r()},get ariaKeyShortCut(){return Gr.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var b=oy(),u=he(b);{var _=T=>{var I=iy();$(T,I)};V(u,T=>{o()&&T(_)})}var w=A(u,2);let y;var C=h(w);hd(C,{}),g(w),k(T=>y=J(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),$(p,b)},$$slots:{default:!0}}),H()}var ry=Se('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Mr(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"),a=m(e,"fill",3,"var(--btn-color)");var r=ry(),d=h(r);g(r),k(()=>{Ne(r,"width",i()),Ne(r,"height",o()),Ne(r,"viewBox",n()),Ne(d,"fill",a())}),$(t,r)}var sy=Se('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function hs(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"),a=m(e,"fill",3,"var(--btn-color)");var r=sy(),d=h(r);g(r),k(()=>{Ne(r,"width",i()),Ne(r,"height",o()),Ne(r,"viewBox",n()),Ne(d,"fill",a())}),$(t,r)}import{noop as ay}from"@vkontakte/videoplayer-shared/es2018";var ly=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),dy=L("<!> <div><!></div>",1),cy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function sl(t,e){O(e,!0),W(t,cy);let[i,o]=De(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=ro(),r=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),l=m(e,"isPlaying",3,!1),p=m(e,"disabled",3,!1),f=m(e,"className",3,""),b=m(e,"click",3,ay),_=Ie().ui.t,{toggle:w}=a,y=v(()=>w),C=v(()=>n()!==null),T=v(()=>s(C)?n():l()),I=v(()=>s(T)?_("tooltip_pause"):_("tooltip_play")),M=v(()=>s(T)?hs:Mr),P=v(()=>`${d()?"btn-m--play":""} ${f()}`),E=v(()=>s(C)?s(y):b());Vt(t,{get className(){return s(P)},testId:"btn-play",get click(){return s(E)},get disabled(){return p()},get ariaLabel(){return s(I)},get ariaKeyShortCut(){return Gr.KeyK},get ref(){return r()},set ref(R){r(R)},children:(R,z)=>{var q=dy();let U=v(()=>s(M));var Y=he(q);{var se=Me=>{var Be=ly();$(Me,Be)};V(Y,Me=>{d()&&Me(se)})}var Q=A(Y,2);let de;var le=h(Q);$i(le,()=>s(U),(Me,Be)=>{Be(Me,{})}),g(Q),k(Me=>de=J(Q,1,"svelte-1ot3duq",null,de,Me),[()=>({mobile:d()})]),$(R,q)},$$slots:{default:!0}}),H(),o()}var uy=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Mf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=uy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),$(t,o)}function _d(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=F("tooltip_interactive_go_back"),r=v(()=>o()?"hidden":"");Vt(t,{get className(){return s(r)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Mf(d,{})},$$slots:{default:!0}}),H()}var py=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),fy={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 bd(t,e){O(e,!0),W(t,fy);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),a=m(e,"ref",15,void 0),r=Ie(),d=r.ui.autoplayNextEnabled$,l=r.actions.internal.setAutoplayNextEnabled;Vt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,b)=>{var u=py(),_=h(u);let w;var y=h(_);{var C=I=>{Mr(I,{width:"14",height:"14",fill:"#000"})},T=I=>{hs(I,{width:"14",height:"14",fill:"#000"})};V(y,I=>{n()?I(C):I(T,!1)})}g(_),g(u),k(I=>w=J(_,1,"toggler svelte-et3q1q",null,w,I),[()=>({enabled:n()})]),$(f,u)},$$slots:{default:!0}}),H(),o()}var my=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Lf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=my();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{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})),$(t,o)}function $d(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=F("tooltip_interactive_seek"),r=v(()=>o()?"hidden":"");Vt(t,{get className(){return s(r)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Lf(d,{})},$$slots:{default:!0}}),H()}var vy=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Vf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=vy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}var gy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Rf(t,e){W(t,gy);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Vf(t,{get"data-testid"(){return s(o)}})}function yd(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=m(e,"graphIsOpened",3,!1),d=Ie().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=v(()=>o()?"hidden":"");Vt(t,{get className(){return s(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(l)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,b)=>{let u=v(()=>!!a());Rf(f,{get isOpened(){return s(u)}})},$$slots:{default:!0}}),H()}import{PlaybackState as Jh}from"@vkontakte/videoplayer-core/es2018";function xd(t,e){O(e,!0);let[i,o]=De(),n=()=>S(p,"$playbackState$",i),a=m(e,"isMobile",3,!1),r=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),l=Ie(),p=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,b=l.actions.internal.togglePlay,u=v(()=>()=>{if(!r()){f();return}n()===Jh.PAUSED&&b()}),_=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>r()?"btn-live":"btn-live-offset"),y=v(()=>r()&&n()===Jh.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:(C,T)=>{Ql(C,{get isActive(){return r()}})},$$slots:{default:!0}}),H(),o()}import{noop as e1}from"@vkontakte/videoplayer-shared/es2018";var hy=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),_y=L('<img class="icon" aria-hidden="true">');function ha(t,e){"use strict";let i=X(!1),o=()=>{D(i,!0)};var n=He(),a=he(n);{var r=l=>{var p=hy();$(l,p)},d=l=>{var p=_y();k(()=>Ne(p,"src",e.icon)),Tt("error",p,o),Zs(p),$(l,p)};V(a,l=>{s(i)?l(r):l(d,!1)})}$(t,n)}function Bf(t,e){O(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,e1),n=m(e,"ref",15),a=v(()=>o()===e1),r=v(()=>s(a)||i()),d=v(()=>s(a)?"btn-full-opacity":"");Mo(t,{get disabled(){return s(r)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(l){n(l)},children:(l,p)=>{let f=v(()=>{var b;return(b=e.testId)!=null?b:e.id});Vt(l,{get className(){return s(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(r)},get testId(){return s(f)},children:(b,u)=>{ha(b,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var t1=t=>!!t.buttonComponent;var _s={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var iu=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))a.set(Ar(t,i,n,o))};var yy=L('<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),xy={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 Df(t,e){var lr,Os;O(e,!0),W(t,xy);let[i,o]=De(),n=()=>S(G,"$disabledControls$",i),a=()=>S(lo,"$adPlaybackState",i),r=()=>S(mt,"$playbackState$",i),d=()=>S(xo,"$currentSubtitle$",i),l=()=>S(xi,"$isEnded$",i),p=()=>S(Ai,"$currentGridType$",i),f=()=>S(zt,"$isLive$",i),b=()=>S(li,"$chromecastState$",i),u=()=>S(Wi,"$isPictureInPictureActive",i),_=()=>S(Ni,"$pictureInPictureType$",i),w=()=>S(wi,"$availableSubtitlesList$",i),y=()=>S(Pi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(ci,"$showContextMenuBtn$",i),T=()=>S(Zn,"$playerSize",i),I=()=>S(Jt,"$isRewindableLive$",i),M=()=>S(je,"$isActiveLive$",i),P=()=>S(co,"$graphIsOpened$",i),E=()=>S(qt,"$contextMenuVisible$",i),R=()=>S(ei,"$isFullscreen",i),z=()=>S(_i,"$autoplayNextEnabled",i),q=()=>S(s(Eo),"$prevButton",i),U=()=>S(s(rr),"$replayButton",i),Y=()=>S(s(_r),"$playButton",i),se=()=>S(s(Ci),"$nextButton",i),Q=()=>S(s(Jr),"$playPrevChapterButton",i),de=()=>S(s(Nr),"$seekToInteractiveButton",i),le=()=>S(s(br),"$interactiveGraphButton",i),Me=()=>S(s(ht),"$liveButton",i),Be=()=>S(s(Zt),"$time",i),ge=()=>S(s(Oo),"$episodes",i),ce=()=>S(s(po),"$vkLogo",i),Ae=()=>S(s(Gi),"$volume",i),ae=()=>S(s(Xo),"$subtitles",i),N=()=>S(s(On),"$settings",i),Ge=()=>S(s(fo),"$context",i),ee=()=>S(s(vn),"$fullscreen",i),We=()=>S(s(Jo),"$chromecast",i),ne=()=>S(Lo,"$additionalDesktopControlPanelRightButtons$",i),me=()=>S(Si,"$isInteractiveTime$",i),$e=()=>S(ao,"$settingsMenuVisible",i),Z=()=>S(Ki,"$settingButtonRef$",i),ze=()=>S(si,"$startedByKeyboard$",i),Je=()=>S(Wt,"$isAudioAvailable$",i),Ce=()=>S(Et,"$fakeIsPlaying$",i),ie=()=>S(Go,"$seekToInteractiveDisabledTooltip$",i),Ee=()=>S(Mt,"$adPosition",i),qe=()=>S(yt,"$position$",i),nt=()=>S(et,"$adDuration",i),dt=()=>S(Ze,"$duration$",i),rt=m(e,"playerControlsWrapperRef",15,void 0),St=m(e,"playerControlsRef",15,void 0),ct=m(e,"isAds",3,!1),Yt=m(e,"logoTargetUrl",3,""),ni=m(e,"isOneVideoPlaylist",3,!1),Ot=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Et}=ro(),te=Ie(),At=ro(),j=Ht(),pe=te.actions.internal.toggleMuted,Pe=te.actions.internal.togglePlay,Re=te.actions.internal.pause,fe=te.actions.internal.toggleSubtitle,Ke=(lr=te.callbacks)==null?void 0:lr.onAudioDoesNotExistHint,it=(Os=te.callbacks)==null?void 0:Os.onAudioDisabledHint,Ze=te.state.duration$,yt=te.state.positionWithScrubbing$,mt=te.state.playbackState$,Wt=te.state.isAudioAvailable$,gt=te.state.isAudioDisabled,xi=te.state.isEnded$,zt=te.state.isLive$,je=te.state.isActiveLive$,Jt=te.state.isRewindableLive$,{isActive$:Wi,type$:Ni}=At.pictureInPicture$,ao=te.ui.settingsMenu.visible$,qi=te.ui.settingsMenu.openedByBtnKeyboard$,ot=te.ui.controls,bt=te.actions.internal.getVideoEpisodes(),li=te.state.chromecastState$,wi=te.state.availableSubtitlesList$,xo=te.state.currentSubtitle$,G=ot.disabledControls$,qt=te.ui.contextMenu.visible$,ci=te.ui.contextMenu.showContextMenuBtn$,Pi=te.ui.contextMenu.openedByBtnKeyboard$,si=te.ui.startedByKeyboard$,di=te.ui.controlBlocks,ut=te.ui.t,et=te.ads.duration,Mt=te.ads.position,lo=te.ads.playbackState,ei=te.ui.isFullscreen,Zn=te.ui.playerSize,Ai=te.ui.currentGridType$,Lo=te.ui.additionalDesktopControlPanelRightButtons$,_i=te.ui.autoplayNextEnabled$,vt=te.actions.internal.getVideoElement,Mi=te.actions.internal.replayInteractive,Vo=te.actions.internal.prevVideoClick,Tn=te.actions.internal.nextVideoClick,ai=te.state.isInteractive,Si=te.state.isInteractiveTime$,Ro=te.state.showInteractiveGraph,In=te.state.showSeekToInteractive,Bo=te.state.showPlayPrevChapter,wo=te.state.showInteractiveTimeIndicator,fn=te.state.playPrevChapterDisabledTooltip,Go=At.seekToInteractiveDisabledTooltip$,co=At.graphIsOpened$,So=j.features.interactiveResponsiveUi,Vr=v(()=>n().has("EPISODE_BUTTON")),mr=v(()=>n().has("GRAPH_BUTTON")),Xn=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Jn=v(()=>n().has("PLAY_BUTTON")),er=v(()=>n().has("REPLAY_BUTTON")),En=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Xr=()=>te.actions.internal.toggleChromecast(),kn=v(()=>ct()?a()==="playing":r()===Nf.PLAYING),Li=v(()=>d().value!=="off"),Pn=v(()=>l()&&!ct()||ai),Yo=v(()=>So?s(Pn)&&zi(p(),"m"):s(Pn)),jo=v(()=>!l()||ai||ct()),An=v(()=>zi(p(),"m")),Mn=v(()=>e.showNextPrevButtons&&zi(p(),"m")&&!ct()&&e.nextButtonActive),No=v(()=>e.showNextPrevButtons&&zi(p(),"m")&&!ct()&&e.prevButtonActive),Rr=v(()=>!ct()&&!!f()),Ln=v(()=>b()!==i1.NOT_AVAILABLE&&!(u()&&_()===1)&&zi(p(),"m")&&!ai),tr=v(()=>e.showAutoplayNext&&!ni()&&zi(p(),"s")),Di=v(()=>w().length>0&&zi(p(),"m")),Co=v(()=>y()||C()),at=v(()=>zi(p(),"s")&&!ct()),jt=v(()=>!e.logoHidden&&!ct()),vr=v(()=>j.features.fullscreen&&(e.logoHidden||zi(p(),So?"xs":"s"))&&!(u()&&_()===1)&&(ai?Ot():!0)),Vn=v(()=>(!f()||ct())&&!(j.features.interactiveHideTime&&ai)),mn=v(()=>T().width>100),Vi=v(()=>Ro&&zi(p(),"m")),Rn=v(()=>So?In&&zi(p(),"s"):In),To=v(()=>So?Bo&&zi(p(),"s"):Bo),Bn=v(()=>!ct()&&!f()&&!!(bt!=null&&bt.length)&&s(An)&&!s(Vr)),Io=v(()=>!I()||!!M()),Nn=v(()=>P()?ut("tooltip_interactive_graph_on"):ut("tooltip_interactive_graph_off")),Dn=v(()=>E()?ut("tooltip_context_menu_close"):ut("tooltip_context_menu_open")),ir=($t,_t)=>$t?_t&&_t===Nf.PAUSED?ut("tooltip_play"):"":ut("tooltip_live"),gr=v(()=>ir(s(Io),r())),or=v(()=>j.logoType==="vk_video"?ut("tooltip_vk_video_logo"):ut("tooltip_vk_logo")),Do=v(()=>s(Li)?ut("tooltip_subtitles_on"):ut("tooltip_subtitles_off")),Br=v(()=>R()?ut("tooltip_fullscreen_on"):ut("tooltip_fullscreen_off")),nr=v(()=>b()===i1.CONNECTED?ut("tooltip_chromecast_on"):ut("tooltip_chromecast_off")),hr=v(()=>z()?ut("tooltip_autoplay_on"):ut("tooltip_autoplay_off")),Zo=X(0),Kt=ve({}),uo=ve({}),Eo=v(()=>ot.prevButton),rr=v(()=>ot.replayButton),_r=v(()=>ot.playButton),Ci=v(()=>ot.nextButton),Jr=v(()=>ot.playPrevChapterButton),Nr=v(()=>ot.seekToInteractiveButton),br=v(()=>ot.interactiveGraphButton),ht=v(()=>ot.liveButton),Zt=v(()=>ot.time),Oo=v(()=>ot.episodes),po=v(()=>ot.vkLogo),Gi=v(()=>ot.volume),Xo=v(()=>ot.subtitles),On=v(()=>ot.settings),fo=v(()=>ot.context),vn=v(()=>ot.fullscreen),Jo=v(()=>ot.chromecast),Xe=v(()=>({prevButton:q()?q().right-q().left:0,replayButton:U()?U().right-U().left:0,playButton:Y()?Y().right-Y().left:0,nextButton:se()?se().right-se().left:0,playPrevChapterButton:Q()?Q().right-Q().left:0,seekToInteractiveButton:de()?de().right-de().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Me()?Me().right-Me().left:0,time:Be()?Be().right-Be().left:0,episodes:ge()?ge().right-ge().left:0,vkLogo:ce()?ce().right-ce().left:0,volume:Ae()?Ae().right-Ae().left:0,subtitles:ae()?ae().right-ae().left:0,settings:N()?N().right-N().left:0,context:Ge()?Ge().right-Ge().left:0,fullscreen:ee()?ee().right-ee().left:0,chromecast:We()?We().right-We().left:0,additionalButtons:ne().length?ne().reduce($t=>[...$t,40],[]):[]})),Lt=X(0);Ue(()=>{(!s(Lt)||s(Lt)<s(Xe).time)&&wt(()=>D(Lt,ve(s(Xe).time)))});let vi=X(!1);Ue(()=>{let $t=0;s(Bn)&&(zi(p(),"xl")?$t=s(Xe).time:$t=60);let _t=s(Xe).prevButton+s(Xe).playButton+s(Xe).nextButton+s(Xe).seekToInteractiveButton+s(Xe).interactiveGraphButton+s(Xe).liveButton+s(Lt)+$t;D(vi,ve(s(Vn)&&s(Zo)>=_t))});let mo=v(()=>s(vi)&&zi(p(),"m")),Yi=o1(nl,260),Ho=o1(iu,260);Ue(()=>{T(),me(),Yi(vt(),ot,Kt,e.showControls),Ho(vt(),di,uo,e.showControls)}),Ue(()=>{uo.bottom=rt()});let Ki=re();Ue(()=>{$e(),Z()&&wt(()=>Za(Z(),$e(),qi))});let Fo;Ue(()=>{ze(),wt(()=>eu(si,ze(),Fo))});function ko(){Vs({isAudioDisabled:gt,isAudioAvailable:Je(),isAds:ct(),audioIsNotExistHintCallback:Ke,audioDisabledHintCallback:it})&&pe()}let Oi=ai?Mi:Pe,gi=v(()=>Ce()!==null),Uo=v(()=>s(gi)?Ce():s(kn)),en=v(()=>s(Uo)?ut("tooltip_pause"):ut("tooltip_play")),Hi=ut("tooltip_episodes"),$r=v(()=>{var $t,_t,Xi,Wo;return s(No)?{id:"prevButton",type:"desktop-control-panel-left",weight:gs.prevButton,buttonComponent:ga,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Vo.bind(null,!0)},tooltipEnabled:!((_t=($t=te.callbacks)==null?void 0:$t.uiInfo)!=null&&_t.onPrevButtonMouseEnter)&&!((Wo=(Xi=te.callbacks)==null?void 0:Xi.uiInfo)!=null&&Wo.onPrevButtonMouseLeave),mouseEnter:()=>{var Ji,ri,Ri;(Ri=(ri=(Ji=te.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ri.onPrevButtonMouseEnter)==null||Ri.call(ri,Ar(vt(),Kt,"prevButton",e.showControls))},mouseLeave:()=>{var Ji,ri,Ri;(Ri=(ri=(Ji=te.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ri.onPrevButtonMouseLeave)==null||Ri.call(ri,Ar(vt(),Kt,"prevButton",e.showControls))},tooltipText:ut("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Dr=v(()=>s(Yo)?{id:"replayButton",type:"desktop-control-panel-left",weight:gs.replayButton,buttonComponent:rl,buttonComponentProps:{disabled:s(er),click:Oi},tooltipText:ut("tooltip_restart"),disabled:s(er)}:void 0),Or=v(()=>s(jo)?{id:"playButton",type:"desktop-control-panel-left",weight:gs.playButton,buttonComponent:sl,buttonComponentProps:{disabled:s(Jn),isPlaying:s(kn),click:Pe},tooltipText:s(en),disabled:s(Jn)}:void 0),gn=v(()=>{var $t,_t,Xi,Wo;return s(Mn)?{id:"nextButton",type:"desktop-control-panel-left",weight:gs.nextButton,buttonComponent:ga,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Tn.bind(null,!0)},tooltipEnabled:!((_t=($t=te.callbacks)==null?void 0:$t.uiInfo)!=null&&_t.onNextButtonMouseEnter)&&!((Wo=(Xi=te.callbacks)==null?void 0:Xi.uiInfo)!=null&&Wo.onNextButtonMouseLeave),mouseEnter:()=>{var Ji,ri,Ri;(Ri=(ri=(Ji=te.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ri.onNextButtonMouseEnter)==null||Ri.call(ri,Ar(vt(),Kt,"nextButton",e.showControls))},mouseLeave:()=>{var Ji,ri,Ri;(Ri=(ri=(Ji=te.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ri.onNextButtonMouseLeave)==null||Ri.call(ri,Ar(vt(),Kt,"nextButton",e.showControls))},tooltipText:ut("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Hn=v(()=>ai&&s(To)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:gs.playPrevChapterButton,buttonComponent:_d,buttonComponentProps:{disabled:s(En),click:e.playPrevChapter},tooltipText:ut("tooltip_interactive_go_back"),disabledTooltipContent:ut(fn),disabled:s(En)}:void 0),Hr=v(()=>ai&&s(Rn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:gs.seekToInteractiveButton,buttonComponent:$d,buttonComponentProps:{disabled:s(Xn),click:e.seekToInteractive},tooltipText:ut("tooltip_interactive_seek"),disabled:s(Xn),disabledTooltipContent:ut(ie())}:void 0),ji=v(()=>ai&&s(Vi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:gs.interactiveGraphButton,buttonComponent:yd,buttonComponentProps:{disabled:s(mr),click:co.toggle,graphIsOpened:P()},tooltipText:s(Nn)}:void 0),zo=v(()=>s(Rr)?{id:"liveButton",type:"desktop-control-panel-left",weight:gs.liveButton,buttonComponent:xd,buttonComponentProps:{isLiveActive:s(Io),ariaLabel:s(gr)},tooltipText:s(gr),disabled:s(Io)&&r()===Nf.PLAYING}:void 0),Fn=v(()=>[s($r),s(Dr),s(Or),s(gn),s(Hn),s(Hr),s(ji),s(zo)].filter($t=>!!$t).sort(la)),sr=v(()=>s(jt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:_s.vkLogo,buttonComponent:dd,buttonComponentProps:{targetUrl:Yt(),logoClickable:e.logoClickable,click:Re},tooltipText:s(or),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ar=v(()=>s(tr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:_s.autoplayNext,buttonComponent:bd,tooltipText:s(hr)}:void 0),Fr=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:_s.volume,buttonComponent:uf,buttonComponentProps:{click:ko,isAds:ct()}})),es=v(()=>s(Di)?{id:"subtitles",type:"desktop-control-panel-right",weight:_s.subtitles,buttonComponent:sf,buttonComponentProps:{isSubtitlesEnabled:s(Li),click:fe},tooltipText:s(Do)}:void 0),Te=v(()=>s(at)?{id:"settings",type:"desktop-control-panel-right",weight:_s.settings,buttonComponent:il,buttonComponentProps:{ref$:Ki},tooltipText:$e()?void 0:ut("tooltip_settings_off")}:void 0),ye=v(()=>j.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:_s.context,buttonComponent:Pf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:ut("aria_label_context_menu")},className:s(Co)?"":"out-of-view",tooltipText:s(Dn)}:void 0),xt=v(()=>s(vr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:_s.fullscreen,buttonComponent:ld,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:s(Br)}:void 0),Ft=v(()=>s(Ln)?{id:"chromecast",type:"desktop-control-panel-right",weight:_s.chromecast,buttonComponent:cd,buttonComponentProps:{state:b(),click:Xr},tooltipText:s(nr)}:void 0),Ti=v(()=>[s(sr),s(ar),s(Fr),s(es),s(Te),s(ye),s(xt),s(Ft),...ne()].filter($t=>!!$t).sort(la));var hi=yy(),Fe=he(hi);let Ct;var ti=h(Fe);let tn=v(()=>!s(mn));ma(ti,{get isHidden(){return s(tn)},get isAds(){return ct()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Kt.timeline},set ref($t){Kt.timeline=$t}});var hn=A(ti,2),Zi=h(hn),Ur=h(Zi);bi(Ur,17,()=>s(Fn),$t=>$t.id,($t,_t)=>{tu($t,{get buttonComponent(){return s(_t).buttonComponent},get buttonComponentProps(){return s(_t).buttonComponentProps},get tooltipText(){return s(_t).tooltipText},get disabledTooltipContent(){return s(_t).disabledTooltipContent},get disabled(){return s(_t).disabled},get className(){return s(_t).className},get tooltipEnabled(){return s(_t).tooltipEnabled},get mouseEnter(){return s(_t).mouseEnter},get mouseLeave(){return s(_t).mouseLeave},get ref(){return Kt[s(_t).id]},set ref(Xi){Kt[s(_t).id]=Xi}})});var yr=A(Ur,2);{var Qi=$t=>{let _t=v(()=>ct()?Ee():qe()),Xi=v(()=>ct()?nt():dt());sd($t,{isMobile:!1,get showDuration(){return s(mo)},get position(){return s(_t)},get duration(){return s(Xi)},get ref(){return Kt.time},set ref(Wo){Kt.time=Wo}})};V(yr,$t=>{s(Vn)&&$t(Qi)})}var Ii=A(yr,2);let _n=v(()=>!s(Bn));Mo(Ii,{className:"w-max",get disabled(){return s(_n)},tooltipContent:Hi,get ref(){return Kt.episodes},set ref($t){Kt.episodes=$t},children:($t,_t)=>{var Xi=He(),Wo=he(Xi);{var Ji=ri=>{pd(ri,{get position(){return qe()},get duration(){return dt()},timeCodes:bt})};V(Wo,ri=>{s(Bn)&&ri(Ji)})}$($t,Xi)},$$slots:{default:!0}}),g(Zi);var Un=A(Zi,2);bi(Un,21,()=>s(Ti),$t=>$t.id,($t,_t)=>{var Xi=He(),Wo=he(Xi);{var Ji=Ri=>{tu(Ri,{get buttonComponent(){return s(_t).buttonComponent},get buttonComponentProps(){return s(_t).buttonComponentProps},get tooltipText(){return s(_t).tooltipText},get disabledTooltipContent(){return s(_t).disabledTooltipContent},get disabled(){return s(_t).disabled},get className(){return s(_t).className},get ref(){return Kt[s(_t).id]},set ref(bs){Kt[s(_t).id]=bs}})},ri=Ri=>{let bs=v(()=>!!s(_t).disabled);Bf(Ri,{get id(){return s(_t).id},get testId(){return s(_t).testId},get icon(){return s(_t).icon},get ariaLabel(){return s(_t).ariaLabel},get tooltipText(){return s(_t).tooltipText},get disabledTooltipContent(){return s(_t).disabledTooltipContent},get disabled(){return s(bs)},get onClick(){return s(_t).onClick},get ref(){return Kt[s(_t).id]},set ref(cl){Kt[s(_t).id]=cl}})};V(Wo,Ri=>{t1(s(_t))?Ri(Ji):Ri(ri,!1)})}$($t,Xi)}),g(Un),g(hn),tt(hn,$t=>St($t),()=>St()),g(Fe),tt(Fe,$t=>rt($t),()=>rt());var xr=A(Fe,2);{var vo=$t=>{gd($t,{get ref(){return Kt.interactiveTimeIndicator},set ref(_t){Kt.interactiveTimeIndicator=_t}})};V(xr,$t=>{wo&&$t(vo)})}k($t=>Ct=J(Fe,1,"wrapper-bottom svelte-f6e8ix",null,Ct,$t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Qr(Zi,"clientWidth",$t=>D(Zo,$t)),$(t,hi),H(),o()}import{ChromecastState as r1,PlaybackState as s1}from"@vkontakte/videoplayer-core/es2018";import{noop as n1}from"@vkontakte/videoplayer-shared/es2018";var wy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Sy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),Cy={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 Of(t,e){W(t,Cy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,n1),n=v(()=>o()===n1),a=v(()=>s(n)||i()),r=X(!1),d=()=>{D(r,!0)},l=v(()=>s(n)?"btn-full-opacity":"");Vt(t,{get className(){return s(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(a)},get testId(){return e.testId},children:(p,f)=>{var b=He(),u=he(b);{var _=y=>{var C=wy();$(y,C)},w=y=>{var C=Sy();k(()=>Ne(C,"src",e.iconUrl)),Tt("error",C,d),Zs(C),$(y,C)};V(u,y=>{s(r)?y(_):y(w,!1)})}$(p,b)},$$slots:{default:!0}})}var Ty=Se('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Hf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),$(t,o)}import{noop as Iy}from"@vkontakte/videoplayer-shared/es2018";var Ey=L('<span class="text svelte-6gmlbk"> </span>'),ky=L('<div aria-hidden="true"><!> <!></div>'),Py={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function ou(t,e){O(e,!0),W(t,Py);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,Iy),a=m(e,"ref",15,void 0),d=Ie().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=v(()=>o()?Rs:Hf),f=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Vt(t,{get testId(){return s(f)},get click(){return n()},get ariaLabel(){return s(l)},role:"button",get ref(){return a()},set ref(b){a(b)},children:(b,u)=>{var _=ky();let w=v(()=>s(p)),y;var C=h(_);$i(C,()=>s(w),(M,P)=>{P(M,{})});var T=A(C,2);{var I=M=>{var P=Ey(),E=h(P,!0);g(P),k(R=>_e(E,R),[()=>d("mobile_unmute")]),$(M,P)};V(T,M=>{o()&&M(I)})}g(_),k(M=>y=J(_,1,"container svelte-6gmlbk",null,y,M),[()=>({expanded:o()})]),$(b,_)},$$slots:{default:!0}}),H()}var Ay=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Ff(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(3),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),$(t,o)}var My={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
256
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Uf(t,e){W(t,My);let i=m(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");Ff(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}import{noop as Ly}from"@vkontakte/videoplayer-shared/es2018";function zf(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,Ly),a=F("menu_pip");Vt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(r){i(r)},children:(r,d)=>{Uf(r,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}import{debounceFn as a1}from"@vkontakte/videoplayer-shared/es2018";var Vy=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},Ry=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},By=L("<div><!></div>"),Ny=L("<div><!></div>"),Dy=L("<div><!></div>"),Oy=L("<!> <!> <!>",1),Hy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Fy=L("<div><!></div>"),Uy=L('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),zy=L("<!> <!> <div><!></div>",1),Wy=L('<div aria-hidden="true">\xB7</div> <!>',1),qy=L('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!></div></div> <!></div></div> <!>',1),Ky={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,
257
+ .wrapper-middle-left-second.svelte-9xcbwc,
258
+ .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);}
259
259
 
260
- @media screen and (orientation: portrait) {.wrapper-top-right.fullscreen.svelte-1afsgkw {top:16px;}.wrapper-top-left.fullscreen.svelte-1afsgkw {top:16px;}.controls-wrapper.fullscreen.svelte-1afsgkw {position:absolute;bottom:30px;width:calc(100% - 8px);}
260
+
261
+ @media screen and (orientation: portrait) {.wrapper-top-right.fullscreen.svelte-9xcbwc {top:16px;}.wrapper-top-left.fullscreen.svelte-9xcbwc {top:16px;}.controls-wrapper.fullscreen.svelte-9xcbwc {position:absolute;bottom:30px;width:calc(100% - 8px);}
261
262
  }
262
263
 
263
- @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-1afsgkw {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-1afsgkw {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-1afsgkw {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw {left:96px;}.wrapper-middle-right.fullscreen.svelte-1afsgkw {right:44px;}.controls-wrapper.fullscreen.svelte-1afsgkw {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
264
- }`};function Of(t,e){var Kn,Qn;F(e,!0),q(t,Ny);let[i,o]=De(),n=()=>S(pi,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(et,"$disabledControls$",i),s=()=>S(ht,"$playbackState$",i),d=()=>S($t,"$adPlaybackState",i),l=()=>S(At,"$isEnded$",i),p=()=>S(oo,"$playerSize",i),f=()=>S(oe,"$scrubbingInProgress",i),y=()=>S(ri,"$chromecastState$",i),u=()=>S(Ke,"$isPictureInPictureActive",i),_=()=>S(Ye,"$pictureInPictureType$",i),w=()=>S(Be,"$mobileNotReportControlHidden$",i),b=()=>S(dt,"$playerPhase",i),C=()=>S(ki,"$currentGridType$",i),T=()=>S(Rt,"$isLive$",i),I=()=>S(Xe,"$settingsMenuVisible",i),M=()=>S(be,"$isRewindableLive$",i),P=()=>S(O,"$isActiveLive$",i),k=()=>S(Xt,"$isInteractiveTime$",i),V=()=>S(Qt,"$isAudioAvailable$",i),W=()=>S(Fo,"$settingButtonRef$",i),j=()=>S(Gt,"$startedByKeyboard$",i),H=()=>S(Nt,"$isFullscreen",i),Q=()=>S(tt,"$mobileUnmuteButtonVisible",i),ie=()=>S(ft,"$volumeHidden",i),Z=()=>S(Le,"$mobileUnmuteButtonExpanded",i),se=()=>S(sn,"$additionalButtons$",i),ce=()=>S(bi,"$crashed$",i),Ee=()=>S(Je,"$graphIsOpened$",i),Me=()=>S(Mt,"$adPosition",i),ge=()=>S(zi,"$adDuration",i),ae=()=>S(It,"$position$",i),Pe=()=>S(it,"$duration$",i),ne=m(e,"playerControlsWrapperRef",15,void 0),N=m(e,"playerControlsRef",15,void 0),ue=m(e,"isAds",3,!1),_e=m(e,"logoTargetUrl",3,""),ze=m(e,"isOneVideoPlaylist",3,!1),re=m(e,"customFullscreenSupported",3,!0),K=Ce(),he=to(),ee=Wt(),He=K.actions.internal.toggleMuted,je=K.actions.internal.togglePlay,we=K.actions.internal.pause,Ve=K.actions.internal.prevVideoClick,Ie=K.actions.internal.nextVideoClick,Ue=(Kn=K.callbacks)==null?void 0:Kn.onAudioDoesNotExistHint,lt=(Qn=K.callbacks)==null?void 0:Qn.onAudioDisabledHint,dt=K.playerPhase,it=K.state.duration$,It=K.state.positionWithScrubbing$,ht=K.state.playbackState$,Qt=K.state.isAudioAvailable$,Zt=K.state.isAudioDisabled,At=K.state.isEnded$,Rt=K.state.isLive$,O=K.state.isActiveLive$,be=K.state.isRewindableLive$,oe=K.ui.scrubbingInProgress,Be=K.ui.mobileNotReportControlHidden$,{isActive$:Ke,type$:Ye}=he.pictureInPicture$,Le=K.ui.mobileUnmuteButtonExpanded,tt=K.ui.mobileUnmuteButtonVisible,Xe=K.ui.settingsMenu.visible$,bt=K.ui.settingsMenu.openedByBtnKeyboard$,ut=K.ui.controls,{volume:ft}=K.ui.hiddenControls,Bt=K.actions.internal.getVideoEpisodes(),Qe=K.webApi.pictureInPictureApi,ri=K.state.chromecastState$,bi=K.state.crashed$,et=ut.disabledControls$,Gt=K.ui.startedByKeyboard$,ki=K.ui.currentGridType$,zi=K.ads.duration,Mt=K.ads.position,$t=K.ads.playbackState,Nt=K.ui.isFullscreen,oo=K.ui.playerSize,sn=K.ui.additionalButtonsDeprecated$,hn=K.actions.internal.getVideoElement,bo=K.actions.internal.replayInteractive,G=K.state.isInteractive,Xt=K.state.isInteractiveTime$,_i=K.state.showInteractiveGraph,Ei=K.state.showSeekToInteractive,ai=K.state.showPlayPrevChapter,mt=K.state.showInteractiveTimeIndicator,pi=he.seekToInteractiveDisabledTooltip$,Je=he.graphIsOpened$,Lt=v(()=>z(K.state.playPrevChapterDisabledTooltip)),no=v(()=>z(n())),ti=v(()=>a().has("EPISODE_BUTTON")),rr=v(()=>a().has("GRAPH_BUTTON")),ro=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),ko=v(()=>a().has("PLAY_BUTTON")),li=v(()=>a().has("REPLAY_BUTTON")),St=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Pi=v(()=>s()===e1.PLAYING),Eo=v(()=>d()==="paused"),ui=v(()=>l()&&!ue()&&!G),Oo=v(()=>!l()||ue()),Vi=v(()=>e.showNextPrevButtons&&!ue()&&e.prevButtonActive),$o=v(()=>e.showNextPrevButtons&&!ue()&&e.nextButtonActive),yo=v(()=>p().width>300),Hn=v(()=>p().width>400),Ri=v(f),_n=v(()=>y()!==Jh.NOT_AVAILABLE&&!(u()&&_()===1)&&!w()&&!G),xo=v(()=>b()==="LiveWaitingStart"),Po=v(()=>!!Qe&&y()!==Jh.CONNECTED&&!w()&&(_()===1&&r(xo)||!r(xo))&&!r(Ri)&&!G),bn=v(()=>!r(Ri)&&Ui(C(),"s")),Sr=v(()=>!e.logoHidden&&p().width>350),sr=v(()=>ee.features.fullscreen&&!(u()&&_()===1)&&(G?re():!0)&&!r(Ri)),Fn=v(()=>(!T()||ue())&&p().width>260&&!r(Ri)&&!(ee.features.interactiveHideTime&&G)),$n=v(()=>I()||e.showControls),yn=v(()=>!ue()&&!T()&&!!(Bt!=null&&Bt.length)&&r(yo)&&!r(ti)&&!r(Ri)),Un=v(()=>!M()||!!P()),so=v(()=>_i&&Ui(C(),"m")),ot=fe({}),xn=Sy(el,260);Fe(()=>{p(),k(),xn(hn(),ut,ot,e.showControls)});let Ho=()=>K.actions.internal.toggleChromecast();async function wn(){Qe!=null&&Qe.isActive()?await(Qe==null?void 0:Qe.remove()):await(Qe==null?void 0:Qe.request())}function Sn(){(!Zt&&V()||ue())&&tt.set(!1),$s({isAudioDisabled:Zt,audioDisabledHintCallback:lt,isAudioAvailable:V(),audioIsNotExistHintCallback:Ue,isAds:ue()})&&He()}let Ao=X(""),ar=(nt,yt)=>{if(!nt){D(Ao,fe(z("tooltip_live")));return}yt&&yt===e1.PAUSED&&D(Ao,fe(z("tooltip_play")))};Fe(()=>{ar(r(Un),s())});let Fo=le();Fe(()=>{W()&&Qa(W(),I(),bt)}),Fe(()=>{jc(Gt,j(),ot.playButton)});var Cn=By(),Uo=pe(Cn);{var ao=nt=>{var yt=Ay(),wi=pe(yt);let wo;var lo=A(wi,2);let So;var Co=h(lo);{var ct=Ze=>{let Dt=v(()=>V()&&!Zt&&Z());Xc(Ze,{get expanded(){return r(Dt)},click:Sn,get ref(){return ot.volume},set ref(Ai){ot.volume=Ai}})};R(Co,Ze=>{(!V()||Q())&&!ie()&&Ze(ct)})}g(lo);var qt=A(lo,2);let oi;var fi=h(qt);$i(fi,1,se,({iconUrl:Ze,ariaLabel:Dt,testId:Ai,onClick:Qo,tooltip:Ro})=>Ze,(Ze,Dt)=>{let Ai=()=>r(Dt).iconUrl,Qo=()=>r(Dt).ariaLabel,Ro=()=>r(Dt).testId,An=()=>r(Dt).onClick,dn=()=>r(Dt).tooltip,Se=v(()=>{var pt;return(pt=Qo())!=null?pt:dn()});Vf(Ze,{get iconUrl(){return Ai()},get ariaLabel(){return r(Se)},get testId(){return Ro()},get onClick(){return An()}})});var Qi=A(fi,2);{var co=Ze=>{pd(Ze,{get ref(){return ot.autoplayNextToggle},set ref(Dt){ot.autoplayNextToggle=Dt}})};R(Qi,Ze=>{e.showAutoplayNext&&!ze()&&Ze(co)})}var Wi=A(Qi,2);{var Oi=Ze=>{od(Ze,{isMobile:!0,click:Ho,get state(){return y()},get ref(){return ot.chromecast},set ref(Dt){ot.chromecast=Dt}})};R(Wi,Ze=>{r(_n)&&Ze(Oi)})}var Si=A(Wi,2);{var Wo=Ze=>{Df(Ze,{click:wn,get isPictureInPictureActive(){return u()},get ref(){return ot.pip},set ref(Dt){ot.pip=Dt}})};R(Si,Ze=>{r(Po)&&Ze(Wo)})}var Pn=A(Si,2);{var Ir=Ze=>{Xa(Ze,{ref$:Fo})};R(Pn,Ze=>{ce()&&Ze(Ir)})}var Gn=A(Pn,2);{var kr=Ze=>{id(Ze,{click:we,get targetUrl(){return _e()},get logoClickable(){return e.logoClickable},get ref(){return ot.vkLogo},set ref(Dt){ot.vkLogo=Dt}})};R(Gn,Ze=>{r(Sr)&&Ze(kr)})}g(qt);var ln=A(qt,2);let Yn;var jn=h(ln);{var Hr=Ze=>{let Dt=v(()=>Ve.bind(null,!0));aa(Ze,{get click(){return r(Dt)},type:"prev",isMobile:!0,get ref(){return ot.prevButton},set ref(Ai){ot.prevButton=Ai}})};R(jn,Ze=>{r(Vi)&&Ze(Hr)})}var Zn=A(jn,2);{var qo=Ze=>{il(Ze,{get disabled(){return r(ko)},click:je,isMobile:!0,get isPlaying(){return r(Pi)},get ref(){return ot.playButton},set ref(Dt){ot.playButton=Dt}})};R(Zn,Ze=>{r(Oo)&&Ze(qo)})}var pr=A(Zn,2);{var Ko=Ze=>{tl(Ze,{get disabled(){return r(li)},click:je,isMobile:!0,get ref(){return ot.replayButton},set ref(Dt){ot.replayButton=Dt}})};R(pr,Ze=>{r(ui)&&Ze(Ko)})}var fr=A(pr,2);{var Fr=Ze=>{let Dt=v(()=>Ie.bind(null,!0));aa(Ze,{get click(){return r(Dt)},type:"next",isMobile:!0,get ref(){return ot.nextButton},set ref(Ai){ot.nextButton=Ai}})};R(fr,Ze=>{r($o)&&Ze(Fr)})}g(ln);var Er=A(ln,2);{var Pr=Ze=>{var Dt=Py(),Ai=pe(Dt);{var Qo=pt=>{var Ut=Iy();let si;Ut.__click=[Cy,St,e,Lt];var Gi=h(Ut);let Re=v(()=>!e.showControls);ud(Gi,{get hidden(){return r(Re)},get disabled(){return r(St)},get click(){return e.playPrevChapter},get ref(){return ot.playPrevChapterButton},set ref(vt){ot.playPrevChapterButton=vt}}),g(Ut),E(vt=>si=J(Ut,1,"wrapper-middle-left svelte-1afsgkw",null,si,vt),[()=>({fullscreen:H(),hidden:!e.showControls})]),$(pt,Ut)};R(Ai,pt=>{ai&&pt(Qo)})}var Ro=A(Ai,2);{var An=pt=>{var Ut=ky();let si;var Gi=h(Ut);let Re=v(()=>!e.showControls&&!Ee());md(Gi,{get hidden(){return r(Re)},get disabled(){return r(rr)},get click(){return Je.toggle},get graphIsOpened(){return Ee()},get ref(){return ot.interactiveGraphButton},set ref(vt){ot.interactiveGraphButton=vt}}),g(Ut),E(vt=>si=J(Ut,1,El(ai?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",si,vt),[()=>({fullscreen:H(),hidden:!e.showControls&&!Ee()})]),$(pt,Ut)};R(Ro,pt=>{r(so)&&pt(An)})}var dn=A(Ro,2);{var Se=pt=>{var Ut=Ey();let si;Ut.__click=[Ty,ro,e,no];var Gi=h(Ut);let Re=v(()=>!e.showControls);fd(Gi,{get hidden(){return r(Re)},get disabled(){return r(ro)},get click(){return e.seekToInteractive},get ref(){return ot.seekToInteractiveButton},set ref(vt){ot.seekToInteractiveButton=vt}}),g(Ut),E(vt=>si=J(Ut,1,"wrapper-middle-right svelte-1afsgkw",null,si,vt),[()=>({fullscreen:H(),hidden:!e.showControls})]),$(pt,Ut)};R(dn,pt=>{Ei&&pt(Se)})}$(Ze,Dt)};R(Er,Ze=>{G&&!f()&&Ze(Pr)})}E((Ze,Dt,Ai,Qo)=>{wo=J(wi,1,"overlay-mobile svelte-1afsgkw",null,wo,Ze),So=J(lo,1,"wrapper-top-left svelte-1afsgkw",null,So,Dt),oi=J(qt,1,"wrapper-top-right svelte-1afsgkw",null,oi,Ai),Yn=J(ln,1,"wrapper-middle svelte-1afsgkw",null,Yn,Qo)},[()=>({hidden:!r($n)}),()=>({hidden:!e.showControls,fullscreen:H()}),()=>({hidden:!e.showControls&&!w(),fullscreen:H()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(nt,yt)};R(Uo,nt=>{ue()||nt(ao)})}var Bi=A(Uo,2);{var Tn=nt=>{var yt=Vy(),wi=pe(yt);{var wo=oi=>{var fi=My();let Qi;var co=h(fi);Xc(co,{expanded:!1,click:Sn,get ref(){return ot.volume},set ref(Wi){ot.volume=Wi}}),g(fi),E(Wi=>Qi=J(fi,1,"wrapper-top-right svelte-1afsgkw",null,Qi,Wi),[()=>({fullscreen:H()})]),$(oi,fi)};R(wi,oi=>{Q()&&oi(wo)})}var lo=A(wi,2);{var So=oi=>{var fi=Ly(),Qi=h(fi);let co=v(()=>!r(Eo));il(Qi,{get disabled(){return r(ko)},click:je,isMobile:!0,get isPlaying(){return r(co)},get ref(){return ot.playButton},set ref(Wi){ot.playButton=Wi}}),g(fi),$(oi,fi)};R(lo,oi=>{r(Eo)&&oi(So)})}var Co=A(lo,2);let ct;var qt=h(Co);nd(qt,{get position(){return Me()},get duration(){return ge()}}),g(Co),E(oi=>ct=J(Co,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,ct,oi),[()=>({fullscreen:H()})]),$(nt,yt)};R(Bi,nt=>{ue()&&d()!=="inactive"&&nt(Tn)})}var Mo=A(Bi,2);let zo;var Lo=h(Mo);let In;var Ni=h(Lo);J(Ni,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Di=h(Ni);{var lr=nt=>{Io(nt,{get disabled(){return r(li)},get ref(){return ot.replayButton},set ref(yt){ot.replayButton=yt},children:(yt,wi)=>{tl(yt,{get disabled(){return r(li)},click:bo})},$$slots:{default:!0}})};R(Di,nt=>{G&&nt(lr)})}var Vo=A(Di,2);{var zn=nt=>{Io(nt,{get ref(){return ot.liveButton},set ref(yt){ot.liveButton=yt},children:(yt,wi)=>{vd(yt,{get isLiveActive(){return r(Un)},isMobile:!0,get ariaLabel(){return r(Ao)}})},$$slots:{default:!0}})};R(Vo,nt=>{!ue()&&T()&&nt(zn)})}var kn=A(Vo,2);{var Wn=nt=>{let yt=v(()=>ue()?Me():ae()),wi=v(()=>ue()?ge():Pe());Jl(nt,{get showDuration(){return r(Hn)},get position(){return r(yt)},get duration(){return r(wi)},isMobile:!0,get ref(){return ot.time},set ref(wo){ot.time=wo}})};R(kn,nt=>{r(Fn)&&nt(Wn)})}var dr=A(kn,2);let an=v(()=>!r(yn));Io(dr,{className:"w-max",get disabled(){return r(an)},get ref(){return ot.episodes},set ref(nt){ot.episodes=nt},children:(nt,yt)=>{var wi=Oe(),wo=pe(wi);{var lo=So=>{var Co=Ry(),ct=A(pe(Co),2);rd(ct,{get position(){return ae()},get duration(){return Pe()},timeCodes:Bt}),$(So,Co)};R(wo,So=>{r(yn)&&So(lo)})}$(nt,wi)},$$slots:{default:!0}});var cr=A(dr,2);{var ur=nt=>{Io(nt,{get ref(){return ot.settings},set ref(yt){ot.settings=yt},children:(yt,wi)=>{Xa(yt,{ref$:Fo})},$$slots:{default:!0}})};R(cr,nt=>{r(bn)&&nt(ur)})}var qn=A(cr,2);{var Cr=nt=>{Io(nt,{get ref(){return ot.fullscreen},set ref(yt){ot.fullscreen=yt},children:(yt,wi)=>{td(yt,{get click(){return e.toggleFullscreen},get isFullscreen(){return H()}})},$$slots:{default:!0}})};R(qn,nt=>{r(sr)&&nt(Cr)})}g(Ni),gt(Ni,nt=>N(nt),()=>N());var Tr=A(Ni,2);na(Tr,{get isAds(){return ue()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return M()},get ref(){return ot.timeline},set ref(nt){ot.timeline=nt}}),g(Lo),g(Mo),gt(Mo,nt=>ne(nt),()=>ne());var En=A(Mo,2);{var Jt=nt=>{dd(nt,{get ref(){return ot.interactiveTimeIndicator},set ref(yt){ot.interactiveTimeIndicator=yt}})};R(En,nt=>{mt&&nt(Jt)})}E((nt,yt)=>{zo=J(Mo,1,"wrapper-bottom svelte-1afsgkw",null,zo,nt),In=J(Lo,1,"controls-wrapper svelte-1afsgkw",null,In,yt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:H()})]),$(t,Cn),U(),o()}st(["click"]);function hd(t,e){F(e,!0);let[i,o]=De(),n=()=>S(T,"$isMobile",i),a=m(e,"bottomNoSmooth",3,!1),s=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),l=m(e,"isAds",3,!1),p=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),y=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),_=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,t1),b=m(e,"onDisabledSeekToInteractiveClick",3,t1),T=Ce().ui.isMobile,I=X(!1);zt(()=>{let V=setTimeout(()=>D(I,!0),0);return()=>clearTimeout(V)});var M=Oe(),P=pe(M);{var k=V=>{var W=Oe(),j=pe(W);{var H=ie=>{Of(ie,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},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 y()},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 b()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},Q=ie=>{Lf(ie,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return y()},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 s()},set playerControlsWrapperRef(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};R(j,ie=>{n()?ie(H):ie(Q,!1)})}$(V,W)};R(P,V=>{r(I)&&V(k)})}$(t,M),U(),o()}var Dy=ye('<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 Hf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),$(t,o)}function Ff(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Hf(t,{get style(){return r(o)}})}var Oy=ye('<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 Uf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Oy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),$(t,o)}var Hy=ye('<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 zf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Hy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),$(t,o)}function Jc(t,e){let i=m(e,"isOff",3,!1);var o=Oe(),n=pe(o);{var a=d=>{zf(d,{})},s=d=>{Uf(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}$(t,o)}var Fy=ye('<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 Wf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),$(t,o)}function qf(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Wf(t,{get style(){return r(o)}})}var Uy=ye('<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 Kf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Uy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),$(t,o)}function Qf(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Kf(t,{get style(){return r(o)}})}var zy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Wy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),qy=L("<div><!></div>"),Ky={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;
264
+ @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);}
265
+ }`};function Wf(t,e){var vn,Jo;O(e,!0),W(t,Ky);let[i,o]=De(),n=()=>S(Tn,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(qt,"$disabledControls$",i),r=()=>S(At,"$playbackState$",i),d=()=>S(ut,"$adPlaybackState",i),l=()=>S(Pe,"$isEnded$",i),p=()=>S(Mt,"$playerSize",i),f=()=>S(Ze,"$scrubbingInProgress",i),b=()=>S(xo,"$chromecastState$",i),u=()=>S(mt,"$isPictureInPictureActive",i),_=()=>S(Wt,"$pictureInPictureType$",i),w=()=>S(yt,"$mobileNotReportControlHidden$",i),y=()=>S(bt,"$chromecastHidden",i),C=()=>S(Ot,"$playerPhase",i),T=()=>S(qi,"$pipHidden",i),I=()=>S(Pi,"$currentGridType$",i),M=()=>S(Ni,"$vkLogoHidden",i),P=()=>S(Re,"$isLive$",i),E=()=>S(zt,"$settingsMenuVisible",i),R=()=>S(it,"$isRewindableLive$",i),z=()=>S(Ke,"$isActiveLive$",i),q=()=>S(Lo,"$isInteractiveTime$",i),U=()=>S(j,"$isAudioAvailable$",i),Y=()=>S(Io,"$settingButtonRef$",i),se=()=>S(ci,"$startedByKeyboard$",i),Q=()=>S(et,"$isFullscreen",i),de=()=>S(xi,"$mobileUnmuteButtonVisible",i),le=()=>S(Wi,"$volumeHidden",i),Me=()=>S(fe,"$muted$",i),Be=()=>S(gt,"$mobileUnmuteButtonExpanded",i),ge=()=>S(lo,"$additionalButtons$",i),ce=()=>S(ao,"$autoplayNextToggleHidden",i),Ae=()=>S(G,"$crashed$",i),ae=()=>S(ot,"$settingsHidden",i),N=()=>S(ai,"$graphIsOpened$",i),Ge=()=>S(di,"$adPosition",i),ee=()=>S(si,"$adDuration",i),We=()=>S(te,"$position$",i),ne=()=>S(Et,"$duration$",i),me=m(e,"playerControlsWrapperRef",15,void 0),$e=m(e,"playerControlsRef",15,void 0),Z=m(e,"isAds",3,!1),ze=m(e,"logoTargetUrl",3,""),Je=m(e,"isOneVideoPlaylist",3,!1),Ce=m(e,"customFullscreenSupported",3,!0),ie=Ie(),Ee=ro(),qe=Ht(),nt=ie.actions.internal.toggleMuted,dt=ie.actions.internal.togglePlay,rt=ie.actions.internal.pause,St=ie.actions.internal.prevVideoClick,ct=ie.actions.internal.nextVideoClick,Yt=(vn=ie.callbacks)==null?void 0:vn.onAudioDoesNotExistHint,ni=(Jo=ie.callbacks)==null?void 0:Jo.onAudioDisabledHint,Ot=ie.playerPhase,Et=ie.state.duration$,te=ie.state.positionWithScrubbing$,At=ie.state.playbackState$,j=ie.state.isAudioAvailable$,pe=ie.state.isAudioDisabled,Pe=ie.state.isEnded$,Re=ie.state.isLive$,fe=ie.state.muted$,Ke=ie.state.isActiveLive$,it=ie.state.isRewindableLive$,Ze=ie.ui.scrubbingInProgress,yt=ie.ui.mobileNotReportControlHidden$,{isActive$:mt,type$:Wt}=Ee.pictureInPicture$,gt=ie.ui.mobileUnmuteButtonExpanded,xi=ie.ui.mobileUnmuteButtonVisible,zt=ie.ui.settingsMenu.visible$,je=ie.ui.settingsMenu.openedByBtnKeyboard$,Jt=ie.ui.controls,{volume:Wi,vkLogo:Ni,autoplayNextToggle:ao,pip:qi,settings:ot,chromecast:bt}=ie.ui.hiddenControls,li=ie.actions.internal.getVideoEpisodes(),wi=ie.webApi.pictureInPictureApi,xo=ie.state.chromecastState$,G=ie.state.crashed$,qt=Jt.disabledControls$,ci=ie.ui.startedByKeyboard$,Pi=ie.ui.currentGridType$,si=ie.ads.duration,di=ie.ads.position,ut=ie.ads.playbackState,et=ie.ui.isFullscreen,Mt=ie.ui.playerSize,lo=ie.ui.additionalButtonsDeprecated$,ei=ie.actions.internal.getVideoElement,Zn=ie.actions.internal.replayInteractive,Ai=ie.state.isInteractive,Lo=ie.state.isInteractiveTime$,_i=ie.state.showInteractiveGraph,vt=ie.state.showSeekToInteractive,Mi=ie.state.showPlayPrevChapter,Vo=ie.state.showInteractiveTimeIndicator,Tn=Ee.seekToInteractiveDisabledTooltip$,ai=Ee.graphIsOpened$,Si=ie.ui.controlBlocks,Ro=v(()=>F(ie.state.playPrevChapterDisabledTooltip)),In=v(()=>F(n())),Bo=v(()=>a().has("EPISODE_BUTTON")),wo=v(()=>a().has("GRAPH_BUTTON")),fn=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Go=v(()=>a().has("PLAY_BUTTON")),co=v(()=>a().has("REPLAY_BUTTON")),So=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Vr=v(()=>r()===s1.PLAYING),mr=v(()=>d()==="paused"),Xn=v(()=>l()&&!Z()&&!Ai),Jn=v(()=>!l()||Z()),er=v(()=>e.showNextPrevButtons&&!Z()&&e.prevButtonActive),En=v(()=>e.showNextPrevButtons&&!Z()&&e.nextButtonActive),Xr=v(()=>p().width>300),kn=v(()=>p().width>400),Li=v(f),Pn=v(()=>b()!==r1.NOT_AVAILABLE&&!(u()&&_()===1)&&!w()&&!Ai&&!y()),Yo=v(()=>C()==="LiveWaitingStart"),jo=v(()=>!!wi&&b()!==r1.CONNECTED&&!w()&&(_()===1&&s(Yo)||!s(Yo))&&!s(Li)&&!Ai&&!T()),An=v(()=>!s(Li)&&zi(I(),"s")),Mn=v(()=>!e.logoHidden&&p().width>350&&!M()),No=v(()=>qe.features.fullscreen&&!(u()&&_()===1)&&(Ai?Ce():!0)&&!s(Li)),Rr=v(()=>(!P()||Z())&&p().width>260&&!s(Li)&&!(qe.features.interactiveHideTime&&Ai)),Ln=v(()=>E()||e.showControls),tr=v(()=>!Z()&&!P()&&!!(li!=null&&li.length)&&s(Xr)&&!s(Bo)&&!s(Li)),Di=v(()=>!R()||!!z()),Co=v(()=>_i&&zi(I(),"m")),at=ve({}),jt=ve({}),vr=a1(nl,260),Vn=a1(iu,260);Ue(()=>{p(),q(),vr(ei(),Jt,at,e.showControls),Vn(ei(),Si,jt,e.showControls)});let mn=()=>ie.actions.internal.toggleChromecast();async function Vi(){wi!=null&&wi.isActive()?await(wi==null?void 0:wi.remove()):await(wi==null?void 0:wi.request())}function Rn(){(!pe&&U()||Z())&&xi.set(!1),Vs({isAudioDisabled:pe,audioDisabledHintCallback:ni,isAudioAvailable:U(),audioIsNotExistHintCallback:Yt,isAds:Z()})&&nt()}let To=X(""),Bn=(Xe,Lt)=>{if(!Xe){D(To,ve(F("tooltip_live")));return}Lt&&Lt===s1.PAUSED&&D(To,ve(F("tooltip_play")))};Ue(()=>{Bn(s(Di),r())});let Io=re();Ue(()=>{Y()&&Za(Y(),E(),je)}),Ue(()=>{eu(ci,se(),at.playButton)});var Nn=qy(),Dn=he(Nn);{var ir=Xe=>{var Lt=Hy(),vi=he(Lt);let mo;var Yi=A(vi,2);let Ho;var Ki=h(Yi);{var Fo=Fe=>{let Ct=v(()=>U()&&!pe&&Be());ou(Fe,{get muted(){return Me()},get expanded(){return s(Ct)},click:Rn,get ref(){return at.volume},set ref(ti){at.volume=ti}})};V(Ki,Fe=>{(!U()||de())&&!le()&&Fe(Fo)})}g(Yi),tt(Yi,Fe=>jt.topLeft=Fe,()=>jt==null?void 0:jt.topLeft);var ko=A(Yi,2);let Oi;var gi=h(ko);bi(gi,1,ge,({iconUrl:Fe,ariaLabel:Ct,testId:ti,onClick:tn,tooltip:hn})=>Fe,(Fe,Ct)=>{let ti=()=>s(Ct).iconUrl,tn=()=>s(Ct).ariaLabel,hn=()=>s(Ct).testId,Zi=()=>s(Ct).onClick,Ur=()=>s(Ct).tooltip,yr=v(()=>{var Qi;return(Qi=tn())!=null?Qi:Ur()});Of(Fe,{get iconUrl(){return ti()},get ariaLabel(){return s(yr)},get testId(){return hn()},get onClick(){return Zi()}})});var Uo=A(gi,2);{var en=Fe=>{bd(Fe,{get ref(){return at.autoplayNextToggle},set ref(Ct){at.autoplayNextToggle=Ct}})};V(Uo,Fe=>{e.showAutoplayNext&&!Je()&&!ce()&&Fe(en)})}var Hi=A(Uo,2);{var $r=Fe=>{cd(Fe,{isMobile:!0,click:mn,get state(){return b()},get ref(){return at.chromecast},set ref(Ct){at.chromecast=Ct}})};V(Hi,Fe=>{s(Pn)&&Fe($r)})}var Dr=A(Hi,2);{var Or=Fe=>{zf(Fe,{click:Vi,get isPictureInPictureActive(){return u()},get ref(){return at.pip},set ref(Ct){at.pip=Ct}})};V(Dr,Fe=>{s(jo)&&Fe(Or)})}var gn=A(Dr,2);{var Hn=Fe=>{il(Fe,{ref$:Io})};V(gn,Fe=>{Ae()&&!ae()&&Fe(Hn)})}var Hr=A(gn,2);{var ji=Fe=>{dd(Fe,{click:rt,get targetUrl(){return ze()},get logoClickable(){return e.logoClickable},get ref(){return at.vkLogo},set ref(Ct){at.vkLogo=Ct}})};V(Hr,Fe=>{s(Mn)&&Fe(ji)})}g(ko),tt(ko,Fe=>jt.topRight=Fe,()=>jt==null?void 0:jt.topRight);var zo=A(ko,2);let Fn;var sr=h(zo);{var ar=Fe=>{let Ct=v(()=>St.bind(null,!0));ga(Fe,{get click(){return s(Ct)},type:"prev",isMobile:!0,get ref(){return at.prevButton},set ref(ti){at.prevButton=ti}})};V(sr,Fe=>{s(er)&&Fe(ar)})}var Fr=A(sr,2);{var es=Fe=>{sl(Fe,{get disabled(){return s(Go)},click:dt,isMobile:!0,get isPlaying(){return s(Vr)},get ref(){return at.playButton},set ref(Ct){at.playButton=Ct}})};V(Fr,Fe=>{s(Jn)&&Fe(es)})}var Te=A(Fr,2);{var ye=Fe=>{rl(Fe,{get disabled(){return s(co)},click:dt,isMobile:!0,get ref(){return at.replayButton},set ref(Ct){at.replayButton=Ct}})};V(Te,Fe=>{s(Xn)&&Fe(ye)})}var xt=A(Te,2);{var Ft=Fe=>{let Ct=v(()=>ct.bind(null,!0));ga(Fe,{get click(){return s(Ct)},type:"next",isMobile:!0,get ref(){return at.nextButton},set ref(ti){at.nextButton=ti}})};V(xt,Fe=>{s(En)&&Fe(Ft)})}g(zo),tt(zo,Fe=>jt.middle=Fe,()=>jt==null?void 0:jt.middle);var Ti=A(zo,2);{var hi=Fe=>{var Ct=Oy(),ti=he(Ct);{var tn=Qi=>{var Ii=By();let _n;Ii.__click=[Vy,So,e,Ro];var Un=h(Ii);let xr=v(()=>!e.showControls);_d(Un,{get hidden(){return s(xr)},get disabled(){return s(So)},get click(){return e.playPrevChapter},get ref(){return at.playPrevChapterButton},set ref(vo){at.playPrevChapterButton=vo}}),g(Ii),k(vo=>_n=J(Ii,1,"wrapper-middle-left svelte-9xcbwc",null,_n,vo),[()=>({fullscreen:Q(),hidden:!e.showControls})]),$(Qi,Ii)};V(ti,Qi=>{Mi&&Qi(tn)})}var hn=A(ti,2);{var Zi=Qi=>{var Ii=Ny();let _n;var Un=h(Ii);let xr=v(()=>!e.showControls&&!N());yd(Un,{get hidden(){return s(xr)},get disabled(){return s(wo)},get click(){return ai.toggle},get graphIsOpened(){return N()},get ref(){return at.interactiveGraphButton},set ref(vo){at.interactiveGraphButton=vo}}),g(Ii),k(vo=>_n=J(Ii,1,Bl(Mi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",_n,vo),[()=>({fullscreen:Q(),hidden:!e.showControls&&!N()})]),$(Qi,Ii)};V(hn,Qi=>{s(Co)&&Qi(Zi)})}var Ur=A(hn,2);{var yr=Qi=>{var Ii=Dy();let _n;Ii.__click=[Ry,fn,e,In];var Un=h(Ii);let xr=v(()=>!e.showControls);$d(Un,{get hidden(){return s(xr)},get disabled(){return s(fn)},get click(){return e.seekToInteractive},get ref(){return at.seekToInteractiveButton},set ref(vo){at.seekToInteractiveButton=vo}}),g(Ii),k(vo=>_n=J(Ii,1,"wrapper-middle-right svelte-9xcbwc",null,_n,vo),[()=>({fullscreen:Q(),hidden:!e.showControls})]),$(Qi,Ii)};V(Ur,Qi=>{vt&&Qi(yr)})}$(Fe,Ct)};V(Ti,Fe=>{Ai&&!f()&&Fe(hi)})}k((Fe,Ct,ti,tn)=>{mo=J(vi,1,"overlay-mobile svelte-9xcbwc",null,mo,Fe),Ho=J(Yi,1,"wrapper-top-left svelte-9xcbwc",null,Ho,Ct),Oi=J(ko,1,"wrapper-top-right svelte-9xcbwc",null,Oi,ti),Fn=J(zo,1,"wrapper-middle svelte-9xcbwc",null,Fn,tn)},[()=>({hidden:!s(Ln)}),()=>({hidden:!e.showControls,fullscreen:Q()}),()=>({hidden:!e.showControls&&!w(),fullscreen:Q()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(Xe,Lt)};V(Dn,Xe=>{Z()||Xe(ir)})}var gr=A(Dn,2);{var or=Xe=>{var Lt=zy(),vi=he(Lt);{var mo=Oi=>{var gi=Fy();let Uo;var en=h(gi);ou(en,{get muted(){return Me()},expanded:!1,click:Rn,get ref(){return at.volume},set ref(Hi){at.volume=Hi}}),g(gi),k(Hi=>Uo=J(gi,1,"wrapper-top-right svelte-9xcbwc",null,Uo,Hi),[()=>({fullscreen:Q()})]),$(Oi,gi)};V(vi,Oi=>{de()&&Oi(mo)})}var Yi=A(vi,2);{var Ho=Oi=>{var gi=Uy(),Uo=h(gi);let en=v(()=>!s(mr));sl(Uo,{get disabled(){return s(Go)},click:dt,isMobile:!0,get isPlaying(){return s(en)},get ref(){return at.playButton},set ref(Hi){at.playButton=Hi}}),g(gi),$(Oi,gi)};V(Yi,Oi=>{s(mr)&&Oi(Ho)})}var Ki=A(Yi,2);let Fo;var ko=h(Ki);ud(ko,{get position(){return Ge()},get duration(){return ee()}}),g(Ki),k(Oi=>Fo=J(Ki,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Fo,Oi),[()=>({fullscreen:Q()})]),$(Xe,Lt)};V(gr,Xe=>{Z()&&d()!=="inactive"&&Xe(or)})}var Do=A(gr,2);let Br;var nr=h(Do);let hr;var Zo=h(nr);J(Zo,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var Kt=h(Zo),uo=h(Kt);{var Eo=Xe=>{Mo(Xe,{get disabled(){return s(co)},get ref(){return at.replayButton},set ref(Lt){at.replayButton=Lt},children:(Lt,vi)=>{rl(Lt,{get disabled(){return s(co)},click:Zn})},$$slots:{default:!0}})};V(uo,Xe=>{Ai&&Xe(Eo)})}var rr=A(uo,2);{var _r=Xe=>{Mo(Xe,{get ref(){return at.liveButton},set ref(Lt){at.liveButton=Lt},children:(Lt,vi)=>{xd(Lt,{get isLiveActive(){return s(Di)},isMobile:!0,get ariaLabel(){return s(To)}})},$$slots:{default:!0}})};V(rr,Xe=>{!Z()&&P()&&Xe(_r)})}var Ci=A(rr,2);{var Jr=Xe=>{let Lt=v(()=>Z()?Ge():We()),vi=v(()=>Z()?ee():ne());sd(Xe,{get showDuration(){return s(kn)},get position(){return s(Lt)},get duration(){return s(vi)},isMobile:!0,get ref(){return at.time},set ref(mo){at.time=mo}})};V(Ci,Xe=>{s(Rr)&&Xe(Jr)})}var Nr=A(Ci,2);let br=v(()=>!s(tr));Mo(Nr,{className:"w-max",get disabled(){return s(br)},get ref(){return at.episodes},set ref(Xe){at.episodes=Xe},children:(Xe,Lt)=>{var vi=He(),mo=he(vi);{var Yi=Ho=>{var Ki=Wy(),Fo=A(he(Ki),2);pd(Fo,{get position(){return We()},get duration(){return ne()},timeCodes:li}),$(Ho,Ki)};V(mo,Ho=>{s(tr)&&Ho(Yi)})}$(Xe,vi)},$$slots:{default:!0}}),g(Kt),tt(Kt,Xe=>jt.bottomRight=Xe,()=>jt==null?void 0:jt.bottomRight);var ht=A(Kt,2),Zt=h(ht);{var Oo=Xe=>{Mo(Xe,{get ref(){return at.settings},set ref(Lt){at.settings=Lt},children:(Lt,vi)=>{il(Lt,{ref$:Io})},$$slots:{default:!0}})};V(Zt,Xe=>{s(An)&&Xe(Oo)})}var po=A(Zt,2);{var Gi=Xe=>{Mo(Xe,{get ref(){return at.fullscreen},set ref(Lt){at.fullscreen=Lt},children:(Lt,vi)=>{ld(Lt,{get click(){return e.toggleFullscreen},get isFullscreen(){return Q()}})},$$slots:{default:!0}})};V(po,Xe=>{s(No)&&Xe(Gi)})}g(ht),tt(ht,Xe=>jt.bottomRight=Xe,()=>jt==null?void 0:jt.bottomRight),g(Zo),tt(Zo,Xe=>$e(Xe),()=>$e());var Xo=A(Zo,2);ma(Xo,{get isAds(){return Z()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return R()},get ref(){return at.timeline},set ref(Xe){at.timeline=Xe}}),g(nr),g(Do),tt(Do,Xe=>me(Xe),()=>me());var On=A(Do,2);{var fo=Xe=>{gd(Xe,{get ref(){return at.interactiveTimeIndicator},set ref(Lt){at.interactiveTimeIndicator=Lt}})};V(On,Xe=>{Vo&&Xe(fo)})}k((Xe,Lt)=>{Br=J(Do,1,"wrapper-bottom svelte-9xcbwc",null,Br,Xe),hr=J(nr,1,"controls-wrapper svelte-9xcbwc",null,hr,Lt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:Q()})]),$(t,Nn),H(),o()}lt(["click"]);function wd(t,e){O(e,!0);let[i,o]=De(),n=()=>S(T,"$isMobile",i),a=m(e,"bottomNoSmooth",3,!1),r=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),l=m(e,"isAds",3,!1),p=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),b=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),_=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,l1),y=m(e,"onDisabledSeekToInteractiveClick",3,l1),T=Ie().ui.isMobile,I=X(!1);Rt(()=>{let R=setTimeout(()=>D(I,!0),0);return()=>clearTimeout(R)});var M=He(),P=he(M);{var E=R=>{var z=He(),q=he(z);{var U=se=>{Wf(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},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 b()},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 r()},set playerControlsWrapperRef(Q){r(Q)},get playerControlsRef(){return d()},set playerControlsRef(Q){d(Q)}})},Y=se=>{Df(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return b()},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 r()},set playerControlsWrapperRef(Q){r(Q)},get playerControlsRef(){return d()},set playerControlsRef(Q){d(Q)}})};V(q,se=>{n()?se(U):se(Y,!1)})}$(R,z)};V(P,R=>{s(I)&&R(E)})}$(t,M),H(),o()}var Qy=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function qf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),$(t,o)}function Kf(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);qf(t,{get style(){return s(o)}})}var Gy=Se('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function Qf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Gy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),$(t,o)}var Yy=Se('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Gf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),$(t,o)}function nu(t,e){let i=m(e,"isOff",3,!1);var o=He(),n=he(o);{var a=d=>{Gf(d,{})},r=d=>{Qf(d,{})};V(n,d=>{i()?d(a):d(r,!1)})}$(t,o)}var jy=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function Yf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=jy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),$(t,o)}function jf(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Yf(t,{get style(){return s(o)}})}var Zy=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function Zf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),$(t,o)}function Xf(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Zf(t,{get style(){return s(o)}})}var Xy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Jy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),e4=L("<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;
265
266
  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"],
266
267
  .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"],
267
268
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -276,23 +277,23 @@ Try switching the\xA0quality to\xA0Auto.`},dh=i_;var es=new Map;es.set(uh.EN,dh)
276
277
  @keyframes svelte-1ad3n06-fadeOut {
277
278
  0% {opacity:1;}
278
279
  100% {opacity:0;}
279
- }`};function Gf(t,e){F(e,!0),q(t,Ky);let[i,o]=De(),n=()=>S(e.data,"$data",i),s=Ce().ui.t,d=v(()=>!n()),l=v(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),p=v(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),f=v(()=>{var C;return(C=n())==null?void 0:C.type}),y=v(()=>{var C,T;return(C=n())!=null&&C.t?s(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=qy();let _;var w=h(u);{var b=C=>{var T=Wy(),I=pe(T),M=h(I);{var P=re=>{let K=v(()=>r(f)==="FORWARD_SEEK");Ff(re,{get reversed(){return r(K)}})};R(M,re=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&re(P)})}var k=A(M,2);{var V=re=>{rs(re,{})};R(k,re=>{r(f)==="PAUSE"&&re(V)})}var W=A(k,2);{var j=re=>{xr(re,{})};R(W,re=>{r(f)==="PLAY"&&re(j)})}var H=A(W,2);{var Q=re=>{cd(re,{})};R(H,re=>{r(f)==="REPLAY"&&re(Q)})}var ie=A(H,2);{var Z=re=>{Jc(re,{isOff:!0})};R(ie,re=>{r(f)==="SUBTITLES_OFF"&&re(Z)})}var se=A(ie,2);{var ce=re=>{Jc(re,{})};R(se,re=>{r(f)==="SUBTITLES_ON"&&re(ce)})}var Ee=A(se,2);{var Me=re=>{let K=v(()=>r(f)==="RATE_UP");qf(re,{get reversed(){return r(K)}})};R(Ee,re=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&re(Me)})}var ge=A(Ee,2);{var ae=re=>{let K=v(()=>r(f)==="EPISODE_NEXT");Qf(re,{get reversed(){return r(K)}})};R(ge,re=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&re(ae)})}var Pe=A(ge,2);{var ne=re=>{ys(re,{volume:0})};R(Pe,re=>{r(f)==="MUTE"&&re(ne)})}var N=A(Pe,2);{var ue=re=>{ys(re,{volume:1})};R(N,re=>{r(f)==="VOLUME"&&re(ue)})}g(I);var _e=A(I,2);{var ze=re=>{var K=zy(),he=h(K,!0);g(K),E(()=>me(he,r(y))),$(re,K)};R(_e,re=>{r(y)&&re(ze)})}$(C,T)};R(w,C=>{!r(d)&&r(f)&&C(b)})}g(u),E(C=>_=J(u,1,"hot-key-helpers-container svelte-1ad3n06",null,_,C),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(p)})]),$(t,u),U(),o()}var Qy=ye('<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 Yf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),$(t,o)}var Gy=ye('<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 jf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Gy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),$(t,o)}function Ss(t,e){F(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),s=v(()=>(()=>{let y="";return r(a)&&(y+="transform: rotate(180deg);"),o()&&(y+="color: var(--btn-color, #fff);"),y.length?y:void 0})());var d=Oe(),l=pe(d);{var p=y=>{let u=v(()=>r(a)?"chevron-icon--down":"chevron-icon--up");Yf(y,{get style(){return r(s)},get"data-testid"(){return r(u)}})},f=y=>{let u=v(()=>r(a)?"chevron-icon--right":"chevron-icon--left");jf(y,{get style(){return r(s)},get"data-testid"(){return r(u)}})};R(l,y=>{r(n)?y(p):y(f,!1)})}$(t,d),U()}var Yy=(t,e,i,o,n,a)=>{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":a();break}},jy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Zy=L('<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>'),Xy={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 _d(t,e){F(e,!0),q(t,Xy);let i=m(e,"isShifted",3,!1),o=Ce(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=z("aria_label_spherical_control");var y=Zy();let u;y.__keydown=[Yy,n,a,s,l,d],y.__keyup=[jy,n,p],Ne(y,"aria-label",f);var _=h(y),w=h(_),b=h(w);b.__mousedown=a,b.__mouseup=p;var C=h(b);Ss(C,{direction:"up",useBtnColor:!0}),g(b);var T=A(b,2);T.__mousedown=d,T.__mouseup=p;var I=h(T);Ss(I,{direction:"up",useBtnColor:!0}),g(T),g(w);var M=A(w,2),P=h(M);P.__mousedown=l,P.__mouseup=p;var k=h(P);Ss(k,{direction:"up",useBtnColor:!0}),g(P);var V=A(P,2);V.__mousedown=s,V.__mouseup=p;var W=h(V);Ss(W,{direction:"up",useBtnColor:!0}),g(V),g(M),g(_),g(y),E(j=>u=J(y,1,"immersive-controls svelte-1yzc86r",null,u,j),[()=>({"m-shifted":i()})]),Tt("mouseleave",b,p),Tt("mouseleave",T,p),Tt("mouseleave",P,p),Tt("mouseleave",V,p),$(t,y),U()}st(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as o1,Subscription as Jy,filterChanged as e4,filter as t4}from"@vkontakte/videoplayer-shared/es2018";var i1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var eu=class{constructor(){this.flickeringTimeout=i1(1e3);this.subscriptions=new Jy;this.isAuto=!1;this.isLive=!1;this.captions$=new o1([]);this.captionsPrepared$=new o1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(t4(()=>this.isEnabled()),e4()).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:a,value:s},d)=>(o&&!d||(a==="timestamp"?n.push({timeAppeared:Number(s),value:""}):n.length===0?n.push({value:String(s)}):n[n.length-1].value=String(s)),n),[])),this.captionsPrepared$.next(i)}};var i4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),o4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),n4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),r4=L('<div><span class="caption svelte-c2x749"><!></span></div>'),s4=L("<div><!></div>"),a4={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;
280
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function da(t,e){F(e,!0),q(t,a4);let[i,o]=De(),n=()=>S(y,"$currentSubtitle$",i),a=()=>S(_,"$isLive$",i),s=()=>S(w,"$isFullscreen",i),d=()=>S(u,"$isAutoSubtitleCaptionVisible$",i),l=m(e,"isMobile",3,!1),p=Ce(),f=Wt(),y=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,_=p.state.isLive$,w=p.ui.isFullscreen,b=v(()=>!!n().isAuto),C=v(()=>!!a()),T=v(()=>e.playerSize.width*.02),I=v(()=>l()&&!s()||r(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(T)),M=X(null);Fe(()=>{var Q,ie,Z;(Q=r(M))==null||Q.setIsAuto(r(b)),(ie=r(M))==null||ie.setIsLive(r(C)),(Z=r(M))==null||Z.setCaptions(e.captions)});let P=X(fe([[]]));zt(()=>{D(M,fe(new eu().subscribe()));let Q=r(M).captionsPrepared$.subscribe(ie=>{D(P,fe(ie))});return()=>{var ie;(ie=r(M))==null||ie.destroy(),Q.unsubscribe()}}),zt(()=>{if(r(b)){let Q=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Q)}}else u.set(!1)});let k=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=s4();let W;var j=h(V);{var H=Q=>{var ie=r4();let Z;var se=h(ie),ce=h(se);{var Ee=ge=>{var ae=i4(),Pe=h(ae),ne=h(Pe,!0);g(Pe),g(ae),E(N=>{var ue;rt(Pe,`font-size: ${(ue=r(I))!=null?ue:""}px`),me(ne,N)},[()=>z("subtitles_auto_caption")]),$(ge,ae)},Me=(ge,ae)=>{{var Pe=N=>{var ue=Oe(),_e=pe(ue);$i(_e,17,()=>r(P),Il,(ze,re)=>{var K=o4(),he=h(K);$i(he,21,()=>r(re),({value:ee,timeAppeared:He})=>He,(ee,He)=>{let je=()=>r(He).value,we=()=>r(He).timeAppeared;var Ve=Oe(),Ie=pe(Ve);{var Ue=lt=>{var dt=Vr();E(()=>me(dt,je())),$(lt,dt)};R(Ie,lt=>{(!we()||we()<=e.position)&&lt(Ue)})}$(ee,Ve)}),g(he),g(K),E(()=>{var ee;return rt(he,`font-size: ${(ee=r(I))!=null?ee:""}px`)}),$(ze,K)}),$(N,ue)},ne=N=>{var ue=Oe(),_e=pe(ue);$i(_e,17,()=>e.captions,({value:ze})=>ze,(ze,re)=>{let K=()=>r(re).value;var he=n4(),ee=h(he),He=h(ee,!0);g(ee),g(he),E(()=>{var je;rt(ee,`font-size: ${(je=r(I))!=null?je:""}px`),me(He,K())}),$(ze,he)}),$(N,ue)};R(ge,N=>{var ue;r(b)&&((ue=r(P))!=null&&ue.length)?N(Pe):N(ne,!1)},ae)}};R(ce,ge=>{r(b)&&d()?ge(Ee):ge(Me,!1)})}g(se),g(ie),E(ge=>{var ae;Z=J(ie,1,"subtitles-caption svelte-c2x749",null,Z,ge),rt(ie,`--subtitles-caption-margin: ${(ae=r(k))!=null?ae:""}%`)},[()=>({mobile:l()})]),$(Q,ie)};R(j,Q=>{var ie;(e.captions.length||(ie=r(P))!=null&&ie.length)&&Q(H)})}g(V),E(Q=>W=J(V,1,"subtitles-container svelte-c2x749",null,W,Q),[()=>({shifted:e.shifted,auto:r(b)&&!r(C)&&!d()})]),$(t,V),U(),o()}var l4=L('<div class="text svelte-raurnb"> </div>'),d4=L('<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>'),c4={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 bd(t,e){F(e,!0),q(t,c4);let i=Wt();var o=d4();let n;var a=A(h(o),2);{var s=d=>{var l=l4(),p=h(l);g(l),E(()=>{var f;return me(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:""}`)}),$(d,l)};R(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),E(d=>{n=J(o,1,"wrapper svelte-raurnb",null,n,d),rt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),U()}var u4=ye('<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 Zf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=u4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{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})),$(t,o)}var p4=L('<div class="container svelte-13zpvm8"><!></div>'),f4={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 $d(t){q(t,f4);var e=p4(),i=h(e);Zf(i,{}),g(e),$(t,e)}var m4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),v4=L("<div><!></div>"),g4={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,
280
+ }`};function Jf(t,e){O(e,!0),W(t,t4);let[i,o]=De(),n=()=>S(e.data,"$data",i),r=Ie().ui.t,d=v(()=>!n()),l=v(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),p=v(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),f=v(()=>{var C;return(C=n())==null?void 0:C.type}),b=v(()=>{var C,T;return(C=n())!=null&&C.t?r(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=e4();let _;var w=h(u);{var y=C=>{var T=Jy(),I=he(T),M=h(I);{var P=ne=>{let me=v(()=>s(f)==="FORWARD_SEEK");Kf(ne,{get reversed(){return s(me)}})};V(M,ne=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(f))&&ne(P)})}var E=A(M,2);{var R=ne=>{hs(ne,{})};V(E,ne=>{s(f)==="PAUSE"&&ne(R)})}var z=A(E,2);{var q=ne=>{Mr(ne,{})};V(z,ne=>{s(f)==="PLAY"&&ne(q)})}var U=A(z,2);{var Y=ne=>{hd(ne,{})};V(U,ne=>{s(f)==="REPLAY"&&ne(Y)})}var se=A(U,2);{var Q=ne=>{nu(ne,{isOff:!0})};V(se,ne=>{s(f)==="SUBTITLES_OFF"&&ne(Q)})}var de=A(se,2);{var le=ne=>{nu(ne,{})};V(de,ne=>{s(f)==="SUBTITLES_ON"&&ne(le)})}var Me=A(de,2);{var Be=ne=>{let me=v(()=>s(f)==="RATE_UP");jf(ne,{get reversed(){return s(me)}})};V(Me,ne=>{["RATE_DOWN","RATE_UP"].includes(s(f))&&ne(Be)})}var ge=A(Me,2);{var ce=ne=>{let me=v(()=>s(f)==="EPISODE_NEXT");Xf(ne,{get reversed(){return s(me)}})};V(ge,ne=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(f))&&ne(ce)})}var Ae=A(ge,2);{var ae=ne=>{Rs(ne,{volume:0})};V(Ae,ne=>{s(f)==="MUTE"&&ne(ae)})}var N=A(Ae,2);{var Ge=ne=>{Rs(ne,{volume:1})};V(N,ne=>{s(f)==="VOLUME"&&ne(Ge)})}g(I);var ee=A(I,2);{var We=ne=>{var me=Xy(),$e=h(me,!0);g(me),k(()=>_e($e,s(b))),$(ne,me)};V(ee,ne=>{s(b)&&ne(We)})}$(C,T)};V(w,C=>{!s(d)&&s(f)&&C(y)})}g(u),k(C=>_=J(u,1,"hot-key-helpers-container svelte-1ad3n06",null,_,C),[()=>({hidden:s(d),"hot-key-helpers-container--left":s(l),"hot-key-helpers-container--right":s(p)})]),$(t,u),H(),o()}var i4=Se('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function em(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=i4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),$(t,o)}var o4=Se('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function tm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=o4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),$(t,o)}function Ds(t,e){O(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),r=v(()=>(()=>{let b="";return s(a)&&(b+="transform: rotate(180deg);"),o()&&(b+="color: var(--btn-color, #fff);"),b.length?b:void 0})());var d=He(),l=he(d);{var p=b=>{let u=v(()=>s(a)?"chevron-icon--down":"chevron-icon--up");em(b,{get style(){return s(r)},get"data-testid"(){return s(u)}})},f=b=>{let u=v(()=>s(a)?"chevron-icon--right":"chevron-icon--left");tm(b,{get style(){return s(r)},get"data-testid"(){return s(u)}})};V(l,b=>{s(n)?b(p):b(f,!1)})}$(t,d),H()}var n4=(t,e,i,o,n,a)=>{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":a();break}},r4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},s4=L('<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 Sd(t,e){O(e,!0),W(t,a4);let i=m(e,"isShifted",3,!1),o=Ie(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},r=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=F("aria_label_spherical_control");var b=s4();let u;b.__keydown=[n4,n,a,r,l,d],b.__keyup=[r4,n,p],Ne(b,"aria-label",f);var _=h(b),w=h(_),y=h(w);y.__mousedown=a,y.__mouseup=p;var C=h(y);Ds(C,{direction:"up",useBtnColor:!0}),g(y);var T=A(y,2);T.__mousedown=d,T.__mouseup=p;var I=h(T);Ds(I,{direction:"up",useBtnColor:!0}),g(T),g(w);var M=A(w,2),P=h(M);P.__mousedown=l,P.__mouseup=p;var E=h(P);Ds(E,{direction:"up",useBtnColor:!0}),g(P);var R=A(P,2);R.__mousedown=r,R.__mouseup=p;var z=h(R);Ds(z,{direction:"up",useBtnColor:!0}),g(R),g(M),g(_),g(b),k(q=>u=J(b,1,"immersive-controls svelte-1yzc86r",null,u,q),[()=>({"m-shifted":i()})]),Tt("mouseleave",y,p),Tt("mouseleave",T,p),Tt("mouseleave",P,p),Tt("mouseleave",R,p),$(t,b),H()}lt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as c1,Subscription as l4,filterChanged as d4,filter as c4}from"@vkontakte/videoplayer-shared/es2018";var d1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var ru=class{constructor(){this.flickeringTimeout=d1(1e3);this.subscriptions=new l4;this.isAuto=!1;this.isLive=!1;this.captions$=new c1([]);this.captionsPrepared$=new c1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(c4(()=>this.isEnabled()),d4()).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:a,value:r},d)=>(o&&!d||(a==="timestamp"?n.push({timeAppeared:Number(r),value:""}):n.length===0?n.push({value:String(r)}):n[n.length-1].value=String(r)),n),[])),this.captionsPrepared$.next(i)}};var u4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),p4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),f4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),m4=L('<div><span class="caption svelte-c2x749"><!></span></div>'),v4=L("<div><!></div>"),g4={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;
281
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function ba(t,e){O(e,!0),W(t,g4);let[i,o]=De(),n=()=>S(b,"$currentSubtitle$",i),a=()=>S(_,"$isLive$",i),r=()=>S(w,"$isFullscreen",i),d=()=>S(u,"$isAutoSubtitleCaptionVisible$",i),l=m(e,"isMobile",3,!1),p=Ie(),f=Ht(),b=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,_=p.state.isLive$,w=p.ui.isFullscreen,y=v(()=>!!n().isAuto),C=v(()=>!!a()),T=v(()=>e.playerSize.width*.02),I=v(()=>l()&&!r()||s(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:s(T)),M=X(null);Ue(()=>{var Y,se,Q;(Y=s(M))==null||Y.setIsAuto(s(y)),(se=s(M))==null||se.setIsLive(s(C)),(Q=s(M))==null||Q.setCaptions(e.captions)});let P=X(ve([[]]));Rt(()=>{D(M,ve(new ru().subscribe()));let Y=s(M).captionsPrepared$.subscribe(se=>{D(P,ve(se))});return()=>{var se;(se=s(M))==null||se.destroy(),Y.unsubscribe()}}),Rt(()=>{if(s(y)){let Y=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Y)}}else u.set(!1)});let E=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=v4();let z;var q=h(R);{var U=Y=>{var se=m4();let Q;var de=h(se),le=h(de);{var Me=ge=>{var ce=u4(),Ae=h(ce),ae=h(Ae,!0);g(Ae),g(ce),k(N=>{var Ge;st(Ae,`font-size: ${(Ge=s(I))!=null?Ge:""}px`),_e(ae,N)},[()=>F("subtitles_auto_caption")]),$(ge,ce)},Be=(ge,ce)=>{{var Ae=N=>{var Ge=He(),ee=he(Ge);bi(ee,17,()=>s(P),Vl,(We,ne)=>{var me=p4(),$e=h(me);bi($e,21,()=>s(ne),({value:Z,timeAppeared:ze})=>ze,(Z,ze)=>{let Je=()=>s(ze).value,Ce=()=>s(ze).timeAppeared;var ie=He(),Ee=he(ie);{var qe=nt=>{var dt=Kr();k(()=>_e(dt,Je())),$(nt,dt)};V(Ee,nt=>{(!Ce()||Ce()<=e.position)&&nt(qe)})}$(Z,ie)}),g($e),g(me),k(()=>{var Z;return st($e,`font-size: ${(Z=s(I))!=null?Z:""}px`)}),$(We,me)}),$(N,Ge)},ae=N=>{var Ge=He(),ee=he(Ge);bi(ee,17,()=>e.captions,({value:We})=>We,(We,ne)=>{let me=()=>s(ne).value;var $e=f4(),Z=h($e),ze=h(Z,!0);g(Z),g($e),k(()=>{var Je;st(Z,`font-size: ${(Je=s(I))!=null?Je:""}px`),_e(ze,me())}),$(We,$e)}),$(N,Ge)};V(ge,N=>{var Ge;s(y)&&((Ge=s(P))!=null&&Ge.length)?N(Ae):N(ae,!1)},ce)}};V(le,ge=>{s(y)&&d()?ge(Me):ge(Be,!1)})}g(de),g(se),k(ge=>{var ce;Q=J(se,1,"subtitles-caption svelte-c2x749",null,Q,ge),st(se,`--subtitles-caption-margin: ${(ce=s(E))!=null?ce:""}%`)},[()=>({mobile:l()})]),$(Y,se)};V(q,Y=>{var se;(e.captions.length||(se=s(P))!=null&&se.length)&&Y(U)})}g(R),k(Y=>z=J(R,1,"subtitles-container svelte-c2x749",null,z,Y),[()=>({shifted:e.shifted,auto:s(y)&&!s(C)&&!d()})]),$(t,R),H(),o()}var h4=L('<div class="text svelte-raurnb"> </div>'),_4=L('<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>'),b4={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 Cd(t,e){O(e,!0),W(t,b4);let i=Ht();var o=_4();let n;var a=A(h(o),2);{var r=d=>{var l=h4(),p=h(l);g(l),k(()=>{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:""}`)}),$(d,l)};V(a,d=>{e.chromecastDeviceName&&d(r)})}g(o),k(d=>{n=J(o,1,"wrapper svelte-raurnb",null,n,d),st(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),H()}var $4=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function im(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=$4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{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})),$(t,o)}var y4=L('<div class="container svelte-13zpvm8"><!></div>'),x4={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 Td(t){W(t,x4);var e=y4(),i=h(e);im(i,{}),g(e),$(t,e)}var w4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),S4=L("<div><!></div>"),C4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
281
282
  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,
282
- 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 ca(t,e){F(e,!0),q(t,g4);let i=m(e,"iconVisible",3,!0),o=Ce(),n=Wt(),a=o.ui.startedByKeyboard$,s=z("tooltip_play"),d=_=>{var b;let w=_.code;["Enter","Space"].includes(w)&&(_.stopPropagation(),_.preventDefault(),a.set(!0),(b=e.startVideo)==null||b.call(e))},l=_=>{var w;_.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=v4();let f;p.__click=l;var y=h(p);{var u=_=>{var w=m4();w.__keydown=d,Ne(w,"aria-label",s);var b=A(h(w),2);xr(b,{}),g(w),$(_,w)};R(y,_=>{i()&&_(u)})}return g(p),E(_=>{f=J(p,1,"container svelte-1ciju45",null,f,_),rt(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,p),U({handlePressKey:d,handleClick:l})}st(["click","keydown"]);var h4=L('<div data-testid="video_title"> </div>'),_4={hash:"svelte-1bcvcf2",code:`.title.svelte-1bcvcf2 {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(
283
+ 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 $a(t,e){O(e,!0),W(t,C4);let i=m(e,"iconVisible",3,!0),o=Ie(),n=Ht(),a=o.ui.startedByKeyboard$,r=F("tooltip_play"),d=_=>{var y;let w=_.code;["Enter","Space"].includes(w)&&(_.stopPropagation(),_.preventDefault(),a.set(!0),(y=e.startVideo)==null||y.call(e))},l=_=>{var w;_.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=S4();let f;p.__click=l;var b=h(p);{var u=_=>{var w=w4();w.__keydown=d,Ne(w,"aria-label",r);var y=A(h(w),2);Mr(y,{}),g(w),$(_,w)};V(b,_=>{i()&&_(u)})}return g(p),k(_=>{f=J(p,1,"container svelte-1ciju45",null,f,_),st(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,p),H({handlePressKey:d,handleClick:l})}lt(["click","keydown"]);var T4=L('<div data-testid="video_title"><span> </span></div>'),I4={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(
283
284
  0deg,
284
285
  rgba(0, 0, 0, 0) 0%,
285
286
  rgba(0, 0, 0, 0.02) 19%,
286
- rgba(0, 0, 0, 0.10) 34%,
287
- rgba(0, 0, 0, 0.40) 60%,
288
- rgba(0, 0, 0, 0.60) 100%
289
- );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Xf(t,e){q(t,_4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1);var n=h4();let a;var s=h(n,!0);g(n),E(d=>{a=J(n,1,"title svelte-1bcvcf2",null,a,d),me(s,i())},[()=>({hidden:o()})]),$(t,n)}var b4=L('<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),$4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),y4=L('<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),x4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),w4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),S4={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 Jf(t,e){F(e,!0),q(t,S4);let i=X(""),o=X(""),n=X(""),a=X(""),s,d=M=>String(M).padStart(2,"0"),l=M=>{let P=Math.floor(M/86400);P&&(M-=P*86400,D(i,fe(d(P))));let k=Math.floor(M/3600);D(o,fe(d(k)));let V=Math.floor(M/60)%60;D(n,fe(d(V)));let W=M%60;D(a,fe(d(W)))},p=()=>{let M=Math.floor(Date.now()/1e3),P=e.startTime-M;l(P),P>=1?s=requestAnimationFrame(p):e.onTimerOver()};zt(()=>{s=requestAnimationFrame(p)}),mn(()=>{cancelAnimationFrame(s)});var f=w4(),y=h(f);{var u=M=>{var P=b4(),k=pe(P),V=h(k),W=h(V,!0);g(V);var j=A(V,2),H=h(j,!0);g(j),g(k);var Q=A(k,2),ie=h(Q,!0);g(Q),E((Z,se)=>{me(W,r(i)),me(H,Z),me(ie,se)},[()=>z("waiting_live_day_value"),()=>z("waiting_live_colon")]),$(M,P)};R(y,M=>{r(i)&&M(u)})}var _=A(y,2);{var w=M=>{var P=$4(),k=pe(P),V=h(k),W=h(V,!0);g(V);var j=A(V,2),H=h(j,!0);g(j),g(k);var Q=A(k,2),ie=h(Q,!0);g(Q),E((Z,se)=>{me(W,r(o)),me(H,Z),me(ie,se)},[()=>z("waiting_live_hour_value"),()=>z("waiting_live_colon")]),$(M,P)};R(_,M=>{r(o)&&M(w)})}var b=A(_,2);{var C=M=>{var P=y4(),k=pe(P),V=h(k),W=h(V,!0);g(V);var j=A(V,2),H=h(j,!0);g(j),g(k);var Q=A(k,2),ie=h(Q,!0);g(Q),E((Z,se)=>{me(W,r(n)),me(H,Z),me(ie,se)},[()=>z("waiting_live_minute_value"),()=>z("waiting_live_colon")]),$(M,P)};R(b,M=>{r(n)&&M(C)})}var T=A(b,2);{var I=M=>{var P=x4(),k=h(P),V=h(k,!0);g(k);var W=A(k,2),j=h(W,!0);g(W),g(P),E(H=>{me(V,r(a)),me(j,H)},[()=>z("waiting_live_second_value")]),$(M,P)};R(T,M=>{r(a)&&M(I)})}g(f),$(t,f),U()}var C4=ye('<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 em(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=C4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(4),g(o),E(()=>n=Te(o,n,{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})),$(t,o)}var T4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),I4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),k4=L('<div class="waiting-container svelte-15pewff"><!></div>'),E4={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 yd(t,e){F(e,!0),q(t,E4);let i=X(!1);Fe(()=>{D(i,fe(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=k4(),n=h(o);{var a=d=>{var l=T4(),p=h(l),f=h(p);em(f,{}),g(p);var y=A(p,2),u=h(y,!0);g(y),g(l),E(_=>me(u,_),[()=>z("waiting_live_upcoming_title")]),$(d,l)},s=d=>{var l=I4(),p=h(l),f=h(p,!0);g(p);var y=A(p,2);let u=v(()=>e.startTime||0);Jf(y,{get startTime(){return r(u)},onTimerOver:()=>D(i,!0)}),g(l),E(_=>me(f,_),[()=>z("waiting_live_timer_title")]),$(d,l)};R(n,d=>{r(i)?d(a):d(s,!1)})}g(o),E(()=>rt(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),$(t,o),U()}var P4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),A4={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 ua(t,e){F(e,!0),q(t,A4);let i=m(e,"thumbUrl",3,""),o={recover:z("waiting_live_recover_title"),record:z("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=P4(),s=h(a),d=h(s);ta(d,{style:"position: static; transform: translate(0, 0)"});var l=A(d,2),p=h(l,!0);g(l),g(s),g(a),E(()=>{rt(a,`background-image: url('${i()}')`),me(p,r(n))}),$(t,a),U()}var M4=ye('<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=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=M4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i})),$(t,o)}var L4=L('<div class="select-icon svelte-124aexk"><!></div>'),V4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function xd(t){q(t,V4);var e=L4(),i=h(e);tm(i,{}),g(e),$(t,e)}var R4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},B4=(t,e)=>{Ya(t,()=>e.item.selectItem(e.item.value))},N4=L("<p> </p>"),D4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),O4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),H4={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
+ rgba(0, 0, 0, 0.1) 34%,
288
+ rgba(0, 0, 0, 0.4) 60%,
289
+ rgba(0, 0, 0, 0.6) 100%
290
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function om(t,e){O(e,!0),W(t,I4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),a=X(void 0);Rt(()=>{var b;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(b=s(a))==null||b.addEventListener("transitionend",f),()=>{var u;return(u=s(a))==null?void 0:u.removeEventListener("transitionend",f)}});var r=T4();let d;var l=h(r),p=h(l,!0);g(l),tt(l,f=>n(f),()=>n()),g(r),tt(r,f=>D(a,f),()=>s(a)),k(f=>{d=J(r,1,"title svelte-14hk510",null,d,f),_e(p,i())},[()=>({hidden:o()})]),$(t,r),H()}var E4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),k4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),P4=L('<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),A4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),M4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),L4={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 nm(t,e){O(e,!0),W(t,L4);let i=X(""),o=X(""),n=X(""),a=X(""),r,d=M=>String(M).padStart(2,"0"),l=M=>{let P=Math.floor(M/86400);P&&(M-=P*86400,D(i,ve(d(P))));let E=Math.floor(M/3600);D(o,ve(d(E)));let R=Math.floor(M/60)%60;D(n,ve(d(R)));let z=M%60;D(a,ve(d(z)))},p=()=>{let M=Math.floor(Date.now()/1e3),P=e.startTime-M;l(P),P>=1?r=requestAnimationFrame(p):e.onTimerOver()};Rt(()=>{r=requestAnimationFrame(p)}),wn(()=>{cancelAnimationFrame(r)});var f=M4(),b=h(f);{var u=M=>{var P=E4(),E=he(P),R=h(E),z=h(R,!0);g(R);var q=A(R,2),U=h(q,!0);g(q),g(E);var Y=A(E,2),se=h(Y,!0);g(Y),k((Q,de)=>{_e(z,s(i)),_e(U,Q),_e(se,de)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),$(M,P)};V(b,M=>{s(i)&&M(u)})}var _=A(b,2);{var w=M=>{var P=k4(),E=he(P),R=h(E),z=h(R,!0);g(R);var q=A(R,2),U=h(q,!0);g(q),g(E);var Y=A(E,2),se=h(Y,!0);g(Y),k((Q,de)=>{_e(z,s(o)),_e(U,Q),_e(se,de)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),$(M,P)};V(_,M=>{s(o)&&M(w)})}var y=A(_,2);{var C=M=>{var P=P4(),E=he(P),R=h(E),z=h(R,!0);g(R);var q=A(R,2),U=h(q,!0);g(q),g(E);var Y=A(E,2),se=h(Y,!0);g(Y),k((Q,de)=>{_e(z,s(n)),_e(U,Q),_e(se,de)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),$(M,P)};V(y,M=>{s(n)&&M(C)})}var T=A(y,2);{var I=M=>{var P=A4(),E=h(P),R=h(E,!0);g(E);var z=A(E,2),q=h(z,!0);g(z),g(P),k(U=>{_e(R,s(a)),_e(q,U)},[()=>F("waiting_live_second_value")]),$(M,P)};V(T,M=>{s(a)&&M(I)})}g(f),$(t,f),H()}var V4=Se('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function rm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=V4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(4),g(o),k(()=>n=ke(o,n,{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})),$(t,o)}var R4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),B4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),N4=L('<div class="waiting-container svelte-15pewff"><!></div>'),D4={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 Id(t,e){O(e,!0),W(t,D4);let i=X(!1);Ue(()=>{D(i,ve(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=N4(),n=h(o);{var a=d=>{var l=R4(),p=h(l),f=h(p);rm(f,{}),g(p);var b=A(p,2),u=h(b,!0);g(b),g(l),k(_=>_e(u,_),[()=>F("waiting_live_upcoming_title")]),$(d,l)},r=d=>{var l=B4(),p=h(l),f=h(p,!0);g(p);var b=A(p,2);let u=v(()=>e.startTime||0);nm(b,{get startTime(){return s(u)},onTimerOver:()=>D(i,!0)}),g(l),k(_=>_e(f,_),[()=>F("waiting_live_timer_title")]),$(d,l)};V(n,d=>{s(i)?d(a):d(r,!1)})}g(o),k(()=>st(o,`background-image: url(${s(i)?"":e.thumbUrl})`)),$(t,o),H()}var O4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),H4={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function ya(t,e){O(e,!0),W(t,H4);let i=m(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=O4(),r=h(a),d=h(r);ua(d,{style:"position: static; transform: translate(0, 0)"});var l=A(d,2),p=h(l,!0);g(l),g(r),g(a),k(()=>{st(a,`background-image: url('${i()}')`),_e(p,s(n))}),$(t,a),H()}var F4=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function sm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=F4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i})),$(t,o)}var U4=L('<div class="select-icon svelte-124aexk"><!></div>'),z4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Ed(t){W(t,z4);var e=U4(),i=h(e);sm(i,{}),g(e),$(t,e)}var W4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},q4=(t,e)=>{Ja(t,()=>e.item.selectItem(e.item.value))},K4=L("<p> </p>"),Q4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),G4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),Y4={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;
290
291
 
291
292
  /**
292
293
  * \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
293
294
  * \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.
294
295
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
295
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function im(t,e){F(e,!0),q(t,H4);let i=m(e,"isMobile",3,!1);var o=O4();let n;o.__click=[R4,e],o.__keydown=[B4,e];var a=h(o);{var s=w=>{xd(w,{})};R(a,w=>{e.item.selected&&w(s)})}var d=A(a,2);let l;var p=h(d);{var f=w=>{var b=Oe(),C=pe(b);yi(C,()=>e.item.valueComponent,(T,I)=>{I(T,Jr(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),$(w,b)},y=w=>{var b=N4();let C;var T=h(b,!0);g(b),E(I=>{var M;C=J(b,1,"label svelte-1t7rx2m",null,C,I),me(T,(M=e.item.label)!=null?M:e.item.value)},[()=>({mobile:i()})]),$(w,b)};R(p,w=>{e.item.valueComponent?w(f):w(y,!1)})}var u=A(p,2);{var _=w=>{var b=D4(),C=h(b,!0);g(b),E(()=>me(C,e.item.sublabel)),$(w,b)};R(u,w=>{e.item.sublabel&&w(_)})}g(d),g(o),E((w,b,C)=>{n=J(o,1,"item",null,n,w),Ne(o,"data-value",e.item.value),Ne(o,"aria-label",b),Ne(o,"data-testid",e.item.dataTestid),l=J(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Ne(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,b;return(b=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?b:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),U()}st(["click","keydown"]);var F4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function om(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>b=>Lc(b,r(n)));var s=F4();let d;s.__click=function(...b){var C;(C=r(n))==null||C.apply(this,b)},s.__keydown=function(...b){var C;(C=r(a))==null||C.apply(this,b)};var l=h(s);{var p=b=>{xd(b,{})};R(l,b=>{e.item.selected&&b(p)})}var f=A(l,2);let y;var u=h(f);{var _=b=>{var C=Oe();let T=v(()=>e.item.valueComponent);var I=pe(C);yi(I,()=>r(T),(M,P)=>{P(M,Jr(()=>{var k;return(k=e.item.valueComponentParams)!=null?k:{}}))}),$(b,C)},w=b=>{var C=Vr();E(()=>me(C,e.item.label)),$(b,C)};R(u,b=>{e.item.valueComponent?b(_):b(w,!1)})}g(f),g(s),gt(s,b=>o(o()[e.item.id]=b,!0),()=>{var b;return(b=o())==null?void 0:b[e.item.id]}),E((b,C)=>{var T;d=J(s,1,"item",null,d,b),Ne(s,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Ne(s,"data-testid",e.item.id),y=J(f,1,"menu-item-value",null,y,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,s),U()}st(["click","keydown"]);var wr={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var z4=(t,e)=>{Th(t,e.returnFromSubMenu,e.closeSettingsMenu)},W4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},q4=(t,e)=>{zl(t)&&(nr(t),e.returnFromSubMenu())},K4=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),Q4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
296
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function am(t,e){O(e,!0),W(t,Y4);let i=m(e,"isMobile",3,!1);var o=G4();let n;o.__click=[W4,e],o.__keydown=[q4,e];var a=h(o);{var r=w=>{Ed(w,{})};V(a,w=>{e.item.selected&&w(r)})}var d=A(a,2);let l;var p=h(d);{var f=w=>{var y=He(),C=he(y);$i(C,()=>e.item.valueComponent,(T,I)=>{I(T,us(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),$(w,y)},b=w=>{var y=K4();let C;var T=h(y,!0);g(y),k(I=>{var M;C=J(y,1,"label svelte-1t7rx2m",null,C,I),_e(T,(M=e.item.label)!=null?M:e.item.value)},[()=>({mobile:i()})]),$(w,y)};V(p,w=>{e.item.valueComponent?w(f):w(b,!1)})}var u=A(p,2);{var _=w=>{var y=Q4(),C=h(y,!0);g(y),k(()=>_e(C,e.item.sublabel)),$(w,y)};V(u,w=>{e.item.sublabel&&w(_)})}g(d),g(o),k((w,y,C)=>{n=J(o,1,"item",null,n,w),Ne(o,"data-value",e.item.value),Ne(o,"aria-label",y),Ne(o,"data-testid",e.item.dataTestid),l=J(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Ne(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),H()}lt(["click","keydown"]);var j4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function lm(t,e){O(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>y=>Nc(y,s(n)));var r=j4();let d;r.__click=function(...y){var C;(C=s(n))==null||C.apply(this,y)},r.__keydown=function(...y){var C;(C=s(a))==null||C.apply(this,y)};var l=h(r);{var p=y=>{Ed(y,{})};V(l,y=>{e.item.selected&&y(p)})}var f=A(l,2);let b;var u=h(f);{var _=y=>{var C=He();let T=v(()=>e.item.valueComponent);var I=he(C);$i(I,()=>s(T),(M,P)=>{P(M,us(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),$(y,C)},w=y=>{var C=Kr();k(()=>_e(C,e.item.label)),$(y,C)};V(u,y=>{e.item.valueComponent?y(_):y(w,!1)})}g(f),g(r),tt(r,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),k((y,C)=>{var T;d=J(r,1,"item",null,d,y),Ne(r,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Ne(r,"data-testid",e.item.id),b=J(f,1,"menu-item-value",null,b,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,r),H()}lt(["click","keydown"]);var Lr={"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 X4=(t,e)=>{Ph(t,e.returnFromSubMenu,e.closeSettingsMenu)},J4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},e3=(t,e)=>{jl(t)&&(fr(t),e.returnFromSubMenu())},t3=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),i3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
296
297
  /*\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 {
297
298
  /**
298
299
  * \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.
@@ -302,14 +303,14 @@ Try switching the\xA0quality to\xA0Auto.`},dh=i_;var es=new Map;es.set(uh.EN,dh)
302
303
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
303
304
  1px
304
305
  );}.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,
305
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function rm(t,e){F(e,!0),q(t,Q4);let[i,o]=De(),n=()=>S(y,"$isFullscreen",i),a=()=>S(u,"$playerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),l=m(e,"ariaLabelReturnFromSubMenu",19,()=>z("aria_label_submenu_back")),p=m(e,"listRef",15);zt(()=>{let Z=e.items.findIndex(se=>se.selected);p().children[Z+1].focus()});let f=Ce(),y=f.ui.isFullscreen,u=f.ui.playerSize,_=X(void 0),w=X(0),b=X(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(b)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(w)));var I=K4();let M;var P=h(I);let k;P.__keydown=[z4,e];var V=h(P);let W;V.__click=[W4,e],V.__keydown=[q4,e];var j=h(V);Ss(j,{direction:"left"});var H=A(j,2),Q=h(H,!0);g(H),g(V),gt(V,Z=>D(_,Z),()=>r(_));var ie=A(V,2);$i(ie,17,()=>e.items,Il,(Z,se)=>{var ce=Oe(),Ee=pe(ce);{var Me=ae=>{im(ae,{get item(){return r(se)},get isMobile(){return s()}})},ge=(ae,Pe)=>{{var ne=N=>{om(N,{get isMobile(){return s()},get item(){return r(se)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(ae,N=>{r(se).type==="OPEN_SUB_MENU"&&N(ne)},Pe)}};R(Ee,ae=>{r(se).type==="SELECT_VALUE"?ae(Me):ae(ge,!1)})}$(Z,ce)}),g(P),gt(P,Z=>p(Z),()=>p()),g(I),E((Z,se,ce)=>{M=J(I,1,"sub-menu menu svelte-7dfsuh",null,M,Z),Ne(I,"data-testid",`sub-menu-${e.id}`),rt(I,`min-width: ${r(T)}px`),k=J(P,1,"items svelte-7dfsuh",null,k,se),rt(P,r(C)),W=J(V,1,"item header back svelte-7dfsuh",null,W,ce),Ne(V,"aria-label",l()),me(Q,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Rr(V,"clientWidth",Z=>D(w,Z)),Rr(V,"clientHeight",Z=>D(b,Z)),$(t,I),U(),o()}st(["keydown","click"]);import{noop as G4}from"@vkontakte/videoplayer-shared/es2018";var Y4=(t,e)=>Lc(t,e()),j4=(t,e)=>{t.stopPropagation(),e()()},Z4=L('<div class="value svelte-1ikfjte"> </div>'),X4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),J4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function sm(t,e){F(e,!0),q(t,J4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,G4),n=m(e,"valueComponent",3,void 0),a=m(e,"ref",15);var s=X4();let d;s.__click=[j4,o],s.__keydown=[Y4,o];var l=h(s),p=h(l);{var f=T=>{la(T,{get icon(){return e.icon}})},y=T=>{var I=Oe();let M=v(()=>e.icon);var P=pe(I);yi(P,()=>r(M),(k,V)=>{V(k,{})}),$(T,I)};R(p,T=>{typeof e.icon=="string"?T(f):T(y,!1)})}g(l);var u=A(l,2),_=h(u,!0);g(u);var w=A(u,2);{var b=T=>{var I=Oe();let M=v(n);var P=pe(I);yi(P,()=>r(M),(k,V)=>{V(k,{})}),$(T,I)},C=T=>{var I=Z4(),M=h(I,!0);g(I),E(()=>me(M,e.value)),$(T,I)};R(w,T=>{n()?T(b):T(C,!1)})}g(s),gt(s,T=>a(T),()=>a()),E(T=>{d=J(s,1,"item",null,d,T),Ne(s,"aria-label",e.ariaLabel),Ne(s,"data-testid",e.id),me(_,e.label)},[()=>({mobile:i()})]),$(t,s),U()}st(["click","keydown"]);import{noop as r1}from"@vkontakte/videoplayer-shared/es2018";var e3=(t,e)=>{Ya(t,()=>e())},t3=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),i3=L('<img class="icon" aria-hidden="true">'),o3=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),n3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function am(t,e){F(e,!0),q(t,n3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,r1),n=m(e,"closeSettings",3,r1),a=X(!1),s=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=o3();let p;l.__click=d,l.__keydown=[e3,d];var f=h(l),y=h(f);{var u=C=>{var T=Oe(),I=pe(T);{var M=k=>{var V=t3();$(k,V)},P=k=>{var V=i3();E(()=>Ne(V,"src",e.icon)),Tt("error",V,s),Fs(V),$(k,V)};R(I,k=>{r(a)?k(M):k(P,!1)})}$(C,T)},_=C=>{var T=Oe();let I=v(()=>e.icon);var M=pe(T);yi(M,()=>r(I),(P,k)=>{k(P,{})}),$(C,T)};R(y,C=>{typeof e.icon=="string"?C(u):C(_,!1)})}g(f);var w=A(f,2),b=h(w,!0);g(w),g(l),E(C=>{var T;p=J(l,1,"item",null,p,C),Ne(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ne(l,"data-testid",e.id),me(b,e.label)},[()=>({mobile:i()})]),$(t,l),U()}st(["click","keydown"]);import{noop as a3}from"@vkontakte/videoplayer-shared/es2018";var r3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),s3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function lm(t,e){q(t,s3);let i=m(e,"enabled",3,!1);var o=r3(),n=h(o);let a;$e(2),g(o),E(s=>a=J(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),$(t,o)}var l3=(t,e,i)=>{Ih(t,e(),o=>i()(o))},d3=(t,e,i)=>{t.stopPropagation(),e()(!i())},c3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),u3=L('<li role="menuitem" tabindex="0"><!></li>');function dm(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,a3),n=m(e,"enabled",3,!1),a=m(e,"tooltipText",3,void 0),s=m(e,"maxTooltipWidth",3,void 0);var d=u3();let l;d.__click=[d3,o,n],d.__keydown=[l3,n,o];var p=h(d);ia(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(f,y)=>{var u=c3();let _;var w=h(u),b=h(w);{var C=k=>{la(k,{get icon(){return e.icon}})},T=k=>{var V=Oe();let W=v(()=>e.icon);var j=pe(V);yi(j,()=>r(W),(H,Q)=>{Q(H,{})}),$(k,V)};R(b,k=>{typeof e.icon=="string"?k(C):k(T,!1)})}g(w);var I=A(w,2),M=h(I,!0);g(I);var P=A(I,2);lm(P,{get enabled(){return n()}}),g(u),E(k=>{_=J(u,1,"switch-wrapper",null,_,k),me(M,e.label)},[()=>({mobile:i()})]),$(f,u)},$$slots:{default:!0}}),g(d),E(f=>{var y;l=J(d,1,"item switch-item",null,l,f),Ne(d,"aria-label",(y=e.ariaLabel)!=null?y:e.label),Ne(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),U()}st(["click","keydown"]);import{isValidURL as R3,VideoQuality as g1}from"@vkontakte/videoplayer-shared/es2018";var s1=()=>{let t=X(fe([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{D(t,fe(r(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,fe([]))}}};var p3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),f3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),m3={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 pa(t,e){F(e,!0),q(t,m3);let i=m(e,"isSubCase",3,!1),o=v(()=>Dc(e.quality));var n=f3(),a=h(n);let s;var d=h(a,!0);g(a);var l=A(a,2);{var p=f=>{var y=p3();let u=v(()=>r(o));var _=h(y);yi(_,()=>r(u),(w,b)=>{b(w,{})}),g(y),$(f,y)};R(l,f=>{r(o)&&!e.isMobile&&f(p)})}g(n),E(f=>{s=J(a,1,"svelte-t2qk8t",null,s,f),me(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),U()}import{VideoQuality as v3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as a1}from"@vkontakte/videoplayer-core/es2018";var l1=({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=l1({quality:t,availableQualities:e});return i?t===a1.INVARIANT?z("auto_quality_invariant"):z("auto_quality",{actual:o}):o},c1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===a1.INVARIANT?i:`${i}${l1({quality:t,availableQualities:e})}`:"...";var g3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),h3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function ol(t,e){F(e,!0),q(t,h3);let[i,o]=De(),n=()=>S(l,"$currentQuality$",i),a=()=>S(p,"$availableQualities$",i),s=()=>S(f,"$isMobile$",i),d=Ce(),l=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,y=" \xB7 ",u=v(()=>e.prefix+(e.selected&&n()!==v3.INVARIANT?y:"")),_=v(()=>c1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=g3(),b=h(w);let C=v(()=>e.selected?n():void 0);pa(b,{get quality(){return r(C)},get label(){return r(_)},get isMobile(){return s()},isSubCase:!0}),g(w),$(t,w),U(),o()}var _3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${a}`,"g")},b3={br:!0,span:!0},cm=(t,e={})=>{var d,l,p,f,y,u,_;if(!t)return t;let i={...b3,...e},o=Object.keys(i);if(!o.length)return t;let n=_3(o),a=[],s=0;for(let w of t.matchAll(n)){let b=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(s,T)),s=T+b.length;continue}let I=(y=w.groups)!=null&&y.childrenhtml?cm(w.groups.childrenhtml,i):"",M=(u=w.groups)!=null&&u.childrenhtml?b.replace(new RegExp((_=w.groups)==null?void 0:_.childrenhtml),()=>I||""):b;a.push(t.slice(s,T),M),s=T+b.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function wd(t,e){F(e,!1);let i=m(e,"message",8),o=cm(i());$r();var n=Oe(),a=pe(n);{var s=d=>{var l=Oe(),p=pe(l);kl(p,()=>o,!1,!1),$(d,l)};R(a,d=>{o&&d(s)})}$(t,n),U()}var $3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),y3={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 um(t,e){F(e,!1),q(t,y3),$r();var i=$3(),o=h(i);let n=hr(()=>z("quality_applience",{action:`<span>${z("quality_applience_action")}</span>`}));wd(o,{get message(){return r(n)}}),g(i),$(t,i),U()}var p1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:ol,valueComponentParams:{prefix:z("other_quality"),selected:o},children:"QUALITY"}},pm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:z("auto_quality_limit"),valueComponent:e?ol:void 0,valueComponentParams:{prefix:z("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),f1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:um,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),fm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:z("high_quality"),valueComponent:t?ol:void 0,valueComponentParams:{prefix:z("high_quality"),selected:i},sublabel:z("high_quality_description")}),mm=({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:z("traffic_saving_quality"),valueComponent:t?ol:void 0,valueComponentParams:{prefix:z("traffic_saving_quality"),selected:i},sublabel:z("traffic_saving_quality_description")});var tu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),iu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=qc(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return z("audio_stream_display_language_label",{language:n,label:o});{let l=tu(t,d);return z("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=tu(t,d);return z("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=tu(t,d);return z("audio_stream_display_language_index",{language:n,index:l})}}let a=tu(t,e);return z("audio_stream_display_unknown",{index:a})};var x3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:pm,selected:e&&!o&&!n||!1}),a.push({handler:mm,selected:o},{handler:fm,selected:n}),{title:z("submenu_quality"),id:"QUALITY_DETAILS",items:[f1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),p1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:z("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:pa,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:z("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:pm,selected:((i=xc())==null?void 0:i.type)==="auto_quality"},{handler:mm,selected:((o=xc())==null?void 0:o.type)==="traffic_saving"},{handler:fm,selected:((n=xc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:s})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:s},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:z("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:iu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:z("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:z("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Gc?"sub_off":void 0}))})},m1=({subMenuId:t,context:e})=>t?[x3[t](e)]:[];var w3=ye('<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 vm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=w3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),$(t,o)}var S3=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function gm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=S3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),$(t,o)}var C3=ye('<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 hm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=C3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),$(t,o)}var T3=ye('<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 _m(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=T3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),$(t,o)}var I3=ye('<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 bm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=I3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),$(t,o)}var k3=ye('<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 ou(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=k3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),$(t,o)}var E3=ye('<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 $m(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=E3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),$(t,o)}var P3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),A3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function ym(t,e){F(e,!0),q(t,A3);let[i,o]=De(),n=()=>S(p,"$currentQuality$",i),a=()=>S(f,"$availableQualities$",i),s=()=>S(y,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),l=Ce(),p=l.state.currentQuality$,f=l.state.availableQualities$,y=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,_=v(()=>d1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=P3(),b=h(w);pa(b,{get quality(){return n()},get label(){return r(_)},get isMobile(){return d()}}),g(w),$(t,w),U(),o()}var L3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?z("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_quality",{actual:o}),icon:Zl,label:z("menu_quality"),value:e,valueComponent:ym,weight:wr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:wr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:z("aria_label_submenu_traffic_saving"),icon:vm,label:z("menu_traffic_saving"),enabled:t,tooltipText:z("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=iu(t,e);return{id:"AUDIO_LANGUAGES",weight:wr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_audio_languages",{actual:i}),icon:gm,label:z("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:wr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_rate",{actual:i}),icon:hm,label:z("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:wr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Xl,label:z("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:wr.download,type:"CLICK",onClick:t,label:z("download_video_caption"),ariaLabel:z("aria_label_menu_download"),icon:_m}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:wr.report,type:"CLICK",onClick:t,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,icon:bm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:wr["copy-data"],type:"CLICK",onClick:t,label:z("menu_copy_debug"),ariaLabel:z("menu_copy_debug"),icon:ou,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:wr["save-trace-info"],type:"CLICK",onClick:t,label:z("menu_save_debug"),ariaLabel:z("menu_save_debug"),icon:ou,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:wr["debug-info"],type:"CLICK",onClick:t,label:z("aria_label_menu_debug_overlay"),ariaLabel:z("menu_debug_overlay"),icon:$m,isHiddenFor:["desktop"]})},v1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>L3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var a,s,d;return!((a=n==null?void 0:n.isHiddenFor)!=null&&a.length)||!((s=n==null?void 0:n.isHiddenFor)!=null&&s.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Xs)};var B3=(t,e)=>{Mc(t,e)},N3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),D3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),O3=L("<div><!> <!></div>"),H3={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 {
306
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function cm(t,e){O(e,!0),W(t,i3);let[i,o]=De(),n=()=>S(b,"$isFullscreen",i),a=()=>S(u,"$playerSize",i),r=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),l=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),p=m(e,"listRef",15);Rt(()=>{let Q=e.items.findIndex(de=>de.selected);p().children[Q+1].focus()});let f=Ie(),b=f.ui.isFullscreen,u=f.ui.playerSize,_=X(void 0),w=X(0),y=X(0),C=v(()=>r()&&n()?`max-height: ${Math.round(a().height*.6)}px`:r()?"":`max-height: ${a().height-32-s(y)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,s(w)));var I=t3();let M;var P=h(I);let E;P.__keydown=[X4,e];var R=h(P);let z;R.__click=[J4,e],R.__keydown=[e3,e];var q=h(R);Ds(q,{direction:"left"});var U=A(q,2),Y=h(U,!0);g(U),g(R),tt(R,Q=>D(_,Q),()=>s(_));var se=A(R,2);bi(se,17,()=>e.items,Vl,(Q,de)=>{var le=He(),Me=he(le);{var Be=ce=>{am(ce,{get item(){return s(de)},get isMobile(){return r()}})},ge=(ce,Ae)=>{{var ae=N=>{lm(N,{get isMobile(){return r()},get item(){return s(de)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(ce,N=>{s(de).type==="OPEN_SUB_MENU"&&N(ae)},Ae)}};V(Me,ce=>{s(de).type==="SELECT_VALUE"?ce(Be):ce(ge,!1)})}$(Q,le)}),g(P),tt(P,Q=>p(Q),()=>p()),g(I),k((Q,de,le)=>{M=J(I,1,"sub-menu menu svelte-7dfsuh",null,M,Q),Ne(I,"data-testid",`sub-menu-${e.id}`),st(I,`min-width: ${s(T)}px`),E=J(P,1,"items svelte-7dfsuh",null,E,de),st(P,s(C)),z=J(R,1,"item header back svelte-7dfsuh",null,z,le),Ne(R,"aria-label",l()),_e(Y,e.title)},[()=>({desktop:!r(),mobile:r()}),()=>({mobile:r()}),()=>({mobile:r()})]),Qr(R,"clientWidth",Q=>D(w,Q)),Qr(R,"clientHeight",Q=>D(y,Q)),$(t,I),H(),o()}lt(["keydown","click"]);import{noop as o3}from"@vkontakte/videoplayer-shared/es2018";var n3=(t,e)=>Nc(t,e()),r3=(t,e)=>{t.stopPropagation(),e()()},s3=L('<div class="value svelte-1ikfjte"> </div>'),a3=L('<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 um(t,e){O(e,!0),W(t,l3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,o3),n=m(e,"valueComponent",3,void 0),a=m(e,"ref",15);var r=a3();let d;r.__click=[r3,o],r.__keydown=[n3,o];var l=h(r),p=h(l);{var f=T=>{ha(T,{get icon(){return e.icon}})},b=T=>{var I=He();let M=v(()=>e.icon);var P=he(I);$i(P,()=>s(M),(E,R)=>{R(E,{})}),$(T,I)};V(p,T=>{typeof e.icon=="string"?T(f):T(b,!1)})}g(l);var u=A(l,2),_=h(u,!0);g(u);var w=A(u,2);{var y=T=>{var I=He();let M=v(n);var P=he(I);$i(P,()=>s(M),(E,R)=>{R(E,{})}),$(T,I)},C=T=>{var I=s3(),M=h(I,!0);g(I),k(()=>_e(M,e.value)),$(T,I)};V(w,T=>{n()?T(y):T(C,!1)})}g(r),tt(r,T=>a(T),()=>a()),k(T=>{d=J(r,1,"item",null,d,T),Ne(r,"aria-label",e.ariaLabel),Ne(r,"data-testid",e.id),_e(_,e.label)},[()=>({mobile:i()})]),$(t,r),H()}lt(["click","keydown"]);import{noop as p1}from"@vkontakte/videoplayer-shared/es2018";var d3=(t,e)=>{Ja(t,()=>e())},c3=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),u3=L('<img class="icon" aria-hidden="true">'),p3=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),f3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function pm(t,e){O(e,!0),W(t,f3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,p1),n=m(e,"closeSettings",3,p1),a=X(!1),r=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=p3();let p;l.__click=d,l.__keydown=[d3,d];var f=h(l),b=h(f);{var u=C=>{var T=He(),I=he(T);{var M=E=>{var R=c3();$(E,R)},P=E=>{var R=u3();k(()=>Ne(R,"src",e.icon)),Tt("error",R,r),Zs(R),$(E,R)};V(I,E=>{s(a)?E(M):E(P,!1)})}$(C,T)},_=C=>{var T=He();let I=v(()=>e.icon);var M=he(T);$i(M,()=>s(I),(P,E)=>{E(P,{})}),$(C,T)};V(b,C=>{typeof e.icon=="string"?C(u):C(_,!1)})}g(f);var w=A(f,2),y=h(w,!0);g(w),g(l),k(C=>{var T;p=J(l,1,"item",null,p,C),Ne(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ne(l,"data-testid",e.id),_e(y,e.label)},[()=>({mobile:i()})]),$(t,l),H()}lt(["click","keydown"]);import{noop as g3}from"@vkontakte/videoplayer-shared/es2018";var m3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),v3={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 fm(t,e){W(t,v3);let i=m(e,"enabled",3,!1);var o=m3(),n=h(o);let a;we(2),g(o),k(r=>a=J(n,1,"toggle svelte-17wbjko",null,a,r),[()=>({on:i()})]),$(t,o)}var h3=(t,e,i)=>{Ah(t,e(),o=>i()(o))},_3=(t,e,i)=>{t.stopPropagation(),e()(!i())},b3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),$3=L('<li role="menuitem" tabindex="0"><!></li>');function mm(t,e){O(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,g3),n=m(e,"enabled",3,!1),a=m(e,"tooltipText",3,void 0),r=m(e,"maxTooltipWidth",3,void 0);var d=$3();let l;d.__click=[_3,o,n],d.__keydown=[h3,n,o];var p=h(d);pa(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return r()},children:(f,b)=>{var u=b3();let _;var w=h(u),y=h(w);{var C=E=>{ha(E,{get icon(){return e.icon}})},T=E=>{var R=He();let z=v(()=>e.icon);var q=he(R);$i(q,()=>s(z),(U,Y)=>{Y(U,{})}),$(E,R)};V(y,E=>{typeof e.icon=="string"?E(C):E(T,!1)})}g(w);var I=A(w,2),M=h(I,!0);g(I);var P=A(I,2);fm(P,{get enabled(){return n()}}),g(u),k(E=>{_=J(u,1,"switch-wrapper",null,_,E),_e(M,e.label)},[()=>({mobile:i()})]),$(f,u)},$$slots:{default:!0}}),g(d),k(f=>{var b;l=J(d,1,"item switch-item",null,l,f),Ne(d,"aria-label",(b=e.ariaLabel)!=null?b:e.label),Ne(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),H()}lt(["click","keydown"]);import{isValidURL as W3,VideoQuality as w1}from"@vkontakte/videoplayer-shared/es2018";var f1=()=>{let t=X(ve([])),e=v(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{D(t,ve(s(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,ve([]))}}};var y3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),x3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),w3={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function xa(t,e){O(e,!0),W(t,w3);let i=m(e,"isSubCase",3,!1),o=v(()=>Uc(e.quality));var n=x3(),a=h(n);let r;var d=h(a,!0);g(a);var l=A(a,2);{var p=f=>{var b=y3();let u=v(()=>s(o));var _=h(b);$i(_,()=>s(u),(w,y)=>{y(w,{})}),g(b),$(f,b)};V(l,f=>{s(o)&&!e.isMobile&&f(p)})}g(n),k(f=>{r=J(a,1,"svelte-t2qk8t",null,r,f),_e(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),H()}import{VideoQuality as S3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as m1}from"@vkontakte/videoplayer-core/es2018";var v1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},g1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=v1({quality:t,availableQualities:e});return i?t===m1.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},h1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===m1.INVARIANT?i:`${i}${v1({quality:t,availableQualities:e})}`:"...";var C3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),T3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function al(t,e){O(e,!0),W(t,T3);let[i,o]=De(),n=()=>S(l,"$currentQuality$",i),a=()=>S(p,"$availableQualities$",i),r=()=>S(f,"$isMobile$",i),d=Ie(),l=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,b=" \xB7 ",u=v(()=>e.prefix+(e.selected&&n()!==S3.INVARIANT?b:"")),_=v(()=>h1({prefix:s(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=C3(),y=h(w);let C=v(()=>e.selected?n():void 0);xa(y,{get quality(){return s(C)},get label(){return s(_)},get isMobile(){return r()},isSubCase:!0}),g(w),$(t,w),H(),o()}var I3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${a}`,"g")},E3={br:!0,span:!0},vm=(t,e={})=>{var d,l,p,f,b,u,_;if(!t)return t;let i={...E3,...e},o=Object.keys(i);if(!o.length)return t;let n=I3(o),a=[],r=0;for(let w of t.matchAll(n)){let y=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(r,T)),r=T+y.length;continue}let I=(b=w.groups)!=null&&b.childrenhtml?vm(w.groups.childrenhtml,i):"",M=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp((_=w.groups)==null?void 0:_.childrenhtml),()=>I||""):y;a.push(t.slice(r,T),M),r=T+y.length}return r===0?t:(a.push(t.slice(r)),a.join(""))};function kd(t,e){O(e,!1);let i=m(e,"message",8),o=vm(i());kr();var n=He(),a=he(n);{var r=d=>{var l=He(),p=he(l);Rl(p,()=>o,!1,!1),$(d,l)};V(a,d=>{o&&d(r)})}$(t,n),H()}var k3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),P3={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 gm(t,e){O(e,!1),W(t,P3),kr();var i=k3(),o=h(i);let n=Tr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));kd(o,{get message(){return s(n)}}),g(i),$(t,i),H()}var b1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:al,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},hm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?al:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),$1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:gm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),_m=({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?al:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),bm=({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?al:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var su=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),au=(t,e)=>{var r;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(r=Yc(i))!=null?r:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let l=su(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=su(t,d);return F("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=su(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=su(t,e);return F("audio_stream_display_unknown",{index:a})};var A3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:hm,selected:e&&!o&&!n||!1}),a.push({handler:bm,selected:o},{handler:_m,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[$1(t),...a.map(({handler:r,selected:d})=>r({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),b1(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:xa,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"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:hm,selected:((i=Tc())==null?void 0:i.type)==="auto_quality"},{handler:bm,selected:((o=Tc())==null?void 0:o.type)==="traffic_saving"},{handler:_m,selected:((n=Tc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:r})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:r},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:au(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===Xc?"sub_off":void 0}))})},y1=({subMenuId:t,context:e})=>t?[A3[t](e)]:[];var M3=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function $m(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=M3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),$(t,o)}var L3=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function ym(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=L3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),$(t,o)}var V3=Se('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function xm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=V3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),$(t,o)}var R3=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function wm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=R3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),$(t,o)}var B3=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function Sm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=B3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),$(t,o)}var N3=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function lu(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=N3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),$(t,o)}var D3=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function Cm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=D3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),$(t,o)}var O3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),H3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Tm(t,e){O(e,!0),W(t,H3);let[i,o]=De(),n=()=>S(p,"$currentQuality$",i),a=()=>S(f,"$availableQualities$",i),r=()=>S(b,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),l=Ie(),p=l.state.currentQuality$,f=l.state.availableQualities$,b=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,_=v(()=>g1({quality:n(),availableQualities:a(),isAutoQualityEnabled:r()}));var w=O3(),y=h(w);xa(y,{get quality(){return n()},get label(){return s(_)},get isMobile(){return d()}}),g(w),$(t,w),H(),o()}var U3={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:nd,label:F("menu_quality"),value:e,valueComponent:Tm,weight:Lr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Lr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:$m,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=au(t,e);return{id:"AUDIO_LANGUAGES",weight:Lr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:ym,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:Lr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:xm,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Lr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:rd,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Lr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:wm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Lr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:Sm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Lr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:lu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Lr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:lu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Lr["debug-info"],type:"CLICK",onClick:t,label:F("aria_label_menu_debug_overlay"),ariaLabel:F("menu_debug_overlay"),icon:Cm,isHiddenFor:["desktop"]})},x1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>U3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var a,r,d;return!((a=n==null?void 0:n.isHiddenFor)!=null&&a.length)||!((r=n==null?void 0:n.isHiddenFor)!=null&&r.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(la)};var q3=(t,e)=>{Bc(t,e)},K3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Q3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),G3=L("<div><!> <!></div>"),Y3={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 {
306
307
  /* \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),
307
308
  .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),
308
309
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
309
- .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 Sd(t,e){F(e,!0),q(t,H3);let[i,o]=De(),n=()=>S(He,"$settingsMenuVisible",i),a=()=>S(je,"$settingsMenuOpenedByKeyboard",i),s=()=>S(It,"$debugPanelVisible",i),d=()=>S(Ve,"$isMobile",i),l=()=>S(it,"$playerSize",i),p=()=>S(ee,"$hasMpegSources$",i),f=()=>S(Ie,"$mobileNotReportControlHidden$",i),y=()=>S(ne,"$autoQualityLimitingAvailable$",i),u=()=>S(K,"$availableSubtitlesList$",i),_=()=>S(Ue,"$isLiveWithPlaybackSpeed",i),w=()=>S(ge,"$availableAudioStreams$",i),b=()=>S(ze,"$availablePlaybackRates$",i),C=()=>S(Me,"$currentAudioStream$",i),T=()=>S(_e,"$currentPlaybackRate$",i),I=()=>S(lt,"$trafficSavingEnabled",i),M=()=>S(ae,"$currentQuality$",i),P=()=>S(N,"$isAutoQualityEnabled$",i),k=()=>S(re,"$currentSubtitle$",i),V=()=>S(Qt,"$additionalSettingsMenuItems$",i),W=()=>S(ue,"$isAutoQualityAvailable$",i),j=()=>S(Pe,"$availableQualities$",i),H=()=>S(dt,"$highQualityEnabled",i),Q=m(e,"ref",15,void 0),ie=m(e,"playerControlsHeight",3,0),Z=fe({}),se=fe({}),ce=Ce(),Ee=Wt(),Me=ce.state.audioStream$,ge=ce.state.availableAudioStreams$,ae=ce.state.currentQuality$,Pe=ce.state.availableQualities$,ne=ce.state.autoQualityLimitingAvailable$,N=ce.state.isAutoQualityEnabled$,ue=ce.state.isAutoQualityAvailable$,_e=ce.state.currentPlaybackRate$,ze=ce.state.availablePlaybackRates$,re=ce.state.currentSubtitle$,K=ce.state.availableSubtitlesList$,he=ce.state.canDownload,ee=ce.state.hasMpegSources$,He=ce.ui.settingsMenu.visible$,je=ce.ui.settingsMenu.openedByBtnKeyboard$,we=ce.ui.settingsMenu.ref$,Ve=ce.ui.isMobile,Ie=ce.ui.mobileNotReportControlHidden$,Ue=ce.state.canChangePlaybackSpeed$,lt=ce.state.trafficSavingEnabled$,dt=ce.state.highQualityEnabled$,it=ce.ui.playerSize,It=ce.ui.debugPanelVisible,ht=ce.state.isInteractiveTime$,Qt=ce.ui.additionalSettingsMenuItems$,Zt=ce.ui.t,At=ce.actions.internal.downloadVideo,Rt=ce.actions.internal.closeSettingsMenu,O=ce.actions.internal.openSettingsSubMenu,be=ce.actions.internal.closeSettingsSubMenu,oe=X(!1),Be=X(void 0),Ke=s1();Fe(()=>{!n()&&Ke.current&&(be(se[Ke.current]),Ke.popAllSubMenus())}),Fe(()=>{n()||D(Be,void 0)}),Fe(()=>{!Ke.current&&r(Be)&&Ch(Z,r(Be))}),Fe(()=>{Q()&&we.set(Q())});async function Ye(Je){Ke.pushSubMenu(Je),await vo(),O(Je,se[Je])}function Le(Je){var Lt;Je==null||Je.stopPropagation(),a()||(Lt=e.returnFocus)==null||Lt.call(e),Rt(),D(oe,!1)}function tt(Je,Lt){ce.actions.internal.setQuality(Je,{appliesTo:Lt}),Le()}function Xe(Je){ce.actions.internal.setAudioStream(Je),Le()}function bt(Je,Lt){ce.actions.internal.setTrafficSavingEnabled(Je,Lt),Ee.features.qualityDetailsSubMenuEnabled&&Le()}function ut(Je,Lt){ce.actions.internal.setHighQualityEnabled(Je,Lt),Le()}function ft(Je){ce.actions.internal.setPlaybackRate(Je),Le()}function Bt(Je){ce.actions.internal.setSubtitle(Je),Le()}function Qe(){At()}function ri(){R3(e.supportLink)&&window.open(e.supportLink,"_blank"),ce.actions.internal.reportProblem(),ce.actions.internal.pause()}function bi(){Ka(ce.actions.internal.getDebugTextData())}let et=()=>{let Je=ce.actions.internal.getTraceTextData(),Lt=new Blob([...Je],{type:"application/json"}),no=window.URL.createObjectURL(Lt);Qs(no,"vk_player_trace_info","json")};function Gt(){It.set(!s())}function ki(){D(oe,!0)}function zi(){D(oe,!1)}function Mt(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-ie()}px; overflow: auto;`}let $t=v(()=>he&&p()&&!f()),Nt=v(()=>Ee.features.trafficSaving&&!f()&&y()&&!Ee.features.qualityDetailsSubMenuEnabled),oo=v(()=>u().length>0&&!f()),sn=v(()=>!!_()&&!f()),hn=v(()=>Ee.features.audioLanguages&&w().length>=2&&!f()),bo=v(()=>!f());zt(()=>ht.subscribe(Je=>{Je&&!d()&&!r(oe)&&!a()&&Le()}));let G=v(()=>{let Je=[r(bo)&&"QUALITY_SETTINGS",r(hn)&&"AUDIO_LANGUAGES",r(sn)&&"PLAYBACK_RATE",r(oo)&&"SUBTITLES",r(Nt)&&"TRAFFIC_SAVING_SWITCH",r($t)&&"DOWNLOAD",Ee.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ee.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Lt=>!!Lt);return v1({items:Je,context:{qualityDetailsSubMenuEnabled:Ee.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:b(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:ft,trafficSavingEnabled:I(),toggleTrafficSaving:bt,currentQuality:M()||g1.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:k(),isMobile:d(),onDownloadClick:Qe,onCopyDataClick:bi,onReportProblemClick:ri,onSaveTraceDataClick:et,toggleShowDebugInfo:Gt},additionalSettingsMenuItems:V()})}),Xt=v(()=>m1({subMenuId:Ke.current,context:{availablePlaybackRates:b(),selectPlaybackRate:ft,trafficSavingEnabled:I(),toggleTrafficSaving:bt,currentQuality:M()||g1.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:W()||!1,availableQualities:j(),highQualityEnabled:H(),toggleHighQuality:ut,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Rt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Xe,selectQuality:tt,selectSubtitle:Bt}}));var _i=O3();let Ei;var ai=h(_i);{var mt=Je=>{var Lt=D3();let no;Lt.__keydown=[B3,Rt];var ti=h(Lt);{var rr=li=>{var St=N3();let Pi;var Eo=h(St),ui=h(Eo,!0);g(Eo);var Oo=A(Eo,2);Oo.__click=Le,g(St),E((Vi,$o)=>{Pi=J(St,1,"item header svelte-17or3al",null,Pi,Vi),me(ui,$o)},[()=>({mobile:d()}),()=>Zt("submenu_settings")]),$(li,St)};R(ti,li=>{d()&&li(rr)})}var ro=A(ti,2);let ko;$i(ro,21,()=>r(G),li=>li.id,(li,St)=>{var Pi=Oe(),Eo=pe(Pi);{var ui=Vi=>{sm(Vi,{get isMobile(){return d()},get id(){return r(St).id},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},get value(){return r(St).value},get valueComponent(){return r(St).valueComponent},onClick:()=>{Ye(r(St).children),D(Be,fe(r(St).id))},get ref(){return Z[r(St).id]},set ref($o){Z[r(St).id]=$o}})},Oo=(Vi,$o)=>{{var yo=Ri=>{am(Ri,{get isMobile(){return d()},get id(){return r(St).id},get onClick(){return r(St).onClick},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},closeSettings:Le})},Hn=(Ri,_n)=>{{var xo=Po=>{dm(Po,{get isMobile(){return d()},get id(){return r(St).id},get onClick(){return r(St).onClick},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},get enabled(){return r(St).enabled},get tooltipText(){return r(St).tooltipText},get maxTooltipWidth(){return r(St).maxTooltipWidth}})};R(Ri,Po=>{r(St).type==="SWITCH"&&Po(xo)},_n)}};R(Vi,Ri=>{r(St).type==="CLICK"?Ri(yo):Ri(Hn,!1)},$o)}};R(Eo,Vi=>{r(St).type==="OPEN_SUB_MENU"?Vi(ui):Vi(Oo,!1)})}$(li,Pi)}),g(ro),gt(ro,li=>Q(li),()=>Q()),g(Lt),E((li,St,Pi)=>{no=J(Lt,1,"settings-menu menu svelte-17or3al",null,no,li),ko=J(ro,1,"items",null,ko,St),rt(ro,Pi)},[()=>({desktop:!d(),mobile:d(),hidden:!!Ke.current}),()=>({mobile:d()}),Mt]),Tt("mouseenter",Lt,ki),Tt("mouseleave",Lt,zi),$(Je,Lt)};R(ai,Je=>{n()&&Je(mt)})}var pi=A(ai,2);$i(pi,17,()=>r(Xt),Je=>Je.id,(Je,Lt)=>{let no=v(()=>{var ti;return(ti=r(Lt).minWidth)!=null?ti:137});rm(Je,{get isMobile(){return d()},get playerControlsHeight(){return ie()},get returnFromSubMenu(){return Ke.popSubMenu},get id(){return r(Lt).id},get title(){return r(Lt).title},closeSettingsMenu:Rt,openSubMenuList:Ye,get items(){return r(Lt).items},get minWidth(){return r(no)},get refMenuItems(){return Z},get listRef(){return se[r(Lt).id]},set listRef(ti){se[r(Lt).id]=ti}})}),g(_i),E(Je=>Ei=J(_i,1,"settings-menu-container svelte-17or3al",null,Ei,Je),[()=>({mobile:d(),hidden:!n()})]),$(t,_i),U(),o()}st(["keydown","click"]);var F3=t=>t;function h1(t,{delay:e=0,duration:i=400,easing:o=F3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var U3=L('<button class="button svelte-1sbbskl"> </button>'),z3={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 xm(t,e){q(t,z3);var i=U3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),E(()=>me(o,e.label)),$(t,i)}st(["click"]);var W3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),q3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
310
+ .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 Pd(t,e){O(e,!0),W(t,Y3);let[i,o]=De(),n=()=>S(ze,"$settingsMenuVisible",i),a=()=>S(Je,"$settingsMenuOpenedByKeyboard",i),r=()=>S(St,"$debugPanelVisible",i),d=()=>S(ie,"$isMobile",i),l=()=>S(rt,"$playerSize",i),p=()=>S(Z,"$hasMpegSources$",i),f=()=>S(Ee,"$mobileNotReportControlHidden$",i),b=()=>S(ae,"$autoQualityLimitingAvailable$",i),u=()=>S(me,"$availableSubtitlesList$",i),_=()=>S(qe,"$isLiveWithPlaybackSpeed",i),w=()=>S(ge,"$availableAudioStreams$",i),y=()=>S(We,"$availablePlaybackRates$",i),C=()=>S(Be,"$currentAudioStream$",i),T=()=>S(ee,"$currentPlaybackRate$",i),I=()=>S(nt,"$trafficSavingEnabled",i),M=()=>S(ce,"$currentQuality$",i),P=()=>S(N,"$isAutoQualityEnabled$",i),E=()=>S(ne,"$currentSubtitle$",i),R=()=>S(Yt,"$additionalSettingsMenuItems$",i),z=()=>S(Ge,"$isAutoQualityAvailable$",i),q=()=>S(Ae,"$availableQualities$",i),U=()=>S(dt,"$highQualityEnabled",i),Y=m(e,"ref",15,void 0),se=m(e,"playerControlsHeight",3,0),Q=ve({}),de=ve({}),le=Ie(),Me=Ht(),Be=le.state.audioStream$,ge=le.state.availableAudioStreams$,ce=le.state.currentQuality$,Ae=le.state.availableQualities$,ae=le.state.autoQualityLimitingAvailable$,N=le.state.isAutoQualityEnabled$,Ge=le.state.isAutoQualityAvailable$,ee=le.state.currentPlaybackRate$,We=le.state.availablePlaybackRates$,ne=le.state.currentSubtitle$,me=le.state.availableSubtitlesList$,$e=le.state.canDownload,Z=le.state.hasMpegSources$,ze=le.ui.settingsMenu.visible$,Je=le.ui.settingsMenu.openedByBtnKeyboard$,Ce=le.ui.settingsMenu.ref$,ie=le.ui.isMobile,Ee=le.ui.mobileNotReportControlHidden$,qe=le.state.canChangePlaybackSpeed$,nt=le.state.trafficSavingEnabled$,dt=le.state.highQualityEnabled$,rt=le.ui.playerSize,St=le.ui.debugPanelVisible,ct=le.state.isInteractiveTime$,Yt=le.ui.additionalSettingsMenuItems$,ni=le.ui.t,Ot=le.actions.internal.downloadVideo,Et=le.actions.internal.closeSettingsMenu,te=le.actions.internal.openSettingsSubMenu,At=le.actions.internal.closeSettingsSubMenu,j=X(!1),pe=X(void 0),Pe=f1();Ue(()=>{!n()&&Pe.current&&(At(de[Pe.current]),Pe.popAllSubMenus())}),Ue(()=>{n()||D(pe,void 0)}),Ue(()=>{!Pe.current&&s(pe)&&kh(Q,s(pe))}),Ue(()=>{Y()&&Ce.set(Y())});async function Re(et){Pe.pushSubMenu(et),await _o(),te(et,de[et])}function fe(et){var Mt;et==null||et.stopPropagation(),a()||(Mt=e.returnFocus)==null||Mt.call(e),Et(),D(j,!1)}function Ke(et,Mt){le.actions.internal.setQuality(et,{appliesTo:Mt}),fe()}function it(et){le.actions.internal.setAudioStream(et),fe()}function Ze(et,Mt){le.actions.internal.setTrafficSavingEnabled(et,Mt),Me.features.qualityDetailsSubMenuEnabled&&fe()}function yt(et,Mt){le.actions.internal.setHighQualityEnabled(et,Mt),fe()}function mt(et){le.actions.internal.setPlaybackRate(et),fe()}function Wt(et){le.actions.internal.setSubtitle(et),fe()}function gt(){Ot()}function xi(){W3(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function zt(){ja(le.actions.internal.getDebugTextData())}let je=()=>{let et=le.actions.internal.getTraceTextData(),Mt=new Blob([...et],{type:"application/json"}),lo=window.URL.createObjectURL(Mt);oa(lo,"vk_player_trace_info","json")};function Jt(){St.set(!r())}function Wi(){D(j,!0)}function Ni(){D(j,!1)}function ao(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-se()}px; overflow: auto;`}let qi=v(()=>$e&&p()&&!f()),ot=v(()=>Me.features.trafficSaving&&!f()&&b()&&!Me.features.qualityDetailsSubMenuEnabled),bt=v(()=>u().length>0&&!f()),li=v(()=>!!_()&&!f()),wi=v(()=>Me.features.audioLanguages&&w().length>=2&&!f()),xo=v(()=>!f());Rt(()=>ct.subscribe(et=>{et&&!d()&&!s(j)&&!a()&&fe()}));let G=v(()=>{let et=[s(xo)&&"QUALITY_SETTINGS",s(wi)&&"AUDIO_LANGUAGES",s(li)&&"PLAYBACK_RATE",s(bt)&&"SUBTITLES",s(ot)&&"TRAFFIC_SAVING_SWITCH",s(qi)&&"DOWNLOAD",Me.showSupport&&"SHOW_SUPPORT","COPY_DATA",Me.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Mt=>!!Mt);return x1({items:et,context:{qualityDetailsSubMenuEnabled:Me.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:mt,trafficSavingEnabled:I(),toggleTrafficSaving:Ze,currentQuality:M()||w1.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:gt,onCopyDataClick:zt,onReportProblemClick:xi,onSaveTraceDataClick:je,toggleShowDebugInfo:Jt},additionalSettingsMenuItems:R()})}),qt=v(()=>y1({subMenuId:Pe.current,context:{availablePlaybackRates:y(),selectPlaybackRate:mt,trafficSavingEnabled:I(),toggleTrafficSaving:Ze,currentQuality:M()||w1.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:z()||!1,availableQualities:q(),highQualityEnabled:U(),toggleHighQuality:yt,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Et,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:it,selectQuality:Ke,selectSubtitle:Wt}}));var ci=G3();let Pi;var si=h(ci);{var di=et=>{var Mt=Q3();let lo;Mt.__keydown=[q3,Et];var ei=h(Mt);{var Zn=_i=>{var vt=K3();let Mi;var Vo=h(vt),Tn=h(Vo,!0);g(Vo);var ai=A(Vo,2);ai.__click=fe,g(vt),k((Si,Ro)=>{Mi=J(vt,1,"item header svelte-17or3al",null,Mi,Si),_e(Tn,Ro)},[()=>({mobile:d()}),()=>ni("submenu_settings")]),$(_i,vt)};V(ei,_i=>{d()&&_i(Zn)})}var Ai=A(ei,2);let Lo;bi(Ai,21,()=>s(G),_i=>_i.id,(_i,vt)=>{var Mi=He(),Vo=he(Mi);{var Tn=Si=>{um(Si,{get isMobile(){return d()},get id(){return s(vt).id},get icon(){return s(vt).icon},get label(){return s(vt).label},get ariaLabel(){return s(vt).ariaLabel},get value(){return s(vt).value},get valueComponent(){return s(vt).valueComponent},onClick:()=>{Re(s(vt).children),D(pe,ve(s(vt).id))},get ref(){return Q[s(vt).id]},set ref(Ro){Q[s(vt).id]=Ro}})},ai=(Si,Ro)=>{{var In=wo=>{pm(wo,{get isMobile(){return d()},get id(){return s(vt).id},get onClick(){return s(vt).onClick},get icon(){return s(vt).icon},get label(){return s(vt).label},get ariaLabel(){return s(vt).ariaLabel},closeSettings:fe})},Bo=(wo,fn)=>{{var Go=co=>{mm(co,{get isMobile(){return d()},get id(){return s(vt).id},get onClick(){return s(vt).onClick},get icon(){return s(vt).icon},get label(){return s(vt).label},get ariaLabel(){return s(vt).ariaLabel},get enabled(){return s(vt).enabled},get tooltipText(){return s(vt).tooltipText},get maxTooltipWidth(){return s(vt).maxTooltipWidth}})};V(wo,co=>{s(vt).type==="SWITCH"&&co(Go)},fn)}};V(Si,wo=>{s(vt).type==="CLICK"?wo(In):wo(Bo,!1)},Ro)}};V(Vo,Si=>{s(vt).type==="OPEN_SUB_MENU"?Si(Tn):Si(ai,!1)})}$(_i,Mi)}),g(Ai),tt(Ai,_i=>Y(_i),()=>Y()),g(Mt),k((_i,vt,Mi)=>{lo=J(Mt,1,"settings-menu menu svelte-17or3al",null,lo,_i),Lo=J(Ai,1,"items",null,Lo,vt),st(Ai,Mi)},[()=>({desktop:!d(),mobile:d(),hidden:!!Pe.current}),()=>({mobile:d()}),ao]),Tt("mouseenter",Mt,Wi),Tt("mouseleave",Mt,Ni),$(et,Mt)};V(si,et=>{n()&&et(di)})}var ut=A(si,2);bi(ut,17,()=>s(qt),et=>et.id,(et,Mt)=>{let lo=v(()=>{var ei;return(ei=s(Mt).minWidth)!=null?ei:137});cm(et,{get isMobile(){return d()},get playerControlsHeight(){return se()},get returnFromSubMenu(){return Pe.popSubMenu},get id(){return s(Mt).id},get title(){return s(Mt).title},closeSettingsMenu:Et,openSubMenuList:Re,get items(){return s(Mt).items},get minWidth(){return s(lo)},get refMenuItems(){return Q},get listRef(){return de[s(Mt).id]},set listRef(ei){de[s(Mt).id]=ei}})}),g(ci),k(et=>Pi=J(ci,1,"settings-menu-container svelte-17or3al",null,Pi,et),[()=>({mobile:d(),hidden:!n()})]),$(t,ci),H(),o()}lt(["keydown","click"]);var j3=t=>t;function S1(t,{delay:e=0,duration:i=400,easing:o=j3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var Z3=L('<button class="button svelte-1sbbskl"> </button>'),X3={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 Im(t,e){W(t,X3);var i=Z3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),k(()=>_e(o,e.label)),$(t,i)}lt(["click"]);var J3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),ex={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
310
311
  /**
311
312
  * \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.
312
- */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 Cd(t,e){F(e,!0),q(t,q3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Wt(),{ui:{t:n}}=Ce(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=W3(),d=h(s),l=h(d),p=h(l),f=h(p);wd(f,{message:a}),g(p);var y=A(p,2);{var u=w=>{let b=v(()=>n("slow_video_notification_button"));xm(w,{get label(){return r(b)},get onClick(){return e.onSelectAutoQuality}})};R(y,w=>{o||w(u)})}g(l);var _=A(l,2);Js(_,{get onClick(){return e.onClose}}),g(d),g(s),dp(3,d,()=>h1,()=>({duration:i})),$(t,s),U()}import{Subscription as K3}from"@vkontakte/videoplayer-shared/es2018";var fa="annotation",nu=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:a,hideAllControls:s}=i;e.setAttribute("slot",fa),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(n,a),s&&((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 y;let n=this.slots.get(e);if(!n)return;let a=await this.findSlotElement(n.rootElement,i,e),s=(u,_)=>!(u.right<_.left||u.left>_.right||u.bottom<_.top||u.top>_.bottom),{controls:d,hiddenControls:l}=((y=this.store)==null?void 0:y.ui)||{},p=new MutationObserver(u=>u.forEach(()=>{let _=is(a,this.shadowRootContainer);o.forEach(w=>{let b=d==null?void 0:d[w],C=b?xe(b):null,T=l==null?void 0:l[w];C&&(T==null||T.set(s(C,_)))})}));p.observe(a,{childList:!0,subtree:!0}),n.observer=p;let f=new K3;o.forEach(u=>{d&&f.add(d[u].subscribe(_=>{let w=l==null?void 0:l[u];_&&(w==null||w.set(s(_,is(a,this.shadowRootContainer))))}))}),n.subs=f}async findSlotElement(e,i,o){return new Promise(n=>{let a=null,s=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){s.disconnect();let l=this.slots.get(o);l&&(l.observerForFindingSlotElement=void 0),n(a)}});s.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=s)})}remove(e){var p,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:a,subs:s,options:{controlsBehaviour:d,hideAllControls:l}}=i;o&&o.remove(),[n,a].forEach(y=>y==null?void 0:y.disconnect()),s==null||s.unsubscribe(),this.slots.delete(e),l&&((p=this.store)==null||p.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(y=>{var u,_;(_=(u=this.store)==null?void 0:u.ui.hiddenControls[y])==null||_.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var Q3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),G3={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;
313
+ */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 Ad(t,e){O(e,!0),W(t,ex);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Ht(),{ui:{t:n}}=Ie(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var r=J3(),d=h(r),l=h(d),p=h(l),f=h(p);kd(f,{message:a}),g(p);var b=A(p,2);{var u=w=>{let y=v(()=>n("slow_video_notification_button"));Im(w,{get label(){return s(y)},get onClick(){return e.onSelectAutoQuality}})};V(b,w=>{o||w(u)})}g(l);var _=A(l,2);da(_,{get onClick(){return e.onClose}}),g(d),g(r),mp(3,d,()=>S1,()=>({duration:i})),$(t,r),H()}import{isIntersecting as C1,Subscription as tx}from"@vkontakte/videoplayer-shared/es2018";var wa="annotation",du=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:a,hideAllControls:r}=i;e.setAttribute("slot",wa),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(n,a),r&&((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 a=await this.findSlotElement(n.rootElement,i,e),{controls:r,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},l=new MutationObserver(b=>b.forEach(()=>{let u=ms(a,this.shadowRootContainer);o.forEach(_=>{let w=r==null?void 0:r[_],y=w?xe(w):null,C=d==null?void 0:d[_];y&&(C==null||C.set(C1(y,u)))})}));l.observe(a,{childList:!0,subtree:!0}),n.observer=l;let p=new tx;o.forEach(b=>{r&&p.add(r[b].subscribe(u=>{let _=d==null?void 0:d[b];u&&u.isDisplayed?_==null||_.set(C1(u,ms(a,this.shadowRootContainer))):_==null||_.set(!1)}))}),n.subs=p}async findSlotElement(e,i,o){return new Promise(n=>{let a=null,r=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){r.disconnect();let l=this.slots.get(o);l&&(l.observerForFindingSlotElement=void 0),n(a)}});r.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=r)})}remove(e){var p,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:a,subs:r,options:{controlsBehaviour:d,hideAllControls:l}}=i;o&&o.remove(),[n,a].forEach(b=>b==null?void 0:b.disconnect()),r==null||r.unsubscribe(),this.slots.delete(e),l&&((p=this.store)==null||p.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(b=>{var u,_;(_=(u=this.store)==null?void 0:u.ui.hiddenControls[b])==null||_.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var ix=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),ox={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;
313
314
 
314
315
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
315
316
 
@@ -340,8 +341,8 @@ Try switching the\xA0quality to\xA0Auto.`},dh=i_;var es=new Map;es.set(uh.EN,dh)
340
341
  opacity: 0;
341
342
  scale: 0;
342
343
  }
343
- }`};function wm(t,e){F(e,!0),q(t,G3);let[i,o]=De(),n=()=>S(s,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Ce(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:y}}=Wt(),u=0,_=X(null),w=X(!1);Fe(()=>{D(_,fe(n()?xr:rs))}),Fe(()=>{D(_,fe(a()?ws:null))}),Fe(()=>{if(p)return u=window.setTimeout(()=>{u=0,a()&&r(_)===ws&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),D(_,null)},r(_)!==ws?f:y),()=>{u&&(window.clearTimeout(u),u=0)}}),Fe(()=>{n()&&!r(w)&&(D(w,!0),D(_,null))});var b=Oe(),C=pe(b);{var T=I=>{var M=Oe(),P=pe(M);zs(P,()=>r(_),k=>{var V=Q3(),W=h(V),j=h(W);let H=v(()=>a()==="prev");yi(j,()=>r(_),(Q,ie)=>{ie(Q,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(H)}})}),g(W),g(V),E(()=>rt(W,`animation-duration: ${r(_)!==ws?f:y}ms`)),$(k,V)}),$(I,M)};R(C,I=>{r(_)&&p&&I(T)})}$(t,b),U(),o()}var Y3=L('<div><div data-testid="video-container"></div></div>'),j3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
344
- .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 ma(t,e){F(e,!0),q(t,j3);let[i,o]=De(),n=()=>S(f,"$rotateAlpha",i),a=()=>S(y,"$playerSize",i),s=()=>S(p,"$playerPhase",i),d=()=>S(u,"$isPlaying$",i),l=m(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:y},state:{isPlaying$:u}}=Ce(),{isSmoothVideoRotate:_}=Wt(),w=v(()=>l()&&n()%180?a().height/a().width:1);var b=Y3();let C;b.__contextmenu=function(...I){var M;(M=e.onContextMenu)==null||M.apply(this,I)},b.__mousedown=function(...I){var M;(M=e.onMouseDown)==null||M.apply(this,I)},b.__mouseup=function(...I){var M;(M=e.onMouseUp)==null||M.apply(this,I)},b.__click=function(...I){var M;(M=e.onClick)==null||M.apply(this,I)},b.__dblclick=function(...I){var M;(M=e.onDblClick)==null||M.apply(this,I)};var T=h(b);J(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!_}),gt(T,I=>l(I),()=>l()),g(b),E(I=>{C=J(b,1,"video-wrapper svelte-1czns9r",null,C,I),rt(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Ne(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),$(t,b),U(),o()}st(["contextmenu","mousedown","mouseup","click","dblclick"]);var Z3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},X3=L("<div><!></div>"),J3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),ex=L("<div><!></div>"),tx=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),ix=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ox=L("<!> <!> <!>",1),nx=L('<div class="blocked svelte-jtgjmv"></div>'),rx=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),sx={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 Sm(t,e){F(e,!0),q(t,sx);let[i,o]=De(),n=()=>S(Fo,"$notificationsToShow$",i),a=()=>S(ki,"$playerPhase",i),s=()=>S(Xt,"$isLoaderVisible",i),d=()=>S(bi,"$adPlaybackState",i),l=()=>S(Lt,"$crashed",i),p=()=>S(Eo,"$isInteractiveTime$",i),f=()=>S(Nt,"$settingsMenuVisible",i),y=()=>S(ui,"$isInteractiveExpectation$",i),u=()=>S($t,"$controlsVisible",i),_=()=>S(Vi,"$touched",i),w=()=>S(Un,"$graphIsOpened$",i),b=()=>S(zi,"$isFullscreen",i),C=()=>S(Sr,"$autoplayNextEnabled$",i),T=()=>S(mt,"$postrollPassed",i),I=()=>S(_i,"$isEnded$",i),M=()=>S(In,"$cursorInside",i),P=()=>S(Fn,"$isControlsAvailable",i),k=()=>S($n,"$fakeIsPlaying$",i),V=()=>S(Tn,"$bottomNoSmooth",i),W=()=>S(Ri,"$interactiveTimeIndicator",i),j=()=>S(ko,"$playerSize",i),H=()=>S(li,"$is3DVideo",i),Q=()=>S(bo,"$contextMenuVisible$",i),ie=()=>S(ri,"$playbackState$",i),Z=()=>S($o,"$hotKeyMapData",i),se=()=>S(sn,"$scrubbingInProgress",i),ce=()=>S(hn,"$volumeChangingInProgress",i),Ee=()=>S(Ei,"$chromecastConnected$",i),Me=()=>S(zo,"$controlsTimeoutActive",i),ge=()=>S(oo,"$settingsMenuOpenedByKeyboard",i),ae=()=>S(qo,"$contextMenuOpenedByKeyboard$",i),Pe=()=>S(pr,"$contextMenuButtonRef$",i),ne=()=>S(fr,"$contextMenuOpenedByHotKey$",i),N=()=>S(Fr,"$contextMenuLastActiveElem$",i),ue=()=>S(Mt,"$isFullscreenOpenedByKeyboard",i),_e=()=>S(Qe,"$language$",i),ze=()=>S(St,"$icon3DVideoVisible",i),re=()=>S(ai,"$chromecastDeviceName$",i),K=()=>S(rr,"$currentSubtitle$",i),he=()=>S(ro,"$currentSubtitleCaptions$",i),ee=()=>S(et,"$position$",i),He=()=>S(Gt,"$duration$",i),je=()=>S(pi,"$isLive$",i),we=()=>S(Je,"$isPlaying$",i),Ve=()=>S(xo,"$contextMenuPosition$",i),Ie=()=>S(yo,"$showHotKeyMap",i),Ue=()=>S(G,"$debugPanelVisible",i),lt=()=>S(sr,"$userActionsDisabled$",i),dt=m(e,"videoContainer",15),it=m(e,"adsSlotId",3,void 0),It=m(e,"adsParams",3,void 0),ht=m(e,"adsPreviewParam",3,void 0),Qt=m(e,"adsAutoplayParam",3,void 0),Zt=m(e,"duration",3,void 0),At=m(e,"logoTargetUrl",3,""),Rt=m(e,"showNextPrevButtons",3,!1),O=m(e,"nextButtonActive",3,!1),be=m(e,"prevButtonActive",3,!1),oe=m(e,"endScreenVideoTitle",3,void 0),Be=m(e,"endScreenVideoThumb",3,void 0),Ke=m(e,"isOneVideoPlaylist",3,!1),Ye=m(e,"shadowRootContainer",3,void 0),Le=m(e,"outerContainerRef",3,void 0),tt=m(e,"playerStarted",3,!1),Xe=m(e,"fullScreenTarget",3,void 0),bt=m(e,"showMiniTimer",3,!1),ut=m(e,"showEndScreen",3,!0),ft=m(e,"keyboardControls",15),Bt=e.store.getLogger().createComponentLog("Root component"),Qe=e.store.interfaceLanguage$,ri=e.store.state.playbackState$,bi=e.store.ads.playbackState,et=e.store.state.positionWithScrubbing$,Gt=e.store.state.duration$,ki=e.store.playerPhase,zi=e.store.ui.isFullscreen,Mt=e.store.ui.isFullscreenOpenedByKeyboard,$t=e.store.ui.controlsVisible,Nt=e.store.ui.settingsMenu.visible$,oo=e.store.ui.settingsMenu.openedByBtnKeyboard$,sn=e.store.ui.scrubbingInProgress,hn=e.store.ui.volumeChangingInProgress,bo=e.store.ui.contextMenu.visible$,G=e.store.ui.debugPanelVisible,Xt=e.store.state.isLoaderVisible,_i=e.store.state.isEnded$,Ei=e.store.state.chromecastConnected$,ai=e.store.state.chromecastDeviceName$,mt=e.store.ads.postrollPassed,pi=e.store.state.isLive$,Je=e.store.state.isPlaying$,Lt=e.store.state.crashed$,no=e.store.webApi.annotationsApi,ti=e.store.webApi.pictureInPictureApi,rr=e.store.state.currentSubtitle$,ro=e.store.state.currentSubtitleCaptions$,ko=e.store.ui.playerSize,li=e.store.ui.is3DVideo,St=e.store.ui.icon3DVideoVisible,Pi=e.store.state.isInteractive,Eo=e.store.state.isInteractiveTime$,ui=e.store.state.isInteractiveExpectation$,Oo=e.store.state.hasInteractiveBranches,Vi=e.store.ui.touched,$o=e.store.ui.modals.hotKeyMap.data,yo=e.store.ui.modals.hotKeyMap.show,Hn=e.store.ui.overlayContainer$,Ri=e.store.ui.controls.interactiveTimeIndicator,_n=e.store.state.showInteractiveTimeIndicator,xo=e.store.ui.contextMenu.position$,Po=e.store.actions.internal.setQuality,bn=e.store.actions.internal.closeSettingsMenu,Sr=e.store.ui.autoplayNextEnabled$,sr=e.store.ui.userActionsDisabled,Fn=e.store.ui.isControlsAvailable,{fakeIsPlaying$:$n,notifications$:yn,graphIsOpened$:Un}=to(),so=X(void 0),ot=X(void 0),xn=X(void 0),Ho=X(void 0),wn,Sn,Ao;$o.set(_h());let{closeNotification:ar,notificationsToShow$:Fo}=yn,Cn=v(()=>!!n().slow_video),Uo=()=>ar("slow_video"),ao=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Bi=X(void 0),Tn=le(!1),Mo,zo=le(!1),Lo=le(),In=le(!1),Ni=X(!1),Di=X(!1),lr=X(!1),Vo=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),zn=v(()=>p()&&!f()&&!(r(Ni)||r(Di))&&!(r(lr)&&!y())),kn=!0,Wn=v(()=>e.uiConfig.features.thumbTimer&&bt()&&a()==="video"&&!u()&&!l()&&!Pi&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),dr=v(()=>a()==="video"&&!w()&&b()),an=X(!1),cr=v(()=>(ut()||e.showAutoplayNext&&C())&&!!oe()&&!!Be()&&(e.showAds&&T()||!e.showAds)&&I()&&!l()&&!r(an)),ur=v(()=>M()&&!(u()||r(cr))&&!p()&&P()),qn=X(!1),Cr=v(()=>k()!==null),{toggle:Tr}=$n,En=!1,Jt=null;ti==null||ti.setContext(Sl());let Kn=()=>{e.autoplay&&!Pi&&e.uiConfig.controls.showOnStartupAtAutoplay&&yt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Kn});let Qn=()=>{window.clearTimeout(wn),zo.set(!1)},nt=()=>{window.clearTimeout(Sn),Lo.set(null)},yt=Se=>{Qn(),zo.set(!0),wn=window.setTimeout(()=>zo.set(!1),Se);let pt=Se-100;Mo=window.setTimeout(()=>{V()&&Tn.set(!1)},pt>0?pt:Se)},wi=(Se,pt)=>{nt(),Lo.set(pt),Sn=window.setTimeout(()=>Lo.set(null),Se)},wo=li.subscribe(Se=>{St.set(Se),Se&&(window.clearTimeout(Ao),Ao=window.setTimeout(()=>St.set(!1),e.uiConfig.controls.hide360IconTimeout))}),lo=async()=>{var pt,Ut,si,Gi;let Se=gs();if(Se){let Re=Dl(),vt=ct();Se=Re===vt||Re===Ye()}if(Se){yt(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ti==null?void 0:ti.remove())}catch(Re){Bt({message:String(Re)})}}zi.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),b()?(Ut=(pt=e.store.callbacks)==null?void 0:pt.onFullscreenEnter)==null||Ut.call(pt):(Gi=(si=e.store.callbacks)==null?void 0:si.onFullscreenExit)==null||Gi.call(si)},So=Se=>{let{width:pt,height:Ut}=Se.target;ko.set({width:pt,height:Ut})},Co=()=>{let{width:Se,height:pt}=r(so).getBoundingClientRect();ko.set({width:Se,height:pt})};zt(()=>{var pt;return Pc(lo),e.uiConfig.features.annotationsInside&&(no==null||no.init(r(so))),js(ti)&&(ti==null||ti.assignPlayerContainer(r(so)),ti==null||ti.registryExternalEventHandlers({resize:So,leavepictureinpicture:Co})),e.interactiveContainer&&((pt=dt().parentElement)==null||pt.insertBefore(e.interactiveContainer,dt().nextSibling)),()=>{window.clearTimeout(wn),window.clearTimeout(Mo),window.clearTimeout(Sn),window.clearTimeout(Ao),wo(),ti==null||ti.dispose().catch(Ut=>{Bt({message:String(Ut)})}),Ac(lo)}});let ct=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Le()?r(so):Le(),pt=Se.getRootNode(),Ut=pt instanceof ShadowRoot?pt.host:pt,si=Xe()instanceof HTMLElement&&Xe().contains(Ut);return e.uiConfig.allowChangingFullscreenTarget&&Xe()&&si?Xe():Se},qt=async()=>{gs()?(await Ec(document),Bt({message:"exit fullscreen"})):(Bt({message:"request fullscreen"}),await kc(ct()))},oi=()=>{bn(),bo.set(!1)},fi=Se=>{w()||(Se.preventDefault(),bo.set(!0),xo.set({left:Se.clientX,top:Se.clientY}))};function Qi(){In.set(!0),Pi||yt(e.uiConfig.controls.hideTimeoutCursor)}function co(){Pi||(Tn.set(!0),yt(e.uiConfig.controls.hideTimeoutCursor))}function Wi(){In.set(!1),D(Di,!1),D(Ni,!1),En=!1,e.store.actions.internal.releaseCamera(),yt(e.uiConfig.controls.hideTimeout)}function Oi(Se){return Se?Se.offsetTop+Oi(Se.offsetParent):0}function Si(Se){return Se?Se.offsetLeft+Si(Se.offsetParent):0}function Wo(Se){if(W()&&_n){let pt=Se.currentTarget,Ut=Oi(pt),si=Si(pt),Gi=Se.pageX-si,Re=Se.pageY-Ut,{left:vt,bottom:ni,right:Yi}=W(),uo=Yi-vt;return Gi>=vt-uo&&Re<=ni+uo}}function Pn(Se){if(r(so)){let pt=Oi(Se.currentTarget),Ut=j().height,si=Se.pageY-pt;if(Wo(Se)){D(Di,!1);return}si<40?D(Di,!0):si>Ut-40?D(Ni,!0):(D(Di,!1),f()||D(Ni,!1))}}function Ir(Se){Pn(Se),r(zn)||yt(e.uiConfig.controls.hideTimeoutCursor),H()&&En&&Jt&&e.store.actions.internal.moveCameraFocusPX(Jt.clientX-Se.clientX,Jt.clientY-Se.clientY,Se.timeStamp-Jt.timeStamp),Jt=Se}let Gn=Se=>{Se.preventDefault(),Se.button===0&&(En=!0,e.store.actions.internal.holdCamera()),yt(e.uiConfig.controls.hideTimeoutCursor)},kr=Se=>{Se.preventDefault(),Se.button===0&&(Jt=Se,En=!1,e.store.actions.internal.releaseCamera()),yt(e.uiConfig.controls.hideTimeoutCursor)},ln=Se=>{Se.preventDefault(),kn&&(Bt({message:"double click on video"}),qt(),yt(e.uiConfig.controls.hideTimeoutCursor))},Yn=Se=>{var pt;if(Se.preventDefault(),Q()||f()){oi();return}if(!(I()&&!Oo)){if(r(Cr))return Tr();if((pt=ft())==null||pt.focus(),!tt()){e.firstStart(),yt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ie()!==b1.PLAYING)&&e.store.actions.internal.togglePlay(),yt(e.uiConfig.controls.hideTimeoutCursor)}},jn=Se=>{oi(),Vi.set(!0),yt(e.uiConfig.controls.hideTimeout),Se&&wi(e.uiConfig.controls.hideHotKeyHelpers,Se)},Hr=()=>{var Se,pt;oi(),(Se=e.store.callbacks)!=null&&Se.onOpenHotKeyMap?(pt=e.store.callbacks)==null||pt.onOpenHotKeyMap(Z()):yo.update(Ut=>!Ut)},Zn=()=>{Vi.set(!0)},qo=e.store.ui.contextMenu.openedByBtnKeyboard$,pr=e.store.ui.contextMenu.btnRef$,Ko=X(void 0),fr=e.store.ui.contextMenu.openedByHotKey$,Fr=e.store.ui.contextMenu.lastActiveElem$;Fe(()=>{Hn.set(r(Bi))}),Fe(()=>{D(lr,fe(r(Vo)&&ie()!==b1.PLAYING)),r(Vo)||wt(()=>D(Vo,!0))}),Fe(()=>{$t.set((r(lr)||I()||f()||se()||ce()||Ee()||Me())&&!r(zn)&&(a()==="video"||a()==="ads")&&!l()&&P())}),Fe(()=>{!se()&&r(qn)&&!p()&&yt(e.uiConfig.controls.hideTimeoutCursor),wt(()=>D(qn,fe(se())))}),Fe(()=>{r(Ho),f(),ge(),wt(()=>Ga(r(Ho),f(),ge()))}),Fe(()=>{r(Ko),Q(),ae(),wt(()=>Ga(r(Ko),Q(),ae()))}),Fe(()=>{let Se=Pe();Se&&(Q(),wt(()=>Qa(Se,Q(),qo)))}),Fe(()=>{r(Ko),Q(),ne(),wt(()=>Ga(r(Ko),Q(),ne()))}),Fe(()=>{let Se=N();Se&&(Q(),wt(()=>Sh(Se,Q(),fr)))}),Fe(()=>{var Se;!ue()&&b()&&(wt(()=>Mt.set(!1)),(Se=ft())==null||Se.focus())}),Fe(()=>{w()&&oi()});let Er=z("video360");var Pr=rx();Tt("blur",Ds,oi);var Ze=pe(Pr);Ze.__mousemove=Ir;var Dt=h(Ze);let Ai=v(()=>a()==="ads"),Qo=v(()=>r(Cr)?Tr:void 0);gt(zp(Dt,{toggleFullscreen:qt,hideContextMenu:oi,showHotKeyHelpers:jn,showKeyMap:Hr,get isAds(){return r(Ai)},get fakePlayButtonHandler(){return r(Qo)},get nextButtonActive(){return O()},get prevButtonActive(){return be()},children:(Se,pt)=>{var Ut=ox(),si=pe(Ut);ma(si,{get hideCursor(){return r(ur)},onClick:Yn,onContextMenu:fi,onMouseDown:Gn,onMouseUp:kr,onDblClick:ln,get videoContainer(){return dt()},set videoContainer(vt){dt(vt)}});var Gi=A(si,2);Ws(Gi,()=>"slot",!1,(vt,ni)=>{Te(vt,null,{name:fa})});var Re=A(Gi,2);zs(Re,_e,vt=>{var ni=ix(),Yi=pe(ni);let uo=v(()=>a()!=="thumb"||l()||Pi&&e.autoplay);ca(Yi,{get hidden(){return r(uo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ur=A(Yi,2);wm(Ur,{});var Mi=A(Ur,2);{var Xn=We=>{let di=v(()=>{var Yo;return(Yo=e.live)==null?void 0:Yo.startTime});yd(We,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(di)}})};R(Mi,We=>{a()==="LiveWaitingStart"&&We(Xn)})}var Cs=A(Mi,2);{var Jn=We=>{ua(We,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Cs,We=>{a()==="LiveWaitingRecover"&&We(Jn)})}var va=A(Cs,2);{var sl=We=>{ua(We,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(va,We=>{a()==="LiveWaitingRecord"&&We(sl)})}var ga=A(va,2);{var ha=We=>{var di=X3();let Yo;var Es=h(di);Ol(Es,{get adsSlotId(){return it()},get adsParams(){return It()},get adsPreviewParam(){return ht()},get adsAutoplayParam(){return Qt()},get duration(){return Zt()}}),g(di),E(po=>Yo=J(di,1,"ads-container svelte-jtgjmv",null,Yo,po),[()=>({hidden:a()!=="ads"})]),$(We,di)};R(ga,We=>{e.showAds&&tt()&&We(ha)})}var _a=A(ga,2);{var al=We=>{let di=v(()=>!ut()&&e.showAutoplayNext&&C());Hp(We,{get title(){return oe()},get thumb(){return Be()},get isHide(){return r(di)},clickCloseIcon:()=>D(an,!0)})};R(_a,We=>{r(cr)&&oe()&&Be()&&We(al)})}var Ts=A(_a,2);{var ba=We=>{let di=v(()=>!u());Xf(We,{get title(){return e.title},get isHidden(){return r(di)}})};R(Ts,We=>{r(dr)&&We(ba)})}var at=A(Ts,2);{var xt=We=>{let di=v(()=>a()==="video"&&u());_d(We,{get isShifted(){return r(di)}})};R(at,We=>{H()&&We(xt)})}var qi=A(at,2);{var Go=We=>{var di=J3(),Yo=h(di);Nl(Yo,{"aria-label":Er}),g(di),$(We,di)};R(qi,We=>{ze()&&We(Go)})}var Ki=A(qi,2);{var ci=We=>{bd(We,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return re()}})};R(Ki,We=>{Ee()&&We(ci)})}var Ci=A(Ki,2);{var Is=We=>{da(We,{get shifted(){return u()},get captions(){return he()},get position(){return ee()},get playerSize(){return j()}})};R(Ci,We=>{K().value!=="off"&&We(Is)})}var $a=A(Ci,2);{var vu=We=>{var di=ex();di.__contextmenu=fi,di.__click=[Z3,Q,bo,f,Nt,oi];var Yo=h(di);$d(Yo,{}),g(di),$(We,di)};R($a,We=>{l()&&We(vu)})}var Bd=A($a,2);{var gu=We=>{let di=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Yo=v(()=>a()==="ads"),Es=v(()=>e.canRewindLive&&He()!==0);hd(We,{get bottomHidden(){return r(di)},get bottomNoSmooth(){return V()},get showControls(){return u()},get isAds(){return r(Yo)},get canRewindLive(){return r(Es)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return At()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Rt()},get nextButtonActive(){return O()},get prevButtonActive(){return be()},get isOneVideoPlaylist(){return Ke()},customFullscreenSupported:kn,toggleFullscreen:qt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(ot)},set playerControlsWrapperRef(po){D(ot,fe(po))},get playerControlsRef(){return r(xn)},set playerControlsRef(po){D(xn,fe(po))}})};R(Bd,We=>{tt()&&We(gu)})}var Nd=A(Bd,2);{var hu=We=>{var di=tx(),Yo=h(di);let Es=v(()=>{var po;return(po=r(xn))==null?void 0:po.clientHeight});Sd(Yo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Es)},returnFocus:()=>{var po;return(po=ft())==null?void 0:po.focus()},get ref(){return r(Ho)},set ref(po){D(Ho,fe(po))}}),g(di),$(We,di)};R(Nd,We=>{!Ee()&&a()!=="ads"&&We(hu)})}var Dd=A(Nd,2);let _u=v(()=>!r(Wn));Ul(Dd,{get isLive(){return je()},get isHidden(){return r(_u)},get isPlaying(){return we()},get position(){return ee()},get duration(){return He()}});var ks=A(Dd,2);Gf(ks,{data:Lo});var Od=A(ks,2);Op(Od,{get supportLink(){return e.supportLink},returnFocus:()=>{var We;return(We=ft())==null?void 0:We.focus()},get visible(){return Q()},get playerContainerRef(){return r(so)},get controlsContainerRef(){return r(ot)},get position(){return Ve()},get menuElementRef(){return r(Ko)},set menuElementRef(We){D(Ko,fe(We))}});var ll=A(Od,2);{var Hd=We=>{Cd(We,{onClose:Uo,onSelectAutoQuality:()=>{Po("auto"),Uo()}})};R(ll,We=>{r(Cn)&&We(Hd)})}var Fd=A(ll,2);{var Ud=We=>{ta(We,{})};R(Fd,We=>{r(ao)&&We(Ud)})}var ya=A(Fd,2);{var zd=We=>{Kp(We,{})};R(ya,We=>{Ie()&&We(zd)})}var bu=A(ya,2);{var Wd=We=>{Kl(We,{})};R(bu,We=>{Ue()&&We(Wd)})}$(vt,ni)}),$(Se,Ut)},$$slots:{default:!0}}),Se=>ft(Se),()=>ft());var Ro=A(Dt,2);gt(Ro,Se=>D(Bi,Se),()=>r(Bi)),g(Ze),gt(Ze,Se=>D(so,Se),()=>r(so));var An=A(Ze,2);{var dn=Se=>{var pt=nx();$(Se,pt)};R(An,Se=>{lt()&&Se(dn)})}Tt("mouseenter",Ze,Qi),Tt("mouseleave",Ze,Wi),Tt("click",Ze,Zn,!0),Tt("focusin",Ze,co,!0),$(t,Pr),U(),o()}st(["mousemove","contextmenu","click"]);import{clientChecker as Td,PlaybackState as gx}from"@vkontakte/videoplayer-core/es2018";import{noop as hx}from"@vkontakte/videoplayer-shared/es2018";var ax=L('<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),lx=L("<div><!></div>"),dx={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;
344
+ }`};function Em(t,e){O(e,!0),W(t,ox);let[i,o]=De(),n=()=>S(r,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:r},ui:{aboutToGoNextVideo:d},actions:l}=Ie(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:b}}=Ht(),u=0,_=X(null),w=X(!1);Ue(()=>{D(_,ve(n()?Mr:hs))}),Ue(()=>{D(_,ve(a()?Ns:null))}),Ue(()=>{if(p)return u=window.setTimeout(()=>{u=0,a()&&s(_)===Ns&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),D(_,null)},s(_)!==Ns?f:b),()=>{u&&(window.clearTimeout(u),u=0)}}),Ue(()=>{n()&&!s(w)&&(D(w,!0),D(_,null))});var y=He(),C=he(y);{var T=I=>{var M=He(),P=he(M);Js(P,()=>s(_),E=>{var R=ix(),z=h(R),q=h(z);let U=v(()=>a()==="prev");$i(q,()=>s(_),(Y,se)=>{se(Y,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return s(U)}})}),g(z),g(R),k(()=>st(z,`animation-duration: ${s(_)!==Ns?f:b}ms`)),$(E,R)}),$(I,M)};V(C,I=>{s(_)&&p&&I(T)})}$(t,y),H(),o()}var nx=L('<div><div data-testid="video-container"></div></div>'),rx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
345
+ .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 Sa(t,e){O(e,!0),W(t,rx);let[i,o]=De(),n=()=>S(f,"$rotateAlpha",i),a=()=>S(b,"$playerSize",i),r=()=>S(p,"$playerPhase",i),d=()=>S(u,"$isPlaying$",i),l=m(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:b},state:{isPlaying$:u}}=Ie(),{isSmoothVideoRotate:_}=Ht(),w=v(()=>l()&&n()%180?a().height/a().width:1);var y=nx();let C;y.__contextmenu=function(...I){var M;(M=e.onContextMenu)==null||M.apply(this,I)},y.__mousedown=function(...I){var M;(M=e.onMouseDown)==null||M.apply(this,I)},y.__mouseup=function(...I){var M;(M=e.onMouseUp)==null||M.apply(this,I)},y.__click=function(...I){var M;(M=e.onClick)==null||M.apply(this,I)},y.__dblclick=function(...I){var M;(M=e.onDblClick)==null||M.apply(this,I)};var T=h(y);J(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!_}),tt(T,I=>l(I),()=>l()),g(y),k(I=>{C=J(y,1,"video-wrapper svelte-1czns9r",null,C,I),st(T,`transform: rotate(${n()}deg) scale(${s(w)})`),Ne(T,"data-is-playing",d())},[()=>({hidden:r()!=="video",nocursor:e.hideCursor})]),$(t,y),H(),o()}lt(["contextmenu","mousedown","mouseup","click","dblclick"]);var sx=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},ax=L("<div><!></div>"),lx=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),dx=L("<div><!></div>"),cx=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),ux=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),px=L("<!> <!> <!>",1),fx=L('<div class="blocked svelte-jtgjmv"></div>'),mx=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),vx={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 km(t,e){O(e,!0),W(t,vx);let[i,o]=De(),n=()=>S(Ln,"$notificationsToShow$",i),a=()=>S(Wi,"$playerPhase",i),r=()=>S(qt,"$isLoaderVisible",i),d=()=>S(zt,"$adPlaybackState",i),l=()=>S(Mt,"$crashed",i),p=()=>S(Vo,"$isInteractiveTime$",i),f=()=>S(ot,"$settingsMenuVisible",i),b=()=>S(Tn,"$isInteractiveExpectation$",i),u=()=>S(qi,"$controlsVisible",i),_=()=>S(Si,"$touched",i),w=()=>S(kn,"$graphIsOpened$",i),y=()=>S(Ni,"$isFullscreen",i),C=()=>S(Vr,"$autoplayNextEnabled$",i),T=()=>S(di,"$postrollPassed",i),I=()=>S(ci,"$isEnded$",i),M=()=>S(Vi,"$cursorInside",i),P=()=>S(Xn,"$isControlsAvailable",i),E=()=>S(En,"$fakeIsPlaying$",i),R=()=>S(jt,"$bottomNoSmooth",i),z=()=>S(wo,"$interactiveTimeIndicator",i),q=()=>S(Lo,"$playerSize",i),U=()=>S(_i,"$is3DVideo",i),Y=()=>S(xo,"$contextMenuVisible$",i),se=()=>S(xi,"$playbackState$",i),Q=()=>S(Ro,"$hotKeyMapData",i),de=()=>S(li,"$scrubbingInProgress",i),le=()=>S(wi,"$volumeChangingInProgress",i),Me=()=>S(Pi,"$chromecastConnected$",i),Be=()=>S(Vn,"$controlsTimeoutActive",i),ge=()=>S(bt,"$settingsMenuOpenedByKeyboard",i),ce=()=>S(Uo,"$contextMenuOpenedByKeyboard$",i),Ae=()=>S(en,"$contextMenuButtonRef$",i),ae=()=>S($r,"$contextMenuOpenedByHotKey$",i),N=()=>S(Dr,"$contextMenuLastActiveElem$",i),Ge=()=>S(ao,"$isFullscreenOpenedByKeyboard",i),ee=()=>S(gt,"$language$",i),We=()=>S(vt,"$icon3DVideoVisible",i),ne=()=>S(si,"$chromecastDeviceName$",i),me=()=>S(Zn,"$currentSubtitle$",i),$e=()=>S(Ai,"$currentSubtitleCaptions$",i),Z=()=>S(je,"$position$",i),ze=()=>S(Jt,"$duration$",i),Je=()=>S(ut,"$isLive$",i),Ce=()=>S(et,"$isPlaying$",i),ie=()=>S(Go,"$contextMenuPosition$",i),Ee=()=>S(In,"$showHotKeyMap",i),qe=()=>S(G,"$debugPanelVisible",i),nt=()=>S(mr,"$userActionsDisabled$",i),dt=m(e,"videoContainer",15),rt=m(e,"adsSlotId",3,void 0),St=m(e,"adsParams",3,void 0),ct=m(e,"adsPreviewParam",3,void 0),Yt=m(e,"adsAutoplayParam",3,void 0),ni=m(e,"duration",3,void 0),Ot=m(e,"logoTargetUrl",3,""),Et=m(e,"showNextPrevButtons",3,!1),te=m(e,"nextButtonActive",3,!1),At=m(e,"prevButtonActive",3,!1),j=m(e,"endScreenVideoTitle",3,void 0),pe=m(e,"endScreenVideoThumb",3,void 0),Pe=m(e,"isOneVideoPlaylist",3,!1),Re=m(e,"shadowRootContainer",3,void 0),fe=m(e,"outerContainerRef",3,void 0),Ke=m(e,"playerStarted",3,!1),it=m(e,"fullScreenTarget",3,void 0),Ze=m(e,"showMiniTimer",3,!1),yt=m(e,"showEndScreen",3,!0),mt=m(e,"keyboardControls",15),Wt=e.store.getLogger().createComponentLog("Root component"),gt=e.store.interfaceLanguage$,xi=e.store.state.playbackState$,zt=e.store.ads.playbackState,je=e.store.state.positionWithScrubbing$,Jt=e.store.state.duration$,Wi=e.store.playerPhase,Ni=e.store.ui.isFullscreen,ao=e.store.ui.isFullscreenOpenedByKeyboard,qi=e.store.ui.controlsVisible,ot=e.store.ui.settingsMenu.visible$,bt=e.store.ui.settingsMenu.openedByBtnKeyboard$,li=e.store.ui.scrubbingInProgress,wi=e.store.ui.volumeChangingInProgress,xo=e.store.ui.contextMenu.visible$,G=e.store.ui.debugPanelVisible,qt=e.store.state.isLoaderVisible,ci=e.store.state.isEnded$,Pi=e.store.state.chromecastConnected$,si=e.store.state.chromecastDeviceName$,di=e.store.ads.postrollPassed,ut=e.store.state.isLive$,et=e.store.state.isPlaying$,Mt=e.store.state.crashed$,lo=e.store.webApi.annotationsApi,ei=e.store.webApi.pictureInPictureApi,Zn=e.store.state.currentSubtitle$,Ai=e.store.state.currentSubtitleCaptions$,Lo=e.store.ui.playerSize,_i=e.store.ui.is3DVideo,vt=e.store.ui.icon3DVideoVisible,Mi=e.store.state.isInteractive,Vo=e.store.state.isInteractiveTime$,Tn=e.store.state.isInteractiveExpectation$,ai=e.store.state.hasInteractiveBranches,Si=e.store.ui.touched,Ro=e.store.ui.modals.hotKeyMap.data,In=e.store.ui.modals.hotKeyMap.show,Bo=e.store.ui.overlayContainer$,wo=e.store.ui.controls.interactiveTimeIndicator,fn=e.store.state.showInteractiveTimeIndicator,Go=e.store.ui.contextMenu.position$,co=e.store.actions.internal.setQuality,So=e.store.actions.internal.closeSettingsMenu,Vr=e.store.ui.autoplayNextEnabled$,mr=e.store.ui.userActionsDisabled,Xn=e.store.ui.isControlsAvailable,Jn=e.store.ui.videoTitleInfo,er=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:En,notifications$:Xr,graphIsOpened$:kn}=ro(),Li=X(void 0),Pn=X(void 0),Yo=X(void 0),jo=X(void 0),An,Mn,No;Ro.set(xh());let{closeNotification:Rr,notificationsToShow$:Ln}=Xr,tr=v(()=>!!n().slow_video),Di=()=>Rr("slow_video"),Co=v(()=>(a()==="video"&&r()||a()==="ads"&&d()==="inactive")&&!l()),at=X(void 0),jt=re(!1),vr,Vn=re(!1),mn=re(),Vi=re(!1),Rn=X(!1),To=X(!1),Bn=X(!1),Io=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Nn=v(()=>p()&&!f()&&!(s(Rn)||s(To))&&!(s(Bn)&&!b())),Dn=!0,ir=v(()=>e.uiConfig.features.thumbTimer&&Ze()&&a()==="video"&&!u()&&!l()&&!Mi&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),gr=v(()=>a()==="video"&&!w()&&y()),or=X(!1),Do=v(()=>(yt()||e.showAutoplayNext&&C())&&!!j()&&!!pe()&&(e.showAds&&T()||!e.showAds)&&I()&&!l()&&!s(or)),Br=v(()=>M()&&!(u()||s(Do))&&!p()&&P()),nr=X(!1),hr=v(()=>E()!==null),{toggle:Zo}=En,Kt=!1,uo=null;ei==null||ei.setContext(Al());let Eo=()=>{e.autoplay&&!Mi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ci(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Eo});let rr=()=>{window.clearTimeout(An),Vn.set(!1)},_r=()=>{window.clearTimeout(Mn),mn.set(null)},Ci=Te=>{rr(),Vn.set(!0),An=window.setTimeout(()=>Vn.set(!1),Te);let ye=Te-100;vr=window.setTimeout(()=>{R()&&jt.set(!1)},ye>0?ye:Te)},Jr=(Te,ye)=>{_r(),mn.set(ye),Mn=window.setTimeout(()=>mn.set(null),Te)},Nr=_i.subscribe(Te=>{vt.set(Te),Te&&(window.clearTimeout(No),No=window.setTimeout(()=>vt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),br=async()=>{var ye,xt,Ft,Ti;let Te=Ps();if(Te){let hi=ql(),Fe=Oo();Te=hi===Fe||hi===Re()}if(Te){Ci(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ei==null?void 0:ei.remove())}catch(hi){Wt({message:String(hi)})}}Ni.set(Te),e.store.getAdmanWrapper().setFullscreen(Te),y()?(xt=(ye=e.store.callbacks)==null?void 0:ye.onFullscreenEnter)==null||xt.call(ye):(Ti=(Ft=e.store.callbacks)==null?void 0:Ft.onFullscreenExit)==null||Ti.call(Ft)},ht=Te=>{let{width:ye,height:xt}=Te.target;Lo.set({width:ye,height:xt})},Zt=()=>{let{width:Te,height:ye}=s(Li).getBoundingClientRect();Lo.set({width:Te,height:ye})};Rt(()=>{var ye;return Vc(br),e.uiConfig.features.annotationsInside&&(lo==null||lo.init(s(Li))),sa(ei)&&(ei==null||ei.assignPlayerContainer(s(Li)),ei==null||ei.registryExternalEventHandlers({resize:ht,leavepictureinpicture:Zt})),e.interactiveContainer&&((ye=dt().parentElement)==null||ye.insertBefore(e.interactiveContainer,dt().nextSibling)),()=>{window.clearTimeout(An),window.clearTimeout(vr),window.clearTimeout(Mn),window.clearTimeout(No),Nr(),ei==null||ei.dispose().catch(xt=>{Wt({message:String(xt)})}),Rc(br)}});let Oo=()=>{let Te=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!fe()?s(Li):fe(),ye=Te.getRootNode(),xt=ye instanceof ShadowRoot?ye.host:ye,Ft=it()instanceof HTMLElement&&it().contains(xt);return e.uiConfig.allowChangingFullscreenTarget&&it()&&Ft?it():Te},po=async()=>{Ps()?(await Lc(document),Wt({message:"exit fullscreen"})):(Wt({message:"request fullscreen"}),await Mc(Oo()))},Gi=()=>{So(),xo.set(!1)},Xo=Te=>{w()||(Te.preventDefault(),xo.set(!0),Go.set({left:Te.clientX,top:Te.clientY}))};function On(){Vi.set(!0),Mi||Ci(e.uiConfig.controls.hideTimeoutCursor)}function fo(){Mi||(jt.set(!0),Ci(e.uiConfig.controls.hideTimeoutCursor))}function vn(){Vi.set(!1),D(To,!1),D(Rn,!1),Kt=!1,e.store.actions.internal.releaseCamera(),Ci(e.uiConfig.controls.hideTimeout)}function Jo(Te){return Te?Te.offsetTop+Jo(Te.offsetParent):0}function Xe(Te){return Te?Te.offsetLeft+Xe(Te.offsetParent):0}function Lt(Te){if(z()&&fn){let ye=Te.currentTarget,xt=Jo(ye),Ft=Xe(ye),Ti=Te.pageX-Ft,hi=Te.pageY-xt,{left:Fe,bottom:Ct,right:ti}=z(),tn=ti-Fe;return Ti>=Fe-tn&&hi<=Ct+tn}}function vi(Te){if(s(Li)){let ye=Jo(Te.currentTarget),xt=q().height,Ft=Te.pageY-ye;if(Lt(Te)){D(To,!1);return}Ft<40?D(To,!0):Ft>xt-40?D(Rn,!0):(D(To,!1),f()||D(Rn,!1))}}function mo(Te){vi(Te),s(Nn)||Ci(e.uiConfig.controls.hideTimeoutCursor),U()&&Kt&&uo&&e.store.actions.internal.moveCameraFocusPX(uo.clientX-Te.clientX,uo.clientY-Te.clientY,Te.timeStamp-uo.timeStamp),uo=Te}let Yi=Te=>{Te.preventDefault(),Te.button===0&&(Kt=!0,e.store.actions.internal.holdCamera()),Ci(e.uiConfig.controls.hideTimeoutCursor)},Ho=Te=>{Te.preventDefault(),Te.button===0&&(uo=Te,Kt=!1,e.store.actions.internal.releaseCamera()),Ci(e.uiConfig.controls.hideTimeoutCursor)},Ki=Te=>{Te.preventDefault(),Dn&&(Wt({message:"double click on video"}),po(),Ci(e.uiConfig.controls.hideTimeoutCursor))},Fo=Te=>{var ye;if(Te.preventDefault(),Y()||f()){Gi();return}if(!(I()&&!ai)){if(s(hr))return Zo();if((ye=mt())==null||ye.focus(),!Ke()){e.firstStart(),Ci(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||se()!==I1.PLAYING)&&e.store.actions.internal.togglePlay(),Ci(e.uiConfig.controls.hideTimeoutCursor)}},ko=Te=>{Gi(),Si.set(!0),Ci(e.uiConfig.controls.hideTimeout),Te&&Jr(e.uiConfig.controls.hideHotKeyHelpers,Te)},Oi=()=>{var Te,ye;Gi(),(Te=e.store.callbacks)!=null&&Te.onOpenHotKeyMap?(ye=e.store.callbacks)==null||ye.onOpenHotKeyMap(Q()):In.update(xt=>!xt)},gi=()=>{Si.set(!0)},Uo=e.store.ui.contextMenu.openedByBtnKeyboard$,en=e.store.ui.contextMenu.btnRef$,Hi=X(void 0),$r=e.store.ui.contextMenu.openedByHotKey$,Dr=e.store.ui.contextMenu.lastActiveElem$;Ue(()=>{Bo.set(s(at))}),Ue(()=>{D(Bn,ve(s(Io)&&se()!==I1.PLAYING)),s(Io)||wt(()=>D(Io,!0))}),Ue(()=>{qi.set((s(Bn)||I()||f()||de()||le()||Me()||Be())&&!s(Nn)&&(a()==="video"||a()==="ads")&&!l()&&P())}),Ue(()=>{!de()&&s(nr)&&!p()&&Ci(e.uiConfig.controls.hideTimeoutCursor),wt(()=>D(nr,ve(de())))}),Ue(()=>{s(jo),f(),ge(),wt(()=>Xa(s(jo),f(),ge()))}),Ue(()=>{s(Hi),Y(),ce(),wt(()=>Xa(s(Hi),Y(),ce()))}),Ue(()=>{let Te=Ae();Te&&(Y(),wt(()=>Za(Te,Y(),Uo)))}),Ue(()=>{s(Hi),Y(),ae(),wt(()=>Xa(s(Hi),Y(),ae()))}),Ue(()=>{let Te=N();Te&&(Y(),wt(()=>Eh(Te,Y(),$r)))}),Ue(()=>{var Te;!Ge()&&y()&&(wt(()=>ao.set(!1)),(Te=mt())==null||Te.focus())}),Ue(()=>{w()&&Gi()});let Or=F("video360"),gn=X(void 0),Hn=Te=>{Jn.set(Ar(er(),{title:s(gn)},"title",Te))};var Hr=mx();Tt("blur",Gs,Gi);var ji=he(Hr);ji.__mousemove=mo;var zo=h(ji);let Fn=v(()=>a()==="ads"),sr=v(()=>s(hr)?Zo:void 0);tt(Gp(zo,{toggleFullscreen:po,hideContextMenu:Gi,showHotKeyHelpers:ko,showKeyMap:Oi,get isAds(){return s(Fn)},get fakePlayButtonHandler(){return s(sr)},get nextButtonActive(){return te()},get prevButtonActive(){return At()},children:(Te,ye)=>{var xt=px(),Ft=he(xt);Sa(Ft,{get hideCursor(){return s(Br)},onClick:Fo,onContextMenu:Xo,onMouseDown:Yi,onMouseUp:Ho,onDblClick:Ki,get videoContainer(){return dt()},set videoContainer(Fe){dt(Fe)}});var Ti=A(Ft,2);ea(Ti,()=>"slot",!1,(Fe,Ct)=>{ke(Fe,null,{name:wa})});var hi=A(Ti,2);Js(hi,ee,Fe=>{var Ct=ux(),ti=he(Ct);let tn=v(()=>a()!=="thumb"||l()||Mi&&e.autoplay);$a(ti,{get hidden(){return s(tn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var hn=A(ti,2);Em(hn,{});var Zi=A(hn,2);{var Ur=Qe=>{let ii=v(()=>{var Po;return(Po=e.live)==null?void 0:Po.startTime});Id(Qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(ii)}})};V(Zi,Qe=>{a()==="LiveWaitingStart"&&Qe(Ur)})}var yr=A(Zi,2);{var Qi=Qe=>{ya(Qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(yr,Qe=>{a()==="LiveWaitingRecover"&&Qe(Qi)})}var Ii=A(yr,2);{var _n=Qe=>{ya(Qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Ii,Qe=>{a()==="LiveWaitingRecord"&&Qe(_n)})}var Un=A(Ii,2);{var xr=Qe=>{var ii=ax();let Po;var $s=h(ii);Kl($s,{get adsSlotId(){return rt()},get adsParams(){return St()},get adsPreviewParam(){return ct()},get adsAutoplayParam(){return Yt()},get duration(){return ni()}}),g(ii),k(on=>Po=J(ii,1,"ads-container svelte-jtgjmv",null,Po,on),[()=>({hidden:a()!=="ads"})]),$(Qe,ii)};V(Un,Qe=>{e.showAds&&Ke()&&Qe(xr)})}var vo=A(Un,2);{var lr=Qe=>{let ii=v(()=>!yt()&&e.showAutoplayNext&&C());qp(Qe,{get title(){return j()},get thumb(){return pe()},get isHide(){return s(ii)},clickCloseIcon:()=>D(or,!0)})};V(vo,Qe=>{s(Do)&&j()&&pe()&&Qe(lr)})}var Os=A(vo,2);{var $t=Qe=>{let ii=v(()=>!u());om(Qe,{get title(){return e.title},get isHidden(){return s(ii)},onVisibilityChanged:Hn,get ref(){return s(gn)},set ref(Po){D(gn,ve(Po))}})};V(Os,Qe=>{s(gr)&&Qe($t)})}var _t=A(Os,2);{var Xi=Qe=>{let ii=v(()=>a()==="video"&&u());Sd(Qe,{get isShifted(){return s(ii)}})};V(_t,Qe=>{U()&&Qe(Xi)})}var Wo=A(_t,2);{var Ji=Qe=>{var ii=lx(),Po=h(ii);Wl(Po,{"aria-label":Or}),g(ii),$(Qe,ii)};V(Wo,Qe=>{We()&&Qe(Ji)})}var ri=A(Wo,2);{var Ri=Qe=>{Cd(Qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ne()}})};V(ri,Qe=>{Me()&&Qe(Ri)})}var bs=A(ri,2);{var cl=Qe=>{ba(Qe,{get shifted(){return u()},get captions(){return $e()},get position(){return Z()},get playerSize(){return q()}})};V(bs,Qe=>{me().value!=="off"&&Qe(cl)})}var zd=A(bs,2);{var bu=Qe=>{var ii=dx();ii.__contextmenu=Xo,ii.__click=[sx,Y,xo,f,ot,Gi];var Po=h(ii);Td(Po,{}),g(ii),$(Qe,ii)};V(zd,Qe=>{l()&&Qe(bu)})}var Wd=A(zd,2);{var $u=Qe=>{let ii=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Po=v(()=>a()==="ads"),$s=v(()=>e.canRewindLive&&ze()!==0);wd(Qe,{get bottomHidden(){return s(ii)},get bottomNoSmooth(){return R()},get showControls(){return u()},get isAds(){return s(Po)},get canRewindLive(){return s($s)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ot()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Et()},get nextButtonActive(){return te()},get prevButtonActive(){return At()},get isOneVideoPlaylist(){return Pe()},customFullscreenSupported:Dn,toggleFullscreen:po,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(Pn)},set playerControlsWrapperRef(on){D(Pn,ve(on))},get playerControlsRef(){return s(Yo)},set playerControlsRef(on){D(Yo,ve(on))}})};V(Wd,Qe=>{Ke()&&Qe($u)})}var qd=A(Wd,2);{var Ca=Qe=>{var ii=cx(),Po=h(ii);let $s=v(()=>{var on;return(on=s(Yo))==null?void 0:on.clientHeight});Pd(Po,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s($s)},returnFocus:()=>{var on;return(on=mt())==null?void 0:on.focus()},get ref(){return s(jo)},set ref(on){D(jo,ve(on))}}),g(ii),$(Qe,ii)};V(qd,Qe=>{!Me()&&a()!=="ads"&&Qe(Ca)})}var Kd=A(qd,2);let Qd=v(()=>!s(ir));Yl(Kd,{get isLive(){return Je()},get isHidden(){return s(Qd)},get isPlaying(){return Ce()},get position(){return Z()},get duration(){return ze()}});var ul=A(Kd,2);Jf(ul,{data:mn});var Gd=A(ul,2);Wp(Gd,{get supportLink(){return e.supportLink},returnFocus:()=>{var Qe;return(Qe=mt())==null?void 0:Qe.focus()},get visible(){return Y()},get playerContainerRef(){return s(Li)},get controlsContainerRef(){return s(Pn)},get position(){return ie()},get menuElementRef(){return s(Hi)},set menuElementRef(Qe){D(Hi,ve(Qe))}});var pl=A(Gd,2);{var fl=Qe=>{Ad(Qe,{onClose:Di,onSelectAutoQuality:()=>{co("auto"),Di()}})};V(pl,Qe=>{s(tr)&&Qe(fl)})}var ml=A(pl,2);{var yu=Qe=>{ua(Qe,{})};V(ml,Qe=>{s(Co)&&Qe(yu)})}var vl=A(ml,2);{var xu=Qe=>{Zp(Qe,{})};V(vl,Qe=>{Ee()&&Qe(xu)})}var wu=A(vl,2);{var Su=Qe=>{Jl(Qe,{})};V(wu,Qe=>{qe()&&Qe(Su)})}$(Fe,Ct)}),$(Te,xt)},$$slots:{default:!0}}),Te=>mt(Te),()=>mt());var ar=A(zo,2);tt(ar,Te=>D(at,Te),()=>s(at)),g(ji),tt(ji,Te=>D(Li,Te),()=>s(Li));var Fr=A(ji,2);{var es=Te=>{var ye=fx();$(Te,ye)};V(Fr,Te=>{nt()&&Te(es)})}Tt("mouseenter",ji,On),Tt("mouseleave",ji,vn),Tt("click",ji,gi,!0),Tt("focusin",ji,fo,!0),$(t,Hr),H(),o()}lt(["mousemove","contextmenu","click"]);import{clientChecker as Md,PlaybackState as Cx}from"@vkontakte/videoplayer-core/es2018";import{noop as Tx}from"@vkontakte/videoplayer-shared/es2018";var gx=L('<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),hx=L("<div><!></div>"),_x={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;
345
346
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
346
347
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
347
348
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -357,7 +358,7 @@ Try switching the\xA0quality to\xA0Auto.`},dh=i_;var es=new Map;es.set(uh.EN,dh)
357
358
  100% {
358
359
  opacity: 0;
359
360
  }
360
- }.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 ru(t,e){F(e,!0),q(t,dx);let i=m(e,"seekStep",3,0),o=X(!1),n=0,a=0,s=X(fe(i())),d=y=>{y.stopPropagation(),a+=1,D(s,i()*(a-1)),a===1?e.handleSingleFirstClick(y):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};mn(()=>{window.clearTimeout(n)});var l=lx();l.__click=d;var p=h(l);{var f=y=>{var u=ax(),_=pe(u),w=A(_,2),b=h(w),C=h(b),T=A(C,2),I=A(T,2);g(b);var M=A(b,2),P=h(M,!0);g(M),g(w),E(k=>{var V,W,j,H;J(_,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),J(C,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(j=e.side)!=null?j:""}`,"svelte-nhq2ld"),J(I,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),me(P,k)},[()=>z("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),$(y,u)};R(p,y=>{r(o)&&y(f)})}g(l),E(()=>{var y;return J(l,1,`double-click-area ${(y=e.side)!=null?y:""}`,"svelte-nhq2ld")}),$(t,l),U()}st(["click"]);var cx=(t,e,i)=>{e(!1),i()},ux=L('<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),px={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 Cm(t,e){F(e,!0),q(t,px);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,y=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},b=()=>{e.clickCloseIcon(),_()};zt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var C=Oe(),T=pe(C);{var I=M=>{var P=ux(),k=A(pe(P),2),V=h(k),W=h(V),j=h(W,!0);g(W);var H=A(W,2);Js(H,{onClick:b}),g(V);var Q=A(V,2);Q.__click=[cx,p,y];var ie=h(Q),Z=h(ie),se=h(Z);let ce;var Ee=A(se,2);{var Me=ne=>{Ql(ne,{get isRunning(){return a()},onTimerEnded:w})};R(Ee,ne=>{n()&&ne(Me)})}g(Z),g(ie);var ge=A(ie,2),ae=h(ge),Pe=h(ae,!0);g(ae),g(ge),g(Q),g(k),E((ne,N)=>{me(j,ne),rt(Z,`background-image: url('${e.thumb}')`),ce=J(se,1,"thumb-overlay svelte-1qdxi6t",null,ce,N),me(Pe,e.title)},[()=>n()?z("end_screen_next_video"):z("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(M,P)};R(T,M=>{e.isHide||M(I)})}$(t,C),U(),o()}st(["click"]);import{clientChecker as fx}from"@vkontakte/videoplayer-core/es2018";var $1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;zt(()=>{fx.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let s=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",s),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",s),a.removeEventListener("webkitendfullscreen",d)}},0))}),mn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as mx}from"@vkontakte/videoplayer-core/es2018";var su=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 vx}from"@vkontakte/videoplayer-core/es2018";var y1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:a,currentFormat$:s,availableTextTracks$:d}=t.state,l=null,p=()=>e().querySelector("video"),f=()=>vx.device.isIOS&&xe(s)===mx.DASH_LIVE_CMAF,y=()=>{l==null||l(),l=null},u=_=>{if(y(),!f()||!_)return;let w=p();if(!w)return;let b=new su(w),C=xe(d),T=xe(a),I=xe(n);for(let k of C)T.some(W=>W.value===k.id)&&b.attach(k,I.value===k.id);let M=d.subscribe(k=>{for(let V of k)b.updateSrc(V)}),P=()=>{let k=b.getCurrentShowingId();o(xe(a).find(V=>V.value===k))};w.textTracks.addEventListener("change",P),l=()=>{M(),b.detachAll(),w.textTracks.removeEventListener("change",P)}};zt(()=>i.subscribe(u)),mn(y)};var _x=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},bx=L("<!> <!>",1),$x=L("<div><!></div>"),yx=L('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),xx=L("<div><!></div>"),wx=L('<div class="settings-mobile svelte-7yl31d"><!></div>'),Sx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Cx=L('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Tx={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 Tm(t,e){var So,Co;F(e,!0),q(t,Tx);let[i,o]=De(),n=()=>S(ft,"$playerPhase",i),a=()=>S($t,"$isLoaderVisible",i),s=()=>S(Xe,"$adPlaybackState",i),d=()=>S(mt,"$crashed",i),l=()=>S(Ho,"$notificationsToShow$",i),p=()=>S(tt,"$playbackState$",i),f=()=>S(Ke,"$graphIsOpened$",i),y=()=>S(bi,"$interactiveHideMobileControls",i),u=()=>S(Nt,"$isEnded$",i),_=()=>S(Eo,"$isInteractiveExpectation$",i),w=()=>S(Qe,"$controlsVisible",i),b=()=>S(Vi,"$touched",i),C=()=>S(yo,"$autoplayNextEnabled$",i),T=()=>S(hn,"$postrollPassed",i),I=()=>S(Ao,"$bottomNoSmooth",i),M=()=>S(Lt,"$videoSize",i),P=()=>S(ro,"$playerSize",i),k=()=>S(Bt,"$isFullscreen",i),V=()=>S(bt,"$position$",i),W=()=>S(ut,"$duration$",i),j=()=>S(Hn,"$loadedMetadata",i),H=()=>S(et,"$settingsMenuVisible",i),Q=()=>S(ki,"$scrubbingInProgress",i),ie=()=>S(zi,"$volumeChangingInProgress",i),Z=()=>S(oo,"$chromecastConnected$",i),se=()=>S(ri,"$isControlsAvailable",i),ce=()=>S(Pi,"$isInteractiveTime$",i),Ee=()=>S(Ei,"$isActiveLive",i),Me=()=>S(Gt,"$settingsMenuOpenedByKeyboard",i),ge=()=>S(Le,"$language$",i),ae=()=>S(Oo,"$disabledControls$",i),Pe=()=>S(ko,"$is3DVideo",i),ne=()=>S(li,"$icon3DVideoVisible",i),N=()=>S(sn,"$chromecastDeviceName$",i),ue=()=>S(no,"$currentSubtitle$",i),_e=()=>S(ti,"$currentSubtitleCaptions$",i),ze=()=>S(rr,"$realDuration$",i),re=()=>S(Xt,"$isLive$",i),K=()=>S(_i,"$isPlaying$",i),he=()=>S(Mt,"$debugPanelVisible",i),ee=m(e,"videoContainer",15),He=m(e,"adsSlotId",3,void 0),je=m(e,"adsParams",3,void 0),we=m(e,"adsPreviewParam",3,void 0),Ve=m(e,"adsAutoplayParam",3,void 0),Ie=m(e,"duration",3,void 0),Ue=m(e,"logoTargetUrl",3,""),lt=m(e,"showNextPrevButtons",3,!1),dt=m(e,"nextButtonActive",3,!1),it=m(e,"prevButtonActive",3,!1),It=m(e,"endScreenVideoTitle",3,void 0),ht=m(e,"endScreenVideoThumb",3,void 0),Qt=m(e,"isOneVideoPlaylist",3,!1),Zt=m(e,"shadowRootContainer",3,void 0),At=m(e,"outerContainerRef",3,void 0),Rt=m(e,"showMiniTimer",3,!1),O=m(e,"fullScreenTarget",3,void 0),be=m(e,"playerStarted",3,!1),oe=m(e,"showEndScreen",3,!0),{notifications$:Be,graphIsOpened$:Ke}=to(),Ye=e.store.getLogger().createComponentLog("Root component"),Le=e.store.interfaceLanguage$,tt=e.store.state.playbackState$,Xe=e.store.ads.playbackState,bt=e.store.state.positionWithScrubbing$,ut=e.store.state.duration$,ft=e.store.playerPhase,Bt=e.store.ui.isFullscreen,Qe=e.store.ui.controlsVisible,ri=e.store.ui.isControlsAvailable,bi=e.store.ui.interactiveHideMobileControls,et=e.store.ui.settingsMenu.visible$,Gt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ki=e.store.ui.scrubbingInProgress,zi=e.store.ui.volumeChangingInProgress,Mt=e.store.ui.debugPanelVisible,$t=e.store.state.isLoaderVisible,Nt=e.store.state.isEnded$,oo=e.store.state.chromecastConnected$,sn=e.store.state.chromecastDeviceName$,hn=e.store.ads.postrollPassed,bo=e.store.ui.mobileUnmuteButtonExpanded,G=e.store.ui.mobileUnmuteButtonVisible,Xt=e.store.state.isLive$,_i=e.store.state.isPlaying$,Ei=e.store.state.isActiveLive$,ai=e.store.state.isRewindableLive$,mt=e.store.state.crashed$,pi=e.store.webApi.annotationsApi,Je=e.store.webApi.pictureInPictureApi,Lt=e.store.state.videoSize$,no=e.store.state.currentSubtitle$,ti=e.store.state.currentSubtitleCaptions$,rr=e.store.state.duration$,ro=e.store.ui.playerSize,ko=e.store.ui.is3DVideo,li=e.store.ui.icon3DVideoVisible,St=e.store.state.isInteractive,Pi=e.store.state.isInteractiveTime$,Eo=e.store.state.isInteractiveExpectation$,ui=e.store.state.hasInteractiveBranches,Oo=e.store.ui.controls.disabledControls$,Vi=e.store.ui.touched,$o=e.store.ui.overlayContainer$,yo=e.store.ui.autoplayNextEnabled$,Hn=e.store.state.loadedMetadata$,Ri=e.store.actions.internal.closeSettingsMenu,_n=(So=e.store.callbacks)==null?void 0:So.onDisabledPlayPrevChapterClick,xo=(Co=e.store.callbacks)==null?void 0:Co.onDisabledSeekToInteractiveClick,Po=e.store.actions.internal.setQuality,bn=X(void 0),Sr=X(void 0),sr=X(void 0),Fn=X(void 0),$n,yn,Un,so=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),ot=X(void 0),{closeNotification:xn,notificationsToShow$:Ho}=Be,wn=v(()=>!!l().slow_video),Sn=()=>xn("slow_video"),Ao=le(!1),ar,Fo=X(!1),Cn=v(()=>p()!==gx.PLAYING),Uo=X(!1),ao=v(()=>f()||y()||!r(Fo)&&(u()&&!!ui||r(Cn)&&_())),Bi=X(!0),Tn=v(()=>e.uiConfig.features.thumbTimer&&Rt()&&n()==="video"&&!w()&&!d()&&!St&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),Mo=X(!1),zo=v(()=>(oe()||e.showAutoplayNext&&C())&&!!It()&&!!ht()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(Mo)),Lo=X(!1);Je==null||Je.setContext(Sl());let In=ct=>{clearTimeout(yn),ct&&(G.set(!0),bo.set(!0),yn=setTimeout(()=>{bo.set(!1)},e.uiConfig.controls.collapseMobileUnmute),St||Di(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:In});let Ni=()=>{clearTimeout($n),D(Fo,!1),y()&&bi.set(!1)},Di=ct=>{Ni(),D(Fo,!0),$n=setTimeout(()=>D(Fo,!1),ct);let qt=ct-100;ar=setTimeout(()=>{I()&&Ao.set(!1)},qt>0?qt:ct)},lr=ko.subscribe(ct=>{li.set(ct),ct&&(clearTimeout(Un),Un=setTimeout(()=>li.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Vo=async(ct=gs())=>{var qt,oi,fi,Qi,co,Wi;if(ct&&!Td.device.isIOS){let Oi=Dl(),Si=an(),Wo=Td.browser.isSamsungBrowser&&Oi===Zt();ct=Oi===Si||Wo}if(ct){Di(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Je==null?void 0:Je.remove())}catch(Oi){Ye({message:String(Oi)})}try{let Oi=(qt=M())!=null&&qt.width&&((oi=M())!=null&&oi.height)?M():P();await gh(Oi)}catch(Oi){Ye({message:String(Oi)})}}Bt.set(ct),e.store.getAdmanWrapper().setFullscreen(ct),k()?(Qi=(fi=e.store.callbacks)==null?void 0:fi.onFullscreenEnter)==null||Qi.call(fi):(Wi=(co=e.store.callbacks)==null?void 0:co.onFullscreenExit)==null||Wi.call(co)},zn=ct=>{let qt=ct;ro.set({width:qt.target.width,height:qt.target.height})};zt(()=>{var ct;return Pc(Vo),e.uiConfig.features.annotationsInside&&(pi==null||pi.init(r(bn))),js(Je)&&(Je==null||Je.assignPlayerContainer(r(bn)),Je==null||Je.registryExternalEventHandlers({resize:zn})),D(Bi,!Td.device.isIphoneOrOldIpad),e.interactiveContainer&&((ct=ee().parentElement)==null||ct.insertBefore(e.interactiveContainer,ee().nextSibling)),()=>{clearTimeout($n),clearTimeout(ar),clearTimeout(yn),clearTimeout(Un),lr(),Je==null||Je.dispose().catch(qt=>{Ye({message:String(qt)})}),Ac(Vo)}});let kn=X(!0),Wn=X(!0),dr=ct=>{let qt=V()+(ct==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;qt<0?(D(kn,!1),qt=0):qt>=W()&&(D(Wn,!1),qt=W()),D(Uo,!0),e.seekTime(qt)},an=()=>{let ct=Td.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!At()?r(bn):At(),qt=ct.getRootNode(),oi=qt instanceof ShadowRoot?qt.host:qt,fi=O()instanceof HTMLElement&&O().contains(oi);return e.uiConfig.allowChangingFullscreenTarget&&O()&&fi?O():ct},cr=async()=>{try{if(gs())await Ec(document),Ye({message:"exit fullscreen"});else{if(Ye({message:"request fullscreen"}),Td.device.isIOS&&!j())return;await kc(an())}}catch(ct){Ye({message:String(ct)})}},ur=()=>{Ri()},qn=ct=>{if(ct.preventDefault(),H()){ur();return}if(!be()){e.firstStart(),Di(e.uiConfig.controls.hideTimeoutCursor);return}D(Uo,!1),w()?Ni():Di(e.uiConfig.controls.hideTimeoutMobile)},Cr=()=>{Vi.set(!0)},Tr=()=>{St||(Ao.set(!0),Di(e.uiConfig.controls.hideTimeoutCursor))},En=ct=>{_n&&(_n(ct),Di(e.uiConfig.controls.hideTimeoutMobile))},Jt=ct=>{xo&&(xo(ct),Di(e.uiConfig.controls.hideTimeoutMobile))};Fe(()=>{$o.set(r(ot))}),Fe(()=>{Qe.set((r(Cn)||H()||Q()||ie()||Z()||!r(zo)&&(u()||r(Fo)&&!r(Uo)))&&!r(ao)&&n()==="video"&&!d()&&se())}),Fe(()=>{!Q()&&r(Lo)&&!ce()&&Di(e.uiConfig.controls.hideTimeoutMobile),D(Lo,fe(Q()))}),Fe(()=>{D(kn,V()>0),D(Wn,fe(!Ee()&&V()<W()))}),Fe(()=>{Ga(r(Fn),H(),Me())});let Kn=z("aria_label_video_player"),Qn=z("video360");$1({fullScreenChangeHandler:Vo,getFullscreenTarget:an}),y1({store:e.store,getFullscreenTarget:an});var nt=Cx();Tt("blur",Ds,ur),Ne(nt,"aria-label",Kn);var yt=h(nt);ma(yt,{onClick:qn,get videoContainer(){return ee()},set videoContainer(ct){ee(ct)}});var wi=A(yt,2);Ws(wi,()=>"slot",!1,(ct,qt)=>{Te(ct,null,{name:fa})});var wo=A(wi,2);zs(wo,ge,ct=>{var qt=Sx(),oi=pe(qt);let fi=v(()=>n()!=="thumb"||d()||St&&e.autoplay);ca(oi,{get hidden(){return r(fi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Qi=A(oi,2);{var co=Re=>{var vt=bx(),ni=pe(vt);{var Yi=Mi=>{let Xn=v(()=>e.uiConfig.controls.seekStepMobile/1e3);ru(Mi,{side:"left",get seekStep(){return r(Xn)},handleSingleFirstClick:qn,handleSecondClick:()=>dr("backward")})};R(ni,Mi=>{r(kn)&&Mi(Yi)})}var uo=A(ni,2);{var Ur=Mi=>{let Xn=v(()=>e.uiConfig.controls.seekStepMobile/1e3);ru(Mi,{side:"right",get seekStep(){return r(Xn)},handleSingleFirstClick:qn,handleSecondClick:()=>dr("forward")})};R(uo,Mi=>{r(Wn)&&Mi(Ur)})}$(Re,vt)};R(Qi,Re=>{e.canRewindLive&&ai&&!ae().has("TIMELINE")&&Re(co)})}var Wi=A(Qi,2);{var Oi=Re=>{let vt=v(()=>{var ni;return(ni=e.live)==null?void 0:ni.startTime});yd(Re,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(vt)}})};R(Wi,Re=>{n()==="LiveWaitingStart"&&Re(Oi)})}var Si=A(Wi,2);{var Wo=Re=>{ua(Re,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Si,Re=>{n()==="LiveWaitingRecover"&&Re(Wo)})}var Pn=A(Si,2);{var Ir=Re=>{ua(Re,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Pn,Re=>{n()==="LiveWaitingRecord"&&Re(Ir)})}var Gn=A(Pn,2);{var kr=Re=>{var vt=$x();let ni;var Yi=h(vt);Ol(Yi,{get adsSlotId(){return He()},get adsParams(){return je()},get adsPreviewParam(){return we()},get adsAutoplayParam(){return Ve()},get duration(){return Ie()}}),g(vt),E(uo=>ni=J(vt,1,"ads-container svelte-7yl31d",null,ni,uo),[()=>({hidden:n()!=="ads"})]),$(Re,vt)};R(Gn,Re=>{e.showAds&&be()&&Re(kr)})}var ln=A(Gn,2);{var Yn=Re=>{let vt=v(()=>!oe()&&e.showAutoplayNext&&C());Cm(Re,{get title(){return It()},get thumb(){return ht()},get isHide(){return r(vt)},clickCloseIcon:()=>D(Mo,!0)})};R(ln,Re=>{r(zo)&&It()&&ht()&&Re(Yn)})}var jn=A(ln,2);{var Hr=Re=>{_d(Re,{})};R(jn,Re=>{Pe()&&Re(Hr)})}var Zn=A(jn,2);{var qo=Re=>{var vt=yx(),ni=h(vt);Nl(ni,{"aria-label":Qn}),g(vt),$(Re,vt)};R(Zn,Re=>{ne()&&Re(qo)})}var pr=A(Zn,2);{var Ko=Re=>{bd(Re,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};R(pr,Re=>{Z()&&Re(Ko)})}var fr=A(pr,2);{var Fr=Re=>{da(Re,{get shifted(){return w()},get captions(){return _e()},get position(){return V()},get playerSize(){return P()},isMobile:!0})};R(fr,Re=>{ue().value!=="off"&&Re(Fr)})}var Er=A(fr,2);{var Pr=Re=>{var vt=xx();vt.__click=[_x,H,et,ur];var ni=h(vt);$d(ni,{}),g(vt),$(Re,vt)};R(Er,Re=>{d()&&Re(Pr)})}var Ze=A(Er,2);{var Dt=Re=>{let vt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),ni=v(()=>n()==="ads"),Yi=v(()=>e.canRewindLive&&ze()!==0);hd(Re,{get bottomHidden(){return r(vt)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return r(ni)},get canRewindLive(){return r(Yi)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ue()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return lt()},get nextButtonActive(){return dt()},get prevButtonActive(){return it()},get isOneVideoPlaylist(){return Qt()},get customFullscreenSupported(){return r(Bi)},get endScreenShown(){return r(zo)},toggleFullscreen:cr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:En,onDisabledSeekToInteractiveClick:Jt,get playerControlsWrapperRef(){return r(Sr)},set playerControlsWrapperRef(uo){D(Sr,fe(uo))},get playerControlsRef(){return r(sr)},set playerControlsRef(uo){D(sr,fe(uo))}})};R(Ze,Re=>{be()&&Re(Dt)})}var Ai=A(Ze,2);{var Qo=Re=>{var vt=wx(),ni=h(vt);Sd(ni,{get supportLink(){return e.supportLink},returnFocus:hx,get ref(){return r(Fn)},set ref(Yi){D(Fn,fe(Yi))}}),g(vt),$(Re,vt)};R(Ai,Re=>{H()&&Re(Qo)})}var Ro=A(Ai,2);let An=v(()=>!r(Tn));Ul(Ro,{get isLive(){return re()},get isHidden(){return r(An)},get isPlaying(){return K()},get position(){return V()},get duration(){return W()}});var dn=A(Ro,2);{var Se=Re=>{ta(Re,{})};R(dn,Re=>{r(so)&&Re(Se)})}var pt=A(dn,2);{var Ut=Re=>{Kl(Re,{})};R(pt,Re=>{he()&&Re(Ut)})}var si=A(pt,2);{var Gi=Re=>{Cd(Re,{onClose:Sn,onSelectAutoQuality:()=>{Po("auto"),Sn()}})};R(si,Re=>{r(wn)&&Re(Gi)})}$(ct,qt)});var lo=A(wo,2);gt(lo,ct=>D(ot,ct),()=>r(ot)),g(nt),gt(nt,ct=>D(bn,ct),()=>r(bn)),Tt("click",nt,Cr,!0),Tt("focusin",nt,Tr,!0),$(t,nt),U(),o()}st(["click"]);function au(t){let e="";return io(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),io(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),io(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),io(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),io(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),io(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),io(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),io(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),io(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),io(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),io(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),io(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),io(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),io(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),io(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),io(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),io(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),io(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),io(t.font)&&(e+=`--font:${t.font};`),e.length&&e||void 0}function io(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Ix}from"@vkontakte/videoplayer-shared/es2018";var kx=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Ex={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 Im(t,e){F(e,!0),q(t,Ex);let[i,o]=De(),n=()=>S(ie,"$playerSize",i),a=()=>S(k,"$isPlaying$",i),s=()=>S(M,"$duration$",i),d=()=>S(j,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),p=()=>S(I,"$crashed$",i),f=()=>S(V,"$currentSubtitle$",i),y=()=>S(W,"$currentSubtitleCaptions$",i),u=()=>S(P,"$positionExact$",i),_=()=>S(H,"$isLive$",i),w=()=>S(Q,"$isRewindableLive$",i),b=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:M,positionExact$:P,isPlaying$:k,currentSubtitle$:V,currentSubtitleCaptions$:W,positionWithScrubbing$:j,isLive$:H,isRewindableLive$:Q},ui:{playerSize:ie,controls:Z},actions:{internal:{getVideoElement:se}}}=Ce(),ce=8,Ee=X(!1),Me=fe({}),ge=()=>{D(Ee,!0)},ae=()=>{D(Ee,!1)},Pe=Ix(el,260);Fe(()=>{n(),Pe(se(),Z,Me,r(Ee))});let ne=v(()=>a()?rn(s()-d()):rn(isFinite(s())?s():b()));var N=kx(),ue=h(N);ma(ue,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ie){C(Ie)}});var _e=A(ue,2);Ws(_e,()=>"slot",!1,(Ie,Ue)=>{Te(Ie,null,{name:fa})});var ze=A(_e,2);let re=v(()=>l()!=="thumb"||p());ca(ze,{get hidden(){return r(re)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var K=A(ze,2);{var he=Ie=>{da(Ie,{shifted:!1,get captions(){return y()},get position(){return u()},get playerSize(){return n()}})};R(K,Ie=>{f().value!=="off"&&Ie(he)})}var ee=A(K,2),He=h(ee);Fl(He,{get isLive(){return _()},get isPlaying(){return a()},get time(){return r(ne)}}),g(ee);var je=A(ee,2);let we;var Ve=h(je);na(Ve,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ce,tooltipRightOffset:ce,get ref(){return Me.timeline},set ref(Ie){Me.timeline=Ie}}),g(je),g(N),E(Ie=>we=J(je,1,"timeline svelte-1qfjf44",null,we,Ie),[()=>({visible:r(Ee)})]),Tt("mouseenter",N,ge),Tt("mouseleave",N,ae),$(t,N),U(),o()}var Lx=L("<div><!></div>"),Vx={hash:"svelte-tw6yp4",code:`.root.svelte-tw6yp4 {--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;
361
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function cu(t,e){O(e,!0),W(t,_x);let i=m(e,"seekStep",3,0),o=X(!1),n=0,a=0,r=X(ve(i())),d=b=>{b.stopPropagation(),a+=1,D(r,i()*(a-1)),a===1?e.handleSingleFirstClick(b):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};wn(()=>{window.clearTimeout(n)});var l=hx();l.__click=d;var p=h(l);{var f=b=>{var u=gx(),_=he(u),w=A(_,2),y=h(w),C=h(y),T=A(C,2),I=A(T,2);g(y);var M=A(y,2),P=h(M,!0);g(M),g(w),k(E=>{var R,z,q,U;J(_,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),J(C,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(q=e.side)!=null?q:""}`,"svelte-nhq2ld"),J(I,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),_e(P,E)},[()=>F("doubletap_seek_step",{seconds:s(r).toFixed(0)})]),$(b,u)};V(p,b=>{s(o)&&b(f)})}g(l),k(()=>{var b;return J(l,1,`double-click-area ${(b=e.side)!=null?b:""}`,"svelte-nhq2ld")}),$(t,l),H()}lt(["click"]);var bx=(t,e,i)=>{e(!1),i()},$x=L('<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),yx={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 Pm(t,e){O(e,!0),W(t,yx);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),r=Ie(),d=r.ui.autoplayNextEnabled$,l=r.ui.timerNextVideoRunning$,p=r.actions.internal.nextVideoClick,f=r.actions.internal.nextVideoAnnouncementShow,b=r.actions.internal.nextVideoAnnouncementClick,u=r.actions.internal.nextVideoAnnouncementAuto,_=r.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),_()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var C=He(),T=he(C);{var I=M=>{var P=$x(),E=A(he(P),2),R=h(E),z=h(R),q=h(z,!0);g(z);var U=A(z,2);da(U,{onClick:y}),g(R);var Y=A(R,2);Y.__click=[bx,p,b];var se=h(Y),Q=h(se),de=h(Q);let le;var Me=A(de,2);{var Be=ae=>{ed(ae,{get isRunning(){return a()},onTimerEnded:w})};V(Me,ae=>{n()&&ae(Be)})}g(Q),g(se);var ge=A(se,2),ce=h(ge),Ae=h(ce,!0);g(ce),g(ge),g(Y),g(E),k((ae,N)=>{_e(q,ae),st(Q,`background-image: url('${e.thumb}')`),le=J(de,1,"thumb-overlay svelte-1qdxi6t",null,le,N),_e(Ae,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(M,P)};V(T,M=>{e.isHide||M(I)})}$(t,C),H(),o()}lt(["click"]);import{clientChecker as xx}from"@vkontakte/videoplayer-core/es2018";var E1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Rt(()=>{xx.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let r=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",r),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",r),a.removeEventListener("webkitendfullscreen",d)}},0))}),wn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as wx}from"@vkontakte/videoplayer-core/es2018";var uu=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 Sx}from"@vkontakte/videoplayer-core/es2018";var k1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:a,currentFormat$:r,availableTextTracks$:d}=t.state,l=null,p=()=>e().querySelector("video"),f=()=>Sx.device.isIOS&&xe(r)===wx.DASH_LIVE_CMAF,b=()=>{l==null||l(),l=null},u=_=>{if(b(),!f()||!_)return;let w=p();if(!w)return;let y=new uu(w),C=xe(d),T=xe(a),I=xe(n);for(let E of C)T.some(z=>z.value===E.id)&&y.attach(E,I.value===E.id);let M=d.subscribe(E=>{for(let R of E)y.updateSrc(R)}),P=()=>{let E=y.getCurrentShowingId();o(xe(a).find(R=>R.value===E))};w.textTracks.addEventListener("change",P),l=()=>{M(),y.detachAll(),w.textTracks.removeEventListener("change",P)}};Rt(()=>i.subscribe(u)),wn(b)};var Ix=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Ex=L("<!> <!>",1),kx=L("<div><!></div>"),Px=L('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Ax=L("<div><!></div>"),Mx=L('<div class="settings-mobile svelte-7yl31d"><!></div>'),Lx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Vx=L('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Rx={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Am(t,e){var Nr,br;O(e,!0),W(t,Rx);let[i,o]=De(),n=()=>S(mt,"$playerPhase",i),a=()=>S(qi,"$isLoaderVisible",i),r=()=>S(it,"$adPlaybackState",i),d=()=>S(di,"$crashed",i),l=()=>S(Pn,"$notificationsToShow$",i),p=()=>S(Ke,"$playbackState$",i),f=()=>S(Pe,"$graphIsOpened$",i),b=()=>S(zt,"$interactiveHideMobileControls",i),u=()=>S(ot,"$isEnded$",i),_=()=>S(Vo,"$isInteractiveExpectation$",i),w=()=>S(gt,"$controlsVisible",i),y=()=>S(Si,"$touched",i),C=()=>S(In,"$autoplayNextEnabled$",i),T=()=>S(wi,"$postrollPassed",i),I=()=>S(An,"$bottomNoSmooth",i),M=()=>S(Mt,"$videoSize",i),P=()=>S(Ai,"$playerSize",i),E=()=>S(Wt,"$isFullscreen",i),R=()=>S(Ze,"$position$",i),z=()=>S(yt,"$duration$",i),q=()=>S(Bo,"$loadedMetadata",i),U=()=>S(je,"$settingsMenuVisible",i),Y=()=>S(Wi,"$scrubbingInProgress",i),se=()=>S(Ni,"$volumeChangingInProgress",i),Q=()=>S(bt,"$chromecastConnected$",i),de=()=>S(xi,"$isControlsAvailable",i),le=()=>S(Mi,"$isInteractiveTime$",i),Me=()=>S(Pi,"$isActiveLive",i),Be=()=>S(Jt,"$settingsMenuOpenedByKeyboard",i),ge=()=>S(fe,"$language$",i),ce=()=>S(ai,"$disabledControls$",i),Ae=()=>S(Lo,"$is3DVideo",i),ae=()=>S(_i,"$icon3DVideoVisible",i),N=()=>S(li,"$chromecastDeviceName$",i),Ge=()=>S(lo,"$currentSubtitle$",i),ee=()=>S(ei,"$currentSubtitleCaptions$",i),We=()=>S(Zn,"$realDuration$",i),ne=()=>S(qt,"$isLive$",i),me=()=>S(ci,"$isPlaying$",i),$e=()=>S(ao,"$debugPanelVisible",i),Z=m(e,"videoContainer",15),ze=m(e,"adsSlotId",3,void 0),Je=m(e,"adsParams",3,void 0),Ce=m(e,"adsPreviewParam",3,void 0),ie=m(e,"adsAutoplayParam",3,void 0),Ee=m(e,"duration",3,void 0),qe=m(e,"logoTargetUrl",3,""),nt=m(e,"showNextPrevButtons",3,!1),dt=m(e,"nextButtonActive",3,!1),rt=m(e,"prevButtonActive",3,!1),St=m(e,"endScreenVideoTitle",3,void 0),ct=m(e,"endScreenVideoThumb",3,void 0),Yt=m(e,"isOneVideoPlaylist",3,!1),ni=m(e,"shadowRootContainer",3,void 0),Ot=m(e,"outerContainerRef",3,void 0),Et=m(e,"showMiniTimer",3,!1),te=m(e,"fullScreenTarget",3,void 0),At=m(e,"playerStarted",3,!1),j=m(e,"showEndScreen",3,!0),{notifications$:pe,graphIsOpened$:Pe}=ro(),Re=e.store.getLogger().createComponentLog("Root component"),fe=e.store.interfaceLanguage$,Ke=e.store.state.playbackState$,it=e.store.ads.playbackState,Ze=e.store.state.positionWithScrubbing$,yt=e.store.state.duration$,mt=e.store.playerPhase,Wt=e.store.ui.isFullscreen,gt=e.store.ui.controlsVisible,xi=e.store.ui.isControlsAvailable,zt=e.store.ui.interactiveHideMobileControls,je=e.store.ui.settingsMenu.visible$,Jt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Wi=e.store.ui.scrubbingInProgress,Ni=e.store.ui.volumeChangingInProgress,ao=e.store.ui.debugPanelVisible,qi=e.store.state.isLoaderVisible,ot=e.store.state.isEnded$,bt=e.store.state.chromecastConnected$,li=e.store.state.chromecastDeviceName$,wi=e.store.ads.postrollPassed,xo=e.store.ui.mobileUnmuteButtonExpanded,G=e.store.ui.mobileUnmuteButtonVisible,qt=e.store.state.isLive$,ci=e.store.state.isPlaying$,Pi=e.store.state.isActiveLive$,si=e.store.state.isRewindableLive$,di=e.store.state.crashed$,ut=e.store.webApi.annotationsApi,et=e.store.webApi.pictureInPictureApi,Mt=e.store.state.videoSize$,lo=e.store.state.currentSubtitle$,ei=e.store.state.currentSubtitleCaptions$,Zn=e.store.state.duration$,Ai=e.store.ui.playerSize,Lo=e.store.ui.is3DVideo,_i=e.store.ui.icon3DVideoVisible,vt=e.store.state.isInteractive,Mi=e.store.state.isInteractiveTime$,Vo=e.store.state.isInteractiveExpectation$,Tn=e.store.state.hasInteractiveBranches,ai=e.store.ui.controls.disabledControls$,Si=e.store.ui.touched,Ro=e.store.ui.overlayContainer$,In=e.store.ui.autoplayNextEnabled$,Bo=e.store.state.loadedMetadata$,wo=e.store.actions.internal.closeSettingsMenu,fn=(Nr=e.store.callbacks)==null?void 0:Nr.onDisabledPlayPrevChapterClick,Go=(br=e.store.callbacks)==null?void 0:br.onDisabledSeekToInteractiveClick,co=e.store.actions.internal.setQuality,So=X(void 0),Vr=X(void 0),mr=X(void 0),Xn=X(void 0),Jn,er,En,Xr=v(()=>(n()==="video"&&a()||n()==="ads"&&r()==="inactive")&&!d()),kn=X(void 0),{closeNotification:Li,notificationsToShow$:Pn}=pe,Yo=v(()=>!!l().slow_video),jo=()=>Li("slow_video"),An=re(!1),Mn,No=X(!1),Rr=v(()=>p()!==Cx.PLAYING),Ln=X(!1),tr=v(()=>f()||b()||!s(No)&&(u()&&!!Tn||s(Rr)&&_())),Di=X(!0),Co=v(()=>e.uiConfig.features.thumbTimer&&Et()&&n()==="video"&&!w()&&!d()&&!vt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),at=X(!1),jt=v(()=>(j()||e.showAutoplayNext&&C())&&!!St()&&!!ct()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!s(at)),vr=X(!1);et==null||et.setContext(Al());let Vn=ht=>{clearTimeout(er),ht&&(G.set(!0),xo.set(!0),er=setTimeout(()=>{xo.set(!1)},e.uiConfig.controls.collapseMobileUnmute),vt||Vi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Vn});let mn=()=>{clearTimeout(Jn),D(No,!1),b()&&zt.set(!1)},Vi=ht=>{mn(),D(No,!0),Jn=setTimeout(()=>D(No,!1),ht);let Zt=ht-100;Mn=setTimeout(()=>{I()&&An.set(!1)},Zt>0?Zt:ht)},Rn=Lo.subscribe(ht=>{_i.set(ht),ht&&(clearTimeout(En),En=setTimeout(()=>_i.set(!1),e.uiConfig.controls.hide360IconTimeout))}),To=async(ht=Ps())=>{var Zt,Oo,po,Gi,Xo,On;if(ht&&!Md.device.isIOS){let fo=ql(),vn=ir(),Jo=Md.browser.isSamsungBrowser&&fo===ni();ht=fo===vn||Jo}if(ht){Vi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(et==null?void 0:et.remove())}catch(fo){Re({message:String(fo)})}try{let fo=(Zt=M())!=null&&Zt.width&&((Oo=M())!=null&&Oo.height)?M():P();await $h(fo)}catch(fo){Re({message:String(fo)})}}Wt.set(ht),e.store.getAdmanWrapper().setFullscreen(ht),E()?(Gi=(po=e.store.callbacks)==null?void 0:po.onFullscreenEnter)==null||Gi.call(po):(On=(Xo=e.store.callbacks)==null?void 0:Xo.onFullscreenExit)==null||On.call(Xo)},Bn=ht=>{let Zt=ht;Ai.set({width:Zt.target.width,height:Zt.target.height})};Rt(()=>{var ht;return Vc(To),e.uiConfig.features.annotationsInside&&(ut==null||ut.init(s(So))),sa(et)&&(et==null||et.assignPlayerContainer(s(So)),et==null||et.registryExternalEventHandlers({resize:Bn})),D(Di,!Md.device.isIphoneOrOldIpad),e.interactiveContainer&&((ht=Z().parentElement)==null||ht.insertBefore(e.interactiveContainer,Z().nextSibling)),()=>{clearTimeout(Jn),clearTimeout(Mn),clearTimeout(er),clearTimeout(En),Rn(),et==null||et.dispose().catch(Zt=>{Re({message:String(Zt)})}),Rc(To)}});let Io=X(!0),Nn=X(!0),Dn=ht=>{let Zt=R()+(ht==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Zt<0?(D(Io,!1),Zt=0):Zt>=z()&&(D(Nn,!1),Zt=z()),D(Ln,!0),e.seekTime(Zt)},ir=()=>{let ht=Md.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ot()?s(So):Ot(),Zt=ht.getRootNode(),Oo=Zt instanceof ShadowRoot?Zt.host:Zt,po=te()instanceof HTMLElement&&te().contains(Oo);return e.uiConfig.allowChangingFullscreenTarget&&te()&&po?te():ht},gr=async()=>{try{if(Ps())await Lc(document),Re({message:"exit fullscreen"});else{if(Re({message:"request fullscreen"}),Md.device.isIOS&&!q())return;await Mc(ir())}}catch(ht){Re({message:String(ht)})}},or=()=>{wo()},Do=ht=>{if(ht.preventDefault(),U()){or();return}if(!At()){e.firstStart(),Vi(e.uiConfig.controls.hideTimeoutCursor);return}D(Ln,!1),w()?mn():Vi(e.uiConfig.controls.hideTimeoutMobile)},Br=()=>{Si.set(!0)},nr=()=>{vt||(An.set(!0),Vi(e.uiConfig.controls.hideTimeoutCursor))},hr=ht=>{fn&&(fn(ht),Vi(e.uiConfig.controls.hideTimeoutMobile))},Zo=ht=>{Go&&(Go(ht),Vi(e.uiConfig.controls.hideTimeoutMobile))};Ue(()=>{Ro.set(s(kn))}),Ue(()=>{gt.set((s(Rr)||U()||Y()||se()||Q()||!s(jt)&&(u()||s(No)&&!s(Ln)))&&!s(tr)&&n()==="video"&&!d()&&de())}),Ue(()=>{!Y()&&s(vr)&&!le()&&Vi(e.uiConfig.controls.hideTimeoutMobile),D(vr,ve(Y()))}),Ue(()=>{D(Io,R()>0),D(Nn,ve(!Me()&&R()<z()))}),Ue(()=>{Xa(s(Xn),U(),Be())});let Kt=F("aria_label_video_player"),uo=F("video360");E1({fullScreenChangeHandler:To,getFullscreenTarget:ir}),k1({store:e.store,getFullscreenTarget:ir});var Eo=Vx();Tt("blur",Gs,or),Ne(Eo,"aria-label",Kt);var rr=h(Eo);Sa(rr,{onClick:Do,get videoContainer(){return Z()},set videoContainer(ht){Z(ht)}});var _r=A(rr,2);ea(_r,()=>"slot",!1,(ht,Zt)=>{ke(ht,null,{name:wa})});var Ci=A(_r,2);Js(Ci,ge,ht=>{var Zt=Lx(),Oo=he(Zt);let po=v(()=>n()!=="thumb"||d()||vt&&e.autoplay);$a(Oo,{get hidden(){return s(po)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Gi=A(Oo,2);{var Xo=ye=>{var xt=Ex(),Ft=he(xt);{var Ti=Ct=>{let ti=v(()=>e.uiConfig.controls.seekStepMobile/1e3);cu(Ct,{side:"left",get seekStep(){return s(ti)},handleSingleFirstClick:Do,handleSecondClick:()=>Dn("backward")})};V(Ft,Ct=>{s(Io)&&Ct(Ti)})}var hi=A(Ft,2);{var Fe=Ct=>{let ti=v(()=>e.uiConfig.controls.seekStepMobile/1e3);cu(Ct,{side:"right",get seekStep(){return s(ti)},handleSingleFirstClick:Do,handleSecondClick:()=>Dn("forward")})};V(hi,Ct=>{s(Nn)&&Ct(Fe)})}$(ye,xt)};V(Gi,ye=>{e.canRewindLive&&si&&!ce().has("TIMELINE")&&ye(Xo)})}var On=A(Gi,2);{var fo=ye=>{let xt=v(()=>{var Ft;return(Ft=e.live)==null?void 0:Ft.startTime});Id(ye,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(xt)}})};V(On,ye=>{n()==="LiveWaitingStart"&&ye(fo)})}var vn=A(On,2);{var Jo=ye=>{ya(ye,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(vn,ye=>{n()==="LiveWaitingRecover"&&ye(Jo)})}var Xe=A(vn,2);{var Lt=ye=>{ya(ye,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Xe,ye=>{n()==="LiveWaitingRecord"&&ye(Lt)})}var vi=A(Xe,2);{var mo=ye=>{var xt=kx();let Ft;var Ti=h(xt);Kl(Ti,{get adsSlotId(){return ze()},get adsParams(){return Je()},get adsPreviewParam(){return Ce()},get adsAutoplayParam(){return ie()},get duration(){return Ee()}}),g(xt),k(hi=>Ft=J(xt,1,"ads-container svelte-7yl31d",null,Ft,hi),[()=>({hidden:n()!=="ads"})]),$(ye,xt)};V(vi,ye=>{e.showAds&&At()&&ye(mo)})}var Yi=A(vi,2);{var Ho=ye=>{let xt=v(()=>!j()&&e.showAutoplayNext&&C());Pm(ye,{get title(){return St()},get thumb(){return ct()},get isHide(){return s(xt)},clickCloseIcon:()=>D(at,!0)})};V(Yi,ye=>{s(jt)&&St()&&ct()&&ye(Ho)})}var Ki=A(Yi,2);{var Fo=ye=>{Sd(ye,{})};V(Ki,ye=>{Ae()&&ye(Fo)})}var ko=A(Ki,2);{var Oi=ye=>{var xt=Px(),Ft=h(xt);Wl(Ft,{"aria-label":uo}),g(xt),$(ye,xt)};V(ko,ye=>{ae()&&ye(Oi)})}var gi=A(ko,2);{var Uo=ye=>{Cd(ye,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};V(gi,ye=>{Q()&&ye(Uo)})}var en=A(gi,2);{var Hi=ye=>{ba(ye,{get shifted(){return w()},get captions(){return ee()},get position(){return R()},get playerSize(){return P()},isMobile:!0})};V(en,ye=>{Ge().value!=="off"&&ye(Hi)})}var $r=A(en,2);{var Dr=ye=>{var xt=Ax();xt.__click=[Ix,U,je,or];var Ft=h(xt);Td(Ft,{}),g(xt),$(ye,xt)};V($r,ye=>{d()&&ye(Dr)})}var Or=A($r,2);{var gn=ye=>{let xt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Ft=v(()=>n()==="ads"),Ti=v(()=>e.canRewindLive&&We()!==0);wd(ye,{get bottomHidden(){return s(xt)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return s(Ft)},get canRewindLive(){return s(Ti)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return qe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return nt()},get nextButtonActive(){return dt()},get prevButtonActive(){return rt()},get isOneVideoPlaylist(){return Yt()},get customFullscreenSupported(){return s(Di)},get endScreenShown(){return s(jt)},toggleFullscreen:gr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:hr,onDisabledSeekToInteractiveClick:Zo,get playerControlsWrapperRef(){return s(Vr)},set playerControlsWrapperRef(hi){D(Vr,ve(hi))},get playerControlsRef(){return s(mr)},set playerControlsRef(hi){D(mr,ve(hi))}})};V(Or,ye=>{At()&&ye(gn)})}var Hn=A(Or,2);{var Hr=ye=>{var xt=Mx(),Ft=h(xt);Pd(Ft,{get supportLink(){return e.supportLink},returnFocus:Tx,get ref(){return s(Xn)},set ref(Ti){D(Xn,ve(Ti))}}),g(xt),$(ye,xt)};V(Hn,ye=>{U()&&ye(Hr)})}var ji=A(Hn,2);let zo=v(()=>!s(Co));Yl(ji,{get isLive(){return ne()},get isHidden(){return s(zo)},get isPlaying(){return me()},get position(){return R()},get duration(){return z()}});var Fn=A(ji,2);{var sr=ye=>{ua(ye,{})};V(Fn,ye=>{s(Xr)&&ye(sr)})}var ar=A(Fn,2);{var Fr=ye=>{Jl(ye,{})};V(ar,ye=>{$e()&&ye(Fr)})}var es=A(ar,2);{var Te=ye=>{Ad(ye,{onClose:jo,onSelectAutoQuality:()=>{co("auto"),jo()}})};V(es,ye=>{s(Yo)&&ye(Te)})}$(ht,Zt)});var Jr=A(Ci,2);tt(Jr,ht=>D(kn,ht),()=>s(kn)),g(Eo),tt(Eo,ht=>D(So,ht),()=>s(So)),Tt("click",Eo,Br,!0),Tt("focusin",Eo,nr,!0),$(t,Eo),H(),o()}lt(["click"]);function pu(t){let e="";return so(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),so(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),so(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),so(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),so(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),so(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),so(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),so(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),so(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),so(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),so(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),so(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),so(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),so(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),so(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),so(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),so(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),so(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),so(t.font)&&(e+=`--font:${t.font};`),e.length&&e||void 0}function so(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Bx}from"@vkontakte/videoplayer-shared/es2018";var Nx=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Dx={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 Mm(t,e){O(e,!0),W(t,Dx);let[i,o]=De(),n=()=>S(se,"$playerSize",i),a=()=>S(E,"$isPlaying$",i),r=()=>S(M,"$duration$",i),d=()=>S(q,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),p=()=>S(I,"$crashed$",i),f=()=>S(R,"$currentSubtitle$",i),b=()=>S(z,"$currentSubtitleCaptions$",i),u=()=>S(P,"$positionExact$",i),_=()=>S(U,"$isLive$",i),w=()=>S(Y,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:M,positionExact$:P,isPlaying$:E,currentSubtitle$:R,currentSubtitleCaptions$:z,positionWithScrubbing$:q,isLive$:U,isRewindableLive$:Y},ui:{playerSize:se,controls:Q},actions:{internal:{getVideoElement:de}}}=Ie(),le=8,Me=X(!1),Be=ve({}),ge=()=>{D(Me,!0)},ce=()=>{D(Me,!1)},Ae=Bx(nl,260);Ue(()=>{n(),Ae(de(),Q,Be,s(Me))});let ae=v(()=>a()?pn(r()-d()):pn(isFinite(r())?r():y()));var N=Nx(),Ge=h(N);Sa(Ge,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ee){C(Ee)}});var ee=A(Ge,2);ea(ee,()=>"slot",!1,(Ee,qe)=>{ke(Ee,null,{name:wa})});var We=A(ee,2);let ne=v(()=>l()!=="thumb"||p());$a(We,{get hidden(){return s(ne)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var me=A(We,2);{var $e=Ee=>{ba(Ee,{shifted:!1,get captions(){return b()},get position(){return u()},get playerSize(){return n()}})};V(me,Ee=>{f().value!=="off"&&Ee($e)})}var Z=A(me,2),ze=h(Z);Gl(ze,{get isLive(){return _()},get isPlaying(){return a()},get time(){return s(ae)}}),g(Z);var Je=A(Z,2);let Ce;var ie=h(Je);ma(ie,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:le,tooltipRightOffset:le,get ref(){return Be.timeline},set ref(Ee){Be.timeline=Ee}}),g(Je),g(N),k(Ee=>Ce=J(Je,1,"timeline svelte-1qfjf44",null,Ce,Ee),[()=>({visible:s(Me)})]),Tt("mouseenter",N,ge),Tt("mouseleave",N,ce),$(t,N),H(),o()}var zx=L("<div><!></div>"),Wx={hash:"svelte-tw6yp4",code:`.root.svelte-tw6yp4 {--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;
361
362
 
362
363
  /* USER DEFINED COLORS */
363
364
 
@@ -391,5 +392,5 @@ Try switching the\xA0quality to\xA0Auto.`},dh=i_;var es=new Map;es.set(uh.EN,dh)
391
392
  /* --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);}
392
393
  /* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
393
394
 
394
- /* \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 Em(t,e){F(e,!0),q(t,Vx);let[i,o]=De(),n=()=>S(Qt,"$isLive$",i),a=m(e,"sources",7),s=m(e,"store",7),d=m(e,"microStoresRoot",7),l=m(e,"videoConfig",7),p=m(e,"uiConfig",7),f=m(e,"title",7),y=m(e,"thumbUrl",7),u=m(e,"interactiveContainer",7),_=m(e,"interactiveController",7),w=m(e,"subtitles",7),b=m(e,"live",7),C=m(e,"preload",7),T=m(e,"autoplay",7),I=m(e,"volume",7,void 0),M=m(e,"muted",7,void 0),P=m(e,"fromTime",7),k=m(e,"canRewindLive",7),V=m(e,"showAds",7),W=m(e,"adsSlotId",7,void 0),j=m(e,"adsParams",7,void 0),H=m(e,"adsPreviewParam",7,void 0),Q=m(e,"adsAutoplayParam",7,void 0),ie=m(e,"duration",7,void 0),Z=m(e,"logoClickable",7),se=m(e,"logoHidden",7),ce=m(e,"isMobile",7),Ee=m(e,"showNextPrevButtons",7,!1),Me=m(e,"nextButtonActive",7,!1),ge=m(e,"prevButtonActive",7,!1),ae=m(e,"endScreenVideoTitle",7,void 0),Pe=m(e,"endScreenVideoThumb",7,void 0),ne=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),ue=m(e,"shadowRootContainer",7,void 0),_e=m(e,"outerContainerRef",7,void 0),ze=m(e,"fullScreenTarget",7,void 0),re=m(e,"failoverHosts",7,void 0),K=m(e,"showMiniTimer",7,!1),he=m(e,"saveRate",7),ee=m(e,"seekToInteractive",7,x1),He=m(e,"playPrevChapter",7,x1),je=m(e,"volumeMultiplier",7),we=m(e,"showAutoplayNext",7),Ve=m(e,"showEndScreen",7,!0),Ie=m(e,"keyboardControls",15,void 0),{subscribers:Ue,stores:lt}=d();Pg(p());let dt=Wt(),it=p().logoLink,It=s().ui.debugPanelVisible,ht=s().ui.playerSize,Qt=s().state.isLive$,At=s().state.isInteractive&&km.device.isAndroid,Rt=X(void 0),O=null,be=X(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),Hg(s(),lt),Fe(()=>{var G,Xt;s().ui.isMobile.set(ce()),(Xt=(G=l().callbacks)==null?void 0:G.onDomReady)==null||Xt.call(G)});let oe=(G=!1)=>{D(be,!0),G?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Be=()=>{if(dt.features.qualityDetailsSubMenuEnabled){let G=sh(s().videoId);if(G)switch(G.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(G.quality);break}}else{ah(s().videoId),Cp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Xt=yp(s().videoId);Xt&&s().actions.internal.setQuality(Xt)}};function Ke(G){var mt,pi,Je;let Xt=a()||G;Xt&&s().initVideo({container:r(Rt),sources:Xt,failoverHosts:re(),subtitles:w(),volumeMultiplier:je()});let _i=Px.get(Ml)==="true";It.set(_i),P()>0&&s().actions.external.seekTime(P());let Ei=ce()?dt.volumeDefault:(pi=(mt=I())!=null?mt:$c())!=null?pi:dt.volumeDefault,ai=(Je=M())!=null?Je:eh();if(s().actions.external.setVolume(Ei),s().actions.external.setMuted(ai),s().getAdmanWrapper().setInitialVolume(ai?0:Ei),Be(),dt.features.saveRate&&he()){let Lt=oh();Lt&&!n()&&s().actions.internal.setPlaybackRate(Lt)}if(we()){let Lt=rh();Lt&&s().actions.internal.setAutoplayNextEnabled(Lt)}s().ui.isAutoplay.set(T()),T()?oe():C()&&dt.features.preload&&s().actions.internal.preload()}let Ye=G=>{if(window.ResizeObserver){let Xt,_i;O=new ResizeObserver(Ax(Ei=>{let ai=Ei[0];if(ai.contentBoxSize){let mt=Array.isArray(ai.contentBoxSize)?ai.contentBoxSize[0]:ai.contentBoxSize;Xt=mt.inlineSize,_i=mt.blockSize}else ai.contentRect&&(Xt=ai.contentRect.width,_i=ai.contentRect.height);ht.set({width:Xt,height:_i})},300)),O.observe(G)}ht.set({width:G.clientWidth,height:G.clientHeight})},Le=()=>{document.hidden&&s().actions.external.stop()};zt(()=>{var _i,Ei,ai,mt;At&&document.addEventListener("visibilitychange",Le),dt.debugLog&&s().actions.internal.startLogging(),Ye(r(Rt));let G=Ue.map(pi=>pi.init({store:s(),microStores:lt,config:l(),interactiveController:_(),uiConfig:p()})),Xt=()=>{At&&document.removeEventListener("visibilitychange",Le),O==null||O.disconnect(),G.forEach(pi=>pi.unsubscribe()),s().destroy()};return((_i=b())==null?void 0:_i.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Xt):((Ei=b())==null?void 0:Ei.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Xt):(((ai=b())==null?void 0:ai.status)==="finished"||((mt=b())==null?void 0:mt.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Xt):(Ke(),Xt)});function tt(){r(be)?s().actions.external.play():oe(!0)}function Xe(){s().actions.external.pause()}function bt(G){s().actions.external.setMuted(G)}function ut(){s().actions.external.toggleSubtitle()}function ft(){var G;(G=s().webApi.slotsApi)!=null&&G.haveSlots()&&s().actions.external.hideControls()}function Bt(){var G;(G=s().webApi.slotsApi)!=null&&G.haveSlots()&&s().actions.external.showControls()}function Qe(G){ce()||G>=0&&G<=1&&s().actions.external.setVolume(G)}function ri(G){s().actions.internal.seekTime(G,Mx.UNKNOWN)}function bi(G){s().actions.external.seekEpisodeStartTime(G)}function et(){s().actions.external.returnFocusToEpisodes()}function Gt(G){s().actions.external.setPlaybackRate(G)}function ki(G){s().actions.external.setAutoQualityLimits(G)}let zi=au(dt.view),Mt=l().playerView==="preview";var $t=Lx();let Nt;rt($t,zi);var oo=h($t);{var sn=G=>{Tm(G,{get store(){return s()},uiConfig:dt,get thumbUrl(){return y()},get interactiveContainer(){return u()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return V()},get adsSlotId(){return W()},get adsParams(){return j()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return Q()},get duration(){return ie()},get logoClickable(){return Z()},get logoHidden(){return se()},logoTargetUrl:it,get nextButtonActive(){return Me()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Pe()},get isOneVideoPlaylist(){return ne()},get supportLink(){return N()},get shadowRootContainer(){return ue()},get outerContainerRef(){return _e()},get fullScreenTarget(){return ze()},get showMiniTimer(){return K()},get playerStarted(){return r(be)},get seekToInteractive(){return ee()},get playPrevChapter(){return He()},firstStart:oe,seekTime:ri,get showEndScreen(){return Ve()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return Ee()},get videoContainer(){return r(Rt)},set videoContainer(Xt){D(Rt,fe(Xt))}})},hn=G=>{var Xt=Oe(),_i=pe(Xt);{var Ei=mt=>{Im(mt,{get thumbUrl(){return y()},get outsideDuration(){return ie()},get canRewindLive(){return k()},get videoContainer(){return r(Rt)},set videoContainer(pi){D(Rt,fe(pi))}})},ai=mt=>{Sm(mt,{get store(){return s()},uiConfig:dt,get title(){return f()},get thumbUrl(){return y()},get interactiveContainer(){return u()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return V()},get adsSlotId(){return W()},get adsParams(){return j()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return Q()},get duration(){return ie()},get logoClickable(){return Z()},get logoHidden(){return se()},logoTargetUrl:it,get nextButtonActive(){return Me()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Pe()},get isOneVideoPlaylist(){return ne()},get supportLink(){return N()},get shadowRootContainer(){return ue()},get outerContainerRef(){return _e()},get fullScreenTarget(){return ze()},get showMiniTimer(){return K()},get playerStarted(){return r(be)},get seekToInteractive(){return ee()},get playPrevChapter(){return He()},firstStart:oe,get showEndScreen(){return Ve()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return Ee()},get videoContainer(){return r(Rt)},set videoContainer(pi){D(Rt,fe(pi))},get keyboardControls(){return Ie()},set keyboardControls(pi){Ie(pi)}})};R(_i,mt=>{Mt?mt(Ei):mt(ai,!1)})}$(G,Xt)};R(oo,G=>{ce()?G(sn):G(hn,!1)})}g($t),E(G=>Nt=J($t,1,"root svelte-tw6yp4",null,Nt,G),[()=>({"root--miui-browser":km.device.isMobile&&km.browser.isMiuiBrowser,"visible-outside":Mt})]),$(t,$t);var bo=U({initVideo:Ke,play:tt,pause:Xe,setMuted:bt,toggleSubtitle:ut,hideControls:ft,showControls:Bt,setVolume:Qe,seekTime:ri,seekEpisodeStartTime:bi,returnFocusToEpisodes:et,setPlaybackRate:Gt,setAutoQualityLimits:ki,get sources(){return a()},set sources(G){a(G)},get store(){return s()},set store(G){s(G)},get microStoresRoot(){return d()},set microStoresRoot(G){d(G)},get videoConfig(){return l()},set videoConfig(G){l(G)},get uiConfig(){return p()},set uiConfig(G){p(G)},get title(){return f()},set title(G){f(G)},get thumbUrl(){return y()},set thumbUrl(G){y(G)},get interactiveContainer(){return u()},set interactiveContainer(G){u(G)},get interactiveController(){return _()},set interactiveController(G){_(G)},get subtitles(){return w()},set subtitles(G){w(G)},get live(){return b()},set live(G){b(G)},get preload(){return C()},set preload(G){C(G)},get autoplay(){return T()},set autoplay(G){T(G)},get volume(){return I()},set volume(G){I(G)},get muted(){return M()},set muted(G){M(G)},get fromTime(){return P()},set fromTime(G){P(G)},get canRewindLive(){return k()},set canRewindLive(G){k(G)},get showAds(){return V()},set showAds(G){V(G)},get adsSlotId(){return W()},set adsSlotId(G){W(G)},get adsParams(){return j()},set adsParams(G){j(G)},get adsPreviewParam(){return H()},set adsPreviewParam(G){H(G)},get adsAutoplayParam(){return Q()},set adsAutoplayParam(G){Q(G)},get duration(){return ie()},set duration(G){ie(G)},get logoClickable(){return Z()},set logoClickable(G){Z(G)},get logoHidden(){return se()},set logoHidden(G){se(G)},get isMobile(){return ce()},set isMobile(G){ce(G)},get showNextPrevButtons(){return Ee()},set showNextPrevButtons(G){Ee(G)},get nextButtonActive(){return Me()},set nextButtonActive(G){Me(G)},get prevButtonActive(){return ge()},set prevButtonActive(G){ge(G)},get endScreenVideoTitle(){return ae()},set endScreenVideoTitle(G){ae(G)},get endScreenVideoThumb(){return Pe()},set endScreenVideoThumb(G){Pe(G)},get isOneVideoPlaylist(){return ne()},set isOneVideoPlaylist(G){ne(G)},get supportLink(){return N()},set supportLink(G){N(G)},get shadowRootContainer(){return ue()},set shadowRootContainer(G){ue(G)},get outerContainerRef(){return _e()},set outerContainerRef(G){_e(G)},get fullScreenTarget(){return ze()},set fullScreenTarget(G){ze(G)},get failoverHosts(){return re()},set failoverHosts(G){re(G)},get showMiniTimer(){return K()},set showMiniTimer(G){K(G)},get saveRate(){return he()},set saveRate(G){he(G)},get showAutoplayNext(){return we()},set showAutoplayNext(G){we(G)},get seekToInteractive(){return ee()},set seekToInteractive(G){ee(G)},get playPrevChapter(){return He()},set playPrevChapter(G){He(G)},get volumeMultiplier(){return je()},set volumeMultiplier(G){je(G)},get showEndScreen(){return Ve()},set showEndScreen(G){Ve(G)},get keyboardControls(){return Ie()},set keyboardControls(G){Ie(G)}});return o(),bo}var Rx=ye('<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 Pm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Rx();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),$(t,o)}function Am(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");Pm(t,{get style(){return r(o)}})}var Bx=L('<div class="title svelte-1y9fytq"> </div>'),Nx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Dx={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 Mm(t,e){q(t,Dx);var i=Nx(),o=h(i);{var n=d=>{var l=Bx(),p=h(l,!0);g(l),E(()=>me(p,e.title)),$(d,l)};R(o,d=>{e.title&&d(n)})}var a=A(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);Am(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),E(()=>rt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}import{now as c5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as u5,InterfaceLanguage as p5,isNonNullable as Dm,Logger as f5,Observable as m5,Subscription as P1,once as v5,InternalsExposure as g5,skip as h5}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as A1,isMobile as _5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as b5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as Ox,Subscription as Hx}from"@vkontakte/videoplayer-shared/es2018";var lu=class{constructor(){this.subscription=new Hx,this.logger=new Ox,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,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(s){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 a,s;let o=xe(e.state.currentPlaybackRate$),n=xe(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(s=(a=navigator.mediaSession).setPositionState)==null||s.call(a,{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 Rm,detectEmbed as Kx}from"@vkontakte/videoplayer-shared/es2018";var Fx=ye('<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 Lm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Fx();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{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})),$(t,o)}var Ux=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),zx={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 Vm(t,e){F(e,!0),q(t,zx);let[i,o]=De(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(f,"$isMobile$",i),s=Ce(),d=Wt(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,f=s.ui.isMobile,y=s.ui.t,u=v(()=>n()&&y("pip_dummy_title")),_=au(d.view);var w=Ux();J(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),rt(w,_);var b=h(w);let C;var T=h(b);Lm(T,{}),g(b);var I=A(b,2),M=h(I,!0);g(I),g(w),E(P=>{C=J(b,1,"dummy-image svelte-1pbsod4",null,C,P),me(M,r(u))},[()=>({desktop:!a()})]),$(t,w),U(),o()}var Wx=Object.defineProperty,qx=(t,e,i)=>e in t?Wx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,nl=(t,e,i)=>qx(t,typeof e!="symbol"?e+"":e,i),Qx=460,Gx=280,Id=class{constructor({enabled:e=!0}={enabled:!0}){nl(this,"playerDomElement"),nl(this,"playerParentShadowRoot"),nl(this,"playerDummyElement"),nl(this,"svelteContext"),nl(this,"pipWindow"),nl(this,"info",{isActive$:new Rm(!1),isEnabled$:new Rm(!1),type:1}),this.info.isEnabled$=new Rm(e)}isSupported(){let{isEmbed:e}=Kx();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}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:Qx,height:Gx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
395
- `),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Zr(Vm,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Us(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})}async dispose(){await this.remove()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function w1(t){return t instanceof Id}var du=class{static getLatestSupportedVersion(e){let i=new Ys(e),o=new Id(e);if(o.isSupported())return o;if(i.isSupported())return i}};function cu(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let s of i)o[s]=(a=(n=e[s])!=null?n:t[s])!=null?a:void 0;return o}var S1="Inner error. Unexpectedly root annotation container null reference exception",C1="Annotation with such name already exists",T1="Annotation with such name does not exist";var rl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Yx,Subscription as jx,throttleFn as Zx}from"@vkontakte/videoplayer-shared/es2018";var Xx="1",Jx=100,uu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new jx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Zx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Jx);this.subscriptions.add(Yx(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 rl(S1);if(this.annotations.has(e))throw new rl(C1);i.style.zIndex=(o=i.style.zIndex)!=null?o:Xx,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new rl(T1);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,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as pu,Subscription as e5}from"@vkontakte/videoplayer-shared/es2018";var Do=class{init({store:e,microStores:i,interactiveController:o,config:n}){return pu(e),pu(i),pu(n),n.interactiveData&&pu(o),this.subscription=new e5,this.subscription}};var kd=class extends Do{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...le(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Ed=class extends Do{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...le(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:p,isMobile:f}=a.ui,y=xe(f),u=()=>y&&xe(p);return o.add(p.subscribe(_=>{if(!y)return;let w=xe(s);xe(l)?this.state$.set(_):w!==null&&this.state$.set(!w||_)})),o.add(l.subscribe(_=>{this.state$.set(!_||u())})),o.add(s.subscribe(_=>{if(_===null)return;let w=xe(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!_)})),o}};var Pd=class extends Do{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=le("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as t5}from"@vkontakte/videoplayer-shared/es2018";var Bm=le(!1),fu=null,Ad=class extends Do{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Bm,set:(i,o=!1)=>{i!==xe(Bm)&&(this.clearTimeout(),Bm.set(i),!i&&fu&&(fu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:s,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(l.subscribe(y=>{xe(s)&&y&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(t5({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:y,isInteractiveTime$:u,interactiveTimeIndicator:_})=>{var w,b;if(!(!y||!(_!=null&&_.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&fu===null&&(fu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(b=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||b.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as i5,noop as o5}from"@vkontakte/videoplayer-shared/es2018";var Md=class extends Do{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...le(null),toggle:o5};this.checkIfShouldHide=i=>xs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,s=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(xe(s)))return;let l=xe(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:y}=n.ui.controls,u=xe(p),_=xe(f);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),y.remove(mp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=_==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),y.add(mp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(i5({graphIsOpened:this.state$,currentGridType:s}).subscribe(async({graphIsOpened:l,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(y){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as I1}from"@vkontakte/videoplayer-shared/es2018";var Ld=class extends Do{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:le(!1),isEnabled$:le(!1),type$:le(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new I1(!1),isEnabled$:new I1(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};import{filter as s5,filterChanged as a5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Nm}from"@vkontakte/videoplayer-shared/es2018";var k1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?n5({maxCount:t}):void 0,e!==0?r5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},n5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Nm.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},r5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Nm.get(e)||"{}")}catch(a){return{}}},o=a=>Nm.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let s=i()[a];if(s){let d=Date.now()-s.launchTime>t;return d&&n(a),d}else return!0}}};var Vd=class extends Do{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:le({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=k1({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(a5(),s5(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var E1=()=>[kd,Ed,Pd,Ad,Md,Ld,Vd].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 Rd}from"@vkontakte/videoplayer-shared/es2018";var l5=Object.defineProperty,d5=(t,e,i)=>e in t?l5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ii=(t,e,i)=>d5(t,typeof e!="symbol"?e+"":e,i),$5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:p5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:_5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},gn=X(void 0),mu=class extends HTMLElement{constructor(){super(),ii(this,"svelteStubComponent"),ii(this,"svelteRootComponent"),ii(this,"store"),ii(this,"microStoresRoot"),ii(this,"statistics"),ii(this,"sentry"),ii(this,"_shadowRoot"),ii(this,"playerContainer"),ii(this,"rootContainer"),ii(this,"shadowRootContainer"),ii(this,"uiConfig"),ii(this,"coreConfig"),ii(this,"statisticsConfig"),ii(this,"interactiveController"),ii(this,"interactiveContainer"),ii(this,"graphMadePause"),ii(this,"currentPlayingVideoIndex",0),ii(this,"needToRepeatPlaylist",!1),ii(this,"videoConfig"),ii(this,"pictureInPictureApi"),ii(this,"mediaSessionApi"),ii(this,"unsubscribePlayerPhaseSubscription"),ii(this,"logger"),ii(this,"log"),ii(this,"subscription"),ii(this,"interactiveSubscription"),ii(this,"annotationsApi"),ii(this,"slotsApi"),ii(this,"prevIsid"),ii(this,"isInited",!1),ii(this,"internalsExposure",null),ii(this,"shadowDOMCallbacksDisabled",!1),ii(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:f,statVKAppId:y,refreshStatAuthToken:u,autoplay:_,isMobile:w,isTouch:b,refDomain:C,deviceId:T,interactiveData:I}=cu(this.videoConfig,i),M=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,P=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;P&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&k)return new b5({movieId:k,albumId:d,place:l,trackCode:f,vkAppId:y,autoplay:(s=_&&!this.interactiveController)!=null?s:!1,mobile:b!=null?b:w,clip:V,refDomain:C,deviceId:T,...M&&(!this.isInited||P)&&{projectId:Number(M)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),Rd.create("ui"),this.logger=new f5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new P1,this.interactiveSubscription=new P1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=fe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=Zr(Mm,s)}disconnectedCallback(){var e,i,o,n,a;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),Rd.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}}createPlayer(e,i={},o){var n,a,s,d,l,p,f,y;if(!this.videoConfig)return;let{albumId:u,statPlace:_,statAuthToken:w,preload:b,autoplay:C,volume:T,muted:I,fromTime:M,canRewindLive:P,supportLink:k,showAds:V,adsSlotId:W,adsParams:j={},adsPreviewParam:H,adsAutoplayParam:Q,interfaceLanguage:ie,isCyrillicRelatedInterface:Z,logoClickable:se,logoHidden:ce,isMobile:Ee,isTouch:Me,isAudioDisabled:ge,isLiveCatchUpMode:ae,fullScreenTarget:Pe,failoverHosts:ne,canDownload:N,callbacks:ue,interactiveData:_e,showThumbTimer:ze,additionalButtons:re=[],additionalSettingsMenuItems:K=[],additionalContextMenuItems:he=[],repeat:ee,saveRate:He,volumeMultiplier:je,showEndScreen:we,showAutoplayNext:Ve}=cu(this.videoConfig,i),{sources:Ie,title:Ue,thumbUrl:lt,unitedVideoId:dt,isClip:it=!1,duration:It,adsParams:ht={},videoEpisodes:Qt,previewThumbsData:Zt,subtitles:At,live:Rt}=e,O={...j,...ht},be=this.getNextVideoInfo(),oe={sources:Ie,title:Ue,thumbUrl:lt,subtitles:At,unitedVideoId:dt,isClip:it,live:Rt,albumId:u,statPlace:_,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,showAds:V,adsSlotId:W,adsParams:O,adsPreviewParam:H,adsAutoplayParam:Q,duration:It,logoClickable:se,logoHidden:ce,isTouch:Me!=null?Me:Ee,repeat:ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Be={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(oe)}`});let Ke=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Ye=(Ke==null?void 0:Ke.oneStat)||this.createOneStat(e,i);Ye&&(this.statistics=new Kc(Ye,Ke==null?void 0:Ke.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Gs(this.uiConfig.sentry,{version:Wa,env:hc},{movieId:dt,albumId:u,place:_,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Me!=null?Me:Ee,clip:it}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Gs.getInstance()};let tt=!!_e,Xe=[],bt="tooltip_interactive_go_back_disabled_first";if(tt&&this.interactiveController){let Qe=this.interactiveController.state.isInitialChapter$.getValue(),ri=this.interactiveController.getHistoryState();Qe&&Xe.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Xe.push("SEEK_TO_INTERACTIVE_BUTTON"),ri.hasPrevChapter$.getValue()||(Xe.push("PLAY_PREV_CHAPTER_BUTTON"),Qe||(ri.isGoBackLimited$.getValue()?bt="tooltip_interactive_go_back_disabled_limit":bt="tooltip_interactive_go_back_disabled"))}let ut=()=>{var Qe;this.isInited=!1,this.prevIsid=void 0;let ri=(o==null?void 0:o.info.isEnded$.getValue())&&((Qe=this.interactiveController)==null?void 0:Qe.state.isEndChapter$.getValue());ue.onReplayInteractiveVideo&&!ri?ue.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Qh({player:o,interfaceLanguage:ie,isCyrillicRelatedInterface:Z,videoId:dt,isClip:it,isLiveCatchUpMode:ae,isAudioDisabled:ge,statAuthToken:w,callbacks:ue,webApi:Be,videoEpisodes:Qt,previewThumbsData:Zt,canDownload:N,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Xe,isInteractive:tt,saveRate:He,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ut,playPrevChapterDisabledTooltip:bt,hasInteractiveBranches:!!((y=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?re:[],additionalSettingsMenuItems:K!=null?K:[],additionalContextMenuItems:he!=null?he:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:ee&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:ft}=this.microStoresRoot=E1(),Bt=()=>{var Qe,ri,bi,et,Gt,ki;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Mt=>{var $t;return($t=ue==null?void 0:ue.onCurrentFormatChanged)==null?void 0:$t.call(ue,Mt)})),this.subscription.add(ft.interactiveControlsOpacity$.subscribe(Mt=>{var $t;Mt!==null&&(($t=this==null?void 0:this.interactiveController)==null||$t.setDisabledControls(Mt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Mt=>{var $t;return($t=ue==null?void 0:ue.onThroughputEstimationChanged)==null?void 0:$t.call(ue,Mt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Mt=>{var $t;return($t=ue==null?void 0:ue.onTrafficSavingEnabledChanged)==null?void 0:$t.call(ue,Mt)})),this.subscription.add(new m5(Mt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe($t=>Mt.next($t)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?h5(1):Mt=>Mt).subscribe(Mt=>{var $t;return($t=ue==null?void 0:ue.onCurrentPlaybackRateChanged)==null?void 0:$t.call(ue,Mt)})),this.subscription.add(this.store.state.volume$.subscribe(Mt=>{var $t;return($t=ue==null?void 0:ue.onVolumeChange)==null?void 0:$t.call(ue,Mt)})),this.subscription.add(this.store.state.muted$.subscribe(Mt=>{var $t,Nt;return Mt?($t=ue==null?void 0:ue.onMute)==null?void 0:$t.call(ue):(Nt=ue==null?void 0:ue.onUnmute)==null?void 0:Nt.call(ue)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Mt=>{var $t;return($t=ue==null?void 0:ue.onVideoBitrateChanged)==null?void 0:$t.call(ue,Mt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Mt=>{var $t;let Nt=($t=this.store)==null?void 0:$t.ui.controls.disabledControls$;Nt&&(Mt&&!Nt.includes(Ll)&&Nt.add(Ll),Mt||Nt.remove(Ll))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Mt=>{var $t;if(!A1.browser.isSamsungBrowser||!Mt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(($t=this.videoConfig)==null?void 0:$t.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Mt=>{var $t;return($t=ue==null?void 0:ue.onVSIDChanged)==null?void 0:$t.call(ue,Mt)})),this.initMediaSession(),D(gn,fe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ie,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ue,thumbUrl:lt,subtitles:At,live:Rt,preload:b,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,supportLink:k,showAds:V,adsSlotId:W,adsParams:O,adsPreviewParam:H,adsAutoplayParam:Q,duration:It,logoClickable:se,logoHidden:ce,isMobile:Me!=null?Me:Ee,failoverHosts:ne,fullScreenTarget:Pe,saveRate:He,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ze,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:je,showEndScreen:we,showAutoplayNext:Ve}));let zi={target:this.playerContainer,props:r(gn)};this.svelteRootComponent=Zr(Em,zi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(bi=(ri=(Qe=this.videoConfig)==null?void 0:Qe.callbacks)==null?void 0:ri.onInited)==null||bi.call(ri)),(et=this.internalsExposure)==null||et.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=(Gt=this.videoConfig)==null?void 0:Gt.callbacks)!=null&&ki.onDevNullLog)?Rd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Rd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?A1.isInited$.subscribe(Qe=>{Qe&&(console.log("UI SDK async start"),Bt())}):Bt()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,p;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(p=a.onPiPExit)==null?void 0:p.call(a)}));let s=a==null?void 0:a.uiInfo;s&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=s.onControlsVisibleChanged)==null?void 0:l.call(s,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=s.onIsMobileChanged)==null?void 0:l.call(s,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=s.onPlayerSizeChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=s.onPrevButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=s.onPlayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=s.onReplayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=s.onNextButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=s.onPlayPrevChapterChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=s.onSeekToInteractiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=s.onGraphButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=s.onLiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=s.onTimeUpdateChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=s.onEpisodesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=s.onSubtitlesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=s.onSettingsChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=s.onFullscreenChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=s.onChromecastChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=s.onPipChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=s.onVkLogoChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=s.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=s.onTimelineChanged)==null?void 0:l.call(s,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&&Dm(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;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,d=s?xe(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,historyApi:f,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:p,historyApi:f,vkVideoLoader:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$:u,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(b=>{if(!this.isInited)return;let C=this.store;b?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(u.subscribe(b=>{this.store&&this.store.state.isInteractiveExpectation$.set(b)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(b=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...b.config,title:(l==null?void 0:l.title)||b.config.title};let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(b.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:b,actionType:C})=>{var T,I,M,P,k,V;if(!this.store||!this.microStoresRoot)return;let W=u.getValue();if(b==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Vl)),b==="action-choice-canceled"){let j=xe(this.store.state.isPlaying$)||W;if(((M=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?M:(I=this.videoConfig)!=null&&I.isMobile)&&j){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(P=this.videoConfig)==null?void 0:(k=P.callbacks).onDisabledInteractiveClick)==null||V.call(k)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:b,removeAllOpenURI:C})=>{this.store&&b==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(Vl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let b=this.interactiveController.getHistoryState();this.subscription.add(b.history$.subscribe(C=>{var T,I,M;C.length&&((M=(I=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||M.call(I,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var b,C,T,I;(b=this.microStoresRoot)==null||b.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(b=>{this.log({message:b.toString()})}))}catch(a){this.log({message:a.message})}}initPlayer(e,i={}){var o,n,a,s,d,l,p,f,y,u,_,w,b,C,T,I,M,P,k,V,W,j,H,Q,ie,Z;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=cu($5,u5(e,se=>se instanceof HTMLElement?se:void 0)),this.uiConfig=Eg((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new g5("UI"))),Rd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[c5()]}),Dm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),Dm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(b=this.uiConfig.isMobile)!=null?b:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(M=this.uiConfig.ads.slot)!=null?M:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((k=this.uiConfig.showLogo)!=null?k:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(W=this.videoConfig.supportLink)!=null?W:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(j=this.uiConfig.features.endScreen)!=null?j:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(H=this.uiConfig.features.autoplayNext)!=null?H:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Q=this.uiConfig.features.nextPrevButtons)!=null?Q:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ie=this.videoConfig.videos)!=null&&ie[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let se={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=du.getLatestSupportedVersion(se):this.pictureInPictureApi=new Ys(se)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new lu:void 0,this.slotsApi=this.uiConfig.features.slots?new nu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new uu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),w1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(Z=this.slotsApi)==null||Z.init(this.shadowRootContainer,this.store)}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();r(gn)&&(r(gn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(gn).nextButtonActive=this.isNextButtonActive(),r(gn).prevButtonActive=this.isPrevButtonActive(),r(gn).endScreenVideoTitle=o.nextVideoTitle,r(gn).endScreenVideoThumb=o.nextVideoThumb,r(gn).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",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(gn)&&(r(gn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(gn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(gn).nextButtonActive=this.isNextButtonActive(),r(gn).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)}setLiveWaitingRecover(){var e;this.log({message:"live waiting recover"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}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;return(i=(e=this.statistics)==null?void 0:e.oneStat.getDeviceId())!=null?i: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=xe(this.store.state.positionExact$),s=xe(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(v5()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.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.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)}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}unmountComponent(e){e&&Us(e)}};import{InterfaceLanguage as uX,VKNumericLanguage as pX,loadVKLangPack as fX}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as vX,VideoFormat as gX}from"@vkontakte/videoplayer-core/es2018";var oX=()=>{window.customElements.define("vk-video-player",mu)};export{Qc as ControlButtonType,Nr as GridTypes,uX as InterfaceLanguage,Wl as MenuItemType,ts as PlayerPhase,Wa as VERSION,pX as VKNumericLanguage,gX as VideoFormat,vX as VideoQuality,fX as loadVKLangPack,oX as registerPlayerWebComponent};
395
+ /* \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 Vm(t,e){O(e,!0),W(t,Wx);let[i,o]=De(),n=()=>S(Yt,"$isLive$",i),a=m(e,"sources",7),r=m(e,"store",7),d=m(e,"microStoresRoot",7),l=m(e,"videoConfig",7),p=m(e,"uiConfig",7),f=m(e,"title",7),b=m(e,"thumbUrl",7),u=m(e,"interactiveContainer",7),_=m(e,"interactiveController",7),w=m(e,"subtitles",7),y=m(e,"live",7),C=m(e,"preload",7),T=m(e,"autoplay",7),I=m(e,"volume",7,void 0),M=m(e,"muted",7,void 0),P=m(e,"fromTime",7),E=m(e,"canRewindLive",7),R=m(e,"showAds",7),z=m(e,"adsSlotId",7,void 0),q=m(e,"adsParams",7,void 0),U=m(e,"adsPreviewParam",7,void 0),Y=m(e,"adsAutoplayParam",7,void 0),se=m(e,"duration",7,void 0),Q=m(e,"logoClickable",7),de=m(e,"logoHidden",7),le=m(e,"isMobile",7),Me=m(e,"showNextPrevButtons",7,!1),Be=m(e,"nextButtonActive",7,!1),ge=m(e,"prevButtonActive",7,!1),ce=m(e,"endScreenVideoTitle",7,void 0),Ae=m(e,"endScreenVideoThumb",7,void 0),ae=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),Ge=m(e,"shadowRootContainer",7,void 0),ee=m(e,"outerContainerRef",7,void 0),We=m(e,"fullScreenTarget",7,void 0),ne=m(e,"failoverHosts",7,void 0),me=m(e,"showMiniTimer",7,!1),$e=m(e,"saveRate",7),Z=m(e,"seekToInteractive",7,P1),ze=m(e,"playPrevChapter",7,P1),Je=m(e,"volumeMultiplier",7),Ce=m(e,"showAutoplayNext",7),ie=m(e,"showEndScreen",7,!0),Ee=m(e,"keyboardControls",15,void 0),{subscribers:qe,stores:nt}=d();Vg(p());let dt=Ht(),rt=p().logoLink,St=r().ui.debugPanelVisible,ct=r().ui.playerSize,Yt=r().state.isLive$,Ot=r().state.isInteractive&&Lm.device.isAndroid,Et=X(void 0),te=null,At=X(!1);r().getAdmanWrapper().init({switchFromAdsToVideo:r().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r().actions.internal.switchFromVideoToAds,setMuted:r().actions.external.setMuted},r().ads,{isMobile:r().ui.isMobile,mobileUnmuteButtonVisible:r().ui.mobileUnmuteButtonVisible,vsid:r().vsid}),Wg(r(),nt),Ue(()=>{var G,qt;r().ui.isMobile.set(le()),(qt=(G=l().callbacks)==null?void 0:G.onDomReady)==null||qt.call(G)});let j=(G=!1)=>{D(At,!0),G?r().actions.external.firstStart(R()):r().actions.internal.firstStart(R())},pe=()=>{if(dt.features.qualityDetailsSubMenuEnabled){let G=ch(r().videoId);if(G)switch(G.type){case"high_quality":r().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":r().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":r().actions.internal.setQuality(G.quality);break}}else{uh(r().videoId),Pp()&&r().actions.internal.setTrafficSavingEnabled(!0);let qt=Tp(r().videoId);qt&&r().actions.internal.setQuality(qt)}};function Pe(G){var di,ut,et;let qt=a()||G;qt&&r().initVideo({container:s(Et),sources:qt,failoverHosts:ne(),subtitles:w(),volumeMultiplier:Je()});let ci=Hx.get(Ol)==="true";St.set(ci),P()>0&&r().actions.external.seekTime(P());let Pi=le()?dt.volumeDefault:(ut=(di=I())!=null?di:Sc())!=null?ut:dt.volumeDefault,si=(et=M())!=null?et:nh();if(r().actions.external.setVolume(Pi),r().actions.external.setMuted(si),r().getAdmanWrapper().setInitialVolume(si?0:Pi),pe(),dt.features.saveRate&&$e()){let Mt=ah();Mt&&!n()&&r().actions.internal.setPlaybackRate(Mt)}if(Ce()){let Mt=dh();Mt&&r().actions.internal.setAutoplayNextEnabled(Mt)}r().ui.isAutoplay.set(T()),T()?j():C()&&dt.features.preload&&r().actions.internal.preload()}let Re=G=>{if(window.ResizeObserver){let qt,ci;te=new ResizeObserver(Fx(Pi=>{let si=Pi[0];if(si.contentBoxSize){let di=Array.isArray(si.contentBoxSize)?si.contentBoxSize[0]:si.contentBoxSize;qt=di.inlineSize,ci=di.blockSize}else si.contentRect&&(qt=si.contentRect.width,ci=si.contentRect.height);ct.set({width:qt,height:ci})},300)),te.observe(G)}ct.set({width:G.clientWidth,height:G.clientHeight})},fe=()=>{document.hidden&&r().actions.external.stop()};Rt(()=>{var ci,Pi,si,di;Ot&&document.addEventListener("visibilitychange",fe),dt.debugLog&&r().actions.internal.startLogging(),Re(s(Et));let G=qe.map(ut=>ut.init({store:r(),microStores:nt,config:l(),interactiveController:_(),uiConfig:p()})),qt=()=>{Ot&&document.removeEventListener("visibilitychange",fe),te==null||te.disconnect(),G.forEach(ut=>ut.unsubscribe()),r().destroy()};return((ci=y())==null?void 0:ci.status)==="upcoming"?(r().actions.internal.setLiveWaitingStart(!0),qt):((Pi=y())==null?void 0:Pi.status)==="waiting"?(r().actions.internal.setLiveWaitingRecover(!0),qt):(((si=y())==null?void 0:si.status)==="finished"||((di=y())==null?void 0:di.status)==="postlive")&&!(a()&&Ox(a()))?(r().actions.internal.setLiveWaitingRecord(!0),qt):(Pe(),qt)});function Ke(){s(At)?r().actions.external.play():j(!0)}function it(){r().actions.external.pause()}function Ze(G){r().actions.external.setMuted(G)}function yt(){r().actions.external.toggleSubtitle()}function mt(){var G;(G=r().webApi.slotsApi)!=null&&G.haveSlots()&&r().actions.external.hideControls()}function Wt(){var G;(G=r().webApi.slotsApi)!=null&&G.haveSlots()&&r().actions.external.showControls()}function gt(G){le()||G>=0&&G<=1&&r().actions.external.setVolume(G)}function xi(G){r().actions.internal.seekTime(G,Ux.UNKNOWN)}function zt(G){r().actions.external.seekEpisodeStartTime(G)}function je(){r().actions.external.returnFocusToEpisodes()}function Jt(G){r().actions.external.setPlaybackRate(G)}function Wi(G){r().actions.external.setAutoQualityLimits(G)}let Ni=pu(dt.view),ao=l().playerView==="preview";var qi=zx();let ot;st(qi,Ni);var bt=h(qi);{var li=G=>{Am(G,{get store(){return r()},uiConfig:dt,get thumbUrl(){return b()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return R()},get adsSlotId(){return z()},get adsParams(){return q()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Y()},get duration(){return se()},get logoClickable(){return Q()},get logoHidden(){return de()},logoTargetUrl:rt,get nextButtonActive(){return Be()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return ce()},get endScreenVideoThumb(){return Ae()},get isOneVideoPlaylist(){return ae()},get supportLink(){return N()},get shadowRootContainer(){return Ge()},get outerContainerRef(){return ee()},get fullScreenTarget(){return We()},get showMiniTimer(){return me()},get playerStarted(){return s(At)},get seekToInteractive(){return Z()},get playPrevChapter(){return ze()},firstStart:j,seekTime:xi,get showEndScreen(){return ie()},get showAutoplayNext(){return Ce()},get showNextPrevButtons(){return Me()},get videoContainer(){return s(Et)},set videoContainer(qt){D(Et,ve(qt))}})},wi=G=>{var qt=He(),ci=he(qt);{var Pi=di=>{Mm(di,{get thumbUrl(){return b()},get outsideDuration(){return se()},get canRewindLive(){return E()},get videoContainer(){return s(Et)},set videoContainer(ut){D(Et,ve(ut))}})},si=di=>{km(di,{get store(){return r()},uiConfig:dt,get title(){return f()},get thumbUrl(){return b()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return R()},get adsSlotId(){return z()},get adsParams(){return q()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Y()},get duration(){return se()},get logoClickable(){return Q()},get logoHidden(){return de()},logoTargetUrl:rt,get nextButtonActive(){return Be()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return ce()},get endScreenVideoThumb(){return Ae()},get isOneVideoPlaylist(){return ae()},get supportLink(){return N()},get shadowRootContainer(){return Ge()},get outerContainerRef(){return ee()},get fullScreenTarget(){return We()},get showMiniTimer(){return me()},get playerStarted(){return s(At)},get seekToInteractive(){return Z()},get playPrevChapter(){return ze()},firstStart:j,get showEndScreen(){return ie()},get showAutoplayNext(){return Ce()},get showNextPrevButtons(){return Me()},get videoContainer(){return s(Et)},set videoContainer(ut){D(Et,ve(ut))},get keyboardControls(){return Ee()},set keyboardControls(ut){Ee(ut)}})};V(ci,di=>{ao?di(Pi):di(si,!1)})}$(G,qt)};V(bt,G=>{le()?G(li):G(wi,!1)})}g(qi),k(G=>ot=J(qi,1,"root svelte-tw6yp4",null,ot,G),[()=>({"root--miui-browser":Lm.device.isMobile&&Lm.browser.isMiuiBrowser,"visible-outside":ao})]),$(t,qi);var xo=H({initVideo:Pe,play:Ke,pause:it,setMuted:Ze,toggleSubtitle:yt,hideControls:mt,showControls:Wt,setVolume:gt,seekTime:xi,seekEpisodeStartTime:zt,returnFocusToEpisodes:je,setPlaybackRate:Jt,setAutoQualityLimits:Wi,get sources(){return a()},set sources(G){a(G)},get store(){return r()},set store(G){r(G)},get microStoresRoot(){return d()},set microStoresRoot(G){d(G)},get videoConfig(){return l()},set videoConfig(G){l(G)},get uiConfig(){return p()},set uiConfig(G){p(G)},get title(){return f()},set title(G){f(G)},get thumbUrl(){return b()},set thumbUrl(G){b(G)},get interactiveContainer(){return u()},set interactiveContainer(G){u(G)},get interactiveController(){return _()},set interactiveController(G){_(G)},get subtitles(){return w()},set subtitles(G){w(G)},get live(){return y()},set live(G){y(G)},get preload(){return C()},set preload(G){C(G)},get autoplay(){return T()},set autoplay(G){T(G)},get volume(){return I()},set volume(G){I(G)},get muted(){return M()},set muted(G){M(G)},get fromTime(){return P()},set fromTime(G){P(G)},get canRewindLive(){return E()},set canRewindLive(G){E(G)},get showAds(){return R()},set showAds(G){R(G)},get adsSlotId(){return z()},set adsSlotId(G){z(G)},get adsParams(){return q()},set adsParams(G){q(G)},get adsPreviewParam(){return U()},set adsPreviewParam(G){U(G)},get adsAutoplayParam(){return Y()},set adsAutoplayParam(G){Y(G)},get duration(){return se()},set duration(G){se(G)},get logoClickable(){return Q()},set logoClickable(G){Q(G)},get logoHidden(){return de()},set logoHidden(G){de(G)},get isMobile(){return le()},set isMobile(G){le(G)},get showNextPrevButtons(){return Me()},set showNextPrevButtons(G){Me(G)},get nextButtonActive(){return Be()},set nextButtonActive(G){Be(G)},get prevButtonActive(){return ge()},set prevButtonActive(G){ge(G)},get endScreenVideoTitle(){return ce()},set endScreenVideoTitle(G){ce(G)},get endScreenVideoThumb(){return Ae()},set endScreenVideoThumb(G){Ae(G)},get isOneVideoPlaylist(){return ae()},set isOneVideoPlaylist(G){ae(G)},get supportLink(){return N()},set supportLink(G){N(G)},get shadowRootContainer(){return Ge()},set shadowRootContainer(G){Ge(G)},get outerContainerRef(){return ee()},set outerContainerRef(G){ee(G)},get fullScreenTarget(){return We()},set fullScreenTarget(G){We(G)},get failoverHosts(){return ne()},set failoverHosts(G){ne(G)},get showMiniTimer(){return me()},set showMiniTimer(G){me(G)},get saveRate(){return $e()},set saveRate(G){$e(G)},get showAutoplayNext(){return Ce()},set showAutoplayNext(G){Ce(G)},get seekToInteractive(){return Z()},set seekToInteractive(G){Z(G)},get playPrevChapter(){return ze()},set playPrevChapter(G){ze(G)},get volumeMultiplier(){return Je()},set volumeMultiplier(G){Je(G)},get showEndScreen(){return ie()},set showEndScreen(G){ie(G)},get keyboardControls(){return Ee()},set keyboardControls(G){Ee(G)}});return o(),xo}var qx=Se('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Rm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=qx();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),$(t,o)}function Bm(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");Rm(t,{get style(){return s(o)}})}var Kx=L('<div class="title svelte-1y9fytq"> </div>'),Qx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Gx={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 Nm(t,e){W(t,Gx);var i=Qx(),o=h(i);{var n=d=>{var l=Kx(),p=h(l,!0);g(l),k(()=>_e(p,e.title)),$(d,l)};V(o,d=>{e.title&&d(n)})}var a=A(o,2);{var r=d=>{let l=v(()=>!!e.thumbUrl);Bm(d,{get isWhite(){return s(l)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(r)})}g(i),k(()=>st(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}import{now as $5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as y5,InterfaceLanguage as x5,isNonNullable as zm,Logger as w5,Observable as S5,Subscription as D1,once as C5,InternalsExposure as T5,skip as I5}from"@vkontakte/videoplayer-shared/es2018";import{VideoFormat as O1}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as H1,isMobile as E5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as k5,ThinOneStat as P5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as Yx,Subscription as jx}from"@vkontakte/videoplayer-shared/es2018";var fu=class{constructor(){this.subscription=new jx,this.logger=new Yx,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,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(r){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 a,r;let o=xe(e.state.currentPlaybackRate$),n=xe(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(r=(a=navigator.mediaSession).setPositionState)==null||r.call(a,{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 Hm,detectEmbed as i5}from"@vkontakte/videoplayer-shared/es2018";var Zx=Se('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function Dm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Zx();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{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})),$(t,o)}var Xx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Jx={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 Om(t,e){O(e,!0),W(t,Jx);let[i,o]=De(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(f,"$isMobile$",i),r=Ie(),d=Ht(),l=!!r.webApi.pictureInPictureApi,p=r.interfaceLanguage$,f=r.ui.isMobile,b=r.ui.t,u=v(()=>n()&&b("pip_dummy_title")),_=pu(d.view);var w=Xx();J(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),st(w,_);var y=h(w);let C;var T=h(y);Dm(T,{}),g(y);var I=A(y,2),M=h(I,!0);g(I),g(w),k(P=>{C=J(y,1,"dummy-image svelte-1pbsod4",null,C,P),_e(M,s(u))},[()=>({desktop:!a()})]),$(t,w),H(),o()}var e5=Object.defineProperty,t5=(t,e,i)=>e in t?e5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ll=(t,e,i)=>t5(t,typeof e!="symbol"?e+"":e,i),o5=460,n5=280,Ld=class{constructor({enabled:e=!0}={enabled:!0}){ll(this,"playerDomElement"),ll(this,"playerParentShadowRoot"),ll(this,"playerDummyElement"),ll(this,"svelteContext"),ll(this,"pipWindow"),ll(this,"info",{isActive$:new Hm(!1),isEnabled$:new Hm(!1),type:1}),this.info.isEnabled$=new Hm(e)}isSupported(){let{isEmbed:e}=i5();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}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:o5,height:n5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
396
+ `),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),r=a.attachShadow({mode:"open"});r.append(n),r.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=ds(Om,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Xs(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async remove(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.remove()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function A1(t){return t instanceof Ld}var mu=class{static getLatestSupportedVersion(e){let i=new ra(e),o=new Ld(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Vd(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let r of i)o[r]=(a=(n=e[r])!=null?n:t[r])!=null?a:void 0;return o}var M1="Inner error. Unexpectedly root annotation container null reference exception",L1="Annotation with such name already exists",V1="Annotation with such name does not exist";var dl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as r5,Subscription as s5,throttleFn as a5}from"@vkontakte/videoplayer-shared/es2018";var l5="1",d5=100,vu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new s5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=a5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},d5);this.subscriptions.add(r5(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 dl(M1);if(this.annotations.has(e))throw new dl(L1);i.style.zIndex=(o=i.style.zIndex)!=null?o:l5,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 dl(V1);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,a=e.offsetLeft,r=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+r>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as gu,Subscription as c5}from"@vkontakte/videoplayer-shared/es2018";var Qo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return gu(e),gu(i),gu(n),n.interactiveData&&gu(o),this.subscription=new c5,this.subscription}};var Rd=class extends Qo{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(a=>{this.state$.set(a?!0:null)})),o}};var Bd=class extends Qo{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:a}=i,{fakeIsPlaying$:r}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:p,isMobile:f}=a.ui,b=xe(f),u=()=>b&&xe(p);return o.add(p.subscribe(_=>{if(!b)return;let w=xe(r);xe(l)?this.state$.set(_):w!==null&&this.state$.set(!w||_)})),o.add(l.subscribe(_=>{this.state$.set(!_||u())})),o.add(r.subscribe(_=>{if(_===null)return;let w=xe(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!_)})),o}};var Nd=class extends Qo{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(a=>{a.length&&(a.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as u5}from"@vkontakte/videoplayer-shared/es2018";var Fm=re(!1),hu=null,Dd=class extends Qo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Fm,set:(i,o=!1)=>{i!==xe(Fm)&&(this.clearTimeout(),Fm.set(i),!i&&hu&&(hu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:r,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(l.subscribe(b=>{xe(r)&&b&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(u5({isPlaying$:d,isInteractiveTime$:r,interactiveTimeIndicator:p}).subscribe(({isPlaying$:b,isInteractiveTime$:u,interactiveTimeIndicator:_})=>{var w,y;if(!(!b||!(_!=null&&_.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&hu===null&&(hu=!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 p5,noop as f5}from"@vkontakte/videoplayer-shared/es2018";var Od=class extends Qo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...re(null),toggle:f5};this.checkIfShouldHide=i=>Bs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,r=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(xe(r)))return;let l=xe(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:b}=n.ui.controls,u=xe(p),_=xe(f);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),b.remove(bp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=_==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),b.add(bp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(p5({graphIsOpened:this.state$,currentGridType:r}).subscribe(async({graphIsOpened:l,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(b){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as R1}from"@vkontakte/videoplayer-shared/es2018";var Hd=class extends Qo{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$:a,isEnabled$:r,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new R1(!1),isEnabled$:new R1(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(r.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};import{filter as g5,filterChanged as h5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Um}from"@vkontakte/videoplayer-shared/es2018";var B1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?m5({maxCount:t}):void 0,e!==0?v5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},m5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Um.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}}},v5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Um.get(e)||"{}")}catch(a){return{}}},o=a=>Um.set(e,JSON.stringify(a)),n=a=>{let r=i();delete r[a],o(r)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let r=i()[a];if(r){let d=Date.now()-r.launchTime>t;return d&&n(a),d}else return!0}}};var Fd=class extends Qo{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:a,timeoutShowSlowVideoNotification:r,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=B1({maxShowCount:a,timeout:r});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(h5(),g5(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var N1=()=>[Rd,Bd,Nd,Dd,Od,Hd,Fd].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 Ud}from"@vkontakte/videoplayer-shared/es2018";var _5=Object.defineProperty,b5=(t,e,i)=>e in t?_5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,oi=(t,e,i)=>b5(t,typeof e!="symbol"?e+"":e,i),A5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:x5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:E5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Cn=X(void 0),_u=class extends HTMLElement{constructor(){super(),oi(this,"svelteStubComponent"),oi(this,"svelteRootComponent"),oi(this,"store"),oi(this,"microStoresRoot"),oi(this,"statistics"),oi(this,"sentry"),oi(this,"_shadowRoot"),oi(this,"playerContainer"),oi(this,"rootContainer"),oi(this,"shadowRootContainer"),oi(this,"uiConfig"),oi(this,"coreConfig"),oi(this,"statisticsConfig"),oi(this,"interactiveController"),oi(this,"interactiveContainer"),oi(this,"graphMadePause"),oi(this,"currentPlayingVideoIndex",0),oi(this,"needToRepeatPlaylist",!1),oi(this,"videoConfig"),oi(this,"pictureInPictureApi"),oi(this,"mediaSessionApi"),oi(this,"unsubscribePlayerPhaseSubscription"),oi(this,"logger"),oi(this,"log"),oi(this,"subscription"),oi(this,"interactiveSubscription"),oi(this,"annotationsApi"),oi(this,"slotsApi"),oi(this,"prevIsid"),oi(this,"isInited",!1),oi(this,"internalsExposure",null),oi(this,"shadowDOMCallbacksDisabled",!1),oi(this,"createOneStat",(e,i={})=>{var o,n,a,r;if(!this.videoConfig)return;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:f,statVKAppId:b,refreshStatAuthToken:u,autoplay:_,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:I}=Vd(this.videoConfig,i),M=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,P=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;P&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:R=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new k5({movieId:E,albumId:d,place:l,trackCode:f,vkAppId:b,autoplay:(r=_&&!this.interactiveController)!=null?r:!1,mobile:y!=null?y:w,clip:R,refDomain:C,deviceId:T,...M&&(!this.isInited||P)&&{projectId:Number(M)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(q){console.error(q),this.log({message:q.message})}}),Ud.create("ui"),this.logger=new w5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new D1,this.interactiveSubscription=new D1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=ve({title:o,thumbUrl:n}),r={target:this.playerContainer,props:a};this.svelteStubComponent=ds(Nm,r)}disconnectedCallback(){var e,i,o,n,a,r;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.mediaSessionApi)==null||o.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(n=this.unsubscribePlayerPhaseSubscription)==null||n.call(this),(a=this.interactiveController)==null||a.destroy(),this.interactiveSubscription.unsubscribe(),(r=this.internalsExposure)==null||r.destroy(),Ud.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:a}=Vd(this.videoConfig,i),{unitedVideoId:r}=e;if(this.uiConfig.features.thinStatistics&&r)return new P5.ThinOneStat({deviceId:o,movieId:r,preload:n},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var n,a,r,d,l,p,f,b,u;if(!this.videoConfig)return;let{albumId:_,statPlace:w,statAuthToken:y,preload:C,autoplay:T,volume:I,muted:M,fromTime:P,canRewindLive:E,supportLink:R,showAds:z,adsSlotId:q,adsParams:U={},adsPreviewParam:Y,adsAutoplayParam:se,interfaceLanguage:Q,isCyrillicRelatedInterface:de,logoClickable:le,logoHidden:Me,isMobile:Be,isTouch:ge,isAudioDisabled:ce,isLiveCatchUpMode:Ae,fullScreenTarget:ae,failoverHosts:N,canDownload:Ge,callbacks:ee,interactiveData:We,showThumbTimer:ne,additionalButtons:me=[],additionalSettingsMenuItems:$e=[],additionalContextMenuItems:Z=[],repeat:ze,saveRate:Je,volumeMultiplier:Ce,showEndScreen:ie,showAutoplayNext:Ee}=Vd(this.videoConfig,i),{sources:qe,title:nt,thumbUrl:dt,unitedVideoId:rt,isClip:St=!1,duration:ct,adsParams:Yt={},videoEpisodes:ni,previewThumbsData:Ot,subtitles:Et,live:te}=e,At={...U,...Yt},j=this.getNextVideoInfo(),pe={sources:qe,title:nt,thumbUrl:dt,subtitles:Et,unitedVideoId:rt,isClip:St,live:te,albumId:_,statPlace:w,autoplay:T,muted:M,volume:I,fromTime:P,canRewindLive:E,showAds:z,adsSlotId:q,adsParams:At,adsPreviewParam:Y,adsAutoplayParam:se,duration:ct,logoClickable:le,logoHidden:Me,isTouch:ge!=null?ge:Be,repeat:ze,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:j.nextVideoTitle,endScreenVideoThumb:j.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Pe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(pe)}`});let Re=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),fe=(Re==null?void 0:Re.oneStat)||this.createOneStat(e,i),Ke=this.createThinOneStat(e,i);(fe||Ke)&&(this.statistics=new jc(fe,Ke,Re==null?void 0:Re.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new na(this.uiConfig.sentry,{version:Ga,env:yc},{movieId:rt,albumId:_,place:w,autoplay:(a=T&&!this.interactiveController)!=null?a:!1,mobile:ge!=null?ge:Be,clip:St}),this.interactiveController&&((l=this.prevIsid)!=null||(this.prevIsid=(d=(r=this.statistics)==null?void 0:r.oneStat)==null?void 0:d.isid$.getValue())),this.sentry={...this.sentry,...na.getInstance()};let Ze=!!We,yt=[],mt="tooltip_interactive_go_back_disabled_first";if(Ze&&this.interactiveController){let zt=this.interactiveController.state.isInitialChapter$.getValue(),je=this.interactiveController.getHistoryState();zt&&yt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||yt.push("SEEK_TO_INTERACTIVE_BUTTON"),je.hasPrevChapter$.getValue()||(yt.push("PLAY_PREV_CHAPTER_BUTTON"),zt||(je.isGoBackLimited$.getValue()?mt="tooltip_interactive_go_back_disabled_limit":mt="tooltip_interactive_go_back_disabled"))}let Wt=()=>{var zt;this.isInited=!1,this.prevIsid=void 0;let je=(o==null?void 0:o.info.isEnded$.getValue())&&((zt=this.interactiveController)==null?void 0:zt.state.isEndChapter$.getValue());ee.onReplayInteractiveVideo&&!je?ee.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Xh({player:o,interfaceLanguage:Q,isCyrillicRelatedInterface:de,videoId:rt,isClip:St,isLiveCatchUpMode:Ae,isAudioDisabled:ce,statAuthToken:y,callbacks:ee,webApi:Pe,videoEpisodes:ni,previewThumbsData:Ot,canDownload:Ge,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:yt,isInteractive:Ze,saveRate:Je,interactiveRanges$:(p=this.interactiveController)==null?void 0:p.state.interactiveRanges$,isInteractiveTime$:(f=this.interactiveController)==null?void 0:f.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Wt,playPrevChapterDisabledTooltip:mt,hasInteractiveBranches:!!((u=(b=this.interactiveController)==null?void 0:b.getChapterBranches())!=null&&u.length),additionalButtons:this.uiConfig.features.additionalButtons?me:[],additionalSettingsMenuItems:$e!=null?$e:[],additionalContextMenuItems:Z!=null?Z:[],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:gt}=this.microStoresRoot=N1(),xi=()=>{var zt,je,Jt,Wi,Ni,ao;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(ot=>{var bt;return(bt=ee==null?void 0:ee.onCurrentFormatChanged)==null?void 0:bt.call(ee,ot)})),this.subscription.add(gt.interactiveControlsOpacity$.subscribe(ot=>{var bt;ot!==null&&((bt=this==null?void 0:this.interactiveController)==null||bt.setDisabledControls(ot))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(ot=>{var bt;return(bt=ee==null?void 0:ee.onThroughputEstimationChanged)==null?void 0:bt.call(ee,ot)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(ot=>{var bt;return(bt=ee==null?void 0:ee.onTrafficSavingEnabledChanged)==null?void 0:bt.call(ee,ot)})),this.subscription.add(new S5(ot=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(bt=>ot.next(bt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?I5(1):ot=>ot).subscribe(ot=>{var bt;return(bt=ee==null?void 0:ee.onCurrentPlaybackRateChanged)==null?void 0:bt.call(ee,ot)})),this.subscription.add(this.store.state.volume$.subscribe(ot=>{var bt;return(bt=ee==null?void 0:ee.onVolumeChange)==null?void 0:bt.call(ee,ot)})),this.subscription.add(this.store.state.muted$.subscribe(ot=>{var bt,li;return ot?(bt=ee==null?void 0:ee.onMute)==null?void 0:bt.call(ee):(li=ee==null?void 0:ee.onUnmute)==null?void 0:li.call(ee)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(ot=>{var bt;return(bt=ee==null?void 0:ee.onVideoBitrateChanged)==null?void 0:bt.call(ee,ot)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(ot=>{var bt;let li=(bt=this.store)==null?void 0:bt.ui.controls.disabledControls$;li&&(ot&&!li.includes(Hl)&&li.add(Hl),ot||li.remove(Hl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async ot=>{var bt;if(!H1.browser.isSamsungBrowser||!ot||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((bt=this.videoConfig)==null?void 0:bt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(ot=>{var bt;return(bt=ee==null?void 0:ee.onVSIDChanged)==null?void 0:bt.call(ee,ot)})),this.initMediaSession(),D(Cn,ve({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:qe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:nt,thumbUrl:dt,subtitles:Et,live:te,preload:C,autoplay:T,muted:M,volume:I,fromTime:P,canRewindLive:E,supportLink:R,showAds:z,adsSlotId:q,adsParams:At,adsPreviewParam:Y,adsAutoplayParam:se,duration:ct,logoClickable:le,logoHidden:Me,isMobile:ge!=null?ge:Be,failoverHosts:N,fullScreenTarget:ae,saveRate:Je,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ne,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:j.nextVideoTitle,endScreenVideoThumb:j.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ce,showEndScreen:ie,showAutoplayNext:Ee}));let qi={target:this.playerContainer,props:s(Cn)};this.svelteRootComponent=ds(Vm,qi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Jt=(je=(zt=this.videoConfig)==null?void 0:zt.callbacks)==null?void 0:je.onInited)==null||Jt.call(je)),(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&&((ao=(Ni=this.videoConfig)==null?void 0:Ni.callbacks)!=null&&ao.onDevNullLog)?Ud.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Ud.destroy("ui")};this.coreConfig.asyncResolveClientChecker?H1.isInited$.subscribe(zt=>{zt&&(console.log("UI SDK async start"),xi())}):xi()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,p;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(p=a.onPiPExit)==null?void 0:p.call(a)}));let r=a==null?void 0:a.uiInfo;r&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=r.onControlsVisibleChanged)==null?void 0:l.call(r,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=r.onIsMobileChanged)==null?void 0:l.call(r,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=r.onPlayerSizeChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=r.onPrevButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=r.onPlayButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=r.onReplayButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=r.onNextButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=r.onPlayPrevChapterChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=r.onSeekToInteractiveButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=r.onGraphButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=r.onLiveButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=r.onTimeUpdateChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=r.onEpisodesChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=r.onSubtitlesChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var l;return(l=r.onTopLeftControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var l;return(l=r.onTopRightControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var l;return(l=r.onBottomLeftControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var l;return(l=r.onBottomRightControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var l;return(l=r.onMiddleControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var l;return(l=r.onBottomControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var l;return(l=r.onTitleChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=r.onSettingsChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=r.onFullscreenChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=r.onChromecastChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=r.onPipChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=r.onVkLogoChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=r.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=r.onTimelineChanged)==null?void 0:l.call(r,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&&zm(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;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let r=(i=this.store)==null?void 0:i.interfaceLanguage$,d=r?xe(r):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,historyApi:f,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:p,historyApi:f,vkVideoLoader:b,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$:u,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(y=>{if(!this.isInited)return;let C=this.store;y?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(u.subscribe(y=>{this.store&&this.store.state.isInteractiveExpectation$.set(y)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(y=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...y.config,title:(l==null?void 0:l.title)||y.config.title};let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:C})=>{var T,I,M,P,E,R;if(!this.store||!this.microStoresRoot)return;let z=u.getValue();if(y==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Fl)),y==="action-choice-canceled"){let q=xe(this.store.state.isPlaying$)||z;if(((M=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?M:(I=this.videoConfig)!=null&&I.isMobile)&&q){this.store.ui.interactiveHideMobileControls.set(!0);return}(R=(P=this.videoConfig)==null?void 0:(E=P.callbacks).onDisabledInteractiveClick)==null||R.call(E)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:C})=>{this.store&&y==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(Fl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let y=this.interactiveController.getHistoryState();this.subscription.add(y.history$.subscribe(C=>{var T,I,M;C.length&&((M=(I=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||M.call(I,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,C,T,I;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(y=>{this.log({message:y.toString()})}))}catch(a){this.log({message:a.message})}}initPlayer(e,i={}){var o,n,a,r,d,l,p,f,b,u,_,w,y,C,T,I,M,P,E,R,z,q,U,Y,se,Q;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Vd(A5,y5(e,de=>de instanceof HTMLElement?de:void 0)),this.uiConfig=Lg((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(r=this.uiConfig.sentry)!=null?r:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new T5("UI"))),Ud.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[$5()]}),zm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),zm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=(b=this.uiConfig.features.pip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(M=this.uiConfig.ads.slot)!=null?M:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((E=this.uiConfig.showLogo)!=null?E:!this.videoConfig.logoHidden),(R=this.videoConfig).canRewindLive&&(R.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(q=this.uiConfig.features.endScreen)!=null?q:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(U=this.uiConfig.features.autoplayNext)!=null?U:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Y=this.uiConfig.features.nextPrevButtons)!=null?Y:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((se=this.videoConfig.videos)!=null&&se[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let de={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=mu.getLatestSupportedVersion(de):this.pictureInPictureApi=new ra(de)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new fu:void 0,this.slotsApi=this.uiConfig.features.slots?new du:void 0,this.annotationsApi=this.uiConfig.features.annotations?new vu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),A1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(Q=this.slotsApi)==null||Q.init(this.shadowRootContainer,this.store)}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(Cn)&&(s(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Cn).nextButtonActive=this.isNextButtonActive(),s(Cn).prevButtonActive=this.isPrevButtonActive(),s(Cn).endScreenVideoTitle=o.nextVideoTitle,s(Cn).endScreenVideoThumb=o.nextVideoThumb,s(Cn).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",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,s(Cn)&&(s(Cn).needToRepeatPlaylist=this.needToRepeatPlaylist,s(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Cn).nextButtonActive=this.isNextButtonActive(),s(Cn).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,n=o.currentFormat$.getValue();return(n===O1.DASH_LIVE_CMAF||n===O1.HLS_LIVE_CMAF)&&!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 a=()=>{var r;(r=this.store)==null||r.actions.internal.setLiveWaitingRecover(!0)};n&&a(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var r;n||a(),(r=this.store)==null||r.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var a;(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var a;o||n(),(a=this.store)==null||a.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let a=()=>{var r,d;(r=this.store)==null||r.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){a();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=a)}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=xe(this.store.state.positionExact$),r=xe(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(C5()).subscribe(()=>{r&&n>=r.time?this.seekTime(r.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)}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&&Xs(e)}};import{InterfaceLanguage as EX,VKNumericLanguage as kX,loadVKLangPack as PX}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as MX,VideoFormat as LX}from"@vkontakte/videoplayer-core/es2018";var $X=()=>{window.customElements.define("vk-video-player",_u)};export{Zc as ControlButtonType,Yr as GridTypes,EX as InterfaceLanguage,Zl as MenuItemType,fs as PlayerPhase,Ga as VERSION,kX as VKNumericLanguage,LX as VideoFormat,MX as VideoQuality,PX as loadVKLangPack,$X as registerPlayerWebComponent};