@vkontakte/videoplayer 1.1.64-beta.0 → 1.1.64-dev.095ddfcb.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/esnext.esm.js CHANGED
@@ -1,63 +1,63 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.64-beta.0
3
- * Mon, 09 Jun 2025 19:10:37 GMT
2
+ * @vkontakte/videoplayer v1.1.64-dev.095ddfcb.0
3
+ * Fri, 20 Jun 2025 11:04:44 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-64/doc/
5
5
  */
6
- var ia="[",ya="[!",xa="]",Br={};var vi=Symbol(),ni=Symbol("filename"),Cm=Symbol("hmr"),km="http://www.w3.org/1999/xhtml",au="http://www.w3.org/2000/svg";var Md=!0;var Tm=globalThis.process?.env?.NODE_ENV,ke=Tm&&!Tm.toLowerCase().startsWith("prod");var yo=Symbol("$state"),Dr=Symbol("$state metadata"),Ys=Symbol("legacy props"),Im=Symbol("");var rr=Array.isArray,Em=Array.prototype.indexOf,Zs=Array.from,su=Object.keys,Oi=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,Ld=Object.getOwnPropertyDescriptors,lu=Object.prototype,Pm=Array.prototype,Or=Object.getPrototypeOf;function oa(t){return typeof t=="function"}var te=()=>{};function Am(t){return t()}function na(t){for(var e=0;e<t.length;e++)t[e]()}var Xs=[],du=[];function Mm(){var t=Xs;Xs=[],na(t)}function c1(){var t=du;du=[],na(t)}function Ao(t){Xs.length===0&&queueMicrotask(Mm),Xs.push(t)}function cu(){Xs.length>0&&Mm(),du.length>0&&c1()}function Vd(t){return t===this.v}function ps(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Lm(t,e){return t!==e}function fs(t){return!ps(t,this.v)}function Vm(){if(ke){let t=new Error(`derived_references_self
6
+ var ta="[",$a="[!",ya="]",Nr={};var mi=Symbol(),ii=Symbol("filename"),km=Symbol("hmr"),Tm="http://www.w3.org/1999/xhtml",su="http://www.w3.org/2000/svg";var Md=!0;var Im=globalThis.process?.env?.NODE_ENV,Ce=Im&&!Im.toLowerCase().startsWith("prod");var yo=Symbol("$state"),Dr=Symbol("$state metadata"),js=Symbol("legacy props"),Em=Symbol("");var sr=Array.isArray,Pm=Array.prototype.indexOf,Zs=Array.from,lu=Object.keys,Di=Object.defineProperty,yn=Object.getOwnPropertyDescriptor,Ld=Object.getOwnPropertyDescriptors,du=Object.prototype,Am=Array.prototype,Or=Object.getPrototypeOf;function ia(t){return typeof t=="function"}var ee=()=>{};function Mm(t){return t()}function oa(t){for(var e=0;e<t.length;e++)t[e]()}var Xs=[],cu=[];function Lm(){var t=Xs;Xs=[],oa(t)}function u1(){var t=cu;cu=[],oa(t)}function Do(t){Xs.length===0&&queueMicrotask(Lm),Xs.push(t)}function uu(){Xs.length>0&&Lm(),cu.length>0&&u1()}function Vd(t){return t===this.v}function us(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Vm(t,e){return t!==e}function ps(t){return!us(t,this.v)}function Rm(){if(Ce){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 Rm(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 Bm(t){if(Ce){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 Nm(){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 Bm(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 Nm(){if(Ce){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 Dm(t){if(Ce){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 Dm(){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 Om(){if(Ce){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 Om(){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 Hm(){if(Ce){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 Hm(){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 Fm(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 Fm(){if(Ce){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 Um(t){if(Ce){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 Um(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 zm(t){if(Ce){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 zm(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 Wm(t){if(Ce){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 Wm(){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 qm(){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 Km(){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 Qm(){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 Cr=!1,kr=!1;function Gm(){Cr=!0}var Js=null;function Hr(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 qm(){if(Ce){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 Km(){if(Ce){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 Qm(){if(Ce){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 Gm(){if(Ce){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 Cr=!1,kr=!1;function Ym(){Cr=!0}var Js=null;function Hr(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;Oi(e,"stack",{value:n.join(`
25
- `)}),Oi(e,"name",{value:`${t}Error`})}return e}var wa=new Set,ms=new Map;function mu(t){wa=t}function wi(t,e){var i={f:0,v:t,reactions:null,equals:Vd,rv:0,wv:0};return ke&&kr&&(i.created=e??Hr("CreatedAt"),i.debug=null),i}function G(t){return u1(wi(t))}function Ur(t,e=!1){let i=wi(t);return e||(i.equals=fs),Cr&&kt!==null&&kt.l!==null&&(kt.l.s??=[]).push(i),i}function u1(t){return At!==null&&!yn&&(At.f&2)!==0&&(ar===null?Zm([t]):ar.push(t)),t}function B(t,e){return At!==null&&!yn&&Tr()&&(At.f&18)!==0&&(ar===null||!ar.includes(t))&&Qm(),vs(t,e)}function vs(t,e){if(!t.equals(e)){var i=t.v;if(Ca?ms.set(t,e):ms.set(t,i),t.v=e,t.wv=tl(),ke&&kr&&(t.updated=Hr("UpdatedAt"),_t!=null&&(t.trace_need_increase=!0,t.trace_v??=i)),Ym(t,2048),Tr()&&_t!==null&&(_t.f&1024)!==0&&(_t.f&96)===0&&($n===null?Xm([t]):$n.push(t)),ke&&wa.size>0){let o=Array.from(wa);for(let n of o)(n.f&1024)!==0&&Vo(n,4096),ra(n)&&gs(n);wa.clear()}}return e}function Ym(t,e){var i=t.reactions;if(i!==null)for(var o=Tr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===_t)){if(ke&&(d&262144)!==0){wa.add(s);continue}Vo(s,e),(d&1280)!==0&&((d&2)!==0?Ym(s,4096):hs(s))}}}function v(t){var e=2050,i=At!==null&&(At.f&2)!==0?At:null;_t===null||i!==null&&(i.f&256)!==0?e|=256:_t.f|=1048576;let o={ctx:kt,deps:null,effects:null,equals:Vd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i??_t};return ke&&kr&&(o.created=Hr("CreatedAt")),o}function lr(t){let e=v(t);return e.equals=fs,e}function Rd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Fi(e[i])}}var vu=[];function p1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function f1(t){var e,i=_t;if(Hi(p1(t)),ke){let o=wa;mu(new Set);try{vu.includes(t)&&Vm(),vu.push(t),Rd(t),e=Nd(t)}finally{Hi(i),mu(o),vu.pop()}}else try{Rd(t),e=Nd(t)}finally{Hi(i)}return e}function hu(t){var e=f1(t),i=(zr||(t.f&256)!==0)&&t.deps!==null?4096:1024;Vo(t,i),t.equals(e)||(t.v=e,t.wv=tl())}var ka="font-weight: bold",Ta="font-weight: normal";function Jm(t,e,i){ke?console.warn(`%c[svelte] hydration_attribute_changed
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;Di(e,"stack",{value:n.join(`
25
+ `)}),Di(e,"name",{value:`${t}Error`})}return e}var xa=new Set,fs=new Map;function vu(t){xa=t}function Ii(t,e){var i={f:0,v:t,reactions:null,equals:Vd,rv:0,wv:0};return Ce&&kr&&(i.created=e??Hr("CreatedAt"),i.debug=null),i}function Y(t){return p1(Ii(t))}function Ur(t,e=!1){let i=Ii(t);return e||(i.equals=ps),Cr&&Tt!==null&&Tt.l!==null&&(Tt.l.s??=[]).push(i),i}function p1(t){return Pt!==null&&!wn&&(Pt.f&2)!==0&&(lr===null?Xm([t]):lr.push(t)),t}function N(t,e){return Pt!==null&&!wn&&Tr()&&(Pt.f&18)!==0&&(lr===null||!lr.includes(t))&&Gm(),ms(t,e)}function ms(t,e){if(!t.equals(e)){var i=t.v;if(Sa?fs.set(t,e):fs.set(t,i),t.v=e,t.wv=tl(),Ce&&kr&&(t.updated=Hr("UpdatedAt"),bt!=null&&(t.trace_need_increase=!0,t.trace_v??=i)),Zm(t,2048),Tr()&&bt!==null&&(bt.f&1024)!==0&&(bt.f&96)===0&&(xn===null?Jm([t]):xn.push(t)),Ce&&xa.size>0){let o=Array.from(xa);for(let n of o)(n.f&1024)!==0&&Fo(n,4096),na(n)&&vs(n);xa.clear()}}return e}function Zm(t,e){var i=t.reactions;if(i!==null)for(var o=Tr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===bt)){if(Ce&&(d&262144)!==0){xa.add(s);continue}Fo(s,e),(d&1280)!==0&&((d&2)!==0?Zm(s,4096):gs(s))}}}function v(t){var e=2050,i=Pt!==null&&(Pt.f&2)!==0?Pt:null;bt===null||i!==null&&(i.f&256)!==0?e|=256:bt.f|=1048576;let o={ctx:Tt,deps:null,effects:null,equals:Vd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i??bt};return Ce&&kr&&(o.created=Hr("CreatedAt")),o}function cr(t){let e=v(t);return e.equals=ps,e}function Rd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Hi(e[i])}}var gu=[];function f1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function m1(t){var e,i=bt;if(Oi(f1(t)),Ce){let o=xa;vu(new Set);try{gu.includes(t)&&Rm(),gu.push(t),Rd(t),e=Bd(t)}finally{Oi(i),vu(o),gu.pop()}}else try{Rd(t),e=Bd(t)}finally{Oi(i)}return e}function _u(t){var e=m1(t),i=(zr||(t.f&256)!==0)&&t.deps!==null?4096:1024;Fo(t,i),t.equals(e)||(t.v=e,t.wv=tl())}var Ca="font-weight: bold",ka="font-weight: normal";function ev(t,e,i){Ce?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`,ka,Ta):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function ev(t){ke?console.warn(`%c[svelte] hydration_html_changed
27
+ https://svelte.dev/e/hydration_attribute_changed`,Ca,ka):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function tv(t){Ce?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`,ka,Ta):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ia(t){ke?console.warn(`%c[svelte] hydration_mismatch
29
+ https://svelte.dev/e/hydration_html_changed`,Ca,ka):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ta(t){Ce?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`,ka,Ta):console.warn("https://svelte.dev/e/hydration_mismatch")}function tv(){ke?console.warn(`%c[svelte] lifecycle_double_unmount
31
+ https://svelte.dev/e/hydration_mismatch`,Ca,ka):console.warn("https://svelte.dev/e/hydration_mismatch")}function iv(){Ce?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`,ka,Ta):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function iv(t,e,i){ke?console.warn(`%c[svelte] ownership_invalid_binding
33
+ https://svelte.dev/e/lifecycle_double_unmount`,Ca,ka):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function ov(t,e,i){Ce?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`,ka,Ta):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function _u(t,e){ke?console.warn(`%c[svelte] ownership_invalid_mutation
35
+ https://svelte.dev/e/ownership_invalid_binding`,Ca,ka):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function bu(t,e){Ce?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`,ka,Ta):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Bd(t){ke?console.warn(`%c[svelte] state_proxy_equality_mismatch
37
+ https://svelte.dev/e/ownership_invalid_mutation`,Ca,ka):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Nd(t){Ce?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`,ka,Ta):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ke=!1;function Ui(t){Ke=t}var ct;function ri(t){if(t===null)throw Ia(),Br;return ct=t}function _i(){return ri(lo(ct))}function g(t){if(Ke){if(lo(ct)!==null)throw Ia(),Br;ct=t}}function ve(t=1){if(Ke){for(var e=t,i=ct;e--;)i=lo(i);ct=i}}function _s(){for(var t=0,e=ct;;){if(e.nodeType===8){var i=e.data;if(i===xa){if(t===0)return e;t-=1}else(i===ia||i===ya)&&(t+=1)}var o=lo(e);e.remove(),e=o}}function ce(t,e=null,i){var o=null;if(ke&&kr&&(o=Hr("CreatedAt")),typeof t!="object"||t===null||yo in t)return t;let n=Or(t);if(n!==lu&&n!==Pm)return t;var a=new Map,s=rr(t),d=wi(0);s&&a.set("length",wi(t.length,o));var l;if(ke)if(l={parent:e,owners:null},i){let c=i.v?.[Dr]?.owners;l.owners=c?new Set(c):null}else l.owners=e===null?kt!==null?new Set([kt.function]):null:new Set;return new Proxy(t,{defineProperty(c,p,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&Wm();var u=a.get(p);return u===void 0?(u=wi(_.value,o),a.set(p,u)):B(u,ce(_.value,l)),!0},deleteProperty(c,p){var _=a.get(p);if(_===void 0)p in c&&a.set(p,wi(vi,o));else{if(s&&typeof p=="string"){var u=a.get("length"),$=Number(p);Number.isInteger($)&&$<u.v&&B(u,$)}B(_,vi),ov(d)}return!0},get(c,p,_){if(ke&&p===Dr)return l;if(p===yo)return t;var u=a.get(p),$=p in c;if(u===void 0&&(!$||bn(c,p)?.writable)&&(u=wi(ce($?c[p]:vi,l),o),a.set(p,u)),u!==void 0){var w=r(u);if(ke){var x=w?.[Dr];x&&x?.parent!==l&&bu(l,x)}return w===vi?void 0:w}return Reflect.get(c,p,_)},getOwnPropertyDescriptor(c,p){var _=Reflect.getOwnPropertyDescriptor(c,p);if(_&&"value"in _){var u=a.get(p);u&&(_.value=r(u))}else if(_===void 0){var $=a.get(p),w=$?.v;if($!==void 0&&w!==vi)return{enumerable:!0,configurable:!0,value:w,writable:!0}}return _},has(c,p){if(ke&&p===Dr||p===yo)return!0;var _=a.get(p),u=_!==void 0&&_.v!==vi||Reflect.has(c,p);if(_!==void 0||_t!==null&&(!u||bn(c,p)?.writable)){_===void 0&&(_=wi(u?ce(c[p],l):vi,o),a.set(p,_));var $=r(_);if($===vi)return!1}return u},set(c,p,_,u){var $=a.get(p),w=p in c;if(s&&p==="length")for(var x=_;x<$.v;x+=1){var C=a.get(x+"");C!==void 0?B(C,vi):x in c&&(C=wi(vi,o),a.set(x+"",C))}if($===void 0?(!w||bn(c,p)?.writable)&&($=wi(void 0,o),B($,ce(_,l)),a.set(p,$)):(w=$.v!==vi,B($,ce(_,l))),ke){var T=_?.[Dr];T&&T?.parent!==l&&bu(l,T),nv(l)}var I=Reflect.getOwnPropertyDescriptor(c,p);if(I?.set&&I.set.call(u,_),!w){if(s&&typeof p=="string"){var A=a.get("length"),L=Number(p);Number.isInteger(L)&&L>=A.v&&B(A,L+1)}ov(d)}return!0},ownKeys(c){r(d);var p=Reflect.ownKeys(c).filter($=>{var w=a.get($);return w===void 0||w.v!==vi});for(var[_,u]of a)u.v!==vi&&!(_ in c)&&p.push(_);return p},setPrototypeOf(){qm()}})}function ov(t,e=1){B(t,t.v+e)}function Dd(t){return t!==null&&typeof t=="object"&&yo in t?t[yo]:t}function rv(){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??0;l<this.length;l+=1)if(Dd(this[l])===a){Bd("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,s){let d=o.call(this,a,s??this.length-1);if(d===-1){for(let l=0;l<=(s??this.length-1);l+=1)if(Dd(this[l])===a){Bd("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(Dd(this[l])===a){Bd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Ea,av,il,sv,lv;function Od(){if(Ea===void 0){Ea=window,av=document,il=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;sv=bn(e,"firstChild").get,lv=bn(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,rv())}}function Ro(t=""){return document.createTextNode(t)}function ai(t){return sv.call(t)}function lo(t){return lv.call(t)}function h(t,e){if(!Ke)return ai(t);var i=ai(ct);if(i===null)i=ct.appendChild(Ro());else if(e&&i.nodeType!==3){var o=Ro();return i?.before(o),ri(o),o}return ri(i),i}function le(t,e){if(!Ke){var i=ai(t);return i.nodeType===8&&i.data===""?lo(i):i}if(e&&ct?.nodeType!==3){var o=Ro();return ct?.before(o),ri(o),o}return ct}function P(t,e=1,i=!1){let o=Ke?ct:t;for(var n;e--;)n=o,o=lo(o);if(!Ke)return o;var a=o?.nodeType;if(i&&a!==3){var s=Ro();return o===null?n?.after(s):o.before(s),ri(s),s}return ri(o),o}function ol(t){t.textContent=""}var dv=new WeakSet,Hd=!1,al=!1,nl=null,Pa=!1,Ca=!1;function xu(t){Ca=t}var rl=[],Ud=[],At=null,yn=!1;function ji(t){At=t}var _t=null;function Hi(t){_t=t}var ar=null;function Zm(t){ar=t}var No=null,wn=0,$n=null;function Xm(t){$n=t}var mv=1,zd=0,zr=!1,el=null;function tl(){return++mv}function ra(t){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&&_t!==null&&!zr,l=i.length;if(s||d){var c=t,p=c.parent;for(n=0;n<l;n++)a=i[n],(s||!a?.reactions?.includes(c))&&(a.reactions??=[]).push(c);s&&(c.f^=512),d&&p!==null&&(p.f&256)===0&&(c.f^=256)}for(n=0;n<l;n++)if(a=i[n],ra(a)&&hu(a),a.wv>t.wv)return!0}(!o||_t!==null&&!zr)&&Vo(t,1024)}return!1}function cv(t,e){for(var i=e;i!==null;){if((i.f&128)!==0)try{i.fn(t);return}catch{i.f^=128}i=i.parent}throw Hd=!1,t}function uv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function $s(t,e,i,o){if(Hd){if(i===null&&(Hd=!1),uv(e))throw t;return}if(i!==null&&(Hd=!0),!ke||o===null||!(t instanceof Error)||dv.has(t)){cv(t,e);return}dv.add(t);let n=[],a=e.fn?.name;a&&n.push(a);let s=o;for(;s!==null;){if(ke){var d=s.function?.[ni];if(d){let p=d.split("/").pop();n.push(p)}}s=s.p}let l=il?" ":" ";Oi(t,"message",{value:t.message+`
40
- ${n.map(p=>`
41
- ${l}in ${p}`).join("")}
42
- `}),Oi(t,"component_stack",{value:n});let c=t.stack;if(c){let p=c.split(`
43
- `),_=[];for(let u=0;u<p.length;u++){let $=p[u];$.includes("svelte/src/internal")||_.push($)}Oi(t,"stack",{value:_.join(`
44
- `)})}if(cv(t,e),uv(e))throw t}function vv(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?vv(a,e,!1):e===a&&(i?Vo(a,2048):(a.f&1024)!==0&&Vo(a,4096),hs(a))}}function Nd(t){var e=No,i=wn,o=$n,n=At,a=zr,s=ar,d=kt,l=yn,c=t.f;No=null,wn=0,$n=null,zr=(c&256)!==0&&(yn||!Pa||At===null),At=(c&96)===0?t:null,ar=null,ll(t.ctx),yn=!1,zd++;try{var p=(0,t.fn)(),_=t.deps;if(No!==null){var u;if(sl(t,wn),_!==null&&wn>0)for(_.length=wn+No.length,u=0;u<No.length;u++)_[wn+u]=No[u];else t.deps=_=No;if(!zr)for(u=wn;u<_.length;u++)(_[u].reactions??=[]).push(t)}else _!==null&&wn<_.length&&(sl(t,wn),_.length=wn);if(Tr()&&$n!==null&&!yn&&_!==null&&(t.f&6146)===0)for(u=0;u<$n.length;u++)vv($n[u],t);return n!==null&&(zd++,$n!==null&&(o===null?o=$n:o.push(...$n))),p}finally{No=e,wn=i,$n=o,At=n,zr=a,ar=s,ll(d),yn=l}}function m1(t,e){let i=e.reactions;if(i!==null){var o=Em.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&&(No===null||!No.includes(e))&&(Vo(e,4096),(e.f&768)===0&&(e.f^=512),Rd(e),sl(e,0))}function sl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)m1(t,i[o])}function gs(t){var e=t.f;if((e&16384)===0){Vo(t,1024);var i=_t,o=kt,n=Pa;if(_t=t,Pa=!0,ke){var a=Bo;dl(t.component_function)}try{(e&16)!==0?gv(t):Su(t),wu(t);var s=Nd(t);t.teardown=typeof s=="function"?s:null,t.wv=mv;var d=t.deps;if(ke&&kr&&(t.f&2048)!==0&&d!==null)for(let c=0;c<d.length;c++){var l=d[c];l.trace_need_increase&&(l.wv=tl(),l.trace_need_increase=void 0,l.trace_v=void 0)}ke&&Ud.push(t)}catch(c){$s(c,t,i,o||t.ctx)}finally{Pa=n,_t=i,ke&&dl(a)}}}function pv(){console.error("Last ten effects were: ",Ud.slice(-10).map(t=>t.fn)),Ud=[]}function v1(){try{Dm()}catch(t){if(ke&&Oi(t,"stack",{value:""}),nl!==null)if(ke)try{$s(t,nl,null,null)}catch(e){throw pv(),e}else $s(t,nl,null,null);else throw ke&&pv(),t}}function $u(){var t=Pa;try{var e=0;for(Pa=!0;rl.length>0;){e++>1e3&&v1();var i=rl,o=i.length;rl=[];for(var n=0;n<o;n++){var a=h1(i[n]);g1(a)}}}finally{al=!1,Pa=t,nl=null,ke&&(Ud=[]),ms.clear()}}function g1(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{ra(o)&&(gs(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Cu(o):o.fn=null))}catch(n){$s(n,o,null,o.ctx)}}}function hs(t){al||(al=!0,queueMicrotask($u));for(var e=nl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}rl.push(e)}function h1(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=At;try{At=i,ra(i)&&gs(i)}catch(c){$s(c,i,null,i.ctx)}finally{At=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 ys(t){var e;for(t&&(al=!0,$u(),e=t()),cu();rl.length>0;)al=!0,$u(),cu();return e}async function Yi(){await Promise.resolve(),ys()}function r(t){var e=t.f,i=(e&2)!==0;if(el!==null&&el.add(t),At!==null&&!yn){ar!==null&&ar.includes(t)&&Km();var o=At.deps;t.rv<zd&&(t.rv=zd,No===null&&o!==null&&o[wn]===t?wn++:No===null?No=[t]:(!zr||!No.includes(t))&&No.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,ra(n)&&hu(n)),ke&&kr&&Js!==null&&At!==null&&Js.reaction===At){if(t.debug)t.debug();else if(t.created){var s=Js.entries.get(t);s===void 0&&(s={read:[]},Js.entries.set(t,s)),s.read.push(Hr("TracedAt"))}}return Ca&&ms.has(t)?ms.get(t):t.v}function vt(t){var e=yn;try{return yn=!0,t()}finally{yn=e}}var _1=-7169;function Vo(t,e){t.f=t.f&_1|e}function qd(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(yo in t)Wd(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&yo in i&&Wd(i)}}}function Wd(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{Wd(t[o],e)}catch{}let i=Or(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Ld(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch{}}}}}function Tu(t){_t===null&&At===null&&Bm(t),At!==null&&(At.f&256)!==0&&_t===null&&Nm(),Ca&&Rm(t)}function b1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Aa(t,e,i,o=!0){var n=_t;if(ke)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:kt,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=Bo),i)try{gs(a),a.f|=32768}catch(l){throw Fi(a),l}else e!==null&&hs(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&&b1(a,n),At!==null&&(At.f&2)!==0)){var d=At;(d.effects??=[]).push(a)}return a}function Do(t){let e=Aa(8,null,!1);return Vo(e,1024),e.teardown=t,e}function He(t){Tu("$effect");var e=_t!==null&&(_t.f&32)!==0&&kt!==null&&!kt.m;if(ke&&Oi(t,"name",{value:"$effect"}),e){var i=kt;(i.e??=[]).push({fn:t,effect:_t,reaction:At})}else{var o=nn(t);return o}}function xs(t){return Tu("$effect.pre"),ke&&Oi(t,"name",{value:"$effect.pre"}),Zi(t)}function Qd(t){let e=Aa(64,t,!0);return()=>{Fi(e)}}function _v(t){let e=Aa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?rn(e,()=>{Fi(e),o(void 0)}):(Fi(e),o(void 0))})}function nn(t){return Aa(4,t,!1)}function Zi(t){return Aa(8,t,!0)}function S(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return ke&&Oi(n,"name",{value:"{expression}"}),zi(n)}function zi(t,e=0){return Aa(24|e,t,!0)}function Si(t,e=!0){return Aa(40,t,!0,e)}function wu(t){var e=t.teardown;if(e!==null){let i=Ca,o=At;xu(!0),ji(null);try{e.call(null)}finally{xu(i),ji(o)}}}function Su(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Fi(i,e),i=o}}function gv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Fi(e),e=i}}function Fi(t,e=!0){var i=!1;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:lo(o);o.remove(),o=a}i=!0}Su(t,e&&!i),sl(t,0),Vo(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();wu(t);var d=t.parent;d!==null&&d.first!==null&&Cu(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 Cu(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 rn(t,e){var i=[];Gd(t,i,!0),Iu(i,()=>{Fi(t),e&&e()})}function Iu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Gd(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;Gd(o,e,a?i:!1),o=n}}}function Wr(t){bv(t,!0)}function bv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),ra(t)&&(Vo(t,2048),hs(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;bv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var $1={},y1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,x1=/@(.+):(\d+):(\d+)$/;function w1(){let t=new Error().stack;if(!t)return null;let e=[];for(let i of t.split(`
45
- `)){let o=y1.exec(i)??x1.exec(i);o&&e.push({file:o[1],line:+o[2],column:+o[3]})}return e}function $v(){let t=w1()?.slice(4);if(!t)return null;for(let e=0;e<t.length;e++){let i=t[e],o=$1[i.file];if(!o){if(e===0)return null;continue}for(let n of o){if(n.end==null)return null;if(n.start.line<i.line&&n.end.line>i.line)return n.component}}return null}var jd=Symbol("ADD_OWNER");function Eu(t,e,i=!1,o=!1){if(t&&!i){let n=Bo,a=t[Dr];if(a&&!Pu(a,n)){let s=Au(a);e&&e[ni]!==n[ni]&&!o&&iv(n[ni],e[ni],s[ni])}}Yd(t,e,new Set)}function bu(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 Yd(t,e,i){let o=t?.[Dr];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),jd in t&&t[jd])Zi(()=>{t[jd](e)});else{var n=Or(t);if(n===Object.prototype)for(let a in t)if(Object.getOwnPropertyDescriptor(t,a)?.get){let s=vi;Zi(()=>{let d=t[a];s!==d&&(s=d,Yd(d,e,i))})}else Yd(t[a],e,i);else if(n===Array.prototype)for(let a=0;a<t.length;a+=1)Yd(t[a],e,i)}}}function Pu(t,e){return t.owners===null?!0:t.owners.has(e)||ni in e&&[...t.owners].some(i=>i[ni]===e[ni])||t.parent!==null&&Pu(t.parent,e)}function Au(t){return t?.owners?.values().next().value??Au(t.parent)}var S1=!1;function nv(t){if(S1)return;let e=$v();if(e&&!Pu(t,e)){let i=Au(t);i[ni]!==e[ni]?_u(e[ni],i[ni]):_u()}}function ws(t){if(ke){let e=new Error(`lifecycle_outside_component
39
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Ca,ka):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ke=!1;function Fi(t){Ke=t}var ut;function oi(t){if(t===null)throw Ta(),Nr;return ut=t}function $i(){return oi(co(ut))}function g(t){if(Ke){if(co(ut)!==null)throw Ta(),Nr;ut=t}}function he(t=1){if(Ke){for(var e=t,i=ut;e--;)i=co(i);ut=i}}function hs(){for(var t=0,e=ut;;){if(e.nodeType===8){var i=e.data;if(i===ya){if(t===0)return e;t-=1}else(i===ta||i===$a)&&(t+=1)}var o=co(e);e.remove(),e=o}}function le(t,e=null,i){var o=null;if(Ce&&kr&&(o=Hr("CreatedAt")),typeof t!="object"||t===null||yo in t)return t;let n=Or(t);if(n!==du&&n!==Am)return t;var a=new Map,s=sr(t),d=Ii(0);s&&a.set("length",Ii(t.length,o));var l;if(Ce)if(l={parent:e,owners:null},i){let c=i.v?.[Dr]?.owners;l.owners=c?new Set(c):null}else l.owners=e===null?Tt!==null?new Set([Tt.function]):null:new Set;return new Proxy(t,{defineProperty(c,u,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&qm();var p=a.get(u);return p===void 0?(p=Ii(b.value,o),a.set(u,p)):N(p,le(b.value,l)),!0},deleteProperty(c,u){var b=a.get(u);if(b===void 0)u in c&&a.set(u,Ii(mi,o));else{if(s&&typeof u=="string"){var p=a.get("length"),$=Number(u);Number.isInteger($)&&$<p.v&&N(p,$)}N(b,mi),nv(d)}return!0},get(c,u,b){if(Ce&&u===Dr)return l;if(u===yo)return t;var p=a.get(u),$=u in c;if(p===void 0&&(!$||yn(c,u)?.writable)&&(p=Ii(le($?c[u]:mi,l),o),a.set(u,p)),p!==void 0){var w=r(p);if(Ce){var x=w?.[Dr];x&&x?.parent!==l&&$u(l,x)}return w===mi?void 0:w}return Reflect.get(c,u,b)},getOwnPropertyDescriptor(c,u){var b=Reflect.getOwnPropertyDescriptor(c,u);if(b&&"value"in b){var p=a.get(u);p&&(b.value=r(p))}else if(b===void 0){var $=a.get(u),w=$?.v;if($!==void 0&&w!==mi)return{enumerable:!0,configurable:!0,value:w,writable:!0}}return b},has(c,u){if(Ce&&u===Dr||u===yo)return!0;var b=a.get(u),p=b!==void 0&&b.v!==mi||Reflect.has(c,u);if(b!==void 0||bt!==null&&(!p||yn(c,u)?.writable)){b===void 0&&(b=Ii(p?le(c[u],l):mi,o),a.set(u,b));var $=r(b);if($===mi)return!1}return p},set(c,u,b,p){var $=a.get(u),w=u in c;if(s&&u==="length")for(var x=b;x<$.v;x+=1){var k=a.get(x+"");k!==void 0?N(k,mi):x in c&&(k=Ii(mi,o),a.set(x+"",k))}if($===void 0?(!w||yn(c,u)?.writable)&&($=Ii(void 0,o),N($,le(b,l)),a.set(u,$)):(w=$.v!==mi,N($,le(b,l))),Ce){var T=b?.[Dr];T&&T?.parent!==l&&$u(l,T),rv(l)}var C=Reflect.getOwnPropertyDescriptor(c,u);if(C?.set&&C.set.call(p,b),!w){if(s&&typeof u=="string"){var R=a.get("length"),A=Number(u);Number.isInteger(A)&&A>=R.v&&N(R,A+1)}nv(d)}return!0},ownKeys(c){r(d);var u=Reflect.ownKeys(c).filter($=>{var w=a.get($);return w===void 0||w.v!==mi});for(var[b,p]of a)p.v!==mi&&!(b in c)&&u.push(b);return u},setPrototypeOf(){Km()}})}function nv(t,e=1){N(t,t.v+e)}function Dd(t){return t!==null&&typeof t=="object"&&yo in t?t[yo]: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,s){let d=i.call(this,a,s);if(d===-1){for(let l=s??0;l<this.length;l+=1)if(Dd(this[l])===a){Nd("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,s){let d=o.call(this,a,s??this.length-1);if(d===-1){for(let l=0;l<=(s??this.length-1);l+=1)if(Dd(this[l])===a){Nd("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(Dd(this[l])===a){Nd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Ia,sv,il,lv,dv;function Od(){if(Ia===void 0){Ia=window,sv=document,il=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;lv=yn(e,"firstChild").get,dv=yn(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,Ce&&(t.__svelte_meta=null,av())}}function Uo(t=""){return document.createTextNode(t)}function ni(t){return lv.call(t)}function co(t){return dv.call(t)}function h(t,e){if(!Ke)return ni(t);var i=ni(ut);if(i===null)i=ut.appendChild(Uo());else if(e&&i.nodeType!==3){var o=Uo();return i?.before(o),oi(o),o}return oi(i),i}function se(t,e){if(!Ke){var i=ni(t);return i.nodeType===8&&i.data===""?co(i):i}if(e&&ut?.nodeType!==3){var o=Uo();return ut?.before(o),oi(o),o}return ut}function P(t,e=1,i=!1){let o=Ke?ut:t;for(var n;e--;)n=o,o=co(o);if(!Ke)return o;var a=o?.nodeType;if(i&&a!==3){var s=Uo();return o===null?n?.after(s):o.before(s),oi(s),s}return oi(o),o}function ol(t){t.textContent=""}var cv=new WeakSet,Hd=!1,al=!1,nl=null,Ea=!1,Sa=!1;function wu(t){Sa=t}var rl=[],Ud=[],Pt=null,wn=!1;function eo(t){Pt=t}var bt=null;function Oi(t){bt=t}var lr=null;function Xm(t){lr=t}var zo=null,Cn=0,xn=null;function Jm(t){xn=t}var vv=1,zd=0,zr=!1,el=null;function tl(){return++vv}function na(t){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&&bt!==null&&!zr,l=i.length;if(s||d){var c=t,u=c.parent;for(n=0;n<l;n++)a=i[n],(s||!a?.reactions?.includes(c))&&(a.reactions??=[]).push(c);s&&(c.f^=512),d&&u!==null&&(u.f&256)===0&&(c.f^=256)}for(n=0;n<l;n++)if(a=i[n],na(a)&&_u(a),a.wv>t.wv)return!0}(!o||bt!==null&&!zr)&&Fo(t,1024)}return!1}function uv(t,e){for(var i=e;i!==null;){if((i.f&128)!==0)try{i.fn(t);return}catch{i.f^=128}i=i.parent}throw Hd=!1,t}function pv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function bs(t,e,i,o){if(Hd){if(i===null&&(Hd=!1),pv(e))throw t;return}if(i!==null&&(Hd=!0),!Ce||o===null||!(t instanceof Error)||cv.has(t)){uv(t,e);return}cv.add(t);let n=[],a=e.fn?.name;a&&n.push(a);let s=o;for(;s!==null;){if(Ce){var d=s.function?.[ii];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=il?" ":" ";Di(t,"message",{value:t.message+`
40
+ ${n.map(u=>`
41
+ ${l}in ${u}`).join("")}
42
+ `}),Di(t,"component_stack",{value:n});let c=t.stack;if(c){let u=c.split(`
43
+ `),b=[];for(let p=0;p<u.length;p++){let $=u[p];$.includes("svelte/src/internal")||b.push($)}Di(t,"stack",{value:b.join(`
44
+ `)})}if(uv(t,e),pv(e))throw t}function gv(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?gv(a,e,!1):e===a&&(i?Fo(a,2048):(a.f&1024)!==0&&Fo(a,4096),gs(a))}}function Bd(t){var e=zo,i=Cn,o=xn,n=Pt,a=zr,s=lr,d=Tt,l=wn,c=t.f;zo=null,Cn=0,xn=null,zr=(c&256)!==0&&(wn||!Ea||Pt===null),Pt=(c&96)===0?t:null,lr=null,ll(t.ctx),wn=!1,zd++;try{var u=(0,t.fn)(),b=t.deps;if(zo!==null){var p;if(sl(t,Cn),b!==null&&Cn>0)for(b.length=Cn+zo.length,p=0;p<zo.length;p++)b[Cn+p]=zo[p];else t.deps=b=zo;if(!zr)for(p=Cn;p<b.length;p++)(b[p].reactions??=[]).push(t)}else b!==null&&Cn<b.length&&(sl(t,Cn),b.length=Cn);if(Tr()&&xn!==null&&!wn&&b!==null&&(t.f&6146)===0)for(p=0;p<xn.length;p++)gv(xn[p],t);return n!==null&&(zd++,xn!==null&&(o===null?o=xn:o.push(...xn))),u}finally{zo=e,Cn=i,xn=o,Pt=n,zr=a,lr=s,ll(d),wn=l}}function v1(t,e){let i=e.reactions;if(i!==null){var o=Pm.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&&(zo===null||!zo.includes(e))&&(Fo(e,4096),(e.f&768)===0&&(e.f^=512),Rd(e),sl(e,0))}function sl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)v1(t,i[o])}function vs(t){var e=t.f;if((e&16384)===0){Fo(t,1024);var i=bt,o=Tt,n=Ea;if(bt=t,Ea=!0,Ce){var a=Wo;dl(t.component_function)}try{(e&16)!==0?hv(t):Cu(t),Su(t);var s=Bd(t);t.teardown=typeof s=="function"?s:null,t.wv=vv;var d=t.deps;if(Ce&&kr&&(t.f&2048)!==0&&d!==null)for(let c=0;c<d.length;c++){var l=d[c];l.trace_need_increase&&(l.wv=tl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Ce&&Ud.push(t)}catch(c){bs(c,t,i,o||t.ctx)}finally{Ea=n,bt=i,Ce&&dl(a)}}}function fv(){console.error("Last ten effects were: ",Ud.slice(-10).map(t=>t.fn)),Ud=[]}function g1(){try{Om()}catch(t){if(Ce&&Di(t,"stack",{value:""}),nl!==null)if(Ce)try{bs(t,nl,null,null)}catch(e){throw fv(),e}else bs(t,nl,null,null);else throw Ce&&fv(),t}}function yu(){var t=Ea;try{var e=0;for(Ea=!0;rl.length>0;){e++>1e3&&g1();var i=rl,o=i.length;rl=[];for(var n=0;n<o;n++){var a=_1(i[n]);h1(a)}}}finally{al=!1,Ea=t,nl=null,Ce&&(Ud=[]),fs.clear()}}function h1(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{na(o)&&(vs(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?ku(o):o.fn=null))}catch(n){bs(n,o,null,o.ctx)}}}function gs(t){al||(al=!0,queueMicrotask(yu));for(var e=nl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}rl.push(e)}function _1(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=Pt;try{Pt=i,na(i)&&vs(i)}catch(c){bs(c,i,null,i.ctx)}finally{Pt=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 $s(t){var e;for(t&&(al=!0,yu(),e=t()),uu();rl.length>0;)al=!0,yu(),uu();return e}async function to(){await Promise.resolve(),$s()}function r(t){var e=t.f,i=(e&2)!==0;if(el!==null&&el.add(t),Pt!==null&&!wn){lr!==null&&lr.includes(t)&&Qm();var o=Pt.deps;t.rv<zd&&(t.rv=zd,zo===null&&o!==null&&o[Cn]===t?Cn++:zo===null?zo=[t]:(!zr||!zo.includes(t))&&zo.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,na(n)&&_u(n)),Ce&&kr&&Js!==null&&Pt!==null&&Js.reaction===Pt){if(t.debug)t.debug();else if(t.created){var s=Js.entries.get(t);s===void 0&&(s={read:[]},Js.entries.set(t,s)),s.read.push(Hr("TracedAt"))}}return Sa&&fs.has(t)?fs.get(t):t.v}function gt(t){var e=wn;try{return wn=!0,t()}finally{wn=e}}var b1=-7169;function Fo(t,e){t.f=t.f&b1|e}function qd(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(yo in t)Wd(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&yo in i&&Wd(i)}}}function Wd(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{Wd(t[o],e)}catch{}let i=Or(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Ld(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch{}}}}}function Iu(t){bt===null&&Pt===null&&Dm(t),Pt!==null&&(Pt.f&256)!==0&&bt===null&&Nm(),Sa&&Bm(t)}function $1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Pa(t,e,i,o=!0){var n=bt;if(Ce)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Tt,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(Ce&&(a.component_function=Wo),i)try{vs(a),a.f|=32768}catch(l){throw Hi(a),l}else e!==null&&gs(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&&$1(a,n),Pt!==null&&(Pt.f&2)!==0)){var d=Pt;(d.effects??=[]).push(a)}return a}function qo(t){let e=Pa(8,null,!1);return Fo(e,1024),e.teardown=t,e}function He(t){Iu("$effect");var e=bt!==null&&(bt.f&32)!==0&&Tt!==null&&!Tt.m;if(Ce&&Di(t,"name",{value:"$effect"}),e){var i=Tt;(i.e??=[]).push({fn:t,effect:bt,reaction:Pt})}else{var o=rn(t);return o}}function ys(t){return Iu("$effect.pre"),Ce&&Di(t,"name",{value:"$effect.pre"}),io(t)}function Qd(t){let e=Pa(64,t,!0);return()=>{Hi(e)}}function bv(t){let e=Pa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?an(e,()=>{Hi(e),o(void 0)}):(Hi(e),o(void 0))})}function rn(t){return Pa(4,t,!1)}function io(t){return Pa(8,t,!0)}function S(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return Ce&&Di(n,"name",{value:"{expression}"}),Ui(n)}function Ui(t,e=0){return Pa(24|e,t,!0)}function Ei(t,e=!0){return Pa(40,t,!0,e)}function Su(t){var e=t.teardown;if(e!==null){let i=Sa,o=Pt;wu(!0),eo(null);try{e.call(null)}finally{wu(i),eo(o)}}}function Cu(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Hi(i,e),i=o}}function hv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Hi(e),e=i}}function Hi(t,e=!0){var i=!1;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:co(o);o.remove(),o=a}i=!0}Cu(t,e&&!i),sl(t,0),Fo(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();Su(t);var d=t.parent;d!==null&&d.first!==null&&ku(t),Ce&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function ku(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 an(t,e){var i=[];Gd(t,i,!0),Eu(i,()=>{Hi(t),e&&e()})}function Eu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Gd(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;Gd(o,e,a?i:!1),o=n}}}function Wr(t){$v(t,!0)}function $v(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),na(t)&&(Fo(t,2048),gs(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;$v(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var y1={},x1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,w1=/@(.+):(\d+):(\d+)$/;function S1(){let t=new Error().stack;if(!t)return null;let e=[];for(let i of t.split(`
45
+ `)){let o=x1.exec(i)??w1.exec(i);o&&e.push({file:o[1],line:+o[2],column:+o[3]})}return e}function yv(){let t=S1()?.slice(4);if(!t)return null;for(let e=0;e<t.length;e++){let i=t[e],o=y1[i.file];if(!o){if(e===0)return null;continue}for(let n of o){if(n.end==null)return null;if(n.start.line<i.line&&n.end.line>i.line)return n.component}}return null}var Yd=Symbol("ADD_OWNER");function Pu(t,e,i=!1,o=!1){if(t&&!i){let n=Wo,a=t[Dr];if(a&&!Au(a,n)){let s=Mu(a);e&&e[ii]!==n[ii]&&!o&&ov(n[ii],e[ii],s[ii])}}jd(t,e,new Set)}function $u(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 jd(t,e,i){let o=t?.[Dr];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),Yd in t&&t[Yd])io(()=>{t[Yd](e)});else{var n=Or(t);if(n===Object.prototype)for(let a in t)if(Object.getOwnPropertyDescriptor(t,a)?.get){let s=mi;io(()=>{let d=t[a];s!==d&&(s=d,jd(d,e,i))})}else jd(t[a],e,i);else if(n===Array.prototype)for(let a=0;a<t.length;a+=1)jd(t[a],e,i)}}}function Au(t,e){return t.owners===null?!0:t.owners.has(e)||ii in e&&[...t.owners].some(i=>i[ii]===e[ii])||t.parent!==null&&Au(t.parent,e)}function Mu(t){return t?.owners?.values().next().value??Mu(t.parent)}var C1=!1;function rv(t){if(C1)return;let e=yv();if(e&&!Au(t,e)){let i=Mu(t);i[ii]!==e[ii]?bu(e[ii],i[ii]):bu()}}function xs(t){if(Ce){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 kt=null;function ll(t){kt=t}var Bo=null;function dl(t){Bo=t}function Ss(t){return Mu("getContext").get(t)}function Cs(t,e){let i=Mu("setContext");return ke&&vt(()=>Eu(e,null,!0)),i.set(t,e),e}function ul(){return Mu("getAllContexts")}function H(t,e=!1,i){var o=kt={p:kt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Cr&&!e&&(kt.l={s:null,u:null,r1:[],r2:wi(!1)}),Do(()=>{o.d=!0}),ke&&(kt.function=i,Bo=i)}function F(t){let e=kt;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=_t,o=At;e.e=null;try{for(var n=0;n<s.length;n++){var a=s[n];Hi(a.effect),ji(a.reaction),nn(a.fn)}}finally{Hi(i),ji(o)}}kt=e.p,ke&&(Bo=e.p?.function??null),e.m=!0}return t||{}}function Tr(){return!Cr||kt!==null&&kt.l===null}function Mu(t){return kt===null&&ws(t),kt.c??=new Map(k1(kt)||void 0)}function k1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var T1=/\r/g;function yv(t){t=t.replace(T1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function xv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var I1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function wv(t){return I1.includes(t)}var E1=["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 P1={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 Sv(t){return t=t.toLowerCase(),P1[t]??t}var Hw=[...E1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var A1=["touchstart","touchmove"];function Cv(t){return A1.includes(t)}var M1=["textarea","script","style","title"];function kv(t){return M1.includes(t)}function Lu(t){return t?.replace(/\//g,"/\u200B")}var Tv=new Map;function Iv(t,e){var i=Tv.get(t);i||(i=new Set,Tv.set(t,i)),i.add(e)}function Vu(t,e){if(e){let i=document.body;t.autofocus=!0,Ao(()=>{document.activeElement===i&&t.focus()})}}function pl(t){var e=At,i=_t;ji(null),Hi(null);try{return t()}finally{ji(e),Hi(i)}}var Ru=new Set,Zd=new Set;function Ma(t){if(!Ke)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 Nu(t,e,i,o={}){function n(a){if(o.capture||ks.call(e,a),!a.cancelBubble)return pl(()=>i?.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Ao(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function ht(t,e,i,o,n){var a={capture:o,passive:n},s=Nu(t,e,i,a);(e===document.body||e===window||e===document)&&Do(()=>{e.removeEventListener(t,s,a)})}function nt(t){for(var e=0;e<t.length;e++)Ru.add(t[e]);for(var i of Zd)i(t)}function ks(t){var e=this,i=e.ownerDocument,o=t.type,n=t.composedPath?.()||[],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 c=n.indexOf(e);if(c===-1)return;l<=c&&(s=l)}if(a=n[s]||t.target,a!==e){Oi(t,"currentTarget",{configurable:!0,get(){return a||i}});var p=At,_=_t;ji(null),Hi(null);try{for(var u,$=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var x=a["__"+o];if(x!=null&&(!a.disabled||t.target===a))if(rr(x)){var[C,...T]=x;C.apply(a,[t,...T])}else x.call(a,t)}catch(I){u?$.push(I):u=I}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let I of $)queueMicrotask(()=>{throw I});throw u}}finally{t.__root=e,delete t.currentTarget,ji(p),Hi(_)}}}var V1;function Ev(){V1=void 0}function Ts(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Xi(t,e){var i=_t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ke)return Xi(ct,null),ct;n===void 0&&(n=Ts(a?t:"<!>"+t),i||(n=ai(n)));var s=o||il?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=ai(s),l=s.lastChild;Xi(d,l)}else Xi(s,s);return s}}function ge(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ke)return Xi(ct,null),ct;if(!s){var d=Ts(a),l=ai(d);if(n)for(s=document.createDocumentFragment();ai(l);)s.appendChild(ai(l));else s=ai(l)}var c=s.cloneNode(!0);if(n){var p=ai(c),_=c.lastChild;Xi(p,_)}else Xi(c,c);return c}}function Ir(t=""){if(!Ke){var e=Ro(t+"");return Xi(e,e),e}var i=ct;return i.nodeType!==3&&(i.before(i=Ro()),ri(i)),Xi(i,i),i}function De(){if(Ke)return Xi(ct,null),ct;var t=document.createDocumentFragment(),e=document.createComment(""),i=Ro();return t.append(e,i),Xi(e,i),t}function b(t,e){if(Ke){_t.nodes_end=ct,_i();return}t!==null&&t.before(e)}var fl=!0;function Xd(t){fl=t}function fe(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function qr(t,e){return Av(t,e)}function Du(t,e){Od(),e.intro=e.intro??!1;let i=e.target,o=Ke,n=ct;try{for(var a=ai(i);a&&(a.nodeType!==8||a.data!==ia);)a=lo(a);if(!a)throw Br;Ui(!0),ri(a),_i();let s=Av(t,{...e,anchor:a});if(ct===null||ct.nodeType!==8||ct.data!==xa)throw Ia(),Br;return Ui(!1),s}catch(s){if(s===Br)return e.recover===!1&&Om(),Od(),ol(i),Ui(!1),qr(t,e);throw s}finally{Ui(o),ri(n),Ev()}}var Is=new Map;function Av(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Od();var d=new Set,l=_=>{for(var u=0;u<_.length;u++){var $=_[u];if(!d.has($)){d.add($);var w=Cv($);e.addEventListener($,ks,{passive:w});var x=Is.get($);x===void 0?(document.addEventListener($,ks,{passive:w}),Is.set($,1)):Is.set($,x+1)}}};l(Zs(Ru)),Zd.add(l);var c=void 0,p=_v(()=>{var _=i??e.appendChild(Ro());return Si(()=>{if(a){H({});var u=kt;u.c=a}n&&(o.$$events=n),Ke&&Xi(_,null),fl=s,c=t(_,o)||{},fl=!0,Ke&&(_t.nodes_end=ct),a&&F()}),()=>{for(var u of d){e.removeEventListener(u,ks);var $=Is.get(u);--$===0?(document.removeEventListener(u,ks),Is.delete(u)):Is.set(u,$)}Zd.delete(l),_!==i&&_.parentNode?.removeChild(_)}});return Bu.set(c,p),c}var Bu=new WeakMap;function La(t,e){let i=Bu.get(t);return i?(Bu.delete(t),i(e)):(ke&&tv(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){Ke&&i===0&&_i();var n=t,a=null,s=null,d=vi,l=i>0?65536:0,c=!1;let p=(u,$=!0)=>{c=!0,_($,u)},_=(u,$)=>{if(d===(d=u))return;let w=!1;if(Ke&&o!==-1){if(i===0){let C=n.data;C===ia?o=0:C===ya?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(n=_s(),ri(n),Ui(!1),w=!0,o=-1)}d?(a?Wr(a):$&&(a=Si(()=>$(n))),s&&rn(s,()=>{s=null})):(s?Wr(s):$&&(s=Si(()=>$(n,[i+1,o]))),a&&rn(a,()=>{a=null})),w&&Ui(!0)};zi(()=>{c=!1,e(p),c||_(null,null)},l),Ke&&(n=ct)}function Va(t,e,i){Ke&&_i();var o=t,n=vi,a,s=Tr()?Lm:ps;zi(()=>{s(n,n=e())&&(a&&rn(a),a=Si(()=>i(o)))}),Ke&&(o=ct)}var sa=null;function Fu(t){sa=t}function ml(t,e){return e}function D1(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Gd(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;ol(l),l.append(i),o.clear(),aa(t,e[0].prev,e[a-1].next)}Iu(n,()=>{for(var c=0;c<a;c++){var p=e[c];d||(o.delete(p.k),aa(t,p.prev,p.next)),Fi(p.e,!d)}})}function ci(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 c=t;s=Ke?ri(ai(c)):c.appendChild(Ro())}Ke&&_i();var p=null,_=!1,u=lr(()=>{var $=i();return rr($)?$:$==null?[]:Zs($)});zi(()=>{var $=r(u),w=$.length;if(_&&w===0)return;_=w===0;let x=!1;if(Ke){var C=s.data===ya;C!==(w===0)&&(s=_s(),ri(s),Ui(!1),x=!0)}if(Ke){for(var T=null,I,A=0;A<w;A++){if(ct.nodeType===8&&ct.data===xa){s=ct,x=!0,Ui(!1);break}var L=$[A],E=o(L,A);I=Vv(ct,d,T,null,L,E,A,n,e,i),d.items.set(E,I),T=I}w>0&&ri(_s())}Ke||O1($,d,s,n,e,o,i),a!==null&&(w===0?p?Wr(p):p=Si(()=>a(s)):p!==null&&rn(p,()=>{p=null})),x&&Ui(!0),r(u)}),Ke&&(s=ct)}function O1(t,e,i,o,n,a,s){var d=(n&8)!==0,l=(n&3)!==0,c=t.length,p=e.items,_=e.first,u=_,$,w=null,x,C=[],T=[],I,A,L,E;if(d)for(E=0;E<c;E+=1)I=t[E],A=a(I,E),L=p.get(A),L!==void 0&&(L.a?.measure(),(x??=new Set).add(L));for(E=0;E<c;E+=1){if(I=t[E],A=a(I,E),L=p.get(A),L===void 0){var N=u?u.e.nodes_start:i;w=Vv(N,e,w,w===null?e.first:w.next,I,A,E,o,n,s),p.set(A,w),C=[],T=[],u=w.next;continue}if(l&&H1(L,I,E,n),(L.e.f&8192)!==0&&(Wr(L.e),d&&(L.a?.unfix(),(x??=new Set).delete(L))),L!==u){if($!==void 0&&$.has(L)){if(C.length<T.length){var W=T[0],K;w=W.prev;var Z=C[0],oe=C[C.length-1];for(K=0;K<C.length;K+=1)Mv(C[K],W,i);for(K=0;K<T.length;K+=1)$.delete(T[K]);aa(e,Z.prev,oe.next),aa(e,w,Z),aa(e,oe,W),u=W,w=oe,E-=1,C=[],T=[]}else $.delete(L),Mv(L,u,i),aa(e,L.prev,L.next),aa(e,L,w===null?e.first:w.next),aa(e,w,L),w=L;continue}for(C=[],T=[];u!==null&&u.k!==A;)(u.e.f&8192)===0&&($??=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;L=u}C.push(L),w=L,u=L.next}if(u!==null||$!==void 0){for(var ue=$===void 0?[]:Zs($);u!==null;)(u.e.f&8192)===0&&ue.push(u),u=u.next;var j=ue.length;if(j>0){var _e=(n&4)!==0&&c===0?i:null;if(d){for(E=0;E<j;E+=1)ue[E].a?.measure();for(E=0;E<j;E+=1)ue[E].a?.fix()}D1(e,ue,_e,p)}}d&&Ao(()=>{if(x!==void 0)for(L of x)L.a?.apply()}),_t.first=e.first&&e.first.e,_t.last=w&&w.e}function H1(t,e,i,o){(o&1)!==0&&vs(t.v,e),(o&2)!==0?vs(t.i,i):t.i=i}function Vv(t,e,i,o,n,a,s,d,l,c){var p=sa,_=(l&1)!==0,u=(l&16)===0,$=_?u?Ur(n):wi(n):n,w=(l&2)===0?s:wi(s);ke&&_&&($.debug=()=>{var C=typeof w=="number"?s:w.v;c()[C]});var x={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};sa=x;try{return x.e=Si(()=>d(t,$,w,c),Ke),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{sa=p}}function Mv(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=lo(a);n.before(a),a=s}}function aa(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 F1(t,e,i){if(!e||e===yv(String(i??"")))return;let o,n=t.__svelte_meta?.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:Bo?.[ni]&&(o=`in ${Bo[ni]}`),ev(Lu(o))}function vl(t,e,i,o,n){var a=t,s="",d;zi(()=>{if(s===(s=e()??"")){Ke&&_i();return}d!==void 0&&(Fi(d),d=void 0),s!==""&&(d=Si(()=>{if(Ke){for(var l=ct.data,c=_i(),p=c;c!==null&&(c.nodeType!==8||c.data!=="");)p=c,c=lo(c);if(c===null)throw Ia(),Br;ke&&!n&&F1(c.parentNode,l,s),Xi(ct,p),a=ri(c);return}var _=s+"";i?_=`<svg>${_}</svg>`:o&&(_=`<math>${_}</math>`);var u=Ts(_);if((i||o)&&(u=ai(u)),Xi(ai(u),u.lastChild),i||o)for(;ai(u);)a.before(ai(u));else a.before(u)}))})}function me(t,e,...i){var o=t,n=te,a;zi(()=>{n!==(n=e())&&(a&&(Fi(a),a=null),ke&&n==null&&Hm(),a=Si(()=>n(o,...i)))},65536),Ke&&(o=ct)}function ui(t,e,i){Ke&&_i();var o=t,n,a;zi(()=>{n!==(n=e())&&(a&&(rn(a),a=null),n&&(a=Si(()=>i(o,n))))},65536),Ke&&(o=ct)}function Ra(t,e,i,o,n,a){let s=Ke;Ke&&_i();var d=ke&&a&&kt?.function[ni],l,c,p=null;Ke&&ct.nodeType===1&&(p=ct,_i());var _=Ke?ct:t,u,$=sa;zi(()=>{let w=e()||null;var x=n?n():i||w==="svg"?au:null;if(w!==l){var C=sa;Fu($),u&&(w===null?rn(u,()=>{u=null,c=null}):w===c?Wr(u):(Fi(u),Xd(!1))),w&&w!==c&&(u=Si(()=>{if(p=Ke?p:x?document.createElementNS(x,w):document.createElement(w),ke&&a&&(p.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Xi(p,p),o){Ke&&kv(w)&&p.append(document.createComment(""));var T=Ke?ai(p):p.appendChild(Ro());Ke&&(T===null?Ui(!1):ri(T)),o(p,T)}_t.nodes_end=p,_.before(p)})),l=w,l&&(c=l),Xd(!0),Fu(C)}},65536),s&&(Ui(!0),ri(_))}var zu;function Rv(t){return zu=t.target,new Uu(t)}var Uu=class{#t;#e;constructor(e){var i=new Map,o=(a,s)=>{var d=Ur(s);return i.set(a,d),d};let n=new Proxy({...e.props||{},$$events:{}},{get(a,s){return r(i.get(s)??o(s,Reflect.get(a,s)))},has(a,s){return s===Ys?!0:(r(i.get(s)??o(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,d){return B(i.get(s)??o(s,d),d),Reflect.set(a,s,d)}});this.#e=(e.hydrate?Du:qr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&ys(),this.#t=n.$$events;for(let a of Object.keys(this.#e))a==="$set"||a==="$destroy"||a==="$on"||Oi(this,a,{get(){return this.#e[a]},set(s){this.#e[a]=s},enumerable:!0});this.#e.$set=a=>{Object.assign(n,a)},this.#e.$destroy=()=>{La(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...n)=>i.call(this,...n);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(n=>n!==o)}}$destroy(){this.#e.$destroy()}};function U(t,e){Ao(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??zu?.parentNode;if(!o?.querySelector("#"+e.hash)){let n=document.createElement("style");n.id=e.hash,n.textContent=e.code,o.appendChild(n),ke&&Iv(e.hash,n)}})}function Nv(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=Nv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Bv(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Nv(t))&&(o&&(o+=" "),o+=e);return o}function gl(t){return typeof t=="object"?Bv(t):t??""}var Dv=[...`
48
- \r\f\xA0\v\uFEFF`];function Hv(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||Dv.includes(o[s-1]))&&(d===o.length||Dv.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Ov(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 Wu(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Fv(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(Wu)),n&&l.push(...Object.keys(n).map(Wu));var c=0,p=-1;let x=t.length;for(var _=0;_<x;_++){var u=t[_];if(d?u==="/"&&t[_-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[_+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&p===-1)p=_;else if(u===";"||_===x-1){if(p!==-1){var $=Wu(t.substring(c,p).trim());if(!l.includes($)){u!==";"&&_++;var w=t.substring(c,_).trim();i+=" "+w+";"}}c=_+1,p=-1}}}}return o&&(i+=Ov(o)),n&&(i+=Ov(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function Y(t,e,i,o,n,a){var s=t.__className;if(Ke||s!==i){var d=Hv(i,o,a);(!Ke||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 c=!!a[l];(n==null||c!==!!n[l])&&t.classList.toggle(l,c)}return a}function qu(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 it(t,e,i,o){var n=t.__style;if(Ke||n!==e){var a=Fv(e,o);(!Ke||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(qu(t,i?.[0],o[0]),qu(t,i?.[1],o[1],"important")):qu(t,i,o));return o}var Es=Symbol("class"),Ps=Symbol("style"),Wv=Symbol("is custom element"),qv=Symbol("is html");function Kv(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ne(t,e,i,o){var n=Qv(t);if(Ke&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||G1(t,e,i??"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Im]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Gv(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function xe(t,e,i,o,n=!1){var a=Qv(t),s=a[Wv],d=!a[qv];let l=Ke&&s;l&&Ui(!1);var c=e||{},p=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=gl(i.class):(o||i[Es])&&(i.class=null),i[Ps]&&(i.style??=null);var u=Gv(t);for(let L in i){let E=i[L];if(p&&L==="value"&&E==null){t.value=t.__value="",c[L]=E;continue}if(L==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";Y(t,$,E,o,e?.[Es],i[Es]),c[L]=E,c[Es]=i[Es];continue}if(L==="style"){it(t,E,e?.[Ps],i[Ps]),c[L]=E,c[Ps]=i[Ps];continue}var w=c[L];if(E!==w){c[L]=E;var x=L[0]+L[1];if(x!=="$$")if(x==="on"){let N={},W="$$"+L,K=L.slice(2);var C=wv(K);if(xv(K)&&(K=K.slice(0,-7),N.capture=!0),!C&&w){if(E!=null)continue;t.removeEventListener(K,c[W],N),c[W]=null}if(E!=null)if(C)t[`__${K}`]=E,nt([K]);else{let Z=function(oe){c[L].call(this,oe)};var A=Z;c[W]=Nu(K,t,Z,N)}else C&&(t[`__${K}`]=void 0)}else if(L==="style")Ne(t,L,E);else if(L==="autofocus")Vu(t,!!E);else if(!s&&(L==="__value"||L==="value"&&E!=null))t.value=t.__value=E;else if(L==="selected"&&p)Kv(t,E);else{var T=L;d||(T=Sv(T));var I=T==="defaultValue"||T==="defaultChecked";if(E==null&&!s&&!I)if(a[L]=null,T==="value"||T==="checked"){let N=t,W=e===void 0;if(T==="value"){let K=N.defaultValue;N.removeAttribute(T),N.defaultValue=K,N.value=N.__value=W?K:null}else{let K=N.defaultChecked;N.removeAttribute(T),N.defaultChecked=K,N.checked=W?K:!1}}else t.removeAttribute(L);else I||u.includes(T)&&(s||typeof E!="string")?t[T]=E:typeof E!="function"&&Ne(t,T,E,n)}}}return l&&Ui(!0),c}function Qv(t){return t.__attributes??={[Wv]:t.nodeName.includes("-"),[qv]:t.namespaceURI===km}}var Uv=new Map;function Gv(t){var e=Uv.get(t.nodeName);if(e)return e;Uv.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Ld(o);for(var a in i)i[a].set&&e.push(a);o=Or(o)}return e}function G1(t,e,i){ke&&(e==="srcset"&&j1(t,i)||Ku(t.getAttribute(e)??"",i)||Jm(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Ku(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function zv(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function j1(t,e){var i=zv(t.srcset),o=zv(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Ku(i[s][0],n)||Ku(n,i[s][0])))}var Y1=Md?()=>performance.now():()=>Date.now(),cr={tick:t=>(Md?requestAnimationFrame:te)(t),now:()=>Y1(),tasks:new Set};function jv(){let t=cr.now();cr.tasks.forEach(e=>{e.c(t)||(cr.tasks.delete(e),e.f())}),cr.tasks.size!==0&&cr.tick(jv)}function Yv(t){let e;return cr.tasks.size===0&&cr.tick(jv),{promise:new Promise(i=>{cr.tasks.add(e={c:t,f:i})}),abort(){cr.tasks.delete(e)}}}function Jd(t,e){pl(()=>{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 Zv(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 t0=t=>t;function Gu(t,e,i,o){var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",c,p=e.inert,_=e.style.overflow,u,$;function w(){var A=At,L=_t;ji(null),Hi(null);try{return c??=i()(e,o?.()??{},{direction:l})}finally{ji(A),Hi(L)}}var x={is_global:d,in(){if(e.inert=p,!n){$?.abort(),$?.reset?.();return}a||u?.abort(),Jd(e,"introstart"),u=Qu(e,w(),$,1,()=>{Jd(e,"introend"),u?.abort(),u=c=void 0,e.style.overflow=_})},out(A){if(!a){A?.(),c=void 0;return}e.inert=!0,Jd(e,"outrostart"),$=Qu(e,w(),u,0,()=>{Jd(e,"outroend"),A?.()})},stop:()=>{u?.abort(),$?.abort()}},C=_t;if((C.transitions??=[]).push(x),n&&fl){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&&nn(()=>{vt(()=>x.in())})}}function Qu(t,e,i,o,n){var a=o===1;if(oa(e)){var s,d=!1;return Ao(()=>{if(!d){var C=e({direction:a?"in":"out"});s=Qu(t,C,i,o,n)}}),{abort:()=>{d=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i?.deactivate(),!e?.duration)return n(),{abort:te,deactivate:te,reset:te,t:()=>o};let{delay:l=0,css:c,tick:p,easing:_=t0}=e;var u=[];if(a&&i===void 0&&(p&&p(0,1),c)){var $=Zv(c(0,1));u.push($,$)}var w=()=>1-o,x=t.animate(u,{duration:l});return x.onfinish=()=>{var C=i?.t()??1-o;i?.abort();var T=o-C,I=e.duration*Math.abs(T),A=[];if(I>0){var L=!1;if(c)for(var E=Math.ceil(I/16.666666666666668),N=0;N<=E;N+=1){var W=C+T*_(N/E),K=Zv(c(W,1-W));A.push(K),L||=K.overflow==="hidden"}L&&(t.style.overflow="hidden"),w=()=>{var Z=x.currentTime;return C+T*_(Z/I)},p&&Yv(()=>{if(x.playState!=="running")return!1;var Z=w();return p(Z,1-Z),!0})}x=t.animate(A,{duration:I,fill:"forwards"}),x.onfinish=()=>{w=()=>o,p?.(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=te)},deactivate:()=>{n=te},reset:()=>{o===0&&p?.(1,0)},t:()=>w()}}var ju=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var n=this.#t.get(e);n.delete(i),n.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var n0=new ju({box:"border-box"});function Er(t,e,i){var o=n0.observe(t,()=>i(t[e]));nn(()=>(vt(()=>i(t[e])),o))}function Xv(t,e){return t===e||t?.[yo]===e}function lt(t={},e,i,o){return nn(()=>{var n,a;return Zi(()=>{n=a,a=o?.()||[],vt(()=>{t!==i(...a)&&(e(t,...a),n&&Xv(i(...n),t)&&e(null,...n))})}),()=>{Ao(()=>{a&&Xv(i(...a),t)&&e(null,...a)})}}),t}function ur(t=!1){let e=kt,i=e.l.u;if(!i)return;let o=()=>qd(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let c in l)l[c]!==a[c]&&(a[c]=l[c],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&xs(()=>{Jv(e,o),na(i.b)}),He(()=>{let n=vt(()=>i.m.map(Am));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&He(()=>{Jv(e,o),na(i.a)})}function Jv(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;zm(e)},set:o=>{i=o}})}};a0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var a0;function Lt(t){kt===null&&ws("onMount"),Cr&&kt.l!==null?r0(kt).m.push(t):He(()=>{let e=vt(t);if(typeof e=="function")return e})}function an(t){kt===null&&ws("onDestroy"),Lt(()=>()=>vt(t))}function r0(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function hl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),te;let o=vt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var As=[];function Wn(t,e){return{subscribe:se(t,e).subscribe}}function se(t,e=te){let i=null,o=new Set;function n(d){if(ps(t,d)&&(t=d,i)){let l=!As.length;for(let c of o)c[1](),As.push(c,t);if(l){for(let c=0;c<As.length;c+=2)As[c][0](As[c+1]);As.length=0}}}function a(d){n(d(t))}function s(d,l=te){let c=[d,l];return o.add(c),o.size===1&&(i=e(n,a)||te),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function si(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 Wn(i,(s,d)=>{let l=!1,c=[],p=0,_=te,u=()=>{if(p)return;_();let w=e(o?c[0]:c,s,d);a?s(w):_=typeof w=="function"?w:te},$=n.map((w,x)=>hl(w,C=>{c[x]=C,p&=~(1<<x),l&&u()},()=>{p|=1<<x}));return l=!0,u(),function(){na($),_(),l=!1}})}function be(t){let e;return hl(t,i=>e=i)(),e}var tc=!1,Yu=Symbol();function y(t,e,i){let o=i[e]??={store:null,source:Ur(void 0),unsubscribe:te};if(o.store!==t&&!(Yu in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=te;else{var n=!0;o.unsubscribe=hl(t,a=>{n?o.source.v=a:B(o.source,a)}),n=!1}return t&&Yu in i?be(t):r(o.source)}function Le(){let t={};function e(){Do(()=>{for(var i in t)t[i].unsubscribe();Oi(t,Yu,{enumerable:!1,value:!0})})}return[t,e]}function Zu(t){var e=tc;try{return tc=!1,[t(),tc]}finally{tc=e}}var f0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Um(`${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 Te(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},f0)}var m0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(oa(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];oa(n)&&(n=n());let a=bn(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(oa(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=bn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===yo||e===Ys)return!1;for(let i of t.props)if(oa(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){oa(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Kr(...t){return new Proxy({props:t},m0)}function eg(t){return t.ctx?.d??!1}function m(t,e,i,o){var n=(i&1)!==0,a=!Cr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,c;s?[c,l]=Zu(()=>t[e]):c=t[e];var p=yo in t||Ys in t,_=s&&(bn(t,e)?.set??(p&&e in t&&(W=>t[e]=W)))||void 0,u=o,$=!0,w=!1,x=()=>(w=!0,$&&($=!1,d?u=vt(o):u=o),u);c===void 0&&o!==void 0&&(_&&a&&Fm(e),c=x(),_&&_(c));var C;if(a)C=()=>{var W=t[e];return W===void 0?x():($=!0,w=!1,W)};else{var T=(n?v:lr)(()=>t[e]);T.f|=131072,C=()=>{var W=r(T);return W!==void 0&&(u=void 0),W===void 0?u:W}}if((i&4)===0)return C;if(_){var I=t.$$legacy;return function(W,K){return arguments.length>0?((!a||!K||I||l)&&_(K?C():W),W):C()}}var A=!1,L=!1,E=Ur(c),N=v(()=>{var W=C(),K=r(E);return A?(A=!1,L=!0,K):(L=!1,E.v=W)});return s&&r(N),n||(N.equals=fs),function(W,K){if(el!==null&&(A=L,C(),r(E)),arguments.length>0){let Z=K?r(N):a&&s?ce(W):W;if(!N.equals(Z)){if(A=!0,B(E,Z),w&&u!==void 0&&(u=Z),eg(N))return W;vt(()=>r(N))}return W}return eg(N)?N.v:r(N)}}var v0;typeof HTMLElement=="function"&&(v0=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return a=>{let s=document.createElement("slot");n!=="default"&&(s.name=n),b(a,s)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=g0(this);for(let n of this.$$s)n in o&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),i.default=!0):i[n]=e(n));for(let n of this.attributes){let a=this.$$g_p(n.name);a in this.$$d||(this.$$d[a]=Xu(a,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Rv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Qd(()=>{Zi(()=>{this.$$r=!0;for(let n of su(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let a=Xu(n,this.$$d[n],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,a)}this.$$r=!1})});for(let n in this.$$l)for(let a of this.$$l[n]){let s=this.$$c.$on(n,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Xu(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return su(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Xu(t,e,i,o){let n=i[t]?.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;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 g0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var tg="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(tg);import{clientChecker as fm}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-core";import{noop as Yh,safeStorage as tx,throttleFn as ix}from"@vkontakte/videoplayer-shared";import{SeekAction as ox}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as _0,fillWithDefault as b0,VideoQuality as ig}from"@vkontakte/videoplayer-shared";var $0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:_0.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:ig.Q_480P,highQualityLimit:ig.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},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}},og=t=>b0(t,$0),ng=t=>Cs("ui-config",t),Vt=()=>Ss("ui-config");var _l="vk_player_debug_panel_opened";var rg="videoplayer",ag="videoplayer";var Pr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},sg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),lg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),dg=new Set(["ShiftRight","ShiftLeft"]);var cg=["TIMELINE"],bl=[...cg,"GRAPH_BUTTON"],Ju=[...cg,"PLAY_BUTTON"],$l=[...bl,"PLAY_BUTTON"];var Ar=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Ar||{}),Ba={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as ug,VERSION as y0}from"@vkontakte/videoplayer-shared";import{VERSION as x0}from"@vkontakte/videoplayer-core";import{VERSION as w0}from"@vkontakte/videoplayer-statistics";var ic="prod",Ms="1.1.64-beta.0";var Da=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var pg=Symbol("storeContext"),fg=Symbol("microStoresContext"),mg=(t,e)=>{Cs(pg,t),Cs(fg,e),ic==="dev"&&(window.app={store:t,microStores:e})},$e=()=>{let t=Ss(pg);return ug(t,"Store context is empty!"),t},Wi=()=>{let t=Ss(fg);return ug(t,"MicroStores context is empty!"),t},qt=(t,e)=>nc(t,t.getValue(),e),nc=(t,e,i)=>Wn(e,o=>{let n=t.subscribe(a=>{o(a),i?.(a)});return()=>n.unsubscribe()}),vg=(t,e,i,o)=>{let n=t.info,{width:a,height:s}=be(i.ui.playerSize),d=n.throughputEstimation$.getValue()?.toFixed(0)??0,l=n.rttEstimation$.getValue()?.toFixed(0)??0,c=n.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Ms} (core: ${x0}, stat: ${w0}, shared: ${y0})`,_=be(i.state.errorLog$),u=_.length?`
49
- `+_.map((I,A)=>{let L=`${A}) Type: ${I.id}
50
- `,E=`Message: ${I.message} (${I.thrown})
51
- `,N=`Trace: ${I.thrown?.stack}
52
- `;return L+E+N}).join(`
53
- `):void 0,$=i.state.isAudioDisabled?"disabled":be(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${w?.codec??""}`+(w?.hdr?" (HDR)":"")),x&&C.push(`Audio: ${x?.codec??""}`+(x?.language?` (${x.language})`:""));let T={Version:p,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:be(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:`${c} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:$,Position:`${be(i.state.positionExact$)}s`,State:`${be(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${a}x${s}`,URL:window.location.href,Errors:u};return Object.entries(T).filter(([I,A])=>A!==void 0).map(([I,A])=>`${I}: ${A}`).join(`
54
- `)},gg=(t,e,i)=>{let o=t.info,{width:n,height:a}=be(i.ui.playerSize),s={version:Ms,viewport:`${n}x${a}`,volume:Math.round(be(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 c=o.intrinsicVideoSize$.getValue();c&&(s.videoSize=`${c.width}x${c.height}`);let p=o.currentBuffer$.getValue(),_=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();p&&(_&&u?s.buffer=p.end-u:s.buffer=Math.max(p.end-be(i.state.positionExact$),0));let $=o.throughputEstimation$.getValue();$&&(s.speed=$);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let x=o.liveLatency$.getValue();x&&(s.liveLatency=x);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let I=be(i.vsid);typeof I=="string"&&(s.vsid=I);let A=t.info.currentVideoStream$.getValue()?.codec;A&&(s.videoCodec=A);let L=t.info.currentAudioStream$.getValue()?.codec;L&&(s.audioCodec=L),t.info.currentVideoStream$.getValue()?.hdr&&(s.hdr=!0);let N=t.info.currentAudioStream$.getValue()?.language;return N&&(s.audioLanguage=N),s},hg=(t,e)=>Da(t,e,"mp4"),_g=t=>!t.type,bg=t=>!!t.type,$g=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},oc=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 ip,safeStorage as Ji}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var yg="vk_player_prefer_traffic_saving_enabled",xg="vk_player_preferred_volume",wg="vk_player_prefer_volume_mute",op="vk_player_preferred_quality",ep="vk_player_preferred_default_quality_settings",tp="vk_player_preferred_quality_settings_by_video",Sg="vk_player_preferred_stream_language",Cg="vk_player_preferred_rate",kg="vk_player_preferred_autoplay_next",Tg=t=>t>1?1:t<0?0:t,np=t=>Ji.set(xg,Tg(t).toString(10)),rc=()=>{let t=Ji.get(xg);return ip(t)?void 0:Tg(parseFloat(t))},rp=(t,e)=>Ji.set(op,JSON.stringify({videoId:t,value:e})),xl=()=>Ji.remove(op),ap=t=>{let e=Ji.get(op);if(ip(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){xl();return}return o},sp=(t,e)=>{e?Ji.set(t,"true"):Ji.remove(t)},lp=t=>Ji.get(t)==="true",dp=t=>sp(wg,t),Ig=()=>lp(wg),yl=t=>sp(yg,t),cp=()=>lp(yg),Eg=()=>Ji.get(Sg),up=t=>Ji.set(Sg,t),Pg=t=>Ji.set(Cg,JSON.stringify({rate:t})),Ag=()=>{let t=Ji.get(Cg);if(ip(t))return;let{rate:e}=JSON.parse(t);return e},Mg=t=>sp(kg,t),Lg=()=>lp(kg),S0=()=>{let t=p=>{Ji.set(ep,JSON.stringify(p))},e=()=>{try{let p=Ji.get(ep);return p?JSON.parse(p):null}catch{return null}},i=()=>{try{let p=Ji.get(tp);return p?JSON.parse(p):null}catch{return null}},o=p=>{Ji.set(tp,JSON.stringify(p))},n=p=>{c(p);let _=p?i():null;if(_&&_?.videoId===p)return{..._,appliesTo:"to-video"};_&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Ji.remove(tp)},s=()=>{Ji.remove(ep)},d=(p,_="as-default")=>{p.type==="exact_quality"?o(p):_==="as-default"?t(p):o(p)},l=p=>{let _=n(p);if(_){switch(_.type){case"traffic_saving":yl(!0);break;case"exact_quality":rp(p,_.quality)}a(),s()}},c=p=>{let _=ap(p);if(_){o({type:"exact_quality",videoId:p,quality:_});return}cp()&&t({type:"traffic_saving",videoId:p}),yl(!1),xl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Vg,migrateSettingsToLegacyWay:Rg,savePreferredQualitySettings:ac,savePreferredDefaultQualitySettings:pP,removePreferredQualitySettingsByVideo:fP,getPreferredDefaultQualitySettings:sc}=S0();import{PlaybackState as Qh}from"@vkontakte/videoplayer-core";var C0=ge('<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=Te(e,["$$slots","$$events","$$legacy","children"]);var o=C0();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),b(t,o)}import{isNullable as Dg,InterfaceLanguage as Og}from"@vkontakte/videoplayer-shared";var k0={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}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",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_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",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",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_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",aria_label_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",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_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\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_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\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_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",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 Tt=null;function ll(t){Tt=t}var Wo=null;function dl(t){Wo=t}function ws(t){return Lu("getContext").get(t)}function Ss(t,e){let i=Lu("setContext");return Ce&&gt(()=>Pu(e,null,!0)),i.set(t,e),e}function ul(){return Lu("getAllContexts")}function O(t,e=!1,i){var o=Tt={p:Tt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Cr&&!e&&(Tt.l={s:null,u:null,r1:[],r2:Ii(!1)}),qo(()=>{o.d=!0}),Ce&&(Tt.function=i,Wo=i)}function H(t){let e=Tt;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=bt,o=Pt;e.e=null;try{for(var n=0;n<s.length;n++){var a=s[n];Oi(a.effect),eo(a.reaction),rn(a.fn)}}finally{Oi(i),eo(o)}}Tt=e.p,Ce&&(Wo=e.p?.function??null),e.m=!0}return t||{}}function Tr(){return!Cr||Tt!==null&&Tt.l===null}function Lu(t){return Tt===null&&xs(t),Tt.c??=new Map(T1(Tt)||void 0)}function T1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var I1=/\r/g;function xv(t){t=t.replace(I1,"");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 E1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Sv(t){return E1.includes(t)}var P1=["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 A1={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 Cv(t){return t=t.toLowerCase(),A1[t]??t}var Hw=[...P1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var M1=["touchstart","touchmove"];function kv(t){return M1.includes(t)}var L1=["textarea","script","style","title"];function Tv(t){return L1.includes(t)}function Vu(t){return t?.replace(/\//g,"/\u200B")}var Iv=new Map;function Ev(t,e){var i=Iv.get(t);i||(i=new Set,Iv.set(t,i)),i.add(e)}function Ru(t,e){if(e){let i=document.body;t.autofocus=!0,Do(()=>{document.activeElement===i&&t.focus()})}}function pl(t){var e=Pt,i=bt;eo(null),Oi(null);try{return t()}finally{eo(e),Oi(i)}}var Bu=new Set,Zd=new Set;function Aa(t){if(!Ke)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 Nu(t,e,i,o={}){function n(a){if(o.capture||Cs.call(e,a),!a.cancelBubble)return pl(()=>i?.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Do(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function _t(t,e,i,o,n){var a={capture:o,passive:n},s=Nu(t,e,i,a);(e===document.body||e===window||e===document)&&qo(()=>{e.removeEventListener(t,s,a)})}function it(t){for(var e=0;e<t.length;e++)Bu.add(t[e]);for(var i of Zd)i(t)}function Cs(t){var e=this,i=e.ownerDocument,o=t.type,n=t.composedPath?.()||[],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 c=n.indexOf(e);if(c===-1)return;l<=c&&(s=l)}if(a=n[s]||t.target,a!==e){Di(t,"currentTarget",{configurable:!0,get(){return a||i}});var u=Pt,b=bt;eo(null),Oi(null);try{for(var p,$=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var x=a["__"+o];if(x!=null&&(!a.disabled||t.target===a))if(sr(x)){var[k,...T]=x;k.apply(a,[t,...T])}else x.call(a,t)}catch(C){p?$.push(C):p=C}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let C of $)queueMicrotask(()=>{throw C});throw p}}finally{t.__root=e,delete t.currentTarget,eo(u),Oi(b)}}}var R1;function Pv(){R1=void 0}function ks(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function oo(t,e){var i=bt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ke)return oo(ut,null),ut;n===void 0&&(n=ks(a?t:"<!>"+t),i||(n=ni(n)));var s=o||il?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=ni(s),l=s.lastChild;oo(d,l)}else oo(s,s);return s}}function _e(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ke)return oo(ut,null),ut;if(!s){var d=ks(a),l=ni(d);if(n)for(s=document.createDocumentFragment();ni(l);)s.appendChild(ni(l));else s=ni(l)}var c=s.cloneNode(!0);if(n){var u=ni(c),b=c.lastChild;oo(u,b)}else oo(c,c);return c}}function Ir(t=""){if(!Ke){var e=Uo(t+"");return oo(e,e),e}var i=ut;return i.nodeType!==3&&(i.before(i=Uo()),oi(i)),oo(i,i),i}function Oe(){if(Ke)return oo(ut,null),ut;var t=document.createDocumentFragment(),e=document.createComment(""),i=Uo();return t.append(e,i),oo(e,i),t}function _(t,e){if(Ke){bt.nodes_end=ut,$i();return}t!==null&&t.before(e)}var fl=!0;function Xd(t){fl=t}function pe(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function qr(t,e){return Mv(t,e)}function Ou(t,e){Od(),e.intro=e.intro??!1;let i=e.target,o=Ke,n=ut;try{for(var a=ni(i);a&&(a.nodeType!==8||a.data!==ta);)a=co(a);if(!a)throw Nr;Fi(!0),oi(a),$i();let s=Mv(t,{...e,anchor:a});if(ut===null||ut.nodeType!==8||ut.data!==ya)throw Ta(),Nr;return Fi(!1),s}catch(s){if(s===Nr)return e.recover===!1&&Hm(),Od(),ol(i),Fi(!1),qr(t,e);throw s}finally{Fi(o),oi(n),Pv()}}var Ts=new Map;function Mv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Od();var d=new Set,l=b=>{for(var p=0;p<b.length;p++){var $=b[p];if(!d.has($)){d.add($);var w=kv($);e.addEventListener($,Cs,{passive:w});var x=Ts.get($);x===void 0?(document.addEventListener($,Cs,{passive:w}),Ts.set($,1)):Ts.set($,x+1)}}};l(Zs(Bu)),Zd.add(l);var c=void 0,u=bv(()=>{var b=i??e.appendChild(Uo());return Ei(()=>{if(a){O({});var p=Tt;p.c=a}n&&(o.$$events=n),Ke&&oo(b,null),fl=s,c=t(b,o)||{},fl=!0,Ke&&(bt.nodes_end=ut),a&&H()}),()=>{for(var p of d){e.removeEventListener(p,Cs);var $=Ts.get(p);--$===0?(document.removeEventListener(p,Cs),Ts.delete(p)):Ts.set(p,$)}Zd.delete(l),b!==i&&b.parentNode?.removeChild(b)}});return Du.set(c,u),c}var Du=new WeakMap;function Ma(t,e){let i=Du.get(t);return i?(Du.delete(t),i(e)):(Ce&&iv(),Promise.resolve())}function L(t,e,[i,o]=[0,0]){Ke&&i===0&&$i();var n=t,a=null,s=null,d=mi,l=i>0?65536:0,c=!1;let u=(p,$=!0)=>{c=!0,b($,p)},b=(p,$)=>{if(d===(d=p))return;let w=!1;if(Ke&&o!==-1){if(i===0){let k=n.data;k===ta?o=0:k===$a?o=1/0:(o=parseInt(k.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(n=hs(),oi(n),Fi(!1),w=!0,o=-1)}d?(a?Wr(a):$&&(a=Ei(()=>$(n))),s&&an(s,()=>{s=null})):(s?Wr(s):$&&(s=Ei(()=>$(n,[i+1,o]))),a&&an(a,()=>{a=null})),w&&Fi(!0)};Ui(()=>{c=!1,e(u),c||b(null,null)},l),Ke&&(n=ut)}function La(t,e,i){Ke&&$i();var o=t,n=mi,a,s=Tr()?Vm:us;Ui(()=>{s(n,n=e())&&(a&&an(a),a=Ei(()=>i(o)))}),Ke&&(o=ut)}var aa=null;function Uu(t){aa=t}function ml(t,e){return e}function O1(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Gd(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;ol(l),l.append(i),o.clear(),ra(t,e[0].prev,e[a-1].next)}Eu(n,()=>{for(var c=0;c<a;c++){var u=e[c];d||(o.delete(u.k),ra(t,u.prev,u.next)),Hi(u.e,!d)}})}function ci(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 c=t;s=Ke?oi(ni(c)):c.appendChild(Uo())}Ke&&$i();var u=null,b=!1,p=cr(()=>{var $=i();return sr($)?$:$==null?[]:Zs($)});Ui(()=>{var $=r(p),w=$.length;if(b&&w===0)return;b=w===0;let x=!1;if(Ke){var k=s.data===$a;k!==(w===0)&&(s=hs(),oi(s),Fi(!1),x=!0)}if(Ke){for(var T=null,C,R=0;R<w;R++){if(ut.nodeType===8&&ut.data===ya){s=ut,x=!0,Fi(!1);break}var A=$[R],E=o(A,R);C=Rv(ut,d,T,null,A,E,R,n,e,i),d.items.set(E,C),T=C}w>0&&oi(hs())}Ke||H1($,d,s,n,e,o,i),a!==null&&(w===0?u?Wr(u):u=Ei(()=>a(s)):u!==null&&an(u,()=>{u=null})),x&&Fi(!0),r(p)}),Ke&&(s=ut)}function H1(t,e,i,o,n,a,s){var d=(n&8)!==0,l=(n&3)!==0,c=t.length,u=e.items,b=e.first,p=b,$,w=null,x,k=[],T=[],C,R,A,E;if(d)for(E=0;E<c;E+=1)C=t[E],R=a(C,E),A=u.get(R),A!==void 0&&(A.a?.measure(),(x??=new Set).add(A));for(E=0;E<c;E+=1){if(C=t[E],R=a(C,E),A=u.get(R),A===void 0){var B=p?p.e.nodes_start:i;w=Rv(B,e,w,w===null?e.first:w.next,C,R,E,o,n,s),u.set(R,w),k=[],T=[],p=w.next;continue}if(l&&F1(A,C,E,n),(A.e.f&8192)!==0&&(Wr(A.e),d&&(A.a?.unfix(),(x??=new Set).delete(A))),A!==p){if($!==void 0&&$.has(A)){if(k.length<T.length){var K=T[0],q;w=K.prev;var te=k[0],ne=k[k.length-1];for(q=0;q<k.length;q+=1)Lv(k[q],K,i);for(q=0;q<T.length;q+=1)$.delete(T[q]);ra(e,te.prev,ne.next),ra(e,w,te),ra(e,ne,K),p=K,w=ne,E-=1,k=[],T=[]}else $.delete(A),Lv(A,p,i),ra(e,A.prev,A.next),ra(e,A,w===null?e.first:w.next),ra(e,w,A),w=A;continue}for(k=[],T=[];p!==null&&p.k!==R;)(p.e.f&8192)===0&&($??=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}k.push(A),w=A,p=A.next}if(p!==null||$!==void 0){for(var ve=$===void 0?[]:Zs($);p!==null;)(p.e.f&8192)===0&&ve.push(p),p=p.next;var j=ve.length;if(j>0){var ge=(n&4)!==0&&c===0?i:null;if(d){for(E=0;E<j;E+=1)ve[E].a?.measure();for(E=0;E<j;E+=1)ve[E].a?.fix()}O1(e,ve,ge,u)}}d&&Do(()=>{if(x!==void 0)for(A of x)A.a?.apply()}),bt.first=e.first&&e.first.e,bt.last=w&&w.e}function F1(t,e,i,o){(o&1)!==0&&ms(t.v,e),(o&2)!==0?ms(t.i,i):t.i=i}function Rv(t,e,i,o,n,a,s,d,l,c){var u=aa,b=(l&1)!==0,p=(l&16)===0,$=b?p?Ur(n):Ii(n):n,w=(l&2)===0?s:Ii(s);Ce&&b&&($.debug=()=>{var k=typeof w=="number"?s:w.v;c()[k]});var x={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};aa=x;try{return x.e=Ei(()=>d(t,$,w,c),Ke),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{aa=u}}function Lv(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=co(a);n.before(a),a=s}}function ra(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 U1(t,e,i){if(!e||e===xv(String(i??"")))return;let o,n=t.__svelte_meta?.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:Wo?.[ii]&&(o=`in ${Wo[ii]}`),tv(Vu(o))}function vl(t,e,i,o,n){var a=t,s="",d;Ui(()=>{if(s===(s=e()??"")){Ke&&$i();return}d!==void 0&&(Hi(d),d=void 0),s!==""&&(d=Ei(()=>{if(Ke){for(var l=ut.data,c=$i(),u=c;c!==null&&(c.nodeType!==8||c.data!=="");)u=c,c=co(c);if(c===null)throw Ta(),Nr;Ce&&!n&&U1(c.parentNode,l,s),oo(ut,u),a=oi(c);return}var b=s+"";i?b=`<svg>${b}</svg>`:o&&(b=`<math>${b}</math>`);var p=ks(b);if((i||o)&&(p=ni(p)),oo(ni(p),p.lastChild),i||o)for(;ni(p);)a.before(ni(p));else a.before(p)}))})}function fe(t,e,...i){var o=t,n=ee,a;Ui(()=>{n!==(n=e())&&(a&&(Hi(a),a=null),Ce&&n==null&&Fm(),a=Ei(()=>n(o,...i)))},65536),Ke&&(o=ut)}function ui(t,e,i){Ke&&$i();var o=t,n,a;Ui(()=>{n!==(n=e())&&(a&&(an(a),a=null),n&&(a=Ei(()=>i(o,n))))},65536),Ke&&(o=ut)}function Va(t,e,i,o,n,a){let s=Ke;Ke&&$i();var d=Ce&&a&&Tt?.function[ii],l,c,u=null;Ke&&ut.nodeType===1&&(u=ut,$i());var b=Ke?ut:t,p,$=aa;Ui(()=>{let w=e()||null;var x=n?n():i||w==="svg"?su:null;if(w!==l){var k=aa;Uu($),p&&(w===null?an(p,()=>{p=null,c=null}):w===c?Wr(p):(Hi(p),Xd(!1))),w&&w!==c&&(p=Ei(()=>{if(u=Ke?u:x?document.createElementNS(x,w):document.createElement(w),Ce&&a&&(u.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),oo(u,u),o){Ke&&Tv(w)&&u.append(document.createComment(""));var T=Ke?ni(u):u.appendChild(Uo());Ke&&(T===null?Fi(!1):oi(T)),o(u,T)}bt.nodes_end=u,b.before(u)})),l=w,l&&(c=l),Xd(!0),Uu(k)}},65536),s&&(Fi(!0),oi(b))}var Wu;function Bv(t){return Wu=t.target,new zu(t)}var zu=class{#t;#e;constructor(e){var i=new Map,o=(a,s)=>{var d=Ur(s);return i.set(a,d),d};let n=new Proxy({...e.props||{},$$events:{}},{get(a,s){return r(i.get(s)??o(s,Reflect.get(a,s)))},has(a,s){return s===js?!0:(r(i.get(s)??o(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,d){return N(i.get(s)??o(s,d),d),Reflect.set(a,s,d)}});this.#e=(e.hydrate?Ou:qr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&$s(),this.#t=n.$$events;for(let a of Object.keys(this.#e))a==="$set"||a==="$destroy"||a==="$on"||Di(this,a,{get(){return this.#e[a]},set(s){this.#e[a]=s},enumerable:!0});this.#e.$set=a=>{Object.assign(n,a)},this.#e.$destroy=()=>{Ma(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...n)=>i.call(this,...n);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(n=>n!==o)}}$destroy(){this.#e.$destroy()}};function U(t,e){Do(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??Wu?.parentNode;if(!o?.querySelector("#"+e.hash)){let n=document.createElement("style");n.id=e.hash,n.textContent=e.code,o.appendChild(n),Ce&&Ev(e.hash,n)}})}function Nv(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=Nv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Dv(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Nv(t))&&(o&&(o+=" "),o+=e);return o}function gl(t){return typeof t=="object"?Dv(t):t??""}var Ov=[...`
48
+ \r\f\xA0\v\uFEFF`];function Fv(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||Ov.includes(o[s-1]))&&(d===o.length||Ov.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Hv(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 qu(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Uv(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(qu)),n&&l.push(...Object.keys(n).map(qu));var c=0,u=-1;let x=t.length;for(var b=0;b<x;b++){var p=t[b];if(d?p==="/"&&t[b-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[b+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&u===-1)u=b;else if(p===";"||b===x-1){if(u!==-1){var $=qu(t.substring(c,u).trim());if(!l.includes($)){p!==";"&&b++;var w=t.substring(c,b).trim();i+=" "+w+";"}}c=b+1,u=-1}}}}return o&&(i+=Hv(o)),n&&(i+=Hv(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function Z(t,e,i,o,n,a){var s=t.__className;if(Ke||s!==i){var d=Fv(i,o,a);(!Ke||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 c=!!a[l];(n==null||c!==!!n[l])&&t.classList.toggle(l,c)}return a}function Ku(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 et(t,e,i,o){var n=t.__style;if(Ke||n!==e){var a=Uv(e,o);(!Ke||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Ku(t,i?.[0],o[0]),Ku(t,i?.[1],o[1],"important")):Ku(t,i,o));return o}var Is=Symbol("class"),Es=Symbol("style"),qv=Symbol("is custom element"),Kv=Symbol("is html");function Qv(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Le(t,e,i,o){var n=Gv(t);if(Ke&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Y1(t,e,i??"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Em]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Yv(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function we(t,e,i,o,n=!1){var a=Gv(t),s=a[qv],d=!a[Kv];let l=Ke&&s;l&&Fi(!1);var c=e||{},u=t.tagName==="OPTION";for(var b in e)b in i||(i[b]=null);i.class?i.class=gl(i.class):(o||i[Is])&&(i.class=null),i[Es]&&(i.style??=null);var p=Yv(t);for(let A in i){let E=i[A];if(u&&A==="value"&&E==null){t.value=t.__value="",c[A]=E;continue}if(A==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";Z(t,$,E,o,e?.[Is],i[Is]),c[A]=E,c[Is]=i[Is];continue}if(A==="style"){et(t,E,e?.[Es],i[Es]),c[A]=E,c[Es]=i[Es];continue}var w=c[A];if(E!==w){c[A]=E;var x=A[0]+A[1];if(x!=="$$")if(x==="on"){let B={},K="$$"+A,q=A.slice(2);var k=Sv(q);if(wv(q)&&(q=q.slice(0,-7),B.capture=!0),!k&&w){if(E!=null)continue;t.removeEventListener(q,c[K],B),c[K]=null}if(E!=null)if(k)t[`__${q}`]=E,it([q]);else{let te=function(ne){c[A].call(this,ne)};var R=te;c[K]=Nu(q,t,te,B)}else k&&(t[`__${q}`]=void 0)}else if(A==="style")Le(t,A,E);else if(A==="autofocus")Ru(t,!!E);else if(!s&&(A==="__value"||A==="value"&&E!=null))t.value=t.__value=E;else if(A==="selected"&&u)Qv(t,E);else{var T=A;d||(T=Cv(T));var C=T==="defaultValue"||T==="defaultChecked";if(E==null&&!s&&!C)if(a[A]=null,T==="value"||T==="checked"){let B=t,K=e===void 0;if(T==="value"){let q=B.defaultValue;B.removeAttribute(T),B.defaultValue=q,B.value=B.__value=K?q:null}else{let q=B.defaultChecked;B.removeAttribute(T),B.defaultChecked=q,B.checked=K?q:!1}}else t.removeAttribute(A);else C||p.includes(T)&&(s||typeof E!="string")?t[T]=E:typeof E!="function"&&Le(t,T,E,n)}}}return l&&Fi(!0),c}function Gv(t){return t.__attributes??={[qv]:t.nodeName.includes("-"),[Kv]:t.namespaceURI===Tm}}var zv=new Map;function Yv(t){var e=zv.get(t.nodeName);if(e)return e;zv.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Ld(o);for(var a in i)i[a].set&&e.push(a);o=Or(o)}return e}function Y1(t,e,i){Ce&&(e==="srcset"&&j1(t,i)||Qu(t.getAttribute(e)??"",i)||ev(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Qu(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Wv(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function j1(t,e){var i=Wv(t.srcset),o=Wv(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Qu(i[s][0],n)||Qu(n,i[s][0])))}var Z1=Md?()=>performance.now():()=>Date.now(),pr={tick:t=>(Md?requestAnimationFrame:ee)(t),now:()=>Z1(),tasks:new Set};function jv(){let t=pr.now();pr.tasks.forEach(e=>{e.c(t)||(pr.tasks.delete(e),e.f())}),pr.tasks.size!==0&&pr.tick(jv)}function Zv(t){let e;return pr.tasks.size===0&&pr.tick(jv),{promise:new Promise(i=>{pr.tasks.add(e={c:t,f:i})}),abort(){pr.tasks.delete(e)}}}function Jd(t,e){pl(()=>{t.dispatchEvent(new CustomEvent(e))})}function t0(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 Xv(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=t0(n.trim());e[s]=a.trim()}return e}var i0=t=>t;function Yu(t,e,i,o){var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",c,u=e.inert,b=e.style.overflow,p,$;function w(){var R=Pt,A=bt;eo(null),Oi(null);try{return c??=i()(e,o?.()??{},{direction:l})}finally{eo(R),Oi(A)}}var x={is_global:d,in(){if(e.inert=u,!n){$?.abort(),$?.reset?.();return}a||p?.abort(),Jd(e,"introstart"),p=Gu(e,w(),$,1,()=>{Jd(e,"introend"),p?.abort(),p=c=void 0,e.style.overflow=b})},out(R){if(!a){R?.(),c=void 0;return}e.inert=!0,Jd(e,"outrostart"),$=Gu(e,w(),p,0,()=>{Jd(e,"outroend"),R?.()})},stop:()=>{p?.abort(),$?.abort()}},k=bt;if((k.transitions??=[]).push(x),n&&fl){var T=d;if(!T){for(var C=k.parent;C&&(C.f&65536)!==0;)for(;(C=C.parent)&&(C.f&16)===0;);T=!C||(C.f&32768)!==0}T&&rn(()=>{gt(()=>x.in())})}}function Gu(t,e,i,o,n){var a=o===1;if(ia(e)){var s,d=!1;return Do(()=>{if(!d){var k=e({direction:a?"in":"out"});s=Gu(t,k,i,o,n)}}),{abort:()=>{d=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i?.deactivate(),!e?.duration)return n(),{abort:ee,deactivate:ee,reset:ee,t:()=>o};let{delay:l=0,css:c,tick:u,easing:b=i0}=e;var p=[];if(a&&i===void 0&&(u&&u(0,1),c)){var $=Xv(c(0,1));p.push($,$)}var w=()=>1-o,x=t.animate(p,{duration:l});return x.onfinish=()=>{var k=i?.t()??1-o;i?.abort();var T=o-k,C=e.duration*Math.abs(T),R=[];if(C>0){var A=!1;if(c)for(var E=Math.ceil(C/16.666666666666668),B=0;B<=E;B+=1){var K=k+T*b(B/E),q=Xv(c(K,1-K));R.push(q),A||=q.overflow==="hidden"}A&&(t.style.overflow="hidden"),w=()=>{var te=x.currentTime;return k+T*b(te/C)},u&&Zv(()=>{if(x.playState!=="running")return!1;var te=w();return u(te,1-te),!0})}x=t.animate(R,{duration:C,fill:"forwards"}),x.onfinish=()=>{w=()=>o,u?.(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=ee)},deactivate:()=>{n=ee},reset:()=>{o===0&&u?.(1,0)},t:()=>w()}}var ju=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var n=this.#t.get(e);n.delete(i),n.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var r0=new ju({box:"border-box"});function Er(t,e,i){var o=r0.observe(t,()=>i(t[e]));rn(()=>(gt(()=>i(t[e])),o))}function Jv(t,e){return t===e||t?.[yo]===e}function dt(t={},e,i,o){return rn(()=>{var n,a;return io(()=>{n=a,a=o?.()||[],gt(()=>{t!==i(...a)&&(e(t,...a),n&&Jv(i(...n),t)&&e(null,...n))})}),()=>{Do(()=>{a&&Jv(i(...a),t)&&e(null,...a)})}}),t}function fr(t=!1){let e=Tt,i=e.l.u;if(!i)return;let o=()=>qd(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let c in l)l[c]!==a[c]&&(a[c]=l[c],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&ys(()=>{eg(e,o),oa(i.b)}),He(()=>{let n=gt(()=>i.m.map(Mm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&He(()=>{eg(e,o),oa(i.a)})}function eg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ce){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Wm(e)},set:o=>{i=o}})}};s0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var s0;function At(t){Tt===null&&xs("onMount"),Cr&&Tt.l!==null?a0(Tt).m.push(t):He(()=>{let e=gt(t);if(typeof e=="function")return e})}function sn(t){Tt===null&&xs("onDestroy"),At(()=>()=>gt(t))}function a0(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function hl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ee;let o=gt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ps=[];function Qn(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=ee){let i=null,o=new Set;function n(d){if(us(t,d)&&(t=d,i)){let l=!Ps.length;for(let c of o)c[1](),Ps.push(c,t);if(l){for(let c=0;c<Ps.length;c+=2)Ps[c][0](Ps[c+1]);Ps.length=0}}}function a(d){n(d(t))}function s(d,l=ee){let c=[d,l];return o.add(c),o.size===1&&(i=e(n,a)||ee),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function ri(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 Qn(i,(s,d)=>{let l=!1,c=[],u=0,b=ee,p=()=>{if(u)return;b();let w=e(o?c[0]:c,s,d);a?s(w):b=typeof w=="function"?w:ee},$=n.map((w,x)=>hl(w,k=>{c[x]=k,u&=~(1<<x),l&&p()},()=>{u|=1<<x}));return l=!0,p(),function(){oa($),b(),l=!1}})}function $e(t){let e;return hl(t,i=>e=i)(),e}var tc=!1,Zu=Symbol();function y(t,e,i){let o=i[e]??={store:null,source:Ur(void 0),unsubscribe:ee};if(o.store!==t&&!(Zu in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=ee;else{var n=!0;o.unsubscribe=hl(t,a=>{n?o.source.v=a:N(o.source,a)}),n=!1}return t&&Zu in i?$e(t):r(o.source)}function Ve(){let t={};function e(){qo(()=>{for(var i in t)t[i].unsubscribe();Di(t,Zu,{enumerable:!1,value:!0})})}return[t,e]}function Xu(t){var e=tc;try{return tc=!1,[t(),tc]}finally{tc=e}}var m0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ce&&zm(`${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 ke(t,e,i){return new Proxy(Ce?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},m0)}var v0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ia(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];ia(n)&&(n=n());let a=yn(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(ia(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=yn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===yo||e===js)return!1;for(let i of t.props)if(ia(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ia(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Kr(...t){return new Proxy({props:t},v0)}function tg(t){return t.ctx?.d??!1}function m(t,e,i,o){var n=(i&1)!==0,a=!Cr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,c;s?[c,l]=Xu(()=>t[e]):c=t[e];var u=yo in t||js in t,b=s&&(yn(t,e)?.set??(u&&e in t&&(K=>t[e]=K)))||void 0,p=o,$=!0,w=!1,x=()=>(w=!0,$&&($=!1,d?p=gt(o):p=o),p);c===void 0&&o!==void 0&&(b&&a&&Um(e),c=x(),b&&b(c));var k;if(a)k=()=>{var K=t[e];return K===void 0?x():($=!0,w=!1,K)};else{var T=(n?v:cr)(()=>t[e]);T.f|=131072,k=()=>{var K=r(T);return K!==void 0&&(p=void 0),K===void 0?p:K}}if((i&4)===0)return k;if(b){var C=t.$$legacy;return function(K,q){return arguments.length>0?((!a||!q||C||l)&&b(q?k():K),K):k()}}var R=!1,A=!1,E=Ur(c),B=v(()=>{var K=k(),q=r(E);return R?(R=!1,A=!0,q):(A=!1,E.v=K)});return s&&r(B),n||(B.equals=ps),function(K,q){if(el!==null&&(R=A,k(),r(E)),arguments.length>0){let te=q?r(B):a&&s?le(K):K;if(!B.equals(te)){if(R=!0,N(E,te),w&&p!==void 0&&(p=te),tg(B))return K;gt(()=>r(B))}return K}return tg(B)?B.v:r(B)}}var g0;typeof HTMLElement=="function"&&(g0=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return a=>{let s=document.createElement("slot");n!=="default"&&(s.name=n),_(a,s)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=h0(this);for(let n of this.$$s)n in o&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),i.default=!0):i[n]=e(n));for(let n of this.attributes){let a=this.$$g_p(n.name);a in this.$$d||(this.$$d[a]=Ju(a,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Bv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Qd(()=>{io(()=>{this.$$r=!0;for(let n of lu(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let a=Ju(n,this.$$d[n],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,a)}this.$$r=!1})});for(let n in this.$$l)for(let a of this.$$l[n]){let s=this.$$c.$on(n,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ju(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return lu(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Ju(t,e,i,o){let n=i[t]?.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;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 h0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var ig="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ig);import{clientChecker as mm}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-core";import{noop as Zh,safeStorage as tx,throttleFn as ix}from"@vkontakte/videoplayer-shared";import{SeekAction as ox}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as b0,fillWithDefault as $0,VideoQuality as og}from"@vkontakte/videoplayer-shared";var y0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:b0.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:og.Q_480P,highQualityLimit:og.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}},ng=t=>$0(t,y0),rg=t=>Ss("ui-config",t),Mt=()=>ws("ui-config");var _l="vk_player_debug_panel_opened";var ag="videoplayer",sg="videoplayer";var Pr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},lg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),dg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),cg=new Set(["ShiftRight","ShiftLeft"]);var ug=["TIMELINE"],bl=[...ug,"GRAPH_BUTTON"],ep=[...ug,"PLAY_BUTTON"],$l=[...bl,"PLAY_BUTTON"];var Ar=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Ar||{}),Ba={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as pg,VERSION as x0}from"@vkontakte/videoplayer-shared";import{VERSION as w0}from"@vkontakte/videoplayer-core";import{VERSION as S0}from"@vkontakte/videoplayer-statistics";var ic="prod",As="1.1.64-dev.095ddfcb.0";var Na=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var fg=Symbol("storeContext"),mg=Symbol("microStoresContext"),vg=(t,e)=>{Ss(fg,t),Ss(mg,e),ic==="dev"&&(window.app={store:t,microStores:e})},ye=()=>{let t=ws(fg);return pg(t,"Store context is empty!"),t},zi=()=>{let t=ws(mg);return pg(t,"MicroStores context is empty!"),t},Ut=(t,e)=>nc(t,t.getValue(),e),nc=(t,e,i)=>Qn(e,o=>{let n=t.subscribe(a=>{o(a),i?.(a)});return()=>n.unsubscribe()}),gg=(t,e,i,o)=>{let n=t.info,{width:a,height:s}=$e(i.ui.playerSize),d=n.throughputEstimation$.getValue()?.toFixed(0)??0,l=n.rttEstimation$.getValue()?.toFixed(0)??0,c=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${As} (core: ${w0}, stat: ${S0}, shared: ${x0})`,b=$e(i.state.errorLog$),p=b.length?`
49
+ `+b.map((A,E)=>{let B=`${E}) Type: ${A.id}
50
+ `,K=`Message: ${A.message} (${A.thrown})
51
+ `,q=`Trace: ${A.thrown?.stack}
52
+ `;return B+K+q}).join(`
53
+ `):void 0,$=i.state.isAudioDisabled?"disabled":$e(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),k=[];w&&k.push(`Video: ${w?.codec??""}`+(w?.hdr?" (HDR)":"")),x&&k.push(`Audio: ${x?.codec??""}`+(x?.language?` (${x.language})`:""));let T=n.currentQuality$.getValue(),C="";if(T){let A=n.availableQualitiesFps$.getValue()[T];C=A?`${A}fps`:""}let R={Version:u,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:$e(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:k.join(", "),Quality:`${c} ${T} ${C}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:$,Position:`${$e(i.state.positionExact$)}s`,State:`${$e(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${a}x${s}`,URL:window.location.href,Errors:p};return Object.entries(R).filter(([A,E])=>E!==void 0).map(([A,E])=>`${A}: ${E}`).join(`
54
+ `)},hg=(t,e,i)=>{let o=t.info,{width:n,height:a}=$e(i.ui.playerSize),s={version:As,viewport:`${n}x${a}`,volume:Math.round($e(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 c=o.intrinsicVideoSize$.getValue();c&&(s.videoSize=`${c.width}x${c.height}`);let u=o.currentBuffer$.getValue(),b=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();u&&(b&&p?s.buffer=u.end-p:s.buffer=Math.max(u.end-$e(i.state.positionExact$),0));let $=o.throughputEstimation$.getValue();$&&(s.speed=$);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let x=o.liveLatency$.getValue();x&&(s.liveLatency=x);let k=o.currentVideoSegmentLength$.getValue();k&&(s.currentVideoSegmentLength=k);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let C=$e(i.vsid);typeof C=="string"&&(s.vsid=C);let R=t.info.currentVideoStream$.getValue()?.codec;R&&(s.videoCodec=R);let A=t.info.currentAudioStream$.getValue()?.codec;A&&(s.audioCodec=A),t.info.currentVideoStream$.getValue()?.hdr&&(s.hdr=!0);let B=t.info.currentAudioStream$.getValue()?.language;return B&&(s.audioLanguage=B),s},_g=(t,e)=>Na(t,e,"mp4"),bg=t=>!t.type,$g=t=>!!t.type,yg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},oc=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 op,safeStorage as no}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var xg="vk_player_prefer_traffic_saving_enabled",wg="vk_player_preferred_volume",Sg="vk_player_prefer_volume_mute",np="vk_player_preferred_quality",tp="vk_player_preferred_default_quality_settings",ip="vk_player_preferred_quality_settings_by_video",Cg="vk_player_preferred_stream_language",kg="vk_player_preferred_rate",Tg="vk_player_preferred_autoplay_next",Ig=t=>t>1?1:t<0?0:t,rp=t=>no.set(wg,Ig(t).toString(10)),rc=()=>{let t=no.get(wg);return op(t)?void 0:Ig(parseFloat(t))},ap=(t,e)=>no.set(np,JSON.stringify({videoId:t,value:e})),xl=()=>no.remove(np),sp=t=>{let e=no.get(np);if(op(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){xl();return}return o},lp=(t,e)=>{e?no.set(t,"true"):no.remove(t)},dp=t=>no.get(t)==="true",cp=t=>lp(Sg,t),Eg=()=>dp(Sg),yl=t=>lp(xg,t),up=()=>dp(xg),Pg=()=>no.get(Cg),pp=t=>no.set(Cg,t),Ag=t=>no.set(kg,JSON.stringify({rate:t})),Mg=()=>{let t=no.get(kg);if(op(t))return;let{rate:e}=JSON.parse(t);return e},Lg=t=>lp(Tg,t),Vg=()=>dp(Tg),C0=()=>{let t=u=>{no.set(tp,JSON.stringify(u))},e=()=>{try{let u=no.get(tp);return u?JSON.parse(u):null}catch{return null}},i=()=>{try{let u=no.get(ip);return u?JSON.parse(u):null}catch{return null}},o=u=>{no.set(ip,JSON.stringify(u))},n=u=>{c(u);let b=u?i():null;if(b&&b?.videoId===u)return{...b,appliesTo:"to-video"};b&&a();let p=e();return p?{...p,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{no.remove(ip)},s=()=>{no.remove(tp)},d=(u,b="as-default")=>{u.type==="exact_quality"?o(u):b==="as-default"?t(u):o(u)},l=u=>{let b=n(u);if(b){switch(b.type){case"traffic_saving":yl(!0);break;case"exact_quality":ap(u,b.quality)}a(),s()}},c=u=>{let b=sp(u);if(b){o({type:"exact_quality",videoId:u,quality:b});return}up()&&t({type:"traffic_saving",videoId:u}),yl(!1),xl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Rg,migrateSettingsToLegacyWay:Bg,savePreferredQualitySettings:ac,savePreferredDefaultQualitySettings:pP,removePreferredQualitySettingsByVideo:fP,getPreferredDefaultQualitySettings:sc}=C0();import{PlaybackState as Gh}from"@vkontakte/videoplayer-core";var k0=_e('<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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=k0();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(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 Og,InterfaceLanguage as Hg}from"@vkontakte/videoplayer-shared";var T0={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,
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`},Ng=k0;var T0={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}",aria_open_settings:"Open video player settings",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_disable:"Disabled",traffic_saving_enable:"Enabled",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:"Turn 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",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_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",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_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable 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_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",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`},Ng=T0;var I0={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,
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.`},Bg=T0;var Qr=new Map;Qr.set(Og.EN,Bg);Qr.set(Og.RU,Ng);var Hg=new Map,pp=({language:t,pack:e,fallback:i})=>{if(Qr.has(t)){let o=Qr.get(t);Qr.set(t,{...o,...e})}else Qr.set(t,e);Hg.set(t,i)},fp=t=>Qr.has(t),mp=(t,e,i,o)=>{let a=Qr.get(t)?.[e];if(Dg(a)){let s=Hg.get(t)??o;a=(s?Qr.get(s):void 0)?.[e]}return Dg(a)?e+Object.values(i??{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(s,d)=>i[d]??""):a},O=(t,e)=>{let{interfaceLanguage$:i}=$e(),o=be(i),n=Vt();return mp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core";var Ls;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Ls||(Ls={}));var I0=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,E0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,P0=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,lc="?",A0="X-Sentry-Auth",M0=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function L0(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=I0.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||lc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=P0.exec(i[a]))n={filename:o[2],function:o[1]||lc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=E0.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||lc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=lc),e.push(n)}return e.length?{value:Fg(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Fg(t){return(t&&t.message||"No error message").split(`
60
- `).filter(i=>!!i)[0]}function V0(t){try{let e=L0(t);if(e)return e}catch{}return{value:Fg(t),type:t&&t.name,stacktrace:{frames:[]}}}function R0(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var dc=class{constructor(e){if(e&&e.dsn){let i=M0.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:[V0(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(A0,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:R0(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Ug(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function N0(){return window}var cc=class t extends dc{constructor(e,i=N0()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=c=>c,beforeBreadcrumb:a=c=>c,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(c=>new c(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=>Ug(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{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Ug(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{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 uc,Subscription as B0}from"@vkontakte/videoplayer-shared";var pc=null,Oa=class{constructor(e,i,o={}){!pc&&e.dsn&&(this.sentryClient=new cc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new B0,this.options=e,this.context=o,pc=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),pc=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:c=[],blackErrorIdList:p,blackErrorCategoryList:_}=s,{errorType:u,category:$}=i;if(uc($)&&_.includes($)||uc(u)&&p.includes(u))return;if(Math.random()<=d||uc($)&&c.includes($)||uc(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?Ls.fatal:Ls.error),n.report(e)}catch(x){console.error(x)}}}static getInstance(){return pc}};var Gr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Gr||{});var fc=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?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},mc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),zg=t=>{let e=t;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},Sl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},la=()=>!!Sl(),vc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},gc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Wg=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 qg}from"@vkontakte/videoplayer-core";var Kg=()=>({title:O("hotkey_map_modal_title"),closeBtnText:O("hotkey_map_modal_close_btn_text"),groups:[{title:O("hotkey_map_group_title_common"),items:[{description:O("hotkey_map_item_mute_description"),value:O("hotkey_map_item_mute_value")},{description:O("hotkey_map_item_volume_up_description"),value:O("hotkey_map_item_volume_up_value")},{description:O("hotkey_map_item_volume_down_description"),value:O("hotkey_map_item_volume_down_value")},{description:O("hotkey_map_item_pip_description"),value:O("hotkey_map_item_pip_value")},{description:O("hotkey_map_item_full_screen_description"),value:O("hotkey_map_item_full_screen_value")},{description:O("hotkey_map_item_show_context_menu_description"),value:O("hotkey_map_item_show_context_menu_value")},{description:O("hotkey_map_item_show_hotkey_map_description"),value:O("hotkey_map_item_show_hotkey_map_value")}]},{title:O("hotkey_map_group_title_playback"),items:[{description:O("hotkey_map_item_play_toggle_description"),value:O("hotkey_map_item_play_toggle_value")},{description:O("hotkey_map_item_seek_backward_description"),value:O("hotkey_map_item_seek_backward_value")},{description:O("hotkey_map_item_seek_forward_description"),value:O("hotkey_map_item_seek_forward_value")},{description:O("hotkey_map_item_fast_seek_backward_description"),value:O("hotkey_map_item_fast_seek_backward_value")},{description:O("hotkey_map_item_fast_seek_forward_description"),value:O("hotkey_map_item_fast_seek_forward_value")},{description:O("hotkey_map_item_rate_down_description"),value:O("hotkey_map_item_rate_down_value")},{description:O("hotkey_map_item_rate_up_description"),value:O("hotkey_map_item_rate_up_value")},{description:O("hotkey_map_item_prev_frame_description"),value:O("hotkey_map_item_prev_frame_value")},{description:O("hotkey_map_item_next_frame_description"),value:O("hotkey_map_item_next_frame_value")},{description:O("hotkey_map_item_jump_seek_description"),value:O("hotkey_map_item_jump_seek_value")},{description:O("hotkey_map_item_next_video_description"),value:O("hotkey_map_item_next_video_value")},{description:O("hotkey_map_item_prev_video_description"),value:O("hotkey_map_item_prev_video_value")}]},{title:O("hotkey_map_group_title_subtitles"),items:[{description:O("hotkey_map_item_subtitles_toggle_description"),value:O("hotkey_map_item_subtitles_toggle_value")}]},{title:O("hotkey_map_group_title_episodes"),items:[{description:O("hotkey_map_item_prev_episode_description"),value:qg.device.isApple?O("hotkey_map_item_prev_episode_mac_value"):O("hotkey_map_item_prev_episode_pc_value")},{description:O("hotkey_map_item_next_episode_description"),value:qg.device.isApple?O("hotkey_map_item_next_episode_mac_value"):O("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as D0,ValueSubject as vp}from"@vkontakte/videoplayer-shared";var Ha=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:D0(this.onResize.bind(this),300)};this.info={isActive$:new vp(!1),isEnabled$:new vp(!1),type:0};this.info.isEnabled$=new vp(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(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Fa(t){return t instanceof Ha}import{devNull as Qg,now as Gg}from"@vkontakte/videoplayer-shared";Gm();function _p(t,e){H(e,!1);let i=$e();Lt(()=>{i.getAdmanWrapper().startPostroll()}),ur(),F()}import{noop as O0}from"@vkontakte/videoplayer-shared";var H0=(t,e)=>{t.stopPropagation(),e()()},F0=M('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),U0=M("<div><!></div>"),z0={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 bp(t,e){H(e,!0),U(t,z0);let[i,o]=Le(),n=()=>y(c,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,O0),c=$e().ui.isMobile,p=v(()=>a()>0&&a()>=s());var _=U0();let u;var $=h(_);{var w=C=>{var T=F0();T.__click=[H0,d];var I=h(T);ve(),g(T),S(A=>fe(I,`${A??""} `),[()=>O("skip_ads_now")]),b(C,T)},x=C=>{var T=Ir();S(I=>fe(T,I),[()=>O("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(C,T)};V($,C=>{r(p)?C(w):C(x,!1)})}g(_),S(C=>u=Y(_,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":n(),skippable:r(p)})]),b(t,_),F(),o()}nt(["click"]);var W0=M('<button class="svelte-1wy3dql"> </button>'),q0={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 $p(t,e){H(e,!1),U(t,q0),ur();var i=W0(),o=h(i,!0);g(i),S(n=>fe(o,n),[()=>O("visit_advertiser")],lr),b(t,i),F()}var K0=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),Q0=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),G0={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.`},Dg=I0;var Qr=new Map;Qr.set(Hg.EN,Dg);Qr.set(Hg.RU,Ng);var Fg=new Map,fp=({language:t,pack:e,fallback:i})=>{if(Qr.has(t)){let o=Qr.get(t);Qr.set(t,{...o,...e})}else Qr.set(t,e);Fg.set(t,i)},mp=t=>Qr.has(t),vp=(t,e,i,o)=>{let a=Qr.get(t)?.[e];if(Og(a)){let s=Fg.get(t)??o;a=(s?Qr.get(s):void 0)?.[e]}return Og(a)?e+Object.values(i??{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(s,d)=>i[d]??""):a},F=(t,e)=>{let{interfaceLanguage$:i}=ye(),o=$e(i),n=Mt();return vp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core";var Ms;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Ms||(Ms={}));var E0=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,P0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,A0=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,lc="?",M0="X-Sentry-Auth",L0=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function V0(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=E0.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||lc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=A0.exec(i[a]))n={filename:o[2],function:o[1]||lc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=P0.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||lc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=lc),e.push(n)}return e.length?{value:Ug(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Ug(t){return(t&&t.message||"No error message").split(`
60
+ `).filter(i=>!!i)[0]}function R0(t){try{let e=V0(t);if(e)return e}catch{}return{value:Ug(t),type:t&&t.name,stacktrace:{frames:[]}}}function B0(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var dc=class{constructor(e){if(e&&e.dsn){let i=L0.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:[R0(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(M0,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:B0(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function zg(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function N0(){return window}var cc=class t extends dc{constructor(e,i=N0()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=c=>c,beforeBreadcrumb:a=c=>c,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(c=>new c(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=>zg(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{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>zg(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{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 uc,Subscription as D0}from"@vkontakte/videoplayer-shared";var pc=null,Da=class{constructor(e,i,o={}){!pc&&e.dsn&&(this.sentryClient=new cc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new D0,this.options=e,this.context=o,pc=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),pc=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:c=[],blackErrorIdList:u,blackErrorCategoryList:b}=s,{errorType:p,category:$}=i;if(uc($)&&b.includes($)||uc(p)&&u.includes(p))return;if(Math.random()<=d||uc($)&&c.includes($)||uc(p)&&l.includes(p)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras({...a,...o});try{p&&n.captureMessage(p,i.fatal?Ms.fatal:Ms.error),n.report(e)}catch(x){console.error(x)}}}static getInstance(){return pc}};var Gr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Gr||{});var fc=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?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},mc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Wg=t=>{let e=t;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},Sl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},sa=()=>!!Sl(),vc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},gc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},qg=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 Kg}from"@vkontakte/videoplayer-core";var Qg=()=>({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:Kg.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:Kg.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as O0,ValueSubject as gp}from"@vkontakte/videoplayer-shared";var Oa=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:O0(this.onResize.bind(this),300)};this.info={isActive$:new gp(!1),isEnabled$:new gp(!1),type:0};this.info.isEnabled$=new gp(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(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Ha(t){return t instanceof Oa}import{devNull as Gg,now as Yg}from"@vkontakte/videoplayer-shared";Ym();function bp(t,e){O(e,!1);let i=ye();At(()=>{i.getAdmanWrapper().startPostroll()}),fr(),H()}import{noop as H0}from"@vkontakte/videoplayer-shared";var F0=(t,e)=>{t.stopPropagation(),e()()},U0=M('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),z0=M("<div><!></div>"),W0={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 $p(t,e){O(e,!0),U(t,W0);let[i,o]=Ve(),n=()=>y(c,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,H0),c=ye().ui.isMobile,u=v(()=>a()>0&&a()>=s());var b=z0();let p;var $=h(b);{var w=k=>{var T=U0();T.__click=[F0,d];var C=h(T);he(),g(T),S(R=>pe(C,`${R??""} `),[()=>F("skip_ads_now")]),_(k,T)},x=k=>{var T=Ir();S(C=>pe(T,C),[()=>F("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),_(k,T)};L($,k=>{r(u)?k(w):k(x,!1)})}g(b),S(k=>p=Z(b,1,"container svelte-1k4i25s",null,p,k),[()=>({"container-mobile":n(),skippable:r(u)})]),_(t,b),H(),o()}it(["click"]);var q0=M('<button class="svelte-1wy3dql"> </button>'),K0={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 yp(t,e){O(e,!1),U(t,K0),fr();var i=q0(),o=h(i,!0);g(i),S(n=>pe(o,n),[()=>F("visit_advertiser")],cr),_(t,i),H()}var Q0=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),G0=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Y0={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.`},Bg=T0;var Qr=new Map;Qr.set(Og.EN,Bg)
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 Cl(t,e){H(e,!0),U(t,G0);let[i,o]=Le(),n=()=>y(K,"$canSkipAd",i),a=()=>y(W,"$adPlaybackState",i),s=()=>y(I,"$isMobile",i),d=()=>y(Z,"$adPosition",i),l=()=>y(oe,"$secondsToWatchBeforeSkipAd",i),c=()=>y(T,"$isVideoEnded",i),p=m(e,"adsSlotId",3,void 0),_=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),x=$e(),C=Vt(),T=x.state.isEnded$,I=x.ui.isMobile,A=C.ads.isMobileGoToSiteButton,L=G(void 0),E=G(void 0),N=!1,W=x.ads.playbackState,K=x.ads.canSkip,Z=x.ads.position,oe=x.ads.secondsToWatchBeforeSkip,ue=v(()=>n()&&a()!=="inactive"),j=v(()=>s()&&a()!=="inactive"&&A);Lt(()=>{let ne=x.getAdmanWrapper();if(Qg.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Gg(),p()]}),!p()){ne.onAdmanLoadingError();return}let We=Me=>{ne.initAdman(Me),N=!0},re=new AbortController,ae=()=>{re.abort()},{width:X,height:J}=be(x.ui.playerSize),ze=be(x.ui.isFullscreen),Be=$()??be(x.ui.isAutoplay),ye={width:X,height:J,isFullscreen:ze,isAutoplay:Be,adsContainer:r(L),adsVideoElement:r(E),slotId:p(),params:_(),previewParam:u(),duration:w()};return window.AdmanHTML?We(ye):ne.loadAdman(re.signal).then(()=>{We(ye)}).catch(()=>{ne.onAdmanLoadingError()}),()=>{Qg.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Gg(),p()]}),!N&&ae()}});var _e=Q0(),ee=h(_e);{var Ae=ne=>{var We=K0();b(ne,We)};V(ee,ne=>{s()&&ne(Ae)})}var Ee=P(ee,2);lt(Ee,ne=>B(E,ne),()=>r(E));var Ve=P(Ee,2);{var pe=ne=>{bp(ne,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return x.actions.internal.skipAd}})};V(Ve,ne=>{r(ue)&&ne(pe)})}var Oe=P(Ve,2);{var ie=ne=>{_p(ne,{})};V(Oe,ne=>{c()&&ne(ie)})}var R=P(Oe,2);{var Qe=ne=>{$p(ne,{})};V(R,ne=>{r(j)&&ne(Qe)})}g(_e),lt(_e,ne=>B(L,ne),()=>r(L)),b(t,_e),F(),o()}var Oo=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 j0=ge('<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 yp(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=j0();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i})),b(t,o)}var Y0=ge('<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 xp(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Y0();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(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})),b(t,o)}function kl(t,e){let i=m(e,"isActive",3,!1);var o=De(),n=le(o);{var a=d=>{xp(d,{})},s=d=>{yp(d,{})};V(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var Z0=M('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),X0=M('<div class="live-icon svelte-1s15d2i"><!></div>'),J0=M('<span class="text svelte-1s15d2i"> </span>'),e_=M("<div><!> <!></div>"),t_={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
70
+ );}`};function Cl(t,e){O(e,!0),U(t,Y0);let[i,o]=Ve(),n=()=>y(q,"$canSkipAd",i),a=()=>y(K,"$adPlaybackState",i),s=()=>y(C,"$isMobile",i),d=()=>y(te,"$adPosition",i),l=()=>y(ne,"$secondsToWatchBeforeSkipAd",i),c=()=>y(T,"$isVideoEnded",i),u=m(e,"adsSlotId",3,void 0),b=m(e,"adsParams",3,void 0),p=m(e,"adsPreviewParam",3,void 0),$=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),x=ye(),k=Mt(),T=x.state.isEnded$,C=x.ui.isMobile,R=k.ads.isMobileGoToSiteButton,A=Y(void 0),E=Y(void 0),B=!1,K=x.ads.playbackState,q=x.ads.canSkip,te=x.ads.position,ne=x.ads.secondsToWatchBeforeSkip,ve=v(()=>n()&&a()!=="inactive"),j=v(()=>s()&&a()!=="inactive"&&R);At(()=>{let ce=x.getAdmanWrapper();if(Gg.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Yg(),u()]}),!u()){ce.onAdmanLoadingError();return}let Fe=Ae=>{ce.initAdman(Ae),B=!0},z=new AbortController,ie=()=>{z.abort()},{width:Te,height:J}=$e(x.ui.playerSize),Ue=$e(x.ui.isFullscreen),ot=$()??$e(x.ui.isAutoplay),de={width:Te,height:J,isFullscreen:Ue,isAutoplay:ot,adsContainer:r(A),adsVideoElement:r(E),slotId:u(),params:b(),previewParam:p(),duration:w()};return window.AdmanHTML?Fe(de):ce.loadAdman(z.signal).then(()=>{Fe(de)}).catch(()=>{ce.onAdmanLoadingError()}),()=>{Gg.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Yg(),u()]}),!B&&ie()}});var ge=G0(),X=h(ge);{var Pe=ce=>{var Fe=Q0();_(ce,Fe)};L(X,ce=>{s()&&ce(Pe)})}var Ee=P(X,2);dt(Ee,ce=>N(E,ce),()=>r(E));var Me=P(Ee,2);{var ue=ce=>{$p(ce,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return x.actions.internal.skipAd}})};L(Me,ce=>{r(ve)&&ce(ue)})}var De=P(Me,2);{var oe=ce=>{bp(ce,{})};L(De,ce=>{c()&&ce(oe)})}var V=P(De,2);{var Qe=ce=>{yp(ce,{})};L(V,ce=>{r(j)&&ce(Qe)})}g(ge),dt(ge,ce=>N(A,ce),()=>r(A)),_(t,ge),H(),o()}var Ko=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 j0=_e('<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 xp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=j0();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(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 Z0=_e('<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 wp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Z0();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(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 kl(t,e){let i=m(e,"isActive",3,!1);var o=Oe(),n=se(o);{var a=d=>{wp(d,{})},s=d=>{xp(d,{})};L(n,d=>{i()?d(a):d(s,!1)})}_(t,o)}var X0=M('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),J0=M('<div class="live-icon svelte-1s15d2i"><!></div>'),e_=M('<span class="text svelte-1s15d2i"> </span>'),t_=M("<div><!> <!></div>"),i_={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
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.`},Bg=T0;var Qr=new Map;Qr.set(Og.EN,Bg)
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 Tl(t,e){U(t,t_);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 $=Z0();b(u,$)};V(d,u=>{i()&&u(l)})}var c=P(d,2);{var p=u=>{var $=X0(),w=h($);kl(w,{isActive:!0}),g($),b(u,$)},_=u=>{var $=J0(),w=h($,!0);g($),S(()=>fe(w,e.time)),b(u,$)};V(c,u=>{o()?u(p):u(_,!1)})}g(a),S(u=>s=Y(a,1,"wrapper svelte-1s15d2i",null,s,u),[()=>({live:o(),playing:n()})]),b(t,a)}var i_=M('<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 Il(t,e){H(e,!0),U(t,o_);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),a=v(()=>Oo(e.duration-e.position));var s=i_();let d;var l=h(s);Tl(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),S(c=>d=Y(s,1,"thumb-timer svelte-1b40w20",null,d,c),[()=>({hidden:i()})]),b(t,s),F()}var Vs=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 m_}from"@vkontakte/videoplayer-core";import{clientChecker as jg}from"@vkontakte/videoplayer-core";var qn=t=>{t.stopPropagation(),t.preventDefault()},r_=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},a_=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},s_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},l_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Yg=t=>t.code==="Escape",d_=t=>t.code==="ArrowLeft",El=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Zg=t=>{if(s_(t)){qn(t),a_(t.target);return}l_(t)&&(qn(t),r_(t.target))},ua=t=>!jg.device.isAndroid&&t?.detail===0||jg.device.isAndroid&&t?.pointerType==="",Rs=async(t,e,i)=>{await Yi(),t&&!t.classList.contains("opened")&&!e&&be(i)&&(await Yi(),i.set(!1),t.focus())},Xg=async(t,e,i)=>{await Yi(),t&&!e&&be(i)&&(i.set(!1),t.focus())},Ns=async(t,e,i)=>{await Yi(),!!t&&e&&i&&t.children[0]?.focus()},Jg=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},hc=(t,e)=>{Zg(t),Yg(t)&&(qn(t),e())},_c=async(t,e)=>{El(t,["ArrowRight"])&&(qn(t),e())},eh=async(t,e,i)=>{if(Zg(t),d_(t)){qn(t),e();return}Yg(t)&&(qn(t),i())},Bs=(t,e)=>{El(t)&&(qn(t),e())},th=(t,e,i)=>{if(El(t))qn(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),qn(t);return}o==="ArrowRight"&&!e&&(i(!0),qn(t))}},ih=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},oh=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 bc,isValidURL as v_}from"@vkontakte/videoplayer-shared";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 nh}from"@vkontakte/videoplayer-shared";var u_=(t,e)=>{Bs(t,()=>e())},p_=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),f_={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 wp(t,e){H(e,!0),U(t,f_);let i=m(e,"onClick",3,nh),o=m(e,"closeContextMenu",3,nh),n=d=>{d?.stopPropagation(),i()(),o()()};var a=p_();a.__click=n,a.__keydown=[u_,n];var s=h(a,!0);g(a),S(()=>{Ne(a,"aria-label",e.ariaLabel??e.label),Ne(a,"data-testid",e.id),fe(s,e.label)}),b(t,a),F()}nt(["click","keydown"]);var za=(t,e)=>t.weight-e.weight;var Pl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Pl||{});var g_=(t,e)=>{hc(t,e)},h_=t=>{t.preventDefault()},__=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),b_={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 Sp(t,e){H(e,!0),U(t,b_);let[i,o]=Le(),n=()=>y(j,"$isLive$",i),a=()=>y(Ee,"$isPiPEnabled$",i),s=()=>y(ue,"$chromecastState$",i),d=()=>y(Ve,"$pictureInPictureApiIsActive$",i),l=()=>y(Ae,"$isLooped$",i),c=()=>y(_e,"$positionExact$",i),p=()=>y(W,"$debugPanelVisible",i),_=()=>y(K,"$additionalContextMenuItems$",i),u=m(e,"visible",3,!1),$=m(e,"position",19,()=>({top:0,left:0})),w=m(e,"playerContainerRef",3,void 0),x=m(e,"controlsContainerRef",3,void 0),C=m(e,"menuElementRef",15,void 0),T=G(0),I=G(0),A=$e(),{pictureInPicture$:L}=Wi(),E=Vt(),N=A.ui.contextMenu.visible$,W=A.ui.debugPanelVisible,K=A.ui.additionalContextMenuItems$,Z=A.ui.t,oe=A.actions.internal.togglePictureInPicture,ue=A.state.chromecastState$,j=A.state.isLive$,_e=A.state.positionExact$,ee=A.state.isInteractive,Ae=A.state.looped$,{isEnabled$:Ee,isActive$:Ve}=L,pe=v(()=>E.features.copyVideoLink&&A.callbacks?.onCopyVideoLink),Oe=v(()=>r(pe)&&!n()&&!ee),ie=v(()=>!!A.callbacks?.onCopyEmbedCodeClicked),R=v(()=>a()&&s()!==m_.CONNECTED&&!ee),Qe=v(()=>E.features.videoRotate&&!ee),ne=v(()=>E.showSupport&&!d()),We=v(()=>E.features.saveTraceInfoToFile),re=()=>{N.set(!1),e.returnFocus?.()},ae=(Ye,st)=>{if(!C()||!w()||!x())return;let $t=C().getBoundingClientRect(),Pt=w().getBoundingClientRect();B(T,Ye-Pt.left),B(I,st-Pt.top),r(T)+$t.width>Pt.width&&B(T,Pt.width-$t.width),r(I)+$t.height>Pt.height&&B(I,Pt.height-$t.height),B(T,ce(Math.max(r(T),0))),B(I,ce(Math.max(r(I),0)))};He(()=>{(async()=>{if(C()&&w()&&x()){await Yi();let{top:st,left:$t,bottom:Pt,right:Fe}=$(),Ze=$t??0,Dt=st??0,li=C().getBoundingClientRect();bc($t)&&!bc(Fe)&&(Ze=Fe-li.width),bc(st)&&!bc(Pt)&&(Dt=Pt-li.height),Ze=Math.max(Ze,0),Dt=Math.max(Dt,0),ae(Ze,Dt)}})()});let X=()=>{A.actions.internal.videoRotate()},J=()=>{v_(e.supportLink)&&window.open(e.supportLink,"_blank"),A.actions.internal.reportProblem(),A.actions.internal.pause()},ze=()=>{let Ye=A.actions.internal.getDebugTextData();if(E.features.saveDebugInfoToFile){let st=new Blob([...Ye],{type:"plain/text"}),$t=window.URL.createObjectURL(st);Da($t,"vk_player_debug_info","txt")}else Vs(A.actions.internal.getDebugTextData())},Be=()=>{let Ye=A.actions.internal.getTraceTextData(),st=new Blob([...Ye],{type:"application/json"}),$t=window.URL.createObjectURL(st);Da($t,"vk_player_trace_info","json")},ye=()=>{W.set(!0)},Me=async()=>{try{oe()}finally{e.returnFocus?.()}},Ge=()=>{A.actions.internal.setLooped(!l())},Xe=()=>{if(r(ie)){let Ye=A.callbacks?.onCopyEmbedCodeClicked?.();Ye&&Vs(Ye)}},ft=(Ye=!1)=>{if(A.callbacks?.onCopyVideoLink){let st=A.callbacks?.onCopyVideoLink(Ye,c());st&&Vs(st)}},ut=v(()=>E.features.saveDebugInfoToFile?Z("menu_save_debug"):Z("menu_copy_debug")),et=v(()=>r(pe)?{id:"copy-link",weight:pr["copy-link"],label:Z("menu_copy_video_link"),onClick:()=>ft()}:void 0),bt=v(()=>r(Oe)?{id:"copy-link-timestamp",weight:pr["copy-link-timestamp"],label:Z("menu_copy_video_link_with_timestamp"),onClick:()=>ft(!0)}:void 0),pt=v(()=>r(ie)?{id:"copy-embed-code",weight:pr["copy-embed-code"],label:Z("menu_copy_embed_code"),onClick:Xe}:void 0),Nt=v(()=>r(R)?{id:"pip",weight:pr.pip,label:Z("menu_pip"),onClick:Me}:void 0),Kt=v(()=>({id:"video-loop",weight:pr["video-loop"],label:l()?Z("menu_video_loop_off"):Z("menu_video_loop_on"),ariaLabel:Z("aria_label_menu_loop"),onClick:Ge})),Ue=v(()=>r(Qe)?{id:"rotate",weight:pr.rotate,label:Z("menu_video_rotate"),ariaLabel:Z("aria_label_menu_rotate"),onClick:X}:void 0),Et=v(()=>r(ne)?{id:"report",weight:pr.report,label:Z("menu_report"),ariaLabel:`${Z("menu_report")}. ${Z("aria_label_new_tab_alert")}`,onClick:J}:void 0),q=v(()=>({id:"save-debug",weight:pr["save-debug"],label:r(ut),onClick:ze})),he=v(()=>r(We)?{id:"save-trace",weight:pr["save-trace"],label:Z("menu_save_debug"),onClick:Be}:void 0),de=v(()=>({id:"debug-info",weight:pr["debug-info"],label:Z("menu_debug_overlay"),ariaLabel:p()?Z("aria_label_menu_debug_overlay_disable"):Z("aria_label_menu_debug_overlay_enable"),onClick:ye})),Pe=v(()=>[r(et),r(bt),r(pt),r(Nt),r(Kt),r(Ue),r(Et),r(q),r(he),r(de),..._()].filter(Ye=>!!Ye).sort(za));var ot=De(),Re=le(ot);{var Ie=Ye=>{var st=__();st.__contextmenu=[h_],st.__keydown=[g_,re],ci(st,21,()=>r(Pe),$t=>$t.id,($t,Pt)=>{wp($t,{get id(){return r(Pt).id},get label(){return r(Pt).label},get ariaLabel(){return r(Pt).ariaLabel},get onClick(){return r(Pt).onClick},closeContextMenu:re})}),g(st),lt(st,$t=>C($t),()=>C()),S(()=>it(st,`top: ${r(I)??""}px; left: ${r(T)??""}px;`)),b(Ye,st)};V(Re,Ye=>{u()&&Ye(Ie)})}b(t,ot),F(),o()}nt(["contextmenu","keydown"]);var $c=class{constructor(e){this.value=e,this.next=null}};var Ds=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new $c(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 $_=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),y_={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 Al(t,e){H(e,!0),U(t,y_);let i=m(e,"values",19,()=>[]),o=G(void 0),n=G(null),a=16,s=120,d=60,l=s/d;Lt(()=>{r(o).width=s,r(o).height=a,B(n,ce(r(o).getContext("2d")))});function c(u,$,w,x,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect($,w,x,C)}He(()=>{let u="";if(r(n)){let $=i()[0];for(let x=1;x<i().length;x++)i()[x]>$&&($=i()[x]);r(n).clearRect(0,0,s,a);let w=d-1;for(let x=i().length-1;x>=0;x--){let C=w*l,T=$>0?a*(i()[x]/$):0;c(r(n),C,0,l,T),u=T+" "+u,w--}}});var p=$_(),_=h(p);lt(_,u=>B(o,u),()=>r(o)),g(p),b(t,p),F()}import{safeStorage as rh}from"@vkontakte/videoplayer-shared";var x_=(t,e)=>{t.stopPropagation(),rh.remove(_l),e.set(!1)},w_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),S_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),C_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),k_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),T_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),I_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),E_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),P_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),A_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),M_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),L_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),V_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),R_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),N_=M('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),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 Ml(t,e){H(e,!0),U(t,B_);let[i,o]=Le(),n=()=>y(d,"$isMobile",i),a=$e(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=G(ce(a.actions.internal.getDebugPanelData())),c=a.actions.internal.getVideoElement(),p=G(0),_=G(0),u=G(0),$=new Ds(60),w=new Ds(60),x=new Ds(60),C=G(ce([])),T=G(ce([])),I=G(ce([])),A=O("aria_label_debug_panel");Lt(()=>{rh.set(_l,"true"),a.actions.internal.startLogging(),c&&(B(_,ce(c.getVideoPlaybackQuality().droppedVideoFrames)),B(p,ce(c.getVideoPlaybackQuality().totalVideoFrames)));let q=window.setInterval(()=>{B(l,ce(a.actions.internal.getDebugPanelData()))},500),he;return c&&(he=window.setInterval(()=>{if(c){B(_,ce(c.getVideoPlaybackQuality().droppedVideoFrames));let de=c.getVideoPlaybackQuality().totalVideoFrames;B(u,de-r(p)),B(p,ce(de)),$.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&x.push(r(l).bitrate),B(C,ce($.getValuesFromBottom())),B(T,ce(w.getValuesFromBottom())),B(I,ce(x.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(q),he&&clearInterval(he)}});var L=N_();let E;Ne(L,"aria-label",A);var N=h(L);N.__click=[x_,s];var W=P(N,2),K=h(W),Z=P(h(K),2),oe=h(Z,!0);g(Z),g(K);var ue=P(K,2);{var j=q=>{var he=w_(),de=P(h(he),2),Pe=h(de,!0);g(de),g(he),S(()=>fe(Pe,r(l).id)),b(q,he)};V(ue,q=>{r(l).id&&q(j)})}var _e=P(ue,2);{var ee=q=>{var he=S_(),de=P(h(he),2),Pe=h(de,!0);g(de),g(he),S(()=>fe(Pe,r(l).vsid)),b(q,he)};V(_e,q=>{r(l).vsid&&q(ee)})}var Ae=P(_e,2);{var Ee=q=>{var he=C_(),de=P(h(he),2),Pe=h(de,!0);g(de),g(he),S(()=>fe(Pe,r(l).provider)),b(q,he)};V(Ae,q=>{r(l).provider&&q(Ee)})}var Ve=P(Ae,2);{var pe=q=>{var he=k_(),de=P(h(he),2),Pe=h(de);g(de),g(he),S(()=>fe(Pe,`Video: ${r(l).videoCodec||""} ${(r(l).hdr?"(HDR)":"")??""}
141
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Tl(t,e){U(t,i_);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var a=t_();let s;var d=h(a);{var l=p=>{var $=X0();_(p,$)};L(d,p=>{i()&&p(l)})}var c=P(d,2);{var u=p=>{var $=J0(),w=h($);kl(w,{isActive:!0}),g($),_(p,$)},b=p=>{var $=e_(),w=h($,!0);g($),S(()=>pe(w,e.time)),_(p,$)};L(c,p=>{o()?p(u):p(b,!1)})}g(a),S(p=>s=Z(a,1,"wrapper svelte-1s15d2i",null,s,p),[()=>({live:o(),playing:n()})]),_(t,a)}var o_=M('<div role="timer" data-testid="thumb-timer"><!></div>'),n_={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 Il(t,e){O(e,!0),U(t,n_);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),a=v(()=>Ko(e.duration-e.position));var s=o_();let d;var l=h(s);Tl(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),S(c=>d=Z(s,1,"thumb-timer svelte-1b40w20",null,d,c),[()=>({hidden:i()})]),_(t,s),H()}var Ls=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 v_}from"@vkontakte/videoplayer-core";import{clientChecker as jg}from"@vkontakte/videoplayer-core";var Gn=t=>{t.stopPropagation(),t.preventDefault()},a_=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},s_=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},l_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},d_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Zg=t=>t.code==="Escape",c_=t=>t.code==="ArrowLeft",El=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Xg=t=>{if(l_(t)){Gn(t),s_(t.target);return}d_(t)&&(Gn(t),a_(t.target))},ca=t=>!jg.device.isAndroid&&t?.detail===0||jg.device.isAndroid&&t?.pointerType==="",Vs=async(t,e,i)=>{await to(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(await to(),i.set(!1),t.focus())},Jg=async(t,e,i)=>{await to(),t&&!e&&$e(i)&&(i.set(!1),t.focus())},Rs=async(t,e,i)=>{await to(),!!t&&e&&i&&t.children[0]?.focus()},eh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},hc=(t,e)=>{Xg(t),Zg(t)&&(Gn(t),e())},_c=async(t,e)=>{El(t,["ArrowRight"])&&(Gn(t),e())},th=async(t,e,i)=>{if(Xg(t),c_(t)){Gn(t),e();return}Zg(t)&&(Gn(t),i())},Bs=(t,e)=>{El(t)&&(Gn(t),e())},ih=(t,e,i)=>{if(El(t))Gn(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Gn(t);return}o==="ArrowRight"&&!e&&(i(!0),Gn(t))}},oh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},nh=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 bc,isValidURL as g_}from"@vkontakte/videoplayer-shared";var mr={"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 rh}from"@vkontakte/videoplayer-shared";var p_=(t,e)=>{Bs(t,()=>e())},f_=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),m_={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 Sp(t,e){O(e,!0),U(t,m_);let i=m(e,"onClick",3,rh),o=m(e,"closeContextMenu",3,rh),n=d=>{d?.stopPropagation(),i()(),o()()};var a=f_();a.__click=n,a.__keydown=[p_,n];var s=h(a,!0);g(a),S(()=>{Le(a,"aria-label",e.ariaLabel??e.label),Le(a,"data-testid",e.id),pe(s,e.label)}),_(t,a),H()}it(["click","keydown"]);var Ua=(t,e)=>t.weight-e.weight;var Pl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Pl||{});var h_=(t,e)=>{hc(t,e)},__=t=>{t.preventDefault()},b_=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),$_={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 Cp(t,e){O(e,!0),U(t,$_);let[i,o]=Ve(),n=()=>y(ve,"$isLive$",i),a=()=>y(Pe,"$isPiPEnabled$",i),s=()=>y(ne,"$chromecastState$",i),d=()=>y(Ee,"$pictureInPictureApiIsActive$",i),l=()=>y(X,"$isLooped$",i),c=()=>y(j,"$positionExact$",i),u=()=>y(K,"$additionalContextMenuItems$",i),b=m(e,"visible",3,!1),p=m(e,"position",19,()=>({top:0,left:0})),$=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),x=m(e,"menuElementRef",15,void 0),k=Y(0),T=Y(0),C=ye(),{pictureInPicture$:R}=zi(),A=Mt(),E=C.ui.contextMenu.visible$,B=C.ui.debugPanelVisible,K=C.ui.additionalContextMenuItems$,q=C.ui.t,te=C.actions.internal.togglePictureInPicture,ne=C.state.chromecastState$,ve=C.state.isLive$,j=C.state.positionExact$,ge=C.state.isInteractive,X=C.state.looped$,{isEnabled$:Pe,isActive$:Ee}=R,Me=v(()=>A.features.copyVideoLink&&C.callbacks?.onCopyVideoLink),ue=v(()=>r(Me)&&!n()&&!ge),De=v(()=>!!C.callbacks?.onCopyEmbedCodeClicked),oe=v(()=>a()&&s()!==v_.CONNECTED&&!ge),V=v(()=>A.features.videoRotate&&!ge),Qe=v(()=>A.showSupport&&!d()),ce=v(()=>A.features.saveTraceInfoToFile),Fe=()=>{E.set(!1),e.returnFocus?.()},z=(me,Ge)=>{if(!x()||!$()||!w())return;let pt=x().getBoundingClientRect(),kt=$().getBoundingClientRect();N(k,me-kt.left),N(T,Ge-kt.top),r(k)+pt.width>kt.width&&N(k,kt.width-pt.width),r(T)+pt.height>kt.height&&N(T,kt.height-pt.height),N(k,le(Math.max(r(k),0))),N(T,le(Math.max(r(T),0)))};He(()=>{(async()=>{if(x()&&$()&&w()){await to();let{top:Ge,left:pt,bottom:kt,right:qt}=p(),Be=pt??0,Ze=Ge??0,Ht=x().getBoundingClientRect();bc(pt)&&!bc(qt)&&(Be=qt-Ht.width),bc(Ge)&&!bc(kt)&&(Ze=kt-Ht.height),Be=Math.max(Be,0),Ze=Math.max(Ze,0),z(Be,Ze)}})()});let ie=()=>{C.actions.internal.videoRotate()},Te=()=>{g_(e.supportLink)&&window.open(e.supportLink,"_blank"),C.actions.internal.reportProblem(),C.actions.internal.pause()},J=()=>{let me=C.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let Ge=new Blob([...me],{type:"plain/text"}),pt=window.URL.createObjectURL(Ge);Na(pt,"vk_player_debug_info","txt")}else Ls(C.actions.internal.getDebugTextData())},Ue=()=>{let me=C.actions.internal.getTraceTextData(),Ge=new Blob([...me],{type:"application/json"}),pt=window.URL.createObjectURL(Ge);Na(pt,"vk_player_trace_info","json")},ot=()=>{B.set(!0)},de=async()=>{try{te()}finally{e.returnFocus?.()}},Ae=()=>{C.actions.internal.setLooped(!l())},qe=()=>{if(r(De)){let me=C.callbacks?.onCopyEmbedCodeClicked?.();me&&Ls(me)}},je=(me=!1)=>{if(C.callbacks?.onCopyVideoLink){let Ge=C.callbacks?.onCopyVideoLink(me,c());Ge&&Ls(Ge)}},mt=v(()=>A.features.saveDebugInfoToFile?q("menu_save_debug"):q("menu_copy_debug")),ft=v(()=>r(Me)?{id:"copy-link",weight:mr["copy-link"],label:q("menu_copy_video_link"),onClick:()=>je()}:void 0),Xe=v(()=>r(ue)?{id:"copy-link-timestamp",weight:mr["copy-link-timestamp"],label:q("menu_copy_video_link_with_timestamp"),onClick:()=>je(!0)}:void 0),$t=v(()=>r(De)?{id:"copy-embed-code",weight:mr["copy-embed-code"],label:q("menu_copy_embed_code"),onClick:qe}:void 0),ct=v(()=>r(oe)?{id:"pip",weight:mr.pip,label:q("menu_pip"),onClick:de}:void 0),Lt=v(()=>({id:"video-loop",weight:mr["video-loop"],label:l()?q("menu_video_loop_off"):q("menu_video_loop_on"),ariaLabel:q("aria_label_menu_loop"),onClick:Ae})),zt=v(()=>r(V)?{id:"rotate",weight:mr.rotate,label:q("menu_video_rotate"),ariaLabel:q("aria_label_menu_rotate"),onClick:ie}:void 0),ze=v(()=>r(Qe)?{id:"report",weight:mr.report,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,onClick:Te}:void 0),Et=v(()=>({id:"save-debug",weight:mr["save-debug"],label:r(mt),onClick:J})),Q=v(()=>r(ce)?{id:"save-trace",weight:mr["save-trace"],label:q("menu_save_debug"),onClick:Ue}:void 0),be=v(()=>({id:"debug-info",weight:mr["debug-info"],label:q("menu_debug_overlay"),ariaLabel:q("aria_label_menu_debug_overlay"),onClick:ot})),ae=v(()=>[r(ft),r(Xe),r($t),r(ct),r(Lt),r(zt),r(ze),r(Et),r(Q),r(be),...u()].filter(me=>!!me).sort(Ua));var Ie=Oe(),nt=se(Ie);{var Re=me=>{var Ge=b_();Ge.__contextmenu=[__],Ge.__keydown=[h_,Fe],ci(Ge,21,()=>r(ae),pt=>pt.id,(pt,kt)=>{Sp(pt,{get id(){return r(kt).id},get label(){return r(kt).label},get ariaLabel(){return r(kt).ariaLabel},get onClick(){return r(kt).onClick},closeContextMenu:Fe})}),g(Ge),dt(Ge,pt=>x(pt),()=>x()),S(()=>et(Ge,`top: ${r(T)??""}px; left: ${r(k)??""}px;`)),_(me,Ge)};L(nt,me=>{b()&&me(Re)})}_(t,Ie),H(),o()}it(["contextmenu","keydown"]);var $c=class{constructor(e){this.value=e,this.next=null}};var Ns=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new $c(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_=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),x_={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 Al(t,e){O(e,!0),U(t,x_);let i=m(e,"values",19,()=>[]),o=Y(void 0),n=Y(null),a=16,s=120,d=60,l=s/d;At(()=>{r(o).width=s,r(o).height=a,N(n,le(r(o).getContext("2d")))});function c(p,$,w,x,k){k===0&&(k=1),p.fillStyle="#fff",p.fillRect($,w,x,k)}He(()=>{let p="";if(r(n)){let $=i()[0];for(let x=1;x<i().length;x++)i()[x]>$&&($=i()[x]);r(n).clearRect(0,0,s,a);let w=d-1;for(let x=i().length-1;x>=0;x--){let k=w*l,T=$>0?a*(i()[x]/$):0;c(r(n),k,0,l,T),p=T+" "+p,w--}}});var u=y_(),b=h(u);dt(b,p=>N(o,p),()=>r(o)),g(u),_(t,u),H()}import{safeStorage as ah}from"@vkontakte/videoplayer-shared";var w_=(t,e)=>{t.stopPropagation(),ah.remove(_l),e.set(!1)},S_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),C_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),k_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),T_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),I_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),E_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),P_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),A_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),M_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),L_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),V_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),R_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),B_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),N_=M('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),D_={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 Ml(t,e){O(e,!0),U(t,D_);let[i,o]=Ve(),n=()=>y(d,"$isMobile",i),a=ye(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=Y(le(a.actions.internal.getDebugPanelData())),c=a.actions.internal.getVideoElement(),u=Y(0),b=Y(0),p=Y(0),$=new Ns(60),w=new Ns(60),x=new Ns(60),k=Y(le([])),T=Y(le([])),C=Y(le([])),R=F("aria_label_debug_panel");At(()=>{ah.set(_l,"true"),a.actions.internal.startLogging(),c&&(N(b,le(c.getVideoPlaybackQuality().droppedVideoFrames)),N(u,le(c.getVideoPlaybackQuality().totalVideoFrames)));let Q=window.setInterval(()=>{N(l,le(a.actions.internal.getDebugPanelData()))},500),be;return c&&(be=window.setInterval(()=>{if(c){N(b,le(c.getVideoPlaybackQuality().droppedVideoFrames));let ae=c.getVideoPlaybackQuality().totalVideoFrames;N(p,ae-r(u)),N(u,le(ae)),$.push(r(p)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&x.push(r(l).bitrate),N(k,le($.getValuesFromBottom())),N(T,le(w.getValuesFromBottom())),N(C,le(x.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Q),be&&clearInterval(be)}});var A=N_();let E;Le(A,"aria-label",R);var B=h(A);B.__click=[w_,s];var K=P(B,2),q=h(K),te=P(h(q),2),ne=h(te,!0);g(te),g(q);var ve=P(q,2);{var j=Q=>{var be=S_(),ae=P(h(be),2),Ie=h(ae,!0);g(ae),g(be),S(()=>pe(Ie,r(l).id)),_(Q,be)};L(ve,Q=>{r(l).id&&Q(j)})}var ge=P(ve,2);{var X=Q=>{var be=C_(),ae=P(h(be),2),Ie=h(ae,!0);g(ae),g(be),S(()=>pe(Ie,r(l).vsid)),_(Q,be)};L(ge,Q=>{r(l).vsid&&Q(X)})}var Pe=P(ge,2);{var Ee=Q=>{var be=k_(),ae=P(h(be),2),Ie=h(ae,!0);g(ae),g(be),S(()=>pe(Ie,r(l).provider)),_(Q,be)};L(Pe,Q=>{r(l).provider&&Q(Ee)})}var Me=P(Pe,2);{var ue=Q=>{var be=T_(),ae=P(h(be),2),Ie=h(ae);g(ae),g(be),S(()=>pe(Ie,`Video: ${r(l).videoCodec||""} ${(r(l).hdr?"(HDR)":"")??""}
143
143
  &
144
- Audio: ${r(l).audioCodec||""} ${(r(l).audioLanguage?`(${r(l).audioLanguage})`:"")??""}`)),b(q,he)};V(Ve,q=>{(r(l).videoCodec||r(l).audioCodec)&&q(pe)})}var Oe=P(Ve,2);{var ie=q=>{var he=T_(),de=P(h(he),2),Pe=h(de,!0);g(de),g(he),S(()=>fe(Pe,r(l).viewport)),b(q,he)};V(Oe,q=>{r(l).viewport&&q(ie)})}var R=P(Oe,2);{var Qe=q=>{var he=I_(),de=P(h(he),2),Pe=h(de,!0);g(de),g(he),S(()=>fe(Pe,r(l).videoSize)),b(q,he)};V(R,q=>{r(l).videoSize&&q(Qe)})}var ne=P(R,2);{var We=q=>{var he=E_(),de=P(h(he),2),Pe=h(de,!0);g(de),g(he),S(()=>fe(Pe,r(l).cdn)),b(q,he)};V(ne,q=>{r(l).cdn&&q(We)})}var re=P(ne,2);{var ae=q=>{var he=P_(),de=P(h(he),2),Pe=h(de);g(de),g(he),S(()=>fe(Pe,`${r(l).volume??""} %`)),b(q,he)};V(re,q=>{r(l).volume&&q(ae)})}var X=P(re,2);{var J=q=>{var he=A_(),de=P(h(he),2),Pe=h(de);g(de),g(he),S(ot=>fe(Pe,`${ot??""} s`),[()=>r(l).buffer.toFixed(2)]),b(q,he)};V(X,q=>{r(l).buffer&&q(J)})}var ze=P(X,2);{var Be=q=>{var he=M_(),de=P(h(he),2),Pe=h(de);g(de),g(he),S(ot=>fe(Pe,`${ot??""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(q,he)};V(ze,q=>{r(l).liveLatency&&q(Be)})}var ye=P(ze,2);{var Me=q=>{var he=L_(),de=P(h(he),2),Pe=h(de,!0);g(de),g(he),S(ot=>fe(Pe,ot),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ot})=>ot).map(({value:ot,title:Re})=>`${Re} ${((ot??0)/1e3).toFixed(2)} s`).join(" & ")]),b(q,he)};V(ye,q=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&q(Me)})}var Ge=P(ye,2),Xe=P(h(Ge),2),ft=h(Xe);g(Xe),g(Ge);var ut=P(Ge,2);{var et=q=>{var he=V_(),de=P(h(he),2);Al(de,{get values(){return r(T)}});var Pe=P(de,2),ot=h(Pe);g(Pe),g(he),S(Re=>fe(ot,`${Re??""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(q,he)};V(ut,q=>{r(l).speed&&q(et)})}var bt=P(ut,2);{var pt=q=>{var he=R_(),de=P(h(he),2);Al(de,{get values(){return r(I)}});var Pe=P(de,2),ot=h(Pe);g(Pe),g(he),S(Re=>fe(ot,`${Re??""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(q,he)};V(bt,q=>{r(l).bitrate&&q(pt)})}var Nt=P(bt,2),Kt=P(h(Nt),2);Al(Kt,{get values(){return r(C)}});var Ue=P(Kt,2),Et=h(Ue,!0);g(Ue),g(Nt),g(W),g(L),S(q=>{E=Y(L,1,"container svelte-4deykz",null,E,q),fe(oe,r(l).version),fe(ft,`${r(_)??""} / ${r(p)??""} frames`),fe(Et,r(u))},[()=>({"container-mobile":n()})]),b(t,L),F(),o()}nt(["click"]);import{noop as D_}from"@vkontakte/videoplayer-shared";var O_=(t,e)=>{t.stopPropagation(),e()()},H_=M('<div class="close svelte-1ome55p"></div>'),F_={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 Wa(t,e){H(e,!0),U(t,F_);let i=m(e,"onClick",3,D_);var o=H_();o.__click=[O_,i],b(t,o),F()}nt(["click"]);import{noop as U_}from"@vkontakte/videoplayer-shared";var z_=M('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),W_={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 Ll(t,e){H(e,!0),U(t,W_);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,U_),n=5e3,a=G(void 0),s,d,l=G(0),c;He(()=>{i()&&(d=Date.now(),B(l,ce(requestAnimationFrame(_))))});let p=()=>{r(l)&&(cancelAnimationFrame(r(l)),B(l,0))},_=()=>{if(!i()){p();return}c=(Date.now()-d)/n,c<1?(s?.clearRect(0,0,100,100),s?.beginPath(),s?.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),s?.stroke(),B(l,ce(requestAnimationFrame(_)))):o()()};Lt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{p()}}),an(()=>{p()});var u=z_(),$=h(u);lt($,w=>B(a,w),()=>r(a)),ve(2),g(u),b(t,u),F()}var q_=(t,e,i)=>{e(!1),i()},K_=M('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),Q_={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 Cp(t,e){H(e,!0),U(t,Q_);let[i,o]=Le(),n=()=>y(d,"$autoplayNextEnabled$",i),a=()=>y(l,"$timerNextVideoRunning$",i),s=$e(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,c=s.actions.internal.nextVideoClick,p=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(c(!1),u())},x=()=>{e.clickCloseIcon(),$()};Lt(()=>{e.isHide||p(),e.isHide&&n()&&(c(!1),u())});var C=De(),T=le(C);{var I=A=>{var L=K_(),E=P(le(L),2),N=h(E),W=h(N),K=h(W,!0);g(W);var Z=P(W,2);Wa(Z,{onClick:x}),g(N);var oe=P(N,2);oe.__click=[q_,c,_];var ue=h(oe),j=h(ue),_e=h(j);let ee;var Ae=P(_e,2);{var Ee=ie=>{let R=v(()=>a()&&n());Ll(ie,{get isRunning(){return r(R)},onTimerEnded:w})};V(Ae,ie=>{n()&&ie(Ee)})}g(j),g(ue);var Ve=P(ue,2),pe=h(Ve),Oe=h(pe,!0);g(pe),g(Ve),g(oe),g(E),S((ie,R)=>{fe(K,ie),it(j,`background-image: url('${e.thumb}')`),ee=Y(_e,1,"thumb-overlay svelte-jfbaax",null,ee,R),fe(Oe,e.title)},[()=>O("end_screen_next_video"),()=>({withOpacity:n()})]),b(A,L)};V(T,A=>{e.isHide||A(I)})}b(t,C),F(),o()}nt(["click"]);import{PlaybackState as qa}from"@vkontakte/videoplayer-core";import{checkNever as j_}from"@vkontakte/videoplayer-shared";import{SeekAction as sn}from"@vkontakte/videoplayer-statistics";var kp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Tp=(t,e)=>Math.max(+(t-e).toFixed(2),0),yc=(t,e,i)=>{let o=kp(e,i);e<1&&t.actions.internal.setVolume(o)},xc=(t,e,i)=>{let o=Tp(e,i);e>0&&t.actions.internal.setVolume(o)};var pa=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e?.(),!1):i?!0:(o?.(),!1);var Y_=(t,e)=>{e(t)},Z_=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),X_={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Ip(t,e){H(e,!0),U(t,X_);let[i,o]=Le(),n=()=>y(K,"$playbackState$",i),a=()=>y(Z,"$adPlaybackState",i),s=()=>y(_e,"$disabledControls$",i),d=()=>y(oe,"$positionExact$",i),l=()=>y(ue,"$duration$",i),c=()=>y(ae,"$isAudioAvailable$",i),p=()=>y(j,"$volume$",i),_=()=>y(Ve,"$availablePlaybackRates$",i),u=()=>y(Ee,"$currentPlaybackRate$",i),$=()=>y(J,"$isInteractiveTime$",i),w=()=>y(ze,"$showInteractiveTimeIndicatorTooltip$",i),x=()=>y(Qe,"$isEnded$",i),C=()=>y(ee,"$muted$",i),T=()=>y(Ae,"$currentSubtitle$",i),I=()=>y(ne,"$overlayContainer$",i),A=m(e,"nextButtonActive",3,!1),L=m(e,"prevButtonActive",3,!1),E=$e(),N=Vt(),W=E.getLogger().createComponentLog("KeyboardControls component"),K=E.state.playbackState$,Z=E.ads.playbackState,oe=E.state.positionExact$,ue=E.state.duration$,j=E.state.volume$,_e=E.ui.controls.disabledControls$,ee=E.state.muted$,Ae=E.state.currentSubtitle$,Ee=E.state.currentPlaybackRate$,Ve=E.state.availablePlaybackRates$,pe=E.ui.contextMenu.openedByHotKey$,Oe=E.ui.contextMenu.lastActiveElem$,ie=E.ui.contextMenu.visible$,R=E.ui.contextMenu.position$,Qe=E.state.isEnded$,ne=E.ui.overlayContainer$,We=E.callbacks?.onAudioDoesNotExistHint,re=E.callbacks?.onAudioDisabledHint,ae=E.state.isAudioAvailable$,X=E.state.isAudioDisabled,J=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:ze}=Wi(),Be=0,ye=!0,Me=G(void 0),Ge=Ue=>(Ue!==ye&&(ye=Ue,Be=0),Be+=1,(N.controls.seekStepKeyboard+N.controls.seekStepKeyboard*Be)/1e3),Xe=(Ue,Et=!1)=>{let q=Ue.target,he=q?.getAttribute("role")?.includes("menuitem"),de=q.classList.contains("btn"),Pe=Ue.code;if(de&&Pe==="Space")return!1;let ot=lg.has(Pe);if(he&&ot)return!1;let Re=!sg.has(Pe);if(Ue.ctrlKey&&Re||Ue.altKey&&Re||Ue.metaKey)return!1;let Ie=he&&Pe==="Escape";dg.has(Pe)||Ie||e.hideContextMenu();let Ye=n()===qa.PLAYING||n()===qa.PAUSED,st=e.isAds&&(a()==="paused"||a()==="playing"),$t=!st&&!s().has("TIMELINE");if(!(Ye||st))return!1;W({message:`key down, code: ${Pe}, isExternal = ${Et}`});let Pt=!1,Fe=()=>{Pt=!0,Et||Ue.preventDefault()};switch(Pe){case"KeyJ":case"ArrowLeft":{if(!$t)break;if(Ue.ctrlKey||Ue.altKey){let Ze=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(Ze),Ze&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ze.text}),Fe()}else{let Ze=Ue.shiftKey?Ge(!1):N.controls.seekStepKeyboard/1e3,Dt=Math.max(d()-Ze,0);d()>0&&(E.actions.internal.seekTime(Dt,sn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ze.toString()}),Fe())}break}case"KeyL":case"ArrowRight":{if(!$t)break;if(Ue.ctrlKey||Ue.altKey){let Ze=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(Ze),Ze&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ze.text}),Fe()}else{let Ze=Ue.shiftKey?Ge(!0):N.controls.seekStepKeyboard/1e3,Dt=Math.min(d()+Ze,l());Math.round(d())<Math.round(l())&&(E.actions.internal.seekTime(Dt,sn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ze.toString()}),Fe())}break}case"ArrowUp":{if(pa({isAudioDisabled:X,audioDisabledHintCallback:re,isAudioAvailable:c(),audioIsNotExistHintCallback:We})){let Ze=p(),Dt=N.controls.volumeStepKeyboard,li=Ze<=1;if(yc(E,Ze,Dt),li){let pi=Math.round(kp(Ze,Dt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:pi}})}}Fe();break}case"ArrowDown":{if(pa({isAudioDisabled:X,audioDisabledHintCallback:re,isAudioAvailable:c(),audioIsNotExistHintCallback:We})){let Ze=p(),Dt=N.controls.volumeStepKeyboard,li=Ze>=0;if(xc(E,Ze,Dt),li){let pi=Math.round(Tp(Ze,Dt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:pi}})}}Fe();break}case"Comma":{if(Ue.shiftKey){E.actions.internal.decrementPlaybackRate();let Ze=_().find(Dt=>Dt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ze?.displayValue}),Fe()}else{if(st||n()!==qa.PAUSED)break;let Ze=Math.max(d()-N.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(Ze,sn.DOUBLE_TAP),Fe())}break}case"Period":{if(Ue.shiftKey){E.actions.internal.incrementPlaybackRate();let Ze=_().find(Dt=>Dt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:Ze?.displayValue}),Fe()}else{if(st||n()!==qa.PAUSED)break;let Ze=Math.min(d()+N.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(Ze,sn.DOUBLE_TAP),Fe())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&ze.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let Ze="PLAY";n()===qa.PAUSED?Ze="PAUSE":x()&&(Ze="REPLAY"),e.showHotKeyHelpers({type:Ze})}Fe();break;case"KeyM":{pa({isAudioDisabled:X,audioDisabledHintCallback:re,isAudioAvailable:c(),audioIsNotExistHintCallback:We})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),Fe();break}case"KeyF":e.toggleFullscreen(),Fe();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:T()?.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Fe();break;case"KeyI":E.actions.internal.togglePictureInPicture(),Fe();break;case"Digit1":case"Numpad1":if(Ue.shiftKey){let Ze=oh(I());R.set(Ze),Oe.set(q),pe.set(!0),ie.set(!0),Fe();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,sn.DOUBLE_TAP),Fe();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,sn.DOUBLE_TAP),Fe();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,sn.DOUBLE_TAP),Fe();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,sn.DOUBLE_TAP),Fe();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,sn.DOUBLE_TAP),Fe();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,sn.DOUBLE_TAP),Fe();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,sn.DOUBLE_TAP),Fe();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,sn.DOUBLE_TAP),Fe();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,sn.DOUBLE_TAP),Fe();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,sn.DOUBLE_TAP),Fe();break;case"Slash":{Ue.shiftKey&&N.features.hotKeyMapModal&&(e.showKeyMap(),Fe());break}case"KeyN":Ue.shiftKey&&A()&&(E.actions.internal.nextVideoClick(),Fe());break;case"KeyP":Ue.shiftKey&&L()&&(E.actions.internal.prevVideoClick(),Fe());break;case"ShiftLeft":case"ShiftRight":Fe();break;case"Tab":case"Escape":case"Enter":break;default:j_(Pe);break}return Pt},ft=Ue=>{let Et=Ue.code;if(Ue.ctrlKey||Ue.altKey||Ue.metaKey)return;let q=n()===qa.PLAYING||n()===qa.PAUSED,he=e.isAds&&(a()==="paused"||a()==="playing");if(q||he)switch(Et){case"ShiftLeft":case"ShiftRight":Be=0;break}},ut=O("aria_label_video_player"),et=()=>r(Me)?.focus(),bt=Ue=>Ue.type==="keydown"?Xe(Ue,!0):(Ue.type==="keyup"&&ft(Ue),!1);var pt=Z_();pt.__keyup=ft,pt.__keydown=[Y_,Xe],Ne(pt,"aria-label",ut);var Nt=h(pt);me(Nt,()=>e.children??te),g(pt),lt(pt,Ue=>B(Me,Ue),()=>r(Me)),b(t,pt);var Kt=F({focus:et,handleExternalKeyboardEvent:bt});return o(),Kt}nt(["keyup","keydown"]);var J_=M('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),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: ${r(l).audioCodec||""} ${(r(l).audioLanguage?`(${r(l).audioLanguage})`:"")??""}`)),_(Q,be)};L(Me,Q=>{(r(l).videoCodec||r(l).audioCodec)&&Q(ue)})}var De=P(Me,2);{var oe=Q=>{var be=I_(),ae=P(h(be),2),Ie=h(ae,!0);g(ae),g(be),S(()=>pe(Ie,r(l).viewport)),_(Q,be)};L(De,Q=>{r(l).viewport&&Q(oe)})}var V=P(De,2);{var Qe=Q=>{var be=E_(),ae=P(h(be),2),Ie=h(ae,!0);g(ae),g(be),S(()=>pe(Ie,r(l).videoSize)),_(Q,be)};L(V,Q=>{r(l).videoSize&&Q(Qe)})}var ce=P(V,2);{var Fe=Q=>{var be=P_(),ae=P(h(be),2),Ie=h(ae,!0);g(ae),g(be),S(()=>pe(Ie,r(l).cdn)),_(Q,be)};L(ce,Q=>{r(l).cdn&&Q(Fe)})}var z=P(ce,2);{var ie=Q=>{var be=A_(),ae=P(h(be),2),Ie=h(ae);g(ae),g(be),S(()=>pe(Ie,`${r(l).volume??""} %`)),_(Q,be)};L(z,Q=>{r(l).volume&&Q(ie)})}var Te=P(z,2);{var J=Q=>{var be=M_(),ae=P(h(be),2),Ie=h(ae);g(ae),g(be),S(nt=>pe(Ie,`${nt??""} s`),[()=>r(l).buffer.toFixed(2)]),_(Q,be)};L(Te,Q=>{r(l).buffer&&Q(J)})}var Ue=P(Te,2);{var ot=Q=>{var be=L_(),ae=P(h(be),2),Ie=h(ae);g(ae),g(be),S(nt=>pe(Ie,`${nt??""} s`),[()=>r(l).liveLatency.toFixed(2)]),_(Q,be)};L(Ue,Q=>{r(l).liveLatency&&Q(ot)})}var de=P(Ue,2);{var Ae=Q=>{var be=V_(),ae=P(h(be),2),Ie=h(ae,!0);g(ae),g(be),S(nt=>pe(Ie,nt),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:nt})=>nt).map(({value:nt,title:Re})=>`${Re} ${((nt??0)/1e3).toFixed(2)} s`).join(" & ")]),_(Q,be)};L(de,Q=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&Q(Ae)})}var qe=P(de,2),je=P(h(qe),2),mt=h(je);g(je),g(qe);var ft=P(qe,2);{var Xe=Q=>{var be=R_(),ae=P(h(be),2);Al(ae,{get values(){return r(T)}});var Ie=P(ae,2),nt=h(Ie);g(Ie),g(be),S(Re=>pe(nt,`${Re??""} Kbps`),[()=>r(l).speed.toFixed(2)]),_(Q,be)};L(ft,Q=>{r(l).speed&&Q(Xe)})}var $t=P(ft,2);{var ct=Q=>{var be=B_(),ae=P(h(be),2);Al(ae,{get values(){return r(C)}});var Ie=P(ae,2),nt=h(Ie);g(Ie),g(be),S(Re=>pe(nt,`${Re??""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),_(Q,be)};L($t,Q=>{r(l).bitrate&&Q(ct)})}var Lt=P($t,2),zt=P(h(Lt),2);Al(zt,{get values(){return r(k)}});var ze=P(zt,2),Et=h(ze,!0);g(ze),g(Lt),g(K),g(A),S(Q=>{E=Z(A,1,"container svelte-4deykz",null,E,Q),pe(ne,r(l).version),pe(mt,`${r(b)??""} / ${r(u)??""} frames`),pe(Et,r(p))},[()=>({"container-mobile":n()})]),_(t,A),H(),o()}it(["click"]);import{noop as O_}from"@vkontakte/videoplayer-shared";var H_=(t,e)=>{t.stopPropagation(),e()()},F_=M('<div class="close svelte-1ome55p"></div>'),U_={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 za(t,e){O(e,!0),U(t,U_);let i=m(e,"onClick",3,O_);var o=F_();o.__click=[H_,i],_(t,o),H()}it(["click"]);import{noop as z_}from"@vkontakte/videoplayer-shared";var W_=M('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),q_={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 Ll(t,e){O(e,!0),U(t,q_);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,z_),n=5e3,a=Y(void 0),s,d,l=Y(0),c;He(()=>{i()&&(d=Date.now(),N(l,le(requestAnimationFrame(b))))});let u=()=>{r(l)&&(cancelAnimationFrame(r(l)),N(l,0))},b=()=>{if(!i()){u();return}c=(Date.now()-d)/n,c<1?(s?.clearRect(0,0,100,100),s?.beginPath(),s?.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),s?.stroke(),N(l,le(requestAnimationFrame(b)))):o()()};At(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{u()}}),sn(()=>{u()});var p=W_(),$=h(p);dt($,w=>N(a,w),()=>r(a)),he(2),g(p),_(t,p),H()}var K_=(t,e,i)=>{e(!1),i()},Q_=M('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),G_={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 kp(t,e){O(e,!0),U(t,G_);let[i,o]=Ve(),n=()=>y(d,"$autoplayNextEnabled$",i),a=()=>y(l,"$timerNextVideoRunning$",i),s=ye(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,c=s.actions.internal.nextVideoClick,u=s.actions.internal.nextVideoAnnouncementShow,b=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(c(!1),p())},x=()=>{e.clickCloseIcon(),$()};At(()=>{e.isHide||u(),e.isHide&&n()&&(c(!1),p())});var k=Oe(),T=se(k);{var C=R=>{var A=Q_(),E=P(se(A),2),B=h(E),K=h(B),q=h(K,!0);g(K);var te=P(K,2);za(te,{onClick:x}),g(B);var ne=P(B,2);ne.__click=[K_,c,b];var ve=h(ne),j=h(ve),ge=h(j);let X;var Pe=P(ge,2);{var Ee=oe=>{let V=v(()=>a()&&n());Ll(oe,{get isRunning(){return r(V)},onTimerEnded:w})};L(Pe,oe=>{n()&&oe(Ee)})}g(j),g(ve);var Me=P(ve,2),ue=h(Me),De=h(ue,!0);g(ue),g(Me),g(ne),g(E),S((oe,V)=>{pe(q,oe),et(j,`background-image: url('${e.thumb}')`),X=Z(ge,1,"thumb-overlay svelte-jfbaax",null,X,V),pe(De,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),_(R,A)};L(T,R=>{e.isHide||R(C)})}_(t,k),H(),o()}it(["click"]);import{PlaybackState as Wa}from"@vkontakte/videoplayer-core";import{checkNever as j_}from"@vkontakte/videoplayer-shared";import{SeekAction as ln}from"@vkontakte/videoplayer-statistics";var Tp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Ip=(t,e)=>Math.max(+(t-e).toFixed(2),0),yc=(t,e,i)=>{let o=Tp(e,i);e<1?t.actions.internal.setVolume(o):$e(t.state.muted$)&&t.actions.external.setMuted(!1)},xc=(t,e,i)=>{let o=Ip(e,i);e>0&&t.actions.internal.setVolume(o)};var ua=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o?.(),!1):e?!0:(n?.(),!1);var Z_=(t,e)=>{e(t)},X_=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),J_={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Ep(t,e){O(e,!0),U(t,J_);let[i,o]=Ve(),n=()=>y(q,"$playbackState$",i),a=()=>y(te,"$adPlaybackState",i),s=()=>y(ge,"$disabledControls$",i),d=()=>y(ne,"$positionExact$",i),l=()=>y(ve,"$duration$",i),c=()=>y(ie,"$isAudioAvailable$",i),u=()=>y(j,"$volume$",i),b=()=>y(Me,"$availablePlaybackRates$",i),p=()=>y(Ee,"$currentPlaybackRate$",i),$=()=>y(J,"$isInteractiveTime$",i),w=()=>y(Ue,"$showInteractiveTimeIndicatorTooltip$",i),x=()=>y(Qe,"$isEnded$",i),k=()=>y(X,"$muted$",i),T=()=>y(Pe,"$currentSubtitle$",i),C=()=>y(ce,"$overlayContainer$",i),R=m(e,"nextButtonActive",3,!1),A=m(e,"prevButtonActive",3,!1),E=ye(),B=Mt(),K=E.getLogger().createComponentLog("KeyboardControls component"),q=E.state.playbackState$,te=E.ads.playbackState,ne=E.state.positionExact$,ve=E.state.duration$,j=E.state.volume$,ge=E.ui.controls.disabledControls$,X=E.state.muted$,Pe=E.state.currentSubtitle$,Ee=E.state.currentPlaybackRate$,Me=E.state.availablePlaybackRates$,ue=E.ui.contextMenu.openedByHotKey$,De=E.ui.contextMenu.lastActiveElem$,oe=E.ui.contextMenu.visible$,V=E.ui.contextMenu.position$,Qe=E.state.isEnded$,ce=E.ui.overlayContainer$,Fe=E.callbacks?.onAudioDoesNotExistHint,z=E.callbacks?.onAudioDisabledHint,ie=E.state.isAudioAvailable$,Te=E.state.isAudioDisabled,J=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ue}=zi(),ot=0,de=!0,Ae=Y(void 0),qe=ze=>(ze!==de&&(de=ze,ot=0),ot+=1,(B.controls.seekStepKeyboard+B.controls.seekStepKeyboard*ot)/1e3),je=(ze,Et=!1)=>{let Q=ze.target,be=Q?.getAttribute("role")?.includes("menuitem"),ae=Q.classList.contains("btn"),Ie=ze.code;if(ae&&Ie==="Space")return!1;let nt=dg.has(Ie);if(be&&nt)return!1;let Re=!lg.has(Ie);if(ze.ctrlKey&&Re||ze.altKey&&Re||ze.metaKey)return!1;let me=be&&Ie==="Escape";cg.has(Ie)||me||e.hideContextMenu();let Ge=n()===Wa.PLAYING||n()===Wa.PAUSED,pt=e.isAds&&(a()==="paused"||a()==="playing"),kt=!pt&&!s().has("TIMELINE");if(!(Ge||pt))return!1;K({message:`key down, code: ${Ie}, isExternal = ${Et}`});let qt=!1,Be=()=>{qt=!0,Et||ze.preventDefault()};switch(Ie){case"KeyJ":case"ArrowLeft":{if(!kt)break;if(ze.ctrlKey||ze.altKey){let Ze=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(Ze),Ze&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ze.text}),Be()}else{let Ze=ze.shiftKey?qe(!1):B.controls.seekStepKeyboard/1e3,Ht=Math.max(d()-Ze,0);d()>0&&(E.actions.internal.seekTime(Ht,ln.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ze.toString()}),Be())}break}case"KeyL":case"ArrowRight":{if(!kt)break;if(ze.ctrlKey||ze.altKey){let Ze=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(Ze),Ze&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ze.text}),Be()}else{let Ze=ze.shiftKey?qe(!0):B.controls.seekStepKeyboard/1e3,Ht=Math.min(d()+Ze,l());Math.round(d())<Math.round(l())&&(E.actions.internal.seekTime(Ht,ln.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ze.toString()}),Be())}break}case"ArrowUp":{if(ua({isAudioDisabled:Te,audioDisabledHintCallback:z,isAudioAvailable:c(),audioIsNotExistHintCallback:Fe,isAds:e.isAds})){let Ze=u(),Ht=B.controls.volumeStepKeyboard,yi=Ze<=1;if(yc(E,Ze,Ht),yi){let xi=Math.round(Tp(Ze,Ht)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:xi}})}}Be();break}case"ArrowDown":{if(ua({isAudioDisabled:Te,audioDisabledHintCallback:z,isAudioAvailable:c(),audioIsNotExistHintCallback:Fe,isAds:e.isAds})){let Ze=u(),Ht=B.controls.volumeStepKeyboard,yi=Ze>=0;if(xc(E,Ze,Ht),yi){let xi=Math.round(Ip(Ze,Ht)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:xi}})}}Be();break}case"Comma":{if(ze.shiftKey){E.actions.internal.decrementPlaybackRate();let Ze=b().find(Ht=>Ht.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ze?.displayValue}),Be()}else{if(pt||n()!==Wa.PAUSED)break;let Ze=Math.max(d()-B.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(Ze,ln.DOUBLE_TAP),Be())}break}case"Period":{if(ze.shiftKey){E.actions.internal.incrementPlaybackRate();let Ze=b().find(Ht=>Ht.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:Ze?.displayValue}),Be()}else{if(pt||n()!==Wa.PAUSED)break;let Ze=Math.min(d()+B.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(Ze,ln.DOUBLE_TAP),Be())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&Ue.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let Ze="PLAY";n()===Wa.PAUSED?Ze="PAUSE":x()&&(Ze="REPLAY"),e.showHotKeyHelpers({type:Ze})}Be();break;case"KeyM":{ua({isAudioDisabled:Te,audioDisabledHintCallback:z,isAudioAvailable:c(),audioIsNotExistHintCallback:Fe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:k()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),Be();break}case"KeyF":e.toggleFullscreen(),Be();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:T()?.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Be();break;case"KeyI":E.actions.internal.togglePictureInPicture(),Be();break;case"Digit1":case"Numpad1":if(ze.shiftKey){let Ze=nh(C());V.set(Ze),De.set(Q),ue.set(!0),oe.set(!0),Be();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,ln.DOUBLE_TAP),Be();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,ln.DOUBLE_TAP),Be();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,ln.DOUBLE_TAP),Be();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,ln.DOUBLE_TAP),Be();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,ln.DOUBLE_TAP),Be();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,ln.DOUBLE_TAP),Be();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,ln.DOUBLE_TAP),Be();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,ln.DOUBLE_TAP),Be();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,ln.DOUBLE_TAP),Be();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,ln.DOUBLE_TAP),Be();break;case"Slash":{ze.shiftKey&&B.features.hotKeyMapModal&&(e.showKeyMap(),Be());break}case"KeyN":ze.shiftKey&&R()&&(E.actions.internal.nextVideoClick(),Be());break;case"KeyP":ze.shiftKey&&A()&&(E.actions.internal.prevVideoClick(),Be());break;case"ShiftLeft":case"ShiftRight":Be();break;case"Tab":case"Escape":case"Enter":break;default:j_(Ie);break}return qt},mt=ze=>{let Et=ze.code;if(ze.ctrlKey||ze.altKey||ze.metaKey)return;let Q=n()===Wa.PLAYING||n()===Wa.PAUSED,be=e.isAds&&(a()==="paused"||a()==="playing");if(Q||be)switch(Et){case"ShiftLeft":case"ShiftRight":ot=0;break}},ft=F("aria_label_video_player"),Xe=()=>r(Ae)?.focus(),$t=ze=>ze.type==="keydown"?je(ze,!0):(ze.type==="keyup"&&mt(ze),!1);var ct=X_();ct.__keyup=mt,ct.__keydown=[Z_,je],Le(ct,"aria-label",ft);var Lt=h(ct);fe(Lt,()=>e.children??ee),g(ct),dt(ct,ze=>N(Ae,ze),()=>r(Ae)),_(t,ct);var zt=H({focus:Xe,handleExternalKeyboardEvent:$t});return o(),zt}it(["keyup","keydown"]);var eb=M('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),tb={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.`},Bg=T0;var Qr=new Map;Qr.set(Og.EN,Bg)
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 Ka(t,e){U(t,eb);let i=m(e,"style",3,"");var o=J_();S(()=>it(o,i())),b(t,o)}var tb=ge('<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 Ep(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=tb();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(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})),b(t,o)}import{noop as Os}from"@vkontakte/videoplayer-shared";var ib=t=>{t.stopPropagation()},ob=M("<button><!></button>"),nb={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 qa(t,e){U(t,tb);let i=m(e,"style",3,"");var o=eb();S(()=>et(o,i())),_(t,o)}var ib=_e('<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 Pp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=ib();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(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 Ds}from"@vkontakte/videoplayer-shared";var ob=t=>{t.stopPropagation()},nb=M("<button><!></button>"),rb={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.`},Bg=T0;var Qr=new Map;Qr.set(Og.EN,Bg)
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 It(t,e){H(e,!0),U(t,nb);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),c=m(e,"ariaKeyShortCut",3,void 0),p=m(e,"ariaExpanded",3,void 0),_=m(e,"tabIndex",3,0),u=m(e,"click",3,Os),$=m(e,"focus",3,Os),w=m(e,"blur",3,Os),x=v(()=>u()===Os?null:L=>{L.stopPropagation(),u()(L)}),C=v(()=>$()===Os?null:L=>{L.preventDefault(),$()()}),T=v(()=>w()===Os?null:L=>{L.preventDefault(),w()()});var I=ob();I.__pointerdown=[ib],I.__click=function(...L){r(x)?.apply(this,L)};var A=h(I);me(A,()=>e.children??te),g(I),lt(I,L=>l(L),()=>l()),S(()=>{Y(I,1,`btn ${i()??""}`,"svelte-wr0kwr"),it(I,o()||null),I.disabled=n()??null,Ne(I,"aria-hidden",s()??null),Ne(I,"aria-label",d()??null),Ne(I,"aria-keyshortcuts",c()??null),Ne(I,"aria-expanded",p()??null),Ne(I,"data-testid",a()??null),Ne(I,"tabindex",_())}),ht("focus",I,function(...L){r(C)?.apply(this,L)}),ht("blur",I,function(...L){r(T)?.apply(this,L)}),b(t,I),F()}nt(["pointerdown","click"]);var rb=M('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),ab=M('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),sb={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 Pp(t,e){H(e,!0),U(t,sb);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=O("hotkey_map_modal_close_btn_text");var a=ab(),s=h(a),d=h(s);{var l=u=>{var $=rb(),w=h($),x=h(w,!0);g(w);var C=P(w,2);{var T=I=>{It(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(A,L)=>{Ep(A,{})},$$slots:{default:!0}})};V(C,I=>{o()&&I(T)})}g($),S(()=>fe(x,e.title)),b(u,$)};V(d,u=>{i()&&u(l)})}var c=P(d,2),p=h(c),_=h(p);me(_,()=>e.children??te),g(p),g(c),g(s),g(a),b(t,a),F()}var lb=new Set(["BR"]),ah=t=>{let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let n=i[o],a=n.tagName;lb.has(a)||n.parentElement?.removeChild(n)}return e.innerHTML};var db=M('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),cb=M('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),ub=M('<div class="hot-key-map svelte-quklnq"></div>'),pb={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 It(t,e){O(e,!0),U(t,rb);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),c=m(e,"ariaKeyShortCut",3,void 0),u=m(e,"ariaExpanded",3,void 0),b=m(e,"tabIndex",3,0),p=m(e,"click",3,Ds),$=m(e,"focus",3,Ds),w=m(e,"blur",3,Ds),x=v(()=>p()===Ds?null:A=>{A.stopPropagation(),p()(A)}),k=v(()=>$()===Ds?null:A=>{A.preventDefault(),$()()}),T=v(()=>w()===Ds?null:A=>{A.preventDefault(),w()()});var C=nb();C.__pointerdown=[ob],C.__click=function(...A){r(x)?.apply(this,A)};var R=h(C);fe(R,()=>e.children??ee),g(C),dt(C,A=>l(A),()=>l()),S(()=>{Z(C,1,`btn ${i()??""}`,"svelte-wr0kwr"),et(C,o()||null),C.disabled=n()??null,Le(C,"aria-hidden",s()??null),Le(C,"aria-label",d()??null),Le(C,"aria-keyshortcuts",c()??null),Le(C,"aria-expanded",u()??null),Le(C,"data-testid",a()??null),Le(C,"tabindex",b()),Le(C,"role",e.role)}),_t("focus",C,function(...A){r(k)?.apply(this,A)}),_t("blur",C,function(...A){r(T)?.apply(this,A)}),_(t,C),H()}it(["pointerdown","click"]);var ab=M('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),sb=M('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),lb={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 Ap(t,e){O(e,!0),U(t,lb);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var a=sb(),s=h(a),d=h(s);{var l=p=>{var $=ab(),w=h($),x=h(w,!0);g(w);var k=P(w,2);{var T=C=>{It(C,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(R,A)=>{Pp(R,{})},$$slots:{default:!0}})};L(k,C=>{o()&&C(T)})}g($),S(()=>pe(x,e.title)),_(p,$)};L(d,p=>{i()&&p(l)})}var c=P(d,2),u=h(c),b=h(u);fe(b,()=>e.children??ee),g(u),g(c),g(s),g(a),_(t,a),H()}var db=new Set(["BR"]),sh=t=>{let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let n=i[o],a=n.tagName;db.has(a)||n.parentElement?.removeChild(n)}return e.innerHTML};var cb=M('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),ub=M('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),pb=M('<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,
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 Ap(t,e){H(e,!1),U(t,pb);let[i,o]=Le(),n=()=>y(s,"$data",i),a=$e(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};ur(),Pp(t,{get title(){return n().title},onClose:l,children:(c,p)=>{var _=ub();ci(_,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>r($).title,x=()=>r($).items;var C=cb(),T=h(C),I=h(T,!0);g(T);var A=P(T,2);ci(A,5,x,({description:L,value:E})=>E,(L,E)=>{let N=()=>r(E).description,W=()=>r(E).value;var K=db(),Z=h(K),oe=h(Z);vl(oe,()=>ah(N()),!1,!1),g(Z);var ue=P(Z,2),j=h(ue,!0);g(ue),g(K),S(()=>fe(j,W())),b(L,K)}),g(A),g(C),S(()=>fe(I,w())),b(u,C)}),g(_),b(c,_)},$$slots:{default:!0}}),F(),o()}import{noop as Eh}from"@vkontakte/videoplayer-shared";import{ChromecastState as Ch,PlaybackState as hf}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-shared";var fb=M('<div class="pillow svelte-1oe0j8n"><!></div>'),mb={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 Mp(t,e){U(t,mb);var i=fb(),o=h(i);me(o,()=>e.children??te),g(i),b(t,i)}import{VideoQuality as Nl}from"@vkontakte/videoplayer-shared";var vb=ge('<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 Lp(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=vb();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var gb=ge('<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 Vp(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=gb();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var hb=ge('<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 Rp(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=hb();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var _b=ge('<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 Vl(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=_b();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),b(t,o)}var bb=ge('<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 Rl(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=bb();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),b(t,o)}var wc=t=>{switch(t){case Nl.Q_720P:return Rp;case Nl.Q_1080P:return Vl;case Nl.Q_1440P:return Rl;case Nl.Q_2160P:return Lp;case Nl.Q_4320P:return Vp}};var $b=ge('<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 Np(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=$b();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}var yb=ge('<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 Bp(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=yb();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),b(t,o)}var xb=M('<div aria-hidden="true"><!> <!></div>'),wb={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 Bl(t,e){H(e,!0),U(t,wb);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=v(()=>wc(o())),a=v(()=>!!r(n)&&[Vl,Rl].includes(r(n)));var s=De(),d=le(s);{var l=p=>{Np(p,{})},c=p=>{var _=xb();let u;var $=h(_);{var w=T=>{Mp(T,{children:(I,A)=>{var L=De(),E=le(L);ui(E,()=>r(n),(N,W)=>{W(N,{})}),b(I,L)},$$slots:{default:!0}})};V($,T=>{r(n)&&T(w)})}var x=P($,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");Bp(x,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g(_),S(T=>u=Y(_,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(a)})]),b(p,_)};V(d,p=>{i()?p(l):p(c,!1)})}b(t,s),F()}var Sb=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Cb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Hs(t,e){H(e,!0),U(t,Cb);let[i,o]=Le(),n=()=>y(e.ref$,"$ref$",i),a=()=>y(p,"$settingsMenuVisible",i),s=()=>y($,"$isMobile",i),d=()=>y(c,"$currentQuality",i),l=$e(),c=l.state.currentQuality$,p=l.ui.settingsMenu.visible$,_=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,x=G(void 0);He(()=>{n()&&vt(()=>{e.ref$.set(r(x))})});let C=v(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));async function T(A){let L=ua(A);a()?u():_(L,Yi)}let I=v(()=>a()?"opened":"");It(t,{get className(){return r(I)},testId:"btn-settings",click:T,get ariaLabel(){return r(C)},get ariaExpanded(){return a()},get ref(){return r(x)},set ref(A){B(x,ce(A))},children:(A,L)=>{var E=Sb(),N=h(E);Bl(N,{get isMobile(){return s()},get currentQuality(){return d()}}),g(E),b(A,E)},$$slots:{default:!0}}),F(),o()}var kb=ge('<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 Dp(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=kb();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}var Tb=ge('<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 Dl(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Tb();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}function Op(t,e){H(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=$e().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));It(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Pr.KeyC},children:(s,d)=>{var l=De(),c=le(l);{var p=u=>{Dp(u,{})},_=u=>{Dl(u,{})};V(c,u=>{i()?u(p):u(_,!1)})}b(s,l)},$$slots:{default:!0}}),F()}var Ib=M('<span class="duration svelte-sz9er7"> </span>'),Eb=M('<div><span class="current svelte-sz9er7"> </span> <!></div>'),Pb={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 Ol(t,e){H(e,!0),U(t,Pb);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),a=v(()=>Oo(e.duration)),s=v(()=>Oo(e.position));var d=Eb();let l;var c=h(d),p=h(c,!0);g(c);var _=P(c,2);{var u=$=>{var w=Ib(),x=h(w,!0);g(w),S(()=>fe(x,r(a))),b($,w)};V(_,$=>{o()&&$(u)})}g(d),lt(d,$=>n($),()=>n()),S($=>{l=Y(d,1,"time svelte-sz9er7",null,l,$),fe(p,r(s))},[()=>({mobile:i()})]),b(t,d),F()}import{noop as Sc}from"@vkontakte/videoplayer-shared";var Ab=ge('<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>'),Mb={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 Mp(t,e){O(e,!1),U(t,fb);let[i,o]=Ve(),n=()=>y(s,"$data",i),a=ye(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};fr(),Ap(t,{get title(){return n().title},onClose:l,children:(c,u)=>{var b=pb();ci(b,5,()=>n().groups,({title:p,items:$})=>p,(p,$)=>{let w=()=>r($).title,x=()=>r($).items;var k=ub(),T=h(k),C=h(T,!0);g(T);var R=P(T,2);ci(R,5,x,({description:A,value:E})=>E,(A,E)=>{let B=()=>r(E).description,K=()=>r(E).value;var q=cb(),te=h(q),ne=h(te);vl(ne,()=>sh(B()),!1,!1),g(te);var ve=P(te,2),j=h(ve,!0);g(ve),g(q),S(()=>pe(j,K())),_(A,q)}),g(R),g(k),S(()=>pe(C,w())),_(p,k)}),g(b),_(c,b)},$$slots:{default:!0}}),H(),o()}import{noop as Ph}from"@vkontakte/videoplayer-shared";import{ChromecastState as kh,PlaybackState as _f}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-shared";var mb=M('<div class="pillow svelte-1oe0j8n"><!></div>'),vb={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 Lp(t,e){U(t,vb);var i=mb(),o=h(i);fe(o,()=>e.children??ee),g(i),_(t,i)}import{VideoQuality as Bl}from"@vkontakte/videoplayer-shared";var gb=_e('<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 Vp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=gb();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),_(t,o)}var hb=_e('<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 Rp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=hb();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),_(t,o)}var _b=_e('<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 Bp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=_b();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),_(t,o)}var bb=_e('<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 Vl(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=bb();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),_(t,o)}var $b=_e('<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 Rl(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=$b();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),_(t,o)}var wc=t=>{switch(t){case Bl.Q_720P:return Bp;case Bl.Q_1080P:return Vl;case Bl.Q_1440P:return Rl;case Bl.Q_2160P:return Vp;case Bl.Q_4320P:return Rp}};var yb=_e('<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 Np(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=yb();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 xb=_e('<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 Dp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=xb();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(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 wb=M('<div aria-hidden="true"><!> <!></div>'),Sb={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 Nl(t,e){O(e,!0),U(t,Sb);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=v(()=>wc(o())),a=v(()=>!!r(n)&&[Vl,Rl].includes(r(n)));var s=Oe(),d=se(s);{var l=u=>{Np(u,{})},c=u=>{var b=wb();let p;var $=h(b);{var w=T=>{Lp(T,{children:(C,R)=>{var A=Oe(),E=se(A);ui(E,()=>r(n),(B,K)=>{K(B,{})}),_(C,A)},$$slots:{default:!0}})};L($,T=>{r(n)&&T(w)})}var x=P($,2);let k=v(()=>r(n)?"settings-icon--labeled":"settings-icon");Dp(x,{get"data-testid"(){return r(k)},fill:"var(--btn-color, #fff)"}),g(b),S(T=>p=Z(b,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:r(a)})]),_(u,b)};L(d,u=>{i()?u(l):u(c,!1)})}_(t,s),H()}var Cb=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),kb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Os(t,e){O(e,!0),U(t,kb);let[i,o]=Ve(),n=()=>y(e.ref$,"$ref$",i),a=()=>y(u,"$settingsMenuVisible",i),s=()=>y($,"$isMobile",i),d=()=>y(c,"$currentQuality",i),l=ye(),c=l.state.currentQuality$,u=l.ui.settingsMenu.visible$,b=l.actions.internal.openSettingsMenu,p=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,x=Y(void 0);He(()=>{n()&&gt(()=>{e.ref$.set(r(x))})});let k=w("aria_label_settings");async function T(R){let A=ca(R);a()?p():b(A,to)}let C=v(()=>a()?"opened":"");It(t,{get className(){return r(C)},testId:"btn-settings",click:T,ariaLabel:k,get ariaExpanded(){return a()},get ref(){return r(x)},set ref(R){N(x,le(R))},children:(R,A)=>{var E=Cb(),B=h(E);Nl(B,{get isMobile(){return s()},get currentQuality(){return d()}}),g(E),_(R,E)},$$slots:{default:!0}}),H(),o()}var Tb=_e('<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 Op(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Tb();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 Ib=_e('<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 Dl(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Ib();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 Hp(t,e){O(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=ye().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));It(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Pr.KeyC},children:(s,d)=>{var l=Oe(),c=se(l);{var u=p=>{Op(p,{})},b=p=>{Dl(p,{})};L(c,p=>{i()?p(u):p(b,!1)})}_(s,l)},$$slots:{default:!0}}),H()}var Eb=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),Pb=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),Ab={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 Ol(t,e){O(e,!0),U(t,Ab);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),a=v(()=>Ko(e.duration)),s=v(()=>Ko(e.position));var d=Pb();let l;var c=h(d),u=h(c,!0);g(c);var b=P(c,2);{var p=$=>{var w=Eb(),x=h(w,!0);g(w),S(()=>pe(x,r(a))),_($,w)};L(b,$=>{o()&&$(p)})}g(d),dt(d,$=>n($),()=>n()),S($=>{l=Z(d,1,"time svelte-sz9er7",null,l,$),pe(u,r(s))},[()=>({mobile:i()})]),_(t,d),H()}import{noop as Sc}from"@vkontakte/videoplayer-shared";var Mb=_e('<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>'),Lb={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 fa(t,e){U(t,Mb);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=Ab();S(()=>{Ne(s,"data-value",r(a)),Ne(s,"data-testid",`volume-${r(a)??""}-icon`)}),b(t,s)}import{isNonNullable as lh,noop as Sn}from"@vkontakte/videoplayer-shared";import{noop as Fp}from"@vkontakte/videoplayer-shared";import{noop as Vb}from"@vkontakte/videoplayer-shared";var Lb=M('<div class="overlay"><!></div>');function Hp(t,e){H(e,!0);let[i,o]=Le(),n=()=>y(s,"$overlayContainer$",i),s=$e().ui.overlayContainer$,d=G(void 0),l=u=>{!u||!r(d)||!u.contains(r(d))||u.removeChild(r(d))},c=u=>{!u||!r(d)||u.contains(r(d))||u.appendChild(r(d))};He(()=>{c(n())}),Lt(()=>(c(n()),()=>l(n())));var p=Lb(),_=h(p);me(_,()=>e.children??te),g(p),lt(p,u=>B(d,u),()=>r(d)),b(t,p),F(),o()}var Rb=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),Nb=M("<div><!></div> <!>",1),Bb={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 Qa(t,e){H(e,!0),U(t,Bb);let[i,o]=Le(),n=()=>y(oe,"$overlayContainer$",i),a=()=>y(Z,"$containerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"content",3,""),l=m(e,"active",15,!1),c=m(e,"translateX",3,0),p=m(e,"translateY",3,0),_=m(e,"isFullWidthWrapper",3,!1),u=m(e,"maxTooltipWidth",3,void 0),$=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,Vb),x=5,C=G(void 0),T=G(void 0),I,A=G(0),L=G(0),E=G(0),N=G(0),W=Vt(),K=$e(),Z=K.ui.playerSize,oe=K.ui.overlayContainer$;He(()=>{vt(()=>{w()(l())})});let ue=K.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!r(T)||!r(C))return;B(L,x);let ye=n().getBoundingClientRect(),Me=r(C).getBoundingClientRect(),Ge=Me.width,Xe=r(T).clientWidth,ft=a().width,ut=(Ge-Xe)/2,et=Me.left+c()-ye.left,bt=et+ut,pt=Me.top+p()-ye.top,Nt=Xe/2-x,Kt=bt<8,Ue=bt+Xe>ft-8;Kt&&(bt=8,Nt=et+Me.width/2-2.5*x),Ue&&(bt=ft-8-Xe,Nt=Me.left-ye.left+Me.width/2-bt-x),B(E,ce(bt)),B(N,pt),B(A,ce(Nt))},_e=()=>{!n()||!r(T)||!r(C)||B(L,-x)},ee=()=>{if(!n()||!r(T)||!r(C))return;B(A,x);let ye=n().getBoundingClientRect(),Me=r(C).getBoundingClientRect(),Ge=Me.height,Xe=r(T).clientHeight,ft=(Ge-Xe)/2+Xe,ut=Me.left+c()-ye.left-r(T).clientWidth,et=2,bt=ut-x;bt<8&&(bt=8);let Nt=Me.top+p()-ye.top+ft,Kt=et-ft/2,Ue=et-x;B(E,ce(bt)),B(N,Nt),B(L,Kt),B(A,Ue)},Ae=()=>{!n()||!r(T)||!r(C)||B(A,-x)},Ee=()=>{switch($()){case"top":j();break;case"bottom":_e();break;case"left":ee();break;default:Ae()}},Ve=()=>{try{if(!n()||!r(C))return;Ee(),l(!0)}catch(ye){ue({message:String(ye)})}},pe=()=>{l(!1)},Oe=()=>{r(T)&&(I||(I=window.setTimeout(Ve,W.controls.hideTimeoutTooltips)),l()&&Ve())},ie=()=>{pe(),window.clearTimeout(I),I=void 0},R=(ye,Me,Ge)=>{let Xe="";switch($()){case"top":Xe=`transform: translate(${ye}px, ${Me}px);`;break;case"bottom":Xe=`transform: translate(${ye}px, ${Me}px); top: auto; bottom: 100%;`;break;case"left":Xe=`transform: translate(${ye}px, ${Me}px); left: 0; right: auto;`;break;default:Xe=`transform: translate(${ye}px, ${Me}px);`}return Xe+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Xe+=` opacity: ${Ge?1:0}; visibility: ${Ge?"visible":"hidden"}`,Xe},Qe=(ye,Me)=>{let Ge="";switch($()){case"top":Ge=`transform: translate(${ye}px, ${Me}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ge=`transform: translate(${ye}px, ${Me}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ge=`transform: translate(${ye}px, ${Me}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ge=`transform: translate(${ye}px, ${Me}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ge},ne=v(()=>R(r(E),r(N),l())),We=v(()=>Qe(r(A),r(L)));Lt(Ee),an(()=>window.clearTimeout(I));var re=Nb(),ae=le(re);let X;ae.__mousemove=Oe,ae.__mousedown=ie,ae.__mouseup=Oe;var J=h(ae);me(J,()=>e.children??te),g(ae),lt(ae,ye=>B(C,ye),()=>r(C));var ze=P(ae,2);{var Be=ye=>{Hp(ye,{children:(Me,Ge)=>{var Xe=Rb(),ft=h(Xe),ut=h(ft,!0);g(ft);var et=P(ft,2);g(Xe),lt(Xe,bt=>B(T,bt),()=>r(T)),S(()=>{it(Xe,r(ne)),fe(ut,d()),it(et,r(We))}),b(Me,Xe)},$$slots:{default:!0}})};V(ze,ye=>{d()&&!s()&&ye(Be)})}S(ye=>X=Y(ae,1,"tooltip-wrapper svelte-hxlyne",null,X,ye),[()=>({"full-width":_()})]),ht("mouseenter",ae,Oe),ht("mouseleave",ae,ie),b(t,re),F(),o()}nt(["mousemove","mousedown","mouseup"]);var sh=t=>{t.stopPropagation()},Db=M("<div><!></div>"),Ob={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function co(t,e){H(e,!0),U(t,Ob);let[i,o]=Le(),n=()=>y(c,"$isGraphOpened$",i),a=()=>y(l,"$isMobile",i),s=$e(),d=Wi(),l=s.ui.isMobile,c=d.graphIsOpened$,p=s.ui.t,_=m(e,"className",3,""),u=m(e,"disabled",3,!1),$=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),x=m(e,"width",15,void 0),C=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),I=m(e,"tooltipActive",3,!1),A=m(e,"tooltipPlacement",3,"top"),L=m(e,"disabledTooltipContent",19,()=>p("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),N=m(e,"onTooltipVisibilityChange",3,Fp),W=m(e,"initialTranslateXPx",3,0),K=m(e,"initialTranslateYPx",19,()=>-18),Z=m(e,"mouseEnter",3,Fp),oe=m(e,"mouseLeave",3,Fp),ue=v(()=>u()?n()?p("tooltip_disabled_when_graph_on"):L():T());var j=Db();j.__pointerdown=[sh],j.__click=[sh];var _e=h(j);{var ee=Ee=>{Qa(Ee,{get content(){return r(ue)},get translateX(){return W()},get translateY(){return K()},get isFullWidthWrapper(){return C()},get active(){return I()},get placement(){return A()},get onVisibilityChange(){return N()},children:(Ve,pe)=>{var Oe=De(),ie=le(Oe);me(ie,()=>e.children??te),b(Ve,Oe)},$$slots:{default:!0}})},Ae=Ee=>{var Ve=De(),pe=le(Ve);me(pe,()=>e.children??te),b(Ee,Ve)};V(_e,Ee=>{$()&&r(ue)&&!a()?Ee(ee):Ee(Ae,!1)})}g(j),lt(j,Ee=>w(Ee),()=>w()),S(()=>{Y(j,1,`btn-container ${_()??""}`,"svelte-p9r045"),Ne(j,"aria-hidden",E()||null)}),ht("mouseenter",j,function(...Ee){Z()?.apply(this,Ee)}),ht("mouseleave",j,function(...Ee){oe()?.apply(this,Ee)}),Er(j,"clientWidth",x),b(t,j),F(),o()}nt(["pointerdown","click"]);var Hb=ge('<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 Hl(t,e){"use strict";var i=Hb(),o=h(i),n=P(o);g(i),S(()=>{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")}),b(t,i)}var Fb=M("<div><!></div>"),Ub={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 Up(t,e){H(e,!0),U(t,Ub);let o=$e().ui.t,n=G(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));co(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=Fb();let c;var p=h(l);let _=v(()=>!!e.videoEpisode.completed);Hl(p,{get completed(){return r(_)}}),g(l),S(u=>{c=Y(l,1,"interactive-episode-icon svelte-bklhpe",null,c,u),it(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Er(l,"clientWidth",u=>B(n,u)),b(s,l)},$$slots:{default:!0}}),F()}var zb=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),Wb=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),qb={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 pa(t,e){U(t,Lb);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=Mb();S(()=>{Le(s,"data-value",r(a)),Le(s,"data-testid",`volume-${r(a)??""}-icon`)}),_(t,s)}import{isNonNullable as dh,noop as kn}from"@vkontakte/videoplayer-shared";import{noop as Up}from"@vkontakte/videoplayer-shared";import{noop as Rb}from"@vkontakte/videoplayer-shared";var Vb=M('<div class="overlay"><!></div>');function Fp(t,e){O(e,!0);let[i,o]=Ve(),n=()=>y(s,"$overlayContainer$",i),s=ye().ui.overlayContainer$,d=Y(void 0),l=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},c=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};He(()=>{c(n())}),At(()=>(c(n()),()=>l(n())));var u=Vb(),b=h(u);fe(b,()=>e.children??ee),g(u),dt(u,p=>N(d,p),()=>r(d)),_(t,u),H(),o()}var Bb=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),Nb=M("<div><!></div> <!>",1),Db={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 Ka(t,e){O(e,!0),U(t,Db);let[i,o]=Ve(),n=()=>y(ne,"$overlayContainer$",i),a=()=>y(te,"$containerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"content",3,""),l=m(e,"active",15,!1),c=m(e,"translateX",3,0),u=m(e,"translateY",3,0),b=m(e,"isFullWidthWrapper",3,!1),p=m(e,"maxTooltipWidth",3,void 0),$=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,Rb),x=5,k=Y(void 0),T=Y(void 0),C,R=Y(0),A=Y(0),E=Y(0),B=Y(0),K=Mt(),q=ye(),te=q.ui.playerSize,ne=q.ui.overlayContainer$;He(()=>{gt(()=>{w()(l())})});let ve=q.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!r(T)||!r(k))return;N(A,x);let de=n().getBoundingClientRect(),Ae=r(k).getBoundingClientRect(),qe=Ae.width,je=r(T).clientWidth,mt=a().width,ft=(qe-je)/2,Xe=Ae.left+c()-de.left,$t=Xe+ft,ct=Ae.top+u()-de.top,Lt=je/2-x,zt=$t<8,ze=$t+je>mt-8;zt&&($t=8,Lt=Xe+Ae.width/2-2.5*x),ze&&($t=mt-8-je,Lt=Ae.left-de.left+Ae.width/2-$t-x),N(E,le($t)),N(B,ct),N(R,le(Lt))},ge=()=>{!n()||!r(T)||!r(k)||N(A,-x)},X=()=>{if(!n()||!r(T)||!r(k))return;N(R,x);let de=n().getBoundingClientRect(),Ae=r(k).getBoundingClientRect(),qe=Ae.height,je=r(T).clientHeight,mt=(qe-je)/2+je,ft=Ae.left+c()-de.left-r(T).clientWidth,Xe=2,$t=ft-x;$t<8&&($t=8);let Lt=Ae.top+u()-de.top+mt,zt=Xe-mt/2,ze=Xe-x;N(E,le($t)),N(B,Lt),N(A,zt),N(R,ze)},Pe=()=>{!n()||!r(T)||!r(k)||N(R,-x)},Ee=()=>{switch($()){case"top":j();break;case"bottom":ge();break;case"left":X();break;default:Pe()}},Me=()=>{try{if(!n()||!r(k))return;Ee(),l(!0)}catch(de){ve({message:String(de)})}},ue=()=>{l(!1)},De=()=>{r(T)&&(C||(C=window.setTimeout(Me,K.controls.hideTimeoutTooltips)),l()&&Me())},oe=()=>{ue(),window.clearTimeout(C),C=void 0},V=(de,Ae,qe)=>{let je="";switch($()){case"top":je=`transform: translate(${de}px, ${Ae}px);`;break;case"bottom":je=`transform: translate(${de}px, ${Ae}px); top: auto; bottom: 100%;`;break;case"left":je=`transform: translate(${de}px, ${Ae}px); left: 0; right: auto;`;break;default:je=`transform: translate(${de}px, ${Ae}px);`}return je+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,je+=` opacity: ${qe?1:0}; visibility: ${qe?"visible":"hidden"}`,je},Qe=(de,Ae)=>{let qe="";switch($()){case"top":qe=`transform: translate(${de}px, ${Ae}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":qe=`transform: translate(${de}px, ${Ae}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":qe=`transform: translate(${de}px, ${Ae}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:qe=`transform: translate(${de}px, ${Ae}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return qe},ce=v(()=>V(r(E),r(B),l())),Fe=v(()=>Qe(r(R),r(A)));At(Ee),sn(()=>window.clearTimeout(C));var z=Nb(),ie=se(z);let Te;ie.__mousemove=De,ie.__mousedown=oe,ie.__mouseup=De;var J=h(ie);fe(J,()=>e.children??ee),g(ie),dt(ie,de=>N(k,de),()=>r(k));var Ue=P(ie,2);{var ot=de=>{Fp(de,{children:(Ae,qe)=>{var je=Bb(),mt=h(je),ft=h(mt,!0);g(mt);var Xe=P(mt,2);g(je),dt(je,$t=>N(T,$t),()=>r(T)),S(()=>{et(je,r(ce)),pe(ft,d()),et(Xe,r(Fe))}),_(Ae,je)},$$slots:{default:!0}})};L(Ue,de=>{d()&&!s()&&de(ot)})}S(de=>Te=Z(ie,1,"tooltip-wrapper svelte-hxlyne",null,Te,de),[()=>({"full-width":b()})]),_t("mouseenter",ie,De),_t("mouseleave",ie,oe),_(t,z),H(),o()}it(["mousemove","mousedown","mouseup"]);var lh=t=>{t.stopPropagation()},Ob=M("<div><!></div>"),Hb={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 uo(t,e){O(e,!0),U(t,Hb);let[i,o]=Ve(),n=()=>y(c,"$isGraphOpened$",i),a=()=>y(l,"$isMobile",i),s=ye(),d=zi(),l=s.ui.isMobile,c=d.graphIsOpened$,u=s.ui.t,b=m(e,"className",3,""),p=m(e,"disabled",3,!1),$=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),x=m(e,"width",15,void 0),k=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),C=m(e,"tooltipActive",3,!1),R=m(e,"tooltipPlacement",3,"top"),A=m(e,"disabledTooltipContent",19,()=>u("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),B=m(e,"onTooltipVisibilityChange",3,Up),K=m(e,"initialTranslateXPx",3,0),q=m(e,"initialTranslateYPx",19,()=>-18),te=m(e,"mouseEnter",3,Up),ne=m(e,"mouseLeave",3,Up),ve=v(()=>p()?n()?u("tooltip_disabled_when_graph_on"):A():T());var j=Ob();j.__pointerdown=[lh],j.__click=[lh];var ge=h(j);{var X=Ee=>{Ka(Ee,{get content(){return r(ve)},get translateX(){return K()},get translateY(){return q()},get isFullWidthWrapper(){return k()},get active(){return C()},get placement(){return R()},get onVisibilityChange(){return B()},children:(Me,ue)=>{var De=Oe(),oe=se(De);fe(oe,()=>e.children??ee),_(Me,De)},$$slots:{default:!0}})},Pe=Ee=>{var Me=Oe(),ue=se(Me);fe(ue,()=>e.children??ee),_(Ee,Me)};L(ge,Ee=>{$()&&r(ve)&&!a()?Ee(X):Ee(Pe,!1)})}g(j),dt(j,Ee=>w(Ee),()=>w()),S(()=>{Z(j,1,`btn-container ${b()??""}`,"svelte-p9r045"),Le(j,"aria-hidden",E()||null)}),_t("mouseenter",j,function(...Ee){te()?.apply(this,Ee)}),_t("mouseleave",j,function(...Ee){ne()?.apply(this,Ee)}),Er(j,"clientWidth",x),_(t,j),H(),o()}it(["pointerdown","click"]);var Fb=_e('<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 Hl(t,e){"use strict";var i=Fb(),o=h(i),n=P(o);g(i),S(()=>{Le(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Le(o,"fill-opacity",e.completed?1:.24),Le(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),_(t,i)}var Ub=M("<div><!></div>"),zb={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 zp(t,e){O(e,!0),U(t,zb);let o=ye().ui.t,n=Y(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));uo(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=Ub();let c;var u=h(l);let b=v(()=>!!e.videoEpisode.completed);Hl(u,{get completed(){return r(b)}}),g(l),S(p=>{c=Z(l,1,"interactive-episode-icon svelte-bklhpe",null,c,p),et(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Er(l,"clientWidth",p=>N(n,p)),_(s,l)},$$slots:{default:!0}}),H()}var Wb=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),qb=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),Kb={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 zp(t,e){U(t,qb);let i=m(e,"videoEpisodes",19,()=>[]);var o=Wb();ci(o,21,i,n=>n.from,(n,a)=>{var s=zb();let d;var l=h(s),c=h(l),p=P(c,2);let _;g(l),g(s),S((u,$)=>{d=Y(s,1,"video-episode svelte-1u6kv8l",null,d,u),it(s,`left: ${r(a).from}%; width: ${r(a).width}%`),it(c,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),_=Y(p,1,"video-episode-filled svelte-1u6kv8l",null,_,$),it(p,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,s)}),g(o),b(t,o)}function Kb(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&B(i,ce(e().getBoundingClientRect())),o()||r(n)||!e())return;B(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function Qb(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),c=o(t.clientX);n()(l,c,r(a).width),r(s)&&d()(l)}function Gb(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;B(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function jb(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var Yb=M("<div></div>"),Zb=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),Xb=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Jb={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 Wp(t,e){U(t,Kb);let i=m(e,"videoEpisodes",19,()=>[]);var o=qb();ci(o,21,i,n=>n.from,(n,a)=>{var s=Wb();let d;var l=h(s),c=h(l),u=P(c,2);let b;g(l),g(s),S((p,$)=>{d=Z(s,1,"video-episode svelte-1u6kv8l",null,d,p),et(s,`left: ${r(a).from}%; width: ${r(a).width}%`),et(c,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),b=Z(u,1,"video-episode-filled svelte-1u6kv8l",null,b,$),et(u,`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 Qb(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&N(i,le(e().getBoundingClientRect())),o()||r(n)||!e())return;N(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function Gb(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),c=o(t.clientX);n()(l,c,r(a).width),r(s)&&d()(l)}function Yb(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;N(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function jb(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var Zb=M("<div></div>"),Xb=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),Jb=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),e$={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 Ga(t,e){H(e,!0),U(t,Jb);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),c=m(e,"squareBorders",3,!1),p=m(e,"videoEpisodes",19,()=>[]),_=m(e,"withWheelHandler",3,!1),u=m(e,"isInteractive",3,!1),$=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),x=m(e,"onPointerDown",3,Sn),C=m(e,"onHandleMove",3,Sn),T=m(e,"onPointerUp",3,Sn),I=m(e,"onPointerEnter",3,Sn),A=m(e,"onPointerMove",3,Sn),L=m(e,"onPointerLeave",3,Sn),E=m(e,"onMouseEnter",3,Sn),N=m(e,"onMouseLeave",3,Sn),W=m(e,"onWheelUp",3,Sn),K=m(e,"onWheelDown",3,Sn),Z=m(e,"onWheelLeft",3,Sn),oe=m(e,"onWheelRight",3,Sn),ue=m(e,"onDisabledClick",3,Sn),j=m(e,"loadedProgress",3,0),_e=m(e,"filledProgress",3,0),ee=m(e,"handleProgress",3,0),Ae=m(e,"ariaLabel",3,""),Ee=m(e,"ariaValueMin",3,void 0),Ve=m(e,"ariaValueMax",3,void 0),pe=m(e,"ariaValueNow",3,void 0),Oe=m(e,"ariaValueText",3,""),ie=Vt(),R=G(void 0),Qe=G(!1),ne=v(()=>Ve()??0),We=v(()=>lh(p())&&p()[p().length-1]?.time<r(ne)),re=v(()=>lh(p())&&p().length&&r(We)&&r(ne)?Ge(j()*100,_e()*100):[]);function ae(de){if(de.preventDefault(),i()&&B(R,ce(i().getBoundingClientRect())),$())return;let Pe=ye(de.clientX,de.clientY),ot=Me(de.clientX);I()(Pe,ot,r(R).width)}function X(de){de.preventDefault(),!$()&&L()()}function J(){E()()}function ze(){N()()}function Be(de){$()||_()&&(de.preventDefault(),de.deltaY<0?W()():de.deltaY>0?K()():de.deltaX>0?oe()():Z()())}function ye(de,Pe){return s()?Math.max(0,Math.min(1,(r(R).height-(Pe-r(R).top))/r(R).height)):Math.min(Math.max(de-r(R).x,0),r(R).width)/r(R).width}function Me(de){return Math.min(Math.max(de-r(R).x,0),r(R).width)}function Ge(de,Pe){let ot=ie.features.episodesClustering&&!u()?ie.episodeMinWidthPc:0,Re=[],Ie=p()[0].time/r(ne)*100,Ye=0,st=0;for(let Fe=1;Fe<p().length;Fe++)Ye=p()[Fe].time/r(ne)*100,Ye-Ie>ot&&(Re.push({from:Ie,width:Math.max(0,Ye-Ie),loadedWidth:Math.max(0,Math.min(Ye,de)-Ie),filledWidth:Math.max(0,Math.min(Ye,Pe)-Ie),interactive:p()[Fe-1].interactive,completed:p()[Fe-1].completed}),Ie=p()[Fe].time/r(ne)*100,st++);let $t={from:Ie,width:Math.max(0,100-Ie),loadedWidth:Math.max(0,Math.min(de,100)-Ie),filledWidth:Math.max(0,Math.min(Pe,100)-Ie),interactive:p()[st].interactive,completed:p()[st].completed};100-Ie<ot?(st-=1,Re[st].width+=100-Ie,Re[st].loadedWidth+=Math.max(0,Math.min(de,100)-Ie),Re[st].filledWidth+=Math.max(0,Math.min(Pe,100)-Ie)):Re[st]=$t;let Pt=p()[0].time;if(Pt!==0){let Fe=Pt/r(ne)*100;Re.unshift({from:0,width:Fe,loadedWidth:Math.min(Fe,de),filledWidth:Math.min(Fe,Pe)})}return Re}var Xe=Xb(),ft=le(Xe);{var ut=de=>{var Pe=Yb();let ot;ci(Pe,21,()=>r(re),Re=>Re.from,(Re,Ie)=>{var Ye=De(),st=le(Ye);{var $t=Pt=>{Up(Pt,{get videoEpisode(){return r(Ie)},get disabled(){return $()}})};V(st,Pt=>{r(Ie).interactive&&Pt($t)})}b(Re,Ye)}),g(Pe),S(Re=>ot=Y(Pe,1,"interactive-icons svelte-1tpemng",null,ot,Re),[()=>({mobile:l(),hidden:l()&&!r(Qe)})]),b(de,Pe)};V(ft,de=>{u()&&de(ut)})}var et=P(ft,2);let bt;et.__pointerdown=[Kb,i,R,$,Qe,ye,x],et.__pointermove=[Qb,$,ye,Me,A,R,Qe,C],et.__pointerup=[Gb,$,Qe,ye,T],et.__click=[jb,$,ue,ye];var pt=h(et);{var Nt=de=>{zp(de,{get videoEpisodes(){return r(re)},get disabled(){return $()},get isMobile(){return l()}})},Kt=de=>{var Pe=Zb(),ot=h(Pe),Re=P(ot,2);let Ie;g(Pe),S(Ye=>{it(ot,`transform: translateX(${j()*100}%);`),Ie=Y(Re,1,"filled svelte-1tpemng",null,Ie,Ye),it(Re,`transform: translateX(${_e()*100}%);`)},[()=>({"active-live":d()})]),b(de,Pe)};V(pt,de=>{r(re).length?de(Nt):de(Kt,!1)})}var Ue=P(pt,2);let Et;var q=h(Ue);let he;g(Ue),g(et),lt(et,de=>i(de),()=>i()),S((de,Pe,ot)=>{bt=Y(et,1,`slider ${o()??""}`,"svelte-1tpemng",bt,de),Ne(et,"aria-label",Ae()),Ne(et,"aria-valuemin",Ee()),Ne(et,"aria-valuemax",Ve()),Ne(et,"aria-valuenow",pe()),Ne(et,"aria-valuetext",Oe()),Ne(et,"data-testid",n()??null),Et=Y(Ue,1,"handleWrap svelte-1tpemng",null,Et,Pe),it(Ue,`transform: translateX(${ee()*100}%);`),he=Y(q,1,"handle svelte-1tpemng",null,he,ot)},[()=>({disabled:$(),"slider-dragging":r(Qe),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:c()}),()=>({hidden:w()}),()=>({"active-live":d()})]),ht("pointerenter",et,ae),ht("pointerleave",et,X),ht("mouseenter",et,J),ht("mouseleave",et,ze),ht("wheel",et,Be),b(t,Xe),F()}nt(["pointerdown","pointermove","pointerup","click"]);var Ci=(t,e)=>Ba[t]>=Ba[e],dh=(t,e)=>Ba[t]<Ba[e],ma=(t,e)=>Ba[t]<=Ba[e],ch=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var e$=M("<div><!></div>"),t$=M("<div><!> <!></div>"),i$={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 Wp(t,e){H(e,!0),U(t,i$);let[i,o]=Le(),n=()=>y(I,"$isAudioAvailable$",i),a=()=>y(_,"$muted$",i),s=()=>y(p,"$volume$",i),d=()=>y(x,"$currentGridType$",i),l=$e(),c=Vt(),p=l.state.volume$,_=l.state.muted$,{setVolume:u,startVolumeChanging:$,stopVolumeChanging:w}=l.actions.internal,x=l.ui.currentGridType$,C=l.callbacks?.onAudioDoesNotExistHint,T=l.callbacks?.onAudioDisabledHint,I=l.state.isAudioAvailable$,A=l.state.isAudioDisabled,L=l.ui.t,E=G(!1),N,W=v(()=>!n()||a()||s()===0),K=v(()=>ma(d(),"s")),Z=v(()=>r(K)?"":r(W)?!n()||A?L("tooltip_sound_unavailable"):L("tooltip_volume"):L("tooltip_volume_muted")),oe=v(()=>r(W)?L("tooltip_volume"):L("tooltip_volume_muted")),ue=v(()=>r(W)?0:s()),j=!1,_e=v(()=>n()?A&&!T:!C);function ee(Be){$(),u(Be)}function Ae(){yc(l,s(),c.controls.volumeStepWheel)}function Ee(){xc(l,s(),c.controls.volumeStepWheel)}function Ve(Be){u(Be)}function pe(Be){u(Be),w()}function Oe(){j=!0}function ie(){j=!1,ne()}function R(){clearTimeout(N),B(E,!0)}function Qe(){ne()}function ne(){N=window.setTimeout(()=>{j||B(E,!1)},c.controls.volumeBarTimeout)}function We(Be){Be.preventDefault(),Be.deltaY<0?Ae():Be.deltaY>0&&Ee()}var re=t$();let ae;var X=h(re);Qa(X,{get content(){return r(Z)},translateY:-18,children:(Be,ye)=>{let Me=v(()=>r(K)?"btn-volume-vertical":"btn-volume-horizontal");It(Be,{className:"btn-full-opacity",get disabled(){return r(_e)},get testId(){return r(Me)},get ariaLabel(){return r(oe)},get click(){return e.click},get ariaKeyShortCut(){return Pr.KeyM},children:(Ge,Xe)=>{fa(Ge,{get volume(){return s()},get muted(){return r(W)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var J=P(X,2);{var ze=Be=>{var ye=e$();let Me;var Ge=h(ye);let Xe=v(()=>r(K)?"volumeBar-slider-vertical":""),ft=v(()=>r(K)&&!r(E)),ut=v(()=>r(K)?Oe:Sc),et=v(()=>r(K)?ie:Sc),bt=v(()=>Math.round(r(ue)*100)),pt=v(()=>`${Math.round(r(ue)*100)}%`),Nt=v(()=>r(K)?"volume-slider-vertical":"volume-slider");Ga(Ge,{get className(){return r(Xe)},get isHidden(){return r(ft)},get isVertical(){return r(K)},withWheelHandler:!0,onWheelUp:Ae,onWheelDown:Ee,onPointerDown:ee,onHandleMove:Ve,onPointerUp:pe,get onPointerEnter(){return r(ut)},get onPointerLeave(){return r(et)},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(bt)},get ariaValueText(){return r(pt)},get filledProgress(){return r(ue)},get handleProgress(){return r(ue)},get testId(){return r(Nt)}}),g(ye),S(Kt=>Me=Y(ye,1,"volumeBar svelte-1auih1j",null,Me,Kt),[()=>({"volumeBar-vertical":r(K)})]),b(Be,ye)};V(J,Be=>{n()&&Be(ze)})}g(re),S(Be=>ae=Y(re,1,"volumeBar-container svelte-1auih1j",null,ae,Be),[()=>({vertical:r(K)})]),ht("mouseenter",re,function(...Be){(r(K)?R:Sc)?.apply(this,Be)}),ht("mouseleave",re,function(...Be){(r(K)?Qe:Sc)?.apply(this,Be)}),ht("wheel",re,We),b(t,re),F(),o()}import{noop as r$}from"@vkontakte/videoplayer-shared";var o$=ge('<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 qp(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=o$();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),b(t,o)}var n$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Kp(t,e){U(t,n$);let i=m(e,"isFullscreen",8,!1),o=lr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");qp(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Fl(t,e){H(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,r$),n=$e(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));It(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:c=>{let p=ua(c);a.set(p),o()()},get ariaKeyShortCut(){return Pr.KeyF},children:(c,p)=>{Kp(c,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var a$=ge('<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 Qp(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=a$();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}var s$=ge('<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 Gp(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=s$();let n;var a=h(o);me(a,()=>e.children??te),ve(4),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var l$={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 Qa(t,e){O(e,!0),U(t,e$);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),c=m(e,"squareBorders",3,!1),u=m(e,"videoEpisodes",19,()=>[]),b=m(e,"withWheelHandler",3,!1),p=m(e,"isInteractive",3,!1),$=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),x=m(e,"onPointerDown",3,kn),k=m(e,"onHandleMove",3,kn),T=m(e,"onPointerUp",3,kn),C=m(e,"onPointerEnter",3,kn),R=m(e,"onPointerMove",3,kn),A=m(e,"onPointerLeave",3,kn),E=m(e,"onMouseEnter",3,kn),B=m(e,"onMouseLeave",3,kn),K=m(e,"onWheelUp",3,kn),q=m(e,"onWheelDown",3,kn),te=m(e,"onWheelLeft",3,kn),ne=m(e,"onWheelRight",3,kn),ve=m(e,"onDisabledClick",3,kn),j=m(e,"loadedProgress",3,0),ge=m(e,"filledProgress",3,0),X=m(e,"handleProgress",3,0),Pe=m(e,"ariaLabel",3,""),Ee=m(e,"ariaValueMin",3,void 0),Me=m(e,"ariaValueMax",3,void 0),ue=m(e,"ariaValueNow",3,void 0),De=m(e,"ariaValueText",3,""),oe=Mt(),V=Y(void 0),Qe=Y(!1),ce=v(()=>Me()??0),Fe=v(()=>dh(u())&&u()[u().length-1]?.time<r(ce)),z=v(()=>dh(u())&&u().length&&r(Fe)&&r(ce)?qe(j()*100,ge()*100):[]);function ie(ae){if(ae.preventDefault(),i()&&N(V,le(i().getBoundingClientRect())),$())return;let Ie=de(ae.clientX,ae.clientY),nt=Ae(ae.clientX);C()(Ie,nt,r(V).width)}function Te(ae){ae.preventDefault(),!$()&&A()()}function J(){E()()}function Ue(){B()()}function ot(ae){$()||b()&&(ae.preventDefault(),ae.deltaY<0?K()():ae.deltaY>0?q()():ae.deltaX>0?ne()():te()())}function de(ae,Ie){return s()?Math.max(0,Math.min(1,(r(V).height-(Ie-r(V).top))/r(V).height)):Math.min(Math.max(ae-r(V).x,0),r(V).width)/r(V).width}function Ae(ae){return Math.min(Math.max(ae-r(V).x,0),r(V).width)}function qe(ae,Ie){let nt=oe.features.episodesClustering&&!p()?oe.episodeMinWidthPc:0,Re=[],me=u()[0].time/r(ce)*100,Ge=0,pt=0;for(let Be=1;Be<u().length;Be++)Ge=u()[Be].time/r(ce)*100,Ge-me>nt&&(Re.push({from:me,width:Math.max(0,Ge-me),loadedWidth:Math.max(0,Math.min(Ge,ae)-me),filledWidth:Math.max(0,Math.min(Ge,Ie)-me),interactive:u()[Be-1].interactive,completed:u()[Be-1].completed}),me=u()[Be].time/r(ce)*100,pt++);let kt={from:me,width:Math.max(0,100-me),loadedWidth:Math.max(0,Math.min(ae,100)-me),filledWidth:Math.max(0,Math.min(Ie,100)-me),interactive:u()[pt].interactive,completed:u()[pt].completed};100-me<nt?(pt-=1,Re[pt].width+=100-me,Re[pt].loadedWidth+=Math.max(0,Math.min(ae,100)-me),Re[pt].filledWidth+=Math.max(0,Math.min(Ie,100)-me)):Re[pt]=kt;let qt=u()[0].time;if(qt!==0){let Be=qt/r(ce)*100;Re.unshift({from:0,width:Be,loadedWidth:Math.min(Be,ae),filledWidth:Math.min(Be,Ie)})}return Re}var je=Jb(),mt=se(je);{var ft=ae=>{var Ie=Zb();let nt;ci(Ie,21,()=>r(z),Re=>Re.from,(Re,me)=>{var Ge=Oe(),pt=se(Ge);{var kt=qt=>{zp(qt,{get videoEpisode(){return r(me)},get disabled(){return $()}})};L(pt,qt=>{r(me).interactive&&qt(kt)})}_(Re,Ge)}),g(Ie),S(Re=>nt=Z(Ie,1,"interactive-icons svelte-1tpemng",null,nt,Re),[()=>({mobile:l(),hidden:l()&&!r(Qe)})]),_(ae,Ie)};L(mt,ae=>{p()&&ae(ft)})}var Xe=P(mt,2);let $t;Xe.__pointerdown=[Qb,i,V,$,Qe,de,x],Xe.__pointermove=[Gb,$,de,Ae,R,V,Qe,k],Xe.__pointerup=[Yb,$,Qe,de,T],Xe.__click=[jb,$,ve,de];var ct=h(Xe);{var Lt=ae=>{Wp(ae,{get videoEpisodes(){return r(z)},get disabled(){return $()},get isMobile(){return l()}})},zt=ae=>{var Ie=Xb(),nt=h(Ie),Re=P(nt,2);let me;g(Ie),S(Ge=>{et(nt,`transform: translateX(${j()*100}%);`),me=Z(Re,1,"filled svelte-1tpemng",null,me,Ge),et(Re,`transform: translateX(${ge()*100}%);`)},[()=>({"active-live":d()})]),_(ae,Ie)};L(ct,ae=>{r(z).length?ae(Lt):ae(zt,!1)})}var ze=P(ct,2);let Et;var Q=h(ze);let be;g(ze),g(Xe),dt(Xe,ae=>i(ae),()=>i()),S((ae,Ie,nt)=>{$t=Z(Xe,1,`slider ${o()??""}`,"svelte-1tpemng",$t,ae),Le(Xe,"aria-label",Pe()),Le(Xe,"aria-valuemin",Ee()),Le(Xe,"aria-valuemax",Me()),Le(Xe,"aria-valuenow",ue()),Le(Xe,"aria-valuetext",De()),Le(Xe,"data-testid",n()??null),Et=Z(ze,1,"handleWrap svelte-1tpemng",null,Et,Ie),et(ze,`transform: translateX(${X()*100}%);`),be=Z(Q,1,"handle svelte-1tpemng",null,be,nt)},[()=>({disabled:$(),"slider-dragging":r(Qe),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:c()}),()=>({hidden:w()}),()=>({"active-live":d()})]),_t("pointerenter",Xe,ie),_t("pointerleave",Xe,Te),_t("mouseenter",Xe,J),_t("mouseleave",Xe,Ue),_t("wheel",Xe,ot),_(t,je),H()}it(["pointerdown","pointermove","pointerup","click"]);var Pi=(t,e)=>Ba[t]>=Ba[e],ch=(t,e)=>Ba[t]<Ba[e],fa=(t,e)=>Ba[t]<=Ba[e],uh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var t$=M("<div><!></div>"),i$=M("<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 qp(t,e){O(e,!0),U(t,o$);let[i,o]=Ve(),n=()=>y(C,"$isAudioAvailable$",i),a=()=>y(b,"$muted$",i),s=()=>y(u,"$volume$",i),d=()=>y(x,"$currentGridType$",i),l=ye(),c=Mt(),u=l.state.volume$,b=l.state.muted$,{setVolume:p,startVolumeChanging:$,stopVolumeChanging:w}=l.actions.internal,x=l.ui.currentGridType$,k=l.callbacks?.onAudioDoesNotExistHint,T=l.callbacks?.onAudioDisabledHint,C=l.state.isAudioAvailable$,R=l.state.isAudioDisabled,A=l.ui.t,E=Y(!1),B,K=v(()=>e.isAds||n()),q=v(()=>!r(K)||a()||s()===0),te=v(()=>fa(d(),"s")),ne=v(()=>r(te)?"":r(q)?!n()||R?A("tooltip_sound_unavailable"):A("tooltip_volume_on"):A("tooltip_volume_muted")),ve=A("aria_label_volume"),j=v(()=>r(q)?0:s()),ge=!1,X=v(()=>e.isAds?!1:R?!T:n()?!1:!k);function Pe(de){$(),p(de)}function Ee(){yc(l,s(),c.controls.volumeStepWheel)}function Me(){xc(l,s(),c.controls.volumeStepWheel)}function ue(de){p(de)}function De(de){p(de),w()}function oe(){ge=!0}function V(){ge=!1,Fe()}function Qe(){clearTimeout(B),N(E,!0)}function ce(){Fe()}function Fe(){B=window.setTimeout(()=>{ge||N(E,!1)},c.controls.volumeBarTimeout)}function z(de){de.preventDefault(),de.deltaY<0?Ee():de.deltaY>0&&Me()}var ie=i$();let Te;var J=h(ie);Ka(J,{get content(){return r(ne)},translateY:-18,children:(de,Ae)=>{let qe=v(()=>r(te)?"btn-volume-vertical":"btn-volume-horizontal");It(de,{className:"btn-full-opacity",get disabled(){return r(X)},get testId(){return r(qe)},ariaLabel:ve,get click(){return e.click},get ariaKeyShortCut(){return Pr.KeyM},role:"switch",children:(je,mt)=>{pa(je,{get volume(){return s()},get muted(){return r(q)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ue=P(J,2);{var ot=de=>{var Ae=t$();let qe;var je=h(Ae);let mt=v(()=>r(te)?"volumeBar-slider-vertical":""),ft=v(()=>r(te)&&!r(E)),Xe=v(()=>r(te)?oe:Sc),$t=v(()=>r(te)?V:Sc),ct=v(()=>Math.round(r(j)*100)),Lt=v(()=>`${Math.round(r(j)*100)}%`),zt=v(()=>r(te)?"volume-slider-vertical":"volume-slider");Qa(je,{get className(){return r(mt)},get isHidden(){return r(ft)},get isVertical(){return r(te)},withWheelHandler:!0,onWheelUp:Ee,onWheelDown:Me,onPointerDown:Pe,onHandleMove:ue,onPointerUp:De,get onPointerEnter(){return r(Xe)},get onPointerLeave(){return r($t)},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(ct)},get ariaValueText(){return r(Lt)},get filledProgress(){return r(j)},get handleProgress(){return r(j)},get testId(){return r(zt)}}),g(Ae),S(ze=>qe=Z(Ae,1,"volumeBar svelte-1auih1j",null,qe,ze),[()=>({"volumeBar-vertical":r(te)})]),_(de,Ae)};L(Ue,de=>{r(K)&&de(ot)})}g(ie),S(de=>Te=Z(ie,1,"volumeBar-container svelte-1auih1j",null,Te,de),[()=>({vertical:r(te)})]),_t("mouseenter",ie,function(...de){(r(te)?Qe:Sc)?.apply(this,de)}),_t("mouseleave",ie,function(...de){(r(te)?ce:Sc)?.apply(this,de)}),_t("wheel",ie,z),_(t,ie),H(),o()}import{noop as a$}from"@vkontakte/videoplayer-shared";var n$=_e('<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 Kp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=n$();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 r$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Qp(t,e){U(t,r$);let i=m(e,"isFullscreen",8,!1),o=cr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Kp(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Fl(t,e){O(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,a$),n=ye(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));It(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:c=>{let u=ca(c);a.set(u),o()()},get ariaKeyShortCut(){return Pr.KeyF},children:(c,u)=>{Qp(c,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var s$=_e('<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 Gp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=s$();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 l$=_e('<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 Yp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=l$();let n;var a=h(o);fe(a,()=>e.children??ee),he(4),g(o),S(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),_(t,o)}var d$={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 jp(t,e){U(t,l$);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`);Gp(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function Ul(t,e){H(e,!0);let[i,o]=Le(),n=()=>y($,"$isMobile",i),a=()=>y(u,"$currentGridType$",i),s=()=>y(x,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),l=m(e,"logoClickable",3,!1),c=m(e,"targetUrl",3,""),p=Vt(),_=$e(),u=_.ui.currentGridType$,$=_.ui.isMobile,w=_.ui.t,x=_.isCyrillicRelatedInterface$,C=v(()=>p.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>p.logoType==="vk_video"||p.logoType==="vk_video_mobile"),I=v(()=>(n()||ma(a(),"l"))&&r(T)),A=()=>{e.click(),_.callbacks?.onLogoClicked?_.callbacks?.onLogoClicked():c()&&window.open(c(),"_blank")},L=v(()=>!l()),E=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");It(t,{className:"btn-full-opacity",get disabled(){return r(L)},click:A,get testId(){return r(E)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(N){d(N)},children:(N,W)=>{var K=De(),Z=le(K);{var oe=j=>{jp(j,{get short(){return r(I)},get isCyrillic(){return s()}})},ue=j=>{Qp(j,{})};V(Z,j=>{r(T)?j(oe):j(ue,!1)})}b(N,K)},$$slots:{default:!0}}),F(),o()}import{ChromecastState as f$}from"@vkontakte/videoplayer-core";import{ChromecastState as uh}from"@vkontakte/videoplayer-core";var c$=ge('<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>'),u$=ge('<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>'),p$={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 jp(t,e){U(t,d$);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`);Yp(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function Ul(t,e){O(e,!0);let[i,o]=Ve(),n=()=>y($,"$isMobile",i),a=()=>y(p,"$currentGridType$",i),s=()=>y(x,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),l=m(e,"logoClickable",3,!1),c=m(e,"targetUrl",3,""),u=Mt(),b=ye(),p=b.ui.currentGridType$,$=b.ui.isMobile,w=b.ui.t,x=b.isCyrillicRelatedInterface$,k=v(()=>u.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>u.logoType==="vk_video"||u.logoType==="vk_video_mobile"),C=v(()=>(n()||fa(a(),"l"))&&r(T)),R=()=>{e.click(),b.callbacks?.onLogoClicked?b.callbacks?.onLogoClicked():c()&&window.open(c(),"_blank")},A=v(()=>!l()),E=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");It(t,{className:"btn-full-opacity",get disabled(){return r(A)},click:R,get testId(){return r(E)},get ariaLabel(){return r(k)},get ref(){return d()},set ref(B){d(B)},children:(B,K)=>{var q=Oe(),te=se(q);{var ne=j=>{jp(j,{get short(){return r(C)},get isCyrillic(){return s()}})},ve=j=>{Gp(j,{})};L(te,j=>{r(T)?j(ne):j(ve,!1)})}_(B,q)},$$slots:{default:!0}}),H(),o()}import{ChromecastState as m$}from"@vkontakte/videoplayer-core";import{ChromecastState as ph}from"@vkontakte/videoplayer-core";var u$=_e('<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>'),p$=_e('<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) {
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.`},Bg=T0;var Qr=new Map;Qr.set(Og.EN,Bg)
225
225
  100% {
226
226
  opacity: 1;
227
227
  }
228
- }`};function Yp(t,e){H(e,!0),U(t,p$);let i=m(e,"isMobile",3,!1),o=v(()=>e.iconState===uh.CONNECTED),n=v(()=>e.iconState===uh.CONNECTING);var a=De(),s=le(a);{var d=c=>{var p=c$(),_=h(p),u=h(_),$=h(u);ve(),g(u);var w=P(u);ve(),g(_);var x=P(_),C=h(x),T=h(C);g(C),ve(),g(x),g(p),S(()=>{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)")}),b(c,p)},l=c=>{var p=u$();let _;var u=h(p),$=P(h(u),5);let w;g(u),g(p),S((x,C)=>{_=Y(p,0,"svelte-8z1bf5",null,_,x),w=Y($,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(c,p)};V(s,c=>{i()?c(d):c(l,!1)})}b(t,a),F()}import{noop as m$}from"@vkontakte/videoplayer-shared";function zl(t,e){H(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,m$),s=$e().ui.t,d=v(()=>e.state===f$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));It(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,c)=>{Yp(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),F()}var v$=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),g$={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 Zp(t,e){U(t,g$);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=G(void 0),c=G(void 0);function p(C){if(!r(c))return 0;let{width:T}=r(c).getBoundingClientRect(),I=T/2;return C<I?I+s():C>e.containerWidth-I?e.containerWidth-I-d():C}let _=v(()=>p(n()));var u=v$(),$=h(u);let w;var x=h($);me(x,()=>e.children??te),g($),lt($,C=>B(c,C),()=>r(c)),g(u),lt(u,C=>B(l,C),()=>r(l)),S(C=>{it(u,`transform: translate(${r(_)}px, ${a()}px);`),w=Y($,1,"tooltip svelte-5ygsa2",null,w,C),it($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,u)}var Cc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var ph=t=>!!(Math.round(Math.abs(t)/90)%2),fh=t=>Math.abs(t)/90%4===1;var h$=M('<div class="preview svelte-1wqg760"></div>'),_$=M('<div class="time svelte-1wqg760"> </div>'),b$=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),$$={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 Xp(t,e){H(e,!0),U(t,$$);let[i,o]=Le(),n=()=>y(w,"$rotateAlpha",i),a=()=>y(x,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),l=m(e,"isMobile",3,!1),c=m(e,"videoEpisodes",19,()=>[]),p=m(e,"progress",3,0),_=m(e,"duration",3,0),u=m(e,"isInteractive",3,!1),$=$e(),w=$.ui.rotateAlpha,x=$.ui.playerSize,C=G(0),T=G(0),I=G(""),A=G(0),L=G(0),E=G(0),N=G(0),W=v(()=>Cc(p(),_(),c())),K=v(()=>ph(n())),Z=v(()=>fh(n())),oe=v(_e),ue=v(()=>(r(Z)?1:-1)*(r(C)/2-r(T)/2)),j=v(()=>r(ue)*-1);He(()=>{(ae=>(B(C,ce(ae.width)),B(T,ce(ae.height))))(Ae())}),He(()=>{(ae=>(B(I,ce(ae.imgSrc)),B(A,ce(ae.imgWidth)),B(L,ce(ae.imgHeight)),B(E,ce(ae.imgOffsetX)),B(N,ce(ae.imgOffsetY))))(Ee(p()))});function _e(){let ae=l()?s.MOBILE:s.DESKTOP,{isVertical:X}=ee(),J=30;return r(W)?.text&&(J+=16),(X||r(K))&&(J+=18,J+=50),Math.min(Math.max(a().height-J,0),ae)}function ee(){let ae=e.previewThumbsData.frameWidth,X=e.previewThumbsData.frameHeight,J=X>ae;return{width:ae,height:X,isHorizontal:!J,isVertical:J}}function Ae(){let{height:ae,isHorizontal:X,isVertical:J,width:ze}=ee();return X&&(ae=ae/ze*r(oe),ze=r(oe)),J&&(ze=ze/ae*r(oe),ae=r(oe)),{width:ze,height:ae}}function Ee(ae){let X;e.previewThumbsData.isUV?X=Math.floor(_()*ae/e.previewThumbsData.frequency):X=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ae)));let J=Math.floor(X/e.previewThumbsData.countPerImage),ze=Math.floor(X%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Be=X%e.previewThumbsData.countPerRow,ye=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&J===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ye=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ye++);let Me=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&J===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Me=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ge=r(C)*Me,Xe=r(T)*ye,ft=-Be*r(C),ut=-ze*r(T);return{imgSrc:e.previewThumbsData.links[J],imgWidth:Ge,imgHeight:Xe,imgOffsetX:ft,imgOffsetY:ut}}var Ve=b$();let pe;var Oe=h(Ve);{var ie=ae=>{var X=h$();S(()=>it(X,`width: ${r(C)}px; height: ${r(T)}px; background-image: url(${r(I)}); background-size: ${r(A)}px ${r(L)}px; background-position: ${r(E)}px ${r(N)}px;
229
- transform: rotate(${n()}deg) ${r(K)?`translate(${r(ue)}px, ${r(j)}px)`:""};
230
- `)),b(ae,X)};V(Oe,ae=>{r(I)&&ae(ie)})}var R=P(Oe,2),Qe=h(R);{var ne=ae=>{var X=De(),J=le(X);{var ze=ye=>{var Me=Ir();S(Ge=>fe(Me,Ge),[()=>O("tooltip_episode_unfinished")]),b(ye,Me)},Be=ye=>{var Me=Ir();S(()=>fe(Me,r(W).text||"")),b(ye,Me)};V(J,ye=>{u()&&r(W).completed===!1?ye(ze):ye(Be,!1)})}b(ae,X)};V(Qe,ae=>{r(W)&&ae(ne)})}g(R);var We=P(R,2);{var re=ae=>{var X=_$(),J=h(X,!0);g(X),S(()=>fe(J,d())),b(ae,X)};V(We,ae=>{u()||ae(re)})}g(Ve),S(ae=>{pe=Y(Ve,1,"timeline-preview svelte-1wqg760",null,pe,ae),it(Ve,`width: ${r(K)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),b(t,Ve),F(),o()}var y$=M('<span class="time svelte-1jr6obn"> </span>'),x$=M("<!> <!>",1),w$={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 Jp(t,e){H(e,!0),U(t,w$);let[i,o]=Le(),n=()=>y(ue,"$interactiveEpisodes$",i),a=()=>y(E,"$duration$",i),s=()=>y(L,"$position$",i),d=()=>y(ee,"$isInteractiveExpectation$",i),l=()=>y(_e,"$isInteractiveTime$",i),c=()=>y(N,"$isLive$",i),p=()=>y(K,"$isMobile",i),_=()=>y(W,"$isActiveLive$",i),u=()=>y(A,"$bufferedProgress$",i),$=()=>y(Ve,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),x=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=$e(),I=Vt(),A=T.state.bufferedProgress$,L=T.state.positionWithScrubbing$,E=T.state.duration$,N=T.state.isLive$,W=T.state.isActiveLive$,K=T.ui.isMobile,Z=I.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,oe=T.actions.internal.getPreviewThumbsData(),ue=T.state.interactiveEpisodes$,j=T.state.isInteractive,_e=T.state.isInteractiveTime$,ee=T.state.isInteractiveExpectation$,Ae=T.actions.internal.correctSeekTimeToInteractive,Ee=T.callbacks?.onDisabledTimelineClick,Ve=T.ui.controls.disabledControls$,pe=T.callbacks?.uiInfo?.onTimelineMouseEnter,Oe=T.callbacks?.uiInfo?.onTimelineMouseLeave,ie=T.ui.t,R=I.features.interactiveResponsiveUi,Qe=v(()=>j?n():Z),ne=v(()=>Oo(a())),We=v(()=>Oo(s())),re=v(()=>s()/a()),ae=v(()=>d()||l()),X=G(!1),J=G(""),ze=G(0),Be=G(0),ye=G(0),Me=v(()=>({containerWidth:r(Be),translateXPx:r(ze),translateYPx:j&&oe?-36:-16,active:r(X)&&w()&&!r(ae)&&!R,pointer:!I.features.timelinePreview||!oe||c()})),Ge=ie("aria_timeline"),Xe=v(()=>ie("aria_timeline_value",{position:r(We),duration:r(ne)}));function ft(Re){return!Ae||!j?Re:Ae(Re*a())/a()}function ut(Re){T.actions.internal.startScrubbing(ft(Re))}function et(Re){l()||T.actions.internal.progressScrubbing(ft(Re))}function bt(Re){T.actions.internal.completeScrubbing(ft(Re)),B(X,!1)}function pt(Re,Ie,Ye){Ue(Re,Ie,Ye),B(X,!0)}function Nt(Re,Ie,Ye){Ue(Re,Ie,Ye),B(X,!0)}function Kt(){B(X,!1)}function Ue(Re,Ie,Ye){B(ye,ce(ft(Re))),B(ze,ce(Ie)),Ye&&B(Be,ce(Ye)),B(J,ce(Et(Re)))}function Et(Re){let Ie=Oo((c()?1-Re:Re)*a());return c()?`-${Ie}`:Ie}var q=x$(),he=le(q);Zp(he,Kr(()=>r(Me),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Re,Ie)=>{var Ye=De(),st=le(Ye);{var $t=Fe=>{Xp(Fe,{get time(){return r(J)},get isMobile(){return p()},get videoEpisodes(){return r(Qe)},previewThumbsData:oe,get progress(){return r(ye)},get duration(){return a()},isInteractive:j})},Pt=Fe=>{var Ze=y$(),Dt=h(Ze,!0);g(Ze),S(()=>fe(Dt,r(J))),b(Fe,Ze)};V(st,Fe=>{I.features.timelinePreview&&oe&&!c()?Fe($t):Fe(Pt,!1)})}b(Re,Ye)},$$slots:{default:!0}}));var de=P(he,2);let Pe=v(()=>Math.round(r(re)*100)),ot=v(()=>$().has("TIMELINE"));Ga(de,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return p()},ariaLabel:Ge,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Pe)},get ariaValueText(){return r(Xe)},get loadedProgress(){return u()},get filledProgress(){return r(re)},get handleProgress(){return r(re)},get videoEpisodes(){return r(Qe)},onPointerDown:ut,onHandleMove:et,onPointerMove:Nt,onPointerUp:bt,onPointerEnter:pt,onPointerLeave:Kt,onMouseEnter:pe,onMouseLeave:Oe,onDisabledClick:Ee,isInteractive:j,get disabled(){return r(ot)},get hideHandel(){return l()},get ref(){return C()},set ref(Re){C(Re)}}),b(t,q),F(),o()}var S$={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 Wl(t,e){H(e,!0),U(t,S$);let[i,o]=Le(),n=()=>y(l,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"duration",3,0),d=$e(),l=d.ui.isMobile,c=d.ui.t,p=v(()=>Oo(s())),_=v(()=>Oo(a())),u=v(()=>a()/s()),$=v(()=>c("aria_timeline_value",{position:r(_),duration:r(p)})),w=v(()=>Math.round(r(u)*100));Ga(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()}}),F(),o()}var C$=M("<div><!></div>"),k$=M("<div></div>"),T$={hash:"svelte-1h5wsmk",code:".timeline.svelte-1h5wsmk {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1h5wsmk {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1h5wsmk {padding:0;}.timeline-stub.svelte-1h5wsmk {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1h5wsmk {height:8px;}"};function ja(t,e){H(e,!0),U(t,T$);let[i,o]=Le(),n=()=>y($,"$isLive$",i),a=()=>y(C,"$isMobile",i),s=()=>y(x,"$adPosition",i),d=()=>y(w,"$adDuration",i),l=m(e,"isAds",3,!1),c=m(e,"isHidden",3,!1),p=m(e,"needPadding",3,!0),_=m(e,"ref",15,void 0),u=$e(),$=u.state.isLive$,w=u.ads.duration,x=u.ads.position,C=u.ui.isMobile,T=v(()=>!c()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=De(),A=le(I);{var L=N=>{var W=C$();let K;var Z=h(W);{var oe=j=>{Wl(j,{get position(){return s()},get duration(){return d()}})},ue=j=>{Jp(j,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return _()},set ref(_e){_(_e)}})};V(Z,j=>{l()?j(oe):j(ue,!1)})}g(W),S(j=>K=Y(W,1,"timeline svelte-1h5wsmk",null,K,j),[()=>({withoutPadding:!p(),mobile:a()})]),b(N,W)},E=N=>{var W=k$();let K;S(Z=>K=Y(W,1,"timeline-stub svelte-1h5wsmk",null,K,Z),[()=>({mobile:a()})]),b(N,W)};V(A,N=>{r(T)?N(L):N(E,!1)})}b(t,I),F(),o()}import{noop as P$}from"@vkontakte/videoplayer-shared";var I$=ge('<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 ef(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=I$();let n;var a=h(o);me(a,()=>e.children??te),ve(3),g(o),S(()=>n=xe(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})),b(t,o)}var E$=ge('<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 tf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=E$();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}var A$=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),M$=M('<span class="text svelte-1yhs2ga"> </span>'),L$=M('<span class="text count svelte-1yhs2ga"> </span>'),V$=M("<!> <!>",1),R$={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 ql(t,e){H(e,!0),U(t,R$);let[i,o]=Le(),n=()=>y(w,"$currentGridType$",i),a=()=>y(x,"$openedByKeyboard$",i),s=()=>y(C,"$panelOpened$",i),d=()=>y(T,"$isMobile",i),l=m(e,"position",3,0),c=m(e,"duration",3,0),p=m(e,"timeCodes",19,()=>[]),_=$e(),u=_.callbacks?.onEpisodeChanged??P$,$=!!_.callbacks?.onEpisodeClicked,w=_.ui.currentGridType$,x=_.ui.episodes.openedByKeyboard$,C=_.ui.episodes.panelOpened$,T=_.ui.isMobile,I=_.ui.t,A=G(void 0),L=ee=>{if(!!_.callbacks?.onEpisodeClicked){let Ee=ua(ee);x.set(Ee),C.set(!0),_.callbacks?.onEpisodeClicked?.(Ee)}},E=G(null),N=v(()=>l()/c());He(()=>{let ee=Cc(r(N),c(),p());ee?r(E)?.time!==ee.time&&(u(ee),B(E,ce(ee))):B(E,null)});let W=v(()=>r(E)?.text||""),K=v(()=>Ci(n(),"xl")?"FULL":Ci(n(),"m")&&dh(n(),"xl")?"COUNT":"SHORT"),Z=v(()=>`${I("tooltip_episodes")}: ${r(W)}`),oe=async(ee,Ae,Ee)=>{await Yi(),ee?.getAttribute("aria-expanded")==="false"&&Ae&&!Ee&&vt(()=>{x.set(!1),ee.focus()})};He(()=>{oe(r(A),a(),s())});var ue=De(),j=le(ue);{var _e=ee=>{let Ae=v(()=>d()?"px-0":"");It(ee,{get className(){return`w-max btn-full-opacity btn-jc-l ${r(Ae)??""}`},testId:"btn-episodes",click:L,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(Z)},get ref(){return r(A)},set ref(Ee){B(A,ce(Ee))},children:(Ee,Ve)=>{var pe=De(),Oe=le(pe);{var ie=Qe=>{var ne=A$(),We=le(ne),re=h(We,!0);g(We);var ae=P(We,2),X=h(ae);tf(X,{}),g(ae),S(()=>fe(re,r(W))),b(Qe,ne)},R=Qe=>{var ne=V$(),We=le(ne);ef(We,{});var re=P(We,2);{var ae=J=>{var ze=M$(),Be=h(ze,!0);g(ze),S(()=>fe(Be,r(W))),b(J,ze)},X=(J,ze)=>{{var Be=ye=>{var Me=L$(),Ge=h(Me,!0);g(Me),S(()=>fe(Ge,p().length)),b(ye,Me)};V(J,ye=>{r(K)==="COUNT"&&ye(Be)},ze)}};V(re,J=>{r(K)==="FULL"?J(ae):J(X,!1)})}b(Qe,ne)};V(Oe,Qe=>{d()?Qe(ie):Qe(R,!1)})}b(Ee,pe)},$$slots:{default:!0}})};V(j,ee=>{r(E)&&ee(_e)})}b(t,ue),F(),o()}import{debounceFn as Ry}from"@vkontakte/videoplayer-shared";import{ChromecastState as z$,PlaybackState as Kl,Player as W$,PredefinedQualityLimits as Lr,VideoFormat as Ql,clientChecker as q$}from"@vkontakte/videoplayer-core";import{assertNonNullable as Cn,getHighestQuality as K$,InterfaceLanguage as Q$,isInvariantQuality as G$,isNonNullable as j$,loadVKLangPack as Y$,Logger as Z$,map as $h,merge as X$,Observable as J$,Subject as Lc,Subscription as lf,TracerFactory as ey,ValueSubject as ty,VideoQuality as iy,devNull as oy,now as ny}from"@vkontakte/videoplayer-shared";import{SeekAction as Yr}from"@vkontakte/videoplayer-statistics";import{detectEmbed as N$,devNull as Ft,now as Ut}from"@vkontakte/videoplayer-shared";import{addScript as B$,Subject as xo,clearVideoElement as D$}from"@vkontakte/videoplayer-shared";var mh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var O$="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",kc=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 xo,loadStarted$:new xo,loadEnded$:new xo,loadError$:new xo,ready$:new xo,slotRequested$:new xo,started$:new xo,timeRemained$:new xo,paused$:new xo,resumed$:new xo,ended$:new xo,empty$:new xo,skipped$:new xo,clicked$:new xo,closed$:new xo,error$:new xo};this.loadAdman=e=>(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Ut()]}),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?(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Ut()]}),i(),this.events.loadEnded$.next()):(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Ut()]}),o())};B$(O$,e,this.loadTimeout).then(()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Ut()]}),window.AdmanHTML?(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Ut()]}),i(),this.events.loadEnded$.next()):(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Ut()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Ut()]}),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?(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Ut()]}),i(),this.events.loadEnded$.next()):(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Ut()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Ut()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Ut()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Ut()]}),!d&&(window.AdmanHTML?(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Ut()]}),i(),this.events.loadEnded$.next()):(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Ut()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Ut()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Ut(),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"}),be(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=()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",this.currentAdSection??""],numbers:[Ut()]}),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=()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",this.currentAdSection??""],numbers:[Ut()]}),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(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Ut()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",this.currentAdSection??""],numbers:[Ut()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",this.currentAdSection??""],numbers:[Ut()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",this.currentAdSection??""],numbers:[Ut()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",this.currentAdSection??""],numbers:[Ut()]}),this.log({message:"ad clicked"}),this.videoElement?.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Ut()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Ut()]}),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){if(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Ut(),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:c={},duration:p,previewParam:_}=e,u,$=this.playerState&&be(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:x}=N$(),C=(w?x:window.location.href)??window.location.href,T={...c,dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:_,...u?{request_id:u}:{},duration:p,puid10:mh(i,o),puid11:n?0:1};_||delete T.preview;let I={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let A=new window.AdmanHTML;A.setDebug(!1),A.onReady(this.onAdsReady),A.onStarted(this.onAdStarted),A.onPlayed(this.onAdPlayed),A.onPaused(this.onAdPaused),A.adMidrollPoint(this.onAdMidrollPoint),A.onClosed(this.onAdClosed),A.onSkipped(this.onAdSkipped),A.onClicked(this.onAdClicked),A.onTimeRemained(this.onAdTimeRemained),A.onCompleted(this.onAdCompleted),A.onError(this.onAdError),A.init(I),this.adman=A,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(A){Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[Ut()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){if(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",this.currentAdSection??"","force: "+e],numbers:[Ut()]}),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 o="Switch to video: Adman state was not updated correctly";this.log({message:o}),this.events.error$.next(o)}this.actions.switchFromAdsToVideo?.(!i)}}togglePlay(){if(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",this.currentAdSection??""],numbers:[Ut()]}),this.adsState){this.log({message:"toggle play"});let e=be(this.adsState.playbackState);e==="playing"?this.pause():e==="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{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{this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Ut()]}),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{this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){if(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",this.currentAdSection??""],numbers:[Ut()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{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(){if(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",this.currentAdSection??""],numbers:[Ut()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){if(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",this.currentAdSection??""],numbers:[Ut()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){if(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",this.currentAdSection??""],numbers:[Ut()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){this.adman?.setPosition(Math.floor(e),Math.floor(i))}destroy(){Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Ut()]}),this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.onReady(void 0),this.adman?.onStarted(void 0),this.adman?.onPlayed(void 0),this.adman?.onPaused(void 0),this.adman?.adMidrollPoint(void 0),this.adman?.onClosed(void 0),this.adman?.onSkipped(void 0),this.adman?.onClicked(void 0),this.adman?.onTimeRemained(void 0),this.adman?.onCompleted(void 0),this.adman?.onError(void 0),this.adman?.destroy(),this.videoElement&&D$(this.videoElement),this.isDestroyed=!0}};var vh=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 of=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 c=new Tc,{startTime:p,endTime:_}=c.parse(l);s.startTime=p,s.endTime=_}else if(l.trim()!==""){let c=new nf,{texts:p}=c.parse(l);s.texts=[...s.texts,...p]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Tc=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}},nf=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 c=["<",">"].reduce((p,_)=>{let u=s.indexOf(_,d);return p===-1||p>u?u:p},-1);if(c===-1){l.push(s.substring(d));break}l.push(s.substring(d,c)),d=c+1}return l}}),a=new Tc;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}},gh=of;import{isNonNullable as rf}from"@vkontakte/videoplayer-shared";var Ya,Kn,af=0,sf=!1,hh="",_h=(t,e=0,i=0)=>t<e&&t<i,Ic=(t,e=0,i=0)=>t>=e&&t<=i,H$=(t,e=0,i=0)=>t>e&&t>i,bh=(t,e,i,o=!1)=>{let n=i.find(({id:d})=>d===e.value)?.subtitles;if(o)return n?.find(({startTime:l,endTime:c})=>Ic(t,l,c));let a=t>=af,s=t<af;if(af=t,s&&(sf=!1),rf(Ya)&&Ic(t,Ya.startTime,Ya.endTime)&&hh===e.value)return Ya;if(!rf(Kn)&&n?.length&&!sf){Kn=n.find(({startTime:l,endTime:c})=>Ic(t,l,c)||a&&_h(t,l,c)),Ya=void 0,!rf(Kn)&&n[n.length-1].endTime<t&&(sf=!0);return}else{if(Ic(t,Kn?.startTime,Kn?.endTime))return Ya=Kn,Kn=void 0,hh=e.value,Ya;(a&&H$(t,Kn?.startTime,Kn?.endTime)||s&&_h(t,Kn?.startTime,Kn?.endTime))&&(Kn=void 0)}};var Ec={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"},F$={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Pc=t=>Ec[t]??Ec[F$[t]]??void 0;import{Subscription as U$}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-statistics";var Ac=class{constructor(e,i=new U$){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Mc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Mc||{});var Mr=t=>t??0,jr=(t,e)=>{let i=t?.getBoundingClientRect?.(),o=e?.getBoundingClientRect?.();return{top:Math.round(Mr(i?.top)-Mr(o?.top)),left:Math.round(Mr(i?.left)-Mr(o?.left)),bottom:Math.round(Mr(i?.bottom)-Mr(o?.top)),right:Math.round(Mr(i?.right)-Mr(o?.left))}},Fs=t=>{let e=t?.getBoundingClientRect?.();return{width:Mr(e?.width),height:Mr(e?.height)}};var yh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:c,videoEpisodes:p,previewThumbsData:_,uiConfig:u,coreConfig:$,player:w,disabledControls:x,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:A,stopPlayer:L,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:N,additionalButtons:W,additionalSettingsMenuItems:K,additionalContextMenuItems:Z,playPrevVideo:oe,playNextVideo:ue,looped:j=!1,statistics:_e,saveRate:ee,internalsExposure:Ae,playerView:Ee})=>{let Ve={...$,configName:[...$.configName??[],"ui"],isAudioDisabled:s,live:{...$.live??{},isLiveCatchUpMode:!!n}},pe=u,Oe=ey.createRootTracer(pe.features.tracer),ie=Oe.createComponentTracer("Store"),R=w||new W$(Ve,Oe);Ae?.expose({corePlayer:R});let Qe=new Z$,ne=new kc(Qe,{loadTimeout:pe.ads.loadTimeout,initTimeout:pe.ads.initTimeout,runtimeTimeout:pe.ads.runtimeTimeout,useAdmanFromNPM:pe.ads.useAdmanFromNPM,volumeMultiplier:pe.ads.volumeMultiplier,isVsidOriginal:pe.ads.isVsidOriginal}),We=Oa.getInstance(),re=c?.pictureInPictureApi,ae=c?.annotationsApi,X=c?.slotsApi,J=Qe.createComponentLog("Store"),ze,Be,ye={},Me=new oc,Ge=_e?qt(_e.oneStat.vsid$):Wn(void 0),Xe=se(la()),ft=se(!1),ut=re?.info.isActive$??new ty(!1),et=se(0),bt=se([]),pt=X$(R.events.fatalError$,R.events.managedError$).subscribe(f=>bt.update(k=>[...k,f])),Nt=Wn(!1,f=>{let k=R.events.fatalError$.subscribe(()=>f(!0));return()=>k.unsubscribe()}),Kt=async f=>{let k=Object.values(Q$).includes(f);if(pe.downloadVKLanguages&&(k&&pe.updateBuiltinLanguages||!fp(f))){let Se;try{Se=await Y$(f,rg,ag)}catch(at){_e?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),We?.report(at,{errorType:"VKLangPack",fatal:!1})}Se&&(pp({language:f,pack:Se,fallback:pe.defaultLanguage}),Ue.set(f))}fp(f)&&Ue.set(f)},Ue=se(t),Et=se(e);Kt(t);let q=(f,k)=>{let D=be(Ue);return mp(D,f,k,pe.defaultLanguage)},he=se("thumb"),de=(()=>{let f=si([Nt,he],([k,D])=>k?"crashed":D);return{...f,is:k=>be(f)===k}})(),Pe=(()=>{let f=se(new Set(x));return{...f,add:k=>{f.update(D=>new Set([...D].concat(k)))},remove:k=>{f.update(D=>{let Se=[...D];return new Set(Array.isArray(k)?Se.filter(at=>!k.includes(at)):Se.filter(at=>at!==k))})},includes:k=>{let D=be(f);return Array.isArray(k)?k.every(Se=>D.has(Se)):D.has(k)}}})();ie.log("create store"),J({message:"create store"});let ot=f=>{let k=f.container;k.append(R.experimental.element$.getValue()),Fe=new MutationObserver(D=>{let{removedNodes:Se}=D[0];Se.length&&k.append(R.experimental.element$.getValue())}),Fe.observe(k,{childList:!0})},Re=f=>{J({message:`init video, config: ${JSON.stringify(f)}`}),C?ot(f):(oy.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[ny()]}),R.initVideo(f)),ie.log("init video",{isInteractive:C}),f.subtitles&&R.setExternalTextTracks(f.subtitles),ze=f},Ie=new Lc,Ye=f=>Ie.next(f),st=new Lc,$t=new Lc,Pt=new Lc,Fe=null,Ze={actionRewind$:st,actionSeek$:$t,inPiP$:ut,inFullscreen$:new J$(f=>Xe.subscribe(k=>f.next(k))),actionSetSubtitle$:Pt,nextMovie$:Ie};if(_e){let{oneStat:f,statSubscription:k}=_e;C||k.add(f.attachTo(R)),k.add(f.attachToUi(Ze)),k.add(f.attachToAds(ne.events)),f.authorize(a).catch(D=>{J({message:`onestat auth error ${String(D)}`})})}if(We){let f=new lf,k=(D,Se)=>f.add(D.subscribe(Se));if(k(R.events.managedError$,D=>{We.logIError(D)}),k(R.events.fatalError$,D=>{We.logIError(D,!0)}),_e){let{oneStat:D}=_e;k(D.experimental.error$,Se=>{We.logIError(Se)})}We.sentrySubscription.add(f)}let Dt=()=>{q$.device.isIOS&&Be&&zg(Be).catch(f=>{J({message:`exitIosSafariFullscreen failed: ${f}`})})},li=new lf().add(R.experimental.element$.subscribe(f=>{f&&(Be=f,f.classList.add("player-media"),Fa(re)&&(re.updateVideoElement(),re.registryEventHandlers()),C&&f.setAttribute("pip","false"),Ee==="preview"&&(f.setAttribute("disablePictureInPicture","true"),f.setAttribute("x-yandex-pip","false")))})).add(R.events.ended$.subscribe(()=>{Dt(),l?.onEnded?.()})).add(R.events.looped$.subscribe(()=>{l?.onLooped?.()})).add(R.events.started$.subscribe(async()=>{Fa(re)&&await re?.revealPictureInPicture();let f=R.info.muted$.getValue();l?.onStarted?.(),ye.onStarted?.(f)})).add(R.events.willSeek$.subscribe(({from:f,to:k})=>{l?.onSeek?.(f,k)})).add(R.events.autoplaySoundProhibited$.subscribe(()=>{l?.onAutoplaySoundProhibited?.()})).add(R.info.position$.subscribe(f=>{let k=R.info.duration$.getValue();isFinite(k)&&k>0&&(l?.onTimeupdate?.(k,f),ne.setPosition(f,k))})).add(R.events.fatalError$.subscribe(f=>{l?.onCrashed?.(f?`${f.id}: ${f.message}`:void 0)})).add(R.events.fetcherRecoverableError$.subscribe(f=>{l?.onRecoverableError?.(f?`${f.id}: ${f.message}`:void 0)})).add(R.events.loadedMetadata$.subscribe(()=>{xt.state.loadedMetadata$.set(!0)})).add(R.info.is3DVideo$.subscribe(f=>{xt.ui.is3DVideo.set(f)})).add(R.info.isEnded$.subscribe(f=>{C&&(f?(I?.getValue()&&Pe.add($l),Pe.add("PLAY_BUTTON")):Pe.remove("PLAY_BUTTON"))})).add(R.info.liveTime$.subscribe(f=>{l?.onLiveTime?.(f)})).add(R.info.isStalled$.subscribe(f=>{l?.onStalledChanged?.(f)})).add(R.info.isLiveEnded$.subscribe(f=>f&&l?.onLiveEnded?.())).add(ne.events.loadStarted$.subscribe(()=>l?.adsInfo?.onLoadStarted?.())).add(ne.events.loadEnded$.subscribe(()=>l?.adsInfo?.onLoadEnded?.())).add(ne.events.loadError$.subscribe(()=>l?.adsInfo?.onLoadError?.())).add(ne.events.init$.subscribe(()=>l?.adsInfo?.onInit?.())).add(ne.events.ready$.subscribe(()=>l?.adsInfo?.onReady?.())).add(ne.events.started$.subscribe(f=>l?.adsInfo?.onStarted?.(f))).add(ne.events.timeRemained$.subscribe(f=>l?.adsInfo?.onTimeRemained?.(f))).add(ne.events.ended$.subscribe(f=>l?.adsInfo?.onCompleted?.(f))).add(ne.events.empty$.subscribe(()=>l?.adsInfo?.onEmpty?.())).add(ne.events.clicked$.subscribe(f=>l?.adsInfo?.onClicked?.(f))).add(ne.events.closed$.subscribe(f=>l?.adsInfo?.onClosed?.(f))).add(ne.events.error$.subscribe(f=>l?.adsInfo?.onError?.(f))).add(ne.events.paused$.subscribe(()=>l?.adsInfo?.onPaused?.())).add(ne.events.resumed$.subscribe(()=>l?.adsInfo?.onResumed?.())),pi=new lf,Ho=()=>{let{debugLog:f}=pe,k,D="#9df7b7",Se="#efd169";if(f&&f!==!0){let{colors:wt}=f;k=f.tag,D=wt?.[0]??D,Se=wt?.[1]??wt?.[0]??Se}let at=k?`: ${k}`:"";pi.add(R.events.log$.subscribe(wt=>{console.debug(`%c sdk${at} `,`background:${D};`,`sdk component: ${wt.component}`,wt.message)})).add(Qe.log$.subscribe(wt=>{console.debug(`%c ui${at} `,`background:${Se};`,`ui component: ${wt.component}.`,wt.message)}))},dn=()=>{pi.unsubscribe()},cn=(f,k)=>{ie.log("start camera manual rotation",{mx:f,my:k}),R.startCameraManualRotation(f,k)},So=(f=!1)=>{ie.log("stop camera manual rotation",{immediate:f}),R.stopCameraManualRotation(f)},Co=(f,k,D)=>{ie.log("move camera focus px",{xpx:f,ypx:k,dt:D}),R.moveCameraFocusPX(f,k,D)},qi=()=>{R.holdCamera()},Qt=()=>{R.releaseCamera()},uo=Wn(R.info.position$.getValue(),f=>{let k,D,Se=()=>{let at=R.info.playbackState$.getValue(),wt=R.info.isLive$.getValue(),Ot=R.info.duration$.getValue(),Jt=R.info.position$.getValue();if(at&&[Kl.PLAYING,Kl.PAUSED].includes(at)){let $o=wt?Jt-Ot:R.getExactTime();$o!==D&&f($o),D=$o}k=requestAnimationFrame(Se)};return Se(),()=>cancelAnimationFrame(k)}),Fo=qt(R.info.playbackState$),un=qt(R.info.currentBuffer$),eo=qt(R.info.isEnded$),Q=qt(R.info.isLive$),jt=pe.features.playbackRate?qt(R.info.canChangePlaybackSpeed$):Wn(!1),Gt=qt(R.info.liveBufferTime$),Vi=qt(R.info.volume$),oi=qt(R.info.muted$),dt=nc(R.info.predefinedQualityLimitType$.pipe($h(f=>f===Lr.TRAFFIC_SAVING)),R.info.predefinedQualityLimitType$.getValue()===Lr.TRAFFIC_SAVING),Ri=nc(R.info.predefinedQualityLimitType$.pipe($h(f=>f===Lr.HIGH_QUALITY)),R.info.predefinedQualityLimitType$.getValue()===Lr.HIGH_QUALITY),mt=qt(R.info.autoQualityLimitingAvailable$),zt=qt(R.info.availableQualities$),to=qt(R.info.availableQualitiesFps$),ki=qt(R.info.chromecastState$),Qn=qt(R.info.chromecastDeviceName$),io=qt(R.info.currentFormat$),ko=qt(R.info.throughputEstimation$),Xt=qt(R.info.videoBitrate$),gt=qt(R.info.intrinsicVideoSize$),di=qt(R.info.duration$),po=qt(R.info.isAudioAvailable$),ei=null,fo=R.info.isBuffering$,bi=Wn(fo.getValue(),f=>{let k=fo.subscribe(D=>{D&&ei===null?ei=window.setTimeout(()=>{f(fo.getValue()),ei=null},pe.loaderDelay):f(D)});return()=>{k.unsubscribe(),ei&&clearTimeout(ei)}}),oo=()=>{ei&&clearTimeout(ei),ei=null},no=si([di,Q],([f,k])=>k?-f:f),Tn=si([Fo],([f])=>f===Kl.PLAYING),ro=qt(R.info.atLiveEdge$),pn=qt(R.info.atLiveDurationEdge$),Ti=qt(R.info.position$),mo=si([Ti,di],([f,k])=>isFinite(f)&&isFinite(k)&&!!k),Uo=si([ki],([f])=>f===z$.CONNECTED),vr=qt(R.info.availableVideoStreams$),Gn=pe.features.audioLanguages?qt(R.info.availableAudioStreams$):Wn([]),In=qt(R.info.currentVideoStream$),fn=qt(R.info.currentAudioStream$),En=f=>{f.language&&up(f.language),R.setVideoStream(f)},jn=f=>{f.language&&up(f.language),R.setAudioStream(f)},Ni=f=>{let k;if(f.length===1&&(k=f.at(0)),k??=f.find(Se=>"isDefault"in Se&&Se.isDefault),k)return k;let D=Eg();return D&&(k=f.find(({language:Se})=>D===Se)),k??=f.at(0),k},vo=!1;li.add(R.info.availableAudioStreams$.subscribe(f=>{if(!vo&&f.length){let k=Ni(f);k&&(R.setAudioStream(k),vo=!0)}}));let mn=!1;li.add(R.info.availableVideoStreams$.subscribe(f=>{if(!mn&&f.length){let k=Ni(f);k&&(R.setVideoStream(k),mn=!0)}}));let tt=se(void 0),vn=qt(R.info.isAutoQualityEnabled$,f=>f&&tt.set(void 0)),Pn=qt(R.info.currentQuality$,()=>tt.set(void 0)),zo=si([tt,Pn],([f,k])=>f??k),Yn=si(io,f=>f!==Ql.MPEG),Wo=si([zt,to,vn,zo,Yn],([f,k,D,Se,at])=>{let wt=[];at&&wt.push({value:"auto",displayValue:q("auto_quality_option"),selected:D});let Ot=f.filter(Jt=>!G$(Jt));for(let Jt of Ot){let $o=k[Jt];wt.push({value:Jt,displayValue:`${Jt}${$o?vh($o):""}`,selected:D?!1:Jt===Se})}return wt}),qo=qt(R.info.currentPlaybackRate$),Ko=si([qo,ro,pn],([f,k,D])=>{let Se=D||C?1:pe.controls.playbackRateMin,at=k?1:pe.controls.playbackRateMax,wt=pe.controls.playbackRateStep,Ot=[];for(let Jt=Se;Jt<=at;Jt+=wt)Ot.push({value:Jt,displayValue:Jt===1?q("playback_rate_1"):q("playback_rate",{multiplier:Jt.toString(10)}),selected:f===Jt});return Ot}),Ii={displayValue:q("subtitles_off"),value:"off"},$i=se({...Ii}),Qo=pe.features.subtitles?qt(R.info.availableTextTracks$):Wn([]),An=$g(),To=si([Qo,$i],([f,k],D)=>{let Se=[],at=f.find(({id:wt})=>wt===k.value);if(at?.url){let[,wt]=An.find(at.url)??[];if(wt){D(wt);return}Me.download(at.url).then(Ot=>{if(!Ot||Me.isDestroyed())return;let Jt=new gh,$o=at.language;if($o){let ru=!!at.isAuto,d1=Jt.parse(Ot,$o);Se.push({lang:$o,subtitles:d1,isAuto:ru,id:at.id})}An.add(at.url,Se),be($i).value===k.value&&D(Se)}).catch(Ot=>{_e?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),We?.report(Ot,{errorType:"Subtitles download",fatal:!1})})}D(Se)}),Go=si([qo,Tn,$i],([f,k,D],Se)=>{let Ot;if(R.info.isLive$.getValue()&&k&&D.value!==Ii.value){let $o=()=>{let ru=1e3/(3*f);Ot=setTimeout($o,ru),Se(Date.now())};return $o(),()=>clearTimeout(Ot)}}),go=si([Qo,$i],([f,k])=>{if(!f.length)return[];let D=[];for(let{language:Se,isAuto:at,id:wt}of f){let Ot=Se&&Pc(Se);Se&&Ot&&D.push({displayValue:at?q("subtitles_auto",{language:Ot}):Ot,value:wt,selected:k?.value===wt,isAuto:at})}return D.length?(D.unshift({...Ii,selected:k?.value===Ii.value}),D):[]}),Ki={available:[],prev:[]},gi=()=>R.experimental.getCurrentTime$.getValue()?.()??Be?.currentTime??0,Mn=si([uo,$i,To,Go],([f,k,D,Se])=>{let at=R.info.isLive$.getValue();if(at&&Ki.prev!==D){let wt=D.find(({id:Jt})=>Jt===k.value),Ot=Ki.prev.find(({id:Jt})=>Jt===k.value);if(wt){let Jt={...wt,subtitles:[...Ot?.subtitles??[],...wt.subtitles]};Ki.available=[Jt],Ki.prev=D}}if(k&&k.value!==Ii.value){let wt=at?gi():f,Ot=at?Ki.available:D;return bh(wt,k,Ot,at)}}),Bi=si([Mn],([f])=>f?.texts?f.texts:[]);li.add($i.subscribe(f=>{if(f.value===Ii.value)l?.onSubtitleOff?.();else{let k=Object.entries(Ec).find(([D,Se])=>Se===f.displayValue);l?.onSubtitleOn?.(k?k[0]:"")}}));let gn=se(!0),Ln=si([un,no,Ti,Gt],([f,k,D,Se])=>{let at=f?.end??0;if(!Se)return at/k;let Ot=-D+Se-k;return(at-Ot)/k}),jo=qt(R.info.availableSources$),gr=si([jo],([f])=>Object.keys(f?.[Ql.MPEG]||{}).length>0),Io=()=>{let f=Object.keys(R.info.availableSources$?.getValue()?.[Ql.MPEG]||{}),k=K$(f)||iy.Q_144P;return ze.sources[Ql.MPEG]?.[k]},hr=()=>{let f=Io();if(f)ie.log("download video",{url:f}),hg(f,ze?.meta?.title||"video");else{let k="There is no URL for download video";ie.log("download video",{message:k}),J({message:k})}},Vn=()=>{J({message:"toggle muted"});let f=R.info.muted$.getValue();R.info.volume$.getValue()===0&&!f?Xn(Wt()):br(!f)},Rn=()=>{if(xt.ui.settingsMenu.visible$.set(!1),!be(xt.ui.settingsSubMenu.visible$)){let f=be(xt.ui.settingsMenu.ref$);if(l?.uiInfo?.onSettingsMenu&&f){let D=Fs(f),Se={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:D,position:Se,name:"settings"})}}ie.log("close settings menu")},Zn=async(f,k=()=>Promise.resolve())=>{xt.ui.settingsMenu.openedByBtnKeyboard$.set(!!f),xt.ui.settingsMenu.visible$.set(!0),await k();let D=be(xt.ui.settingsMenu.ref$),Se=ba();if(l?.uiInfo?.onSettingsMenu&&D&&Se){let wt=Fs(D),Ot=jr(D,Se);l.uiInfo.onSettingsMenu({visible:!0,size:wt,position:Ot,name:"settings"})}ie.log("open settings menu",{wasOpenedByKeyboard:f})},_r=(f,k=!1)=>{xt.ui.settingsSubMenu.visible$.set(!1);let D=be(xt.ui.settingsMenu.ref$),Se=ba(),at=be(xt.ui.settingsMenu.visible$);if(l?.uiInfo?.onSettingsMenu&&D&&Se)if(at&&!k){let Ot=Fs(D),Jt=jr(D,Se);l.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:Jt,name:"settings"})}else{let Ot=Fs(f),Jt={top:0,left:0,bottom:0,right:0},$o=be(xt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Ot,position:Jt,name:$o})}ie.log("close settings sub menu")},hn=(f,k)=>{xt.ui.settingsSubMenu.visible$.set(!0),xt.ui.settingsSubMenu.ref$.set(k),xt.ui.settingsSubMenu.name$.set(f);let D=ba();if(l?.uiInfo?.onSettingsMenu&&k&&D){let at=Fs(k),wt=jr(k,D);l.uiInfo.onSettingsMenu({visible:!0,name:f,size:at,position:wt})}ie.log("open settings sub menu",{name:f})},Wt=()=>{let f=Math.max(pe.volumeMinRestore,rc()??0);return f===0?pe.volumeDefault:f},Xn=f=>{let k=f===0?Wt():f,D=R.info.muted$.getValue();J({message:`set volume, volume: ${f}, preferredVolume: ${k}`}),D&&f>0&&!s&&(D=!1,dp(!1)),R.setVolume(f,D),ne.setVolume(f),np(k)},br=f=>{let k=R.info.volume$.getValue();if(J({message:`set muted, currentVolume: ${k}, mute: ${f}`}),R.setMuted(f),ne.setVolume(f?0:k),dp(f),!f&&k===0){let D=Wt();R.setVolume(D),np(D),ne.setVolume(D)}},ho=se(!1),je=f=>{ie.log("set looped",{isLooped:f}),ho.set(f),R.setLooped(f),l?.uiInfo?.onLoopedChanged?.(f)};je(j);let Mt=()=>{l?.uiInfo?.onReportProblem?.()},fi=(f,k=!1)=>{J({message:`set autoplayNextEnabled, value: ${f}`}),ie.log("set autoplay next enabled",{autoplayNextEnabled:f}),xt.ui.autoplayNextEnabled$.set(f),Mg(f),k&&l?.onSetAutoplayNextEnabled?.(f)},ao=f=>{J({message:`set timerNextVideoRunning, value: ${f}`}),ie.log("set timer next video running",{timerNextVideoRunning:f}),xt.ui.timerNextVideoRunning$.set(f)},rt=(f=!0)=>{let k=!0;if(f&&l?.onPrevVideoClick)try{k=l?.onPrevVideoClick?.()}catch{J({message:"onPrevVideoClick callback failed to execute"})}if(!k)return;f&&mi("prev")||oe()},Tt=(f=!0)=>{let k=!0;if(f&&l?.onNextVideoClick)try{k=l?.onNextVideoClick?.()}catch{J({message:"onNextVideoClick callback failed to execute"})}if(!k)return;f&&mi("next")||ue()},mi=f=>{let{isMobile:k,features:{playbackStatusNextVideoShow:D,playbackStatusShow:Se}}=pe;return D&&Se&&!k?(xt.ui.aboutToGoNextVideo.set(f),xt.ui.userActionsDisabled.set(!0),!0):!1},Ei=()=>{l?.onNextVideoAnnouncementShow?.()},yi=()=>{l?.onNextVideoAnnouncementClick?.()},xi=()=>{l?.onNextVideoAnnouncementAuto?.()},Pi=()=>{l?.onNextVideoAnnouncementCancel?.()},Eo=()=>{R.prepare()},Yo=()=>{Cn(xt);let f=be(xt.ui.controls.disabledControls$),k=be(xt.playerPhase),D={playerPhase:k,isInteractive:C,isVideoEnded:!1,action:"none"};if(f.has("PLAY_BUTTON"))return;if(J({message:"toggle play"}),k==="ads"){D.action="play",ie.log("toggle adman play",D),ne.togglePlay();return}let Se=()=>{J({message:"toggle play, call player.play"}),D.action="play",R.play(),l?.onPlay?.()},at=()=>{J({message:"toggle play, call player.pause"}),D.action="pause",R.pause(),l?.onPause?.()};if(R.info.isEnded$.getValue()){if(J({message:"toggle play, video ended, seek to 0"}),st.next(),$t.next(Yr.REWIND),C){A?.();return}R.seekTime(0),Se()}else R.info.playbackState$.getValue()!==Kl.PLAYING?Se():at();ie.log("toggle play",D)},Di=(f,{changeReason:k="default",appliesTo:D="to-video"}={})=>{J({message:`set quality, quality: ${f}`}),ie.log("set quality",{quality:f}),R.setAutoQuality(f==="auto"),f!=="auto"?(pe.features.qualityDetailsSubMenuEnabled?(ac({type:"exact_quality",quality:f,videoId:i},D),xl(),R.setPredefinedQualityLimits(Lr.UNKNOWN)):rp(i,f),tt.set(f),R.setQuality(f)):pe.features.qualityDetailsSubMenuEnabled?k==="default"&&(Jn("auto_quality",D),be(dt)&&Ai(!1),be(Ri)&&Zo(!1)):xl()},Ai=(f,k="as-default")=>{J({message:`set trafficSavingEnabled, value: ${f}`}),ie.log("set traffic saving enabled",{trafficSavingEnabled:f});let D=f?Lr.TRAFFIC_SAVING:Lr.UNKNOWN;pe.features.qualityDetailsSubMenuEnabled?(Nn(D,k),yl(!1)):(R.setPredefinedQualityLimits(D),yl(f))},Zo=(f,k="as-default")=>{J({message:`set highQualityEnabled, value: ${f}`}),ie.log("set high quality enabled",{highQualityEnabled:f}),Nn(f?Lr.HIGH_QUALITY:Lr.UNKNOWN,k)},Nn=(f,k)=>{f!==Lr.UNKNOWN&&(be(mt)&&!be(vn)&&Di("auto",{appliesTo:k,changeReason:"limit-changed"}),Jn(f,k)),R.setPredefinedQualityLimits(f)},Jn=(f,k)=>{ac({type:f,videoId:i},k),k==="as-default"&&ac({type:f,videoId:i},"to-video")},Bn=f=>{ie.log("set playback rate",{playbackRate:f}),R.setPlaybackRate(f),pe.features.saveRate&&ee&&!R.info.isLive$.getValue()&&Pg(f)},$r=()=>{let f=be(Ko),k=f.findIndex(({selected:Se})=>Se);if(k===f.length-1)return;let D=f[k+1];Bn(D.value)},er=()=>{let f=be(Ko),k=f.findIndex(({selected:Se})=>Se);if(k===0)return;let D=f[k-1];Bn(D.value)},Xo=(f={...Ii,selected:!1})=>{ie.log("set subtitles",{...f}),f&&f.value!==Ii.value&&Pt.next(f.isAuto?f.value+"_auto":f.value),$i.set(f)},Dn=()=>{ie.log("toggle subtitles");let f=be(go),k=be($i),D=be(Ue);if(k?.value===Ii.value){let Se=f.filter(at=>at.value!==Ii.value).find(at=>at.value===D)||f[1];Xo(Se)}else Xo()},yr=se(!0),tr=f=>{yr.set(f)},_o=(f,k,D=!0)=>{if(J({message:`seek to time, time: ${f}`}),ie.log("seek to time",{time:f,action:k,forcePrecise:D}),$t.next(k),R.info.isLive$.getValue()){let Se=R.info.duration$.getValue(),at=Math.min(0,Se+f);R.seekTime(at,D)}else{if(I?.getValue())return;R.info.isEnded$.getValue()&&(J({message:"seek after ended, call callbacks.onPlay"}),l?.onPlay?.()),R.seekTime(Sm(f),D)}},xr=f=>{J({message:`seek to episode start time: ${f}`}),ie.log("seek to episode start time",{time:f}),_o(f,Yr.EPISODE,!0)},bo=(f,k)=>{J({message:`seek to percent, percent: ${f}`}),ie.log("seek to percent",{percent:f,action:k});let D=be(no)*f;_o(D,k,!1)},ir=f=>{J({message:`seek external, time: ${f}`}),ie.log("seek external",{time:f}),$t.next(Yr.UNKNOWN),R.seekTime(R.info.isLive$.getValue()?-f:f)},Vr=f=>{let k=f.max??"none",D=f.min??"none";J({message:`set auto quality limitation. Max: ${k}. Min: ${D}`}),ie.log("set auto quality limits",{max:k,min:D}),R.setAutoQualityLimits(f)},wr=f=>{J({message:`seek external to episode start time: ${f}`}),ie.log("seek external to episode start time",{time:f}),_o(f,Yr.EPISODE,!0)},Sr=f=>{J({message:`set playback rate to: ${f}`}),ie.log("set playback rate external",{playbackRate:f}),R.setPlaybackRate(f)},Mi=se(void 0),Je=se(!1),Rt=f=>{J({message:`start scrubbing, progress: ${f}`}),ie.log("start scrubbing",{progress:f}),Je.set(!0),hi(f)},hi=f=>{Mi.set(f)},so,Po,Jo=()=>{Mi.set(void 0),Je.set(!1)},Ce=()=>{clearTimeout(Po),clearTimeout(so),so=window.setTimeout(()=>{Jo()},500),Be?.removeEventListener("seeked",Ce)},Bt=f=>{J({message:`complete scrubbing, progress: ${f}`}),ie.log("complete scrubbing",{progress:f}),bo(f,Yr.SLIDER),be(xt.ui.isMobile)&&be(xt.state.currentFormat$)===Ql.HLS?(Be?.addEventListener("seeked",Ce),Po=window.setTimeout(()=>{Ce()},300)):Jo()},Yt=si([uo,no,Mi],([f,k,D],Se)=>{Se(j$(D)?D*k:f)}),we=se(!1),Ct=()=>{we.set(!0)},ii=()=>{we.set(!1)},ti=se({width:0,height:0}),Ht=si([ti],([{width:f}],k)=>{let D=ch(f);k(D)}),_n=se(!1),Qi=W.filter(f=>_g(f)),or=si([Ht,_n],([f,k])=>k?Qi.filter(D=>!D.hideOnMobile):Qi.filter(D=>!D.hideOnDesktopGridTypes?.includes(f))),en=se(W.filter(f=>bg(f))),ea=si([en,Ht],([f,k])=>f.filter(D=>!D.hideOnDesktopGridTypes?.includes(k))),ha=si([ea,or],([f,k])=>[...pe.features.additionalButtonsDesktopControlPanelRight?f.filter(D=>D.type==="desktop-control-panel-right"):[],...pe.features.additionalButtons?k.map((D,Se)=>({id:Se,weight:Se,type:"desktop-control-panel-right",testId:D.testId,icon:D.iconUrl,onClick:D.onClick,ariaLabel:D.ariaLabel??D.tooltip,tooltipText:D.tooltip})):[]]),On=se(K),as=si([On],([f])=>pe.features.additionalSettingsMenuItems?f.map(k=>k.type==="SWITCH"?{...k,onClick:k.onChangeEnabled}:k):[]),Qs=(f,k)=>{let D=be(en).map(Se=>Se.id!==f?Se:{...Se,...k});en.set(D)},ss=f=>{let k=be(en);if(k.some(D=>D.id===f.id)){J({message:`Additional button with id: "${f.id}" was exist! Can't add more with the same id`});return}k.push(f),en.set(k)},ls=f=>{let k=be(en);if(!k.some(D=>D.id===f)){J({message:`Can't find additional button with id: "${f}"! Can't remove item with this id`});return}k=k.filter(D=>D.id!==f),en.set(k)},ds=f=>{$t.next(Yr.LIVE),J({message:"live switch to low latency "+f}),ie.log("live switch to low latency "+f),R.setLiveLowLatency(f)},Gs=(f,k)=>{let D=be(On).map(Se=>Se.id!==f?Se:{...Se,...k});On.set(D)},yt=f=>{let k=be(On);if(k.some(D=>D.id===f.id)){J({message:`Settings menu item with id: "${f.id}" was exist! Can't add more with the same id`});return}k.push(f),On.set(k)},St=f=>{let k=be(On);if(!k.some(D=>D.id===f)){J({message:`Can't find settings menu item with id: "${f}"! Can't remove item with this id`});return}k=k.filter(D=>D.id!==f),On.set(k)},Li=se(Z),Rr=si([Li],([f])=>pe.features.additionalContextMenuItems?f:[]),ta=(f,k)=>{let D=be(Li).map(Se=>Se.id!==f?Se:{...Se,...k});Li.set(D)},Nr=f=>{let k=be(Li);if(k.some(D=>D.id===f.id)){J({message:`Context menu item with id: "${f.id}" was exist! Can't add more with the same id`});return}k.push(f),Li.set(k)},nr=f=>{let k=be(Li);if(!k.some(D=>D.id===f)){J({message:`Can't find context menu item with id: "${f}"! Can't remove item with this id`});return}k=k.filter(D=>D.id!==f),Li.set(k)},_a=si([_n,Nt],([f,k],D)=>{D(f&&k)}),cs=()=>{$t.next(Yr.LIVE),J({message:"switch to active live"}),ie.log("switch to active live"),R.seekTime(0),R.info.playbackState$.getValue()!==Kl.PLAYING&&xt.actions.internal.togglePlay()},Jc=()=>{ie.log("skip adman"),ne.skip()},xd=(f=!0)=>{Cn(xt),J({message:`switch from ads to video, callPlay: ${f}`}),ie.log("switch from ads to video",{callPlay:f}),he.set("video"),f&&R.play()},eu=()=>{Cn(xt),J({message:"switch from video to ads"}),ie.log("switch from video to ads"),xt.actions.internal.pause(),Dt(),he.set("ads")},wd=f=>{Cn(xt);let k=f?"LiveWaitingStart":"thumb";ie.log("set live waiting start",{state:f,playerPhase:k}),he.set(k)},tu=f=>{Cn(xt);let k=f?"LiveWaitingRecover":"thumb";ie.log("set live waiting recover",{state:f,playerPhase:k}),he.set(k)},Sd=f=>{Cn(xt);let k=f?"LiveWaitingRecord":"thumb";ie.log("set live waiting record",{state:f,playerPhase:k}),he.set(k)},iu=()=>(Cn(xt),ie.log("get debug text data"),vg(R,ze,xt,Oe.getTraceId())),Cd=()=>(Cn(xt),JSON.stringify(Oe.getFinishedSpans())),ou=()=>(Cn(xt),gg(R,ze,xt)),ba=()=>Be,kd=()=>{J({message:"toggle chromecast"}),ie.log("toggle chromecast"),R.toggleChromecast()},js=f=>{if(Cn(xt),R.info.isEnded$.getValue())return;let k=!f;if(be(xt.playerPhase)==="ads"){J({message:`pause ads, internalCall: ${k}`}),ie.log("pause ads",{internalCall:k}),ne.pause();return}J({message:`pause video, internalCall: ${k}`}),ie.log("pause video",{internalCall:k}),k&&l?.onPause?.(),R.pause()},Td=f=>{Cn(xt);let k=!f;if(be(xt.playerPhase)==="ads"){J({message:`play ads, internalCall: ${k}`}),ie.log("play ads",{internalCall:k}),ne.play();return}J({message:`play video, internalCall: ${k}`}),ie.log("play video",{internalCall:k}),k&&l?.onPlay?.(),R.play()},Id=f=>{Cn(xt);let k=!f;if(be(xt.playerPhase)==="ads"){J({message:"player cannot be stopped during ads via external method"});return}J({message:`player will be stopped, internalCall: ${k}`}),L?.()},Ed=(f,k)=>{Cn(xt),J({message:`first start, show ads: ${f}, internalCall: ${!k}`}),ie.log("first start",{showAds:f,external:k}),f?he.set("ads"):(he.set("video"),k?R.play():xt.actions.internal.togglePlay())},us=()=>(J({message:"getting time codes"}),p),Pd=()=>{let f=us();if(!f||[0,1].includes(f.length))return;let k=R.info.position$.getValue();return f.find(D=>D.time>k)},nu=f=>{let k=f;k||(k=Pd());let D=R.info.position$.getValue();ie.log("seek to next episode",{currentTime:D,...k}),k&&(J({message:"seek to next episode"}),_o(k.time,Yr.EPISODE,!0))},Ad=()=>{let f=us();if(!f||[0,1].includes(f.length))return;let k=R.info.position$.getValue(),D=f.findIndex(at=>at.time>k),Se=D===-1?f.length-2:D-2;if(!(Se<0))return f[Se]},qe=f=>{let k=f;k||(k=Ad());let D=R.info.position$.getValue();ie.log("seek to prev episode",{currentTime:D,...k}),k&&(J({message:"seek to prev episode"}),_o(k.time,Yr.EPISODE,!0))},Zt=()=>(J({message:"getting preview thumbs data"}),ie.log("get preview thumbs data",{..._}),_),Hn=async()=>{let f=re?.isActive(),k="none";re?.isActive()?(k="remove",await re?.remove()):(k="request",await re?.request()),ie.log("toggle picture in picture",{isActive:f,action:k})},$a=(f=-90)=>{ie.log("rotate video",{alphaDiff:f}),et.update(k=>k+f)},Fn=se([]);T?.subscribe(f=>{let k=[];for(let D=0;D<f.length;D++){let{range:[Se,at],subjects:wt}=f[D];D===0&&Se!==0&&k.push({time:0,text:"",interactive:!1,completed:!0}),k.push({time:Se/1e3,text:"",interactive:!0,completed:pe.features.interactiveTimeOpenUri?!wt.length||wt.every(Ot=>Ot.isRemoved):!wt.length}),at!==1/0&&k.push({time:at/1e3,text:"",interactive:!1,completed:!0})}Fn.set(k)});let a1=se(!1);I?.subscribe(f=>{f&&be(Je)&&Jo()});let Sm=f=>{if(!C)return f;let k=be(Fn),D=be(no),at=be(Ti)/D,wt=k.find(Ot=>Ot.interactive&&!Ot.completed&&Ot.time>at);return typeof wt?.time=="number"?Math.min(f,wt.time-.05):f},s1=()=>{xt.ui.episodes.panelOpened$.set(!1)},l1=()=>{ie.log("destroy store"),clearTimeout(Po),clearTimeout(so),li.unsubscribe(),pi.unsubscribe(),R.destroy(),ne.destroy(),_e?.destroy(),We?.destroy(),pt.unsubscribe(),Fe?.disconnect(),Fe=null,Me.destroy()},xt={interfaceLanguage$:Ue,isCyrillicRelatedInterface$:Et,initVideo:Re,videoId:i,isClip:o,playerPhase:de,vsid:Ge,state:{positionExact$:uo,positionWithScrubbing$:Yt,duration$:no,playbackState$:Fo,isPlaying$:Tn,isLoaderVisible:bi,bufferedProgress$:Ln,isLive$:Q,canChangePlaybackSpeed$:jt,isActiveLive$:ro,isOldestAvailableLive$:pn,isRewindableLive$:mo,isEnded$:eo,muted$:oi,volume$:Vi,trafficSavingEnabled$:dt,highQualityEnabled$:Ri,autoQualityLimitingAvailable$:mt,availableVideoStreams$:vr,availableAudioStreams$:Gn,videoStream$:In,audioStream$:fn,currentQuality$:zo,isAutoQualityEnabled$:vn,availableQualities$:Wo,currentPlaybackRate$:qo,availablePlaybackRates$:Ko,currentSubtitle$:$i,availableTextTracks$:Qo,availableSubtitlesList$:go,currentSubtitleCaptions$:Bi,isAutoSubtitleCaptionVisible$:gn,chromecastState$:ki,chromecastDeviceName$:Qn,chromecastConnected$:Uo,currentFormat$:io,throughputEstimation$:ko,videoBitrate$:Xt,videoSize$:gt,errorLog$:bt,crashed$:Nt,isAudioAvailable$:po,isAudioDisabled:!!s,canDownload:pe.features.download&&!!d,availableSources$:jo,hasMpegSources$:gr,isInteractive:C,showInteractiveGraph:pe.features.interactiveGraph,showSeekToInteractive:pe.features.seekToInteractive,showPlayPrevChapter:pe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:pe.features.interactiveTimeIndicator&&!!be(Fn).length,interactiveEpisodes$:Fn,isInteractiveTime$:I?qt(I):se(!1),isInteractiveExpectation$:a1,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:N,looped$:ho,loadedMetadata$:se(!1),isAutoQualityAvailable$:Yn},ui:{t:q,controlsVisible:se(!1),touched:se(!1),controls:{prevButton:se(void 0),playButton:se(void 0),replayButton:se(void 0),nextButton:se(void 0),playPrevChapterButton:se(void 0),seekToInteractiveButton:se(void 0),interactiveGraphButton:se(void 0),liveButton:se(void 0),time:se(void 0),episodes:se(void 0),volume:se(void 0),subtitles:se(void 0),settings:se(void 0),context:se(void 0),chromecast:se(void 0),pip:se(void 0),fullscreen:se(void 0),vkLogo:se(void 0),interactiveTimeIndicator:se(void 0),timeline:se(void 0),autoplayNextToggle:se(void 0),additionalButtons:W.length?W.reduce(f=>[...f,se(void 0)],[]):[],disabledControls$:Pe},modals:{hotKeyMap:{show:se(!1),data:se({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Xe,isFullscreenOpenedByKeyboard:ft,rotateAlpha:et,isAutoplay:se(!1),debugPanelVisible:se(!1),episodes:{panelOpened$:se(!1),openedByKeyboard$:se(!1)},contextMenu:{visible$:se(!1),btnRef$:se(void 0),openedByBtnKeyboard$:se(!1),openedByHotKey$:se(!1),lastActiveElem$:se(void 0),showContextMenuBtn$:se(!1),position$:se({top:0,left:0})},playerSize:ti,isMobile:_n,mobileNotReportControlHidden$:_a,mobileUnmuteButtonExpanded:se(!1),mobileUnmuteButtonVisible:se(!1),icon3DVideoVisible:se(!1),scrubbingInProgress:Je,volumeChangingInProgress:we,is3DVideo:se(!1),currentGridType$:Ht,additionalButtonsDeprecated$:or,additionalDesktopControlPanelRightButtons$:ha,additionalSettingsMenuItems$:as,additionalContextMenuItems$:Rr,interactiveHideMobileControls:se(!1),overlayContainer$:se(void 0),startedByKeyboard$:se(!1),autoplayNextEnabled$:se(!1),timerNextVideoRunning$:se(!0),settingsMenu:{visible$:se(!1),ref$:se(void 0),openedByBtnKeyboard$:se(!1)},settingsSubMenu:{visible$:se(!1),ref$:se(void 0),name$:se(void 0)},aboutToGoNextVideo:se(void 0),userActionsDisabled:se(!1),hiddenControls:{volume:se(!1)},isControlsAvailable:se(!0)},ads:{position:se(0),duration:se(0),playbackState:se("inactive"),canSkip:se(!1),secondsToWatchBeforeSkip:se(0),postrollPassed:se(!1)},webApi:{pictureInPictureApi:re,annotationsApi:ae,slotsApi:X},actions:{internal:{preload:Eo,firstStart:f=>Ed(f,!1),play:()=>Td(!1),pause:()=>js(!1),togglePlay:Yo,toggleMuted:Vn,openSettingsMenu:Zn,closeSettingsMenu:Rn,openSettingsSubMenu:hn,closeSettingsSubMenu:_r,setVolume:Xn,startVolumeChanging:Ct,stopVolumeChanging:ii,setVideoStream:En,setAudioStream:jn,setQuality:Di,setTrafficSavingEnabled:Ai,setHighQualityEnabled:Zo,setPlaybackRate:Bn,incrementPlaybackRate:$r,decrementPlaybackRate:er,setSubtitle:Xo,toggleSubtitle:Dn,togglePictureInPicture:Hn,startScrubbing:Rt,progressScrubbing:hi,completeScrubbing:Bt,toggleChromecast:kd,switchToActiveLive:cs,switchFromAdsToVideo:xd,switchFromVideoToAds:eu,skipAd:Jc,setLiveWaitingStart:wd,setLiveWaitingRecover:tu,setLiveWaitingRecord:Sd,getDebugTextData:iu,getTraceTextData:Cd,getDebugPanelData:ou,getVideoElement:ba,seekTime:(f,k,D)=>_o(f,k,D),clearDelayedBufferingCheckTimeout:oo,seekEpisodeStartTime:xr,seekToPercent:bo,getNextEpisode:Pd,seekToNextEpisode:nu,getPrevEpisode:Ad,seekToPrevEpisode:qe,startLogging:Ho,stopLogging:dn,startCameraManualRotation:cn,stopCameraManualRotation:So,moveCameraFocusPX:Co,holdCamera:qi,releaseCamera:Qt,getVideoEpisodes:us,getPreviewThumbsData:Zt,downloadVideo:hr,addLanguage:pp,setLanguage:Kt,nextMovie:Ye,videoRotate:$a,correctSeekTimeToInteractive:Sm,replayInteractive:A,setLooped:je,reportProblem:Mt,setAutoplayNextEnabled:fi,setTimerNextVideoRunning:ao,prevVideoClick:rt,nextVideoClick:Tt,nextVideoAnnouncementShow:Ei,nextVideoAnnouncementClick:yi,nextVideoAnnouncementAuto:xi,nextVideoAnnouncementCancel:Pi},external:{firstStart:f=>Ed(f,!0),play:()=>Td(!0),pause:()=>js(!0),stop:()=>Id(!0),seekTime:f=>ir(f),seekEpisodeStartTime:f=>wr(f),setPlaybackRate:f=>Sr(f),setAutoQualityLimits:f=>Vr(f),setMuted:br,toggleSubtitle:Dn,setVolume:Xn,returnFocusToEpisodes:s1,updateAdditionalSettingsItem:Gs,addAdditionalSettingsItem:yt,removeAdditionalSettingsItem:St,updateAdditionalContextItem:ta,addAdditionalContextItem:Nr,removeAdditionalContextItem:nr,updateAdditionalButton:Qs,addAdditionalButton:ss,removeAdditionalButton:ls,setLiveLowLatency:ds,hideControls:()=>tr(!1),showControls:()=>tr(!0)}},callbacks:l,setUiCallbacks:f=>{ye={...f}},getAdmanWrapper:()=>ne,getLogger:()=>Qe,getPlayer:()=>R,destroy:l1};return xt};function Za(t,e,i,o){let n=["interactiveTimeIndicator"],a=e[i]?.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:c,right:p}=jr(e[i],t||void 0);return{left:s?l:0,right:s?p:0,top:s?d:0,bottom:s?c:0,isDisplayed:s}}var Us=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(Za(t,i,n,o))};var Vc=async(t,e,i)=>{await Yi(),e&&i&&(i.focus(),t.set(!1))};var ry=ge('<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 df(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=ry();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}function cf(t,e){H(e,!0);let[i,o]=Le(),n=()=>y(l,"$contextMenuVisible$",i),a=m(e,"disabled",3,!1),s=m(e,"ariaLabel",3,""),d=$e(),l=d.ui.contextMenu.visible$,c=d.ui.contextMenu.openedByBtnKeyboard$,p=d.ui.contextMenu.showContextMenuBtn$,_=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,$=G(void 0);He(()=>{r($)&&vt(()=>{u.set(r($))})});let w=I=>{let A=ua(I),L=ih(r($));_.set(L),c.set(A),l.set(!n())},x=()=>{p.set(!0)},C=()=>{p.set(!1)},T=v(()=>n()?"opened":"");It(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:x,blur:C,get ariaExpanded(){return n()},get ref(){return r($)},set ref(I){B($,ce(I))},children:(I,A)=>{df(I,{})},$$slots:{default:!0}}),F(),o()}var ay=t=>{t.stopPropagation()},sy=M("<div><!> <div></div> <div></div></div>"),ly={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 Zp(t,e){O(e,!0),U(t,f$);let i=m(e,"isMobile",3,!1),o=v(()=>e.iconState===ph.CONNECTED),n=v(()=>e.iconState===ph.CONNECTING);var a=Oe(),s=se(a);{var d=c=>{var u=u$(),b=h(u),p=h(b),$=h(p);he(),g(p);var w=P(p);he(),g(b);var x=P(b),k=h(x),T=h(k);g(k),he(),g(x),g(u),S(()=>{Le($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Le(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Le(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),_(c,u)},l=c=>{var u=p$();let b;var p=h(u),$=P(h(p),5);let w;g(p),g(u),S((x,k)=>{b=Z(u,0,"svelte-8z1bf5",null,b,x),w=Z($,0,"svelte-8z1bf5",null,w,k)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),_(c,u)};L(s,c=>{i()?c(d):c(l,!1)})}_(t,a),H()}import{noop as v$}from"@vkontakte/videoplayer-shared";function zl(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,v$),s=ye().ui.t,d=v(()=>e.state===m$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));It(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,c)=>{Zp(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var g$=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),h$={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 Xp(t,e){U(t,h$);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=Y(void 0),c=Y(void 0);function u(k){if(!r(c))return 0;let{width:T}=r(c).getBoundingClientRect(),C=T/2;return k<C?C+s():k>e.containerWidth-C?e.containerWidth-C-d():k}let b=v(()=>u(n()));var p=g$(),$=h(p);let w;var x=h($);fe(x,()=>e.children??ee),g($),dt($,k=>N(c,k),()=>r(c)),g(p),dt(p,k=>N(l,k),()=>r(l)),S(k=>{et(p,`transform: translate(${r(b)}px, ${a()}px);`),w=Z($,1,"tooltip svelte-5ygsa2",null,w,k),et($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),_(t,p)}var Cc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var fh=t=>!!(Math.round(Math.abs(t)/90)%2),mh=t=>Math.abs(t)/90%4===1;var _$=M('<div class="preview svelte-1wqg760"></div>'),b$=M('<div class="time svelte-1wqg760"> </div>'),$$=M('<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 Jp(t,e){O(e,!0),U(t,y$);let[i,o]=Ve(),n=()=>y(w,"$rotateAlpha",i),a=()=>y(x,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),l=m(e,"isMobile",3,!1),c=m(e,"videoEpisodes",19,()=>[]),u=m(e,"progress",3,0),b=m(e,"duration",3,0),p=m(e,"isInteractive",3,!1),$=ye(),w=$.ui.rotateAlpha,x=$.ui.playerSize,k=Y(0),T=Y(0),C=Y(""),R=Y(0),A=Y(0),E=Y(0),B=Y(0),K=v(()=>Cc(u(),b(),c())),q=v(()=>fh(n())),te=v(()=>mh(n())),ne=v(ge),ve=v(()=>(r(te)?1:-1)*(r(k)/2-r(T)/2)),j=v(()=>r(ve)*-1);He(()=>{(ie=>(N(k,le(ie.width)),N(T,le(ie.height))))(Pe())}),He(()=>{(ie=>(N(C,le(ie.imgSrc)),N(R,le(ie.imgWidth)),N(A,le(ie.imgHeight)),N(E,le(ie.imgOffsetX)),N(B,le(ie.imgOffsetY))))(Ee(u()))});function ge(){let ie=l()?s.MOBILE:s.DESKTOP,{isVertical:Te}=X(),J=30;return r(K)?.text&&(J+=16),(Te||r(q))&&(J+=18,J+=50),Math.min(Math.max(a().height-J,0),ie)}function X(){let ie=e.previewThumbsData.frameWidth,Te=e.previewThumbsData.frameHeight,J=Te>ie;return{width:ie,height:Te,isHorizontal:!J,isVertical:J}}function Pe(){let{height:ie,isHorizontal:Te,isVertical:J,width:Ue}=X();return Te&&(ie=ie/Ue*r(ne),Ue=r(ne)),J&&(Ue=Ue/ie*r(ne),ie=r(ne)),{width:Ue,height:ie}}function Ee(ie){let Te;e.previewThumbsData.isUV?Te=Math.floor(b()*ie/e.previewThumbsData.frequency):Te=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ie)));let J=Math.floor(Te/e.previewThumbsData.countPerImage),Ue=Math.floor(Te%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ot=Te%e.previewThumbsData.countPerRow,de=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&J===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(de=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&de++);let Ae=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&J===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ae=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let qe=r(k)*Ae,je=r(T)*de,mt=-ot*r(k),ft=-Ue*r(T);return{imgSrc:e.previewThumbsData.links[J],imgWidth:qe,imgHeight:je,imgOffsetX:mt,imgOffsetY:ft}}var Me=$$();let ue;var De=h(Me);{var oe=ie=>{var Te=_$();S(()=>et(Te,`width: ${r(k)}px; height: ${r(T)}px; background-image: url(${r(C)}); background-size: ${r(R)}px ${r(A)}px; background-position: ${r(E)}px ${r(B)}px;
229
+ transform: rotate(${n()}deg) ${r(q)?`translate(${r(ve)}px, ${r(j)}px)`:""};
230
+ `)),_(ie,Te)};L(De,ie=>{r(C)&&ie(oe)})}var V=P(De,2),Qe=h(V);{var ce=ie=>{var Te=Oe(),J=se(Te);{var Ue=de=>{var Ae=Ir();S(qe=>pe(Ae,qe),[()=>F("tooltip_episode_unfinished")]),_(de,Ae)},ot=de=>{var Ae=Ir();S(()=>pe(Ae,r(K).text||"")),_(de,Ae)};L(J,de=>{p()&&r(K).completed===!1?de(Ue):de(ot,!1)})}_(ie,Te)};L(Qe,ie=>{r(K)&&ie(ce)})}g(V);var Fe=P(V,2);{var z=ie=>{var Te=b$(),J=h(Te,!0);g(Te),S(()=>pe(J,d())),_(ie,Te)};L(Fe,ie=>{p()||ie(z)})}g(Me),S(ie=>{ue=Z(Me,1,"timeline-preview svelte-1wqg760",null,ue,ie),et(Me,`width: ${r(q)?r(T):r(k)}px;`)},[()=>({mobile:l()})]),_(t,Me),H(),o()}var x$=M('<span class="time svelte-1jr6obn"> </span>'),w$=M("<!> <!>",1),S$={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 ef(t,e){O(e,!0),U(t,S$);let[i,o]=Ve(),n=()=>y(ve,"$interactiveEpisodes$",i),a=()=>y(E,"$duration$",i),s=()=>y(A,"$position$",i),d=()=>y(X,"$isInteractiveExpectation$",i),l=()=>y(ge,"$isInteractiveTime$",i),c=()=>y(B,"$isLive$",i),u=()=>y(q,"$isMobile",i),b=()=>y(K,"$isActiveLive$",i),p=()=>y(R,"$bufferedProgress$",i),$=()=>y(Me,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),x=m(e,"withEpisodes",3,!0),k=m(e,"ref",15,void 0),T=ye(),C=Mt(),R=T.state.bufferedProgress$,A=T.state.positionWithScrubbing$,E=T.state.duration$,B=T.state.isLive$,K=T.state.isActiveLive$,q=T.ui.isMobile,te=C.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,ne=T.actions.internal.getPreviewThumbsData(),ve=T.state.interactiveEpisodes$,j=T.state.isInteractive,ge=T.state.isInteractiveTime$,X=T.state.isInteractiveExpectation$,Pe=T.actions.internal.correctSeekTimeToInteractive,Ee=T.callbacks?.onDisabledTimelineClick,Me=T.ui.controls.disabledControls$,ue=T.callbacks?.uiInfo?.onTimelineMouseEnter,De=T.callbacks?.uiInfo?.onTimelineMouseLeave,oe=T.ui.t,V=C.features.interactiveResponsiveUi,Qe=v(()=>j?n():te),ce=v(()=>Ko(a())),Fe=v(()=>Ko(s())),z=v(()=>s()/a()),ie=v(()=>d()||l()),Te=Y(!1),J=Y(""),Ue=Y(0),ot=Y(0),de=Y(0),Ae=v(()=>({containerWidth:r(ot),translateXPx:r(Ue),translateYPx:j&&ne?-36:-16,active:r(Te)&&w()&&!r(ie)&&!V,pointer:!C.features.timelinePreview||!ne||c()})),qe=oe("aria_timeline"),je=v(()=>oe("aria_timeline_value",{position:r(Fe),duration:r(ce)}));function mt(Re){return!Pe||!j?Re:Pe(Re*a())/a()}function ft(Re){T.actions.internal.startScrubbing(mt(Re))}function Xe(Re){l()||T.actions.internal.progressScrubbing(mt(Re))}function $t(Re){T.actions.internal.completeScrubbing(mt(Re)),N(Te,!1)}function ct(Re,me,Ge){ze(Re,me,Ge),N(Te,!0)}function Lt(Re,me,Ge){ze(Re,me,Ge),N(Te,!0)}function zt(){N(Te,!1)}function ze(Re,me,Ge){N(de,le(mt(Re))),N(Ue,le(me)),Ge&&N(ot,le(Ge)),N(J,le(Et(Re)))}function Et(Re){let me=Ko((c()?1-Re:Re)*a());return c()?`-${me}`:me}var Q=w$(),be=se(Q);Xp(be,Kr(()=>r(Ae),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Re,me)=>{var Ge=Oe(),pt=se(Ge);{var kt=Be=>{Jp(Be,{get time(){return r(J)},get isMobile(){return u()},get videoEpisodes(){return r(Qe)},previewThumbsData:ne,get progress(){return r(de)},get duration(){return a()},isInteractive:j})},qt=Be=>{var Ze=x$(),Ht=h(Ze,!0);g(Ze),S(()=>pe(Ht,r(J))),_(Be,Ze)};L(pt,Be=>{C.features.timelinePreview&&ne&&!c()?Be(kt):Be(qt,!1)})}_(Re,Ge)},$$slots:{default:!0}}));var ae=P(be,2);let Ie=v(()=>Math.round(r(z)*100)),nt=v(()=>$().has("TIMELINE"));Qa(ae,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return u()},ariaLabel:qe,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Ie)},get ariaValueText(){return r(je)},get loadedProgress(){return p()},get filledProgress(){return r(z)},get handleProgress(){return r(z)},get videoEpisodes(){return r(Qe)},onPointerDown:ft,onHandleMove:Xe,onPointerMove:Lt,onPointerUp:$t,onPointerEnter:ct,onPointerLeave:zt,onMouseEnter:ue,onMouseLeave:De,onDisabledClick:Ee,isInteractive:j,get disabled(){return r(nt)},get hideHandel(){return l()},testId:"progress_bar",get ref(){return k()},set ref(Re){k(Re)}}),_(t,Q),H(),o()}var C$={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 Wl(t,e){O(e,!0),U(t,C$);let[i,o]=Ve(),n=()=>y(l,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"duration",3,0),d=ye(),l=d.ui.isMobile,c=d.ui.t,u=v(()=>Ko(s())),b=v(()=>Ko(a())),p=v(()=>a()/s()),$=v(()=>c("aria_timeline_value",{position:r(b),duration:r(u)})),w=v(()=>Math.round(r(p)*100));Qa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r($)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),H(),o()}var k$=M("<div><!></div>"),T$=M("<div></div>"),I$={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 Ga(t,e){O(e,!0),U(t,I$);let[i,o]=Ve(),n=()=>y($,"$isLive$",i),a=()=>y(k,"$isMobile",i),s=()=>y(x,"$adPosition",i),d=()=>y(w,"$adDuration",i),l=m(e,"isAds",3,!1),c=m(e,"isHidden",3,!1),u=m(e,"needPadding",3,!0),b=m(e,"ref",15,void 0),p=ye(),$=p.state.isLive$,w=p.ads.duration,x=p.ads.position,k=p.ui.isMobile,T=v(()=>!c()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var C=Oe(),R=se(C);{var A=B=>{var K=k$();let q;var te=h(K);{var ne=j=>{Wl(j,{get position(){return s()},get duration(){return d()}})},ve=j=>{ef(j,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return b()},set ref(ge){b(ge)}})};L(te,j=>{l()?j(ne):j(ve,!1)})}g(K),S(j=>q=Z(K,1,"timeline svelte-41cp6d",null,q,j),[()=>({withoutPadding:!u(),mobile:a()})]),_(B,K)},E=B=>{var K=T$();let q;S(te=>q=Z(K,1,"timeline-stub svelte-41cp6d",null,q,te),[()=>({mobile:a()})]),_(B,K)};L(R,B=>{r(T)?B(A):B(E,!1)})}_(t,C),H(),o()}import{noop as A$}from"@vkontakte/videoplayer-shared";var E$=_e('<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 tf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=E$();let n;var a=h(o);fe(a,()=>e.children??ee),he(3),g(o),S(()=>n=we(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 P$=_e('<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 of(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=P$();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 M$=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),L$=M('<span class="text svelte-1yhs2ga"> </span>'),V$=M('<span class="text count svelte-1yhs2ga"> </span>'),R$=M("<!> <!>",1),B$={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 ql(t,e){O(e,!0),U(t,B$);let[i,o]=Ve(),n=()=>y(w,"$currentGridType$",i),a=()=>y(x,"$openedByKeyboard$",i),s=()=>y(k,"$panelOpened$",i),d=()=>y(T,"$isMobile",i),l=m(e,"position",3,0),c=m(e,"duration",3,0),u=m(e,"timeCodes",19,()=>[]),b=ye(),p=b.callbacks?.onEpisodeChanged??A$,$=!!b.callbacks?.onEpisodeClicked,w=b.ui.currentGridType$,x=b.ui.episodes.openedByKeyboard$,k=b.ui.episodes.panelOpened$,T=b.ui.isMobile,C=b.ui.t,R=Y(void 0),A=X=>{if(!!b.callbacks?.onEpisodeClicked){let Ee=ca(X);x.set(Ee),k.set(!0),b.callbacks?.onEpisodeClicked?.(Ee)}},E=Y(null),B=v(()=>l()/c());He(()=>{let X=Cc(r(B),c(),u());X?r(E)?.time!==X.time&&(p(X),N(E,le(X))):N(E,null)});let K=v(()=>r(E)?.text||""),q=v(()=>Pi(n(),"xl")?"FULL":Pi(n(),"m")&&ch(n(),"xl")?"COUNT":"SHORT"),te=v(()=>`${C("tooltip_episodes")}: ${r(K)}`),ne=async(X,Pe,Ee)=>{await to(),X?.getAttribute("aria-expanded")==="false"&&Pe&&!Ee&&gt(()=>{x.set(!1),X.focus()})};He(()=>{ne(r(R),a(),s())});var ve=Oe(),j=se(ve);{var ge=X=>{let Pe=v(()=>d()?"px-0":"");It(X,{get className(){return`w-max btn-full-opacity btn-jc-l ${r(Pe)??""}`},testId:"btn-episodes",click:A,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(te)},get ref(){return r(R)},set ref(Ee){N(R,le(Ee))},children:(Ee,Me)=>{var ue=Oe(),De=se(ue);{var oe=Qe=>{var ce=M$(),Fe=se(ce),z=h(Fe,!0);g(Fe);var ie=P(Fe,2),Te=h(ie);of(Te,{}),g(ie),S(()=>pe(z,r(K))),_(Qe,ce)},V=Qe=>{var ce=R$(),Fe=se(ce);tf(Fe,{});var z=P(Fe,2);{var ie=J=>{var Ue=L$(),ot=h(Ue,!0);g(Ue),S(()=>pe(ot,r(K))),_(J,Ue)},Te=(J,Ue)=>{{var ot=de=>{var Ae=V$(),qe=h(Ae,!0);g(Ae),S(()=>pe(qe,u().length)),_(de,Ae)};L(J,de=>{r(q)==="COUNT"&&de(ot)},Ue)}};L(z,J=>{r(q)==="FULL"?J(ie):J(Te,!1)})}_(Qe,ce)};L(De,Qe=>{d()?Qe(oe):Qe(V,!1)})}_(Ee,ue)},$$slots:{default:!0}})};L(j,X=>{r(E)&&X(ge)})}_(t,ve),H(),o()}import{debounceFn as By}from"@vkontakte/videoplayer-shared";import{ChromecastState as W$,PlaybackState as Kl,Player as q$,PredefinedQualityLimits as Lr,VideoFormat as Ql,clientChecker as K$}from"@vkontakte/videoplayer-core";import{assertNonNullable as Tn,getHighestQuality as Q$,InterfaceLanguage as G$,isInvariantQuality as Y$,isNonNullable as j$,loadVKLangPack as Z$,Logger as X$,map as yh,merge as J$,Observable as ey,Subject as Vc,Subscription as df,TracerFactory as ty,ValueSubject as iy,VideoQuality as oy,devNull as ny,now as ry}from"@vkontakte/videoplayer-shared";import{SeekAction as Yr}from"@vkontakte/videoplayer-statistics";import{detectEmbed as N$,devNull as Dt,now as Ot}from"@vkontakte/videoplayer-shared";import{addScript as D$,Subject as xo,clearVideoElement as O$}from"@vkontakte/videoplayer-shared";var vh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var H$="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",kc=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 xo,loadStarted$:new xo,loadEnded$:new xo,loadError$:new xo,ready$:new xo,slotRequested$:new xo,started$:new xo,timeRemained$:new xo,paused$:new xo,resumed$:new xo,ended$:new xo,empty$:new xo,skipped$:new xo,clicked$:new xo,closed$:new xo,error$:new xo};this.loadAdman=e=>(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Ot()]}),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?(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Ot()]}),i(),this.events.loadEnded$.next()):(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Ot()]}),o())};D$(H$,e,this.loadTimeout).then(()=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Ot()]}),window.AdmanHTML?(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Ot()]}),i(),this.events.loadEnded$.next()):(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Ot()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Ot()]}),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?(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Ot()]}),i(),this.events.loadEnded$.next()):(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Ot()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Ot()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Ot()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Ot()]}),!d&&(window.AdmanHTML?(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Ot()]}),i(),this.events.loadEnded$.next()):(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Ot()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Ot()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Ot(),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"}),$e(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=()=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",this.currentAdSection??""],numbers:[Ot()]}),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=()=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",this.currentAdSection??""],numbers:[Ot()]}),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(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Ot()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",this.currentAdSection??""],numbers:[Ot()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",this.currentAdSection??""],numbers:[Ot()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",this.currentAdSection??""],numbers:[Ot()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",this.currentAdSection??""],numbers:[Ot()]}),this.log({message:"ad clicked"}),this.videoElement?.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Ot()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Ot()]}),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){if(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Ot(),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:c={},duration:u,previewParam:b}=e,p,$=this.playerState&&$e(this.playerState.vsid);$&&(this.isVsidOriginal?p=$:p=parseInt($,36));let{isEmbed:w,immediateOrigin:x}=N$(),k=(w?x:window.location.href)??window.location.href,T={...c,dl:encodeURIComponent(k),autoplay:a?1:0,player_width:i,player_height:o,preview:b,...p?{request_id:p}:{},duration:u,...this.usePuid?{puid10:vh(i,o),puid11:n?0:1}:{}};b||delete T.preview;let C={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let R=new window.AdmanHTML;R.setDebug(!1),R.onReady(this.onAdsReady),R.onStarted(this.onAdStarted),R.onPlayed(this.onAdPlayed),R.onPaused(this.onAdPaused),R.adMidrollPoint(this.onAdMidrollPoint),R.onClosed(this.onAdClosed),R.onSkipped(this.onAdSkipped),R.onClicked(this.onAdClicked),R.onTimeRemained(this.onAdTimeRemained),R.onCompleted(this.onAdCompleted),R.onError(this.onAdError),R.init(C),this.adman=R,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(C)}`})}catch(R){Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(R)],numbers:[Ot()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){if(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",this.currentAdSection??"","force: "+e],numbers:[Ot()]}),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 o="Switch to video: Adman state was not updated correctly";this.log({message:o}),this.events.error$.next(o)}this.actions.switchFromAdsToVideo?.(!i)}}togglePlay(){if(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",this.currentAdSection??""],numbers:[Ot()]}),this.adsState){this.log({message:"toggle play"});let e=$e(this.adsState.playbackState);e==="playing"?this.pause():e==="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{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{this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Ot()]}),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{this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){if(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",this.currentAdSection??""],numbers:[Ot()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{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(){if(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",this.currentAdSection??""],numbers:[Ot()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){if(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",this.currentAdSection??""],numbers:[Ot()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){if(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",this.currentAdSection??""],numbers:[Ot()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){this.adman?.setPosition(Math.floor(e),Math.floor(i))}destroy(){Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Ot()]}),this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.onReady(void 0),this.adman?.onStarted(void 0),this.adman?.onPlayed(void 0),this.adman?.onPaused(void 0),this.adman?.adMidrollPoint(void 0),this.adman?.onClosed(void 0),this.adman?.onSkipped(void 0),this.adman?.onClicked(void 0),this.adman?.onTimeRemained(void 0),this.adman?.onCompleted(void 0),this.adman?.onError(void 0),this.adman?.destroy(),this.videoElement&&O$(this.videoElement),this.isDestroyed=!0}};var gh=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 nf=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 c=new Tc,{startTime:u,endTime:b}=c.parse(l);s.startTime=u,s.endTime=b}else if(l.trim()!==""){let c=new rf,{texts:u}=c.parse(l);s.texts=[...s.texts,...u]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Tc=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}},rf=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 c=["<",">"].reduce((u,b)=>{let p=s.indexOf(b,d);return u===-1||u>p?p:u},-1);if(c===-1){l.push(s.substring(d));break}l.push(s.substring(d,c)),d=c+1}return l}}),a=new Tc;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}},hh=nf;import{isNonNullable as af}from"@vkontakte/videoplayer-shared";var Ya,Yn,sf=0,lf=!1,_h="",bh=(t,e=0,i=0)=>t<e&&t<i,Ic=(t,e=0,i=0)=>t>=e&&t<=i,F$=(t,e=0,i=0)=>t>e&&t>i,$h=(t,e,i,o=!1)=>{let n=i.find(({id:d})=>d===e.value)?.subtitles;if(o)return n?.find(({startTime:l,endTime:c})=>Ic(t,l,c));let a=t>=sf,s=t<sf;if(sf=t,s&&(lf=!1),af(Ya)&&Ic(t,Ya.startTime,Ya.endTime)&&_h===e.value)return Ya;if(!af(Yn)&&n?.length&&!lf){Yn=n.find(({startTime:l,endTime:c})=>Ic(t,l,c)||a&&bh(t,l,c)),Ya=void 0,!af(Yn)&&n[n.length-1].endTime<t&&(lf=!0);return}else{if(Ic(t,Yn?.startTime,Yn?.endTime))return Ya=Yn,Yn=void 0,_h=e.value,Ya;(a&&F$(t,Yn?.startTime,Yn?.endTime)||s&&bh(t,Yn?.startTime,Yn?.endTime))&&(Yn=void 0)}};var Ec={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"},U$={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Pc=t=>Ec[t]??Ec[U$[t]]??void 0;import{Subscription as z$}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-statistics";var Ac=class{constructor(e,i=new z$){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Mc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Mc||{});var Mr=t=>t??0,Hs=(t,e)=>{let i=t?.getBoundingClientRect?.(),o=e?.getBoundingClientRect?.();return{top:Math.round(Mr(i?.top)-Mr(o?.top)),left:Math.round(Mr(i?.left)-Mr(o?.left)),bottom:Math.round(Mr(i?.bottom)-Mr(o?.top)),right:Math.round(Mr(i?.right)-Mr(o?.left))}},Fs=t=>{let e=t?.getBoundingClientRect?.();return{width:Mr(e?.width),height:Mr(e?.height)}};var Lc="off";var xh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:c,videoEpisodes:u,previewThumbsData:b,uiConfig:p,coreConfig:$,player:w,disabledControls:x,isInteractive:k,interactiveRanges$:T,isInteractiveTime$:C,replayInteractive:R,stopPlayer:A,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:B,additionalButtons:K,additionalSettingsMenuItems:q,additionalContextMenuItems:te,playPrevVideo:ne,playNextVideo:ve,looped:j=!1,statistics:ge,saveRate:X,internalsExposure:Pe,playerView:Ee})=>{let Me={...$,configName:[...$.configName??[],"ui"],isAudioDisabled:s,live:{...$.live??{},isLiveCatchUpMode:!!n}},ue=p,De=ty.createRootTracer(ue.features.tracer),oe=De.createComponentTracer("Store"),V=w||new q$(Me,De);Pe?.expose({corePlayer:V});let Qe=new X$,ce=new kc(Qe,{loadTimeout:ue.ads.loadTimeout,initTimeout:ue.ads.initTimeout,runtimeTimeout:ue.ads.runtimeTimeout,useAdmanFromNPM:ue.ads.useAdmanFromNPM,volumeMultiplier:ue.ads.volumeMultiplier,isVsidOriginal:ue.ads.isVsidOriginal,usePuid:ue.ads.usePuid}),Fe=Da.getInstance(),z=c?.pictureInPictureApi,ie=c?.annotationsApi,Te=c?.slotsApi,J=Qe.createComponentLog("Store"),Ue,ot,de={},Ae=new oc,qe=ge?Ut(ge.oneStat.vsid$):Qn(void 0),je=re(sa()),mt=re(!1),ft=z?.info.isActive$??new iy(!1),Xe=re(0),$t=re([]),ct=J$(V.events.fatalError$,V.events.managedError$).subscribe(f=>$t.update(I=>[...I,f])),Lt=Qn(!1,f=>{let I=V.events.fatalError$.subscribe(()=>f(!0));return()=>I.unsubscribe()}),zt=async f=>{let I=Object.values(G$).includes(f);if(ue.downloadVKLanguages&&(I&&ue.updateBuiltinLanguages||!mp(f))){let xe;try{xe=await Z$(f,ag,sg)}catch(lt){ge?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),Fe?.report(lt,{errorType:"VKLangPack",fatal:!1})}xe&&(fp({language:f,pack:xe,fallback:ue.defaultLanguage}),ze.set(f))}mp(f)&&ze.set(f)},ze=re(t),Et=re(e);zt(t);let Q=(f,I)=>{let D=$e(ze);return vp(D,f,I,ue.defaultLanguage)},be=re("thumb"),ae=(()=>{let f=ri([Lt,be],([I,D])=>I?"crashed":D);return{...f,is:I=>$e(f)===I}})(),Ie=(()=>{let f=re(new Set(x));return{...f,add:I=>{f.update(D=>new Set([...D].concat(I)))},remove:I=>{f.update(D=>{let xe=[...D];return new Set(Array.isArray(I)?xe.filter(lt=>!I.includes(lt)):xe.filter(lt=>lt!==I))})},includes:I=>{let D=$e(f);return Array.isArray(I)?I.every(xe=>D.has(xe)):D.has(I)}}})();oe.log("create store"),J({message:"create store"});let nt=f=>{let I=f.container;I.append(V.experimental.element$.getValue()),Be=new MutationObserver(D=>{let{removedNodes:xe}=D[0];xe.length&&I.append(V.experimental.element$.getValue())}),Be.observe(I,{childList:!0})},Re=f=>{J({message:`init video, config: ${JSON.stringify(f)}`}),k?nt(f):(ny.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[ry()]}),V.initVideo(f)),oe.log("init video",{isInteractive:k}),f.subtitles&&V.setExternalTextTracks(f.subtitles),Ue=f},me=new Vc,Ge=f=>me.next(f),pt=new Vc,kt=new Vc,qt=new Vc,Be=null,Ze={actionRewind$:pt,actionSeek$:kt,inPiP$:ft,inFullscreen$:new ey(f=>je.subscribe(I=>f.next(I))),actionSetSubtitle$:qt,nextMovie$:me};if(ge){let{oneStat:f,statSubscription:I}=ge;k||I.add(f.attachTo(V)),I.add(f.attachToUi(Ze)),I.add(f.attachToAds(ce.events)),f.authorize(a).catch(D=>{J({message:`onestat auth error ${String(D)}`})})}if(Fe){let f=new df,I=(D,xe)=>f.add(D.subscribe(xe));if(I(V.events.managedError$,D=>{Fe.logIError(D)}),I(V.events.fatalError$,D=>{Fe.logIError(D,!0)}),ge){let{oneStat:D}=ge;I(D.experimental.error$,xe=>{Fe.logIError(xe)})}Fe.sentrySubscription.add(f)}let Ht=()=>{K$.device.isIOS&&ot&&Wg(ot).catch(f=>{J({message:`exitIosSafariFullscreen failed: ${f}`})})},yi=new df().add(V.experimental.element$.subscribe(f=>{f&&(ot=f,f.classList.add("player-media"),Ha(z)&&(z.updateVideoElement(),z.registryEventHandlers()),k&&f.setAttribute("pip","false"),Ee==="preview"&&(f.setAttribute("disablePictureInPicture","true"),f.setAttribute("x-yandex-pip","false")))})).add(V.events.ended$.subscribe(()=>{Ht(),l?.onEnded?.()})).add(V.events.looped$.subscribe(()=>{l?.onLooped?.()})).add(V.events.started$.subscribe(async()=>{Ha(z)&&await z?.revealPictureInPicture();let f=V.info.muted$.getValue();l?.onStarted?.(),de.onStarted?.(f)})).add(V.events.willSeek$.subscribe(({from:f,to:I})=>{l?.onSeek?.(f,I)})).add(V.events.autoplaySoundProhibited$.subscribe(()=>{l?.onAutoplaySoundProhibited?.()})).add(V.info.position$.subscribe(f=>{let I=V.info.duration$.getValue();isFinite(I)&&I>0&&(l?.onTimeupdate?.(I,f),ce.setPosition(f,I))})).add(V.events.fatalError$.subscribe(f=>{l?.onCrashed?.(f?`${f.id}: ${f.message}`:void 0)})).add(V.events.fetcherRecoverableError$.subscribe(f=>{l?.onRecoverableError?.(f?`${f.id}: ${f.message}`:void 0)})).add(V.events.loadedMetadata$.subscribe(()=>{wt.state.loadedMetadata$.set(!0)})).add(V.info.is3DVideo$.subscribe(f=>{wt.ui.is3DVideo.set(f)})).add(V.info.isEnded$.subscribe(f=>{k&&(f?(C?.getValue()&&Ie.add($l),Ie.add("PLAY_BUTTON")):Ie.remove("PLAY_BUTTON"))})).add(V.info.liveTime$.subscribe(f=>{l?.onLiveTime?.(f)})).add(V.info.isStalled$.subscribe(f=>{l?.onStalledChanged?.(f)})).add(V.info.isLiveEnded$.subscribe(f=>f&&l?.onLiveEnded?.())).add(ce.events.loadStarted$.subscribe(()=>l?.adsInfo?.onLoadStarted?.())).add(ce.events.loadEnded$.subscribe(()=>l?.adsInfo?.onLoadEnded?.())).add(ce.events.loadError$.subscribe(()=>l?.adsInfo?.onLoadError?.())).add(ce.events.init$.subscribe(()=>l?.adsInfo?.onInit?.())).add(ce.events.ready$.subscribe(()=>l?.adsInfo?.onReady?.())).add(ce.events.started$.subscribe(f=>l?.adsInfo?.onStarted?.(f))).add(ce.events.timeRemained$.subscribe(f=>l?.adsInfo?.onTimeRemained?.(f))).add(ce.events.ended$.subscribe(f=>l?.adsInfo?.onCompleted?.(f))).add(ce.events.empty$.subscribe(()=>l?.adsInfo?.onEmpty?.())).add(ce.events.clicked$.subscribe(f=>l?.adsInfo?.onClicked?.(f))).add(ce.events.closed$.subscribe(f=>l?.adsInfo?.onClosed?.(f))).add(ce.events.error$.subscribe(f=>l?.adsInfo?.onError?.(f))).add(ce.events.paused$.subscribe(()=>l?.adsInfo?.onPaused?.())).add(ce.events.resumed$.subscribe(()=>l?.adsInfo?.onResumed?.())),xi=new df,Qo=()=>{let{debugLog:f}=ue,I,D="#9df7b7",xe="#efd169";if(f&&f!==!0){let{colors:St}=f;I=f.tag,D=St?.[0]??D,xe=St?.[1]??St?.[0]??xe}let lt=I?`: ${I}`:"";xi.add(V.events.log$.subscribe(St=>{console.debug(`%c sdk${lt} `,`background:${D};`,`sdk component: ${St.component}`,St.message)})).add(Qe.log$.subscribe(St=>{console.debug(`%c ui${lt} `,`background:${xe};`,`ui component: ${St.component}.`,St.message)}))},cn=()=>{xi.unsubscribe()},un=(f,I)=>{oe.log("start camera manual rotation",{mx:f,my:I}),V.startCameraManualRotation(f,I)},Go=(f=!1)=>{oe.log("stop camera manual rotation",{immediate:f}),V.stopCameraManualRotation(f)},So=(f,I,D)=>{oe.log("move camera focus px",{xpx:f,ypx:I,dt:D}),V.moveCameraFocusPX(f,I,D)},qi=()=>{V.holdCamera()},Wt=()=>{V.releaseCamera()},po=Qn(V.info.position$.getValue(),f=>{let I,D,xe=()=>{let lt=V.info.playbackState$.getValue(),St=V.info.isLive$.getValue(),Bt=V.info.duration$.getValue(),jt=V.info.position$.getValue();if(lt&&[Kl.PLAYING,Kl.PAUSED].includes(lt)){let $o=St?jt-Bt:V.getExactTime();$o!==D&&f($o),D=$o}I=requestAnimationFrame(xe)};return xe(),()=>cancelAnimationFrame(I)}),Yo=Ut(V.info.playbackState$),Li=Ut(V.info.currentBuffer$),ro=Ut(V.info.isEnded$),G=Ut(V.info.isLive$),Kt=ue.features.playbackRate?Ut(V.info.canChangePlaybackSpeed$):Qn(!1),Jt=Ut(V.info.liveBufferTime$),Vi=Ut(V.info.volume$),ei=Ut(V.info.muted$),at=nc(V.info.predefinedQualityLimitType$.pipe(yh(f=>f===Lr.TRAFFIC_SAVING)),V.info.predefinedQualityLimitType$.getValue()===Lr.TRAFFIC_SAVING),Ki=nc(V.info.predefinedQualityLimitType$.pipe(yh(f=>f===Lr.HIGH_QUALITY)),V.info.predefinedQualityLimitType$.getValue()===Lr.HIGH_QUALITY),vt=Ut(V.info.autoQualityLimitingAvailable$),Ft=Ut(V.info.availableQualities$),fo=Ut(V.info.availableQualitiesFps$),wi=Ut(V.info.chromecastState$),In=Ut(V.info.chromecastDeviceName$),Ri=Ut(V.info.currentFormat$),mo=Ut(V.info.throughputEstimation$),Zt=Ut(V.info.videoBitrate$),ht=Ut(V.info.intrinsicVideoSize$),vi=Ut(V.info.duration$),Co=Ut(V.info.isAudioAvailable$),Xt=null,ko=V.info.isBuffering$,Si=Qn(ko.getValue(),f=>{let I=ko.subscribe(D=>{D&&Xt===null?Xt=window.setTimeout(()=>{f(ko.getValue()),Xt=null},ue.loaderDelay):f(D)});return()=>{I.unsubscribe(),Xt&&clearTimeout(Xt)}}),ao=()=>{Xt&&clearTimeout(Xt),Xt=null},Ci=ri([vi,G],([f,I])=>I?-f:f),En=ri([Yo],([f])=>f===Kl.PLAYING),Qi=Ut(V.info.atLiveEdge$),pn=Ut(V.info.atLiveDurationEdge$),vo=Ut(V.info.position$),go=ri([vo,vi],([f,I])=>isFinite(f)&&isFinite(I)&&!!I),fn=ri([wi],([f])=>f===W$.CONNECTED),hr=Ut(V.info.availableVideoStreams$),jn=ue.features.audioLanguages?Ut(V.info.availableAudioStreams$):Qn([]),mn=Ut(V.info.currentVideoStream$),jo=Ut(V.info.currentAudioStream$),Pn=f=>{f.language&&pp(f.language),V.setVideoStream(f)},st=f=>{f.language&&pp(f.language),V.setAudioStream(f)},Gi=f=>{let I;if(f.length===1&&(I=f.at(0)),I??=f.find(xe=>"isDefault"in xe&&xe.isDefault),I)return I;let D=Pg();return D&&(I=f.find(({language:xe})=>D===xe)),I??=f.at(0),I},To=!1;yi.add(V.info.availableAudioStreams$.subscribe(f=>{if(!To&&f.length){let I=Gi(f);I&&(V.setAudioStream(I),To=!0)}}));let vn=!1;yi.add(V.info.availableVideoStreams$.subscribe(f=>{if(!vn&&f.length){let I=Gi(f);I&&(V.setVideoStream(I),vn=!0)}}));let ho=re(void 0),Io=Ut(V.info.isAutoQualityEnabled$,f=>f&&ho.set(void 0)),An=Ut(V.info.currentQuality$,()=>ho.set(void 0)),_o=ri([ho,An],([f,I])=>f??I),Mn=ri(Ri,f=>f!==Ql.MPEG),Zo=ri([Ft,fo,Io,_o,Mn],([f,I,D,xe,lt])=>{let St=[];lt&&St.push({value:"auto",displayValue:Q("auto_quality_option"),selected:D});let Bt=f.filter(jt=>!Y$(jt));for(let jt of Bt){let $o=I[jt];St.push({value:jt,displayValue:`${jt}${$o?gh($o):""}`,selected:D?!1:jt===xe})}return St}),Ln=Ut(V.info.currentPlaybackRate$),Eo=ri([Ln,Qi,pn],([f,I,D])=>{let xe=D||k?1:ue.controls.playbackRateMin,lt=I?1:ue.controls.playbackRateMax,St=ue.controls.playbackRateStep,Bt=[];for(let jt=xe;jt<=lt;jt+=St)Bt.push({value:jt,displayValue:jt===1?Q("playback_rate_1"):Q("playback_rate",{multiplier:jt.toString(10)}),selected:f===jt});return Bt}),Yi={displayValue:Q("subtitles_off"),value:Lc},ai=re({...Yi}),Xo=ue.features.subtitles?Ut(V.info.availableTextTracks$):Qn([]),Jo=yg(),Po=ri([Xo,ai],([f,I],D)=>{let xe=[],lt=f.find(({id:St})=>St===I.value);if(lt?.url){let[,St]=Jo.find(lt.url)??[];if(St){D(St);return}Ae.download(lt.url).then(Bt=>{if(!Bt||Ae.isDestroyed())return;let jt=new hh,$o=lt.language;if($o){let au=!!lt.isAuto,c1=jt.parse(Bt,$o);xe.push({lang:$o,subtitles:c1,isAuto:au,id:lt.id})}Jo.add(lt.url,xe),$e(ai).value===I.value&&D(xe)}).catch(Bt=>{ge?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),Fe?.report(Bt,{errorType:"Subtitles download",fatal:!1})})}D(xe)}),ji=ri([Ln,En,ai],([f,I,D],xe)=>{let Bt;if(V.info.isLive$.getValue()&&I&&D.value!==Yi.value){let $o=()=>{let au=1e3/(3*f);Bt=setTimeout($o,au),xe(Date.now())};return $o(),()=>clearTimeout(Bt)}}),gn=ri([Xo,ai],([f,I])=>{if(!f.length)return[];let D=[];for(let{language:xe,isAuto:lt,id:St}of f){let Bt=xe&&Pc(xe);xe&&Bt&&D.push({displayValue:lt?Q("subtitles_auto",{language:Bt}):Bt,value:St,selected:I?.value===St,isAuto:lt})}return D.length?(D.unshift({...Yi,selected:I?.value===Yi.value}),D):[]}),so={available:[],prev:[]},ki=()=>V.experimental.getCurrentTime$.getValue()?.()??ot?.currentTime??0,Zn=ri([po,ai,Po,ji],([f,I,D,xe])=>{let lt=V.info.isLive$.getValue();if(lt&&so.prev!==D){let St=D.find(({id:jt})=>jt===I.value),Bt=so.prev.find(({id:jt})=>jt===I.value);if(St){let jt={...St,subtitles:[...Bt?.subtitles??[],...St.subtitles]};so.available=[jt],so.prev=D}}if(I&&I.value!==Yi.value){let St=lt?ki():f,Bt=lt?so.available:D;return $h(St,I,Bt,lt)}}),bo=ri([Zn],([f])=>f?.texts?f.texts:[]);yi.add(ai.subscribe(f=>{if(f.value===Yi.value)l?.onSubtitleOff?.();else{let I=Object.entries(Ec).find(([D,xe])=>xe===f.displayValue);l?.onSubtitleOn?.(I?I[0]:"")}}));let Vn=re(!0),hn=ri([Li,Ci,vo,Jt],([f,I,D,xe])=>{let lt=f?.end??0;if(!xe)return lt/I;let Bt=-D+xe-I;return(lt-Bt)/I}),Rn=Ut(V.info.availableSources$),Xn=ri([Rn],([f])=>Object.keys(f?.[Ql.MPEG]||{}).length>0),en=()=>{let f=Object.keys(V.info.availableSources$?.getValue()?.[Ql.MPEG]||{}),I=Q$(f)||oy.Q_144P;return Ue.sources[Ql.MPEG]?.[I]},_r=()=>{let f=en();if(f)oe.log("download video",{url:f}),_g(f,Ue?.meta?.title||"video");else{let I="There is no URL for download video";oe.log("download video",{message:I}),J({message:I})}},Jn=()=>{J({message:"toggle muted"});let f=V.info.muted$.getValue();V.info.volume$.getValue()===0&&!f?si(Ye()):Zi(!f)},Bn=()=>{if(wt.ui.settingsMenu.visible$.set(!1),!$e(wt.ui.settingsSubMenu.visible$)){let f=$e(wt.ui.settingsMenu.ref$);if(l?.uiInfo?.onSettingsMenu&&f){let D=Fs(f),xe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:D,position:xe,name:"settings"})}}oe.log("close settings menu")},br=async(f,I=()=>Promise.resolve())=>{wt.ui.settingsMenu.openedByBtnKeyboard$.set(!!f),wt.ui.settingsMenu.visible$.set(!0),await I();let D=$e(wt.ui.settingsMenu.ref$),xe=_a();if(l?.uiInfo?.onSettingsMenu&&D&&xe){let St=Fs(D),Bt=Hs(D,xe);l.uiInfo.onSettingsMenu({visible:!0,size:St,position:Bt,name:"settings"})}oe.log("open settings menu",{wasOpenedByKeyboard:f})},$r=(f,I=!1)=>{wt.ui.settingsSubMenu.visible$.set(!1);let D=$e(wt.ui.settingsMenu.ref$),xe=_a(),lt=$e(wt.ui.settingsMenu.visible$);if(l?.uiInfo?.onSettingsMenu&&D&&xe)if(lt&&!I){let Bt=Fs(D),jt=Hs(D,xe);l.uiInfo.onSettingsMenu({visible:!0,size:Bt,position:jt,name:"settings"})}else{let Bt=Fs(f),jt={top:0,left:0,bottom:0,right:0},$o=$e(wt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Bt,position:jt,name:$o})}oe.log("close settings sub menu")},rt=(f,I)=>{wt.ui.settingsSubMenu.visible$.set(!0),wt.ui.settingsSubMenu.ref$.set(I),wt.ui.settingsSubMenu.name$.set(f);let D=_a();if(l?.uiInfo?.onSettingsMenu&&I&&D){let lt=Fs(I),St=Hs(I,D);l.uiInfo.onSettingsMenu({visible:!0,name:f,size:lt,position:St})}oe.log("open settings sub menu",{name:f})},Ye=()=>{let f=Math.max(ue.volumeMinRestore,rc()??0);return f===0?ue.volumeDefault:f},si=f=>{let I=f===0?Ye():f,D=V.info.muted$.getValue();J({message:`set volume, volume: ${f}, preferredVolume: ${I}`});let xe=!s||ae.is("ads");D&&f>0&&xe&&(D=!1,cp(!1)),V.setVolume(f,D),ce.setVolume(f),rp(I)},Zi=f=>{let I=V.info.volume$.getValue();if(J({message:`set muted, currentVolume: ${I}, mute: ${f}`}),V.setMuted(f,ae.is("ads")),ce.setVolume(f?0:I),cp(f),!f&&I===0){let D=Ye();V.setVolume(D),rp(D),ce.setVolume(D)}},li=re(!1),Qt=f=>{oe.log("set looped",{isLooped:f}),li.set(f),V.setLooped(f),l?.uiInfo?.onLoopedChanged?.(f)};Qt(j);let lo=()=>{l?.uiInfo?.onReportProblem?.()},Ao=(f,I=!1)=>{J({message:`set autoplayNextEnabled, value: ${f}`}),oe.log("set autoplay next enabled",{autoplayNextEnabled:f}),wt.ui.autoplayNextEnabled$.set(f),Lg(f),I&&l?.onSetAutoplayNextEnabled?.(f)},Mo=f=>{J({message:`set timerNextVideoRunning, value: ${f}`}),oe.log("set timer next video running",{timerNextVideoRunning:f}),wt.ui.timerNextVideoRunning$.set(f)},Je=(f=!0)=>{let I=!0;if(f&&l?.onPrevVideoClick)try{I=l?.onPrevVideoClick?.()}catch{J({message:"onPrevVideoClick callback failed to execute"})}if(!I)return;f&&gi("prev")||ne()},yt=(f=!0)=>{let I=!0;if(f&&l?.onNextVideoClick)try{I=l?.onNextVideoClick?.()}catch{J({message:"onNextVideoClick callback failed to execute"})}if(!I)return;f&&gi("next")||ve()},gi=f=>{let{isMobile:I,features:{playbackStatusNextVideoShow:D,playbackStatusShow:xe}}=ue;return D&&xe&&!I?(wt.ui.aboutToGoNextVideo.set(f),wt.ui.userActionsDisabled.set(!0),!0):!1},Bi=()=>{l?.onNextVideoAnnouncementShow?.()},pi=()=>{l?.onNextVideoAnnouncementClick?.()},yr=()=>{l?.onNextVideoAnnouncementAuto?.()},er=()=>{l?.onNextVideoAnnouncementCancel?.()},Vr=()=>{V.prepare()},tr=()=>{Tn(wt);let f=$e(wt.ui.controls.disabledControls$),I=$e(wt.playerPhase),D={playerPhase:I,isInteractive:k,isVideoEnded:!1,action:"none"};if(f.has("PLAY_BUTTON"))return;if(J({message:"toggle play"}),I==="ads"){D.action="play",oe.log("toggle adman play",D),ce.togglePlay();return}let xe=()=>{J({message:"toggle play, call player.play"}),D.action="play",V.play(),l?.onPlay?.()},lt=()=>{J({message:"toggle play, call player.pause"}),D.action="pause",V.pause(),l?.onPause?.()};if(V.info.isEnded$.getValue()){if(J({message:"toggle play, video ended, seek to 0"}),pt.next(),kt.next(Yr.REWIND),k){R?.();return}V.seekTime(0),xe()}else V.info.playbackState$.getValue()!==Kl.PLAYING?xe():lt();oe.log("toggle play",D)},Nn=(f,{changeReason:I="default",appliesTo:D="to-video"}={})=>{J({message:`set quality, quality: ${f}`}),oe.log("set quality",{quality:f}),V.setAutoQuality(f==="auto"),f!=="auto"?(ue.features.qualityDetailsSubMenuEnabled?(ac({type:"exact_quality",quality:f,videoId:i},D),xl(),V.setPredefinedQualityLimits(Lr.UNKNOWN)):ap(i,f),ho.set(f),V.setQuality(f)):ue.features.qualityDetailsSubMenuEnabled?I==="default"&&(ir("auto_quality",D),$e(at)&&Ai(!1),$e(Ki)&&_n(!1)):xl()},Ai=(f,I="as-default")=>{J({message:`set trafficSavingEnabled, value: ${f}`}),oe.log("set traffic saving enabled",{trafficSavingEnabled:f});let D=f?Lr.TRAFFIC_SAVING:Lr.UNKNOWN;ue.features.qualityDetailsSubMenuEnabled?(Lo(D,I),yl(!1)):(V.setPredefinedQualityLimits(D),yl(f))},_n=(f,I="as-default")=>{J({message:`set highQualityEnabled, value: ${f}`}),oe.log("set high quality enabled",{highQualityEnabled:f}),Lo(f?Lr.HIGH_QUALITY:Lr.UNKNOWN,I)},Lo=(f,I)=>{f!==Lr.UNKNOWN&&($e(vt)&&!$e(Io)&&Nn("auto",{appliesTo:I,changeReason:"limit-changed"}),ir(f,I)),V.setPredefinedQualityLimits(f)},ir=(f,I)=>{ac({type:f,videoId:i},I),I==="as-default"&&ac({type:f,videoId:i},"to-video")},bn=f=>{oe.log("set playback rate",{playbackRate:f}),V.setPlaybackRate(f),ue.features.saveRate&&X&&!V.info.isLive$.getValue()&&Ag(f)},xr=()=>{let f=$e(Eo),I=f.findIndex(({selected:xe})=>xe);if(I===f.length-1)return;let D=f[I+1];bn(D.value)},Dn=()=>{let f=$e(Eo),I=f.findIndex(({selected:xe})=>xe);if(I===0)return;let D=f[I-1];bn(D.value)},or=(f={...Yi,selected:!1})=>{oe.log("set subtitles",{...f}),f&&f.value!==Yi.value&&qt.next(f.isAuto?f.value+"_auto":f.value),ai.set(f)},On=()=>{oe.log("toggle subtitles");let f=$e(gn),I=$e(ai),D=$e(ze);if(I?.value===Yi.value){let xe=f.filter(lt=>lt.value!==Yi.value).find(lt=>lt.value===D)||f[1];or(xe)}else or()},wr=re(!0),nr=f=>{wr.set(f)},Vo=(f,I,D=!0)=>{if(J({message:`seek to time, time: ${f}`}),oe.log("seek to time",{time:f,action:I,forcePrecise:D}),kt.next(I),V.info.isLive$.getValue()){let xe=V.info.duration$.getValue(),lt=Math.min(0,xe+f);V.seekTime(lt,D)}else{if(C?.getValue())return;V.info.isEnded$.getValue()&&(J({message:"seek after ended, call callbacks.onPlay"}),l?.onPlay?.()),V.seekTime(Cm(f),D)}},Sr=f=>{J({message:`seek to episode start time: ${f}`}),oe.log("seek to episode start time",{time:f}),Vo(f,Yr.EPISODE,!0)},Ro=(f,I)=>{J({message:`seek to percent, percent: ${f}`}),oe.log("seek to percent",{percent:f,action:I});let D=$e(Ci)*f;Vo(D,I,!1)},tt=f=>{J({message:`seek external, time: ${f}`}),oe.log("seek external",{time:f}),kt.next(Yr.UNKNOWN),V.seekTime(V.info.isLive$.getValue()?-f:f)},Rt=f=>{let I=f.max??"none",D=f.min??"none";J({message:`set auto quality limitation. Max: ${I}. Min: ${D}`}),oe.log("set auto quality limits",{max:I,min:D}),V.setAutoQualityLimits(f)},hi=f=>{J({message:`seek external to episode start time: ${f}`}),oe.log("seek external to episode start time",{time:f}),Vo(f,Yr.EPISODE,!0)},Bo=f=>{J({message:`set playback rate to: ${f}`}),oe.log("set playback rate external",{playbackRate:f}),V.setPlaybackRate(f)},di=re(void 0),No=re(!1),Hn=f=>{J({message:`start scrubbing, progress: ${f}`}),oe.log("start scrubbing",{progress:f}),No.set(!0),Fn(f)},Fn=f=>{di.set(f)},_i,ti,Ni=()=>{di.set(void 0),No.set(!1)},Se=()=>{clearTimeout(ti),clearTimeout(_i),_i=window.setTimeout(()=>{Ni()},500),ot?.removeEventListener("seeked",Se)},Vt=f=>{J({message:`complete scrubbing, progress: ${f}`}),oe.log("complete scrubbing",{progress:f}),Ro(f,Yr.SLIDER),$e(wt.ui.isMobile)&&$e(wt.state.currentFormat$)===Ql.HLS?(ot?.addEventListener("seeked",Se),ti=window.setTimeout(()=>{Se()},300)):Ni()},Gt=ri([po,Ci,di],([f,I,D],xe)=>{xe(j$(D)?D*I:f)}),Ne=re(!1),Nt=()=>{Ne.set(!0)},Ti=()=>{Ne.set(!1)},bi=re({width:0,height:0}),fi=ri([bi],([{width:f}],I)=>{let D=uh(f);I(D)}),$n=re(!1),Xi=K.filter(f=>bg(f)),rr=ri([fi,$n],([f,I])=>I?Xi.filter(D=>!D.hideOnMobile):Xi.filter(D=>!D.hideOnDesktopGridTypes?.includes(f))),tn=re(K.filter(f=>$g(f))),Jr=ri([tn,fi],([f,I])=>f.filter(D=>!D.hideOnDesktopGridTypes?.includes(I))),ga=ri([Jr,rr],([f,I])=>[...ue.features.additionalButtonsDesktopControlPanelRight?f.filter(D=>D.type==="desktop-control-panel-right"):[],...ue.features.additionalButtons?I.map((D,xe)=>({id:xe,weight:xe,type:"desktop-control-panel-right",testId:D.testId,icon:D.iconUrl,onClick:D.onClick,ariaLabel:D.ariaLabel??D.tooltip,tooltipText:D.tooltip})):[]]),Un=re(q),rs=ri([Un],([f])=>ue.features.additionalSettingsMenuItems?f.map(I=>I.type==="SWITCH"?{...I,onClick:I.onChangeEnabled}:I):[]),Qs=(f,I)=>{let D=$e(tn).map(xe=>xe.id!==f?xe:{...xe,...I});tn.set(D)},as=f=>{let I=$e(tn);if(I.some(D=>D.id===f.id)){J({message:`Additional button with id: "${f.id}" was exist! Can't add more with the same id`});return}I.push(f),tn.set(I)},ss=f=>{let I=$e(tn);if(!I.some(D=>D.id===f)){J({message:`Can't find additional button with id: "${f}"! Can't remove item with this id`});return}I=I.filter(D=>D.id!==f),tn.set(I)},ls=f=>{kt.next(Yr.LIVE),J({message:"live switch to low latency "+f}),oe.log("live switch to low latency "+f),V.setLiveLowLatency(f)},Gs=(f,I)=>{let D=$e(Un).map(xe=>xe.id!==f?xe:{...xe,...I});Un.set(D)},xt=f=>{let I=$e(Un);if(I.some(D=>D.id===f.id)){J({message:`Settings menu item with id: "${f.id}" was exist! Can't add more with the same id`});return}I.push(f),Un.set(I)},Ct=f=>{let I=$e(Un);if(!I.some(D=>D.id===f)){J({message:`Can't find settings menu item with id: "${f}"! Can't remove item with this id`});return}I=I.filter(D=>D.id!==f),Un.set(I)},Mi=re(te),Rr=ri([Mi],([f])=>ue.features.additionalContextMenuItems?f:[]),ea=(f,I)=>{let D=$e(Mi).map(xe=>xe.id!==f?xe:{...xe,...I});Mi.set(D)},Br=f=>{let I=$e(Mi);if(I.some(D=>D.id===f.id)){J({message:`Context menu item with id: "${f.id}" was exist! Can't add more with the same id`});return}I.push(f),Mi.set(I)},ar=f=>{let I=$e(Mi);if(!I.some(D=>D.id===f)){J({message:`Can't find context menu item with id: "${f}"! Can't remove item with this id`});return}I=I.filter(D=>D.id!==f),Mi.set(I)},ha=ri([$n,Lt],([f,I],D)=>{D(f&&I)}),ds=()=>{kt.next(Yr.LIVE),J({message:"switch to active live"}),oe.log("switch to active live"),V.seekTime(0),V.info.playbackState$.getValue()!==Kl.PLAYING&&wt.actions.internal.togglePlay()},eu=()=>{oe.log("skip adman"),ce.skip()},xd=(f=!0)=>{Tn(wt),J({message:`switch from ads to video, callPlay: ${f}`}),oe.log("switch from ads to video",{callPlay:f}),be.set("video"),f&&V.play(),s&&Zi(!0)},tu=()=>{Tn(wt),J({message:"switch from video to ads"}),oe.log("switch from video to ads"),wt.actions.internal.pause(),Ht(),be.set("ads")},wd=f=>{Tn(wt);let I=f?"LiveWaitingStart":"thumb";oe.log("set live waiting start",{state:f,playerPhase:I}),be.set(I)},iu=f=>{Tn(wt);let I=f?"LiveWaitingRecover":"thumb";oe.log("set live waiting recover",{state:f,playerPhase:I}),be.set(I)},Sd=f=>{Tn(wt);let I=f?"LiveWaitingRecord":"thumb";oe.log("set live waiting record",{state:f,playerPhase:I}),be.set(I)},ou=()=>(Tn(wt),oe.log("get debug text data"),gg(V,Ue,wt,De.getTraceId())),Cd=()=>(Tn(wt),JSON.stringify(De.getFinishedSpans())),nu=()=>(Tn(wt),hg(V,Ue,wt)),_a=()=>ot,kd=()=>{J({message:"toggle chromecast"}),oe.log("toggle chromecast"),V.toggleChromecast()},Ys=f=>{if(Tn(wt),V.info.isEnded$.getValue())return;let I=!f;if($e(wt.playerPhase)==="ads"){J({message:`pause ads, internalCall: ${I}`}),oe.log("pause ads",{internalCall:I}),ce.pause();return}J({message:`pause video, internalCall: ${I}`}),oe.log("pause video",{internalCall:I}),I&&l?.onPause?.(),V.pause()},Td=f=>{Tn(wt);let I=!f;if($e(wt.playerPhase)==="ads"){J({message:`play ads, internalCall: ${I}`}),oe.log("play ads",{internalCall:I}),ce.play();return}J({message:`play video, internalCall: ${I}`}),oe.log("play video",{internalCall:I}),I&&l?.onPlay?.(),V.play()},Id=f=>{Tn(wt);let I=!f;if($e(wt.playerPhase)==="ads"){J({message:"player cannot be stopped during ads via external method"});return}J({message:`player will be stopped, internalCall: ${I}`}),A?.()},Ed=(f,I)=>{Tn(wt),J({message:`first start, show ads: ${f}, internalCall: ${!I}`}),oe.log("first start",{showAds:f,external:I}),f?be.set("ads"):(be.set("video"),I?V.play():wt.actions.internal.togglePlay())},cs=()=>(J({message:"getting time codes"}),u),Pd=()=>{let f=cs();if(!f||[0,1].includes(f.length))return;let I=V.info.position$.getValue();return f.find(D=>D.time>I)},ru=f=>{let I=f;I||(I=Pd());let D=V.info.position$.getValue();oe.log("seek to next episode",{currentTime:D,...I}),I&&(J({message:"seek to next episode"}),Vo(I.time,Yr.EPISODE,!0))},Ad=()=>{let f=cs();if(!f||[0,1].includes(f.length))return;let I=V.info.position$.getValue(),D=f.findIndex(lt=>lt.time>I),xe=D===-1?f.length-2:D-2;if(!(xe<0))return f[xe]},We=f=>{let I=f;I||(I=Ad());let D=V.info.position$.getValue();oe.log("seek to prev episode",{currentTime:D,...I}),I&&(J({message:"seek to prev episode"}),Vo(I.time,Yr.EPISODE,!0))},Yt=()=>(J({message:"getting preview thumbs data"}),oe.log("get preview thumbs data",{...b}),b),zn=async()=>{let f=z?.isActive(),I="none";z?.isActive()?(I="remove",await z?.remove()):(I="request",await z?.request()),oe.log("toggle picture in picture",{isActive:f,action:I})},ba=(f=-90)=>{oe.log("rotate video",{alphaDiff:f}),Xe.update(I=>I+f)},Wn=re([]);T?.subscribe(f=>{let I=[];for(let D=0;D<f.length;D++){let{range:[xe,lt],subjects:St}=f[D];D===0&&xe!==0&&I.push({time:0,text:"",interactive:!1,completed:!0}),I.push({time:xe/1e3,text:"",interactive:!0,completed:ue.features.interactiveTimeOpenUri?!St.length||St.every(Bt=>Bt.isRemoved):!St.length}),lt!==1/0&&I.push({time:lt/1e3,text:"",interactive:!1,completed:!0})}Wn.set(I)});let s1=re(!1);C?.subscribe(f=>{f&&$e(No)&&Ni()});let Cm=f=>{if(!k)return f;let I=$e(Wn),D=$e(Ci),lt=$e(vo)/D,St=I.find(Bt=>Bt.interactive&&!Bt.completed&&Bt.time>lt);return typeof St?.time=="number"?Math.min(f,St.time-.05):f},l1=()=>{wt.ui.episodes.panelOpened$.set(!1)},d1=()=>{oe.log("destroy store"),clearTimeout(ti),clearTimeout(_i),yi.unsubscribe(),xi.unsubscribe(),V.destroy(),ce.destroy(),ge?.destroy(),Fe?.destroy(),ct.unsubscribe(),Be?.disconnect(),Be=null,Ae.destroy()},wt={interfaceLanguage$:ze,isCyrillicRelatedInterface$:Et,initVideo:Re,videoId:i,isClip:o,playerPhase:ae,vsid:qe,state:{positionExact$:po,positionWithScrubbing$:Gt,duration$:Ci,playbackState$:Yo,isPlaying$:En,isLoaderVisible:Si,bufferedProgress$:hn,isLive$:G,canChangePlaybackSpeed$:Kt,isActiveLive$:Qi,isOldestAvailableLive$:pn,isRewindableLive$:go,isEnded$:ro,muted$:ei,volume$:Vi,trafficSavingEnabled$:at,highQualityEnabled$:Ki,autoQualityLimitingAvailable$:vt,availableVideoStreams$:hr,availableAudioStreams$:jn,videoStream$:mn,audioStream$:jo,currentQuality$:_o,isAutoQualityEnabled$:Io,availableQualities$:Zo,currentPlaybackRate$:Ln,availablePlaybackRates$:Eo,currentSubtitle$:ai,availableTextTracks$:Xo,availableSubtitlesList$:gn,currentSubtitleCaptions$:bo,isAutoSubtitleCaptionVisible$:Vn,chromecastState$:wi,chromecastDeviceName$:In,chromecastConnected$:fn,currentFormat$:Ri,throughputEstimation$:mo,videoBitrate$:Zt,videoSize$:ht,errorLog$:$t,crashed$:Lt,isAudioAvailable$:Co,isAudioDisabled:!!s,canDownload:ue.features.download&&!!d,availableSources$:Rn,hasMpegSources$:Xn,isInteractive:k,showInteractiveGraph:ue.features.interactiveGraph,showSeekToInteractive:ue.features.seekToInteractive,showPlayPrevChapter:ue.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ue.features.interactiveTimeIndicator&&!!$e(Wn).length,interactiveEpisodes$:Wn,isInteractiveTime$:C?Ut(C):re(!1),isInteractiveExpectation$:s1,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:B,looped$:li,loadedMetadata$:re(!1),isAutoQualityAvailable$:Mn},ui:{t:Q,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:K.length?K.reduce(f=>[...f,re(void 0)],[]):[],disabledControls$:Ie},modals:{hotKeyMap:{show:re(!1),data:re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:je,isFullscreenOpenedByKeyboard:mt,rotateAlpha:Xe,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:bi,isMobile:$n,mobileNotReportControlHidden$:ha,mobileUnmuteButtonExpanded:re(!1),mobileUnmuteButtonVisible:re(!1),icon3DVideoVisible:re(!1),scrubbingInProgress:No,volumeChangingInProgress:Ne,is3DVideo:re(!1),currentGridType$:fi,additionalButtonsDeprecated$:rr,additionalDesktopControlPanelRightButtons$:ga,additionalSettingsMenuItems$:rs,additionalContextMenuItems$:Rr,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),isControlsAvailable:wr},ads:{position:re(0),duration:re(0),playbackState:re("inactive"),canSkip:re(!1),secondsToWatchBeforeSkip:re(0),postrollPassed:re(!1)},webApi:{pictureInPictureApi:z,annotationsApi:ie,slotsApi:Te},actions:{internal:{preload:Vr,firstStart:f=>Ed(f,!1),play:()=>Td(!1),pause:()=>Ys(!1),togglePlay:tr,toggleMuted:Jn,openSettingsMenu:br,closeSettingsMenu:Bn,openSettingsSubMenu:rt,closeSettingsSubMenu:$r,setVolume:si,startVolumeChanging:Nt,stopVolumeChanging:Ti,setVideoStream:Pn,setAudioStream:st,setQuality:Nn,setTrafficSavingEnabled:Ai,setHighQualityEnabled:_n,setPlaybackRate:bn,incrementPlaybackRate:xr,decrementPlaybackRate:Dn,setSubtitle:or,toggleSubtitle:On,togglePictureInPicture:zn,startScrubbing:Hn,progressScrubbing:Fn,completeScrubbing:Vt,toggleChromecast:kd,switchToActiveLive:ds,switchFromAdsToVideo:xd,switchFromVideoToAds:tu,skipAd:eu,setLiveWaitingStart:wd,setLiveWaitingRecover:iu,setLiveWaitingRecord:Sd,getDebugTextData:ou,getTraceTextData:Cd,getDebugPanelData:nu,getVideoElement:_a,seekTime:(f,I,D)=>Vo(f,I,D),clearDelayedBufferingCheckTimeout:ao,seekEpisodeStartTime:Sr,seekToPercent:Ro,getNextEpisode:Pd,seekToNextEpisode:ru,getPrevEpisode:Ad,seekToPrevEpisode:We,startLogging:Qo,stopLogging:cn,startCameraManualRotation:un,stopCameraManualRotation:Go,moveCameraFocusPX:So,holdCamera:qi,releaseCamera:Wt,getVideoEpisodes:cs,getPreviewThumbsData:Yt,downloadVideo:_r,addLanguage:fp,setLanguage:zt,nextMovie:Ge,videoRotate:ba,correctSeekTimeToInteractive:Cm,replayInteractive:R,setLooped:Qt,reportProblem:lo,setAutoplayNextEnabled:Ao,setTimerNextVideoRunning:Mo,prevVideoClick:Je,nextVideoClick:yt,nextVideoAnnouncementShow:Bi,nextVideoAnnouncementClick:pi,nextVideoAnnouncementAuto:yr,nextVideoAnnouncementCancel:er},external:{firstStart:f=>Ed(f,!0),play:()=>Td(!0),pause:()=>Ys(!0),stop:()=>Id(!0),seekTime:f=>tt(f),seekEpisodeStartTime:f=>hi(f),setPlaybackRate:f=>Bo(f),setAutoQualityLimits:f=>Rt(f),setMuted:Zi,toggleSubtitle:On,setVolume:si,returnFocusToEpisodes:l1,updateAdditionalSettingsItem:Gs,addAdditionalSettingsItem:xt,removeAdditionalSettingsItem:Ct,updateAdditionalContextItem:ea,addAdditionalContextItem:Br,removeAdditionalContextItem:ar,updateAdditionalButton:Qs,addAdditionalButton:as,removeAdditionalButton:ss,setLiveLowLatency:ls,hideControls:()=>nr(!1),showControls:()=>nr(!0)}},callbacks:l,setUiCallbacks:f=>{de={...f}},getAdmanWrapper:()=>ce,getLogger:()=>Qe,getPlayer:()=>V,destroy:d1};return wt};function ja(t,e,i,o){let n=["interactiveTimeIndicator"],a=e[i]?.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:c,right:u}=Hs(e[i],t||void 0);return{left:s?l:0,right:s?u:0,top:s?d:0,bottom:s?c:0,isDisplayed:s}}var Us=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(ja(t,i,n,o))};var Rc=async(t,e,i)=>{await to(),e&&i&&(i.focus(),t.set(!1))};var ay=_e('<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 cf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=ay();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 uf(t,e){O(e,!0);let[i,o]=Ve(),n=()=>y(l,"$contextMenuVisible$",i),a=m(e,"disabled",3,!1),s=m(e,"ariaLabel",3,""),d=ye(),l=d.ui.contextMenu.visible$,c=d.ui.contextMenu.openedByBtnKeyboard$,u=d.ui.contextMenu.showContextMenuBtn$,b=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,$=Y(void 0);He(()=>{r($)&&gt(()=>{p.set(r($))})});let w=C=>{let R=ca(C),A=oh(r($));b.set(A),c.set(R),l.set(!n())},x=()=>{u.set(!0)},k=()=>{u.set(!1)},T=v(()=>n()?"opened":"");It(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:x,blur:k,get ariaExpanded(){return n()},get ref(){return r($)},set ref(C){N($,le(C))},children:(C,R)=>{cf(C,{})},$$slots:{default:!0}}),H(),o()}var sy=t=>{t.stopPropagation()},ly=M("<div><!> <div></div> <div></div></div>"),dy={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,8 +252,8 @@ Try switching the\xA0quality to\xA0Auto.`},Bg=T0;var Qr=new Map;Qr.set(Og.EN,Bg)
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 jl(t,e){H(e,!0),U(t,ly);let[i,o]=Le(),n=()=>y(C,"$isMobile",i),a=()=>y(L,"$areControlsVisible",i),s=()=>y(N,"$currentGridType$",i),d=()=>y(I,"$isInteractiveTime$",i),l=()=>y(x,"$interactiveControlsOpacity$",i),c=()=>y(A,"$showInteractiveTimeIndicatorTooltip$",i),p=()=>y(T,"$isFullscreen",i),_=m(e,"ref",15,void 0),u=G(void 0),$=$e(),w=Wi(),{interactiveControlsOpacity$:x}=w,C=$.ui.isMobile,T=$.ui.isFullscreen,I=$.state.isInteractiveTime$,A=w.showInteractiveTimeIndicatorTooltip$,L=$.ui.controlsVisible,E=$.callbacks?.onInteractiveTimeIndicatorClick,N=$.ui.currentGridType$,W=v(()=>!n()&&a()),K=v(()=>ma(s(),"s")),Z=v(()=>!d()||!!l()||r(W)),oe=G(!1);He(()=>{B(oe,ce(r(Z)))});let ue=()=>{B(oe,!0)},j=()=>{_e(),r(u)?.addEventListener("animationiteration",ue,{once:!0})},_e=()=>{B(oe,!1),r(u)?.removeEventListener("animationiteration",ue)},ee=ae=>{A.set(ae)},Ae=v(()=>c()&&!r(Z));He(()=>{c()?j():_e()});let Ee=()=>{r(Z)||(A.set(!0),E?.())};an(()=>{A.clearTimeout(),_e()});let Ve=()=>{A.set(!1)},pe=O("tooltip_interactive_interaction_time_indicator");var Oe=sy();let ie;Oe.__mousemove=[ay],Oe.__click=Ee;var R=h(Oe);co(R,{tooltipContent:pe,get tooltipActive(){return r(Ae)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ee,get ref(){return _()},set ref(ae){_(ae)},children:(ae,X)=>{Hl(ae,{completed:!0})},$$slots:{default:!0}});var Qe=P(R,2);let ne;lt(Qe,ae=>_(ae),()=>_());var We=P(Qe,2);let re;lt(We,ae=>B(u,ae),()=>r(u)),g(Oe),S((ae,X,J)=>{ie=Y(Oe,1,"interactive-episode-icon-animated svelte-od3veb",null,ie,ae),ne=Y(Qe,1,"ref-block svelte-od3veb",null,ne,X),re=Y(We,1,"pulse svelte-od3veb",null,re,J)},[()=>({mobile:n(),fullscreen:p(),invisible:r(Z),"icon-small":r(K)}),()=>({hidden:r(Z)}),()=>({paused:r(oe)})]),ht("mouseleave",Oe,Ve),b(t,Oe),F(),o()}nt(["mousemove","click"]);function Rc(t,e){H(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),a=m(e,"ref",15);co(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=De();let c=v(()=>e.buttonComponent);var p=le(l);ui(p,()=>r(c),(_,u)=>{u(_,Kr(()=>e.buttonComponentProps??{}))}),b(s,l)},$$slots:{default:!0}}),F()}var Zr={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var cy=ge('<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 uf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=cy();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}function va(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");uf(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 uy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),py=M("<!> <!>",1),fy={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Xa(t,e){H(e,!0),U(t,fy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=$e().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")),c=v(()=>`btn-${o()?"m":"d"}--${e.type}`);It(t,{get className(){return r(c)},get testId(){return`btn-${e.type??""}`},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(p){i(p)},children:(p,_)=>{var u=py(),$=le(u);{var w=T=>{var I=uy();b(T,I)};V($,T=>{o()&&T(w)})}var x=P($,2);let C=v(()=>e.type==="prev");va(x,{get isMobile(){return o()},get isPrev(){return r(C)}}),b(p,u)},$$slots:{default:!0}}),F()}var my=ge('<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 Yl(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=my();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}import{noop as vy}from"@vkontakte/videoplayer-shared";var gy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),hy=M("<!> <div><!></div>",1),_y={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function zs(t,e){H(e,!0),U(t,_y);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,vy),d=O("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);It(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Pr.KeyK},get ref(){return i()},set ref(c){i(c)},children:(c,p)=>{var _=hy(),u=le(_);{var $=T=>{var I=gy();b(T,I)};V(u,T=>{o()&&T($)})}var w=P(u,2);let x;var C=h(w);Yl(C,{}),g(w),S(T=>x=Y(w,1,"svelte-1ot3duq",null,x,T),[()=>({mobile:o()})]),b(c,_)},$$slots:{default:!0}}),F()}var by=ge('<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 fr(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=by(),d=h(s);g(s),S(()=>{Ne(s,"width",i()),Ne(s,"height",o()),Ne(s,"viewBox",n()),Ne(d,"fill",a())}),b(t,s)}var $y=ge('<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 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=$y(),d=h(s);g(s),S(()=>{Ne(s,"width",i()),Ne(s,"height",o()),Ne(s,"viewBox",n()),Ne(d,"fill",a())}),b(t,s)}import{noop as yy}from"@vkontakte/videoplayer-shared";var xy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),wy=M("<!> <div><!></div>",1),Sy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Ws(t,e){H(e,!0),U(t,Sy);let[i,o]=Le(),n=()=>y(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=Wi(),s=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),l=m(e,"isPlaying",3,!1),c=m(e,"disabled",3,!1),p=m(e,"className",3,""),_=m(e,"click",3,yy),$=$e().ui.t,{toggle:w}=a,x=v(()=>w),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),I=v(()=>r(T)?$("tooltip_pause"):$("tooltip_play")),A=v(()=>r(T)?Xr:fr),L=v(()=>`${d()?"btn-m--play":""} ${p()}`),E=v(()=>r(C)?r(x):_());It(t,{get className(){return r(L)},testId:"btn-play",get click(){return r(E)},get disabled(){return c()},get ariaLabel(){return r(I)},get ariaKeyShortCut(){return Pr.KeyK},get ref(){return s()},set ref(N){s(N)},children:(N,W)=>{var K=wy();let Z=v(()=>r(A));var oe=le(K);{var ue=Ae=>{var Ee=xy();b(Ae,Ee)};V(oe,Ae=>{d()&&Ae(ue)})}var j=P(oe,2);let _e;var ee=h(j);ui(ee,()=>r(Z),(Ae,Ee)=>{Ee(Ae,{})}),g(j),S(Ae=>_e=Y(j,1,"svelte-1ot3duq",null,_e,Ae),[()=>({mobile:d()})]),b(N,K)},$$slots:{default:!0}}),F(),o()}var Cy=ge('<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 pf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),b(t,o)}function Zl(t,e){H(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=O("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");It(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)=>{pf(d,{})},$$slots:{default:!0}}),F()}var ky=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Ty={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 Xl(t,e){H(e,!0),U(t,Ty);let[i,o]=Le(),n=()=>y(d,"$autoplayNextEnabled$",i),a=m(e,"ref",15,void 0),s=$e(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;It(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(p){a(p)},children:(p,_)=>{var u=ky(),$=h(u);let w;var x=h($);{var C=I=>{fr(I,{width:"14",height:"14",fill:"#000"})},T=I=>{Xr(I,{width:"14",height:"14",fill:"#000"})};V(x,I=>{n()?I(C):I(T,!1)})}g($),g(u),S(I=>w=Y($,1,"toggler svelte-et3q1q",null,w,I),[()=>({enabled:n()})]),b(p,u)},$$slots:{default:!0}}),F(),o()}var Iy=ge('<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 ff(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(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})),b(t,o)}function Jl(t,e){H(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=O("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");It(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)=>{ff(d,{})},$$slots:{default:!0}}),F()}var Ey=ge('<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 mf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var Py={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function vf(t,e){U(t,Py);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");mf(t,{get"data-testid"(){return r(o)}})}function ed(t,e){H(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=m(e,"graphIsOpened",3,!1),d=$e().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),c=v(()=>o()?"hidden":"");It(t,{get className(){return r(c)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(p){i(p)},children:(p,_)=>{let u=v(()=>!!a());vf(p,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),F()}import{PlaybackState as xh}from"@vkontakte/videoplayer-core";function td(t,e){H(e,!0);let[i,o]=Le(),n=()=>y(c,"$playbackState$",i),a=m(e,"isMobile",3,!1),s=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),l=$e(),c=l.state.playbackState$,p=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,u=v(()=>()=>{if(!s()){p();return}n()===xh.PAUSED&&_()}),$=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),x=v(()=>s()&&n()===xh.PLAYING);It(t,{get className(){return r($)},get testId(){return r(w)},get disabled(){return r(x)},get ariaLabel(){return d()},get click(){return r(u)},children:(C,T)=>{kl(C,{get isActive(){return s()}})},$$slots:{default:!0}}),F(),o()}import{noop as wh}from"@vkontakte/videoplayer-shared";var Ay=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),My=M('<img class="icon" aria-hidden="true">');function Ja(t,e){"use strict";let i=G(!1),o=()=>{B(i,!0)};var n=De(),a=le(n);{var s=l=>{var c=Ay();b(l,c)},d=l=>{var c=My();S(()=>Ne(c,"src",e.icon)),ht("error",c,o),Ma(c),b(l,c)};V(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function gf(t,e){H(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,wh),n=m(e,"ref",15),a=v(()=>o()===wh),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");co(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,c)=>{let p=v(()=>e.testId??e.id);It(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(p)},children:(_,u)=>{Ja(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var Sh=t=>!!t.buttonComponent;var Jr={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Ny=M('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),By={hash:"svelte-1iedtj3",code:".wrapper-bottom.svelte-1iedtj3 {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-1iedtj3 > :where(.svelte-1iedtj3) {pointer-events:auto;}.controls.svelte-1iedtj3 {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 8px 4px;box-sizing:border-box;}.controls-left.svelte-1iedtj3, .controls-right.svelte-1iedtj3 {display:flex;align-content:center;}.controls-left.svelte-1iedtj3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iedtj3 > *:not(:first-child), .controls-right.svelte-1iedtj3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iedtj3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iedtj3 {transition:none;}"};function _f(t,e){H(e,!0),U(t,By);let[i,o]=Le(),n=()=>y(Q,"$disabledControls$",i),a=()=>y(zt,"$adPlaybackState",i),s=()=>y(Fe,"$playbackState$",i),d=()=>y(eo,"$currentSubtitle$",i),l=()=>y(li,"$isEnded$",i),c=()=>y(Qn,"$currentGridType$",i),p=()=>y(pi,"$isLive$",i),_=()=>y(Fo,"$chromecastState$",i),u=()=>y(cn,"$isPictureInPictureActive",i),$=()=>y(So,"$pictureInPictureType$",i),w=()=>y(un,"$availableSubtitlesList$",i),x=()=>y(Vi,"$contextMenuOpenedByKeyboard$",i),C=()=>y(Gt,"$showContextMenuBtn$",i),T=()=>y(ki,"$playerSize",i),I=()=>y(dn,"$isRewindableLive$",i),A=()=>y(Ho,"$isActiveLive$",i),L=()=>y(Ti,"$graphIsOpened$",i),E=()=>y(jt,"$contextMenuVisible$",i),N=()=>y(to,"$isFullscreen",i),W=()=>y(ko,"$autoplayNextEnabled",i),K=()=>y(r(Xn),"$prevButton",i),Z=()=>y(r(br),"$replayButton",i),oe=()=>y(r(ho),"$playButton",i),ue=()=>y(r(je),"$nextButton",i),j=()=>y(r(Mt),"$playPrevChapterButton",i),_e=()=>y(r(fi),"$seekToInteractiveButton",i),ee=()=>y(r(ao),"$interactiveGraphButton",i),Ae=()=>y(r(rt),"$liveButton",i),Ee=()=>y(r(Tt),"$time",i),Ve=()=>y(r(mi),"$episodes",i),pe=()=>y(r(Ei),"$vkLogo",i),Oe=()=>y(r(yi),"$volume",i),ie=()=>y(r(xi),"$subtitles",i),R=()=>y(r(Pi),"$settings",i),Qe=()=>y(r(Eo),"$context",i),ne=()=>y(r(Yo),"$fullscreen",i),We=()=>y(r(Di),"$chromecast",i),re=()=>y(io,"$additionalDesktopControlPanelRightButtons$",i),ae=()=>y(fo,"$isInteractiveTime$",i),X=()=>y(Co,"$settingsMenuVisible",i),J=()=>y($r,"$settingButtonRef$",i),ze=()=>y(oi,"$startedByKeyboard$",i),Be=()=>y(Ze,"$isAudioAvailable$",i),ye=()=>y(Et,"$fakeIsPlaying$",i),Me=()=>y(pn,"$seekToInteractiveDisabledTooltip$",i),Ge=()=>y(mt,"$adPosition",i),Xe=()=>y(Pt,"$position$",i),ft=()=>y(Ri,"$adDuration",i),ut=()=>y($t,"$duration$",i),et=m(e,"playerControlsWrapperRef",15,void 0),bt=m(e,"playerControlsRef",15,void 0),pt=m(e,"isAds",3,!1),Nt=m(e,"logoTargetUrl",3,""),Kt=m(e,"isOneVideoPlaylist",3,!1),Ue=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Et}=Wi(),q=$e(),he=Wi(),de=Vt(),Pe=q.actions.internal.toggleMuted,ot=q.actions.internal.togglePlay,Re=q.actions.internal.pause,Ie=q.actions.internal.toggleSubtitle,Ye=q.callbacks?.onAudioDoesNotExistHint,st=q.callbacks?.onAudioDisabledHint,$t=q.state.duration$,Pt=q.state.positionWithScrubbing$,Fe=q.state.playbackState$,Ze=q.state.isAudioAvailable$,Dt=q.state.isAudioDisabled,li=q.state.isEnded$,pi=q.state.isLive$,Ho=q.state.isActiveLive$,dn=q.state.isRewindableLive$,{isActive$:cn,type$:So}=he.pictureInPicture$,Co=q.ui.settingsMenu.visible$,qi=q.ui.settingsMenu.openedByBtnKeyboard$,Qt=q.ui.controls,uo=q.actions.internal.getVideoEpisodes(),Fo=q.state.chromecastState$,un=q.state.availableSubtitlesList$,eo=q.state.currentSubtitle$,Q=Qt.disabledControls$,jt=q.ui.contextMenu.visible$,Gt=q.ui.contextMenu.showContextMenuBtn$,Vi=q.ui.contextMenu.openedByBtnKeyboard$,oi=q.ui.startedByKeyboard$,dt=q.ui.t,Ri=q.ads.duration,mt=q.ads.position,zt=q.ads.playbackState,to=q.ui.isFullscreen,ki=q.ui.playerSize,Qn=q.ui.currentGridType$,io=q.ui.additionalDesktopControlPanelRightButtons$,ko=q.ui.autoplayNextEnabled$,Xt=q.actions.internal.getVideoElement,gt=q.actions.internal.replayInteractive,di=q.actions.internal.prevVideoClick,po=q.actions.internal.nextVideoClick,ei=q.state.isInteractive,fo=q.state.isInteractiveTime$,bi=q.state.showInteractiveGraph,oo=q.state.showSeekToInteractive,no=q.state.showPlayPrevChapter,Tn=q.state.showInteractiveTimeIndicator,ro=q.state.playPrevChapterDisabledTooltip,pn=he.seekToInteractiveDisabledTooltip$,Ti=he.graphIsOpened$,mo=de.features.interactiveResponsiveUi,Uo=v(()=>n().has("EPISODE_BUTTON")),vr=v(()=>n().has("GRAPH_BUTTON")),Gn=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),In=v(()=>n().has("PLAY_BUTTON")),fn=v(()=>n().has("REPLAY_BUTTON")),En=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),jn=()=>q.actions.internal.toggleChromecast(),Ni=v(()=>pt()?a()==="playing":s()===hf.PLAYING),vo=v(()=>d().value!=="off"),mn=v(()=>l()&&!pt()||ei),tt=v(()=>mo?r(mn)&&Ci(c(),"m"):r(mn)),vn=v(()=>!l()||ei||pt()),Pn=v(()=>Ci(c(),"m")),zo=v(()=>e.showNextPrevButtons&&Ci(c(),"m")&&!pt()&&e.nextButtonActive),Yn=v(()=>e.showNextPrevButtons&&Ci(c(),"m")&&!pt()&&e.prevButtonActive),Wo=v(()=>!pt()&&!!p()),qo=v(()=>_()!==Ch.NOT_AVAILABLE&&!(u()&&$()===1)&&Ci(c(),"m")&&!ei),Ko=v(()=>e.showAutoplayNext&&!Kt()&&Ci(c(),"s")),Ii=v(()=>w().length>0&&Ci(c(),"m")),$i=v(()=>x()||C()),Qo=v(()=>Ci(c(),"s")&&!pt()),An=v(()=>!e.logoHidden&&!pt()),To=v(()=>de.features.fullscreen&&(e.logoHidden||Ci(c(),mo?"xs":"s"))&&!(u()&&$()===1)&&(ei?Ue():!0)),Go=v(()=>(!p()||pt())&&!(de.features.interactiveHideTime&&ei)),go=v(()=>T().width>100),Ki=v(()=>bi&&Ci(c(),"m")),gi=v(()=>mo?oo&&Ci(c(),"s"):oo),Mn=v(()=>mo?no&&Ci(c(),"s"):no),Bi=v(()=>!pt()&&!p()&&!!uo?.length&&r(Pn)&&!r(Uo)),gn=v(()=>!I()||!!A()),Ln=v(()=>L()?dt("tooltip_interactive_graph_on"):dt("tooltip_interactive_graph_off")),jo=v(()=>E()?dt("aria_label_context_menu_close"):dt("aria_label_context_menu_open")),gr=(yt,St)=>yt?St&&St===hf.PAUSED?dt("tooltip_play"):"":dt("tooltip_live"),Io=v(()=>gr(r(gn),s())),hr=v(()=>de.logoType==="vk_video"?dt("tooltip_vk_video_logo"):dt("tooltip_vk_logo")),Vn=v(()=>r(vo)?dt("tooltip_subtitles_on"):dt("tooltip_subtitles_off")),Rn=v(()=>N()?dt("tooltip_fullscreen_on"):dt("tooltip_fullscreen_off")),Zn=v(()=>_()===Ch.CONNECTED?dt("tooltip_chromecast_on"):dt("tooltip_chromecast_off")),_r=v(()=>W()?dt("tooltip_autoplay_on"):dt("tooltip_autoplay_off")),hn=G(0),Wt=ce({}),Xn=v(()=>Qt.prevButton),br=v(()=>Qt.replayButton),ho=v(()=>Qt.playButton),je=v(()=>Qt.nextButton),Mt=v(()=>Qt.playPrevChapterButton),fi=v(()=>Qt.seekToInteractiveButton),ao=v(()=>Qt.interactiveGraphButton),rt=v(()=>Qt.liveButton),Tt=v(()=>Qt.time),mi=v(()=>Qt.episodes),Ei=v(()=>Qt.vkLogo),yi=v(()=>Qt.volume),xi=v(()=>Qt.subtitles),Pi=v(()=>Qt.settings),Eo=v(()=>Qt.context),Yo=v(()=>Qt.fullscreen),Di=v(()=>Qt.chromecast),Ai=v(()=>({prevButton:K()?K().right-K().left:0,replayButton:Z()?Z().right-Z().left:0,playButton:oe()?oe().right-oe().left:0,nextButton:ue()?ue().right-ue().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:_e()?_e().right-_e().left:0,interactiveGraphButton:ee()?ee().right-ee().left:0,liveButton:Ae()?Ae().right-Ae().left:0,time:Ee()?Ee().right-Ee().left:0,episodes:Ve()?Ve().right-Ve().left:0,vkLogo:pe()?pe().right-pe().left:0,volume:Oe()?Oe().right-Oe().left:0,subtitles:ie()?ie().right-ie().left:0,settings:R()?R().right-R().left:0,context:Qe()?Qe().right-Qe().left:0,fullscreen:ne()?ne().right-ne().left:0,chromecast:We()?We().right-We().left:0,additionalButtons:re().length?re().reduce(yt=>[...yt,40],[]):[]})),Zo=G(0);He(()=>{(!r(Zo)||r(Zo)<r(Ai).time)&&vt(()=>B(Zo,ce(r(Ai).time)))});let Nn=G(!1);He(()=>{let yt=0;r(Bi)&&(Ci(c(),"xl")?yt=r(Ai).time:yt=60);let St=r(Ai).prevButton+r(Ai).playButton+r(Ai).nextButton+r(Ai).seekToInteractiveButton+r(Ai).interactiveGraphButton+r(Ai).liveButton+r(Zo)+yt;B(Nn,ce(r(Go)&&r(hn)>=St))});let Jn=v(()=>r(Nn)&&Ci(c(),"m")),Bn=Ry(Us,260);He(()=>{T(),ae(),Bn(Xt(),Qt,Wt,e.showControls)});let $r=se();He(()=>{X(),J()&&vt(()=>Rs(J(),X(),qi))});let er;He(()=>{ze(),vt(()=>Vc(oi,ze(),er))});function Xo(){pa({isAudioDisabled:Dt,audioDisabledHintCallback:st,isAudioAvailable:Be(),audioIsNotExistHintCallback:Ye})&&Pe()}let Dn=ei?gt:ot,yr=v(()=>ye()!==null),tr=v(()=>r(yr)?ye():r(Ni)),_o=v(()=>r(tr)?dt("tooltip_pause"):dt("tooltip_play")),xr=dt("tooltip_episodes"),bo=v(()=>r(Yn)?{id:"prevButton",type:"desktop-control-panel-left",weight:Zr.prevButton,buttonComponent:Xa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:di.bind(null,!0)},tooltipEnabled:!q.callbacks?.uiInfo?.onPrevButtonMouseEnter&&!q.callbacks?.uiInfo?.onPrevButtonMouseLeave,mouseEnter:()=>{q.callbacks?.uiInfo?.onPrevButtonMouseEnter?.(Za(Xt(),Wt,"prevButton",e.showControls))},mouseLeave:()=>{q.callbacks?.uiInfo?.onPrevButtonMouseLeave?.(Za(Xt(),Wt,"prevButton",e.showControls))},tooltipText:dt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0),ir=v(()=>r(tt)?{id:"replayButton",type:"desktop-control-panel-left",weight:Zr.replayButton,buttonComponent:zs,buttonComponentProps:{disabled:r(fn),click:Dn},tooltipText:dt("tooltip_restart"),disabled:r(fn)}:void 0),Vr=v(()=>r(vn)?{id:"playButton",type:"desktop-control-panel-left",weight:Zr.playButton,buttonComponent:Ws,buttonComponentProps:{disabled:r(In),isPlaying:r(Ni),click:ot},tooltipText:r(_o),disabled:r(In)}:void 0),wr=v(()=>r(zo)?{id:"nextButton",type:"desktop-control-panel-left",weight:Zr.nextButton,buttonComponent:Xa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:po.bind(null,!0)},tooltipEnabled:!q.callbacks?.uiInfo?.onNextButtonMouseEnter&&!q.callbacks?.uiInfo?.onNextButtonMouseLeave,mouseEnter:()=>{q.callbacks?.uiInfo?.onNextButtonMouseEnter?.(Za(Xt(),Wt,"nextButton",e.showControls))},mouseLeave:()=>{q.callbacks?.uiInfo?.onNextButtonMouseLeave?.(Za(Xt(),Wt,"nextButton",e.showControls))},tooltipText:dt("tooltip_next"),disabled:!e.nextButtonActive}:void 0),Sr=v(()=>ei&&r(Mn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Zr.playPrevChapterButton,buttonComponent:Zl,buttonComponentProps:{disabled:r(En),click:e.playPrevChapter},tooltipText:dt("tooltip_interactive_go_back"),disabledTooltipContent:dt(ro),disabled:r(En)}:void 0),Mi=v(()=>ei&&r(gi)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Zr.seekToInteractiveButton,buttonComponent:Jl,buttonComponentProps:{disabled:r(Gn),click:e.seekToInteractive},tooltipText:dt("tooltip_interactive_seek"),disabled:r(Gn),disabledTooltipContent:dt(Me())}:void 0),Je=v(()=>ei&&r(Ki)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Zr.interactiveGraphButton,buttonComponent:ed,buttonComponentProps:{disabled:r(vr),click:Ti.toggle,graphIsOpened:L()},tooltipText:r(Ln)}:void 0),Rt=v(()=>r(Wo)?{id:"liveButton",type:"desktop-control-panel-left",weight:Zr.liveButton,buttonComponent:td,buttonComponentProps:{isLiveActive:r(gn),ariaLabel:r(Io)},tooltipText:r(Io),disabled:r(gn)&&s()===hf.PLAYING}:void 0),hi=v(()=>[r(bo),r(ir),r(Vr),r(wr),r(Sr),r(Mi),r(Je),r(Rt)].filter(yt=>!!yt).sort(za)),so=v(()=>r(An)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Jr.vkLogo,buttonComponent:Ul,buttonComponentProps:{targetUrl:Nt(),logoClickable:e.logoClickable,click:Re},tooltipText:r(hr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Po=v(()=>r(Ko)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Jr.autoplayNext,buttonComponent:Xl,tooltipText:r(_r)}:void 0),Jo=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:Jr.volume,buttonComponent:Wp,buttonComponentProps:{click:Xo}})),Ce=v(()=>r(Ii)?{id:"subtitles",type:"desktop-control-panel-right",weight:Jr.subtitles,buttonComponent:Op,buttonComponentProps:{isSubtitlesEnabled:r(vo),click:Ie},tooltipText:r(Vn)}:void 0),Bt=v(()=>r(Qo)?{id:"settings",type:"desktop-control-panel-right",weight:Jr.settings,buttonComponent:Hs,buttonComponentProps:{ref$:$r},tooltipText:X()?void 0:dt("tooltip_settings_off")}:void 0),Yt=v(()=>de.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Jr.context,buttonComponent:cf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(jo)},className:r($i)?"":"out-of-view",tooltipText:r(jo)}:void 0),we=v(()=>r(To)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Jr.fullscreen,buttonComponent:Fl,buttonComponentProps:{isFullscreen:N(),click:e.toggleFullscreen},tooltipText:r(Rn)}:void 0),Ct=v(()=>r(qo)?{id:"chromecast",type:"desktop-control-panel-right",weight:Jr.chromecast,buttonComponent:zl,buttonComponentProps:{state:_(),click:jn},tooltipText:r(Zn)}:void 0),ii=v(()=>[r(so),r(Po),r(Jo),r(Ce),r(Bt),r(Yt),r(we),r(Ct),...re()].filter(yt=>!!yt).sort(za));var ti=Ny(),Ht=le(ti);let _n;var Qi=h(Ht);let or=v(()=>!r(go));ja(Qi,{get isHidden(){return r(or)},get isAds(){return pt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Wt.timeline},set ref(yt){Wt.timeline=yt}});var en=P(Qi,2),ea=h(en),ha=h(ea);ci(ha,17,()=>r(hi),yt=>yt.id,(yt,St)=>{Rc(yt,{get buttonComponent(){return r(St).buttonComponent},get buttonComponentProps(){return r(St).buttonComponentProps},get tooltipText(){return r(St).tooltipText},get disabledTooltipContent(){return r(St).disabledTooltipContent},get disabled(){return r(St).disabled},get className(){return r(St).className},get tooltipEnabled(){return r(St).tooltipEnabled},get mouseEnter(){return r(St).mouseEnter},get mouseLeave(){return r(St).mouseLeave},get ref(){return Wt[r(St).id]},set ref(Li){Wt[r(St).id]=Li}})});var On=P(ha,2);{var as=yt=>{let St=v(()=>pt()?Ge():Xe()),Li=v(()=>pt()?ft():ut());Ol(yt,{isMobile:!1,get showDuration(){return r(Jn)},get position(){return r(St)},get duration(){return r(Li)},get ref(){return Wt.time},set ref(Rr){Wt.time=Rr}})};V(On,yt=>{r(Go)&&yt(as)})}var Qs=P(On,2);let ss=v(()=>!r(Bi));co(Qs,{className:"w-max",get disabled(){return r(ss)},tooltipContent:xr,get ref(){return Wt.episodes},set ref(yt){Wt.episodes=yt},children:(yt,St)=>{var Li=De(),Rr=le(Li);{var ta=Nr=>{ql(Nr,{get position(){return Xe()},get duration(){return ut()},timeCodes:uo})};V(Rr,Nr=>{r(Bi)&&Nr(ta)})}b(yt,Li)},$$slots:{default:!0}}),g(ea);var ls=P(ea,2);ci(ls,21,()=>r(ii),yt=>yt.id,(yt,St)=>{var Li=De(),Rr=le(Li);{var ta=nr=>{Rc(nr,{get buttonComponent(){return r(St).buttonComponent},get buttonComponentProps(){return r(St).buttonComponentProps},get tooltipText(){return r(St).tooltipText},get disabledTooltipContent(){return r(St).disabledTooltipContent},get disabled(){return r(St).disabled},get className(){return r(St).className},get ref(){return Wt[r(St).id]},set ref(_a){Wt[r(St).id]=_a}})},Nr=nr=>{let _a=v(()=>!!r(St).disabled);gf(nr,{get id(){return r(St).id},get testId(){return r(St).testId},get icon(){return r(St).icon},get ariaLabel(){return r(St).ariaLabel},get tooltipText(){return r(St).tooltipText},get disabledTooltipContent(){return r(St).disabledTooltipContent},get disabled(){return r(_a)},get onClick(){return r(St).onClick},get ref(){return Wt[r(St).id]},set ref(cs){Wt[r(St).id]=cs}})};V(Rr,nr=>{Sh(r(St))?nr(ta):nr(Nr,!1)})}b(yt,Li)}),g(ls),g(en),lt(en,yt=>bt(yt),()=>bt()),g(Ht),lt(Ht,yt=>et(yt),()=>et());var ds=P(Ht,2);{var Gs=yt=>{jl(yt,{get ref(){return Wt.interactiveTimeIndicator},set ref(St){Wt.interactiveTimeIndicator=St}})};V(ds,yt=>{Tn&&yt(Gs)})}S(yt=>_n=Y(Ht,1,"wrapper-bottom svelte-1iedtj3",null,_n,yt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Er(ea,"clientWidth",yt=>B(hn,yt)),b(t,ti),F(),o()}import{ChromecastState as Th,PlaybackState as Ih}from"@vkontakte/videoplayer-core";import{noop as kh}from"@vkontakte/videoplayer-shared";var Dy=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Oy=M('<img class="icon svelte-167ouw6" aria-hidden="true">'),Hy={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function bf(t,e){U(t,Hy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,kh),n=v(()=>o()===kh),a=v(()=>r(n)||i()),s=G(!1),d=()=>{B(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");It(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:(c,p)=>{var _=De(),u=le(_);{var $=x=>{var C=Dy();b(x,C)},w=x=>{var C=Oy();S(()=>Ne(C,"src",e.iconUrl)),ht("error",C,d),Ma(C),b(x,C)};V(u,x=>{r(s)?x($):x(w,!1)})}b(c,_)},$$slots:{default:!0}})}var Fy=ge('<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 $f(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),b(t,o)}import{noop as Uy}from"@vkontakte/videoplayer-shared";var zy=M('<span class="text svelte-6gmlbk"> </span>'),Wy=M('<div aria-hidden="true"><!> <!></div>'),qy={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 Nc(t,e){H(e,!0),U(t,qy);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,Uy),a=m(e,"ref",15,void 0),d=$e().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),c=v(()=>o()?fa:$f),p=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");It(t,{get testId(){return r(p)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(_){a(_)},children:(_,u)=>{var $=Wy();let w=v(()=>r(c)),x;var C=h($);ui(C,()=>r(w),(A,L)=>{L(A,{})});var T=P(C,2);{var I=A=>{var L=zy(),E=h(L,!0);g(L),S(N=>fe(E,N),[()=>d("mobile_unmute")]),b(A,L)};V(T,A=>{o()&&A(I)})}g($),S(A=>x=Y($,1,"container svelte-6gmlbk",null,x,A),[()=>({expanded:o()})]),b(_,$)},$$slots:{default:!0}}),F()}var Ky=ge('<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 yf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Ky();let n;var a=h(o);me(a,()=>e.children??te),ve(3),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),b(t,o)}var Qy={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 xf(t,e){U(t,Qy);let i=m(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");yf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as Gy}from"@vkontakte/videoplayer-shared";function wf(t,e){H(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,Gy),a=O("menu_pip");It(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{xf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}import{debounceFn as jy}from"@vkontakte/videoplayer-shared";var Yy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},Zy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Xy=M("<div><!></div>"),Jy=M("<div><!></div>"),e2=M("<div><!></div>"),t2=M("<!> <!> <!>",1),i2=M("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),o2=M("<div><!></div>"),n2=M('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),r2=M("<!> <!> <div><!></div>",1),a2=M('<div aria-hidden="true">\xB7</div> <!>',1),s2=M("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),l2={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,
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 Yl(t,e){O(e,!0),U(t,dy);let[i,o]=Ve(),n=()=>y(k,"$isMobile",i),a=()=>y(A,"$areControlsVisible",i),s=()=>y(B,"$currentGridType$",i),d=()=>y(C,"$isInteractiveTime$",i),l=()=>y(x,"$interactiveControlsOpacity$",i),c=()=>y(R,"$showInteractiveTimeIndicatorTooltip$",i),u=()=>y(T,"$isFullscreen",i),b=m(e,"ref",15,void 0),p=Y(void 0),$=ye(),w=zi(),{interactiveControlsOpacity$:x}=w,k=$.ui.isMobile,T=$.ui.isFullscreen,C=$.state.isInteractiveTime$,R=w.showInteractiveTimeIndicatorTooltip$,A=$.ui.controlsVisible,E=$.callbacks?.onInteractiveTimeIndicatorClick,B=$.ui.currentGridType$,K=v(()=>!n()&&a()),q=v(()=>fa(s(),"s")),te=v(()=>!d()||!!l()||r(K)),ne=Y(!1);He(()=>{N(ne,le(r(te)))});let ve=()=>{N(ne,!0)},j=()=>{ge(),r(p)?.addEventListener("animationiteration",ve,{once:!0})},ge=()=>{N(ne,!1),r(p)?.removeEventListener("animationiteration",ve)},X=ie=>{R.set(ie)},Pe=v(()=>c()&&!r(te));He(()=>{c()?j():ge()});let Ee=()=>{r(te)||(R.set(!0),E?.())};sn(()=>{R.clearTimeout(),ge()});let Me=()=>{R.set(!1)},ue=F("tooltip_interactive_interaction_time_indicator");var De=ly();let oe;De.__mousemove=[sy],De.__click=Ee;var V=h(De);uo(V,{tooltipContent:ue,get tooltipActive(){return r(Pe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:X,get ref(){return b()},set ref(ie){b(ie)},children:(ie,Te)=>{Hl(ie,{completed:!0})},$$slots:{default:!0}});var Qe=P(V,2);let ce;dt(Qe,ie=>b(ie),()=>b());var Fe=P(Qe,2);let z;dt(Fe,ie=>N(p,ie),()=>r(p)),g(De),S((ie,Te,J)=>{oe=Z(De,1,"interactive-episode-icon-animated svelte-od3veb",null,oe,ie),ce=Z(Qe,1,"ref-block svelte-od3veb",null,ce,Te),z=Z(Fe,1,"pulse svelte-od3veb",null,z,J)},[()=>({mobile:n(),fullscreen:u(),invisible:r(te),"icon-small":r(q)}),()=>({hidden:r(te)}),()=>({paused:r(ne)})]),_t("mouseleave",De,Me),_(t,De),H(),o()}it(["mousemove","click"]);function Bc(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);uo(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 c=v(()=>e.buttonComponent);var u=se(l);ui(u,()=>r(c),(b,p)=>{p(b,Kr(()=>e.buttonComponentProps??{}))}),_(s,l)},$$slots:{default:!0}}),H()}var jr={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var uy=_e('<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 pf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=uy();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),_(t,o)}function ma(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");pf(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 py=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),fy=M("<!> <!>",1),my={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Za(t,e){O(e,!0),U(t,my);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=ye().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")),c=v(()=>`btn-${o()?"m":"d"}--${e.type}`);It(t,{get className(){return r(c)},get testId(){return`btn-${e.type??""}`},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(u){i(u)},children:(u,b)=>{var p=fy(),$=se(p);{var w=T=>{var C=py();_(T,C)};L($,T=>{o()&&T(w)})}var x=P($,2);let k=v(()=>e.type==="prev");ma(x,{get isMobile(){return o()},get isPrev(){return r(k)}}),_(u,p)},$$slots:{default:!0}}),H()}var vy=_e('<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 jl(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=vy();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 gy}from"@vkontakte/videoplayer-shared";var hy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),_y=M("<!> <div><!></div>",1),by={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function zs(t,e){O(e,!0),U(t,by);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,gy),d=F("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);It(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Pr.KeyK},get ref(){return i()},set ref(c){i(c)},children:(c,u)=>{var b=_y(),p=se(b);{var $=T=>{var C=hy();_(T,C)};L(p,T=>{o()&&T($)})}var w=P(p,2);let x;var k=h(w);jl(k,{}),g(w),S(T=>x=Z(w,1,"svelte-1ot3duq",null,x,T),[()=>({mobile:o()})]),_(c,b)},$$slots:{default:!0}}),H()}var $y=_e('<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 vr(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=$y(),d=h(s);g(s),S(()=>{Le(s,"width",i()),Le(s,"height",o()),Le(s,"viewBox",n()),Le(d,"fill",a())}),_(t,s)}var yy=_e('<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 Zr(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=yy(),d=h(s);g(s),S(()=>{Le(s,"width",i()),Le(s,"height",o()),Le(s,"viewBox",n()),Le(d,"fill",a())}),_(t,s)}import{noop as xy}from"@vkontakte/videoplayer-shared";var wy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Sy=M("<!> <div><!></div>",1),Cy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Ws(t,e){O(e,!0),U(t,Cy);let[i,o]=Ve(),n=()=>y(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=zi(),s=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),l=m(e,"isPlaying",3,!1),c=m(e,"disabled",3,!1),u=m(e,"className",3,""),b=m(e,"click",3,xy),$=ye().ui.t,{toggle:w}=a,x=v(()=>w),k=v(()=>n()!==null),T=v(()=>r(k)?n():l()),C=v(()=>r(T)?$("tooltip_pause"):$("tooltip_play")),R=v(()=>r(T)?Zr:vr),A=v(()=>`${d()?"btn-m--play":""} ${u()}`),E=v(()=>r(k)?r(x):b());It(t,{get className(){return r(A)},testId:"btn-play",get click(){return r(E)},get disabled(){return c()},get ariaLabel(){return r(C)},get ariaKeyShortCut(){return Pr.KeyK},get ref(){return s()},set ref(B){s(B)},children:(B,K)=>{var q=Sy();let te=v(()=>r(R));var ne=se(q);{var ve=Pe=>{var Ee=wy();_(Pe,Ee)};L(ne,Pe=>{d()&&Pe(ve)})}var j=P(ne,2);let ge;var X=h(j);ui(X,()=>r(te),(Pe,Ee)=>{Ee(Pe,{})}),g(j),S(Pe=>ge=Z(j,1,"svelte-1ot3duq",null,ge,Pe),[()=>({mobile:d()})]),_(B,q)},$$slots:{default:!0}}),H(),o()}var ky=_e('<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 ff(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=ky();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 Zl(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"),s=v(()=>o()?"hidden":"");It(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)=>{ff(d,{})},$$slots:{default:!0}}),H()}var Ty=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Iy={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function Xl(t,e){O(e,!0),U(t,Iy);let[i,o]=Ve(),n=()=>y(d,"$autoplayNextEnabled$",i),a=m(e,"ref",15,void 0),s=ye(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;It(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(u){a(u)},children:(u,b)=>{var p=Ty(),$=h(p);let w;var x=h($);{var k=C=>{vr(C,{width:"14",height:"14",fill:"#000"})},T=C=>{Zr(C,{width:"14",height:"14",fill:"#000"})};L(x,C=>{n()?C(k):C(T,!1)})}g($),g(p),S(C=>w=Z($,1,"toggler svelte-et3q1q",null,w,C),[()=>({enabled:n()})]),_(u,p)},$$slots:{default:!0}}),H(),o()}var Ey=_e('<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 mf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(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 Jl(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"),s=v(()=>o()?"hidden":"");It(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)=>{mf(d,{})},$$slots:{default:!0}}),H()}var Py=_e('<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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Py();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),_(t,o)}var Ay={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function gf(t,e){U(t,Ay);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");vf(t,{get"data-testid"(){return r(o)}})}function ed(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=ye().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),c=v(()=>o()?"hidden":"");It(t,{get className(){return r(c)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(u){i(u)},children:(u,b)=>{let p=v(()=>!!a());gf(u,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),H()}import{PlaybackState as wh}from"@vkontakte/videoplayer-core";function td(t,e){O(e,!0);let[i,o]=Ve(),n=()=>y(c,"$playbackState$",i),a=m(e,"isMobile",3,!1),s=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),l=ye(),c=l.state.playbackState$,u=l.actions.internal.switchToActiveLive,b=l.actions.internal.togglePlay,p=v(()=>()=>{if(!s()){u();return}n()===wh.PAUSED&&b()}),$=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),x=v(()=>s()&&n()===wh.PLAYING);It(t,{get className(){return r($)},get testId(){return r(w)},get disabled(){return r(x)},get ariaLabel(){return d()},get click(){return r(p)},children:(k,T)=>{kl(k,{get isActive(){return s()}})},$$slots:{default:!0}}),H(),o()}import{noop as Sh}from"@vkontakte/videoplayer-shared";var My=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Ly=M('<img class="icon" aria-hidden="true">');function Xa(t,e){"use strict";let i=Y(!1),o=()=>{N(i,!0)};var n=Oe(),a=se(n);{var s=l=>{var c=My();_(l,c)},d=l=>{var c=Ly();S(()=>Le(c,"src",e.icon)),_t("error",c,o),Aa(c),_(l,c)};L(a,l=>{r(i)?l(s):l(d,!1)})}_(t,n)}function hf(t,e){O(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Sh),n=m(e,"ref",15),a=v(()=>o()===Sh),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");uo(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,c)=>{let u=v(()=>e.testId??e.id);It(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(u)},children:(b,p)=>{Xa(b,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var Ch=t=>!!t.buttonComponent;var Xr={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Ny=M('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),Dy={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 bf(t,e){O(e,!0),U(t,Dy);let[i,o]=Ve(),n=()=>y(G,"$disabledControls$",i),a=()=>y(Ft,"$adPlaybackState",i),s=()=>y(Be,"$playbackState$",i),d=()=>y(ro,"$currentSubtitle$",i),l=()=>y(yi,"$isEnded$",i),c=()=>y(In,"$currentGridType$",i),u=()=>y(xi,"$isLive$",i),b=()=>y(Yo,"$chromecastState$",i),p=()=>y(un,"$isPictureInPictureActive",i),$=()=>y(Go,"$pictureInPictureType$",i),w=()=>y(Li,"$availableSubtitlesList$",i),x=()=>y(Vi,"$contextMenuOpenedByKeyboard$",i),k=()=>y(Jt,"$showContextMenuBtn$",i),T=()=>y(wi,"$playerSize",i),C=()=>y(cn,"$isRewindableLive$",i),R=()=>y(Qo,"$isActiveLive$",i),A=()=>y(vo,"$graphIsOpened$",i),E=()=>y(Kt,"$contextMenuVisible$",i),B=()=>y(fo,"$isFullscreen",i),K=()=>y(mo,"$autoplayNextEnabled",i),q=()=>y(r(si),"$prevButton",i),te=()=>y(r(Zi),"$replayButton",i),ne=()=>y(r(li),"$playButton",i),ve=()=>y(r(Qt),"$nextButton",i),j=()=>y(r(lo),"$playPrevChapterButton",i),ge=()=>y(r(Ao),"$seekToInteractiveButton",i),X=()=>y(r(Mo),"$interactiveGraphButton",i),Pe=()=>y(r(Je),"$liveButton",i),Ee=()=>y(r(yt),"$time",i),Me=()=>y(r(gi),"$episodes",i),ue=()=>y(r(Bi),"$vkLogo",i),De=()=>y(r(pi),"$volume",i),oe=()=>y(r(yr),"$subtitles",i),V=()=>y(r(er),"$settings",i),Qe=()=>y(r(Vr),"$context",i),ce=()=>y(r(tr),"$fullscreen",i),Fe=()=>y(r(Nn),"$chromecast",i),z=()=>y(Ri,"$additionalDesktopControlPanelRightButtons$",i),ie=()=>y(ko,"$isInteractiveTime$",i),Te=()=>y(So,"$settingsMenuVisible",i),J=()=>y(xr,"$settingButtonRef$",i),Ue=()=>y(ei,"$startedByKeyboard$",i),ot=()=>y(Ze,"$isAudioAvailable$",i),de=()=>y(Et,"$fakeIsPlaying$",i),Ae=()=>y(pn,"$seekToInteractiveDisabledTooltip$",i),qe=()=>y(vt,"$adPosition",i),je=()=>y(qt,"$position$",i),mt=()=>y(Ki,"$adDuration",i),ft=()=>y(kt,"$duration$",i),Xe=m(e,"playerControlsWrapperRef",15,void 0),$t=m(e,"playerControlsRef",15,void 0),ct=m(e,"isAds",3,!1),Lt=m(e,"logoTargetUrl",3,""),zt=m(e,"isOneVideoPlaylist",3,!1),ze=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Et}=zi(),Q=ye(),be=zi(),ae=Mt(),Ie=Q.actions.internal.toggleMuted,nt=Q.actions.internal.togglePlay,Re=Q.actions.internal.pause,me=Q.actions.internal.toggleSubtitle,Ge=Q.callbacks?.onAudioDoesNotExistHint,pt=Q.callbacks?.onAudioDisabledHint,kt=Q.state.duration$,qt=Q.state.positionWithScrubbing$,Be=Q.state.playbackState$,Ze=Q.state.isAudioAvailable$,Ht=Q.state.isAudioDisabled,yi=Q.state.isEnded$,xi=Q.state.isLive$,Qo=Q.state.isActiveLive$,cn=Q.state.isRewindableLive$,{isActive$:un,type$:Go}=be.pictureInPicture$,So=Q.ui.settingsMenu.visible$,qi=Q.ui.settingsMenu.openedByBtnKeyboard$,Wt=Q.ui.controls,po=Q.actions.internal.getVideoEpisodes(),Yo=Q.state.chromecastState$,Li=Q.state.availableSubtitlesList$,ro=Q.state.currentSubtitle$,G=Wt.disabledControls$,Kt=Q.ui.contextMenu.visible$,Jt=Q.ui.contextMenu.showContextMenuBtn$,Vi=Q.ui.contextMenu.openedByBtnKeyboard$,ei=Q.ui.startedByKeyboard$,at=Q.ui.t,Ki=Q.ads.duration,vt=Q.ads.position,Ft=Q.ads.playbackState,fo=Q.ui.isFullscreen,wi=Q.ui.playerSize,In=Q.ui.currentGridType$,Ri=Q.ui.additionalDesktopControlPanelRightButtons$,mo=Q.ui.autoplayNextEnabled$,Zt=Q.actions.internal.getVideoElement,ht=Q.actions.internal.replayInteractive,vi=Q.actions.internal.prevVideoClick,Co=Q.actions.internal.nextVideoClick,Xt=Q.state.isInteractive,ko=Q.state.isInteractiveTime$,Si=Q.state.showInteractiveGraph,ao=Q.state.showSeekToInteractive,Ci=Q.state.showPlayPrevChapter,En=Q.state.showInteractiveTimeIndicator,Qi=Q.state.playPrevChapterDisabledTooltip,pn=be.seekToInteractiveDisabledTooltip$,vo=be.graphIsOpened$,go=ae.features.interactiveResponsiveUi,fn=v(()=>n().has("EPISODE_BUTTON")),hr=v(()=>n().has("GRAPH_BUTTON")),jn=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),mn=v(()=>n().has("PLAY_BUTTON")),jo=v(()=>n().has("REPLAY_BUTTON")),Pn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),st=()=>Q.actions.internal.toggleChromecast(),Gi=v(()=>ct()?a()==="playing":s()===_f.PLAYING),To=v(()=>d().value!=="off"),vn=v(()=>l()&&!ct()||Xt),ho=v(()=>go?r(vn)&&Pi(c(),"m"):r(vn)),Io=v(()=>!l()||Xt||ct()),An=v(()=>Pi(c(),"m")),_o=v(()=>e.showNextPrevButtons&&Pi(c(),"m")&&!ct()&&e.nextButtonActive),Mn=v(()=>e.showNextPrevButtons&&Pi(c(),"m")&&!ct()&&e.prevButtonActive),Zo=v(()=>!ct()&&!!u()),Ln=v(()=>b()!==kh.NOT_AVAILABLE&&!(p()&&$()===1)&&Pi(c(),"m")&&!Xt),Eo=v(()=>e.showAutoplayNext&&!zt()&&Pi(c(),"s")),Yi=v(()=>w().length>0&&Pi(c(),"m")),ai=v(()=>x()||k()),Xo=v(()=>Pi(c(),"s")&&!ct()),Jo=v(()=>!e.logoHidden&&!ct()),Po=v(()=>ae.features.fullscreen&&(e.logoHidden||Pi(c(),go?"xs":"s"))&&!(p()&&$()===1)&&(Xt?ze():!0)),ji=v(()=>(!u()||ct())&&!(ae.features.interactiveHideTime&&Xt)),gn=v(()=>T().width>100),so=v(()=>Si&&Pi(c(),"m")),ki=v(()=>go?ao&&Pi(c(),"s"):ao),Zn=v(()=>go?Ci&&Pi(c(),"s"):Ci),bo=v(()=>!ct()&&!u()&&!!po?.length&&r(An)&&!r(fn)),Vn=v(()=>!C()||!!R()),hn=v(()=>A()?at("tooltip_interactive_graph_on"):at("tooltip_interactive_graph_off")),Rn=v(()=>E()?at("tooltip_context_menu_close"):at("tooltip_context_menu_open")),Xn=(xt,Ct)=>xt?Ct&&Ct===_f.PAUSED?at("tooltip_play"):"":at("tooltip_live"),en=v(()=>Xn(r(Vn),s())),_r=v(()=>ae.logoType==="vk_video"?at("tooltip_vk_video_logo"):at("tooltip_vk_logo")),Jn=v(()=>r(To)?at("tooltip_subtitles_on"):at("tooltip_subtitles_off")),Bn=v(()=>B()?at("tooltip_fullscreen_on"):at("tooltip_fullscreen_off")),br=v(()=>b()===kh.CONNECTED?at("tooltip_chromecast_on"):at("tooltip_chromecast_off")),$r=v(()=>K()?at("tooltip_autoplay_on"):at("tooltip_autoplay_off")),rt=Y(0),Ye=le({}),si=v(()=>Wt.prevButton),Zi=v(()=>Wt.replayButton),li=v(()=>Wt.playButton),Qt=v(()=>Wt.nextButton),lo=v(()=>Wt.playPrevChapterButton),Ao=v(()=>Wt.seekToInteractiveButton),Mo=v(()=>Wt.interactiveGraphButton),Je=v(()=>Wt.liveButton),yt=v(()=>Wt.time),gi=v(()=>Wt.episodes),Bi=v(()=>Wt.vkLogo),pi=v(()=>Wt.volume),yr=v(()=>Wt.subtitles),er=v(()=>Wt.settings),Vr=v(()=>Wt.context),tr=v(()=>Wt.fullscreen),Nn=v(()=>Wt.chromecast),Ai=v(()=>({prevButton:q()?q().right-q().left:0,replayButton:te()?te().right-te().left:0,playButton:ne()?ne().right-ne().left:0,nextButton:ve()?ve().right-ve().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:ge()?ge().right-ge().left:0,interactiveGraphButton:X()?X().right-X().left:0,liveButton:Pe()?Pe().right-Pe().left:0,time:Ee()?Ee().right-Ee().left:0,episodes:Me()?Me().right-Me().left:0,vkLogo:ue()?ue().right-ue().left:0,volume:De()?De().right-De().left:0,subtitles:oe()?oe().right-oe().left:0,settings:V()?V().right-V().left:0,context:Qe()?Qe().right-Qe().left:0,fullscreen:ce()?ce().right-ce().left:0,chromecast:Fe()?Fe().right-Fe().left:0,additionalButtons:z().length?z().reduce(xt=>[...xt,40],[]):[]})),_n=Y(0);He(()=>{(!r(_n)||r(_n)<r(Ai).time)&&gt(()=>N(_n,le(r(Ai).time)))});let Lo=Y(!1);He(()=>{let xt=0;r(bo)&&(Pi(c(),"xl")?xt=r(Ai).time:xt=60);let Ct=r(Ai).prevButton+r(Ai).playButton+r(Ai).nextButton+r(Ai).seekToInteractiveButton+r(Ai).interactiveGraphButton+r(Ai).liveButton+r(_n)+xt;N(Lo,le(r(ji)&&r(rt)>=Ct))});let ir=v(()=>r(Lo)&&Pi(c(),"m")),bn=By(Us,260);He(()=>{T(),ie(),bn(Zt(),Wt,Ye,e.showControls)});let xr=re();He(()=>{Te(),J()&&gt(()=>Vs(J(),Te(),qi))});let Dn;He(()=>{Ue(),gt(()=>Rc(ei,Ue(),Dn))});function or(){ua({isAudioDisabled:Ht,isAudioAvailable:ot(),isAds:ct(),audioIsNotExistHintCallback:Ge,audioDisabledHintCallback:pt})&&Ie()}let On=Xt?ht:nt,wr=v(()=>de()!==null),nr=v(()=>r(wr)?de():r(Gi)),Vo=v(()=>r(nr)?at("tooltip_pause"):at("tooltip_play")),Sr=at("tooltip_episodes"),Ro=v(()=>r(Mn)?{id:"prevButton",type:"desktop-control-panel-left",weight:jr.prevButton,buttonComponent:Za,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:vi.bind(null,!0)},tooltipEnabled:!Q.callbacks?.uiInfo?.onPrevButtonMouseEnter&&!Q.callbacks?.uiInfo?.onPrevButtonMouseLeave,mouseEnter:()=>{Q.callbacks?.uiInfo?.onPrevButtonMouseEnter?.(ja(Zt(),Ye,"prevButton",e.showControls))},mouseLeave:()=>{Q.callbacks?.uiInfo?.onPrevButtonMouseLeave?.(ja(Zt(),Ye,"prevButton",e.showControls))},tooltipText:at("tooltip_previous"),disabled:!e.prevButtonActive}:void 0),tt=v(()=>r(ho)?{id:"replayButton",type:"desktop-control-panel-left",weight:jr.replayButton,buttonComponent:zs,buttonComponentProps:{disabled:r(jo),click:On},tooltipText:at("tooltip_restart"),disabled:r(jo)}:void 0),Rt=v(()=>r(Io)?{id:"playButton",type:"desktop-control-panel-left",weight:jr.playButton,buttonComponent:Ws,buttonComponentProps:{disabled:r(mn),isPlaying:r(Gi),click:nt},tooltipText:r(Vo),disabled:r(mn)}:void 0),hi=v(()=>r(_o)?{id:"nextButton",type:"desktop-control-panel-left",weight:jr.nextButton,buttonComponent:Za,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Co.bind(null,!0)},tooltipEnabled:!Q.callbacks?.uiInfo?.onNextButtonMouseEnter&&!Q.callbacks?.uiInfo?.onNextButtonMouseLeave,mouseEnter:()=>{Q.callbacks?.uiInfo?.onNextButtonMouseEnter?.(ja(Zt(),Ye,"nextButton",e.showControls))},mouseLeave:()=>{Q.callbacks?.uiInfo?.onNextButtonMouseLeave?.(ja(Zt(),Ye,"nextButton",e.showControls))},tooltipText:at("tooltip_next"),disabled:!e.nextButtonActive}:void 0),Bo=v(()=>Xt&&r(Zn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:jr.playPrevChapterButton,buttonComponent:Zl,buttonComponentProps:{disabled:r(Pn),click:e.playPrevChapter},tooltipText:at("tooltip_interactive_go_back"),disabledTooltipContent:at(Qi),disabled:r(Pn)}:void 0),di=v(()=>Xt&&r(ki)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:jr.seekToInteractiveButton,buttonComponent:Jl,buttonComponentProps:{disabled:r(jn),click:e.seekToInteractive},tooltipText:at("tooltip_interactive_seek"),disabled:r(jn),disabledTooltipContent:at(Ae())}:void 0),No=v(()=>Xt&&r(so)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:jr.interactiveGraphButton,buttonComponent:ed,buttonComponentProps:{disabled:r(hr),click:vo.toggle,graphIsOpened:A()},tooltipText:r(hn)}:void 0),Hn=v(()=>r(Zo)?{id:"liveButton",type:"desktop-control-panel-left",weight:jr.liveButton,buttonComponent:td,buttonComponentProps:{isLiveActive:r(Vn),ariaLabel:r(en)},tooltipText:r(en),disabled:r(Vn)&&s()===_f.PLAYING}:void 0),Fn=v(()=>[r(Ro),r(tt),r(Rt),r(hi),r(Bo),r(di),r(No),r(Hn)].filter(xt=>!!xt).sort(Ua)),_i=v(()=>r(Jo)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Xr.vkLogo,buttonComponent:Ul,buttonComponentProps:{targetUrl:Lt(),logoClickable:e.logoClickable,click:Re},tooltipText:r(_r),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ti=v(()=>r(Eo)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Xr.autoplayNext,buttonComponent:Xl,tooltipText:r($r)}:void 0),Ni=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:Xr.volume,buttonComponent:qp,buttonComponentProps:{click:or,isAds:ct()}})),Se=v(()=>r(Yi)?{id:"subtitles",type:"desktop-control-panel-right",weight:Xr.subtitles,buttonComponent:Hp,buttonComponentProps:{isSubtitlesEnabled:r(To),click:me},tooltipText:r(Jn)}:void 0),Vt=v(()=>r(Xo)?{id:"settings",type:"desktop-control-panel-right",weight:Xr.settings,buttonComponent:Os,buttonComponentProps:{ref$:xr},tooltipText:Te()?void 0:at("tooltip_settings_off")}:void 0),Gt=v(()=>ae.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Xr.context,buttonComponent:uf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:at("aria_label_context_menu")},className:r(ai)?"":"out-of-view",tooltipText:r(Rn)}:void 0),Ne=v(()=>r(Po)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Xr.fullscreen,buttonComponent:Fl,buttonComponentProps:{isFullscreen:B(),click:e.toggleFullscreen},tooltipText:r(Bn)}:void 0),Nt=v(()=>r(Ln)?{id:"chromecast",type:"desktop-control-panel-right",weight:Xr.chromecast,buttonComponent:zl,buttonComponentProps:{state:b(),click:st},tooltipText:r(br)}:void 0),Ti=v(()=>[r(_i),r(ti),r(Ni),r(Se),r(Vt),r(Gt),r(Ne),r(Nt),...z()].filter(xt=>!!xt).sort(Ua));var bi=Ny(),fi=se(bi);let $n;var Xi=h(fi);let rr=v(()=>!r(gn));Ga(Xi,{get isHidden(){return r(rr)},get isAds(){return ct()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return C()},get ref(){return Ye.timeline},set ref(xt){Ye.timeline=xt}});var tn=P(Xi,2),Jr=h(tn),ga=h(Jr);ci(ga,17,()=>r(Fn),xt=>xt.id,(xt,Ct)=>{Bc(xt,{get buttonComponent(){return r(Ct).buttonComponent},get buttonComponentProps(){return r(Ct).buttonComponentProps},get tooltipText(){return r(Ct).tooltipText},get disabledTooltipContent(){return r(Ct).disabledTooltipContent},get disabled(){return r(Ct).disabled},get className(){return r(Ct).className},get tooltipEnabled(){return r(Ct).tooltipEnabled},get mouseEnter(){return r(Ct).mouseEnter},get mouseLeave(){return r(Ct).mouseLeave},get ref(){return Ye[r(Ct).id]},set ref(Mi){Ye[r(Ct).id]=Mi}})});var Un=P(ga,2);{var rs=xt=>{let Ct=v(()=>ct()?qe():je()),Mi=v(()=>ct()?mt():ft());Ol(xt,{isMobile:!1,get showDuration(){return r(ir)},get position(){return r(Ct)},get duration(){return r(Mi)},get ref(){return Ye.time},set ref(Rr){Ye.time=Rr}})};L(Un,xt=>{r(ji)&&xt(rs)})}var Qs=P(Un,2);let as=v(()=>!r(bo));uo(Qs,{className:"w-max",get disabled(){return r(as)},tooltipContent:Sr,get ref(){return Ye.episodes},set ref(xt){Ye.episodes=xt},children:(xt,Ct)=>{var Mi=Oe(),Rr=se(Mi);{var ea=Br=>{ql(Br,{get position(){return je()},get duration(){return ft()},timeCodes:po})};L(Rr,Br=>{r(bo)&&Br(ea)})}_(xt,Mi)},$$slots:{default:!0}}),g(Jr);var ss=P(Jr,2);ci(ss,21,()=>r(Ti),xt=>xt.id,(xt,Ct)=>{var Mi=Oe(),Rr=se(Mi);{var ea=ar=>{Bc(ar,{get buttonComponent(){return r(Ct).buttonComponent},get buttonComponentProps(){return r(Ct).buttonComponentProps},get tooltipText(){return r(Ct).tooltipText},get disabledTooltipContent(){return r(Ct).disabledTooltipContent},get disabled(){return r(Ct).disabled},get className(){return r(Ct).className},get ref(){return Ye[r(Ct).id]},set ref(ha){Ye[r(Ct).id]=ha}})},Br=ar=>{let ha=v(()=>!!r(Ct).disabled);hf(ar,{get id(){return r(Ct).id},get testId(){return r(Ct).testId},get icon(){return r(Ct).icon},get ariaLabel(){return r(Ct).ariaLabel},get tooltipText(){return r(Ct).tooltipText},get disabledTooltipContent(){return r(Ct).disabledTooltipContent},get disabled(){return r(ha)},get onClick(){return r(Ct).onClick},get ref(){return Ye[r(Ct).id]},set ref(ds){Ye[r(Ct).id]=ds}})};L(Rr,ar=>{Ch(r(Ct))?ar(ea):ar(Br,!1)})}_(xt,Mi)}),g(ss),g(tn),dt(tn,xt=>$t(xt),()=>$t()),g(fi),dt(fi,xt=>Xe(xt),()=>Xe());var ls=P(fi,2);{var Gs=xt=>{Yl(xt,{get ref(){return Ye.interactiveTimeIndicator},set ref(Ct){Ye.interactiveTimeIndicator=Ct}})};L(ls,xt=>{En&&xt(Gs)})}S(xt=>$n=Z(fi,1,"wrapper-bottom svelte-f6e8ix",null,$n,xt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Er(Jr,"clientWidth",xt=>N(rt,xt)),_(t,bi),H(),o()}import{ChromecastState as Ih,PlaybackState as Eh}from"@vkontakte/videoplayer-core";import{noop as Th}from"@vkontakte/videoplayer-shared";var Oy=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Hy=M('<img class="icon svelte-167ouw6" aria-hidden="true">'),Fy={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function $f(t,e){U(t,Fy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Th),n=v(()=>o()===Th),a=v(()=>r(n)||i()),s=Y(!1),d=()=>{N(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");It(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:(c,u)=>{var b=Oe(),p=se(b);{var $=x=>{var k=Oy();_(x,k)},w=x=>{var k=Hy();S(()=>Le(k,"src",e.iconUrl)),_t("error",k,d),Aa(k),_(x,k)};L(p,x=>{r(s)?x($):x(w,!1)})}_(c,b)},$$slots:{default:!0}})}var Uy=_e('<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 yf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Uy();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 zy}from"@vkontakte/videoplayer-shared";var Wy=M('<span class="text svelte-6gmlbk"> </span>'),qy=M('<div aria-hidden="true"><!> <!></div>'),Ky={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 Nc(t,e){O(e,!0),U(t,Ky);let i=m(e,"expanded",3,!1),o=m(e,"click",3,zy),n=m(e,"ref",15,void 0),s=ye().ui.t,d=s("aria_label_volume"),l=v(()=>i()?pa:yf),c=v(()=>i()?"btn-mobile-unmuted":"btn-mobile-muted");It(t,{get testId(){return r(c)},get click(){return o()},ariaLabel:d,role:"switch",get ref(){return n()},set ref(u){n(u)},children:(u,b)=>{var p=qy();let $=v(()=>r(l)),w;var x=h(p);ui(x,()=>r($),(C,R)=>{R(C,{})});var k=P(x,2);{var T=C=>{var R=Wy(),A=h(R,!0);g(R),S(E=>pe(A,E),[()=>s("mobile_unmute")]),_(C,R)};L(k,C=>{i()&&C(T)})}g(p),S(C=>w=Z(p,1,"container svelte-6gmlbk",null,w,C),[()=>({expanded:i()})]),_(u,p)},$$slots:{default:!0}}),H()}var Qy=_e('<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 xf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();let n;var a=h(o);fe(a,()=>e.children??ee),he(3),g(o),S(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),_(t,o)}var Gy={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 wf(t,e){U(t,Gy);let i=m(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");xf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as Yy}from"@vkontakte/videoplayer-shared";function Sf(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,Yy),a=F("menu_pip");It(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{wf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}import{debounceFn as jy}from"@vkontakte/videoplayer-shared";var Zy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},Xy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Jy=M("<div><!></div>"),e2=M("<div><!></div>"),t2=M("<div><!></div>"),i2=M("<!> <!> <!>",1),o2=M("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),n2=M("<div><!></div>"),r2=M('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),a2=M("<!> <!> <div><!></div>",1),s2=M('<div aria-hidden="true">\xB7</div> <!>',1),l2=M("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),d2={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
257
  .wrapper-middle-left-second.svelte-1afsgkw,
258
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);}
259
259
 
@@ -261,7 +261,7 @@ Try switching the\xA0quality to\xA0Auto.`},Bg=T0;var Qr=new Map;Qr.set(Og.EN,Bg)
261
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 Sf(t,e){H(e,!0),U(t,l2);let[i,o]=Le(),n=()=>y(zt,"$seekToInteractiveDisabledTooltip$",i),a=()=>y(cn,"$disabledControls$",i),s=()=>y(Nt,"$playbackState$",i),d=()=>y(uo,"$adPlaybackState",i),l=()=>y(Et,"$isEnded$",i),c=()=>y(un,"$playerSize",i),p=()=>y(ot,"$scrubbingInProgress",i),_=()=>y(Ho,"$chromecastState$",i),u=()=>y(Ie,"$isPictureInPictureActive",i),$=()=>y(Ye,"$pictureInPictureType$",i),w=()=>y(Re,"$mobileNotReportControlHidden$",i),x=()=>y(et,"$playerPhase",i),C=()=>y(Co,"$currentGridType$",i),T=()=>y(q,"$isLive$",i),I=()=>y(Pt,"$settingsMenuVisible",i),A=()=>y(Pe,"$isRewindableLive$",i),L=()=>y(de,"$isActiveLive$",i),E=()=>y(Vi,"$isInteractiveTime$",i),N=()=>y(Kt,"$isAudioAvailable$",i),W=()=>y(Ii,"$settingButtonRef$",i),K=()=>y(So,"$startedByKeyboard$",i),Z=()=>y(Fo,"$isFullscreen",i),oe=()=>y($t,"$mobileUnmuteButtonVisible",i),ue=()=>y(Dt,"$volumeHidden",i),j=()=>y(he,"$muted$",i),_e=()=>y(st,"$mobileUnmuteButtonExpanded",i),ee=()=>y(eo,"$additionalButtons$",i),Ae=()=>y(dn,"$crashed$",i),Ee=()=>y(to,"$graphIsOpened$",i),Ve=()=>y(Qt,"$adPosition",i),pe=()=>y(qi,"$adDuration",i),Oe=()=>y(pt,"$position$",i),ie=()=>y(bt,"$duration$",i),R=m(e,"playerControlsWrapperRef",15,void 0),Qe=m(e,"playerControlsRef",15,void 0),ne=m(e,"isAds",3,!1),We=m(e,"logoTargetUrl",3,""),re=m(e,"isOneVideoPlaylist",3,!1),ae=m(e,"customFullscreenSupported",3,!0),X=$e(),J=Wi(),ze=Vt(),Be=X.actions.internal.toggleMuted,ye=X.actions.internal.togglePlay,Me=X.actions.internal.pause,Ge=X.actions.internal.prevVideoClick,Xe=X.actions.internal.nextVideoClick,ft=X.callbacks?.onAudioDoesNotExistHint,ut=X.callbacks?.onAudioDisabledHint,et=X.playerPhase,bt=X.state.duration$,pt=X.state.positionWithScrubbing$,Nt=X.state.playbackState$,Kt=X.state.isAudioAvailable$,Ue=X.state.isAudioDisabled,Et=X.state.isEnded$,q=X.state.isLive$,he=X.state.muted$,de=X.state.isActiveLive$,Pe=X.state.isRewindableLive$,ot=X.ui.scrubbingInProgress,Re=X.ui.mobileNotReportControlHidden$,{isActive$:Ie,type$:Ye}=J.pictureInPicture$,st=X.ui.mobileUnmuteButtonExpanded,$t=X.ui.mobileUnmuteButtonVisible,Pt=X.ui.settingsMenu.visible$,Fe=X.ui.settingsMenu.openedByBtnKeyboard$,Ze=X.ui.controls,{volume:Dt}=X.ui.hiddenControls,li=X.actions.internal.getVideoEpisodes(),pi=X.webApi.pictureInPictureApi,Ho=X.state.chromecastState$,dn=X.state.crashed$,cn=Ze.disabledControls$,So=X.ui.startedByKeyboard$,Co=X.ui.currentGridType$,qi=X.ads.duration,Qt=X.ads.position,uo=X.ads.playbackState,Fo=X.ui.isFullscreen,un=X.ui.playerSize,eo=X.ui.additionalButtonsDeprecated$,Q=X.actions.internal.getVideoElement,jt=X.actions.internal.replayInteractive,Gt=X.state.isInteractive,Vi=X.state.isInteractiveTime$,oi=X.state.showInteractiveGraph,dt=X.state.showSeekToInteractive,Ri=X.state.showPlayPrevChapter,mt=X.state.showInteractiveTimeIndicator,zt=J.seekToInteractiveDisabledTooltip$,to=J.graphIsOpened$,ki=v(()=>O(X.state.playPrevChapterDisabledTooltip)),Qn=v(()=>O(n())),io=v(()=>a().has("EPISODE_BUTTON")),ko=v(()=>a().has("GRAPH_BUTTON")),Xt=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),gt=v(()=>a().has("PLAY_BUTTON")),di=v(()=>a().has("REPLAY_BUTTON")),po=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),ei=v(()=>s()===Ih.PLAYING),fo=v(()=>d()==="paused"),bi=v(()=>l()&&!ne()&&!Gt),oo=v(()=>!l()||ne()),no=v(()=>e.showNextPrevButtons&&!ne()&&e.prevButtonActive),Tn=v(()=>e.showNextPrevButtons&&!ne()&&e.nextButtonActive),ro=v(()=>c().width>300),pn=v(()=>c().width>400),Ti=v(p),mo=v(()=>_()!==Th.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!Gt),Uo=v(()=>x()==="LiveWaitingStart"),vr=v(()=>!!pi&&_()!==Th.CONNECTED&&!w()&&($()===1&&r(Uo)||!r(Uo))&&!r(Ti)&&!Gt),Gn=v(()=>!r(Ti)&&Ci(C(),"s")),In=v(()=>!e.logoHidden&&c().width>350),fn=v(()=>ze.features.fullscreen&&!(u()&&$()===1)&&(Gt?ae():!0)&&!r(Ti)),En=v(()=>(!T()||ne())&&c().width>260&&!r(Ti)&&!(ze.features.interactiveHideTime&&Gt)),jn=v(()=>I()||e.showControls),Ni=v(()=>!ne()&&!T()&&!!li?.length&&r(ro)&&!r(io)&&!r(Ti)),vo=v(()=>!A()||!!L()),mn=v(()=>oi&&Ci(C(),"m")),tt=ce({}),vn=jy(Us,260);He(()=>{c(),E(),vn(Q(),Ze,tt,e.showControls)});let Pn=()=>X.actions.internal.toggleChromecast();function zo(){pa({isAudioDisabled:Ue,audioDisabledHintCallback:ut,isAudioAvailable:N(),audioIsNotExistHintCallback:ft})&&Be()}async function Yn(){pi?.isActive()?await pi?.remove():await pi?.request()}function Wo(){!Ue&&N()&&$t.set(!1),zo()}let qo=G(""),Ko=(je,Mt)=>{if(!je){B(qo,ce(O("tooltip_live")));return}Mt&&Mt===Ih.PAUSED&&B(qo,ce(O("tooltip_play")))};He(()=>{Ko(r(vo),s())});let Ii=se();He(()=>{W()&&Rs(W(),I(),Fe)}),He(()=>{Vc(So,K(),tt.playButton)});var $i=s2(),Qo=le($i);{var An=je=>{var Mt=i2(),fi=le(Mt);let ao;var rt=P(fi,2);let Tt;var mi=h(rt);{var Ei=Je=>{let Rt=v(()=>N()&&!Ue&&_e());Nc(Je,{get muted(){return j()},get expanded(){return r(Rt)},click:Wo,get ref(){return tt.volume},set ref(hi){tt.volume=hi}})};V(mi,Je=>{(!N()||oe())&&!ue()&&Je(Ei)})}g(rt);var yi=P(rt,2);let xi;var Pi=h(yi);ci(Pi,1,ee,({iconUrl:Je,ariaLabel:Rt,testId:hi,onClick:so,tooltip:Po})=>Je,(Je,Rt)=>{let hi=()=>r(Rt).iconUrl,so=()=>r(Rt).ariaLabel,Po=()=>r(Rt).testId,Jo=()=>r(Rt).onClick,Ce=()=>r(Rt).tooltip,Bt=v(()=>so()??Ce());bf(Je,{get iconUrl(){return hi()},get ariaLabel(){return r(Bt)},get testId(){return Po()},get onClick(){return Jo()}})});var Eo=P(Pi,2);{var Yo=Je=>{Xl(Je,{get ref(){return tt.autoplayNextToggle},set ref(Rt){tt.autoplayNextToggle=Rt}})};V(Eo,Je=>{e.showAutoplayNext&&!re()&&Je(Yo)})}var Di=P(Eo,2);{var Ai=Je=>{zl(Je,{isMobile:!0,click:Pn,get state(){return _()},get ref(){return tt.chromecast},set ref(Rt){tt.chromecast=Rt}})};V(Di,Je=>{r(mo)&&Je(Ai)})}var Zo=P(Di,2);{var Nn=Je=>{wf(Je,{click:Yn,get isPictureInPictureActive(){return u()},get ref(){return tt.pip},set ref(Rt){tt.pip=Rt}})};V(Zo,Je=>{r(vr)&&Je(Nn)})}var Jn=P(Zo,2);{var Bn=Je=>{Hs(Je,{ref$:Ii})};V(Jn,Je=>{Ae()&&Je(Bn)})}var $r=P(Jn,2);{var er=Je=>{Ul(Je,{click:Me,get targetUrl(){return We()},get logoClickable(){return e.logoClickable},get ref(){return tt.vkLogo},set ref(Rt){tt.vkLogo=Rt}})};V($r,Je=>{r(In)&&Je(er)})}g(yi);var Xo=P(yi,2);let Dn;var yr=h(Xo);{var tr=Je=>{let Rt=v(()=>Ge.bind(null,!0));Xa(Je,{get click(){return r(Rt)},type:"prev",isMobile:!0,get ref(){return tt.prevButton},set ref(hi){tt.prevButton=hi}})};V(yr,Je=>{r(no)&&Je(tr)})}var _o=P(yr,2);{var xr=Je=>{Ws(Je,{get disabled(){return r(gt)},click:ye,isMobile:!0,get isPlaying(){return r(ei)},get ref(){return tt.playButton},set ref(Rt){tt.playButton=Rt}})};V(_o,Je=>{r(oo)&&Je(xr)})}var bo=P(_o,2);{var ir=Je=>{zs(Je,{get disabled(){return r(di)},click:ye,isMobile:!0,get ref(){return tt.replayButton},set ref(Rt){tt.replayButton=Rt}})};V(bo,Je=>{r(bi)&&Je(ir)})}var Vr=P(bo,2);{var wr=Je=>{let Rt=v(()=>Xe.bind(null,!0));Xa(Je,{get click(){return r(Rt)},type:"next",isMobile:!0,get ref(){return tt.nextButton},set ref(hi){tt.nextButton=hi}})};V(Vr,Je=>{r(Tn)&&Je(wr)})}g(Xo);var Sr=P(Xo,2);{var Mi=Je=>{var Rt=t2(),hi=le(Rt);{var so=Yt=>{var we=Xy();let Ct;we.__click=[Yy,po,e,ki];var ii=h(we);let ti=v(()=>!e.showControls);Zl(ii,{get hidden(){return r(ti)},get disabled(){return r(po)},get click(){return e.playPrevChapter},get ref(){return tt.playPrevChapterButton},set ref(Ht){tt.playPrevChapterButton=Ht}}),g(we),S(Ht=>Ct=Y(we,1,"wrapper-middle-left svelte-1afsgkw",null,Ct,Ht),[()=>({fullscreen:Z(),hidden:!e.showControls})]),b(Yt,we)};V(hi,Yt=>{Ri&&Yt(so)})}var Po=P(hi,2);{var Jo=Yt=>{var we=Jy();let Ct;var ii=h(we);let ti=v(()=>!e.showControls&&!Ee());ed(ii,{get hidden(){return r(ti)},get disabled(){return r(ko)},get click(){return to.toggle},get graphIsOpened(){return Ee()},get ref(){return tt.interactiveGraphButton},set ref(Ht){tt.interactiveGraphButton=Ht}}),g(we),S(Ht=>Ct=Y(we,1,gl(Ri?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",Ct,Ht),[()=>({fullscreen:Z(),hidden:!e.showControls&&!Ee()})]),b(Yt,we)};V(Po,Yt=>{r(mn)&&Yt(Jo)})}var Ce=P(Po,2);{var Bt=Yt=>{var we=e2();let Ct;we.__click=[Zy,Xt,e,Qn];var ii=h(we);let ti=v(()=>!e.showControls);Jl(ii,{get hidden(){return r(ti)},get disabled(){return r(Xt)},get click(){return e.seekToInteractive},get ref(){return tt.seekToInteractiveButton},set ref(Ht){tt.seekToInteractiveButton=Ht}}),g(we),S(Ht=>Ct=Y(we,1,"wrapper-middle-right svelte-1afsgkw",null,Ct,Ht),[()=>({fullscreen:Z(),hidden:!e.showControls})]),b(Yt,we)};V(Ce,Yt=>{dt&&Yt(Bt)})}b(Je,Rt)};V(Sr,Je=>{Gt&&!p()&&Je(Mi)})}S((Je,Rt,hi,so)=>{ao=Y(fi,1,"overlay-mobile svelte-1afsgkw",null,ao,Je),Tt=Y(rt,1,"wrapper-top-left svelte-1afsgkw",null,Tt,Rt),xi=Y(yi,1,"wrapper-top-right svelte-1afsgkw",null,xi,hi),Dn=Y(Xo,1,"wrapper-middle svelte-1afsgkw",null,Dn,so)},[()=>({hidden:!r(jn)}),()=>({hidden:!e.showControls,fullscreen:Z()}),()=>({hidden:!e.showControls&&!w(),fullscreen:Z()}),()=>({hidden:!e.showControls||p()||e.endScreenShown&&e.showNextPrevButtons})]),b(je,Mt)};V(Qo,je=>{ne()||je(An)})}var To=P(Qo,2);{var Go=je=>{var Mt=r2(),fi=le(Mt);{var ao=xi=>{var Pi=o2();let Eo;var Yo=h(Pi);Nc(Yo,{get muted(){return j()},expanded:!1,click:Wo,get ref(){return tt.volume},set ref(Di){tt.volume=Di}}),g(Pi),S(Di=>Eo=Y(Pi,1,"wrapper-top-right svelte-1afsgkw",null,Eo,Di),[()=>({fullscreen:Z()})]),b(xi,Pi)};V(fi,xi=>{oe()&&xi(ao)})}var rt=P(fi,2);{var Tt=xi=>{var Pi=n2(),Eo=h(Pi);let Yo=v(()=>!r(fo));Ws(Eo,{get disabled(){return r(gt)},click:ye,isMobile:!0,get isPlaying(){return r(Yo)},get ref(){return tt.playButton},set ref(Di){tt.playButton=Di}}),g(Pi),b(xi,Pi)};V(rt,xi=>{r(fo)&&xi(Tt)})}var mi=P(rt,2);let Ei;var yi=h(mi);Wl(yi,{get position(){return Ve()},get duration(){return pe()}}),g(mi),S(xi=>Ei=Y(mi,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Ei,xi),[()=>({fullscreen:Z()})]),b(je,Mt)};V(To,je=>{ne()&&d()!=="inactive"&&je(Go)})}var go=P(To,2);let Ki;var gi=h(go);let Mn;var Bi=h(gi);Y(Bi,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var gn=h(Bi);{var Ln=je=>{co(je,{get disabled(){return r(di)},get ref(){return tt.replayButton},set ref(Mt){tt.replayButton=Mt},children:(Mt,fi)=>{zs(Mt,{get disabled(){return r(di)},click:jt})},$$slots:{default:!0}})};V(gn,je=>{Gt&&je(Ln)})}var jo=P(gn,2);{var gr=je=>{co(je,{get ref(){return tt.liveButton},set ref(Mt){tt.liveButton=Mt},children:(Mt,fi)=>{td(Mt,{get isLiveActive(){return r(vo)},isMobile:!0,get ariaLabel(){return r(qo)}})},$$slots:{default:!0}})};V(jo,je=>{!ne()&&T()&&je(gr)})}var Io=P(jo,2);{var hr=je=>{let Mt=v(()=>ne()?Ve():Oe()),fi=v(()=>ne()?pe():ie());Ol(je,{get showDuration(){return r(pn)},get position(){return r(Mt)},get duration(){return r(fi)},isMobile:!0,get ref(){return tt.time},set ref(ao){tt.time=ao}})};V(Io,je=>{r(En)&&je(hr)})}var Vn=P(Io,2);let Rn=v(()=>!r(Ni));co(Vn,{className:"w-max",get disabled(){return r(Rn)},get ref(){return tt.episodes},set ref(je){tt.episodes=je},children:(je,Mt)=>{var fi=De(),ao=le(fi);{var rt=Tt=>{var mi=a2(),Ei=P(le(mi),2);ql(Ei,{get position(){return Oe()},get duration(){return ie()},timeCodes:li}),b(Tt,mi)};V(ao,Tt=>{r(Ni)&&Tt(rt)})}b(je,fi)},$$slots:{default:!0}});var Zn=P(Vn,2);{var _r=je=>{co(je,{get ref(){return tt.settings},set ref(Mt){tt.settings=Mt},children:(Mt,fi)=>{Hs(Mt,{ref$:Ii})},$$slots:{default:!0}})};V(Zn,je=>{r(Gn)&&je(_r)})}var hn=P(Zn,2);{var Wt=je=>{co(je,{get ref(){return tt.fullscreen},set ref(Mt){tt.fullscreen=Mt},children:(Mt,fi)=>{Fl(Mt,{get click(){return e.toggleFullscreen},get isFullscreen(){return Z()}})},$$slots:{default:!0}})};V(hn,je=>{r(fn)&&je(Wt)})}g(Bi),lt(Bi,je=>Qe(je),()=>Qe());var Xn=P(Bi,2);ja(Xn,{get isAds(){return ne()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return A()},get ref(){return tt.timeline},set ref(je){tt.timeline=je}}),g(gi),g(go),lt(go,je=>R(je),()=>R());var br=P(go,2);{var ho=je=>{jl(je,{get ref(){return tt.interactiveTimeIndicator},set ref(Mt){tt.interactiveTimeIndicator=Mt}})};V(br,je=>{mt&&je(ho)})}S((je,Mt)=>{Ki=Y(go,1,"wrapper-bottom svelte-1afsgkw",null,Ki,je),Mn=Y(gi,1,"controls-wrapper svelte-1afsgkw",null,Mn,Mt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:Z()})]),b(t,$i),F(),o()}nt(["click"]);function od(t,e){H(e,!0);let[i,o]=Le(),n=()=>y(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),c=m(e,"logoTargetUrl",3,""),p=m(e,"showAutoplayNext",3,!1),_=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),$=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,Eh),x=m(e,"onDisabledSeekToInteractiveClick",3,Eh),T=$e().ui.isMobile,I=G(!1);Lt(()=>{let N=setTimeout(()=>B(I,!0),0);return()=>clearTimeout(N)});var A=De(),L=le(A);{var E=N=>{var W=De(),K=le(W);{var Z=ue=>{Sf(ue,{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 c()},get showAutoplayNext(){return p()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return _()},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 x()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(j){s(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},oe=ue=>{_f(ue,{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 c()},get isOneVideoPlaylist(){return _()},get showAutoplayNext(){return p()},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(j){s(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};V(K,ue=>{n()?ue(Z):ue(oe,!1)})}b(N,W)};V(L,N=>{r(I)&&N(E)})}b(t,A),F(),o()}var d2=ge('<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 Cf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=d2();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(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})),b(t,o)}function kf(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Cf(t,{get style(){return r(o)}})}var c2=ge('<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 Tf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=c2();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(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})),b(t,o)}var u2=ge('<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 If(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=u2();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(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})),b(t,o)}function Bc(t,e){let i=m(e,"isOff",3,!1);var o=De(),n=le(o);{var a=d=>{If(d,{})},s=d=>{Tf(d,{})};V(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var p2=ge('<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 Ef(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=p2();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(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})),b(t,o)}function Pf(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Ef(t,{get style(){return r(o)}})}var f2=ge('<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 Af(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=f2();let n;var a=h(o);me(a,()=>e.children??te),ve(2),g(o),S(()=>n=xe(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})),b(t,o)}function Mf(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Af(t,{get style(){return r(o)}})}var m2=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),v2=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),g2=M("<div><!></div>"),h2={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
+ }`};function Cf(t,e){O(e,!0),U(t,d2);let[i,o]=Ve(),n=()=>y(ei,"$seekToInteractiveDisabledTooltip$",i),a=()=>y(yi,"$disabledControls$",i),s=()=>y($t,"$playbackState$",i),d=()=>y(Go,"$adPlaybackState",i),l=()=>y(zt,"$isEnded$",i),c=()=>y(qi,"$playerSize",i),u=()=>y(be,"$scrubbingInProgress",i),b=()=>y(Ze,"$chromecastState$",i),p=()=>y(Ie,"$isPictureInPictureActive",i),$=()=>y(nt,"$pictureInPictureType$",i),w=()=>y(ae,"$mobileNotReportControlHidden$",i),x=()=>y(mt,"$playerPhase",i),k=()=>y(Qo,"$currentGridType$",i),T=()=>y(ze,"$isLive$",i),C=()=>y(Ge,"$settingsMenuVisible",i),R=()=>y(Q,"$isRewindableLive$",i),A=()=>y(Et,"$isActiveLive$",i),E=()=>y(ro,"$isInteractiveTime$",i),B=()=>y(ct,"$isAudioAvailable$",i),K=()=>y(_o,"$settingButtonRef$",i),q=()=>y(xi,"$startedByKeyboard$",i),te=()=>y(So,"$isFullscreen",i),ne=()=>y(me,"$mobileUnmuteButtonVisible",i),ve=()=>y(Re,"$mobileUnmuteButtonExpanded",i),j=()=>y(Wt,"$additionalButtons$",i),ge=()=>y(Ht,"$crashed$",i),X=()=>y(at,"$graphIsOpened$",i),Pe=()=>y(un,"$adPosition",i),Ee=()=>y(cn,"$adDuration",i),Me=()=>y(Xe,"$position$",i),ue=()=>y(ft,"$duration$",i),De=m(e,"playerControlsWrapperRef",15,void 0),oe=m(e,"playerControlsRef",15,void 0),V=m(e,"isAds",3,!1),Qe=m(e,"logoTargetUrl",3,""),ce=m(e,"isOneVideoPlaylist",3,!1),Fe=m(e,"customFullscreenSupported",3,!0),z=ye(),ie=zi(),Te=Mt(),J=z.actions.internal.toggleMuted,Ue=z.actions.internal.togglePlay,ot=z.actions.internal.pause,de=z.actions.internal.prevVideoClick,Ae=z.actions.internal.nextVideoClick,qe=z.callbacks?.onAudioDoesNotExistHint,je=z.callbacks?.onAudioDisabledHint,mt=z.playerPhase,ft=z.state.duration$,Xe=z.state.positionWithScrubbing$,$t=z.state.playbackState$,ct=z.state.isAudioAvailable$,Lt=z.state.isAudioDisabled,zt=z.state.isEnded$,ze=z.state.isLive$,Et=z.state.isActiveLive$,Q=z.state.isRewindableLive$,be=z.ui.scrubbingInProgress,ae=z.ui.mobileNotReportControlHidden$,{isActive$:Ie,type$:nt}=ie.pictureInPicture$,Re=z.ui.mobileUnmuteButtonExpanded,me=z.ui.mobileUnmuteButtonVisible,Ge=z.ui.settingsMenu.visible$,pt=z.ui.settingsMenu.openedByBtnKeyboard$,kt=z.ui.controls,qt=z.actions.internal.getVideoEpisodes(),Be=z.webApi.pictureInPictureApi,Ze=z.state.chromecastState$,Ht=z.state.crashed$,yi=kt.disabledControls$,xi=z.ui.startedByKeyboard$,Qo=z.ui.currentGridType$,cn=z.ads.duration,un=z.ads.position,Go=z.ads.playbackState,So=z.ui.isFullscreen,qi=z.ui.playerSize,Wt=z.ui.additionalButtonsDeprecated$,po=z.actions.internal.getVideoElement,Yo=z.actions.internal.replayInteractive,Li=z.state.isInteractive,ro=z.state.isInteractiveTime$,G=z.state.showInteractiveGraph,Kt=z.state.showSeekToInteractive,Jt=z.state.showPlayPrevChapter,Vi=z.state.showInteractiveTimeIndicator,ei=ie.seekToInteractiveDisabledTooltip$,at=ie.graphIsOpened$,Ki=v(()=>F(z.state.playPrevChapterDisabledTooltip)),vt=v(()=>F(n())),Ft=v(()=>a().has("EPISODE_BUTTON")),fo=v(()=>a().has("GRAPH_BUTTON")),wi=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),In=v(()=>a().has("PLAY_BUTTON")),Ri=v(()=>a().has("REPLAY_BUTTON")),mo=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Zt=v(()=>s()===Eh.PLAYING),ht=v(()=>d()==="paused"),vi=v(()=>l()&&!V()&&!Li),Co=v(()=>!l()||V()),Xt=v(()=>e.showNextPrevButtons&&!V()&&e.prevButtonActive),ko=v(()=>e.showNextPrevButtons&&!V()&&e.nextButtonActive),Si=v(()=>c().width>300),ao=v(()=>c().width>400),Ci=v(u),En=v(()=>b()!==Ih.NOT_AVAILABLE&&!(p()&&$()===1)&&!w()&&!Li),Qi=v(()=>x()==="LiveWaitingStart"),pn=v(()=>!!Be&&b()!==Ih.CONNECTED&&!w()&&($()===1&&r(Qi)||!r(Qi))&&!r(Ci)&&!Li),vo=v(()=>!r(Ci)&&Pi(k(),"s")),go=v(()=>!e.logoHidden&&c().width>350),fn=v(()=>Te.features.fullscreen&&!(p()&&$()===1)&&(Li?Fe():!0)&&!r(Ci)),hr=v(()=>(!T()||V())&&c().width>260&&!r(Ci)&&!(Te.features.interactiveHideTime&&Li)),jn=v(()=>C()||e.showControls),mn=v(()=>!V()&&!T()&&!!qt?.length&&r(Si)&&!r(Ft)&&!r(Ci)),jo=v(()=>!R()||!!A()),Pn=v(()=>G&&Pi(k(),"m")),st=le({}),Gi=jy(Us,260);He(()=>{c(),E(),Gi(po(),kt,st,e.showControls)});let To=()=>z.actions.internal.toggleChromecast();async function vn(){Be?.isActive()?await Be?.remove():await Be?.request()}function ho(){(!Lt&&B()||V())&&me.set(!1),ua({isAudioDisabled:Lt,audioDisabledHintCallback:je,isAudioAvailable:B(),audioIsNotExistHintCallback:qe,isAds:V()})&&J()}let Io=Y(""),An=(rt,Ye)=>{if(!rt){N(Io,le(F("tooltip_live")));return}Ye&&Ye===Eh.PAUSED&&N(Io,le(F("tooltip_play")))};He(()=>{An(r(jo),s())});let _o=re();He(()=>{K()&&Vs(K(),C(),pt)}),He(()=>{Rc(xi,q(),st.playButton)});var Mn=l2(),Zo=se(Mn);{var Ln=rt=>{var Ye=o2(),si=se(Ye);let Zi;var li=P(si,2);let Qt;var lo=h(li);{var Ao=tt=>{let Rt=v(()=>B()&&!Lt&&ve());Nc(tt,{get expanded(){return r(Rt)},click:ho,get ref(){return st.volume},set ref(hi){st.volume=hi}})};L(lo,tt=>{(!B()||ne())&&tt(Ao)})}g(li);var Mo=P(li,2);let Je;var yt=h(Mo);ci(yt,1,j,({iconUrl:tt,ariaLabel:Rt,testId:hi,onClick:Bo,tooltip:di})=>tt,(tt,Rt)=>{let hi=()=>r(Rt).iconUrl,Bo=()=>r(Rt).ariaLabel,di=()=>r(Rt).testId,No=()=>r(Rt).onClick,Hn=()=>r(Rt).tooltip,Fn=v(()=>Bo()??Hn());$f(tt,{get iconUrl(){return hi()},get ariaLabel(){return r(Fn)},get testId(){return di()},get onClick(){return No()}})});var gi=P(yt,2);{var Bi=tt=>{Xl(tt,{get ref(){return st.autoplayNextToggle},set ref(Rt){st.autoplayNextToggle=Rt}})};L(gi,tt=>{e.showAutoplayNext&&!ce()&&tt(Bi)})}var pi=P(gi,2);{var yr=tt=>{zl(tt,{isMobile:!0,click:To,get state(){return b()},get ref(){return st.chromecast},set ref(Rt){st.chromecast=Rt}})};L(pi,tt=>{r(En)&&tt(yr)})}var er=P(pi,2);{var Vr=tt=>{Sf(tt,{click:vn,get isPictureInPictureActive(){return p()},get ref(){return st.pip},set ref(Rt){st.pip=Rt}})};L(er,tt=>{r(pn)&&tt(Vr)})}var tr=P(er,2);{var Nn=tt=>{Os(tt,{ref$:_o})};L(tr,tt=>{ge()&&tt(Nn)})}var Ai=P(tr,2);{var _n=tt=>{Ul(tt,{click:ot,get targetUrl(){return Qe()},get logoClickable(){return e.logoClickable},get ref(){return st.vkLogo},set ref(Rt){st.vkLogo=Rt}})};L(Ai,tt=>{r(go)&&tt(_n)})}g(Mo);var Lo=P(Mo,2);let ir;var bn=h(Lo);{var xr=tt=>{let Rt=v(()=>de.bind(null,!0));Za(tt,{get click(){return r(Rt)},type:"prev",isMobile:!0,get ref(){return st.prevButton},set ref(hi){st.prevButton=hi}})};L(bn,tt=>{r(Xt)&&tt(xr)})}var Dn=P(bn,2);{var or=tt=>{Ws(tt,{get disabled(){return r(In)},click:Ue,isMobile:!0,get isPlaying(){return r(Zt)},get ref(){return st.playButton},set ref(Rt){st.playButton=Rt}})};L(Dn,tt=>{r(Co)&&tt(or)})}var On=P(Dn,2);{var wr=tt=>{zs(tt,{get disabled(){return r(Ri)},click:Ue,isMobile:!0,get ref(){return st.replayButton},set ref(Rt){st.replayButton=Rt}})};L(On,tt=>{r(vi)&&tt(wr)})}var nr=P(On,2);{var Vo=tt=>{let Rt=v(()=>Ae.bind(null,!0));Za(tt,{get click(){return r(Rt)},type:"next",isMobile:!0,get ref(){return st.nextButton},set ref(hi){st.nextButton=hi}})};L(nr,tt=>{r(ko)&&tt(Vo)})}g(Lo);var Sr=P(Lo,2);{var Ro=tt=>{var Rt=i2(),hi=se(Rt);{var Bo=_i=>{var ti=Jy();let Ni;ti.__click=[Zy,mo,e,Ki];var Se=h(ti);let Vt=v(()=>!e.showControls);Zl(Se,{get hidden(){return r(Vt)},get disabled(){return r(mo)},get click(){return e.playPrevChapter},get ref(){return st.playPrevChapterButton},set ref(Gt){st.playPrevChapterButton=Gt}}),g(ti),S(Gt=>Ni=Z(ti,1,"wrapper-middle-left svelte-1afsgkw",null,Ni,Gt),[()=>({fullscreen:te(),hidden:!e.showControls})]),_(_i,ti)};L(hi,_i=>{Jt&&_i(Bo)})}var di=P(hi,2);{var No=_i=>{var ti=e2();let Ni;var Se=h(ti);let Vt=v(()=>!e.showControls&&!X());ed(Se,{get hidden(){return r(Vt)},get disabled(){return r(fo)},get click(){return at.toggle},get graphIsOpened(){return X()},get ref(){return st.interactiveGraphButton},set ref(Gt){st.interactiveGraphButton=Gt}}),g(ti),S(Gt=>Ni=Z(ti,1,gl(Jt?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",Ni,Gt),[()=>({fullscreen:te(),hidden:!e.showControls&&!X()})]),_(_i,ti)};L(di,_i=>{r(Pn)&&_i(No)})}var Hn=P(di,2);{var Fn=_i=>{var ti=t2();let Ni;ti.__click=[Xy,wi,e,vt];var Se=h(ti);let Vt=v(()=>!e.showControls);Jl(Se,{get hidden(){return r(Vt)},get disabled(){return r(wi)},get click(){return e.seekToInteractive},get ref(){return st.seekToInteractiveButton},set ref(Gt){st.seekToInteractiveButton=Gt}}),g(ti),S(Gt=>Ni=Z(ti,1,"wrapper-middle-right svelte-1afsgkw",null,Ni,Gt),[()=>({fullscreen:te(),hidden:!e.showControls})]),_(_i,ti)};L(Hn,_i=>{Kt&&_i(Fn)})}_(tt,Rt)};L(Sr,tt=>{Li&&!u()&&tt(Ro)})}S((tt,Rt,hi,Bo)=>{Zi=Z(si,1,"overlay-mobile svelte-1afsgkw",null,Zi,tt),Qt=Z(li,1,"wrapper-top-left svelte-1afsgkw",null,Qt,Rt),Je=Z(Mo,1,"wrapper-top-right svelte-1afsgkw",null,Je,hi),ir=Z(Lo,1,"wrapper-middle svelte-1afsgkw",null,ir,Bo)},[()=>({hidden:!r(jn)}),()=>({hidden:!e.showControls,fullscreen:te()}),()=>({hidden:!e.showControls&&!w(),fullscreen:te()}),()=>({hidden:!e.showControls||u()||e.endScreenShown&&e.showNextPrevButtons})]),_(rt,Ye)};L(Zo,rt=>{V()||rt(Ln)})}var Eo=P(Zo,2);{var Yi=rt=>{var Ye=a2(),si=se(Ye);{var Zi=Je=>{var yt=n2();let gi;var Bi=h(yt);Nc(Bi,{expanded:!1,click:ho,get ref(){return st.volume},set ref(pi){st.volume=pi}}),g(yt),S(pi=>gi=Z(yt,1,"wrapper-top-right svelte-1afsgkw",null,gi,pi),[()=>({fullscreen:te()})]),_(Je,yt)};L(si,Je=>{ne()&&Je(Zi)})}var li=P(si,2);{var Qt=Je=>{var yt=r2(),gi=h(yt);let Bi=v(()=>!r(ht));Ws(gi,{get disabled(){return r(In)},click:Ue,isMobile:!0,get isPlaying(){return r(Bi)},get ref(){return st.playButton},set ref(pi){st.playButton=pi}}),g(yt),_(Je,yt)};L(li,Je=>{r(ht)&&Je(Qt)})}var lo=P(li,2);let Ao;var Mo=h(lo);Wl(Mo,{get position(){return Pe()},get duration(){return Ee()}}),g(lo),S(Je=>Ao=Z(lo,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Ao,Je),[()=>({fullscreen:te()})]),_(rt,Ye)};L(Eo,rt=>{V()&&d()!=="inactive"&&rt(Yi)})}var ai=P(Eo,2);let Xo;var Jo=h(ai);let Po;var ji=h(Jo);Z(ji,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var gn=h(ji);{var so=rt=>{uo(rt,{get disabled(){return r(Ri)},get ref(){return st.replayButton},set ref(Ye){st.replayButton=Ye},children:(Ye,si)=>{zs(Ye,{get disabled(){return r(Ri)},click:Yo})},$$slots:{default:!0}})};L(gn,rt=>{Li&&rt(so)})}var ki=P(gn,2);{var Zn=rt=>{uo(rt,{get ref(){return st.liveButton},set ref(Ye){st.liveButton=Ye},children:(Ye,si)=>{td(Ye,{get isLiveActive(){return r(jo)},isMobile:!0,get ariaLabel(){return r(Io)}})},$$slots:{default:!0}})};L(ki,rt=>{!V()&&T()&&rt(Zn)})}var bo=P(ki,2);{var Vn=rt=>{let Ye=v(()=>V()?Pe():Me()),si=v(()=>V()?Ee():ue());Ol(rt,{get showDuration(){return r(ao)},get position(){return r(Ye)},get duration(){return r(si)},isMobile:!0,get ref(){return st.time},set ref(Zi){st.time=Zi}})};L(bo,rt=>{r(hr)&&rt(Vn)})}var hn=P(bo,2);let Rn=v(()=>!r(mn));uo(hn,{className:"w-max",get disabled(){return r(Rn)},get ref(){return st.episodes},set ref(rt){st.episodes=rt},children:(rt,Ye)=>{var si=Oe(),Zi=se(si);{var li=Qt=>{var lo=s2(),Ao=P(se(lo),2);ql(Ao,{get position(){return Me()},get duration(){return ue()},timeCodes:qt}),_(Qt,lo)};L(Zi,Qt=>{r(mn)&&Qt(li)})}_(rt,si)},$$slots:{default:!0}});var Xn=P(hn,2);{var en=rt=>{uo(rt,{get ref(){return st.settings},set ref(Ye){st.settings=Ye},children:(Ye,si)=>{Os(Ye,{ref$:_o})},$$slots:{default:!0}})};L(Xn,rt=>{r(vo)&&rt(en)})}var _r=P(Xn,2);{var Jn=rt=>{uo(rt,{get ref(){return st.fullscreen},set ref(Ye){st.fullscreen=Ye},children:(Ye,si)=>{Fl(Ye,{get click(){return e.toggleFullscreen},get isFullscreen(){return te()}})},$$slots:{default:!0}})};L(_r,rt=>{r(fn)&&rt(Jn)})}g(ji),dt(ji,rt=>oe(rt),()=>oe());var Bn=P(ji,2);Ga(Bn,{get isAds(){return V()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return R()},get ref(){return st.timeline},set ref(rt){st.timeline=rt}}),g(Jo),g(ai),dt(ai,rt=>De(rt),()=>De());var br=P(ai,2);{var $r=rt=>{Yl(rt,{get ref(){return st.interactiveTimeIndicator},set ref(Ye){st.interactiveTimeIndicator=Ye}})};L(br,rt=>{Vi&&rt($r)})}S((rt,Ye)=>{Xo=Z(ai,1,"wrapper-bottom svelte-1afsgkw",null,Xo,rt),Po=Z(Jo,1,"controls-wrapper svelte-1afsgkw",null,Po,Ye)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:te()})]),_(t,Mn),H(),o()}it(["click"]);function od(t,e){O(e,!0);let[i,o]=Ve(),n=()=>y(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),c=m(e,"logoTargetUrl",3,""),u=m(e,"showAutoplayNext",3,!1),b=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),$=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,Ph),x=m(e,"onDisabledSeekToInteractiveClick",3,Ph),T=ye().ui.isMobile,C=Y(!1);At(()=>{let B=setTimeout(()=>N(C,!0),0);return()=>clearTimeout(B)});var R=Oe(),A=se(R);{var E=B=>{var K=Oe(),q=se(K);{var te=ve=>{Cf(ve,{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 c()},get showAutoplayNext(){return u()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return b()},get customFullscreenSupported(){return p()},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 x()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(j){s(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},ne=ve=>{bf(ve,{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 c()},get isOneVideoPlaylist(){return b()},get showAutoplayNext(){return u()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(j){s(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};L(q,ve=>{n()?ve(te):ve(ne,!1)})}_(B,K)};L(A,B=>{r(C)&&B(E)})}_(t,R),H(),o()}var c2=_e('<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 kf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=c2();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(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 Tf(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 u2=_e('<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 If(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=u2();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(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 p2=_e('<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 Ef(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=p2();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(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 Dc(t,e){let i=m(e,"isOff",3,!1);var o=Oe(),n=se(o);{var a=d=>{Ef(d,{})},s=d=>{If(d,{})};L(n,d=>{i()?d(a):d(s,!1)})}_(t,o)}var f2=_e('<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 Pf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=f2();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(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 Af(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Pf(t,{get style(){return r(o)}})}var m2=_e('<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 Mf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=m2();let n;var a=h(o);fe(a,()=>e.children??ee),he(2),g(o),S(()=>n=we(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 Lf(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Mf(t,{get style(){return r(o)}})}var v2=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),g2=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),h2=M("<div><!></div>"),_2={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
265
  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
266
  .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
267
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -276,23 +276,23 @@ Try switching the\xA0quality to\xA0Auto.`},Bg=T0;var Qr=new Map;Qr.set(Og.EN,Bg)
276
276
  @keyframes svelte-1ad3n06-fadeOut {
277
277
  0% {opacity:1;}
278
278
  100% {opacity:0;}
279
- }`};function Lf(t,e){H(e,!0),U(t,h2);let[i,o]=Le(),n=()=>y(e.data,"$data",i),s=$e().ui.t,d=v(()=>!n()),l=v(()=>n()?.type==="BACKWARD_SEEK"),c=v(()=>n()?.type==="FORWARD_SEEK"),p=v(()=>n()?.type),_=v(()=>n()?.t?s(n().t.key,{value:n().t.value||""}):n()?.text);var u=g2();let $;var w=h(u);{var x=C=>{var T=v2(),I=le(T),A=h(I);{var L=re=>{let ae=v(()=>r(p)==="FORWARD_SEEK");kf(re,{get reversed(){return r(ae)}})};V(A,re=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(p))&&re(L)})}var E=P(A,2);{var N=re=>{Xr(re,{})};V(E,re=>{r(p)==="PAUSE"&&re(N)})}var W=P(E,2);{var K=re=>{fr(re,{})};V(W,re=>{r(p)==="PLAY"&&re(K)})}var Z=P(W,2);{var oe=re=>{Yl(re,{})};V(Z,re=>{r(p)==="REPLAY"&&re(oe)})}var ue=P(Z,2);{var j=re=>{Bc(re,{isOff:!0})};V(ue,re=>{r(p)==="SUBTITLES_OFF"&&re(j)})}var _e=P(ue,2);{var ee=re=>{Bc(re,{})};V(_e,re=>{r(p)==="SUBTITLES_ON"&&re(ee)})}var Ae=P(_e,2);{var Ee=re=>{let ae=v(()=>r(p)==="RATE_UP");Pf(re,{get reversed(){return r(ae)}})};V(Ae,re=>{["RATE_DOWN","RATE_UP"].includes(r(p))&&re(Ee)})}var Ve=P(Ae,2);{var pe=re=>{let ae=v(()=>r(p)==="EPISODE_NEXT");Mf(re,{get reversed(){return r(ae)}})};V(Ve,re=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(p))&&re(pe)})}var Oe=P(Ve,2);{var ie=re=>{fa(re,{volume:0})};V(Oe,re=>{r(p)==="MUTE"&&re(ie)})}var R=P(Oe,2);{var Qe=re=>{fa(re,{volume:1})};V(R,re=>{r(p)==="VOLUME"&&re(Qe)})}g(I);var ne=P(I,2);{var We=re=>{var ae=m2(),X=h(ae,!0);g(ae),S(()=>fe(X,r(_))),b(re,ae)};V(ne,re=>{r(_)&&re(We)})}b(C,T)};V(w,C=>{!r(d)&&r(p)&&C(x)})}g(u),S(C=>$=Y(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(c)})]),b(t,u),F(),o()}var _2=ge('<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 Vf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=_2();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}var b2=ge('<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 Rf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=b2();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}function ga(t,e){H(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 _="";return r(a)&&(_+="transform: rotate(180deg);"),o()&&(_+="color: var(--btn-color, #fff);"),_.length?_:void 0})());var d=De(),l=le(d);{var c=_=>{let u=v(()=>r(a)?"chevron-icon--down":"chevron-icon--up");Vf(_,{get style(){return r(s)},get"data-testid"(){return r(u)}})},p=_=>{let u=v(()=>r(a)?"chevron-icon--right":"chevron-icon--left");Rf(_,{get style(){return r(s)},get"data-testid"(){return r(u)}})};V(l,_=>{r(n)?_(c):_(p,!1)})}b(t,d),F()}var $2=(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}},y2=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},x2=M('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),w2={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 nd(t,e){H(e,!0),U(t,w2);let i=m(e,"isShifted",3,!1),o=$e(),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)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),p=O("aria_label_spherical_control");var _=x2();let u;_.__keydown=[$2,n,a,s,l,d],_.__keyup=[y2,n,c],Ne(_,"aria-label",p);var $=h(_),w=h($),x=h(w);x.__mousedown=a,x.__mouseup=c;var C=h(x);ga(C,{direction:"up",useBtnColor:!0}),g(x);var T=P(x,2);T.__mousedown=d,T.__mouseup=c;var I=h(T);ga(I,{direction:"up",useBtnColor:!0}),g(T),g(w);var A=P(w,2),L=h(A);L.__mousedown=l,L.__mouseup=c;var E=h(L);ga(E,{direction:"up",useBtnColor:!0}),g(L);var N=P(L,2);N.__mousedown=s,N.__mouseup=c;var W=h(N);ga(W,{direction:"up",useBtnColor:!0}),g(N),g(A),g($),g(_),S(K=>u=Y(_,1,"immersive-controls svelte-1yzc86r",null,u,K),[()=>({"m-shifted":i()})]),ht("mouseleave",x,c),ht("mouseleave",T,c),ht("mouseleave",L,c),ht("mouseleave",N,c),b(t,_),F()}nt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as Ah,Subscription as S2,filterChanged as C2,filter as k2}from"@vkontakte/videoplayer-shared";var Ph=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Dc=class{constructor(){this.flickeringTimeout=Ph(1e3);this.subscriptions=new S2;this.isAuto=!1;this.isLive=!1;this.captions$=new Ah([]);this.captionsPrepared$=new Ah([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(k2(()=>this.isEnabled()),C2()).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 T2=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),I2=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),E2=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),P2=M('<div><span class="caption svelte-c2x749"><!></span></div>'),A2=M("<div><!></div>"),M2={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 es(t,e){H(e,!0),U(t,M2);let[i,o]=Le(),n=()=>y(_,"$currentSubtitle$",i),a=()=>y($,"$isLive$",i),s=()=>y(w,"$isFullscreen",i),d=()=>y(u,"$isAutoSubtitleCaptionVisible$",i),l=m(e,"isMobile",3,!1),c=$e(),p=Vt(),_=c.state.currentSubtitle$,u=c.state.isAutoSubtitleCaptionVisible$,$=c.state.isLive$,w=c.ui.isFullscreen,x=v(()=>!!n().isAuto),C=v(()=>!!a()),T=v(()=>e.playerSize.width*.02),I=v(()=>l()&&!s()||r(T)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:r(T)),A=G(null);He(()=>{r(A)?.setIsAuto(r(x)),r(A)?.setIsLive(r(C)),r(A)?.setCaptions(e.captions)});let L=G(ce([[]]));Lt(()=>{B(A,ce(new Dc().subscribe()));let oe=r(A).captionsPrepared$.subscribe(ue=>{B(L,ce(ue))});return()=>{r(A)?.destroy(),oe.unsubscribe()}}),Lt(()=>{if(r(x)){let oe=window.setTimeout(()=>{u.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(oe)}}else u.set(!1)});let E=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var N=A2();let W;var K=h(N);{var Z=oe=>{var ue=P2();let j;var _e=h(ue),ee=h(_e);{var Ae=Ve=>{var pe=T2(),Oe=h(pe),ie=h(Oe,!0);g(Oe),g(pe),S(R=>{it(Oe,`font-size: ${r(I)??""}px`),fe(ie,R)},[()=>O("subtitles_auto_caption")]),b(Ve,pe)},Ee=(Ve,pe)=>{{var Oe=R=>{var Qe=De(),ne=le(Qe);ci(ne,17,()=>r(L),ml,(We,re)=>{var ae=I2(),X=h(ae);ci(X,21,()=>r(re),({value:J,timeAppeared:ze})=>ze,(J,ze)=>{let Be=()=>r(ze).value,ye=()=>r(ze).timeAppeared;var Me=De(),Ge=le(Me);{var Xe=ft=>{var ut=Ir();S(()=>fe(ut,Be())),b(ft,ut)};V(Ge,ft=>{(!ye()||ye()<=e.position)&&ft(Xe)})}b(J,Me)}),g(X),g(ae),S(()=>it(X,`font-size: ${r(I)??""}px`)),b(We,ae)}),b(R,Qe)},ie=R=>{var Qe=De(),ne=le(Qe);ci(ne,17,()=>e.captions,({value:We})=>We,(We,re)=>{let ae=()=>r(re).value;var X=E2(),J=h(X),ze=h(J,!0);g(J),g(X),S(()=>{it(J,`font-size: ${r(I)??""}px`),fe(ze,ae())}),b(We,X)}),b(R,Qe)};V(Ve,R=>{r(x)&&r(L)?.length?R(Oe):R(ie,!1)},pe)}};V(ee,Ve=>{r(x)&&d()?Ve(Ae):Ve(Ee,!1)})}g(_e),g(ue),S(Ve=>{j=Y(ue,1,"subtitles-caption svelte-c2x749",null,j,Ve),it(ue,`--subtitles-caption-margin: ${r(E)??""}%`)},[()=>({mobile:l()})]),b(oe,ue)};V(K,oe=>{(e.captions.length||r(L)?.length)&&oe(Z)})}g(N),S(oe=>W=Y(N,1,"subtitles-container svelte-c2x749",null,W,oe),[()=>({shifted:e.shifted,auto:r(x)&&!r(C)&&!d()})]),b(t,N),F(),o()}var L2=M('<div class="text svelte-raurnb"> </div>'),V2=M('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),R2={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 rd(t,e){H(e,!0),U(t,R2);let i=Vt();var o=V2();let n;var a=P(h(o),2);{var s=d=>{var l=L2(),c=h(l);g(l),S(()=>fe(c,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${e.chromecastDeviceName??""}`)),b(d,l)};V(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),S(d=>{n=Y(o,1,"wrapper svelte-raurnb",null,n,d),it(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),F()}var N2=ge('<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 Nf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=N2();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}var B2=M('<div class="container svelte-13zpvm8"><!></div>'),D2={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 ad(t){U(t,D2);var e=B2(),i=h(e);Nf(i,{}),g(e),b(t,e)}var O2=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),H2=M("<div><!></div>"),F2={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,
279
+ }`};function Vf(t,e){O(e,!0),U(t,_2);let[i,o]=Ve(),n=()=>y(e.data,"$data",i),s=ye().ui.t,d=v(()=>!n()),l=v(()=>n()?.type==="BACKWARD_SEEK"),c=v(()=>n()?.type==="FORWARD_SEEK"),u=v(()=>n()?.type),b=v(()=>n()?.t?s(n().t.key,{value:n().t.value||""}):n()?.text);var p=h2();let $;var w=h(p);{var x=k=>{var T=g2(),C=se(T),R=h(C);{var A=z=>{let ie=v(()=>r(u)==="FORWARD_SEEK");Tf(z,{get reversed(){return r(ie)}})};L(R,z=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(u))&&z(A)})}var E=P(R,2);{var B=z=>{Zr(z,{})};L(E,z=>{r(u)==="PAUSE"&&z(B)})}var K=P(E,2);{var q=z=>{vr(z,{})};L(K,z=>{r(u)==="PLAY"&&z(q)})}var te=P(K,2);{var ne=z=>{jl(z,{})};L(te,z=>{r(u)==="REPLAY"&&z(ne)})}var ve=P(te,2);{var j=z=>{Dc(z,{isOff:!0})};L(ve,z=>{r(u)==="SUBTITLES_OFF"&&z(j)})}var ge=P(ve,2);{var X=z=>{Dc(z,{})};L(ge,z=>{r(u)==="SUBTITLES_ON"&&z(X)})}var Pe=P(ge,2);{var Ee=z=>{let ie=v(()=>r(u)==="RATE_UP");Af(z,{get reversed(){return r(ie)}})};L(Pe,z=>{["RATE_DOWN","RATE_UP"].includes(r(u))&&z(Ee)})}var Me=P(Pe,2);{var ue=z=>{let ie=v(()=>r(u)==="EPISODE_NEXT");Lf(z,{get reversed(){return r(ie)}})};L(Me,z=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(u))&&z(ue)})}var De=P(Me,2);{var oe=z=>{pa(z,{volume:0})};L(De,z=>{r(u)==="MUTE"&&z(oe)})}var V=P(De,2);{var Qe=z=>{pa(z,{volume:1})};L(V,z=>{r(u)==="VOLUME"&&z(Qe)})}g(C);var ce=P(C,2);{var Fe=z=>{var ie=v2(),Te=h(ie,!0);g(ie),S(()=>pe(Te,r(b))),_(z,ie)};L(ce,z=>{r(b)&&z(Fe)})}_(k,T)};L(w,k=>{!r(d)&&r(u)&&k(x)})}g(p),S(k=>$=Z(p,1,"hot-key-helpers-container svelte-1ad3n06",null,$,k),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(c)})]),_(t,p),H(),o()}var b2=_e('<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 Rf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=b2();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 $2=_e('<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 Bf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=$2();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 va(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())),s=v(()=>(()=>{let b="";return r(a)&&(b+="transform: rotate(180deg);"),o()&&(b+="color: var(--btn-color, #fff);"),b.length?b:void 0})());var d=Oe(),l=se(d);{var c=b=>{let p=v(()=>r(a)?"chevron-icon--down":"chevron-icon--up");Rf(b,{get style(){return r(s)},get"data-testid"(){return r(p)}})},u=b=>{let p=v(()=>r(a)?"chevron-icon--right":"chevron-icon--left");Bf(b,{get style(){return r(s)},get"data-testid"(){return r(p)}})};L(l,b=>{r(n)?b(c):b(u,!1)})}_(t,d),H()}var y2=(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}},x2=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},w2=M('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),S2={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 nd(t,e){O(e,!0),U(t,S2);let i=m(e,"isShifted",3,!1),o=ye(),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)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),u=F("aria_label_spherical_control");var b=w2();let p;b.__keydown=[y2,n,a,s,l,d],b.__keyup=[x2,n,c],Le(b,"aria-label",u);var $=h(b),w=h($),x=h(w);x.__mousedown=a,x.__mouseup=c;var k=h(x);va(k,{direction:"up",useBtnColor:!0}),g(x);var T=P(x,2);T.__mousedown=d,T.__mouseup=c;var C=h(T);va(C,{direction:"up",useBtnColor:!0}),g(T),g(w);var R=P(w,2),A=h(R);A.__mousedown=l,A.__mouseup=c;var E=h(A);va(E,{direction:"up",useBtnColor:!0}),g(A);var B=P(A,2);B.__mousedown=s,B.__mouseup=c;var K=h(B);va(K,{direction:"up",useBtnColor:!0}),g(B),g(R),g($),g(b),S(q=>p=Z(b,1,"immersive-controls svelte-1yzc86r",null,p,q),[()=>({"m-shifted":i()})]),_t("mouseleave",x,c),_t("mouseleave",T,c),_t("mouseleave",A,c),_t("mouseleave",B,c),_(t,b),H()}it(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as Mh,Subscription as C2,filterChanged as k2,filter as T2}from"@vkontakte/videoplayer-shared";var Ah=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Oc=class{constructor(){this.flickeringTimeout=Ah(1e3);this.subscriptions=new C2;this.isAuto=!1;this.isLive=!1;this.captions$=new Mh([]);this.captionsPrepared$=new Mh([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(T2(()=>this.isEnabled()),k2()).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 I2=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),E2=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),P2=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),A2=M('<div><span class="caption svelte-c2x749"><!></span></div>'),M2=M("<div><!></div>"),L2={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 Ja(t,e){O(e,!0),U(t,L2);let[i,o]=Ve(),n=()=>y(b,"$currentSubtitle$",i),a=()=>y($,"$isLive$",i),s=()=>y(w,"$isFullscreen",i),d=()=>y(p,"$isAutoSubtitleCaptionVisible$",i),l=m(e,"isMobile",3,!1),c=ye(),u=Mt(),b=c.state.currentSubtitle$,p=c.state.isAutoSubtitleCaptionVisible$,$=c.state.isLive$,w=c.ui.isFullscreen,x=v(()=>!!n().isAuto),k=v(()=>!!a()),T=v(()=>e.playerSize.width*.02),C=v(()=>l()&&!s()||r(T)<=u.minSubtitlesFontSize?u.minSubtitlesFontSize:r(T)),R=Y(null);He(()=>{r(R)?.setIsAuto(r(x)),r(R)?.setIsLive(r(k)),r(R)?.setCaptions(e.captions)});let A=Y(le([[]]));At(()=>{N(R,le(new Oc().subscribe()));let ne=r(R).captionsPrepared$.subscribe(ve=>{N(A,le(ve))});return()=>{r(R)?.destroy(),ne.unsubscribe()}}),At(()=>{if(r(x)){let ne=window.setTimeout(()=>{p.set(!1)},u.autoSubtitlesTimeout);return()=>{window.clearTimeout(ne)}}else p.set(!1)});let E=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=M2();let K;var q=h(B);{var te=ne=>{var ve=A2();let j;var ge=h(ve),X=h(ge);{var Pe=Me=>{var ue=I2(),De=h(ue),oe=h(De,!0);g(De),g(ue),S(V=>{et(De,`font-size: ${r(C)??""}px`),pe(oe,V)},[()=>F("subtitles_auto_caption")]),_(Me,ue)},Ee=(Me,ue)=>{{var De=V=>{var Qe=Oe(),ce=se(Qe);ci(ce,17,()=>r(A),ml,(Fe,z)=>{var ie=E2(),Te=h(ie);ci(Te,21,()=>r(z),({value:J,timeAppeared:Ue})=>Ue,(J,Ue)=>{let ot=()=>r(Ue).value,de=()=>r(Ue).timeAppeared;var Ae=Oe(),qe=se(Ae);{var je=mt=>{var ft=Ir();S(()=>pe(ft,ot())),_(mt,ft)};L(qe,mt=>{(!de()||de()<=e.position)&&mt(je)})}_(J,Ae)}),g(Te),g(ie),S(()=>et(Te,`font-size: ${r(C)??""}px`)),_(Fe,ie)}),_(V,Qe)},oe=V=>{var Qe=Oe(),ce=se(Qe);ci(ce,17,()=>e.captions,({value:Fe})=>Fe,(Fe,z)=>{let ie=()=>r(z).value;var Te=P2(),J=h(Te),Ue=h(J,!0);g(J),g(Te),S(()=>{et(J,`font-size: ${r(C)??""}px`),pe(Ue,ie())}),_(Fe,Te)}),_(V,Qe)};L(Me,V=>{r(x)&&r(A)?.length?V(De):V(oe,!1)},ue)}};L(X,Me=>{r(x)&&d()?Me(Pe):Me(Ee,!1)})}g(ge),g(ve),S(Me=>{j=Z(ve,1,"subtitles-caption svelte-c2x749",null,j,Me),et(ve,`--subtitles-caption-margin: ${r(E)??""}%`)},[()=>({mobile:l()})]),_(ne,ve)};L(q,ne=>{(e.captions.length||r(A)?.length)&&ne(te)})}g(B),S(ne=>K=Z(B,1,"subtitles-container svelte-c2x749",null,K,ne),[()=>({shifted:e.shifted,auto:r(x)&&!r(k)&&!d()})]),_(t,B),H(),o()}var V2=M('<div class="text svelte-raurnb"> </div>'),R2=M('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),B2={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 rd(t,e){O(e,!0),U(t,B2);let i=Mt();var o=R2();let n;var a=P(h(o),2);{var s=d=>{var l=V2(),c=h(l);g(l),S(()=>pe(c,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${e.chromecastDeviceName??""}`)),_(d,l)};L(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),S(d=>{n=Z(o,1,"wrapper svelte-raurnb",null,n,d),et(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 N2=_e('<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 Nf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=N2();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 D2=M('<div class="container svelte-13zpvm8"><!></div>'),O2={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 ad(t){U(t,O2);var e=D2(),i=h(e);Nf(i,{}),g(e),_(t,e)}var H2=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),F2=M("<div><!></div>"),U2={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
281
  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 ts(t,e){H(e,!0),U(t,F2);let i=m(e,"iconVisible",3,!0),o=$e(),n=Vt(),a=o.ui.startedByKeyboard$,s=O("tooltip_play"),d=$=>{let w=$.code;["Enter","Space"].includes(w)&&($.stopPropagation(),$.preventDefault(),a.set(!0),e.startVideo?.())},l=$=>{$.stopPropagation(),e.startVideo?.()};var c=H2();let p;c.__click=l;var _=h(c);{var u=$=>{var w=O2();w.__keydown=d,Ne(w,"aria-label",s);var x=P(h(w),2);fr(x,{}),g(w),b($,w)};V(_,$=>{i()&&$(u)})}return g(c),S($=>{p=Y(c,1,"container svelte-1ciju45",null,p,$),it(c,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,c),F({handlePressKey:d,handleClick:l})}nt(["click","keydown"]);var U2=M("<div> </div>"),z2={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(
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 es(t,e){O(e,!0),U(t,U2);let i=m(e,"iconVisible",3,!0),o=ye(),n=Mt(),a=o.ui.startedByKeyboard$,s=F("tooltip_play"),d=$=>{let w=$.code;["Enter","Space"].includes(w)&&($.stopPropagation(),$.preventDefault(),a.set(!0),e.startVideo?.())},l=$=>{$.stopPropagation(),e.startVideo?.()};var c=F2();let u;c.__click=l;var b=h(c);{var p=$=>{var w=H2();w.__keydown=d,Le(w,"aria-label",s);var x=P(h(w),2);vr(x,{}),g(w),_($,w)};L(b,$=>{i()&&$(p)})}return g(c),S($=>{u=Z(c,1,"container svelte-1ciju45",null,u,$),et(c,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),_(t,c),H({handlePressKey:d,handleClick:l})}it(["click","keydown"]);var z2=M('<div data-testid="video_title"> </div>'),W2={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
283
  0deg,
284
284
  rgba(0, 0, 0, 0) 0%,
285
285
  rgba(0, 0, 0, 0.02) 19%,
286
286
  rgba(0, 0, 0, 0.10) 34%,
287
287
  rgba(0, 0, 0, 0.40) 60%,
288
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 Bf(t,e){U(t,z2);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1);var n=U2();let a;var s=h(n,!0);g(n),S(d=>{a=Y(n,1,"title svelte-1bcvcf2",null,a,d),fe(s,i())},[()=>({hidden:o()})]),b(t,n)}var W2=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),q2=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),K2=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),Q2=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),G2=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),j2={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 Df(t,e){H(e,!0),U(t,j2);let i=G(""),o=G(""),n=G(""),a=G(""),s,d=A=>String(A).padStart(2,"0"),l=A=>{let L=Math.floor(A/86400);L&&(A-=L*86400,B(i,ce(d(L))));let E=Math.floor(A/3600);B(o,ce(d(E)));let N=Math.floor(A/60)%60;B(n,ce(d(N)));let W=A%60;B(a,ce(d(W)))},c=()=>{let A=Math.floor(Date.now()/1e3),L=e.startTime-A;l(L),L>=1?s=requestAnimationFrame(c):e.onTimerOver()};Lt(()=>{s=requestAnimationFrame(c)}),an(()=>{cancelAnimationFrame(s)});var p=G2(),_=h(p);{var u=A=>{var L=W2(),E=le(L),N=h(E),W=h(N,!0);g(N);var K=P(N,2),Z=h(K,!0);g(K),g(E);var oe=P(E,2),ue=h(oe,!0);g(oe),S((j,_e)=>{fe(W,r(i)),fe(Z,j),fe(ue,_e)},[()=>O("waiting_live_day_value"),()=>O("waiting_live_colon")]),b(A,L)};V(_,A=>{r(i)&&A(u)})}var $=P(_,2);{var w=A=>{var L=q2(),E=le(L),N=h(E),W=h(N,!0);g(N);var K=P(N,2),Z=h(K,!0);g(K),g(E);var oe=P(E,2),ue=h(oe,!0);g(oe),S((j,_e)=>{fe(W,r(o)),fe(Z,j),fe(ue,_e)},[()=>O("waiting_live_hour_value"),()=>O("waiting_live_colon")]),b(A,L)};V($,A=>{r(o)&&A(w)})}var x=P($,2);{var C=A=>{var L=K2(),E=le(L),N=h(E),W=h(N,!0);g(N);var K=P(N,2),Z=h(K,!0);g(K),g(E);var oe=P(E,2),ue=h(oe,!0);g(oe),S((j,_e)=>{fe(W,r(n)),fe(Z,j),fe(ue,_e)},[()=>O("waiting_live_minute_value"),()=>O("waiting_live_colon")]),b(A,L)};V(x,A=>{r(n)&&A(C)})}var T=P(x,2);{var I=A=>{var L=Q2(),E=h(L),N=h(E,!0);g(E);var W=P(E,2),K=h(W,!0);g(W),g(L),S(Z=>{fe(N,r(a)),fe(K,Z)},[()=>O("waiting_live_second_value")]),b(A,L)};V(T,A=>{r(a)&&A(I)})}g(p),b(t,p),F()}var Y2=ge('<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 Of(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();let n;var a=h(o);me(a,()=>e.children??te),ve(4),g(o),S(()=>n=xe(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})),b(t,o)}var Z2=M('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),X2=M('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),J2=M('<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 sd(t,e){H(e,!0),U(t,e4);let i=G(!1);He(()=>{B(i,ce(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=J2(),n=h(o);{var a=d=>{var l=Z2(),c=h(l),p=h(c);Of(p,{}),g(c);var _=P(c,2),u=h(_,!0);g(_),g(l),S($=>fe(u,$),[()=>O("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=X2(),c=h(l),p=h(c,!0);g(c);var _=P(c,2);let u=v(()=>e.startTime||0);Df(_,{get startTime(){return r(u)},onTimerOver:()=>B(i,!0)}),g(l),S($=>fe(p,$),[()=>O("waiting_live_timer_title")]),b(d,l)};V(n,d=>{r(i)?d(a):d(s,!1)})}g(o),S(()=>it(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),b(t,o),F()}var t4=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),i4={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 is(t,e){H(e,!0),U(t,i4);let i=m(e,"thumbUrl",3,""),o={recover:O("waiting_live_recover_title"),record:O("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=t4(),s=h(a),d=h(s);Ka(d,{style:"position: static; transform: translate(0, 0)"});var l=P(d,2),c=h(l,!0);g(l),g(s),g(a),S(()=>{it(a,`background-image: url('${i()}')`),fe(c,r(n))}),b(t,a),F()}var o4=ge('<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 Hf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=o4();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i})),b(t,o)}var n4=M('<div class="select-icon svelte-124aexk"><!></div>'),r4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function ld(t){U(t,r4);var e=n4(),i=h(e);Hf(i,{}),g(e),b(t,e)}var a4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},s4=(t,e)=>{Bs(t,()=>e.item.selectItem(e.item.value))},l4=M("<p> </p>"),d4=M('<p class="sublabel svelte-1t7rx2m"> </p>'),c4=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),u4={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;
289
+ );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Df(t,e){U(t,W2);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1);var n=z2();let a;var s=h(n,!0);g(n),S(d=>{a=Z(n,1,"title svelte-1bcvcf2",null,a,d),pe(s,i())},[()=>({hidden:o()})]),_(t,n)}var q2=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),K2=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),Q2=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),G2=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),Y2=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),j2={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 Of(t,e){O(e,!0),U(t,j2);let i=Y(""),o=Y(""),n=Y(""),a=Y(""),s,d=R=>String(R).padStart(2,"0"),l=R=>{let A=Math.floor(R/86400);A&&(R-=A*86400,N(i,le(d(A))));let E=Math.floor(R/3600);N(o,le(d(E)));let B=Math.floor(R/60)%60;N(n,le(d(B)));let K=R%60;N(a,le(d(K)))},c=()=>{let R=Math.floor(Date.now()/1e3),A=e.startTime-R;l(A),A>=1?s=requestAnimationFrame(c):e.onTimerOver()};At(()=>{s=requestAnimationFrame(c)}),sn(()=>{cancelAnimationFrame(s)});var u=Y2(),b=h(u);{var p=R=>{var A=q2(),E=se(A),B=h(E),K=h(B,!0);g(B);var q=P(B,2),te=h(q,!0);g(q),g(E);var ne=P(E,2),ve=h(ne,!0);g(ne),S((j,ge)=>{pe(K,r(i)),pe(te,j),pe(ve,ge)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),_(R,A)};L(b,R=>{r(i)&&R(p)})}var $=P(b,2);{var w=R=>{var A=K2(),E=se(A),B=h(E),K=h(B,!0);g(B);var q=P(B,2),te=h(q,!0);g(q),g(E);var ne=P(E,2),ve=h(ne,!0);g(ne),S((j,ge)=>{pe(K,r(o)),pe(te,j),pe(ve,ge)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),_(R,A)};L($,R=>{r(o)&&R(w)})}var x=P($,2);{var k=R=>{var A=Q2(),E=se(A),B=h(E),K=h(B,!0);g(B);var q=P(B,2),te=h(q,!0);g(q),g(E);var ne=P(E,2),ve=h(ne,!0);g(ne),S((j,ge)=>{pe(K,r(n)),pe(te,j),pe(ve,ge)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),_(R,A)};L(x,R=>{r(n)&&R(k)})}var T=P(x,2);{var C=R=>{var A=G2(),E=h(A),B=h(E,!0);g(E);var K=P(E,2),q=h(K,!0);g(K),g(A),S(te=>{pe(B,r(a)),pe(q,te)},[()=>F("waiting_live_second_value")]),_(R,A)};L(T,R=>{r(a)&&R(C)})}g(u),_(t,u),H()}var Z2=_e('<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 Hf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();let n;var a=h(o);fe(a,()=>e.children??ee),he(4),g(o),S(()=>n=we(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 X2=M('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),J2=M('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),e4=M('<div class="waiting-container svelte-15pewff"><!></div>'),t4={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 sd(t,e){O(e,!0),U(t,t4);let i=Y(!1);He(()=>{N(i,le(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=e4(),n=h(o);{var a=d=>{var l=X2(),c=h(l),u=h(c);Hf(u,{}),g(c);var b=P(c,2),p=h(b,!0);g(b),g(l),S($=>pe(p,$),[()=>F("waiting_live_upcoming_title")]),_(d,l)},s=d=>{var l=J2(),c=h(l),u=h(c,!0);g(c);var b=P(c,2);let p=v(()=>e.startTime||0);Of(b,{get startTime(){return r(p)},onTimerOver:()=>N(i,!0)}),g(l),S($=>pe(u,$),[()=>F("waiting_live_timer_title")]),_(d,l)};L(n,d=>{r(i)?d(a):d(s,!1)})}g(o),S(()=>et(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),_(t,o),H()}var i4=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),o4={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 ts(t,e){O(e,!0),U(t,o4);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=i4(),s=h(a),d=h(s);qa(d,{style:"position: static; transform: translate(0, 0)"});var l=P(d,2),c=h(l,!0);g(l),g(s),g(a),S(()=>{et(a,`background-image: url('${i()}')`),pe(c,r(n))}),_(t,a),H()}var n4=_e('<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 Ff(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=n4();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 r4=M('<div class="select-icon svelte-124aexk"><!></div>'),a4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function ld(t){U(t,a4);var e=r4(),i=h(e);Ff(i,{}),g(e),_(t,e)}var s4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},l4=(t,e)=>{Bs(t,()=>e.item.selectItem(e.item.value))},d4=M("<p> </p>"),c4=M('<p class="sublabel svelte-1t7rx2m"> </p>'),u4=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),p4={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
290
 
291
291
  /**
292
292
  * \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
293
  * \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
294
  */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 Ff(t,e){H(e,!0),U(t,u4);let i=m(e,"isMobile",3,!1);var o=c4();let n;o.__click=[a4,e],o.__keydown=[s4,e];var a=h(o);{var s=w=>{ld(w,{})};V(a,w=>{e.item.selected&&w(s)})}var d=P(a,2);let l;var c=h(d);{var p=w=>{var x=De(),C=le(x);ui(C,()=>e.item.valueComponent,(T,I)=>{I(T,Kr(()=>e.item.valueComponentParams??{}))}),b(w,x)},_=w=>{var x=l4();let C;var T=h(x,!0);g(x),S(I=>{C=Y(x,1,"label svelte-1t7rx2m",null,C,I),fe(T,e.item.label??e.item.value)},[()=>({mobile:i()})]),b(w,x)};V(c,w=>{e.item.valueComponent?w(p):w(_,!1)})}var u=P(c,2);{var $=w=>{var x=d4(),C=h(x,!0);g(x),S(()=>fe(C,e.item.sublabel)),b(w,x)};V(u,w=>{e.item.sublabel&&w($)})}g(d),g(o),S((w,x,C)=>{n=Y(o,1,"item",null,n,w),Ne(o,"data-value",e.item.value),Ne(o,"aria-label",x),l=Y(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Ne(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>e.item.ariaLabel??e.item.label??e.item.value.toString(),()=>({"submenu-value-mobile":i()})]),b(t,o),F()}nt(["click","keydown"]);var p4=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Uf(t,e){H(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>x=>_c(x,r(n)));var s=p4();let d;s.__click=function(...x){r(n)?.apply(this,x)},s.__keydown=function(...x){r(a)?.apply(this,x)};var l=h(s);{var c=x=>{ld(x,{})};V(l,x=>{e.item.selected&&x(c)})}var p=P(l,2);let _;var u=h(p);{var $=x=>{var C=De();let T=v(()=>e.item.valueComponent);var I=le(C);ui(I,()=>r(T),(A,L)=>{L(A,Kr(()=>e.item.valueComponentParams??{}))}),b(x,C)},w=x=>{var C=Ir();S(()=>fe(C,e.item.label)),b(x,C)};V(u,x=>{e.item.valueComponent?x($):x(w,!1)})}g(p),g(s),lt(s,x=>o(o()[e.item.id]=x,!0),()=>o()?.[e.item.id]),S((x,C)=>{d=Y(s,1,"item",null,d,x),Ne(s,"aria-label",e.item.ariaLabel??e.item.label),Ne(s,"data-testid",e.item.id),_=Y(p,1,"menu-item-value",null,_,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,s),F()}nt(["click","keydown"]);var mr={"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 m4=(t,e)=>{eh(t,e.returnFromSubMenu,e.closeSettingsMenu)},v4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},g4=(t,e)=>{El(t)&&(qn(t),e.returnFromSubMenu())},h4=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),_4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
295
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Uf(t,e){O(e,!0),U(t,p4);let i=m(e,"isMobile",3,!1);var o=u4();let n;o.__click=[s4,e],o.__keydown=[l4,e];var a=h(o);{var s=w=>{ld(w,{})};L(a,w=>{e.item.selected&&w(s)})}var d=P(a,2);let l;var c=h(d);{var u=w=>{var x=Oe(),k=se(x);ui(k,()=>e.item.valueComponent,(T,C)=>{C(T,Kr(()=>e.item.valueComponentParams??{}))}),_(w,x)},b=w=>{var x=d4();let k;var T=h(x,!0);g(x),S(C=>{k=Z(x,1,"label svelte-1t7rx2m",null,k,C),pe(T,e.item.label??e.item.value)},[()=>({mobile:i()})]),_(w,x)};L(c,w=>{e.item.valueComponent?w(u):w(b,!1)})}var p=P(c,2);{var $=w=>{var x=c4(),k=h(x,!0);g(x),S(()=>pe(k,e.item.sublabel)),_(w,x)};L(p,w=>{e.item.sublabel&&w($)})}g(d),g(o),S((w,x,k)=>{n=Z(o,1,"item",null,n,w),Le(o,"data-value",e.item.value),Le(o,"aria-label",x),Le(o,"data-testid",e.item.dataTestid),l=Z(d,1,"menu-item-value svelte-1t7rx2m",null,l,k),Le(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>e.item.ariaLabel??e.item.label??e.item.value.toString(),()=>({"submenu-value-mobile":i()})]),_(t,o),H()}it(["click","keydown"]);var f4=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function zf(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(()=>x=>_c(x,r(n)));var s=f4();let d;s.__click=function(...x){r(n)?.apply(this,x)},s.__keydown=function(...x){r(a)?.apply(this,x)};var l=h(s);{var c=x=>{ld(x,{})};L(l,x=>{e.item.selected&&x(c)})}var u=P(l,2);let b;var p=h(u);{var $=x=>{var k=Oe();let T=v(()=>e.item.valueComponent);var C=se(k);ui(C,()=>r(T),(R,A)=>{A(R,Kr(()=>e.item.valueComponentParams??{}))}),_(x,k)},w=x=>{var k=Ir();S(()=>pe(k,e.item.label)),_(x,k)};L(p,x=>{e.item.valueComponent?x($):x(w,!1)})}g(u),g(s),dt(s,x=>o(o()[e.item.id]=x,!0),()=>o()?.[e.item.id]),S((x,k)=>{d=Z(s,1,"item",null,d,x),Le(s,"aria-label",e.item.ariaLabel??e.item.label),Le(s,"data-testid",e.item.id),b=Z(u,1,"menu-item-value",null,b,k)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),_(t,s),H()}it(["click","keydown"]);var gr={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var v4=(t,e)=>{th(t,e.returnFromSubMenu,e.closeSettingsMenu)},g4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},h4=(t,e)=>{El(t)&&(Gn(t),e.returnFromSubMenu())},_4=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),b4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
296
296
  /*\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
297
  /**
298
298
  * \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 +302,14 @@ Try switching the\xA0quality to\xA0Auto.`},Bg=T0;var Qr=new Map;Qr.set(Og.EN,Bg)
302
302
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
303
303
  1px
304
304
  );}.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 Wf(t,e){H(e,!0),U(t,_4);let[i,o]=Le(),n=()=>y(_,"$isFullscreen",i),a=()=>y(u,"$playerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),l=m(e,"ariaLabelReturnFromSubMenu",19,()=>O("aria_label_submenu_back")),c=m(e,"listRef",15);Lt(()=>{let j=e.items.findIndex(_e=>_e.selected);c().children[j+1].focus()});let p=$e(),_=p.ui.isFullscreen,u=p.ui.playerSize,$=G(void 0),w=G(0),x=G(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(x)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(w)));var I=h4();let A;var L=h(I);let E;L.__keydown=[m4,e];var N=h(L);let W;N.__click=[v4,e],N.__keydown=[g4,e];var K=h(N);ga(K,{direction:"left"});var Z=P(K,2),oe=h(Z,!0);g(Z),g(N),lt(N,j=>B($,j),()=>r($));var ue=P(N,2);ci(ue,17,()=>e.items,ml,(j,_e)=>{var ee=De(),Ae=le(ee);{var Ee=pe=>{Ff(pe,{get item(){return r(_e)},get isMobile(){return s()}})},Ve=(pe,Oe)=>{{var ie=R=>{Uf(R,{get isMobile(){return s()},get item(){return r(_e)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(pe,R=>{r(_e).type==="OPEN_SUB_MENU"&&R(ie)},Oe)}};V(Ae,pe=>{r(_e).type==="SELECT_VALUE"?pe(Ee):pe(Ve,!1)})}b(j,ee)}),g(L),lt(L,j=>c(j),()=>c()),g(I),S((j,_e,ee)=>{A=Y(I,1,"sub-menu menu svelte-7dfsuh",null,A,j),Ne(I,"data-testid",`sub-menu-${e.id}`),it(I,`min-width: ${r(T)}px`),E=Y(L,1,"items svelte-7dfsuh",null,E,_e),it(L,r(C)),W=Y(N,1,"item header back svelte-7dfsuh",null,W,ee),Ne(N,"aria-label",l()),fe(oe,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Er(N,"clientWidth",j=>B(w,j)),Er(N,"clientHeight",j=>B(x,j)),b(t,I),F(),o()}nt(["keydown","click"]);import{noop as b4}from"@vkontakte/videoplayer-shared";var $4=(t,e)=>_c(t,e()),y4=(t,e)=>{t.stopPropagation(),e()()},x4=M('<div class="value svelte-1ikfjte"> </div>'),w4=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),S4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function qf(t,e){H(e,!0),U(t,S4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,b4),n=m(e,"valueComponent",3,void 0),a=m(e,"ref",15);var s=w4();let d;s.__click=[y4,o],s.__keydown=[$4,o];var l=h(s),c=h(l);{var p=T=>{Ja(T,{get icon(){return e.icon}})},_=T=>{var I=De();let A=v(()=>e.icon);var L=le(I);ui(L,()=>r(A),(E,N)=>{N(E,{})}),b(T,I)};V(c,T=>{typeof e.icon=="string"?T(p):T(_,!1)})}g(l);var u=P(l,2),$=h(u,!0);g(u);var w=P(u,2);{var x=T=>{var I=De();let A=v(n);var L=le(I);ui(L,()=>r(A),(E,N)=>{N(E,{})}),b(T,I)},C=T=>{var I=x4(),A=h(I,!0);g(I),S(()=>fe(A,e.value)),b(T,I)};V(w,T=>{n()?T(x):T(C,!1)})}g(s),lt(s,T=>a(T),()=>a()),S(T=>{d=Y(s,1,"item",null,d,T),Ne(s,"aria-label",e.ariaLabel),Ne(s,"data-testid",e.id),fe($,e.label)},[()=>({mobile:i()})]),b(t,s),F()}nt(["click","keydown"]);import{noop as Lh}from"@vkontakte/videoplayer-shared";var C4=(t,e)=>{Bs(t,()=>e())},k4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),T4=M('<img class="icon" aria-hidden="true">'),I4=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),E4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Kf(t,e){H(e,!0),U(t,E4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,Lh),n=m(e,"closeSettings",3,Lh),a=G(!1),s=()=>{B(a,!0)},d=C=>{C?.stopPropagation(),o()(),n()()};var l=I4();let c;l.__click=d,l.__keydown=[C4,d];var p=h(l),_=h(p);{var u=C=>{var T=De(),I=le(T);{var A=E=>{var N=k4();b(E,N)},L=E=>{var N=T4();S(()=>Ne(N,"src",e.icon)),ht("error",N,s),Ma(N),b(E,N)};V(I,E=>{r(a)?E(A):E(L,!1)})}b(C,T)},$=C=>{var T=De();let I=v(()=>e.icon);var A=le(T);ui(A,()=>r(I),(L,E)=>{E(L,{})}),b(C,T)};V(_,C=>{typeof e.icon=="string"?C(u):C($,!1)})}g(p);var w=P(p,2),x=h(w,!0);g(w),g(l),S(C=>{c=Y(l,1,"item",null,c,C),Ne(l,"aria-label",e.ariaLabel??e.label),Ne(l,"data-testid",e.id),fe(x,e.label)},[()=>({mobile:i()})]),b(t,l),F()}nt(["click","keydown"]);import{noop as M4}from"@vkontakte/videoplayer-shared";var P4=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),A4={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 Qf(t,e){U(t,A4);let i=m(e,"enabled",3,!1);var o=P4(),n=h(o);let a;ve(2),g(o),S(s=>a=Y(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var L4=(t,e,i)=>{th(t,e(),o=>i()(o))},V4=(t,e,i)=>{t.stopPropagation(),e()(!i())},R4=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),N4=M('<li role="menuitem" tabindex="0"><!></li>');function Gf(t,e){H(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,M4),n=m(e,"enabled",3,!1),a=m(e,"tooltipText",3,void 0),s=m(e,"maxTooltipWidth",3,void 0);var d=N4();let l;d.__click=[V4,o,n],d.__keydown=[L4,n,o];var c=h(d);Qa(c,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(p,_)=>{var u=R4();let $;var w=h(u),x=h(w);{var C=E=>{Ja(E,{get icon(){return e.icon}})},T=E=>{var N=De();let W=v(()=>e.icon);var K=le(N);ui(K,()=>r(W),(Z,oe)=>{oe(Z,{})}),b(E,N)};V(x,E=>{typeof e.icon=="string"?E(C):E(T,!1)})}g(w);var I=P(w,2),A=h(I,!0);g(I);var L=P(I,2);Qf(L,{get enabled(){return n()}}),g(u),S(E=>{$=Y(u,1,"switch-wrapper",null,$,E),fe(A,e.label)},[()=>({mobile:i()})]),b(p,u)},$$slots:{default:!0}}),g(d),S(p=>{l=Y(d,1,"item switch-item",null,l,p),Ne(d,"aria-label",e.ariaLabel??e.label),Ne(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),F()}nt(["click","keydown"]);import{isValidURL as a3,VideoQuality as Wh}from"@vkontakte/videoplayer-shared";var Vh=()=>{let t=G(ce([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{B(t,ce(r(t).slice(0,-1)))},popAllSubMenus:()=>{B(t,ce([]))}}};var B4=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),D4=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),O4={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 os(t,e){H(e,!0),U(t,O4);let i=m(e,"isSubCase",3,!1),o=v(()=>wc(e.quality));var n=D4(),a=h(n);let s;var d=h(a,!0);g(a);var l=P(a,2);{var c=p=>{var _=B4();let u=v(()=>r(o));var $=h(_);ui($,()=>r(u),(w,x)=>{x(w,{})}),g(_),b(p,_)};V(l,p=>{r(o)&&!e.isMobile&&p(c)})}g(n),S(p=>{s=Y(a,1,"svelte-t2qk8t",null,s,p),fe(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),F()}import{VideoQuality as H4}from"@vkontakte/videoplayer-shared";import{VideoQuality as Rh}from"@vkontakte/videoplayer-core";var Nh=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Bh=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Nh({quality:t,availableQualities:e});return i?t===Rh.INVARIANT?O("auto_quality_invariant"):O("auto_quality",{actual:o}):o},Dh=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Rh.INVARIANT?i:`${i}${Nh({quality:t,availableQualities:e})}`:"...";var F4=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),U4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function qs(t,e){H(e,!0),U(t,U4);let[i,o]=Le(),n=()=>y(l,"$currentQuality$",i),a=()=>y(c,"$availableQualities$",i),s=()=>y(p,"$isMobile$",i),d=$e(),l=d.state.currentQuality$,c=d.state.availableQualities$,p=d.ui.isMobile,_=" \xB7 ",u=v(()=>e.prefix+(e.selected&&n()!==H4.INVARIANT?_:"")),$=v(()=>Dh({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=F4(),x=h(w);let C=v(()=>e.selected?n():void 0);os(x,{get quality(){return r(C)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),F(),o()}var z4=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")},W4={br:!0,span:!0},jf=(t,e={})=>{if(!t)return t;let i={...W4,...e},o=Object.keys(i);if(!o.length)return t;let n=z4(o),a=[],s=0;for(let d of t.matchAll(n)){let l=d[0],c=d.groups?.keyhtml||d.groups?.keyi18n||d.groups?.keyhtmlself||d.groups?.keyi18nself||"",{index:p}=d;if(!i[c]){a.push(t.slice(s,p)),s=p+l.length;continue}let _=d.groups?.childrenhtml?jf(d.groups.childrenhtml,i):"",u=d.groups?.childrenhtml?l.replace(new RegExp(d.groups?.childrenhtml),()=>_||""):l;a.push(t.slice(s,p),u),s=p+l.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function dd(t,e){H(e,!1);let i=m(e,"message",8),o=jf(i());ur();var n=De(),a=le(n);{var s=d=>{var l=De(),c=le(l);vl(c,()=>o,!1,!1),b(d,l)};V(a,d=>{o&&d(s)})}b(t,n),F()}var q4=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),K4={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 Yf(t,e){H(e,!1),U(t,K4),ur();var i=q4(),o=h(i);let n=lr(()=>O("quality_applience",{action:`<span>${O("quality_applience_action")}</span>`}));dd(o,{get message(){return r(n)}}),g(i),b(t,i),F()}var Hh=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:qs,valueComponentParams:{prefix:O("other_quality"),selected:o},children:"QUALITY"}},Zf=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:O("auto_quality_limit"),valueComponent:e?qs:void 0,valueComponentParams:{prefix:O("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),Fh=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Yf,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Xf=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:O("high_quality"),valueComponent:t?qs:void 0,valueComponentParams:{prefix:O("high_quality"),selected:i},sublabel:O("high_quality_description")}),Jf=({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:O("traffic_saving_quality"),valueComponent:t?qs:void 0,valueComponentParams:{prefix:O("traffic_saving_quality"),selected:i},sublabel:O("traffic_saving_quality_description")});var Oc=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Hc=(t,e)=>{if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=Pc(i)??i),o&&i&&n){let s=e.filter(d=>d.label===o&&d.language===i);if(s.length===1)return O("audio_stream_display_language_label",{language:n,label:o});{let d=Oc(t,s);return O("audio_stream_display_language_label_index",{language:n,label:o,index:d})}}if(o){let s=e.filter(d=>d.label===o);if(s.length===1)return o;{let d=Oc(t,s);return O("audio_stream_display_label_index",{label:o,index:d})}}if(i&&n){let s=e.filter(d=>d.language===i);if(s.length===1)return n;{let d=Oc(t,s);return O("audio_stream_display_language_index",{language:n,index:d})}}let a=Oc(t,e);return O("audio_stream_display_unknown",{index:a})};var Q4={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Zf,selected:e&&!o&&!n||!1}),a.push({handler:Jf,selected:o},{handler:Xf,selected:n}),{title:O("submenu_quality"),id:"QUALITY_DETAILS",items:[Fh(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),Hh(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:O("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:os,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=>{let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:O("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Zf,selected:sc()?.type==="auto_quality"},{handler:Jf,selected:sc()?.type==="traffic_saving"},{handler:Xf,selected:sc()?.type==="high_quality"}].map(({handler:i,selected:o})=>i({labelWithQuality:!1,appliesTo:"as-default",selected:o},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:O("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===i?.id,label:Hc(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:O("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:O("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},Uh=({subMenuId:t,context:e})=>t?[Q4[t](e)]:[];var G4=ge('<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 em(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=G4();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}var j4=ge('<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 tm(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=j4();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}var Y4=ge('<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 im(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Y4();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),b(t,o)}var Z4=ge('<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 om(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Z4();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}var X4=ge('<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 nm(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=X4();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}var J4=ge('<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 Fc(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=J4();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}var e3=ge('<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 rm(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=e3();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}var t3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),i3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function am(t,e){H(e,!0),U(t,i3);let[i,o]=Le(),n=()=>y(c,"$currentQuality$",i),a=()=>y(p,"$availableQualities$",i),s=()=>y(_,"$isAutoQualityEnabled$",i),d=()=>y(u,"$isMobile$",i),l=$e(),c=l.state.currentQuality$,p=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,$=v(()=>Bh({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=t3(),x=h(w);os(x,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),b(t,w),F(),o()}var n3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?O("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:O("aria_label_menu_quality",{actual:o}),icon:Bl,label:O("menu_quality"),value:e,valueComponent:am,weight:mr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:mr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?O("aria_label_submenu_traffic_saving_off"):`${O("aria_label_submenu_traffic_saving_on")}. ${O("traffic_saving_helper_text")}`,icon:em,label:O("menu_traffic_saving"),enabled:t,tooltipText:O("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Hc(t,e);return{id:"AUDIO_LANGUAGES",weight:mr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:O("aria_label_menu_audio_languages",{actual:i}),icon:tm,label:O("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{let i=t.find(o=>o.value===e)?.displayValue||"";return{id:"PLAYBACK_RATE",weight:mr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:O("aria_label_menu_rate",{actual:i}),icon:im,label:O("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:mr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:O("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Dl,label:O("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:mr.download,type:"CLICK",onClick:t,label:O("download_video_caption"),ariaLabel:O("aria_label_menu_download"),icon:om}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:mr.report,type:"CLICK",onClick:t,label:O("menu_report"),ariaLabel:`${O("menu_report")}. ${O("aria_label_new_tab_alert")}`,icon:nm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:mr["copy-data"],type:"CLICK",onClick:t,label:O("menu_copy_debug"),ariaLabel:O("menu_copy_debug"),icon:Fc,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:mr["save-trace-info"],type:"CLICK",onClick:t,label:O("menu_save_debug"),ariaLabel:O("menu_save_debug"),icon:Fc,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:mr["debug-info"],type:"CLICK",onClick:t,label:e?O("aria_label_menu_debug_overlay_disable"):O("aria_label_menu_debug_overlay_enable"),ariaLabel:O("menu_debug_overlay"),icon:rm,isHiddenFor:["desktop"]})},zh=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>n3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>!n?.isHiddenFor?.length||!n?.isHiddenFor?.includes("desktop")&&!o||!n?.isHiddenFor?.includes("mobile")&&o).sort(za)};var s3=(t,e)=>{hc(t,e)},l3=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),d3=M('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),c3=M("<div><!> <!></div>"),u3={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 {
305
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function qf(t,e){O(e,!0),U(t,b4);let[i,o]=Ve(),n=()=>y(b,"$isFullscreen",i),a=()=>y(p,"$playerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),l=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),c=m(e,"listRef",15);At(()=>{let j=e.items.findIndex(ge=>ge.selected);c().children[j+1].focus()});let u=ye(),b=u.ui.isFullscreen,p=u.ui.playerSize,$=Y(void 0),w=Y(0),x=Y(0),k=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(x)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(w)));var C=_4();let R;var A=h(C);let E;A.__keydown=[v4,e];var B=h(A);let K;B.__click=[g4,e],B.__keydown=[h4,e];var q=h(B);va(q,{direction:"left"});var te=P(q,2),ne=h(te,!0);g(te),g(B),dt(B,j=>N($,j),()=>r($));var ve=P(B,2);ci(ve,17,()=>e.items,ml,(j,ge)=>{var X=Oe(),Pe=se(X);{var Ee=ue=>{Uf(ue,{get item(){return r(ge)},get isMobile(){return s()}})},Me=(ue,De)=>{{var oe=V=>{zf(V,{get isMobile(){return s()},get item(){return r(ge)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(ue,V=>{r(ge).type==="OPEN_SUB_MENU"&&V(oe)},De)}};L(Pe,ue=>{r(ge).type==="SELECT_VALUE"?ue(Ee):ue(Me,!1)})}_(j,X)}),g(A),dt(A,j=>c(j),()=>c()),g(C),S((j,ge,X)=>{R=Z(C,1,"sub-menu menu svelte-7dfsuh",null,R,j),Le(C,"data-testid",`sub-menu-${e.id}`),et(C,`min-width: ${r(T)}px`),E=Z(A,1,"items svelte-7dfsuh",null,E,ge),et(A,r(k)),K=Z(B,1,"item header back svelte-7dfsuh",null,K,X),Le(B,"aria-label",l()),pe(ne,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Er(B,"clientWidth",j=>N(w,j)),Er(B,"clientHeight",j=>N(x,j)),_(t,C),H(),o()}it(["keydown","click"]);import{noop as $4}from"@vkontakte/videoplayer-shared";var y4=(t,e)=>_c(t,e()),x4=(t,e)=>{t.stopPropagation(),e()()},w4=M('<div class="value svelte-1ikfjte"> </div>'),S4=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),C4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Kf(t,e){O(e,!0),U(t,C4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,$4),n=m(e,"valueComponent",3,void 0),a=m(e,"ref",15);var s=S4();let d;s.__click=[x4,o],s.__keydown=[y4,o];var l=h(s),c=h(l);{var u=T=>{Xa(T,{get icon(){return e.icon}})},b=T=>{var C=Oe();let R=v(()=>e.icon);var A=se(C);ui(A,()=>r(R),(E,B)=>{B(E,{})}),_(T,C)};L(c,T=>{typeof e.icon=="string"?T(u):T(b,!1)})}g(l);var p=P(l,2),$=h(p,!0);g(p);var w=P(p,2);{var x=T=>{var C=Oe();let R=v(n);var A=se(C);ui(A,()=>r(R),(E,B)=>{B(E,{})}),_(T,C)},k=T=>{var C=w4(),R=h(C,!0);g(C),S(()=>pe(R,e.value)),_(T,C)};L(w,T=>{n()?T(x):T(k,!1)})}g(s),dt(s,T=>a(T),()=>a()),S(T=>{d=Z(s,1,"item",null,d,T),Le(s,"aria-label",e.ariaLabel),Le(s,"data-testid",e.id),pe($,e.label)},[()=>({mobile:i()})]),_(t,s),H()}it(["click","keydown"]);import{noop as Vh}from"@vkontakte/videoplayer-shared";var k4=(t,e)=>{Bs(t,()=>e())},T4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),I4=M('<img class="icon" aria-hidden="true">'),E4=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),P4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Qf(t,e){O(e,!0),U(t,P4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,Vh),n=m(e,"closeSettings",3,Vh),a=Y(!1),s=()=>{N(a,!0)},d=k=>{k?.stopPropagation(),o()(),n()()};var l=E4();let c;l.__click=d,l.__keydown=[k4,d];var u=h(l),b=h(u);{var p=k=>{var T=Oe(),C=se(T);{var R=E=>{var B=T4();_(E,B)},A=E=>{var B=I4();S(()=>Le(B,"src",e.icon)),_t("error",B,s),Aa(B),_(E,B)};L(C,E=>{r(a)?E(R):E(A,!1)})}_(k,T)},$=k=>{var T=Oe();let C=v(()=>e.icon);var R=se(T);ui(R,()=>r(C),(A,E)=>{E(A,{})}),_(k,T)};L(b,k=>{typeof e.icon=="string"?k(p):k($,!1)})}g(u);var w=P(u,2),x=h(w,!0);g(w),g(l),S(k=>{c=Z(l,1,"item",null,c,k),Le(l,"aria-label",e.ariaLabel??e.label),Le(l,"data-testid",e.id),pe(x,e.label)},[()=>({mobile:i()})]),_(t,l),H()}it(["click","keydown"]);import{noop as L4}from"@vkontakte/videoplayer-shared";var A4=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),M4={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 Gf(t,e){U(t,M4);let i=m(e,"enabled",3,!1);var o=A4(),n=h(o);let a;he(2),g(o),S(s=>a=Z(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),_(t,o)}var V4=(t,e,i)=>{ih(t,e(),o=>i()(o))},R4=(t,e,i)=>{t.stopPropagation(),e()(!i())},B4=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),N4=M('<li role="menuitem" tabindex="0"><!></li>');function Yf(t,e){O(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,L4),n=m(e,"enabled",3,!1),a=m(e,"tooltipText",3,void 0),s=m(e,"maxTooltipWidth",3,void 0);var d=N4();let l;d.__click=[R4,o,n],d.__keydown=[V4,n,o];var c=h(d);Ka(c,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(u,b)=>{var p=B4();let $;var w=h(p),x=h(w);{var k=E=>{Xa(E,{get icon(){return e.icon}})},T=E=>{var B=Oe();let K=v(()=>e.icon);var q=se(B);ui(q,()=>r(K),(te,ne)=>{ne(te,{})}),_(E,B)};L(x,E=>{typeof e.icon=="string"?E(k):E(T,!1)})}g(w);var C=P(w,2),R=h(C,!0);g(C);var A=P(C,2);Gf(A,{get enabled(){return n()}}),g(p),S(E=>{$=Z(p,1,"switch-wrapper",null,$,E),pe(R,e.label)},[()=>({mobile:i()})]),_(u,p)},$$slots:{default:!0}}),g(d),S(u=>{l=Z(d,1,"item switch-item",null,l,u),Le(d,"aria-label",e.ariaLabel??e.label),Le(d,"data-testid",e.id)},[()=>({mobile:i()})]),_(t,d),H()}it(["click","keydown"]);import{isValidURL as s3,VideoQuality as qh}from"@vkontakte/videoplayer-shared";var Rh=()=>{let t=Y(le([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{N(t,le(r(t).slice(0,-1)))},popAllSubMenus:()=>{N(t,le([]))}}};var D4=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),O4=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),H4={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 is(t,e){O(e,!0),U(t,H4);let i=m(e,"isSubCase",3,!1),o=v(()=>wc(e.quality));var n=O4(),a=h(n);let s;var d=h(a,!0);g(a);var l=P(a,2);{var c=u=>{var b=D4();let p=v(()=>r(o));var $=h(b);ui($,()=>r(p),(w,x)=>{x(w,{})}),g(b),_(u,b)};L(l,u=>{r(o)&&!e.isMobile&&u(c)})}g(n),S(u=>{s=Z(a,1,"svelte-t2qk8t",null,s,u),pe(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),_(t,n),H()}import{VideoQuality as F4}from"@vkontakte/videoplayer-shared";import{VideoQuality as Bh}from"@vkontakte/videoplayer-core";var Nh=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Dh=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Nh({quality:t,availableQualities:e});return i?t===Bh.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},Oh=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Bh.INVARIANT?i:`${i}${Nh({quality:t,availableQualities:e})}`:"...";var U4=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),z4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function qs(t,e){O(e,!0),U(t,z4);let[i,o]=Ve(),n=()=>y(l,"$currentQuality$",i),a=()=>y(c,"$availableQualities$",i),s=()=>y(u,"$isMobile$",i),d=ye(),l=d.state.currentQuality$,c=d.state.availableQualities$,u=d.ui.isMobile,b=" \xB7 ",p=v(()=>e.prefix+(e.selected&&n()!==F4.INVARIANT?b:"")),$=v(()=>Oh({prefix:r(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=U4(),x=h(w);let k=v(()=>e.selected?n():void 0);is(x,{get quality(){return r(k)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),_(t,w),H(),o()}var W4=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")},q4={br:!0,span:!0},jf=(t,e={})=>{if(!t)return t;let i={...q4,...e},o=Object.keys(i);if(!o.length)return t;let n=W4(o),a=[],s=0;for(let d of t.matchAll(n)){let l=d[0],c=d.groups?.keyhtml||d.groups?.keyi18n||d.groups?.keyhtmlself||d.groups?.keyi18nself||"",{index:u}=d;if(!i[c]){a.push(t.slice(s,u)),s=u+l.length;continue}let b=d.groups?.childrenhtml?jf(d.groups.childrenhtml,i):"",p=d.groups?.childrenhtml?l.replace(new RegExp(d.groups?.childrenhtml),()=>b||""):l;a.push(t.slice(s,u),p),s=u+l.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function dd(t,e){O(e,!1);let i=m(e,"message",8),o=jf(i());fr();var n=Oe(),a=se(n);{var s=d=>{var l=Oe(),c=se(l);vl(c,()=>o,!1,!1),_(d,l)};L(a,d=>{o&&d(s)})}_(t,n),H()}var K4=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),Q4={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 Zf(t,e){O(e,!1),U(t,Q4),fr();var i=K4(),o=h(i);let n=cr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));dd(o,{get message(){return r(n)}}),g(i),_(t,i),H()}var Fh=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:qs,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},Xf=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?qs:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),Uh=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Zf,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Jf=({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?qs:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),em=({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?qs:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var Hc=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Fc=(t,e)=>{if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=Pc(i)??i),o&&i&&n){let s=e.filter(d=>d.label===o&&d.language===i);if(s.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let d=Hc(t,s);return F("audio_stream_display_language_label_index",{language:n,label:o,index:d})}}if(o){let s=e.filter(d=>d.label===o);if(s.length===1)return o;{let d=Hc(t,s);return F("audio_stream_display_label_index",{label:o,index:d})}}if(i&&n){let s=e.filter(d=>d.language===i);if(s.length===1)return n;{let d=Hc(t,s);return F("audio_stream_display_language_index",{language:n,index:d})}}let a=Hc(t,e);return F("audio_stream_display_unknown",{index:a})};var G4={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Xf,selected:e&&!o&&!n||!1}),a.push({handler:em,selected:o},{handler:Jf,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[Uh(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),Fh(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:is,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=>{let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Xf,selected:sc()?.type==="auto_quality"},{handler:em,selected:sc()?.type==="traffic_saving"},{handler:Jf,selected:sc()?.type==="high_quality"}].map(({handler:i,selected:o})=>i({labelWithQuality:!1,appliesTo:"as-default",selected:o},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?.id,label:Fc(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===Lc?"sub_off":void 0}))})},zh=({subMenuId:t,context:e})=>t?[G4[t](e)]:[];var Y4=_e('<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 tm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Y4();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 j4=_e('<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 im(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=j4();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 Z4=_e('<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 om(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Z4();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 X4=_e('<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 nm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=X4();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 J4=_e('<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 rm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=J4();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 e3=_e('<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 Uc(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=e3();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 t3=_e('<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 am(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=t3();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 i3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),o3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function sm(t,e){O(e,!0),U(t,o3);let[i,o]=Ve(),n=()=>y(c,"$currentQuality$",i),a=()=>y(u,"$availableQualities$",i),s=()=>y(b,"$isAutoQualityEnabled$",i),d=()=>y(p,"$isMobile$",i),l=ye(),c=l.state.currentQuality$,u=l.state.availableQualities$,b=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,$=v(()=>Dh({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=i3(),x=h(w);is(x,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),_(t,w),H(),o()}var r3={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:Nl,label:F("menu_quality"),value:e,valueComponent:sm,weight:gr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:gr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:tm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Fc(t,e);return{id:"AUDIO_LANGUAGES",weight:gr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:im,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{let i=t.find(o=>o.value===e)?.displayValue||"";return{id:"PLAYBACK_RATE",weight:gr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:om,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:gr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Dl,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:gr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:nm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:gr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:rm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:gr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:Uc,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:gr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:Uc,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:gr["debug-info"],type:"CLICK",onClick:t,label:F("aria_label_menu_debug_overlay"),ariaLabel:F("menu_debug_overlay"),icon:am,isHiddenFor:["desktop"]})},Wh=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>r3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>!n?.isHiddenFor?.length||!n?.isHiddenFor?.includes("desktop")&&!o||!n?.isHiddenFor?.includes("mobile")&&o).sort(Ua)};var l3=(t,e)=>{hc(t,e)},d3=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),c3=M('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),u3=M("<div><!> <!></div>"),p3={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
306
  /* \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
307
  .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
308
  .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 cd(t,e){H(e,!0),U(t,u3);let[i,o]=Le(),n=()=>y(ze,"$settingsMenuVisible",i),a=()=>y(Be,"$settingsMenuOpenedByKeyboard",i),s=()=>y(bt,"$debugPanelVisible",i),d=()=>y(Me,"$isMobile",i),l=()=>y(et,"$playerSize",i),c=()=>y(J,"$hasMpegSources$",i),p=()=>y(Ge,"$mobileNotReportControlHidden$",i),_=()=>y(ie,"$autoQualityLimitingAvailable$",i),u=()=>y(ae,"$availableSubtitlesList$",i),$=()=>y(Xe,"$isLiveWithPlaybackSpeed",i),w=()=>y(Ve,"$availableAudioStreams$",i),x=()=>y(We,"$availablePlaybackRates$",i),C=()=>y(Ee,"$currentAudioStream$",i),T=()=>y(ne,"$currentPlaybackRate$",i),I=()=>y(ft,"$trafficSavingEnabled",i),A=()=>y(pe,"$currentQuality$",i),L=()=>y(R,"$isAutoQualityEnabled$",i),E=()=>y(re,"$currentSubtitle$",i),N=()=>y(Nt,"$additionalSettingsMenuItems$",i),W=()=>y(Qe,"$isAutoQualityAvailable$",i),K=()=>y(Oe,"$availableQualities$",i),Z=()=>y(ut,"$highQualityEnabled",i),oe=m(e,"ref",15,void 0),ue=m(e,"playerControlsHeight",3,0),j=ce({}),_e=ce({}),ee=$e(),Ae=Vt(),Ee=ee.state.audioStream$,Ve=ee.state.availableAudioStreams$,pe=ee.state.currentQuality$,Oe=ee.state.availableQualities$,ie=ee.state.autoQualityLimitingAvailable$,R=ee.state.isAutoQualityEnabled$,Qe=ee.state.isAutoQualityAvailable$,ne=ee.state.currentPlaybackRate$,We=ee.state.availablePlaybackRates$,re=ee.state.currentSubtitle$,ae=ee.state.availableSubtitlesList$,X=ee.state.canDownload,J=ee.state.hasMpegSources$,ze=ee.ui.settingsMenu.visible$,Be=ee.ui.settingsMenu.openedByBtnKeyboard$,ye=ee.ui.settingsMenu.ref$,Me=ee.ui.isMobile,Ge=ee.ui.mobileNotReportControlHidden$,Xe=ee.state.canChangePlaybackSpeed$,ft=ee.state.trafficSavingEnabled$,ut=ee.state.highQualityEnabled$,et=ee.ui.playerSize,bt=ee.ui.debugPanelVisible,pt=ee.state.isInteractiveTime$,Nt=ee.ui.additionalSettingsMenuItems$,Kt=ee.ui.t,Ue=ee.actions.internal.downloadVideo,Et=ee.actions.internal.closeSettingsMenu,q=ee.actions.internal.openSettingsSubMenu,he=ee.actions.internal.closeSettingsSubMenu,de=G(!1),Pe=G(void 0),ot=Vh();He(()=>{!n()&&ot.current&&(he(_e[ot.current]),ot.popAllSubMenus())}),He(()=>{n()||B(Pe,void 0)}),He(()=>{!ot.current&&r(Pe)&&Jg(j,r(Pe))}),He(()=>{oe()&&ye.set(oe())});async function Re(mt){ot.pushSubMenu(mt),await Yi(),q(mt,_e[mt])}function Ie(mt){mt?.stopPropagation(),a()||e.returnFocus?.(),Et(),B(de,!1)}function Ye(mt,zt){ee.actions.internal.setQuality(mt,{appliesTo:zt}),Ie()}function st(mt){ee.actions.internal.setAudioStream(mt),Ie()}function $t(mt,zt){ee.actions.internal.setTrafficSavingEnabled(mt,zt),Ae.features.qualityDetailsSubMenuEnabled&&Ie()}function Pt(mt,zt){ee.actions.internal.setHighQualityEnabled(mt,zt),Ie()}function Fe(mt){ee.actions.internal.setPlaybackRate(mt),Ie()}function Ze(mt){ee.actions.internal.setSubtitle(mt),Ie()}function Dt(){Ue()}function li(){a3(e.supportLink)&&window.open(e.supportLink,"_blank"),ee.actions.internal.reportProblem(),ee.actions.internal.pause()}function pi(){Vs(ee.actions.internal.getDebugTextData())}let Ho=()=>{let mt=ee.actions.internal.getTraceTextData(),zt=new Blob([...mt],{type:"application/json"}),to=window.URL.createObjectURL(zt);Da(to,"vk_player_trace_info","json")};function dn(){bt.set(!s())}function cn(){B(de,!0)}function So(){B(de,!1)}function Co(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-ue()}px; overflow: auto;`}let qi=v(()=>X&&c()&&!p()),Qt=v(()=>Ae.features.trafficSaving&&!p()&&_()&&!Ae.features.qualityDetailsSubMenuEnabled),uo=v(()=>u().length>0&&!p()),Fo=v(()=>!!$()&&!p()),un=v(()=>Ae.features.audioLanguages&&w().length>=2&&!p()),eo=v(()=>!p());Lt(()=>pt.subscribe(mt=>{mt&&!d()&&!r(de)&&!a()&&Ie()}));let Q=v(()=>{let mt=[r(eo)&&"QUALITY_SETTINGS",r(un)&&"AUDIO_LANGUAGES",r(Fo)&&"PLAYBACK_RATE",r(uo)&&"SUBTITLES",r(Qt)&&"TRAFFIC_SAVING_SWITCH",r(qi)&&"DOWNLOAD",Ae.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ae.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(zt=>!!zt);return zh({items:mt,context:{qualityDetailsSubMenuEnabled:Ae.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Fe,trafficSavingEnabled:I(),toggleTrafficSaving:$t,currentQuality:A()||Wh.INVARIANT,isAutoQualityEnabled:L()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:Dt,debugPanelVisible:s(),onCopyDataClick:pi,onReportProblemClick:li,onSaveTraceDataClick:Ho,toggleShowDebugInfo:dn},additionalSettingsMenuItems:N()})}),jt=v(()=>Uh({subMenuId:ot.current,context:{availablePlaybackRates:x(),selectPlaybackRate:Fe,trafficSavingEnabled:I(),toggleTrafficSaving:$t,currentQuality:A()||Wh.INVARIANT,isAutoQualityEnabled:L()||!1,isAutoQualityAvailable:W()||!1,availableQualities:K(),highQualityEnabled:Z(),toggleHighQuality:Pt,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Et,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:st,selectQuality:Ye,selectSubtitle:Ze}}));var Gt=c3();let Vi;var oi=h(Gt);{var dt=mt=>{var zt=d3();let to;zt.__keydown=[s3,Et];var ki=h(zt);{var Qn=Xt=>{var gt=l3();let di;var po=h(gt),ei=h(po,!0);g(po);var fo=P(po,2);fo.__click=Ie,g(gt),S((bi,oo)=>{di=Y(gt,1,"item header svelte-17or3al",null,di,bi),fe(ei,oo)},[()=>({mobile:d()}),()=>Kt("submenu_settings")]),b(Xt,gt)};V(ki,Xt=>{d()&&Xt(Qn)})}var io=P(ki,2);let ko;ci(io,21,()=>r(Q),Xt=>Xt.id,(Xt,gt)=>{var di=De(),po=le(di);{var ei=bi=>{qf(bi,{get isMobile(){return d()},get id(){return r(gt).id},get icon(){return r(gt).icon},get label(){return r(gt).label},get ariaLabel(){return r(gt).ariaLabel},get value(){return r(gt).value},get valueComponent(){return r(gt).valueComponent},onClick:()=>{Re(r(gt).children),B(Pe,ce(r(gt).id))},get ref(){return j[r(gt).id]},set ref(oo){j[r(gt).id]=oo}})},fo=(bi,oo)=>{{var no=ro=>{Kf(ro,{get isMobile(){return d()},get id(){return r(gt).id},get onClick(){return r(gt).onClick},get icon(){return r(gt).icon},get label(){return r(gt).label},get ariaLabel(){return r(gt).ariaLabel},closeSettings:Ie})},Tn=(ro,pn)=>{{var Ti=mo=>{Gf(mo,{get isMobile(){return d()},get id(){return r(gt).id},get onClick(){return r(gt).onClick},get icon(){return r(gt).icon},get label(){return r(gt).label},get ariaLabel(){return r(gt).ariaLabel},get enabled(){return r(gt).enabled},get tooltipText(){return r(gt).tooltipText},get maxTooltipWidth(){return r(gt).maxTooltipWidth}})};V(ro,mo=>{r(gt).type==="SWITCH"&&mo(Ti)},pn)}};V(bi,ro=>{r(gt).type==="CLICK"?ro(no):ro(Tn,!1)},oo)}};V(po,bi=>{r(gt).type==="OPEN_SUB_MENU"?bi(ei):bi(fo,!1)})}b(Xt,di)}),g(io),lt(io,Xt=>oe(Xt),()=>oe()),g(zt),S((Xt,gt,di)=>{to=Y(zt,1,"settings-menu menu svelte-17or3al",null,to,Xt),ko=Y(io,1,"items",null,ko,gt),it(io,di)},[()=>({desktop:!d(),mobile:d(),hidden:!!ot.current}),()=>({mobile:d()}),Co]),ht("mouseenter",zt,cn),ht("mouseleave",zt,So),b(mt,zt)};V(oi,mt=>{n()&&mt(dt)})}var Ri=P(oi,2);ci(Ri,17,()=>r(jt),mt=>mt.id,(mt,zt)=>{let to=v(()=>r(zt).minWidth??137);Wf(mt,{get isMobile(){return d()},get playerControlsHeight(){return ue()},get returnFromSubMenu(){return ot.popSubMenu},get id(){return r(zt).id},get title(){return r(zt).title},closeSettingsMenu:Et,openSubMenuList:Re,get items(){return r(zt).items},get minWidth(){return r(to)},get refMenuItems(){return j},get listRef(){return _e[r(zt).id]},set listRef(ki){_e[r(zt).id]=ki}})}),g(Gt),S(mt=>Vi=Y(Gt,1,"settings-menu-container svelte-17or3al",null,Vi,mt),[()=>({mobile:d(),hidden:!n()})]),b(t,Gt),F(),o()}nt(["keydown","click"]);var p3=t=>t;function qh(t,{delay:e=0,duration:i=400,easing:o=p3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var f3=M('<button class="button svelte-1sbbskl"> </button>'),m3={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 sm(t,e){U(t,m3);var i=f3();i.__click=function(...n){e.onClick?.apply(this,n)};var o=h(i,!0);g(i),S(()=>fe(o,e.label)),b(t,i)}nt(["click"]);var v3=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),g3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
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 cd(t,e){O(e,!0),U(t,p3);let[i,o]=Ve(),n=()=>y(Ue,"$settingsMenuVisible",i),a=()=>y(ot,"$settingsMenuOpenedByKeyboard",i),s=()=>y($t,"$debugPanelVisible",i),d=()=>y(Ae,"$isMobile",i),l=()=>y(Xe,"$playerSize",i),c=()=>y(J,"$hasMpegSources$",i),u=()=>y(qe,"$mobileNotReportControlHidden$",i),b=()=>y(oe,"$autoQualityLimitingAvailable$",i),p=()=>y(ie,"$availableSubtitlesList$",i),$=()=>y(je,"$isLiveWithPlaybackSpeed",i),w=()=>y(Me,"$availableAudioStreams$",i),x=()=>y(Fe,"$availablePlaybackRates$",i),k=()=>y(Ee,"$currentAudioStream$",i),T=()=>y(ce,"$currentPlaybackRate$",i),C=()=>y(mt,"$trafficSavingEnabled",i),R=()=>y(ue,"$currentQuality$",i),A=()=>y(V,"$isAutoQualityEnabled$",i),E=()=>y(z,"$currentSubtitle$",i),B=()=>y(Lt,"$additionalSettingsMenuItems$",i),K=()=>y(Qe,"$isAutoQualityAvailable$",i),q=()=>y(De,"$availableQualities$",i),te=()=>y(ft,"$highQualityEnabled",i),ne=m(e,"ref",15,void 0),ve=m(e,"playerControlsHeight",3,0),j=le({}),ge=le({}),X=ye(),Pe=Mt(),Ee=X.state.audioStream$,Me=X.state.availableAudioStreams$,ue=X.state.currentQuality$,De=X.state.availableQualities$,oe=X.state.autoQualityLimitingAvailable$,V=X.state.isAutoQualityEnabled$,Qe=X.state.isAutoQualityAvailable$,ce=X.state.currentPlaybackRate$,Fe=X.state.availablePlaybackRates$,z=X.state.currentSubtitle$,ie=X.state.availableSubtitlesList$,Te=X.state.canDownload,J=X.state.hasMpegSources$,Ue=X.ui.settingsMenu.visible$,ot=X.ui.settingsMenu.openedByBtnKeyboard$,de=X.ui.settingsMenu.ref$,Ae=X.ui.isMobile,qe=X.ui.mobileNotReportControlHidden$,je=X.state.canChangePlaybackSpeed$,mt=X.state.trafficSavingEnabled$,ft=X.state.highQualityEnabled$,Xe=X.ui.playerSize,$t=X.ui.debugPanelVisible,ct=X.state.isInteractiveTime$,Lt=X.ui.additionalSettingsMenuItems$,zt=X.ui.t,ze=X.actions.internal.downloadVideo,Et=X.actions.internal.closeSettingsMenu,Q=X.actions.internal.openSettingsSubMenu,be=X.actions.internal.closeSettingsSubMenu,ae=Y(!1),Ie=Y(void 0),nt=Rh();He(()=>{!n()&&nt.current&&(be(ge[nt.current]),nt.popAllSubMenus())}),He(()=>{n()||N(Ie,void 0)}),He(()=>{!nt.current&&r(Ie)&&eh(j,r(Ie))}),He(()=>{ne()&&de.set(ne())});async function Re(vt){nt.pushSubMenu(vt),await to(),Q(vt,ge[vt])}function me(vt){vt?.stopPropagation(),a()||e.returnFocus?.(),Et(),N(ae,!1)}function Ge(vt,Ft){X.actions.internal.setQuality(vt,{appliesTo:Ft}),me()}function pt(vt){X.actions.internal.setAudioStream(vt),me()}function kt(vt,Ft){X.actions.internal.setTrafficSavingEnabled(vt,Ft),Pe.features.qualityDetailsSubMenuEnabled&&me()}function qt(vt,Ft){X.actions.internal.setHighQualityEnabled(vt,Ft),me()}function Be(vt){X.actions.internal.setPlaybackRate(vt),me()}function Ze(vt){X.actions.internal.setSubtitle(vt),me()}function Ht(){ze()}function yi(){s3(e.supportLink)&&window.open(e.supportLink,"_blank"),X.actions.internal.reportProblem(),X.actions.internal.pause()}function xi(){Ls(X.actions.internal.getDebugTextData())}let Qo=()=>{let vt=X.actions.internal.getTraceTextData(),Ft=new Blob([...vt],{type:"application/json"}),fo=window.URL.createObjectURL(Ft);Na(fo,"vk_player_trace_info","json")};function cn(){$t.set(!s())}function un(){N(ae,!0)}function Go(){N(ae,!1)}function So(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-ve()}px; overflow: auto;`}let qi=v(()=>Te&&c()&&!u()),Wt=v(()=>Pe.features.trafficSaving&&!u()&&b()&&!Pe.features.qualityDetailsSubMenuEnabled),po=v(()=>p().length>0&&!u()),Yo=v(()=>!!$()&&!u()),Li=v(()=>Pe.features.audioLanguages&&w().length>=2&&!u()),ro=v(()=>!u());At(()=>ct.subscribe(vt=>{vt&&!d()&&!r(ae)&&!a()&&me()}));let G=v(()=>{let vt=[r(ro)&&"QUALITY_SETTINGS",r(Li)&&"AUDIO_LANGUAGES",r(Yo)&&"PLAYBACK_RATE",r(po)&&"SUBTITLES",r(Wt)&&"TRAFFIC_SAVING_SWITCH",r(qi)&&"DOWNLOAD",Pe.showSupport&&"SHOW_SUPPORT","COPY_DATA",Pe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ft=>!!Ft);return Wh({items:vt,context:{qualityDetailsSubMenuEnabled:Pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:k(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Be,trafficSavingEnabled:C(),toggleTrafficSaving:kt,currentQuality:R()||qh.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:Ht,onCopyDataClick:xi,onReportProblemClick:yi,onSaveTraceDataClick:Qo,toggleShowDebugInfo:cn},additionalSettingsMenuItems:B()})}),Kt=v(()=>zh({subMenuId:nt.current,context:{availablePlaybackRates:x(),selectPlaybackRate:Be,trafficSavingEnabled:C(),toggleTrafficSaving:kt,currentQuality:R()||qh.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:K()||!1,availableQualities:q(),highQualityEnabled:te(),toggleHighQuality:qt,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Et,currentAudioStream:k(),isMobile:d(),selectAudioLanguage:pt,selectQuality:Ge,selectSubtitle:Ze}}));var Jt=u3();let Vi;var ei=h(Jt);{var at=vt=>{var Ft=c3();let fo;Ft.__keydown=[l3,Et];var wi=h(Ft);{var In=Zt=>{var ht=d3();let vi;var Co=h(ht),Xt=h(Co,!0);g(Co);var ko=P(Co,2);ko.__click=me,g(ht),S((Si,ao)=>{vi=Z(ht,1,"item header svelte-17or3al",null,vi,Si),pe(Xt,ao)},[()=>({mobile:d()}),()=>zt("submenu_settings")]),_(Zt,ht)};L(wi,Zt=>{d()&&Zt(In)})}var Ri=P(wi,2);let mo;ci(Ri,21,()=>r(G),Zt=>Zt.id,(Zt,ht)=>{var vi=Oe(),Co=se(vi);{var Xt=Si=>{Kf(Si,{get isMobile(){return d()},get id(){return r(ht).id},get icon(){return r(ht).icon},get label(){return r(ht).label},get ariaLabel(){return r(ht).ariaLabel},get value(){return r(ht).value},get valueComponent(){return r(ht).valueComponent},onClick:()=>{Re(r(ht).children),N(Ie,le(r(ht).id))},get ref(){return j[r(ht).id]},set ref(ao){j[r(ht).id]=ao}})},ko=(Si,ao)=>{{var Ci=Qi=>{Qf(Qi,{get isMobile(){return d()},get id(){return r(ht).id},get onClick(){return r(ht).onClick},get icon(){return r(ht).icon},get label(){return r(ht).label},get ariaLabel(){return r(ht).ariaLabel},closeSettings:me})},En=(Qi,pn)=>{{var vo=go=>{Yf(go,{get isMobile(){return d()},get id(){return r(ht).id},get onClick(){return r(ht).onClick},get icon(){return r(ht).icon},get label(){return r(ht).label},get ariaLabel(){return r(ht).ariaLabel},get enabled(){return r(ht).enabled},get tooltipText(){return r(ht).tooltipText},get maxTooltipWidth(){return r(ht).maxTooltipWidth}})};L(Qi,go=>{r(ht).type==="SWITCH"&&go(vo)},pn)}};L(Si,Qi=>{r(ht).type==="CLICK"?Qi(Ci):Qi(En,!1)},ao)}};L(Co,Si=>{r(ht).type==="OPEN_SUB_MENU"?Si(Xt):Si(ko,!1)})}_(Zt,vi)}),g(Ri),dt(Ri,Zt=>ne(Zt),()=>ne()),g(Ft),S((Zt,ht,vi)=>{fo=Z(Ft,1,"settings-menu menu svelte-17or3al",null,fo,Zt),mo=Z(Ri,1,"items",null,mo,ht),et(Ri,vi)},[()=>({desktop:!d(),mobile:d(),hidden:!!nt.current}),()=>({mobile:d()}),So]),_t("mouseenter",Ft,un),_t("mouseleave",Ft,Go),_(vt,Ft)};L(ei,vt=>{n()&&vt(at)})}var Ki=P(ei,2);ci(Ki,17,()=>r(Kt),vt=>vt.id,(vt,Ft)=>{let fo=v(()=>r(Ft).minWidth??137);qf(vt,{get isMobile(){return d()},get playerControlsHeight(){return ve()},get returnFromSubMenu(){return nt.popSubMenu},get id(){return r(Ft).id},get title(){return r(Ft).title},closeSettingsMenu:Et,openSubMenuList:Re,get items(){return r(Ft).items},get minWidth(){return r(fo)},get refMenuItems(){return j},get listRef(){return ge[r(Ft).id]},set listRef(wi){ge[r(Ft).id]=wi}})}),g(Jt),S(vt=>Vi=Z(Jt,1,"settings-menu-container svelte-17or3al",null,Vi,vt),[()=>({mobile:d(),hidden:!n()})]),_(t,Jt),H(),o()}it(["keydown","click"]);var f3=t=>t;function Kh(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 m3=M('<button class="button svelte-1sbbskl"> </button>'),v3={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 lm(t,e){U(t,v3);var i=m3();i.__click=function(...n){e.onClick?.apply(this,n)};var o=h(i,!0);g(i),S(()=>pe(o,e.label)),_(t,i)}it(["click"]);var g3=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),h3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
310
310
  /**
311
311
  * \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 ud(t,e){H(e,!0),U(t,g3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Vt(),{ui:{t:n}}=$e(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=v3(),d=h(s),l=h(d),c=h(l),p=h(c);dd(p,{message:a}),g(c);var _=P(c,2);{var u=w=>{let x=v(()=>n("slow_video_notification_button"));sm(w,{get label(){return r(x)},get onClick(){return e.onSelectAutoQuality}})};V(_,w=>{o||w(u)})}g(l);var $=P(l,2);Wa($,{get onClick(){return e.onClose}}),g(d),g(s),Gu(3,d,()=>qh,()=>({duration:i})),b(t,s),F()}import{Subscription as h3}from"@vkontakte/videoplayer-shared";var ns="annotation",Uc=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){let{overlay:o,id:n,controlsBehaviour:a,hideAllControls:s}=i;e.setAttribute("slot",ns),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(n,a),s&&this.store?.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}){let n=this.slots.get(e);if(!n)return;let a=await this.findSlotElement(n.rootElement,i,e),s=(_,u)=>!(_.right<u.left||_.left>u.right||_.bottom<u.top||_.top>u.bottom),{controls:d,hiddenControls:l}=this.store?.ui||{},c=new MutationObserver(_=>_.forEach(()=>{let u=jr(a,this.shadowRootContainer);o.forEach($=>{let w=d?.[$],x=w?be(w):null,C=l?.[$];x&&C?.set(s(x,u))})}));c.observe(a,{childList:!0,subtree:!0}),n.observer=c;let p=new h3;o.forEach(_=>{d&&p.add(d[_].subscribe(u=>{let $=l?.[_];u&&$?.set(s(u,jr(a,this.shadowRootContainer)))}))}),n.subs=p}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){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(c=>c?.disconnect()),s?.unsubscribe(),this.slots.delete(e),l&&this.store?.ui.isControlsAvailable.set(!0),d?.controlsToObserve?.forEach(c=>{this.store?.ui.hiddenControls[c]?.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var _3=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),b3={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;
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 ud(t,e){O(e,!0),U(t,h3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Mt(),{ui:{t:n}}=ye(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=g3(),d=h(s),l=h(d),c=h(l),u=h(c);dd(u,{message:a}),g(c);var b=P(c,2);{var p=w=>{let x=v(()=>n("slow_video_notification_button"));lm(w,{get label(){return r(x)},get onClick(){return e.onSelectAutoQuality}})};L(b,w=>{o||w(p)})}g(l);var $=P(l,2);za($,{get onClick(){return e.onClose}}),g(d),g(s),Yu(3,d,()=>Kh,()=>({duration:i})),_(t,s),H()}var os="annotation",zc=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",os),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}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"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var _3=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),b3={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
313
 
314
314
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
315
315
 
@@ -340,8 +340,8 @@ Try switching the\xA0quality to\xA0Auto.`},Bg=T0;var Qr=new Map;Qr.set(Og.EN,Bg)
340
340
  opacity: 0;
341
341
  scale: 0;
342
342
  }
343
- }`};function lm(t,e){H(e,!0),U(t,b3);let[i,o]=Le(),n=()=>y(s,"$isPlaying$",i),a=()=>y(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=$e(),{features:{playbackStatusShow:c,playbackStatusAnimationDuration:p,playbackStatusNextVideoAnimationDuration:_}}=Vt(),u=0,$=G(null),w=G(!1);He(()=>{B($,ce(n()?fr:Xr))}),He(()=>{B($,ce(a()?va:null))}),He(()=>{if(c)return u=window.setTimeout(()=>{u=0,a()&&r($)===va&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),B($,null)},r($)!==va?p:_),()=>{u&&(window.clearTimeout(u),u=0)}}),He(()=>{n()&&!r(w)&&(B(w,!0),B($,null))});var x=De(),C=le(x);{var T=I=>{var A=De(),L=le(A);Va(L,()=>r($),E=>{var N=_3(),W=h(N),K=h(W);let Z=v(()=>a()==="prev");ui(K,()=>r($),(oe,ue)=>{ue(oe,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(Z)}})}),g(W),g(N),S(()=>it(W,`animation-duration: ${r($)!==va?p:_}ms`)),b(E,N)}),b(I,A)};V(C,I=>{r($)&&c&&I(T)})}b(t,x),F(),o()}var $3=M('<div><div data-testid="video-container"></div></div>'),y3={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 rs(t,e){H(e,!0),U(t,y3);let[i,o]=Le(),n=()=>y(p,"$rotateAlpha",i),a=()=>y(_,"$playerSize",i),s=()=>y(c,"$playerPhase",i),d=()=>y(u,"$isPlaying$",i),l=m(e,"videoContainer",15),{playerPhase:c,ui:{rotateAlpha:p,playerSize:_},state:{isPlaying$:u}}=$e(),{isSmoothVideoRotate:$}=Vt(),w=v(()=>l()&&n()%180?a().height/a().width:1);var x=$3();let C;x.__contextmenu=function(...I){e.onContextMenu?.apply(this,I)},x.__mousedown=function(...I){e.onMouseDown?.apply(this,I)},x.__mouseup=function(...I){e.onMouseUp?.apply(this,I)},x.__click=function(...I){e.onClick?.apply(this,I)},x.__dblclick=function(...I){e.onDblClick?.apply(this,I)};var T=h(x);Y(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!$}),lt(T,I=>l(I),()=>l()),g(x),S(I=>{C=Y(x,1,"video-wrapper svelte-1czns9r",null,C,I),it(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Ne(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),b(t,x),F(),o()}nt(["contextmenu","mousedown","mouseup","click","dblclick"]);var x3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},w3=M("<div><!></div>"),S3=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),C3=M("<div><!></div>"),k3=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),T3=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),I3=M("<!> <!> <!>",1),E3=M('<div class="blocked svelte-jtgjmv"></div>'),P3=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),A3={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 dm(t,e){H(e,!0),U(t,A3);let[i,o]=Le(),n=()=>y(Wo,"$notificationsToShow$",i),a=()=>y(cn,"$playerPhase",i),s=()=>y(jt,"$isLoaderVisible",i),d=()=>y(pi,"$adPlaybackState",i),l=()=>y(zt,"$crashed",i),c=()=>y(po,"$isInteractiveTime$",i),p=()=>y(Qt,"$settingsMenuVisible",i),_=()=>y(ei,"$isInteractiveExpectation$",i),u=()=>y(qi,"$controlsVisible",i),$=()=>y(bi,"$touched",i),w=()=>y(jn,"$graphIsOpened$",i),x=()=>y(So,"$isFullscreen",i),C=()=>y(vr,"$autoplayNextEnabled$",i),T=()=>y(dt,"$postrollPassed",i),I=()=>y(Gt,"$isEnded$",i),A=()=>y(go,"$cursorInside",i),L=()=>y(In,"$isControlsAvailable",i),E=()=>y(fn,"$fakeIsPlaying$",i),N=()=>y(Qo,"$bottomNoSmooth",i),W=()=>y(ro,"$interactiveTimeIndicator",i),K=()=>y(ko,"$playerSize",i),Z=()=>y(Xt,"$is3DVideo",i),oe=()=>y(eo,"$contextMenuVisible$",i),ue=()=>y(li,"$playbackState$",i),j=()=>y(oo,"$hotKeyMapData",i),_e=()=>y(Fo,"$scrubbingInProgress",i),ee=()=>y(un,"$volumeChangingInProgress",i),Ae=()=>y(Vi,"$chromecastConnected$",i),Ee=()=>y(To,"$controlsTimeoutActive",i),Ve=()=>y(uo,"$settingsMenuOpenedByKeyboard",i),pe=()=>y(_o,"$contextMenuOpenedByKeyboard$",i),Oe=()=>y(xr,"$contextMenuButtonRef$",i),ie=()=>y(ir,"$contextMenuOpenedByHotKey$",i),R=()=>y(Vr,"$contextMenuLastActiveElem$",i),Qe=()=>y(Co,"$isFullscreenOpenedByKeyboard",i),ne=()=>y(Dt,"$language$",i),We=()=>y(gt,"$icon3DVideoVisible",i),re=()=>y(oi,"$chromecastDeviceName$",i),ae=()=>y(Qn,"$currentSubtitle$",i),X=()=>y(io,"$currentSubtitleCaptions$",i),J=()=>y(Ho,"$position$",i),ze=()=>y(dn,"$duration$",i),Be=()=>y(Ri,"$isLive$",i),ye=()=>y(mt,"$isPlaying$",i),Me=()=>y(Ti,"$contextMenuPosition$",i),Ge=()=>y(no,"$showHotKeyMap",i),Xe=()=>y(Q,"$debugPanelVisible",i),ft=()=>y(Gn,"$userActionsDisabled$",i),ut=m(e,"videoContainer",15),et=m(e,"adsSlotId",3,void 0),bt=m(e,"adsParams",3,void 0),pt=m(e,"adsPreviewParam",3,void 0),Nt=m(e,"adsAutoplayParam",3,void 0),Kt=m(e,"duration",3,void 0),Ue=m(e,"logoTargetUrl",3,""),Et=m(e,"showNextPrevButtons",3,!1),q=m(e,"nextButtonActive",3,!1),he=m(e,"prevButtonActive",3,!1),de=m(e,"endScreenVideoTitle",3,void 0),Pe=m(e,"endScreenVideoThumb",3,void 0),ot=m(e,"isOneVideoPlaylist",3,!1),Re=m(e,"shadowRootContainer",3,void 0),Ie=m(e,"outerContainerRef",3,void 0),Ye=m(e,"playerStarted",3,!1),st=m(e,"fullScreenTarget",3,void 0),$t=m(e,"showMiniTimer",3,!1),Pt=m(e,"showEndScreen",3,!0),Fe=m(e,"keyboardControls",15),Ze=e.store.getLogger().createComponentLog("Root component"),Dt=e.store.interfaceLanguage$,li=e.store.state.playbackState$,pi=e.store.ads.playbackState,Ho=e.store.state.positionWithScrubbing$,dn=e.store.state.duration$,cn=e.store.playerPhase,So=e.store.ui.isFullscreen,Co=e.store.ui.isFullscreenOpenedByKeyboard,qi=e.store.ui.controlsVisible,Qt=e.store.ui.settingsMenu.visible$,uo=e.store.ui.settingsMenu.openedByBtnKeyboard$,Fo=e.store.ui.scrubbingInProgress,un=e.store.ui.volumeChangingInProgress,eo=e.store.ui.contextMenu.visible$,Q=e.store.ui.debugPanelVisible,jt=e.store.state.isLoaderVisible,Gt=e.store.state.isEnded$,Vi=e.store.state.chromecastConnected$,oi=e.store.state.chromecastDeviceName$,dt=e.store.ads.postrollPassed,Ri=e.store.state.isLive$,mt=e.store.state.isPlaying$,zt=e.store.state.crashed$,to=e.store.webApi.annotationsApi,ki=e.store.webApi.pictureInPictureApi,Qn=e.store.state.currentSubtitle$,io=e.store.state.currentSubtitleCaptions$,ko=e.store.ui.playerSize,Xt=e.store.ui.is3DVideo,gt=e.store.ui.icon3DVideoVisible,di=e.store.state.isInteractive,po=e.store.state.isInteractiveTime$,ei=e.store.state.isInteractiveExpectation$,fo=e.store.state.hasInteractiveBranches,bi=e.store.ui.touched,oo=e.store.ui.modals.hotKeyMap.data,no=e.store.ui.modals.hotKeyMap.show,Tn=e.store.ui.overlayContainer$,ro=e.store.ui.controls.interactiveTimeIndicator,pn=e.store.state.showInteractiveTimeIndicator,Ti=e.store.ui.contextMenu.position$,mo=e.store.actions.internal.setQuality,Uo=e.store.actions.internal.closeSettingsMenu,vr=e.store.ui.autoplayNextEnabled$,Gn=e.store.ui.userActionsDisabled,In=e.store.ui.isControlsAvailable,{fakeIsPlaying$:fn,notifications$:En,graphIsOpened$:jn}=Wi(),Ni=G(void 0),vo=G(void 0),mn=G(void 0),tt=G(void 0),vn,Pn,zo;oo.set(Kg());let{closeNotification:Yn,notificationsToShow$:Wo}=En,qo=v(()=>!!n().slow_video),Ko=()=>Yn("slow_video"),Ii=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),$i=G(void 0),Qo=se(!1),An,To=se(!1),Go=se(),go=se(!1),Ki=G(!1),gi=G(!1),Mn=G(!1),Bi=G(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),gn=v(()=>c()&&!p()&&!(r(Ki)||r(gi))&&!(r(Mn)&&!_())),Ln=!0,jo=v(()=>e.uiConfig.features.thumbTimer&&$t()&&a()==="video"&&!u()&&!l()&&!di&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),gr=v(()=>a()==="video"&&!w()&&x()),Io=G(!1),hr=v(()=>(Pt()||e.showAutoplayNext&&C())&&!!de()&&!!Pe()&&(e.showAds&&T()||!e.showAds)&&I()&&!l()&&!r(Io)),Vn=v(()=>A()&&!(u()||r(hr))&&!c()&&L()),Rn=G(!1),Zn=v(()=>E()!==null),{toggle:_r}=fn,hn=!1,Wt=null;ki?.setContext(ul());let Xn=()=>{e.autoplay&&!di&&e.uiConfig.controls.showOnStartupAtAutoplay&&je(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Xn});let br=()=>{window.clearTimeout(vn),To.set(!1)},ho=()=>{window.clearTimeout(Pn),Go.set(null)},je=Ce=>{br(),To.set(!0),vn=window.setTimeout(()=>To.set(!1),Ce);let Bt=Ce-100;An=window.setTimeout(()=>{N()&&Qo.set(!1)},Bt>0?Bt:Ce)},Mt=(Ce,Bt)=>{ho(),Go.set(Bt),Pn=window.setTimeout(()=>Go.set(null),Ce)},fi=Xt.subscribe(Ce=>{gt.set(Ce),Ce&&(window.clearTimeout(zo),zo=window.setTimeout(()=>gt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ao=async()=>{let Ce=la();if(Ce){let Bt=Sl(),Yt=mi();Ce=Bt===Yt||Bt===Re()}if(Ce){je(e.uiConfig.controls.hideTimeoutFullscreen);try{await ki?.remove()}catch(Bt){Ze({message:String(Bt)})}}So.set(Ce),e.store.getAdmanWrapper().setFullscreen(Ce),x()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},rt=Ce=>{let{width:Bt,height:Yt}=Ce.target;ko.set({width:Bt,height:Yt})},Tt=()=>{let{width:Ce,height:Bt}=r(Ni).getBoundingClientRect();ko.set({width:Ce,height:Bt})};Lt(()=>(vc(ao),e.uiConfig.features.annotationsInside&&to?.init(r(Ni)),Fa(ki)&&(ki?.assignPlayerContainer(r(Ni)),ki?.registryExternalEventHandlers({resize:rt,leavepictureinpicture:Tt})),e.interactiveContainer&&ut().parentElement?.insertBefore(e.interactiveContainer,ut().nextSibling),()=>{window.clearTimeout(vn),window.clearTimeout(An),window.clearTimeout(Pn),window.clearTimeout(zo),fi(),ki?.dispose().catch(Bt=>{Ze({message:String(Bt)})}),gc(ao)}));let mi=()=>{let Ce=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ie()?r(Ni):Ie(),Bt=Ce.getRootNode(),Yt=Bt instanceof ShadowRoot?Bt.host:Bt,we=st()instanceof HTMLElement&&st().contains(Yt);return e.uiConfig.allowChangingFullscreenTarget&&st()&&we?st():Ce},Ei=async()=>{la()?(await mc(document),Ze({message:"exit fullscreen"})):(Ze({message:"request fullscreen"}),await fc(mi()))},yi=()=>{Uo(),eo.set(!1)},xi=Ce=>{w()||(Ce.preventDefault(),eo.set(!0),Ti.set({left:Ce.clientX,top:Ce.clientY}))};function Pi(){go.set(!0),di||je(e.uiConfig.controls.hideTimeoutCursor)}function Eo(){di||(Qo.set(!0),je(e.uiConfig.controls.hideTimeoutCursor))}function Yo(){go.set(!1),B(gi,!1),B(Ki,!1),hn=!1,e.store.actions.internal.releaseCamera(),je(e.uiConfig.controls.hideTimeout)}function Di(Ce){return Ce?Ce.offsetTop+Di(Ce.offsetParent):0}function Ai(Ce){return Ce?Ce.offsetLeft+Ai(Ce.offsetParent):0}function Zo(Ce){if(W()&&pn){let Bt=Ce.currentTarget,Yt=Di(Bt),we=Ai(Bt),Ct=Ce.pageX-we,ii=Ce.pageY-Yt,{left:ti,bottom:Ht,right:_n}=W(),Qi=_n-ti;return Ct>=ti-Qi&&ii<=Ht+Qi}}function Nn(Ce){if(r(Ni)){let Bt=Di(Ce.currentTarget),Yt=K().height,we=Ce.pageY-Bt;if(Zo(Ce)){B(gi,!1);return}we<40?B(gi,!0):we>Yt-40?B(Ki,!0):(B(gi,!1),p()||B(Ki,!1))}}function Jn(Ce){Nn(Ce),r(gn)||je(e.uiConfig.controls.hideTimeoutCursor),Z()&&hn&&Wt&&e.store.actions.internal.moveCameraFocusPX(Wt.clientX-Ce.clientX,Wt.clientY-Ce.clientY,Ce.timeStamp-Wt.timeStamp),Wt=Ce}let Bn=Ce=>{Ce.preventDefault(),Ce.button===0&&(hn=!0,e.store.actions.internal.holdCamera()),je(e.uiConfig.controls.hideTimeoutCursor)},$r=Ce=>{Ce.preventDefault(),Ce.button===0&&(Wt=Ce,hn=!1,e.store.actions.internal.releaseCamera()),je(e.uiConfig.controls.hideTimeoutCursor)},er=Ce=>{Ce.preventDefault(),Ln&&(Ze({message:"double click on video"}),Ei(),je(e.uiConfig.controls.hideTimeoutCursor))},Xo=Ce=>{if(Ce.preventDefault(),oe()||p()){yi();return}if(!(I()&&!fo)){if(r(Zn))return _r();if(Fe()?.focus(),!Ye()){e.firstStart(),je(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ue()!==Qh.PLAYING)&&e.store.actions.internal.togglePlay(),je(e.uiConfig.controls.hideTimeoutCursor)}},Dn=Ce=>{yi(),bi.set(!0),je(e.uiConfig.controls.hideTimeout),Ce&&Mt(e.uiConfig.controls.hideHotKeyHelpers,Ce)},yr=()=>{yi(),e.store.callbacks?.onOpenHotKeyMap?e.store.callbacks?.onOpenHotKeyMap(j()):no.update(Ce=>!Ce)},tr=()=>{bi.set(!0)},_o=e.store.ui.contextMenu.openedByBtnKeyboard$,xr=e.store.ui.contextMenu.btnRef$,bo=G(void 0),ir=e.store.ui.contextMenu.openedByHotKey$,Vr=e.store.ui.contextMenu.lastActiveElem$;He(()=>{Tn.set(r($i))}),He(()=>{B(Mn,ce(r(Bi)&&ue()!==Qh.PLAYING)),r(Bi)||vt(()=>B(Bi,!0))}),He(()=>{qi.set((r(Mn)||I()||p()||_e()||ee()||Ae()||Ee())&&!r(gn)&&(a()==="video"||a()==="ads")&&!l()&&L())}),He(()=>{!_e()&&r(Rn)&&!c()&&je(e.uiConfig.controls.hideTimeoutCursor),vt(()=>B(Rn,ce(_e())))}),He(()=>{r(tt),p(),Ve(),vt(()=>Ns(r(tt),p(),Ve()))}),He(()=>{r(bo),oe(),pe(),vt(()=>Ns(r(bo),oe(),pe()))}),He(()=>{let Ce=Oe();Ce&&(oe(),vt(()=>Rs(Ce,oe(),_o)))}),He(()=>{r(bo),oe(),ie(),vt(()=>Ns(r(bo),oe(),ie()))}),He(()=>{let Ce=R();Ce&&(oe(),vt(()=>Xg(Ce,oe(),ir)))}),He(()=>{!Qe()&&x()&&(vt(()=>Co.set(!1)),Fe()?.focus())}),He(()=>{w()&&yi()});let wr=O("video360");var Sr=P3();ht("blur",Ea,yi);var Mi=le(Sr);Mi.__mousemove=Jn;var Je=h(Mi);let Rt=v(()=>a()==="ads"),hi=v(()=>r(Zn)?_r:void 0);lt(Ip(Je,{toggleFullscreen:Ei,hideContextMenu:yi,showHotKeyHelpers:Dn,showKeyMap:yr,get isAds(){return r(Rt)},get fakePlayButtonHandler(){return r(hi)},get nextButtonActive(){return q()},get prevButtonActive(){return he()},children:(Ce,Bt)=>{var Yt=I3(),we=le(Yt);rs(we,{get hideCursor(){return r(Vn)},onClick:Xo,onContextMenu:xi,onMouseDown:Bn,onMouseUp:$r,onDblClick:er,get videoContainer(){return ut()},set videoContainer(ti){ut(ti)}});var Ct=P(we,2);Ra(Ct,()=>"slot",!1,(ti,Ht)=>{xe(ti,null,{name:ns})});var ii=P(Ct,2);Va(ii,ne,ti=>{var Ht=T3(),_n=le(Ht);let Qi=v(()=>a()!=="thumb"||l()||di&&e.autoplay);ts(_n,{get hidden(){return r(Qi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var or=P(_n,2);lm(or,{});var en=P(or,2);{var ea=qe=>{let Zt=v(()=>e.live?.startTime);sd(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Zt)}})};V(en,qe=>{a()==="LiveWaitingStart"&&qe(ea)})}var ha=P(en,2);{var On=qe=>{is(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(ha,qe=>{a()==="LiveWaitingRecover"&&qe(On)})}var as=P(ha,2);{var Qs=qe=>{is(qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(as,qe=>{a()==="LiveWaitingRecord"&&qe(Qs)})}var ss=P(as,2);{var ls=qe=>{var Zt=w3();let Hn;var $a=h(Zt);Cl($a,{get adsSlotId(){return et()},get adsParams(){return bt()},get adsPreviewParam(){return pt()},get adsAutoplayParam(){return Nt()},get duration(){return Kt()}}),g(Zt),S(Fn=>Hn=Y(Zt,1,"ads-container svelte-jtgjmv",null,Hn,Fn),[()=>({hidden:a()!=="ads"})]),b(qe,Zt)};V(ss,qe=>{e.showAds&&Ye()&&qe(ls)})}var ds=P(ss,2);{var Gs=qe=>{let Zt=v(()=>!Pt()&&e.showAutoplayNext&&C());Cp(qe,{get title(){return de()},get thumb(){return Pe()},get isHide(){return r(Zt)},clickCloseIcon:()=>B(Io,!0)})};V(ds,qe=>{r(hr)&&de()&&Pe()&&qe(Gs)})}var yt=P(ds,2);{var St=qe=>{let Zt=v(()=>!u());Bf(qe,{get title(){return e.title},get isHidden(){return r(Zt)}})};V(yt,qe=>{r(gr)&&qe(St)})}var Li=P(yt,2);{var Rr=qe=>{let Zt=v(()=>a()==="video"&&u());nd(qe,{get isShifted(){return r(Zt)}})};V(Li,qe=>{Z()&&qe(Rr)})}var ta=P(Li,2);{var Nr=qe=>{var Zt=S3(),Hn=h(Zt);wl(Hn,{"aria-label":wr}),g(Zt),b(qe,Zt)};V(ta,qe=>{We()&&qe(Nr)})}var nr=P(ta,2);{var _a=qe=>{rd(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return re()}})};V(nr,qe=>{Ae()&&qe(_a)})}var cs=P(nr,2);{var Jc=qe=>{es(qe,{get shifted(){return u()},get captions(){return X()},get position(){return J()},get playerSize(){return K()}})};V(cs,qe=>{ae().value!=="off"&&qe(Jc)})}var xd=P(cs,2);{var eu=qe=>{var Zt=C3();Zt.__contextmenu=xi,Zt.__click=[x3,oe,eo,p,Qt,yi];var Hn=h(Zt);ad(Hn,{}),g(Zt),b(qe,Zt)};V(xd,qe=>{l()&&qe(eu)})}var wd=P(xd,2);{var tu=qe=>{let Zt=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Hn=v(()=>a()==="ads"),$a=v(()=>e.canRewindLive&&ze()!==0);od(qe,{get bottomHidden(){return r(Zt)},get bottomNoSmooth(){return N()},get showControls(){return u()},get isAds(){return r(Hn)},get canRewindLive(){return r($a)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ue()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Et()},get nextButtonActive(){return q()},get prevButtonActive(){return he()},get isOneVideoPlaylist(){return ot()},customFullscreenSupported:Ln,toggleFullscreen:Ei,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(vo)},set playerControlsWrapperRef(Fn){B(vo,ce(Fn))},get playerControlsRef(){return r(mn)},set playerControlsRef(Fn){B(mn,ce(Fn))}})};V(wd,qe=>{Ye()&&qe(tu)})}var Sd=P(wd,2);{var iu=qe=>{var Zt=k3(),Hn=h(Zt);let $a=v(()=>r(mn)?.clientHeight);cd(Hn,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r($a)},returnFocus:()=>Fe()?.focus(),get ref(){return r(tt)},set ref(Fn){B(tt,ce(Fn))}}),g(Zt),b(qe,Zt)};V(Sd,qe=>{!Ae()&&a()!=="ads"&&qe(iu)})}var Cd=P(Sd,2);let ou=v(()=>!r(jo));Il(Cd,{get isLive(){return Be()},get isHidden(){return r(ou)},get isPlaying(){return ye()},get position(){return J()},get duration(){return ze()}});var ba=P(Cd,2);Lf(ba,{data:Go});var kd=P(ba,2);Sp(kd,{get supportLink(){return e.supportLink},returnFocus:()=>Fe()?.focus(),get visible(){return oe()},get playerContainerRef(){return r(Ni)},get controlsContainerRef(){return r(vo)},get position(){return Me()},get menuElementRef(){return r(bo)},set menuElementRef(qe){B(bo,ce(qe))}});var js=P(kd,2);{var Td=qe=>{ud(qe,{onClose:Ko,onSelectAutoQuality:()=>{mo("auto"),Ko()}})};V(js,qe=>{r(qo)&&qe(Td)})}var Id=P(js,2);{var Ed=qe=>{Ka(qe,{})};V(Id,qe=>{r(Ii)&&qe(Ed)})}var us=P(Id,2);{var Pd=qe=>{Ap(qe,{})};V(us,qe=>{Ge()&&qe(Pd)})}var nu=P(us,2);{var Ad=qe=>{Ml(qe,{})};V(nu,qe=>{Xe()&&qe(Ad)})}b(ti,Ht)}),b(Ce,Yt)},$$slots:{default:!0}}),Ce=>Fe(Ce),()=>Fe());var so=P(Je,2);lt(so,Ce=>B($i,Ce),()=>r($i)),g(Mi),lt(Mi,Ce=>B(Ni,Ce),()=>r(Ni));var Po=P(Mi,2);{var Jo=Ce=>{var Bt=E3();b(Ce,Bt)};V(Po,Ce=>{ft()&&Ce(Jo)})}ht("mouseenter",Mi,Pi),ht("mouseleave",Mi,Yo),ht("click",Mi,tr,!0),ht("focusin",Mi,Eo,!0),b(t,Sr),F(),o()}nt(["mousemove","contextmenu","click"]);import{clientChecker as pd,PlaybackState as F3}from"@vkontakte/videoplayer-core";import{noop as U3}from"@vkontakte/videoplayer-shared";var M3=M('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),L3=M("<div><!></div>"),V3={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;
343
+ }`};function dm(t,e){O(e,!0),U(t,b3);let[i,o]=Ve(),n=()=>y(s,"$isPlaying$",i),a=()=>y(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=ye(),{features:{playbackStatusShow:c,playbackStatusAnimationDuration:u,playbackStatusNextVideoAnimationDuration:b}}=Mt(),p=0,$=Y(null),w=Y(!1);He(()=>{N($,le(n()?vr:Zr))}),He(()=>{N($,le(a()?ma:null))}),He(()=>{if(c)return p=window.setTimeout(()=>{p=0,a()&&r($)===ma&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),N($,null)},r($)!==ma?u:b),()=>{p&&(window.clearTimeout(p),p=0)}}),He(()=>{n()&&!r(w)&&(N(w,!0),N($,null))});var x=Oe(),k=se(x);{var T=C=>{var R=Oe(),A=se(R);La(A,()=>r($),E=>{var B=_3(),K=h(B),q=h(K);let te=v(()=>a()==="prev");ui(q,()=>r($),(ne,ve)=>{ve(ne,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(te)}})}),g(K),g(B),S(()=>et(K,`animation-duration: ${r($)!==ma?u:b}ms`)),_(E,B)}),_(C,R)};L(k,C=>{r($)&&c&&C(T)})}_(t,x),H(),o()}var $3=M('<div><div data-testid="video-container"></div></div>'),y3={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 ns(t,e){O(e,!0),U(t,y3);let[i,o]=Ve(),n=()=>y(u,"$rotateAlpha",i),a=()=>y(b,"$playerSize",i),s=()=>y(c,"$playerPhase",i),d=()=>y(p,"$isPlaying$",i),l=m(e,"videoContainer",15),{playerPhase:c,ui:{rotateAlpha:u,playerSize:b},state:{isPlaying$:p}}=ye(),{isSmoothVideoRotate:$}=Mt(),w=v(()=>l()&&n()%180?a().height/a().width:1);var x=$3();let k;x.__contextmenu=function(...C){e.onContextMenu?.apply(this,C)},x.__mousedown=function(...C){e.onMouseDown?.apply(this,C)},x.__mouseup=function(...C){e.onMouseUp?.apply(this,C)},x.__click=function(...C){e.onClick?.apply(this,C)},x.__dblclick=function(...C){e.onDblClick?.apply(this,C)};var T=h(x);Z(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!$}),dt(T,C=>l(C),()=>l()),g(x),S(C=>{k=Z(x,1,"video-wrapper svelte-1czns9r",null,k,C),et(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Le(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),_(t,x),H(),o()}it(["contextmenu","mousedown","mouseup","click","dblclick"]);var x3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},w3=M("<div><!></div>"),S3=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),C3=M("<div><!></div>"),k3=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),T3=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),I3=M("<!> <!> <!>",1),E3=M('<div class="blocked svelte-jtgjmv"></div>'),P3=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),A3={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 cm(t,e){O(e,!0),U(t,A3);let[i,o]=Ve(),n=()=>y(Zo,"$notificationsToShow$",i),a=()=>y(un,"$playerPhase",i),s=()=>y(Kt,"$isLoaderVisible",i),d=()=>y(xi,"$adPlaybackState",i),l=()=>y(Ft,"$crashed",i),c=()=>y(Co,"$isInteractiveTime$",i),u=()=>y(Wt,"$settingsMenuVisible",i),b=()=>y(Xt,"$isInteractiveExpectation$",i),p=()=>y(qi,"$controlsVisible",i),$=()=>y(Si,"$touched",i),w=()=>y(st,"$graphIsOpened$",i),x=()=>y(Go,"$isFullscreen",i),k=()=>y(hr,"$autoplayNextEnabled$",i),T=()=>y(at,"$postrollPassed",i),C=()=>y(Jt,"$isEnded$",i),R=()=>y(gn,"$cursorInside",i),A=()=>y(mn,"$isControlsAvailable",i),E=()=>y(jo,"$fakeIsPlaying$",i),B=()=>y(Xo,"$bottomNoSmooth",i),K=()=>y(Qi,"$interactiveTimeIndicator",i),q=()=>y(mo,"$playerSize",i),te=()=>y(Zt,"$is3DVideo",i),ne=()=>y(ro,"$contextMenuVisible$",i),ve=()=>y(yi,"$playbackState$",i),j=()=>y(ao,"$hotKeyMapData",i),ge=()=>y(Yo,"$scrubbingInProgress",i),X=()=>y(Li,"$volumeChangingInProgress",i),Pe=()=>y(Vi,"$chromecastConnected$",i),Ee=()=>y(Po,"$controlsTimeoutActive",i),Me=()=>y(po,"$settingsMenuOpenedByKeyboard",i),ue=()=>y(Vo,"$contextMenuOpenedByKeyboard$",i),De=()=>y(Sr,"$contextMenuButtonRef$",i),oe=()=>y(tt,"$contextMenuOpenedByHotKey$",i),V=()=>y(Rt,"$contextMenuLastActiveElem$",i),Qe=()=>y(So,"$isFullscreenOpenedByKeyboard",i),ce=()=>y(Ht,"$language$",i),Fe=()=>y(ht,"$icon3DVideoVisible",i),z=()=>y(ei,"$chromecastDeviceName$",i),ie=()=>y(In,"$currentSubtitle$",i),Te=()=>y(Ri,"$currentSubtitleCaptions$",i),J=()=>y(Qo,"$position$",i),Ue=()=>y(cn,"$duration$",i),ot=()=>y(Ki,"$isLive$",i),de=()=>y(vt,"$isPlaying$",i),Ae=()=>y(vo,"$contextMenuPosition$",i),qe=()=>y(Ci,"$showHotKeyMap",i),je=()=>y(G,"$debugPanelVisible",i),mt=()=>y(jn,"$userActionsDisabled$",i),ft=m(e,"videoContainer",15),Xe=m(e,"adsSlotId",3,void 0),$t=m(e,"adsParams",3,void 0),ct=m(e,"adsPreviewParam",3,void 0),Lt=m(e,"adsAutoplayParam",3,void 0),zt=m(e,"duration",3,void 0),ze=m(e,"logoTargetUrl",3,""),Et=m(e,"showNextPrevButtons",3,!1),Q=m(e,"nextButtonActive",3,!1),be=m(e,"prevButtonActive",3,!1),ae=m(e,"endScreenVideoTitle",3,void 0),Ie=m(e,"endScreenVideoThumb",3,void 0),nt=m(e,"isOneVideoPlaylist",3,!1),Re=m(e,"shadowRootContainer",3,void 0),me=m(e,"outerContainerRef",3,void 0),Ge=m(e,"playerStarted",3,!1),pt=m(e,"fullScreenTarget",3,void 0),kt=m(e,"showMiniTimer",3,!1),qt=m(e,"showEndScreen",3,!0),Be=m(e,"keyboardControls",15),Ze=e.store.getLogger().createComponentLog("Root component"),Ht=e.store.interfaceLanguage$,yi=e.store.state.playbackState$,xi=e.store.ads.playbackState,Qo=e.store.state.positionWithScrubbing$,cn=e.store.state.duration$,un=e.store.playerPhase,Go=e.store.ui.isFullscreen,So=e.store.ui.isFullscreenOpenedByKeyboard,qi=e.store.ui.controlsVisible,Wt=e.store.ui.settingsMenu.visible$,po=e.store.ui.settingsMenu.openedByBtnKeyboard$,Yo=e.store.ui.scrubbingInProgress,Li=e.store.ui.volumeChangingInProgress,ro=e.store.ui.contextMenu.visible$,G=e.store.ui.debugPanelVisible,Kt=e.store.state.isLoaderVisible,Jt=e.store.state.isEnded$,Vi=e.store.state.chromecastConnected$,ei=e.store.state.chromecastDeviceName$,at=e.store.ads.postrollPassed,Ki=e.store.state.isLive$,vt=e.store.state.isPlaying$,Ft=e.store.state.crashed$,fo=e.store.webApi.annotationsApi,wi=e.store.webApi.pictureInPictureApi,In=e.store.state.currentSubtitle$,Ri=e.store.state.currentSubtitleCaptions$,mo=e.store.ui.playerSize,Zt=e.store.ui.is3DVideo,ht=e.store.ui.icon3DVideoVisible,vi=e.store.state.isInteractive,Co=e.store.state.isInteractiveTime$,Xt=e.store.state.isInteractiveExpectation$,ko=e.store.state.hasInteractiveBranches,Si=e.store.ui.touched,ao=e.store.ui.modals.hotKeyMap.data,Ci=e.store.ui.modals.hotKeyMap.show,En=e.store.ui.overlayContainer$,Qi=e.store.ui.controls.interactiveTimeIndicator,pn=e.store.state.showInteractiveTimeIndicator,vo=e.store.ui.contextMenu.position$,go=e.store.actions.internal.setQuality,fn=e.store.actions.internal.closeSettingsMenu,hr=e.store.ui.autoplayNextEnabled$,jn=e.store.ui.userActionsDisabled,mn=e.store.ui.isControlsAvailable,{fakeIsPlaying$:jo,notifications$:Pn,graphIsOpened$:st}=zi(),Gi=Y(void 0),To=Y(void 0),vn=Y(void 0),ho=Y(void 0),Io,An,_o;ao.set(Qg());let{closeNotification:Mn,notificationsToShow$:Zo}=Pn,Ln=v(()=>!!n().slow_video),Eo=()=>Mn("slow_video"),Yi=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),ai=Y(void 0),Xo=re(!1),Jo,Po=re(!1),ji=re(),gn=re(!1),so=Y(!1),ki=Y(!1),Zn=Y(!1),bo=Y(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Vn=v(()=>c()&&!u()&&!(r(so)||r(ki))&&!(r(Zn)&&!b())),hn=!0,Rn=v(()=>e.uiConfig.features.thumbTimer&&kt()&&a()==="video"&&!p()&&!l()&&!vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Xn=v(()=>a()==="video"&&!w()&&x()),en=Y(!1),_r=v(()=>(qt()||e.showAutoplayNext&&k())&&!!ae()&&!!Ie()&&(e.showAds&&T()||!e.showAds)&&C()&&!l()&&!r(en)),Jn=v(()=>R()&&!(p()||r(_r))&&!c()&&A()),Bn=Y(!1),br=v(()=>E()!==null),{toggle:$r}=jo,rt=!1,Ye=null;wi?.setContext(ul());let si=()=>{e.autoplay&&!vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Qt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:si});let Zi=()=>{window.clearTimeout(Io),Po.set(!1)},li=()=>{window.clearTimeout(An),ji.set(null)},Qt=Se=>{Zi(),Po.set(!0),Io=window.setTimeout(()=>Po.set(!1),Se);let Vt=Se-100;Jo=window.setTimeout(()=>{B()&&Xo.set(!1)},Vt>0?Vt:Se)},lo=(Se,Vt)=>{li(),ji.set(Vt),An=window.setTimeout(()=>ji.set(null),Se)},Ao=Zt.subscribe(Se=>{ht.set(Se),Se&&(window.clearTimeout(_o),_o=window.setTimeout(()=>ht.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Mo=async()=>{let Se=sa();if(Se){let Vt=Sl(),Gt=gi();Se=Vt===Gt||Vt===Re()}if(Se){Qt(e.uiConfig.controls.hideTimeoutFullscreen);try{await wi?.remove()}catch(Vt){Ze({message:String(Vt)})}}Go.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),x()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},Je=Se=>{let{width:Vt,height:Gt}=Se.target;mo.set({width:Vt,height:Gt})},yt=()=>{let{width:Se,height:Vt}=r(Gi).getBoundingClientRect();mo.set({width:Se,height:Vt})};At(()=>(vc(Mo),e.uiConfig.features.annotationsInside&&fo?.init(r(Gi)),Ha(wi)&&(wi?.assignPlayerContainer(r(Gi)),wi?.registryExternalEventHandlers({resize:Je,leavepictureinpicture:yt})),e.interactiveContainer&&ft().parentElement?.insertBefore(e.interactiveContainer,ft().nextSibling),()=>{window.clearTimeout(Io),window.clearTimeout(Jo),window.clearTimeout(An),window.clearTimeout(_o),Ao(),wi?.dispose().catch(Vt=>{Ze({message:String(Vt)})}),gc(Mo)}));let gi=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!me()?r(Gi):me(),Vt=Se.getRootNode(),Gt=Vt instanceof ShadowRoot?Vt.host:Vt,Ne=pt()instanceof HTMLElement&&pt().contains(Gt);return e.uiConfig.allowChangingFullscreenTarget&&pt()&&Ne?pt():Se},Bi=async()=>{sa()?(await mc(document),Ze({message:"exit fullscreen"})):(Ze({message:"request fullscreen"}),await fc(gi()))},pi=()=>{fn(),ro.set(!1)},yr=Se=>{w()||(Se.preventDefault(),ro.set(!0),vo.set({left:Se.clientX,top:Se.clientY}))};function er(){gn.set(!0),vi||Qt(e.uiConfig.controls.hideTimeoutCursor)}function Vr(){vi||(Xo.set(!0),Qt(e.uiConfig.controls.hideTimeoutCursor))}function tr(){gn.set(!1),N(ki,!1),N(so,!1),rt=!1,e.store.actions.internal.releaseCamera(),Qt(e.uiConfig.controls.hideTimeout)}function Nn(Se){return Se?Se.offsetTop+Nn(Se.offsetParent):0}function Ai(Se){return Se?Se.offsetLeft+Ai(Se.offsetParent):0}function _n(Se){if(K()&&pn){let Vt=Se.currentTarget,Gt=Nn(Vt),Ne=Ai(Vt),Nt=Se.pageX-Ne,Ti=Se.pageY-Gt,{left:bi,bottom:fi,right:$n}=K(),Xi=$n-bi;return Nt>=bi-Xi&&Ti<=fi+Xi}}function Lo(Se){if(r(Gi)){let Vt=Nn(Se.currentTarget),Gt=q().height,Ne=Se.pageY-Vt;if(_n(Se)){N(ki,!1);return}Ne<40?N(ki,!0):Ne>Gt-40?N(so,!0):(N(ki,!1),u()||N(so,!1))}}function ir(Se){Lo(Se),r(Vn)||Qt(e.uiConfig.controls.hideTimeoutCursor),te()&&rt&&Ye&&e.store.actions.internal.moveCameraFocusPX(Ye.clientX-Se.clientX,Ye.clientY-Se.clientY,Se.timeStamp-Ye.timeStamp),Ye=Se}let bn=Se=>{Se.preventDefault(),Se.button===0&&(rt=!0,e.store.actions.internal.holdCamera()),Qt(e.uiConfig.controls.hideTimeoutCursor)},xr=Se=>{Se.preventDefault(),Se.button===0&&(Ye=Se,rt=!1,e.store.actions.internal.releaseCamera()),Qt(e.uiConfig.controls.hideTimeoutCursor)},Dn=Se=>{Se.preventDefault(),hn&&(Ze({message:"double click on video"}),Bi(),Qt(e.uiConfig.controls.hideTimeoutCursor))},or=Se=>{if(Se.preventDefault(),ne()||u()){pi();return}if(!(C()&&!ko)){if(r(br))return $r();if(Be()?.focus(),!Ge()){e.firstStart(),Qt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ve()!==Gh.PLAYING)&&e.store.actions.internal.togglePlay(),Qt(e.uiConfig.controls.hideTimeoutCursor)}},On=Se=>{pi(),Si.set(!0),Qt(e.uiConfig.controls.hideTimeout),Se&&lo(e.uiConfig.controls.hideHotKeyHelpers,Se)},wr=()=>{pi(),e.store.callbacks?.onOpenHotKeyMap?e.store.callbacks?.onOpenHotKeyMap(j()):Ci.update(Se=>!Se)},nr=()=>{Si.set(!0)},Vo=e.store.ui.contextMenu.openedByBtnKeyboard$,Sr=e.store.ui.contextMenu.btnRef$,Ro=Y(void 0),tt=e.store.ui.contextMenu.openedByHotKey$,Rt=e.store.ui.contextMenu.lastActiveElem$;He(()=>{En.set(r(ai))}),He(()=>{N(Zn,le(r(bo)&&ve()!==Gh.PLAYING)),r(bo)||gt(()=>N(bo,!0))}),He(()=>{qi.set((r(Zn)||C()||u()||ge()||X()||Pe()||Ee())&&!r(Vn)&&(a()==="video"||a()==="ads")&&!l()&&A())}),He(()=>{!ge()&&r(Bn)&&!c()&&Qt(e.uiConfig.controls.hideTimeoutCursor),gt(()=>N(Bn,le(ge())))}),He(()=>{r(ho),u(),Me(),gt(()=>Rs(r(ho),u(),Me()))}),He(()=>{r(Ro),ne(),ue(),gt(()=>Rs(r(Ro),ne(),ue()))}),He(()=>{let Se=De();Se&&(ne(),gt(()=>Vs(Se,ne(),Vo)))}),He(()=>{r(Ro),ne(),oe(),gt(()=>Rs(r(Ro),ne(),oe()))}),He(()=>{let Se=V();Se&&(ne(),gt(()=>Jg(Se,ne(),tt)))}),He(()=>{!Qe()&&x()&&(gt(()=>So.set(!1)),Be()?.focus())}),He(()=>{w()&&pi()});let hi=F("video360");var Bo=P3();_t("blur",Ia,pi);var di=se(Bo);di.__mousemove=ir;var No=h(di);let Hn=v(()=>a()==="ads"),Fn=v(()=>r(br)?$r:void 0);dt(Ep(No,{toggleFullscreen:Bi,hideContextMenu:pi,showHotKeyHelpers:On,showKeyMap:wr,get isAds(){return r(Hn)},get fakePlayButtonHandler(){return r(Fn)},get nextButtonActive(){return Q()},get prevButtonActive(){return be()},children:(Se,Vt)=>{var Gt=I3(),Ne=se(Gt);ns(Ne,{get hideCursor(){return r(Jn)},onClick:or,onContextMenu:yr,onMouseDown:bn,onMouseUp:xr,onDblClick:Dn,get videoContainer(){return ft()},set videoContainer(bi){ft(bi)}});var Nt=P(Ne,2);Va(Nt,()=>"slot",!1,(bi,fi)=>{we(bi,null,{name:os})});var Ti=P(Nt,2);La(Ti,ce,bi=>{var fi=T3(),$n=se(fi);let Xi=v(()=>a()!=="thumb"||l()||vi&&e.autoplay);es($n,{get hidden(){return r(Xi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var rr=P($n,2);dm(rr,{});var tn=P(rr,2);{var Jr=We=>{let Yt=v(()=>e.live?.startTime);sd(We,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Yt)}})};L(tn,We=>{a()==="LiveWaitingStart"&&We(Jr)})}var ga=P(tn,2);{var Un=We=>{ts(We,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(ga,We=>{a()==="LiveWaitingRecover"&&We(Un)})}var rs=P(ga,2);{var Qs=We=>{ts(We,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(rs,We=>{a()==="LiveWaitingRecord"&&We(Qs)})}var as=P(rs,2);{var ss=We=>{var Yt=w3();let zn;var ba=h(Yt);Cl(ba,{get adsSlotId(){return Xe()},get adsParams(){return $t()},get adsPreviewParam(){return ct()},get adsAutoplayParam(){return Lt()},get duration(){return zt()}}),g(Yt),S(Wn=>zn=Z(Yt,1,"ads-container svelte-jtgjmv",null,zn,Wn),[()=>({hidden:a()!=="ads"})]),_(We,Yt)};L(as,We=>{e.showAds&&Ge()&&We(ss)})}var ls=P(as,2);{var Gs=We=>{let Yt=v(()=>!qt()&&e.showAutoplayNext&&k());kp(We,{get title(){return ae()},get thumb(){return Ie()},get isHide(){return r(Yt)},clickCloseIcon:()=>N(en,!0)})};L(ls,We=>{r(_r)&&ae()&&Ie()&&We(Gs)})}var xt=P(ls,2);{var Ct=We=>{let Yt=v(()=>!p());Df(We,{get title(){return e.title},get isHidden(){return r(Yt)}})};L(xt,We=>{r(Xn)&&We(Ct)})}var Mi=P(xt,2);{var Rr=We=>{let Yt=v(()=>a()==="video"&&p());nd(We,{get isShifted(){return r(Yt)}})};L(Mi,We=>{te()&&We(Rr)})}var ea=P(Mi,2);{var Br=We=>{var Yt=S3(),zn=h(Yt);wl(zn,{"aria-label":hi}),g(Yt),_(We,Yt)};L(ea,We=>{Fe()&&We(Br)})}var ar=P(ea,2);{var ha=We=>{rd(We,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return z()}})};L(ar,We=>{Pe()&&We(ha)})}var ds=P(ar,2);{var eu=We=>{Ja(We,{get shifted(){return p()},get captions(){return Te()},get position(){return J()},get playerSize(){return q()}})};L(ds,We=>{ie().value!=="off"&&We(eu)})}var xd=P(ds,2);{var tu=We=>{var Yt=C3();Yt.__contextmenu=yr,Yt.__click=[x3,ne,ro,u,Wt,pi];var zn=h(Yt);ad(zn,{}),g(Yt),_(We,Yt)};L(xd,We=>{l()&&We(tu)})}var wd=P(xd,2);{var iu=We=>{let Yt=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),zn=v(()=>a()==="ads"),ba=v(()=>e.canRewindLive&&Ue()!==0);od(We,{get bottomHidden(){return r(Yt)},get bottomNoSmooth(){return B()},get showControls(){return p()},get isAds(){return r(zn)},get canRewindLive(){return r(ba)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return ze()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Et()},get nextButtonActive(){return Q()},get prevButtonActive(){return be()},get isOneVideoPlaylist(){return nt()},customFullscreenSupported:hn,toggleFullscreen:Bi,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(To)},set playerControlsWrapperRef(Wn){N(To,le(Wn))},get playerControlsRef(){return r(vn)},set playerControlsRef(Wn){N(vn,le(Wn))}})};L(wd,We=>{Ge()&&We(iu)})}var Sd=P(wd,2);{var ou=We=>{var Yt=k3(),zn=h(Yt);let ba=v(()=>r(vn)?.clientHeight);cd(zn,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(ba)},returnFocus:()=>Be()?.focus(),get ref(){return r(ho)},set ref(Wn){N(ho,le(Wn))}}),g(Yt),_(We,Yt)};L(Sd,We=>{!Pe()&&a()!=="ads"&&We(ou)})}var Cd=P(Sd,2);let nu=v(()=>!r(Rn));Il(Cd,{get isLive(){return ot()},get isHidden(){return r(nu)},get isPlaying(){return de()},get position(){return J()},get duration(){return Ue()}});var _a=P(Cd,2);Vf(_a,{data:ji});var kd=P(_a,2);Cp(kd,{get supportLink(){return e.supportLink},returnFocus:()=>Be()?.focus(),get visible(){return ne()},get playerContainerRef(){return r(Gi)},get controlsContainerRef(){return r(To)},get position(){return Ae()},get menuElementRef(){return r(Ro)},set menuElementRef(We){N(Ro,le(We))}});var Ys=P(kd,2);{var Td=We=>{ud(We,{onClose:Eo,onSelectAutoQuality:()=>{go("auto"),Eo()}})};L(Ys,We=>{r(Ln)&&We(Td)})}var Id=P(Ys,2);{var Ed=We=>{qa(We,{})};L(Id,We=>{r(Yi)&&We(Ed)})}var cs=P(Id,2);{var Pd=We=>{Mp(We,{})};L(cs,We=>{qe()&&We(Pd)})}var ru=P(cs,2);{var Ad=We=>{Ml(We,{})};L(ru,We=>{je()&&We(Ad)})}_(bi,fi)}),_(Se,Gt)},$$slots:{default:!0}}),Se=>Be(Se),()=>Be());var _i=P(No,2);dt(_i,Se=>N(ai,Se),()=>r(ai)),g(di),dt(di,Se=>N(Gi,Se),()=>r(Gi));var ti=P(di,2);{var Ni=Se=>{var Vt=E3();_(Se,Vt)};L(ti,Se=>{mt()&&Se(Ni)})}_t("mouseenter",di,er),_t("mouseleave",di,tr),_t("click",di,nr,!0),_t("focusin",di,Vr,!0),_(t,Bo),H(),o()}it(["mousemove","contextmenu","click"]);import{clientChecker as pd,PlaybackState as F3}from"@vkontakte/videoplayer-core";import{noop as U3}from"@vkontakte/videoplayer-shared";var M3=M('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),L3=M("<div><!></div>"),V3={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
345
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
346
346
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
347
347
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -357,8 +357,7 @@ Try switching the\xA0quality to\xA0Auto.`},Bg=T0;var Qr=new Map;Qr.set(Og.EN,Bg)
357
357
  100% {
358
358
  opacity: 0;
359
359
  }
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 zc(t,e){H(e,!0),U(t,V3);let i=m(e,"seekStep",3,0),o=G(!1),n=0,a=0,s=G(ce(i())),d=_=>{_.stopPropagation(),a+=1,B(s,i()*(a-1)),a===1?e.handleSingleFirstClick(_):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,B(o,!1)},300)};an(()=>{window.clearTimeout(n)});var l=L3();l.__click=d;var c=h(l);{var p=_=>{var u=M3(),$=le(u),w=P($,2),x=h(w),C=h(x),T=P(C,2),I=P(T,2);g(x);var A=P(x,2),L=h(A,!0);g(A),g(w),S(E=>{Y($,1,`semicircle ${e.side??""}`,"svelte-nhq2ld"),Y(C,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),Y(T,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),Y(I,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),fe(L,E)},[()=>O("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),b(_,u)};V(c,_=>{r(o)&&_(p)})}g(l),S(()=>Y(l,1,`double-click-area ${e.side??""}`,"svelte-nhq2ld")),b(t,l),F()}nt(["click"]);var R3=(t,e,i)=>{e(!1),i()},N3=M('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),B3={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){H(e,!0),U(t,B3);let[i,o]=Le(),n=()=>y(d,"$autoplayNextEnabled$",i),a=()=>y(l,"$timerNextVideoRunning$",i),s=$e(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,c=s.actions.internal.nextVideoClick,p=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{c(!1),u()},x=()=>{e.clickCloseIcon(),$()};Lt(()=>{e.isHide||p(),e.isHide&&n()&&(c(!1),u())});var C=De(),T=le(C);{var I=A=>{var L=N3(),E=P(le(L),2),N=h(E),W=h(N),K=h(W,!0);g(W);var Z=P(W,2);Wa(Z,{onClick:x}),g(N);var oe=P(N,2);oe.__click=[R3,c,_];var ue=h(oe),j=h(ue),_e=h(j);let ee;var Ae=P(_e,2);{var Ee=ie=>{Ll(ie,{get isRunning(){return a()},onTimerEnded:w})};V(Ae,ie=>{n()&&ie(Ee)})}g(j),g(ue);var Ve=P(ue,2),pe=h(Ve),Oe=h(pe,!0);g(pe),g(Ve),g(oe),g(E),S((ie,R)=>{fe(K,ie),it(j,`background-image: url('${e.thumb}')`),ee=Y(_e,1,"thumb-overlay svelte-1qdxi6t",null,ee,R),fe(Oe,e.title)},[()=>n()?O("end_screen_next_video"):O("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(A,L)};V(T,A=>{e.isHide||A(I)})}b(t,C),F(),o()}nt(["click"]);import{clientChecker as D3}from"@vkontakte/videoplayer-core";var Gh=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Lt(()=>{D3.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))}),an(()=>{i?.(),clearTimeout(o)})};import{VideoFormat as O3}from"@vkontakte/videoplayer-core";var Wc=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(){return this.getTracksArray().find(e=>e.track.mode==="showing")?.id??null}};import{clientChecker as H3}from"@vkontakte/videoplayer-core";var jh=({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,c=()=>e().querySelector("video"),p=()=>H3.device.isIOS&&be(s)===O3.DASH_LIVE_CMAF,_=()=>{l?.(),l=null},u=$=>{if(_(),!p()||!$)return;let w=c();if(!w)return;let x=new Wc(w),C=be(d),T=be(a),I=be(n);for(let E of C)T.some(W=>W.value===E.id)&&x.attach(E,I.value===E.id);let A=d.subscribe(E=>{for(let N of E)x.updateSrc(N)}),L=()=>{let E=x.getCurrentShowingId();o(be(a).find(N=>N.value===E))};w.textTracks.addEventListener("change",L),l=()=>{A(),x.detachAll(),w.textTracks.removeEventListener("change",L)}};Lt(()=>i.subscribe(u)),an(_)};var z3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},W3=M("<!> <!>",1),q3=M("<div><!></div>"),K3=M('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),Q3=M("<div><!></div>"),G3=M('<div class="settings-mobile svelte-dtyj47"><!></div>'),j3=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Y3=M('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Z3={hash:"svelte-dtyj47",code:`.player-wrapper.svelte-dtyj47 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-dtyj47 .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-dtyj47 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}
361
- .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {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 um(t,e){H(e,!0),U(t,Z3);let[i,o]=Le(),n=()=>y(Fe,"$playerPhase",i),a=()=>y(qi,"$isLoaderVisible",i),s=()=>y(st,"$adPlaybackState",i),d=()=>y(dt,"$crashed",i),l=()=>y(tt,"$notificationsToShow$",i),c=()=>y(Ye,"$playbackState$",i),p=()=>y(ot,"$graphIsOpened$",i),_=()=>y(pi,"$interactiveHideMobileControls",i),u=()=>y(Qt,"$isEnded$",i),$=()=>y(po,"$isInteractiveExpectation$",i),w=()=>y(Dt,"$controlsVisible",i),x=()=>y(bi,"$touched",i),C=()=>y(no,"$autoplayNextEnabled$",i),T=()=>y(un,"$postrollPassed",i),I=()=>y(zo,"$bottomNoSmooth",i),A=()=>y(zt,"$videoSize",i),L=()=>y(io,"$playerSize",i),E=()=>y(Ze,"$isFullscreen",i),N=()=>y($t,"$position$",i),W=()=>y(Pt,"$duration$",i),K=()=>y(Tn,"$loadedMetadata",i),Z=()=>y(Ho,"$settingsMenuVisible",i),oe=()=>y(cn,"$scrubbingInProgress",i),ue=()=>y(So,"$volumeChangingInProgress",i),j=()=>y(uo,"$chromecastConnected$",i),_e=()=>y(li,"$isControlsAvailable",i),ee=()=>y(di,"$isInteractiveTime$",i),Ae=()=>y(Vi,"$isActiveLive",i),Ee=()=>y(dn,"$settingsMenuOpenedByKeyboard",i),Ve=()=>y(Ie,"$language$",i),pe=()=>y(fo,"$disabledControls$",i),Oe=()=>y(ko,"$is3DVideo",i),ie=()=>y(Xt,"$icon3DVideoVisible",i),R=()=>y(Fo,"$chromecastDeviceName$",i),Qe=()=>y(to,"$currentSubtitle$",i),ne=()=>y(ki,"$currentSubtitleCaptions$",i),We=()=>y(Qn,"$realDuration$",i),re=()=>y(jt,"$isLive$",i),ae=()=>y(Gt,"$isPlaying$",i),X=()=>y(Co,"$debugPanelVisible",i),J=m(e,"videoContainer",15),ze=m(e,"adsSlotId",3,void 0),Be=m(e,"adsParams",3,void 0),ye=m(e,"adsPreviewParam",3,void 0),Me=m(e,"adsAutoplayParam",3,void 0),Ge=m(e,"duration",3,void 0),Xe=m(e,"logoTargetUrl",3,""),ft=m(e,"showNextPrevButtons",3,!1),ut=m(e,"nextButtonActive",3,!1),et=m(e,"prevButtonActive",3,!1),bt=m(e,"endScreenVideoTitle",3,void 0),pt=m(e,"endScreenVideoThumb",3,void 0),Nt=m(e,"isOneVideoPlaylist",3,!1),Kt=m(e,"shadowRootContainer",3,void 0),Ue=m(e,"outerContainerRef",3,void 0),Et=m(e,"showMiniTimer",3,!1),q=m(e,"fullScreenTarget",3,void 0),he=m(e,"playerStarted",3,!1),de=m(e,"showEndScreen",3,!0),{notifications$:Pe,graphIsOpened$:ot}=Wi(),Re=e.store.getLogger().createComponentLog("Root component"),Ie=e.store.interfaceLanguage$,Ye=e.store.state.playbackState$,st=e.store.ads.playbackState,$t=e.store.state.positionWithScrubbing$,Pt=e.store.state.duration$,Fe=e.store.playerPhase,Ze=e.store.ui.isFullscreen,Dt=e.store.ui.controlsVisible,li=e.store.ui.isControlsAvailable,pi=e.store.ui.interactiveHideMobileControls,Ho=e.store.ui.settingsMenu.visible$,dn=e.store.ui.settingsMenu.openedByBtnKeyboard$,cn=e.store.ui.scrubbingInProgress,So=e.store.ui.volumeChangingInProgress,Co=e.store.ui.debugPanelVisible,qi=e.store.state.isLoaderVisible,Qt=e.store.state.isEnded$,uo=e.store.state.chromecastConnected$,Fo=e.store.state.chromecastDeviceName$,un=e.store.ads.postrollPassed,eo=e.store.ui.mobileUnmuteButtonExpanded,Q=e.store.ui.mobileUnmuteButtonVisible,jt=e.store.state.isLive$,Gt=e.store.state.isPlaying$,Vi=e.store.state.isActiveLive$,oi=e.store.state.isRewindableLive$,dt=e.store.state.crashed$,Ri=e.store.webApi.annotationsApi,mt=e.store.webApi.pictureInPictureApi,zt=e.store.state.videoSize$,to=e.store.state.currentSubtitle$,ki=e.store.state.currentSubtitleCaptions$,Qn=e.store.state.duration$,io=e.store.ui.playerSize,ko=e.store.ui.is3DVideo,Xt=e.store.ui.icon3DVideoVisible,gt=e.store.state.isInteractive,di=e.store.state.isInteractiveTime$,po=e.store.state.isInteractiveExpectation$,ei=e.store.state.hasInteractiveBranches,fo=e.store.ui.controls.disabledControls$,bi=e.store.ui.touched,oo=e.store.ui.overlayContainer$,no=e.store.ui.autoplayNextEnabled$,Tn=e.store.state.loadedMetadata$,ro=e.store.actions.internal.closeSettingsMenu,pn=e.store.callbacks?.onDisabledPlayPrevChapterClick,Ti=e.store.callbacks?.onDisabledSeekToInteractiveClick,mo=e.store.actions.internal.setQuality,Uo=G(void 0),vr=G(void 0),Gn=G(void 0),In=G(void 0),fn,En,jn,Ni=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),vo=G(void 0),{closeNotification:mn,notificationsToShow$:tt}=Pe,vn=v(()=>!!l().slow_video),Pn=()=>mn("slow_video"),zo=se(!1),Yn,Wo=G(!1),qo=v(()=>c()!==F3.PLAYING),Ko=G(!1),Ii=v(()=>p()||_()||!r(Wo)&&(u()&&!!ei||r(qo)&&$())),$i=G(!0),Qo=v(()=>e.uiConfig.features.thumbTimer&&Et()&&n()==="video"&&!w()&&!d()&&!gt&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),An=G(!1),To=v(()=>(de()||e.showAutoplayNext&&C())&&!!bt()&&!!pt()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(An)),Go=G(!1);mt?.setContext(ul());let go=rt=>{clearTimeout(En),rt&&(Q.set(!0),eo.set(!0),En=setTimeout(()=>{eo.set(!1)},e.uiConfig.controls.collapseMobileUnmute),gt||gi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:go});let Ki=()=>{clearTimeout(fn),B(Wo,!1),_()&&pi.set(!1)},gi=rt=>{Ki(),B(Wo,!0),fn=setTimeout(()=>B(Wo,!1),rt);let Tt=rt-100;Yn=setTimeout(()=>{I()&&zo.set(!1)},Tt>0?Tt:rt)},Mn=ko.subscribe(rt=>{Xt.set(rt),rt&&(clearTimeout(jn),jn=setTimeout(()=>Xt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Bi=async(rt=la())=>{if(rt&&!pd.device.isIOS){let Tt=Sl(),mi=Io(),Ei=pd.browser.isSamsungBrowser&&Tt===Kt();rt=Tt===mi||Ei}if(rt){gi(e.uiConfig.controls.hideTimeoutFullscreen);try{await mt?.remove()}catch(Tt){Re({message:String(Tt)})}try{let Tt=A()?.width&&A()?.height?A():L();await Wg(Tt)}catch(Tt){Re({message:String(Tt)})}}Ze.set(rt),e.store.getAdmanWrapper().setFullscreen(rt),E()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},gn=rt=>{let Tt=rt;io.set({width:Tt.target.width,height:Tt.target.height})};Lt(()=>(vc(Bi),e.uiConfig.features.annotationsInside&&Ri?.init(r(Uo)),Fa(mt)&&(mt?.assignPlayerContainer(r(Uo)),mt?.registryExternalEventHandlers({resize:gn})),B($i,!pd.device.isIphoneOrOldIpad),e.interactiveContainer&&J().parentElement?.insertBefore(e.interactiveContainer,J().nextSibling),()=>{clearTimeout(fn),clearTimeout(Yn),clearTimeout(En),clearTimeout(jn),Mn(),mt?.dispose().catch(rt=>{Re({message:String(rt)})}),gc(Bi)}));let Ln=G(!0),jo=G(!0),gr=rt=>{let Tt=N()+(rt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Tt<0?(B(Ln,!1),Tt=0):Tt>=W()&&(B(jo,!1),Tt=W()),B(Ko,!0),e.seekTime(Tt)},Io=()=>{let rt=pd.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ue()?r(Uo):Ue(),Tt=rt.getRootNode(),mi=Tt instanceof ShadowRoot?Tt.host:Tt,Ei=q()instanceof HTMLElement&&q().contains(mi);return e.uiConfig.allowChangingFullscreenTarget&&q()&&Ei?q():rt},hr=async()=>{try{if(la())await mc(document),Re({message:"exit fullscreen"});else{if(Re({message:"request fullscreen"}),pd.device.isIOS&&!K())return;await fc(Io())}}catch(rt){Re({message:String(rt)})}},Vn=()=>{ro()},Rn=rt=>{if(rt.preventDefault(),Z()){Vn();return}if(!he()){e.firstStart(),gi(e.uiConfig.controls.hideTimeoutCursor);return}B(Ko,!1),w()?Ki():gi(e.uiConfig.controls.hideTimeoutMobile)},Zn=()=>{bi.set(!0)},_r=()=>{gt||(zo.set(!0),gi(e.uiConfig.controls.hideTimeoutCursor))},hn=rt=>{pn&&(pn(rt),gi(e.uiConfig.controls.hideTimeoutMobile))},Wt=rt=>{Ti&&(Ti(rt),gi(e.uiConfig.controls.hideTimeoutMobile))};He(()=>{oo.set(r(vo))}),He(()=>{Dt.set((r(qo)||Z()||oe()||ue()||j()||!r(To)&&(u()||r(Wo)&&!r(Ko)))&&!r(Ii)&&n()==="video"&&!d()&&_e())}),He(()=>{!oe()&&r(Go)&&!ee()&&gi(e.uiConfig.controls.hideTimeoutMobile),B(Go,ce(oe()))}),He(()=>{B(Ln,N()>0),B(jo,ce(!Ae()&&N()<W()))}),He(()=>{Ns(r(In),Z(),Ee())});let Xn=O("aria_label_video_player"),br=O("video360");Gh({fullScreenChangeHandler:Bi,getFullscreenTarget:Io}),jh({store:e.store,getFullscreenTarget:Io});var ho=Y3();ht("blur",Ea,Vn),Ne(ho,"aria-label",Xn);var je=h(ho);rs(je,{onClick:Rn,get videoContainer(){return J()},set videoContainer(rt){J(rt)}});var Mt=P(je,2);Ra(Mt,()=>"slot",!1,(rt,Tt)=>{xe(rt,null,{name:ns})});var fi=P(Mt,2);Va(fi,Ve,rt=>{var Tt=j3(),mi=le(Tt);let Ei=v(()=>n()!=="thumb"||d()||gt&&e.autoplay);ts(mi,{get hidden(){return r(Ei)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var yi=P(mi,2);{var xi=we=>{var Ct=W3(),ii=le(Ct);{var ti=Qi=>{let or=v(()=>e.uiConfig.controls.seekStepMobile/1e3);zc(Qi,{side:"left",get seekStep(){return r(or)},handleSingleFirstClick:Rn,handleSecondClick:()=>gr("backward")})};V(ii,Qi=>{r(Ln)&&Qi(ti)})}var Ht=P(ii,2);{var _n=Qi=>{let or=v(()=>e.uiConfig.controls.seekStepMobile/1e3);zc(Qi,{side:"right",get seekStep(){return r(or)},handleSingleFirstClick:Rn,handleSecondClick:()=>gr("forward")})};V(Ht,Qi=>{r(jo)&&Qi(_n)})}b(we,Ct)};V(yi,we=>{e.canRewindLive&&oi&&!pe().has("TIMELINE")&&we(xi)})}var Pi=P(yi,2);{var Eo=we=>{let Ct=v(()=>e.live?.startTime);sd(we,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Ct)}})};V(Pi,we=>{n()==="LiveWaitingStart"&&we(Eo)})}var Yo=P(Pi,2);{var Di=we=>{is(we,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Yo,we=>{n()==="LiveWaitingRecover"&&we(Di)})}var Ai=P(Yo,2);{var Zo=we=>{is(we,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Ai,we=>{n()==="LiveWaitingRecord"&&we(Zo)})}var Nn=P(Ai,2);{var Jn=we=>{var Ct=q3();let ii;var ti=h(Ct);Cl(ti,{get adsSlotId(){return ze()},get adsParams(){return Be()},get adsPreviewParam(){return ye()},get adsAutoplayParam(){return Me()},get duration(){return Ge()}}),g(Ct),S(Ht=>ii=Y(Ct,1,"ads-container svelte-dtyj47",null,ii,Ht),[()=>({hidden:n()!=="ads"})]),b(we,Ct)};V(Nn,we=>{e.showAds&&he()&&we(Jn)})}var Bn=P(Nn,2);{var $r=we=>{let Ct=v(()=>!de()&&e.showAutoplayNext&&C());cm(we,{get title(){return bt()},get thumb(){return pt()},get isHide(){return r(Ct)},clickCloseIcon:()=>B(An,!0)})};V(Bn,we=>{r(To)&&bt()&&pt()&&we($r)})}var er=P(Bn,2);{var Xo=we=>{nd(we,{})};V(er,we=>{Oe()&&we(Xo)})}var Dn=P(er,2);{var yr=we=>{var Ct=K3(),ii=h(Ct);wl(ii,{"aria-label":br}),g(Ct),b(we,Ct)};V(Dn,we=>{ie()&&we(yr)})}var tr=P(Dn,2);{var _o=we=>{rd(we,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return R()}})};V(tr,we=>{j()&&we(_o)})}var xr=P(tr,2);{var bo=we=>{es(we,{get shifted(){return w()},get captions(){return ne()},get position(){return N()},get playerSize(){return L()},isMobile:!0})};V(xr,we=>{Qe().value!=="off"&&we(bo)})}var ir=P(xr,2);{var Vr=we=>{var Ct=Q3();Ct.__click=[z3,Z,Ho,Vn];var ii=h(Ct);ad(ii,{}),g(Ct),b(we,Ct)};V(ir,we=>{d()&&we(Vr)})}var wr=P(ir,2);{var Sr=we=>{let Ct=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),ii=v(()=>n()==="ads"),ti=v(()=>e.canRewindLive&&We()!==0);od(we,{get bottomHidden(){return r(Ct)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return r(ii)},get canRewindLive(){return r(ti)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Xe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ft()},get nextButtonActive(){return ut()},get prevButtonActive(){return et()},get isOneVideoPlaylist(){return Nt()},get customFullscreenSupported(){return r($i)},get endScreenShown(){return r(To)},toggleFullscreen:hr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:hn,onDisabledSeekToInteractiveClick:Wt,get playerControlsWrapperRef(){return r(vr)},set playerControlsWrapperRef(Ht){B(vr,ce(Ht))},get playerControlsRef(){return r(Gn)},set playerControlsRef(Ht){B(Gn,ce(Ht))}})};V(wr,we=>{he()&&we(Sr)})}var Mi=P(wr,2);{var Je=we=>{var Ct=G3(),ii=h(Ct);cd(ii,{get supportLink(){return e.supportLink},returnFocus:U3,get ref(){return r(In)},set ref(ti){B(In,ce(ti))}}),g(Ct),b(we,Ct)};V(Mi,we=>{Z()&&we(Je)})}var Rt=P(Mi,2);let hi=v(()=>!r(Qo));Il(Rt,{get isLive(){return re()},get isHidden(){return r(hi)},get isPlaying(){return ae()},get position(){return N()},get duration(){return W()}});var so=P(Rt,2);{var Po=we=>{Ka(we,{})};V(so,we=>{r(Ni)&&we(Po)})}var Jo=P(so,2);{var Ce=we=>{Ml(we,{})};V(Jo,we=>{X()&&we(Ce)})}var Bt=P(Jo,2);{var Yt=we=>{ud(we,{onClose:Pn,onSelectAutoQuality:()=>{mo("auto"),Pn()}})};V(Bt,we=>{r(vn)&&we(Yt)})}b(rt,Tt)});var ao=P(fi,2);lt(ao,rt=>B(vo,rt),()=>r(vo)),g(ho),lt(ho,rt=>B(Uo,rt),()=>r(Uo)),ht("click",ho,Zn,!0),ht("focusin",ho,_r,!0),b(t,ho),F(),o()}nt(["click"]);function qc(t){let e="";return kn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),kn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),kn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),kn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),kn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),kn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),kn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),kn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),kn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),kn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),kn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),kn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),kn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function kn(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as X3}from"@vkontakte/videoplayer-shared";var J3=M('<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 pm(t,e){H(e,!0),U(t,ex);let[i,o]=Le(),n=()=>y(ue,"$playerSize",i),a=()=>y(E,"$isPlaying$",i),s=()=>y(A,"$duration$",i),d=()=>y(K,"$positionWithScrubbing$",i),l=()=>y(T,"$playerPhase",i),c=()=>y(I,"$crashed$",i),p=()=>y(N,"$currentSubtitle$",i),_=()=>y(W,"$currentSubtitleCaptions$",i),u=()=>y(L,"$positionExact$",i),$=()=>y(Z,"$isLive$",i),w=()=>y(oe,"$isRewindableLive$",i),x=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:A,positionExact$:L,isPlaying$:E,currentSubtitle$:N,currentSubtitleCaptions$:W,positionWithScrubbing$:K,isLive$:Z,isRewindableLive$:oe},ui:{playerSize:ue,controls:j},actions:{internal:{getVideoElement:_e}}}=$e(),ee=8,Ae=G(!1),Ee=ce({}),Ve=()=>{B(Ae,!0)},pe=()=>{B(Ae,!1)},Oe=X3(Us,260);He(()=>{n(),Oe(_e(),j,Ee,r(Ae))});let ie=v(()=>a()?Oo(s()-d()):Oo(isFinite(s())?s():x()));var R=J3(),Qe=h(R);rs(Qe,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ge){C(Ge)}});var ne=P(Qe,2);Ra(ne,()=>"slot",!1,(Ge,Xe)=>{xe(Ge,null,{name:ns})});var We=P(ne,2);let re=v(()=>l()!=="thumb"||c());ts(We,{get hidden(){return r(re)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ae=P(We,2);{var X=Ge=>{es(Ge,{shifted:!1,get captions(){return _()},get position(){return u()},get playerSize(){return n()}})};V(ae,Ge=>{p().value!=="off"&&Ge(X)})}var J=P(ae,2),ze=h(J);Tl(ze,{get isLive(){return $()},get isPlaying(){return a()},get time(){return r(ie)}}),g(J);var Be=P(J,2);let ye;var Me=h(Be);ja(Me,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ee,tooltipRightOffset:ee,get ref(){return Ee.timeline},set ref(Ge){Ee.timeline=Ge}}),g(Be),g(R),S(Ge=>ye=Y(Be,1,"timeline svelte-1qfjf44",null,ye,Ge),[()=>({visible:r(Ae)})]),ht("mouseenter",R,Ve),ht("mouseleave",R,pe),b(t,R),F(),o()}var nx=M("<div><!></div>"),rx={hash:"svelte-7ed4yj",code:`.root.svelte-7ed4yj {--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;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px 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;
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 Wc(t,e){O(e,!0),U(t,V3);let i=m(e,"seekStep",3,0),o=Y(!1),n=0,a=0,s=Y(le(i())),d=b=>{b.stopPropagation(),a+=1,N(s,i()*(a-1)),a===1?e.handleSingleFirstClick(b):(N(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,N(o,!1)},300)};sn(()=>{window.clearTimeout(n)});var l=L3();l.__click=d;var c=h(l);{var u=b=>{var p=M3(),$=se(p),w=P($,2),x=h(w),k=h(x),T=P(k,2),C=P(T,2);g(x);var R=P(x,2),A=h(R,!0);g(R),g(w),S(E=>{Z($,1,`semicircle ${e.side??""}`,"svelte-nhq2ld"),Z(k,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),Z(T,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),Z(C,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),pe(A,E)},[()=>F("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),_(b,p)};L(c,b=>{r(o)&&b(u)})}g(l),S(()=>Z(l,1,`double-click-area ${e.side??""}`,"svelte-nhq2ld")),_(t,l),H()}it(["click"]);var R3=(t,e,i)=>{e(!1),i()},B3=M('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),N3={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 um(t,e){O(e,!0),U(t,N3);let[i,o]=Ve(),n=()=>y(d,"$autoplayNextEnabled$",i),a=()=>y(l,"$timerNextVideoRunning$",i),s=ye(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,c=s.actions.internal.nextVideoClick,u=s.actions.internal.nextVideoAnnouncementShow,b=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{c(!1),p()},x=()=>{e.clickCloseIcon(),$()};At(()=>{e.isHide||u(),e.isHide&&n()&&(c(!1),p())});var k=Oe(),T=se(k);{var C=R=>{var A=B3(),E=P(se(A),2),B=h(E),K=h(B),q=h(K,!0);g(K);var te=P(K,2);za(te,{onClick:x}),g(B);var ne=P(B,2);ne.__click=[R3,c,b];var ve=h(ne),j=h(ve),ge=h(j);let X;var Pe=P(ge,2);{var Ee=oe=>{Ll(oe,{get isRunning(){return a()},onTimerEnded:w})};L(Pe,oe=>{n()&&oe(Ee)})}g(j),g(ve);var Me=P(ve,2),ue=h(Me),De=h(ue,!0);g(ue),g(Me),g(ne),g(E),S((oe,V)=>{pe(q,oe),et(j,`background-image: url('${e.thumb}')`),X=Z(ge,1,"thumb-overlay svelte-1qdxi6t",null,X,V),pe(De,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),_(R,A)};L(T,R=>{e.isHide||R(C)})}_(t,k),H(),o()}it(["click"]);import{clientChecker as D3}from"@vkontakte/videoplayer-core";var Yh=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;At(()=>{D3.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))}),sn(()=>{i?.(),clearTimeout(o)})};import{VideoFormat as O3}from"@vkontakte/videoplayer-core";var qc=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(){return this.getTracksArray().find(e=>e.track.mode==="showing")?.id??null}};import{clientChecker as H3}from"@vkontakte/videoplayer-core";var jh=({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,c=()=>e().querySelector("video"),u=()=>H3.device.isIOS&&$e(s)===O3.DASH_LIVE_CMAF,b=()=>{l?.(),l=null},p=$=>{if(b(),!u()||!$)return;let w=c();if(!w)return;let x=new qc(w),k=$e(d),T=$e(a),C=$e(n);for(let E of k)T.some(K=>K.value===E.id)&&x.attach(E,C.value===E.id);let R=d.subscribe(E=>{for(let B of E)x.updateSrc(B)}),A=()=>{let E=x.getCurrentShowingId();o($e(a).find(B=>B.value===E))};w.textTracks.addEventListener("change",A),l=()=>{R(),x.detachAll(),w.textTracks.removeEventListener("change",A)}};At(()=>i.subscribe(p)),sn(b)};var z3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},W3=M("<!> <!>",1),q3=M("<div><!></div>"),K3=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Q3=M("<div><!></div>"),G3=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Y3=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),j3=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Z3={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 pm(t,e){O(e,!0),U(t,Z3);let[i,o]=Ve(),n=()=>y(Be,"$playerPhase",i),a=()=>y(qi,"$isLoaderVisible",i),s=()=>y(pt,"$adPlaybackState",i),d=()=>y(at,"$crashed",i),l=()=>y(ho,"$notificationsToShow$",i),c=()=>y(Ge,"$playbackState$",i),u=()=>y(nt,"$graphIsOpened$",i),b=()=>y(xi,"$interactiveHideMobileControls",i),p=()=>y(Wt,"$isEnded$",i),$=()=>y(Co,"$isInteractiveExpectation$",i),w=()=>y(Ht,"$controlsVisible",i),x=()=>y(Si,"$touched",i),k=()=>y(Ci,"$autoplayNextEnabled$",i),T=()=>y(Li,"$postrollPassed",i),C=()=>y(_o,"$bottomNoSmooth",i),R=()=>y(Ft,"$videoSize",i),A=()=>y(Ri,"$playerSize",i),E=()=>y(Ze,"$isFullscreen",i),B=()=>y(kt,"$position$",i),K=()=>y(qt,"$duration$",i),q=()=>y(En,"$loadedMetadata",i),te=()=>y(Qo,"$settingsMenuVisible",i),ne=()=>y(un,"$scrubbingInProgress",i),ve=()=>y(Go,"$volumeChangingInProgress",i),j=()=>y(po,"$chromecastConnected$",i),ge=()=>y(yi,"$isControlsAvailable",i),X=()=>y(vi,"$isInteractiveTime$",i),Pe=()=>y(Vi,"$isActiveLive",i),Ee=()=>y(cn,"$settingsMenuOpenedByKeyboard",i),Me=()=>y(me,"$language$",i),ue=()=>y(ko,"$disabledControls$",i),De=()=>y(mo,"$is3DVideo",i),oe=()=>y(Zt,"$icon3DVideoVisible",i),V=()=>y(Yo,"$chromecastDeviceName$",i),Qe=()=>y(fo,"$currentSubtitle$",i),ce=()=>y(wi,"$currentSubtitleCaptions$",i),Fe=()=>y(In,"$realDuration$",i),z=()=>y(Kt,"$isLive$",i),ie=()=>y(Jt,"$isPlaying$",i),Te=()=>y(So,"$debugPanelVisible",i),J=m(e,"videoContainer",15),Ue=m(e,"adsSlotId",3,void 0),ot=m(e,"adsParams",3,void 0),de=m(e,"adsPreviewParam",3,void 0),Ae=m(e,"adsAutoplayParam",3,void 0),qe=m(e,"duration",3,void 0),je=m(e,"logoTargetUrl",3,""),mt=m(e,"showNextPrevButtons",3,!1),ft=m(e,"nextButtonActive",3,!1),Xe=m(e,"prevButtonActive",3,!1),$t=m(e,"endScreenVideoTitle",3,void 0),ct=m(e,"endScreenVideoThumb",3,void 0),Lt=m(e,"isOneVideoPlaylist",3,!1),zt=m(e,"shadowRootContainer",3,void 0),ze=m(e,"outerContainerRef",3,void 0),Et=m(e,"showMiniTimer",3,!1),Q=m(e,"fullScreenTarget",3,void 0),be=m(e,"playerStarted",3,!1),ae=m(e,"showEndScreen",3,!0),{notifications$:Ie,graphIsOpened$:nt}=zi(),Re=e.store.getLogger().createComponentLog("Root component"),me=e.store.interfaceLanguage$,Ge=e.store.state.playbackState$,pt=e.store.ads.playbackState,kt=e.store.state.positionWithScrubbing$,qt=e.store.state.duration$,Be=e.store.playerPhase,Ze=e.store.ui.isFullscreen,Ht=e.store.ui.controlsVisible,yi=e.store.ui.isControlsAvailable,xi=e.store.ui.interactiveHideMobileControls,Qo=e.store.ui.settingsMenu.visible$,cn=e.store.ui.settingsMenu.openedByBtnKeyboard$,un=e.store.ui.scrubbingInProgress,Go=e.store.ui.volumeChangingInProgress,So=e.store.ui.debugPanelVisible,qi=e.store.state.isLoaderVisible,Wt=e.store.state.isEnded$,po=e.store.state.chromecastConnected$,Yo=e.store.state.chromecastDeviceName$,Li=e.store.ads.postrollPassed,ro=e.store.ui.mobileUnmuteButtonExpanded,G=e.store.ui.mobileUnmuteButtonVisible,Kt=e.store.state.isLive$,Jt=e.store.state.isPlaying$,Vi=e.store.state.isActiveLive$,ei=e.store.state.isRewindableLive$,at=e.store.state.crashed$,Ki=e.store.webApi.annotationsApi,vt=e.store.webApi.pictureInPictureApi,Ft=e.store.state.videoSize$,fo=e.store.state.currentSubtitle$,wi=e.store.state.currentSubtitleCaptions$,In=e.store.state.duration$,Ri=e.store.ui.playerSize,mo=e.store.ui.is3DVideo,Zt=e.store.ui.icon3DVideoVisible,ht=e.store.state.isInteractive,vi=e.store.state.isInteractiveTime$,Co=e.store.state.isInteractiveExpectation$,Xt=e.store.state.hasInteractiveBranches,ko=e.store.ui.controls.disabledControls$,Si=e.store.ui.touched,ao=e.store.ui.overlayContainer$,Ci=e.store.ui.autoplayNextEnabled$,En=e.store.state.loadedMetadata$,Qi=e.store.actions.internal.closeSettingsMenu,pn=e.store.callbacks?.onDisabledPlayPrevChapterClick,vo=e.store.callbacks?.onDisabledSeekToInteractiveClick,go=e.store.actions.internal.setQuality,fn=Y(void 0),hr=Y(void 0),jn=Y(void 0),mn=Y(void 0),jo,Pn,st,Gi=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),To=Y(void 0),{closeNotification:vn,notificationsToShow$:ho}=Ie,Io=v(()=>!!l().slow_video),An=()=>vn("slow_video"),_o=re(!1),Mn,Zo=Y(!1),Ln=v(()=>c()!==F3.PLAYING),Eo=Y(!1),Yi=v(()=>u()||b()||!r(Zo)&&(p()&&!!Xt||r(Ln)&&$())),ai=Y(!0),Xo=v(()=>e.uiConfig.features.thumbTimer&&Et()&&n()==="video"&&!w()&&!d()&&!ht&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Jo=Y(!1),Po=v(()=>(ae()||e.showAutoplayNext&&k())&&!!$t()&&!!ct()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(Jo)),ji=Y(!1);vt?.setContext(ul());let gn=Je=>{clearTimeout(Pn),Je&&(G.set(!0),ro.set(!0),Pn=setTimeout(()=>{ro.set(!1)},e.uiConfig.controls.collapseMobileUnmute),ht||ki(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:gn});let so=()=>{clearTimeout(jo),N(Zo,!1),b()&&xi.set(!1)},ki=Je=>{so(),N(Zo,!0),jo=setTimeout(()=>N(Zo,!1),Je);let yt=Je-100;Mn=setTimeout(()=>{C()&&_o.set(!1)},yt>0?yt:Je)},Zn=mo.subscribe(Je=>{Zt.set(Je),Je&&(clearTimeout(st),st=setTimeout(()=>Zt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),bo=async(Je=sa())=>{if(Je&&!pd.device.isIOS){let yt=Sl(),gi=en(),Bi=pd.browser.isSamsungBrowser&&yt===zt();Je=yt===gi||Bi}if(Je){ki(e.uiConfig.controls.hideTimeoutFullscreen);try{await vt?.remove()}catch(yt){Re({message:String(yt)})}try{let yt=R()?.width&&R()?.height?R():A();await qg(yt)}catch(yt){Re({message:String(yt)})}}Ze.set(Je),e.store.getAdmanWrapper().setFullscreen(Je),E()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},Vn=Je=>{let yt=Je;Ri.set({width:yt.target.width,height:yt.target.height})};At(()=>(vc(bo),e.uiConfig.features.annotationsInside&&Ki?.init(r(fn)),Ha(vt)&&(vt?.assignPlayerContainer(r(fn)),vt?.registryExternalEventHandlers({resize:Vn})),N(ai,!pd.device.isIphoneOrOldIpad),e.interactiveContainer&&J().parentElement?.insertBefore(e.interactiveContainer,J().nextSibling),()=>{clearTimeout(jo),clearTimeout(Mn),clearTimeout(Pn),clearTimeout(st),Zn(),vt?.dispose().catch(Je=>{Re({message:String(Je)})}),gc(bo)}));let hn=Y(!0),Rn=Y(!0),Xn=Je=>{let yt=B()+(Je==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;yt<0?(N(hn,!1),yt=0):yt>=K()&&(N(Rn,!1),yt=K()),N(Eo,!0),e.seekTime(yt)},en=()=>{let Je=pd.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ze()?r(fn):ze(),yt=Je.getRootNode(),gi=yt instanceof ShadowRoot?yt.host:yt,Bi=Q()instanceof HTMLElement&&Q().contains(gi);return e.uiConfig.allowChangingFullscreenTarget&&Q()&&Bi?Q():Je},_r=async()=>{try{if(sa())await mc(document),Re({message:"exit fullscreen"});else{if(Re({message:"request fullscreen"}),pd.device.isIOS&&!q())return;await fc(en())}}catch(Je){Re({message:String(Je)})}},Jn=()=>{Qi()},Bn=Je=>{if(Je.preventDefault(),te()){Jn();return}if(!be()){e.firstStart(),ki(e.uiConfig.controls.hideTimeoutCursor);return}N(Eo,!1),w()?so():ki(e.uiConfig.controls.hideTimeoutMobile)},br=()=>{Si.set(!0)},$r=()=>{ht||(_o.set(!0),ki(e.uiConfig.controls.hideTimeoutCursor))},rt=Je=>{pn&&(pn(Je),ki(e.uiConfig.controls.hideTimeoutMobile))},Ye=Je=>{vo&&(vo(Je),ki(e.uiConfig.controls.hideTimeoutMobile))};He(()=>{ao.set(r(To))}),He(()=>{Ht.set((r(Ln)||te()||ne()||ve()||j()||!r(Po)&&(p()||r(Zo)&&!r(Eo)))&&!r(Yi)&&n()==="video"&&!d()&&ge())}),He(()=>{!ne()&&r(ji)&&!X()&&ki(e.uiConfig.controls.hideTimeoutMobile),N(ji,le(ne()))}),He(()=>{N(hn,B()>0),N(Rn,le(!Pe()&&B()<K()))}),He(()=>{Rs(r(mn),te(),Ee())});let si=F("aria_label_video_player"),Zi=F("video360");Yh({fullScreenChangeHandler:bo,getFullscreenTarget:en}),jh({store:e.store,getFullscreenTarget:en});var li=j3();_t("blur",Ia,Jn),Le(li,"aria-label",si);var Qt=h(li);ns(Qt,{onClick:Bn,get videoContainer(){return J()},set videoContainer(Je){J(Je)}});var lo=P(Qt,2);Va(lo,()=>"slot",!1,(Je,yt)=>{we(Je,null,{name:os})});var Ao=P(lo,2);La(Ao,Me,Je=>{var yt=Y3(),gi=se(yt);let Bi=v(()=>n()!=="thumb"||d()||ht&&e.autoplay);es(gi,{get hidden(){return r(Bi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var pi=P(gi,2);{var yr=Ne=>{var Nt=W3(),Ti=se(Nt);{var bi=Xi=>{let rr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Wc(Xi,{side:"left",get seekStep(){return r(rr)},handleSingleFirstClick:Bn,handleSecondClick:()=>Xn("backward")})};L(Ti,Xi=>{r(hn)&&Xi(bi)})}var fi=P(Ti,2);{var $n=Xi=>{let rr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Wc(Xi,{side:"right",get seekStep(){return r(rr)},handleSingleFirstClick:Bn,handleSecondClick:()=>Xn("forward")})};L(fi,Xi=>{r(Rn)&&Xi($n)})}_(Ne,Nt)};L(pi,Ne=>{e.canRewindLive&&ei&&!ue().has("TIMELINE")&&Ne(yr)})}var er=P(pi,2);{var Vr=Ne=>{let Nt=v(()=>e.live?.startTime);sd(Ne,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Nt)}})};L(er,Ne=>{n()==="LiveWaitingStart"&&Ne(Vr)})}var tr=P(er,2);{var Nn=Ne=>{ts(Ne,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(tr,Ne=>{n()==="LiveWaitingRecover"&&Ne(Nn)})}var Ai=P(tr,2);{var _n=Ne=>{ts(Ne,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(Ai,Ne=>{n()==="LiveWaitingRecord"&&Ne(_n)})}var Lo=P(Ai,2);{var ir=Ne=>{var Nt=q3();let Ti;var bi=h(Nt);Cl(bi,{get adsSlotId(){return Ue()},get adsParams(){return ot()},get adsPreviewParam(){return de()},get adsAutoplayParam(){return Ae()},get duration(){return qe()}}),g(Nt),S(fi=>Ti=Z(Nt,1,"ads-container svelte-7yl31d",null,Ti,fi),[()=>({hidden:n()!=="ads"})]),_(Ne,Nt)};L(Lo,Ne=>{e.showAds&&be()&&Ne(ir)})}var bn=P(Lo,2);{var xr=Ne=>{let Nt=v(()=>!ae()&&e.showAutoplayNext&&k());um(Ne,{get title(){return $t()},get thumb(){return ct()},get isHide(){return r(Nt)},clickCloseIcon:()=>N(Jo,!0)})};L(bn,Ne=>{r(Po)&&$t()&&ct()&&Ne(xr)})}var Dn=P(bn,2);{var or=Ne=>{nd(Ne,{})};L(Dn,Ne=>{De()&&Ne(or)})}var On=P(Dn,2);{var wr=Ne=>{var Nt=K3(),Ti=h(Nt);wl(Ti,{"aria-label":Zi}),g(Nt),_(Ne,Nt)};L(On,Ne=>{oe()&&Ne(wr)})}var nr=P(On,2);{var Vo=Ne=>{rd(Ne,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return V()}})};L(nr,Ne=>{j()&&Ne(Vo)})}var Sr=P(nr,2);{var Ro=Ne=>{Ja(Ne,{get shifted(){return w()},get captions(){return ce()},get position(){return B()},get playerSize(){return A()},isMobile:!0})};L(Sr,Ne=>{Qe().value!=="off"&&Ne(Ro)})}var tt=P(Sr,2);{var Rt=Ne=>{var Nt=Q3();Nt.__click=[z3,te,Qo,Jn];var Ti=h(Nt);ad(Ti,{}),g(Nt),_(Ne,Nt)};L(tt,Ne=>{d()&&Ne(Rt)})}var hi=P(tt,2);{var Bo=Ne=>{let Nt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Ti=v(()=>n()==="ads"),bi=v(()=>e.canRewindLive&&Fe()!==0);od(Ne,{get bottomHidden(){return r(Nt)},get showControls(){return w()},get bottomNoSmooth(){return C()},get isAds(){return r(Ti)},get canRewindLive(){return r(bi)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return je()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return mt()},get nextButtonActive(){return ft()},get prevButtonActive(){return Xe()},get isOneVideoPlaylist(){return Lt()},get customFullscreenSupported(){return r(ai)},get endScreenShown(){return r(Po)},toggleFullscreen:_r,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:rt,onDisabledSeekToInteractiveClick:Ye,get playerControlsWrapperRef(){return r(hr)},set playerControlsWrapperRef(fi){N(hr,le(fi))},get playerControlsRef(){return r(jn)},set playerControlsRef(fi){N(jn,le(fi))}})};L(hi,Ne=>{be()&&Ne(Bo)})}var di=P(hi,2);{var No=Ne=>{var Nt=G3(),Ti=h(Nt);cd(Ti,{get supportLink(){return e.supportLink},returnFocus:U3,get ref(){return r(mn)},set ref(bi){N(mn,le(bi))}}),g(Nt),_(Ne,Nt)};L(di,Ne=>{te()&&Ne(No)})}var Hn=P(di,2);let Fn=v(()=>!r(Xo));Il(Hn,{get isLive(){return z()},get isHidden(){return r(Fn)},get isPlaying(){return ie()},get position(){return B()},get duration(){return K()}});var _i=P(Hn,2);{var ti=Ne=>{qa(Ne,{})};L(_i,Ne=>{r(Gi)&&Ne(ti)})}var Ni=P(_i,2);{var Se=Ne=>{Ml(Ne,{})};L(Ni,Ne=>{Te()&&Ne(Se)})}var Vt=P(Ni,2);{var Gt=Ne=>{ud(Ne,{onClose:An,onSelectAutoQuality:()=>{go("auto"),An()}})};L(Vt,Ne=>{r(Io)&&Ne(Gt)})}_(Je,yt)});var Mo=P(Ao,2);dt(Mo,Je=>N(To,Je),()=>r(To)),g(li),dt(li,Je=>N(fn,Je),()=>r(fn)),_t("click",li,br,!0),_t("focusin",li,$r,!0),_(t,li),H(),o()}it(["click"]);function Kc(t){let e="";return Wi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Wi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Wi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Wi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Wi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Wi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Wi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Wi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Wi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Wi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Wi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Wi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Wi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Wi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Wi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Wi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Wi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Wi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Wi(t.font)&&(e+=`--font:${t.font};`),e.length&&e||void 0}function Wi(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as X3}from"@vkontakte/videoplayer-shared";var J3=M('<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 fm(t,e){O(e,!0),U(t,ex);let[i,o]=Ve(),n=()=>y(ve,"$playerSize",i),a=()=>y(E,"$isPlaying$",i),s=()=>y(R,"$duration$",i),d=()=>y(q,"$positionWithScrubbing$",i),l=()=>y(T,"$playerPhase",i),c=()=>y(C,"$crashed$",i),u=()=>y(B,"$currentSubtitle$",i),b=()=>y(K,"$currentSubtitleCaptions$",i),p=()=>y(A,"$positionExact$",i),$=()=>y(te,"$isLive$",i),w=()=>y(ne,"$isRewindableLive$",i),x=m(e,"outsideDuration",3,0),k=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:C,duration$:R,positionExact$:A,isPlaying$:E,currentSubtitle$:B,currentSubtitleCaptions$:K,positionWithScrubbing$:q,isLive$:te,isRewindableLive$:ne},ui:{playerSize:ve,controls:j},actions:{internal:{getVideoElement:ge}}}=ye(),X=8,Pe=Y(!1),Ee=le({}),Me=()=>{N(Pe,!0)},ue=()=>{N(Pe,!1)},De=X3(Us,260);He(()=>{n(),De(ge(),j,Ee,r(Pe))});let oe=v(()=>a()?Ko(s()-d()):Ko(isFinite(s())?s():x()));var V=J3(),Qe=h(V);ns(Qe,{hideCursor:!1,get videoContainer(){return k()},set videoContainer(qe){k(qe)}});var ce=P(Qe,2);Va(ce,()=>"slot",!1,(qe,je)=>{we(qe,null,{name:os})});var Fe=P(ce,2);let z=v(()=>l()!=="thumb"||c());es(Fe,{get hidden(){return r(z)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ie=P(Fe,2);{var Te=qe=>{Ja(qe,{shifted:!1,get captions(){return b()},get position(){return p()},get playerSize(){return n()}})};L(ie,qe=>{u().value!=="off"&&qe(Te)})}var J=P(ie,2),Ue=h(J);Tl(Ue,{get isLive(){return $()},get isPlaying(){return a()},get time(){return r(oe)}}),g(J);var ot=P(J,2);let de;var Ae=h(ot);Ga(Ae,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:X,tooltipRightOffset:X,get ref(){return Ee.timeline},set ref(qe){Ee.timeline=qe}}),g(ot),g(V),S(qe=>de=Z(ot,1,"timeline svelte-1qfjf44",null,de,qe),[()=>({visible:r(Pe)})]),_t("mouseenter",V,Me),_t("mouseleave",V,ue),_(t,V),H(),o()}var nx=M("<div><!></div>"),rx={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;
362
361
 
363
362
  /* USER DEFINED COLORS */
364
363
 
@@ -385,12 +384,12 @@ Try switching the\xA0quality to\xA0Auto.`},Bg=T0;var Qr=new Map;Qr.set(Og.EN,Bg)
385
384
  rgba(0, 0, 0, 0.96) 86.67%,
386
385
  rgba(0, 0, 0, 0.99) 93.33%,
387
386
  #000 100%
388
- );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
389
- /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-7ed4yj {color-scheme:light dark;}.root.visible-outside.svelte-7ed4yj {overflow:visible;}
387
+ );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
388
+ /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-tw6yp4 {color-scheme:light dark;}.root.visible-outside.svelte-tw6yp4 {overflow:visible;}
390
389
 
391
390
  /* css reset start */* {-webkit-tap-highlight-color:transparent;}button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}p {margin:0;}svg:not(.interactive-root svg) {pointer-events:none;}.interactive-root {
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);}
391
+ /* --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);}
393
392
  /* 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);}
394
393
 
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 mm(t,e){H(e,!0),U(t,rx);let[i,o]=Le(),n=()=>y(Nt,"$isLive$",i),a=m(e,"sources",7),s=m(e,"store",7),d=m(e,"microStoresRoot",7),l=m(e,"videoConfig",7),c=m(e,"uiConfig",7),p=m(e,"title",7),_=m(e,"thumbUrl",7),u=m(e,"interactiveContainer",7),$=m(e,"interactiveController",7),w=m(e,"subtitles",7),x=m(e,"live",7),C=m(e,"preload",7),T=m(e,"autoplay",7),I=m(e,"volume",7,void 0),A=m(e,"muted",7,void 0),L=m(e,"fromTime",7),E=m(e,"canRewindLive",7),N=m(e,"showAds",7),W=m(e,"adsSlotId",7,void 0),K=m(e,"adsParams",7,void 0),Z=m(e,"adsPreviewParam",7,void 0),oe=m(e,"adsAutoplayParam",7,void 0),ue=m(e,"duration",7,void 0),j=m(e,"logoClickable",7),_e=m(e,"logoHidden",7),ee=m(e,"isMobile",7),Ae=m(e,"showNextPrevButtons",7,!1),Ee=m(e,"nextButtonActive",7,!1),Ve=m(e,"prevButtonActive",7,!1),pe=m(e,"endScreenVideoTitle",7,void 0),Oe=m(e,"endScreenVideoThumb",7,void 0),ie=m(e,"isOneVideoPlaylist",7,!1),R=m(e,"supportLink",7),Qe=m(e,"shadowRootContainer",7,void 0),ne=m(e,"outerContainerRef",7,void 0),We=m(e,"fullScreenTarget",7,void 0),re=m(e,"failoverHosts",7,void 0),ae=m(e,"showMiniTimer",7,!1),X=m(e,"saveRate",7),J=m(e,"seekToInteractive",7,Yh),ze=m(e,"playPrevChapter",7,Yh),Be=m(e,"volumeMultiplier",7),ye=m(e,"showAutoplayNext",7),Me=m(e,"showEndScreen",7,!0),Ge=m(e,"keyboardControls",15,void 0),{subscribers:Xe,stores:ft}=d();ng(c());let ut=Vt(),et=c().logoLink,bt=s().ui.debugPanelVisible,pt=s().ui.playerSize,Nt=s().state.isLive$,Ue=s().state.isInteractive&&fm.device.isAndroid,Et=G(void 0),q=null,he=G(!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}),mg(s(),ft),He(()=>{s().ui.isMobile.set(ee()),l().callbacks?.onDomReady?.()});let de=(Q=!1)=>{B(he,!0),Q?s().actions.external.firstStart(N()):s().actions.internal.firstStart(N())},Pe=()=>{if(ut.features.qualityDetailsSubMenuEnabled){let Q=Vg(s().videoId);if(Q)switch(Q.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,Q.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,Q.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(Q.quality);break}}else{Rg(s().videoId),cp()&&s().actions.internal.setTrafficSavingEnabled(!0);let jt=ap(s().videoId);jt&&s().actions.internal.setQuality(jt)}};function ot(Q){let jt=a()||Q;jt&&s().initVideo({container:r(Et),sources:jt,failoverHosts:re(),subtitles:w(),volumeMultiplier:Be()});let Gt=tx.get(_l)==="true";bt.set(Gt),L()>0&&s().actions.external.seekTime(L());let Vi=ee()?ut.volumeDefault:I()??rc()??ut.volumeDefault,oi=A()??Ig();if(s().actions.external.setVolume(Vi),s().actions.external.setMuted(oi),s().getAdmanWrapper().setInitialVolume(oi?0:Vi),Pe(),ut.features.saveRate&&X()){let dt=Ag();dt&&!n()&&s().actions.internal.setPlaybackRate(dt)}if(ye()){let dt=Lg();dt&&s().actions.internal.setAutoplayNextEnabled(dt)}s().ui.isAutoplay.set(T()),T()?de():C()&&ut.features.preload&&s().actions.internal.preload()}let Re=Q=>{if(window.ResizeObserver){let jt,Gt;q=new ResizeObserver(ix(Vi=>{let oi=Vi[0];if(oi.contentBoxSize){let dt=Array.isArray(oi.contentBoxSize)?oi.contentBoxSize[0]:oi.contentBoxSize;jt=dt.inlineSize,Gt=dt.blockSize}else oi.contentRect&&(jt=oi.contentRect.width,Gt=oi.contentRect.height);pt.set({width:jt,height:Gt})},300)),q.observe(Q)}pt.set({width:Q.clientWidth,height:Q.clientHeight})},Ie=()=>{document.hidden&&s().actions.external.stop()};Lt(()=>{Ue&&document.addEventListener("visibilitychange",Ie),ut.debugLog&&s().actions.internal.startLogging(),Re(r(Et));let Q=Xe.map(Gt=>Gt.init({store:s(),microStores:ft,config:l(),interactiveController:$(),uiConfig:c()})),jt=()=>{Ue&&document.removeEventListener("visibilitychange",Ie),q?.disconnect(),Q.forEach(Gt=>Gt.unsubscribe()),s().destroy()};return x()?.status==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),jt):x()?.status==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),jt):(x()?.status==="finished"||x()?.status==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),jt):(ot(),jt)});function Ye(){r(he)?s().actions.external.play():de(!0)}function st(){s().actions.external.pause()}function $t(Q){s().actions.external.setMuted(Q)}function Pt(){s().actions.external.toggleSubtitle()}function Fe(){s().webApi.slotsApi?.haveSlots()&&s().actions.external.hideControls()}function Ze(){s().webApi.slotsApi?.haveSlots()&&s().actions.external.showControls()}function Dt(Q){ee()||Q>=0&&Q<=1&&s().actions.external.setVolume(Q)}function li(Q){s().actions.internal.seekTime(Q,ox.UNKNOWN)}function pi(Q){s().actions.external.seekEpisodeStartTime(Q)}function Ho(){s().actions.external.returnFocusToEpisodes()}function dn(Q){s().actions.external.setPlaybackRate(Q)}function cn(Q){s().actions.external.setAutoQualityLimits(Q)}let So=qc(ut.view),Co=l().playerView==="preview";var qi=nx();let Qt;it(qi,So);var uo=h(qi);{var Fo=Q=>{um(Q,{get store(){return s()},uiConfig:ut,get thumbUrl(){return _()},get interactiveContainer(){return u()},get live(){return x()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return N()},get adsSlotId(){return W()},get adsParams(){return K()},get adsPreviewParam(){return Z()},get adsAutoplayParam(){return oe()},get duration(){return ue()},get logoClickable(){return j()},get logoHidden(){return _e()},logoTargetUrl:et,get nextButtonActive(){return Ee()},get prevButtonActive(){return Ve()},get endScreenVideoTitle(){return pe()},get endScreenVideoThumb(){return Oe()},get isOneVideoPlaylist(){return ie()},get supportLink(){return R()},get shadowRootContainer(){return Qe()},get outerContainerRef(){return ne()},get fullScreenTarget(){return We()},get showMiniTimer(){return ae()},get playerStarted(){return r(he)},get seekToInteractive(){return J()},get playPrevChapter(){return ze()},firstStart:de,seekTime:li,get showEndScreen(){return Me()},get showAutoplayNext(){return ye()},get showNextPrevButtons(){return Ae()},get videoContainer(){return r(Et)},set videoContainer(jt){B(Et,ce(jt))}})},un=Q=>{var jt=De(),Gt=le(jt);{var Vi=dt=>{pm(dt,{get thumbUrl(){return _()},get outsideDuration(){return ue()},get canRewindLive(){return E()},get videoContainer(){return r(Et)},set videoContainer(Ri){B(Et,ce(Ri))}})},oi=dt=>{dm(dt,{get store(){return s()},uiConfig:ut,get title(){return p()},get thumbUrl(){return _()},get interactiveContainer(){return u()},get live(){return x()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return N()},get adsSlotId(){return W()},get adsParams(){return K()},get adsPreviewParam(){return Z()},get adsAutoplayParam(){return oe()},get duration(){return ue()},get logoClickable(){return j()},get logoHidden(){return _e()},logoTargetUrl:et,get nextButtonActive(){return Ee()},get prevButtonActive(){return Ve()},get endScreenVideoTitle(){return pe()},get endScreenVideoThumb(){return Oe()},get isOneVideoPlaylist(){return ie()},get supportLink(){return R()},get shadowRootContainer(){return Qe()},get outerContainerRef(){return ne()},get fullScreenTarget(){return We()},get showMiniTimer(){return ae()},get playerStarted(){return r(he)},get seekToInteractive(){return J()},get playPrevChapter(){return ze()},firstStart:de,get showEndScreen(){return Me()},get showAutoplayNext(){return ye()},get showNextPrevButtons(){return Ae()},get videoContainer(){return r(Et)},set videoContainer(Ri){B(Et,ce(Ri))},get keyboardControls(){return Ge()},set keyboardControls(Ri){Ge(Ri)}})};V(Gt,dt=>{Co?dt(Vi):dt(oi,!1)})}b(Q,jt)};V(uo,Q=>{ee()?Q(Fo):Q(un,!1)})}g(qi),S(Q=>Qt=Y(qi,1,"root svelte-7ed4yj",null,Qt,Q),[()=>({"root--miui-browser":fm.device.isMobile&&fm.browser.isMiuiBrowser,"visible-outside":Co})]),b(t,qi);var eo=F({initVideo:ot,play:Ye,pause:st,setMuted:$t,toggleSubtitle:Pt,hideControls:Fe,showControls:Ze,setVolume:Dt,seekTime:li,seekEpisodeStartTime:pi,returnFocusToEpisodes:Ho,setPlaybackRate:dn,setAutoQualityLimits:cn,get sources(){return a()},set sources(Q){a(Q)},get store(){return s()},set store(Q){s(Q)},get microStoresRoot(){return d()},set microStoresRoot(Q){d(Q)},get videoConfig(){return l()},set videoConfig(Q){l(Q)},get uiConfig(){return c()},set uiConfig(Q){c(Q)},get title(){return p()},set title(Q){p(Q)},get thumbUrl(){return _()},set thumbUrl(Q){_(Q)},get interactiveContainer(){return u()},set interactiveContainer(Q){u(Q)},get interactiveController(){return $()},set interactiveController(Q){$(Q)},get subtitles(){return w()},set subtitles(Q){w(Q)},get live(){return x()},set live(Q){x(Q)},get preload(){return C()},set preload(Q){C(Q)},get autoplay(){return T()},set autoplay(Q){T(Q)},get volume(){return I()},set volume(Q){I(Q)},get muted(){return A()},set muted(Q){A(Q)},get fromTime(){return L()},set fromTime(Q){L(Q)},get canRewindLive(){return E()},set canRewindLive(Q){E(Q)},get showAds(){return N()},set showAds(Q){N(Q)},get adsSlotId(){return W()},set adsSlotId(Q){W(Q)},get adsParams(){return K()},set adsParams(Q){K(Q)},get adsPreviewParam(){return Z()},set adsPreviewParam(Q){Z(Q)},get adsAutoplayParam(){return oe()},set adsAutoplayParam(Q){oe(Q)},get duration(){return ue()},set duration(Q){ue(Q)},get logoClickable(){return j()},set logoClickable(Q){j(Q)},get logoHidden(){return _e()},set logoHidden(Q){_e(Q)},get isMobile(){return ee()},set isMobile(Q){ee(Q)},get showNextPrevButtons(){return Ae()},set showNextPrevButtons(Q){Ae(Q)},get nextButtonActive(){return Ee()},set nextButtonActive(Q){Ee(Q)},get prevButtonActive(){return Ve()},set prevButtonActive(Q){Ve(Q)},get endScreenVideoTitle(){return pe()},set endScreenVideoTitle(Q){pe(Q)},get endScreenVideoThumb(){return Oe()},set endScreenVideoThumb(Q){Oe(Q)},get isOneVideoPlaylist(){return ie()},set isOneVideoPlaylist(Q){ie(Q)},get supportLink(){return R()},set supportLink(Q){R(Q)},get shadowRootContainer(){return Qe()},set shadowRootContainer(Q){Qe(Q)},get outerContainerRef(){return ne()},set outerContainerRef(Q){ne(Q)},get fullScreenTarget(){return We()},set fullScreenTarget(Q){We(Q)},get failoverHosts(){return re()},set failoverHosts(Q){re(Q)},get showMiniTimer(){return ae()},set showMiniTimer(Q){ae(Q)},get saveRate(){return X()},set saveRate(Q){X(Q)},get showAutoplayNext(){return ye()},set showAutoplayNext(Q){ye(Q)},get seekToInteractive(){return J()},set seekToInteractive(Q){J(Q)},get playPrevChapter(){return ze()},set playPrevChapter(Q){ze(Q)},get volumeMultiplier(){return Be()},set volumeMultiplier(Q){Be(Q)},get showEndScreen(){return Me()},set showEndScreen(Q){Me(Q)},get keyboardControls(){return Ge()},set keyboardControls(Q){Ge(Q)}});return o(),eo}var ax=ge('<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 vm(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=ax();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}function gm(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");vm(t,{get style(){return r(o)}})}var sx=M('<div class="title svelte-1y9fytq"> </div>'),lx=M('<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 hm(t,e){U(t,dx);var i=lx(),o=h(i);{var n=d=>{var l=sx(),c=h(l,!0);g(l),S(()=>fe(c,e.title)),b(d,l)};V(o,d=>{e.title&&d(n)})}var a=P(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);gm(d,{get isWhite(){return r(l)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),S(()=>it(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}import{now as Ax}from"@vkontakte/videoplayer-shared";import{cloneDeepWith as Mx,InterfaceLanguage as Lx,isNonNullable as wm,Logger as Vx,Observable as Rx,Subscription as n1,once as Nx,InternalsExposure as Bx,skip as Dx}from"@vkontakte/videoplayer-shared";import{clientChecker as r1,isMobile as Ox}from"@vkontakte/videoplayer-core";import{OneStat as Hx}from"@vkontakte/videoplayer-statistics";import{Logger as cx,Subscription as ux}from"@vkontakte/videoplayer-shared";var Kc=class{constructor(){this.subscription=new ux,this.logger=new cx,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){if(this.isSupported())for(let[i,o]of e)try{navigator.mediaSession.setActionHandler?.(i,o)}catch{throw new Error(`The media session action "${i}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{let o=be(e.state.currentPlaybackRate$),n=be(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{navigator.mediaSession.setPositionState?.({position:i,playbackRate:o,duration:n})}catch{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 $m,detectEmbed as vx}from"@vkontakte/videoplayer-shared";var px=ge('<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 _m(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=px();let n;var a=h(o);me(a,()=>e.children??te),ve(),g(o),S(()=>n=xe(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})),b(t,o)}var fx=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),mx={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 bm(t,e){H(e,!0),U(t,mx);let[i,o]=Le(),n=()=>y(c,"$interfaceLanguage$",i),a=()=>y(p,"$isMobile$",i),s=$e(),d=Vt(),l=!!s.webApi.pictureInPictureApi,c=s.interfaceLanguage$,p=s.ui.isMobile,_=s.ui.t,u=v(()=>n()&&_("pip_dummy_title")),$=qc(d.view);var w=fx();Y(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),it(w,$);var x=h(w);let C;var T=h(x);_m(T,{}),g(x);var I=P(x,2),A=h(I,!0);g(I),g(w),S(L=>{C=Y(x,1,"dummy-image svelte-1pbsod4",null,C,L),fe(A,r(u))},[()=>({desktop:!a()})]),b(t,w),F(),o()}var gx=460,hx=280,fd=class{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new $m(!1),isEnabled$:new $m(!1),type:1};constructor({enabled:e=!0}={enabled:!0}){this.info.isEnabled$=new $m(e)}isSupported(){let{isEmbed:e}=vx();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(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:gx,height:hx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(d=>d.cssText).join(" ")).filter(Boolean).join(`
396
- `),i=document.createElement("style");i.textContent=e;let o=this.createStretchedContainer(),n=o.attachShadow({mode:"open"});n.append(i),n.append(this.playerDomElement);let a={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=qr(bm,a),this.pipWindow?.document.body.append(o),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(La(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.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 Zh(t){return t instanceof fd}var Qc=class{static getLatestSupportedVersion(e){let i=new Ha(e),o=new fd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Gc(t,e){let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let n of i)o[n]=e[n]??t[n]??void 0;return o}var Xh="Inner error. Unexpectedly root annotation container null reference exception",Jh="Annotation with such name already exists",e1="Annotation with such name does not exist";var Ks=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as _x,Subscription as bx,throttleFn as $x}from"@vkontakte/videoplayer-shared";var yx="1",xx=100,jc=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new bx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=$x(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},xx);this.subscriptions.add(_x(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){if(!this.rootAnnotationsContainer)throw new Ks(Xh);if(this.annotations.has(e))throw new Ks(Jh);i.style.zIndex=i.style.zIndex??yx,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 Ks(e1);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(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver?.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 Yc,Subscription as wx}from"@vkontakte/videoplayer-shared";var wo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Yc(e),Yc(i),Yc(n),n.interactiveData&&Yc(o),this.subscription=new wx,this.subscription}};var md=class extends wo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...se(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 vd=class extends wo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...se(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:c,isMobile:p}=a.ui,_=be(p),u=()=>_&&be(c);return o.add(c.subscribe($=>{if(!_)return;let w=be(s);be(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=be(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var gd=class extends wo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=se("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 Sx}from"@vkontakte/videoplayer-shared";var ym=se(!1),Zc=null,hd=class extends wo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...ym,set:(i,o=!1)=>{i!==be(ym)&&(this.clearTimeout(),ym.set(i),!i&&Zc&&(Zc=!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:c}=n.ui.controls;o.add(l.subscribe(_=>{be(s)&&_&&this.state$.set(!1)}));let p=a?.interactiveData||{tooltipHelpHintActive:!1};return o.add(Sx({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:c}).subscribe(({isPlaying$:_,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{if(!(!_||!$?.isDisplayed)){if(!u)return this.state$.set(!1);p.tooltipHelpHintActive&&Zc===null&&(Zc=!0,p.tooltipHelpHintActive=!1,this.state$.set(!0),n.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as Cx,noop as kx}from"@vkontakte/videoplayer-shared";var _d=class extends wo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...se(null),toggle:kx};this.checkIfShouldHide=i=>ma(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(be(s)))return;let l=be(this.state$),{isEnded$:c,playbackState$:p}=n.state,{disabledControls$:_}=n.ui.controls,u=be(c),$=be(p);if(l)try{await a?.toggleGraphView(!1),this.state$.set(!1),_.remove(Ju),!u&&this.graphMadePause&&n.actions.internal.play()}catch{d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await a?.toggleGraphView(!0),this.state$.set(!0),_.add(Ju),!u&&this.graphMadePause&&n.actions.internal.pause()}catch{d({message:"Cant show graph"})}}},o.add(Cx({graphIsOpened:this.state$,currentGridType:s}).subscribe(async({graphIsOpened:l,currentGridType:c})=>{if(this.checkIfShouldHide(c)&&l)try{await a?.toggleGraphView(!1),this.state$.set(!1)}catch{d({message:"Cant hide graph"})}})),o}};import{ValueSubject as t1}from"@vkontakte/videoplayer-shared";var bd=class extends wo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:se(!1),isEnabled$:se(!1),type$:se(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new t1(!1),isEnabled$:new t1(!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 Ex,filterChanged as Px}from"@vkontakte/videoplayer-shared";import{safeStorage as xm}from"@vkontakte/videoplayer-shared";var i1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Tx({maxCount:t}):void 0,e!==0?Ix({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Tx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{e[i]=(e[i]??0)+1,xm.set("videoplayer_notifications_manager_count",JSON.stringify(e[i]??0))},canShowNotification:i=>(e[i]??0)<t}},Ix=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(xm.get(e)||"{}")}catch{return{}}},o=a=>xm.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 $d=class extends wo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:se({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=i1({maxShowCount:a,timeout:s});let c=n.getPlayer();return o.add(c.events.severeStallOccured$.pipe(Px(),Ex(p=>p)).subscribe(()=>{d&&!c.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var o1=()=>[md,vd,gd,hd,_d,bd,$d].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 yd}from"@vkontakte/videoplayer-shared";var Fx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Lx.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:Ox(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},ln=G(void 0),Xc=class extends HTMLElement{svelteStubComponent;svelteRootComponent;store;microStoresRoot;statistics;sentry;_shadowRoot;playerContainer;rootContainer;shadowRootContainer;uiConfig;coreConfig;statisticsConfig;interactiveController;interactiveContainer;graphMadePause;currentPlayingVideoIndex=0;needToRepeatPlaylist=!1;videoConfig=void 0;pictureInPictureApi=void 0;mediaSessionApi=void 0;unsubscribePlayerPhaseSubscription=void 0;logger;log;subscription;interactiveSubscription;annotationsApi=void 0;slotsApi;prevIsid=void 0;isInited=!1;internalsExposure=null;shadowDOMCallbacksDisabled=!1;constructor(){super(),yd.create("ui"),this.logger=new Vx,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new n1,this.interactiveSubscription=new n1,this.graphMadePause=!1}connectedCallback(){if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let e=this.getAttribute("stub-title")??void 0,i=this.getAttribute("stub-thumb-url")??void 0,o=ce({title:e,thumbUrl:i}),n={target:this.playerContainer,props:o};this.svelteStubComponent=qr(hm,n)}disconnectedCallback(){this.shadowDOMCallbacksDisabled||(this.annotationsApi?.destroy(),this.mediaSessionApi?.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy(),this.interactiveSubscription.unsubscribe(),this.internalsExposure?.destroy(),yd.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){return this.store?.ui.controls.disabledControls$?.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}}createOneStat=(e,i={})=>{let{albumId:o,statPlace:n,statUserSalt:a,statTrackCode:s,statVKAppId:d,refreshStatAuthToken:l,autoplay:c,isMobile:p,isTouch:_,refDomain:u,deviceId:$,interactiveData:w}=Gc(this.videoConfig,i),x=w?.projectInfo?.pid,C=this.interactiveController?.state.isReplay$.getValue()??!1;C&&(this.prevIsid=void 0);let{unitedVideoId:T,isClip:I=!1}=e;if(this.uiConfig.features.statistics&&T)return new Hx({movieId:T,albumId:o,place:n,trackCode:s,vkAppId:d,autoplay:(c&&!this.interactiveController)??!1,mobile:_??p,clip:I,refDomain:u,deviceId:$,...x&&(!this.isInited||C)&&{projectId:Number(x)}},{refreshAuthToken:l,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};createPlayer(e,i={},o){if(!this.videoConfig)return;let{albumId:n,statPlace:a,statAuthToken:s,preload:d,autoplay:l,volume:c,muted:p,fromTime:_,canRewindLive:u,supportLink:$,showAds:w,adsSlotId:x,adsParams:C={},adsPreviewParam:T,adsAutoplayParam:I,interfaceLanguage:A,isCyrillicRelatedInterface:L,logoClickable:E,logoHidden:N,isMobile:W,isTouch:K,isAudioDisabled:Z,isLiveCatchUpMode:oe,fullScreenTarget:ue,failoverHosts:j,canDownload:_e,callbacks:ee,interactiveData:Ae,showThumbTimer:Ee,additionalButtons:Ve=[],additionalSettingsMenuItems:pe=[],additionalContextMenuItems:Oe=[],repeat:ie,saveRate:R,volumeMultiplier:Qe,showEndScreen:ne,showAutoplayNext:We}=Gc(this.videoConfig,i),{sources:re,title:ae,thumbUrl:X,unitedVideoId:J,isClip:ze=!1,duration:Be,adsParams:ye={},videoEpisodes:Me,previewThumbsData:Ge,subtitles:Xe,live:ft}=e,ut={...C,...ye},et=this.getNextVideoInfo(),bt={sources:re,title:ae,thumbUrl:X,subtitles:Xe,unitedVideoId:J,isClip:ze,live:ft,albumId:n,statPlace:a,autoplay:l,muted:p,volume:c,fromTime:_,canRewindLive:u,showAds:w,adsSlotId:x,adsParams:ut,adsPreviewParam:T,adsAutoplayParam:I,duration:Be,logoClickable:E,logoHidden:N,isTouch:K??W,repeat:ie,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:et.nextVideoTitle,endScreenVideoThumb:et.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},pt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(bt)}`});let Nt=this.interactiveController?.state.statistics$.getValue(),Kt=Nt?.oneStat||this.createOneStat(e,i);Kt&&(this.statistics=new Ac(Kt,Nt?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Oa(this.uiConfig.sentry,{version:Ms,env:ic},{movieId:J,albumId:n,place:a,autoplay:(l&&!this.interactiveController)??!1,mobile:K??W,clip:ze}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Oa.getInstance()};let Et=!!Ae,q=[],he="tooltip_interactive_go_back_disabled_first";if(Et&&this.interactiveController){let Re=this.interactiveController.state.isInitialChapter$.getValue(),Ie=this.interactiveController.getHistoryState();Re&&q.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||q.push("SEEK_TO_INTERACTIVE_BUTTON"),Ie.hasPrevChapter$.getValue()||(q.push("PLAY_PREV_CHAPTER_BUTTON"),Re||(Ie.isGoBackLimited$.getValue()?he="tooltip_interactive_go_back_disabled_limit":he="tooltip_interactive_go_back_disabled"))}let de=()=>{this.isInited=!1,this.prevIsid=void 0;let Re=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();ee.onReplayInteractiveVideo&&!Re?ee.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=yh({player:o,interfaceLanguage:A,isCyrillicRelatedInterface:L,videoId:J,isClip:ze,isLiveCatchUpMode:oe,isAudioDisabled:Z,statAuthToken:s,callbacks:ee,webApi:pt,videoEpisodes:Me,previewThumbsData:Ge,canDownload:_e,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:q,isInteractive:Et,saveRate:R,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:de,playPrevChapterDisabledTooltip:he,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?Ve:[],additionalSettingsMenuItems:pe??[],additionalContextMenuItems:Oe??[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:ie&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:Pe}=this.microStoresRoot=o1(),ot=()=>{if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Ie=>ee?.onCurrentFormatChanged?.(Ie))),this.subscription.add(Pe.interactiveControlsOpacity$.subscribe(Ie=>{Ie!==null&&this?.interactiveController?.setDisabledControls(Ie)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ie=>ee?.onThroughputEstimationChanged?.(Ie))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ie=>ee?.onTrafficSavingEnabledChanged?.(Ie))),this.subscription.add(new Rx(Ie=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ye=>Ie.next(Ye)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?Dx(1):Ie=>Ie).subscribe(Ie=>ee?.onCurrentPlaybackRateChanged?.(Ie))),this.subscription.add(this.store.state.volume$.subscribe(Ie=>ee?.onVolumeChange?.(Ie))),this.subscription.add(this.store.state.muted$.subscribe(Ie=>Ie?ee?.onMute?.():ee?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ie=>ee?.onVideoBitrateChanged?.(Ie))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ie=>{let Ye=this.store?.ui.controls.disabledControls$;Ye&&(Ie&&!Ye.includes(bl)&&Ye.add(bl),Ie||Ye.remove(bl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Ie=>{if(!r1.browser.isSamsungBrowser||!Ie||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Ie=>ee?.onVSIDChanged?.(Ie))),this.initMediaSession(),B(ln,ce({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:re,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ae,thumbUrl:X,subtitles:Xe,live:ft,preload:d,autoplay:l,muted:p,volume:c,fromTime:_,canRewindLive:u,supportLink:$,showAds:w,adsSlotId:x,adsParams:ut,adsPreviewParam:T,adsAutoplayParam:I,duration:Be,logoClickable:E,logoHidden:N,isMobile:K??W,failoverHosts:j,fullScreenTarget:ue,saveRate:R,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ee,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:et.nextVideoTitle,endScreenVideoThumb:et.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Qe,showEndScreen:ne,showAutoplayNext:We}));let Re={target:this.playerContainer,props:r(ln)};this.svelteRootComponent=qr(mm,Re),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.()),this.internalsExposure?.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&this.videoConfig?.callbacks?.onDevNullLog?yd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):yd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?r1.isInited$.subscribe(Re=>{Re&&(console.log("UI SDK async start"),ot())}):ot()}addPlayerInfoSubscriptions(){let e=this.store,i=this.microStoresRoot?.stores;if(!e||!i)return;let o=this.videoConfig?.callbacks;o&&this.subscription.add(e.playerPhase.subscribe(a=>o.onPlayerPhaseChanged?.(a))).add(e.state.playbackState$.subscribe(a=>a&&o.onPlaybackStateChanged?.(a))).add(e.state.isLive$.subscribe(a=>o.onIsLiveChanged?.(a))).add(e.state.isActiveLive$.subscribe(a=>o.onIsActiveLiveChanged?.(a))).add(e.state.isAudioAvailable$.subscribe(a=>o.onIsAudioAvailableChanged?.(a))).add(e.state.currentQuality$.subscribe(a=>o.onCurrentQualityChanged?.(a))).add(e.state.availableQualities$.subscribe(a=>o.onAvailableQualitiesChanged?.(a.map(({value:s})=>s).filter(s=>s!=="auto")))).add(e.state.availableAudioStreams$.subscribe(a=>{a.length>1&&o.onAudioLanguagesAvailable&&o.onAudioLanguagesAvailable()})).add(i.pictureInPicture$.isActive$.subscribe(a=>a?o.onPiPEnter?.():o.onPiPExit?.()));let n=o?.uiInfo;n&&this.subscription.add(e.ui.controlsVisible.subscribe(a=>n.onControlsVisibleChanged?.(a))).add(e.ui.isMobile.subscribe(a=>n.onIsMobileChanged?.(a))).add(e.ui.playerSize.subscribe(a=>n.onPlayerSizeChanged?.(a))).add(e.ui.controls.prevButton.subscribe(a=>n.onPrevButtonChanged?.(a))).add(e.ui.controls.playButton.subscribe(a=>n.onPlayButtonChanged?.(a))).add(e.ui.controls.replayButton.subscribe(a=>n.onReplayButtonChanged?.(a))).add(e.ui.controls.nextButton.subscribe(a=>n.onNextButtonChanged?.(a))).add(e.ui.controls.playPrevChapterButton.subscribe(a=>n.onPlayPrevChapterChanged?.(a))).add(e.ui.controls.seekToInteractiveButton.subscribe(a=>n.onSeekToInteractiveButtonChanged?.(a))).add(e.ui.controls.interactiveGraphButton.subscribe(a=>n.onGraphButtonChanged?.(a))).add(e.ui.controls.liveButton.subscribe(a=>n.onLiveButtonChanged?.(a))).add(e.ui.controls.time.subscribe(a=>n.onTimeUpdateChanged?.(a))).add(e.ui.controls.episodes.subscribe(a=>n.onEpisodesChanged?.(a))).add(e.ui.controls.subtitles.subscribe(a=>n.onSubtitlesChanged?.(a))).add(e.ui.controls.settings.subscribe(a=>n.onSettingsChanged?.(a))).add(e.ui.controls.fullscreen.subscribe(a=>n.onFullscreenChanged?.(a))).add(e.ui.controls.chromecast.subscribe(a=>n.onChromecastChanged?.(a))).add(e.ui.controls.pip.subscribe(a=>n.onPipChanged?.(a))).add(e.ui.controls.vkLogo.subscribe(a=>n.onVkLogoChanged?.(a))).add(e.ui.controls.interactiveTimeIndicator.subscribe(a=>n.onInteractiveTimeIndicatorChanged?.(a))).add(e.ui.controls.timeline.subscribe(a=>n.onTimelineChanged?.(a)))}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){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&wm(o.unitedVideoId)&&this.store?.actions.internal.nextMovie(o.unitedVideoId),this.unmountComponent(this.svelteRootComponent),this.createPlayer(o,{autoplay:i,fromTime:0},e)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let e=this.interactiveController?.getNextInteractiveStartTime();typeof e=="number"&&this.seekTime(e/1e3)}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:e}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let i=this.store?.interfaceLanguage$,o=i?be(i):this.videoConfig.interfaceLanguage,{projectInfo:n,initChapterId:a,historyApi:s,videoLoader:d}=this.videoConfig.interactiveData;this.interactiveController=new e({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:o,graph:this.uiConfig.features.interactiveGraph,projectInfo:n,initChapterId:a,historyApi:s,vkVideoLoader:d,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$:l,isSeekable$:c}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(c.subscribe(_=>{if(!this.isInited)return;let u=this.store;_?u.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):u.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(l.subscribe(_=>{this.store&&this.store.state.isInteractiveExpectation$.set(_)}));let p=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(_=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={..._.config,title:n?.title||_.config.title};let u=p?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(_.player,u),p&&(p=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:_,actionType:u})=>{if(!this.store||!this.microStoresRoot)return;let $=l.getValue();if(_==="action-choice"&&u==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove($l)),_==="action-choice-canceled"){let w=be(this.store.state.isPlaying$)||$;if((this.videoConfig?.isTouch??this.videoConfig?.isMobile)&&w){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:_,removeAllOpenURI:u})=>{this.store&&_==="container-fake-removed"&&u&&this.store.ui.controls.disabledControls$.remove($l)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let _=this.interactiveController.getHistoryState();this.subscription.add(_.history$.subscribe(u=>{u.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(u)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(_=>{this.log({message:_.toString()})}))}catch(e){this.log({message:e.message})}}initPlayer(e,i={}){if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Gc(Fx,Mx(e,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=og(i.ui??{}),this.coreConfig=i.core??{configName:[]},this.statisticsConfig=i.statistics??{},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:this.uiConfig.sentry??{}},this.uiConfig.features.exposeInternalsToGlobal&&(this.internalsExposure??=new Bx("UI")),yd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+this.videoConfig?.showAds],numbers:[Ax()]}),wm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),wm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isTouch=this.uiConfig.isMobile??this.videoConfig.isTouch??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen??this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext??this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons??this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&this.videoConfig.videos?.[this.videoConfig.videoIndex]?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let o={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Qc.getLatestSupportedVersion(o):this.pictureInPictureApi=new Ha(o)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Kc:void 0,this.slotsApi=this.uiConfig.features.slots?new Uc:void 0,this.annotationsApi=this.uiConfig.features.annotations?new jc(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]),Zh(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),this.slotsApi?.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(ln)&&(r(ln).showNextPrevButtons=this.needToShowNextPrevButtons(),r(ln).nextButtonActive=this.isNextButtonActive(),r(ln).prevButtonActive=this.isPrevButtonActive(),r(ln).endScreenVideoTitle=o.nextVideoTitle,r(ln).endScreenVideoThumb=o.nextVideoThumb,r(ln).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(e=>{e==="video"?this.setupMediaSessionForVideo():e==="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(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"});let e=!!this.interactiveController;e&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),this.mediaSessionApi?.destroy();let i=this.videoConfig.videos[0];i&&(this.unmountComponent(this.svelteRootComponent),e?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(i))}setMuted(e){this.log({message:`set muted, muted: ${e}`}),this.svelteRootComponent?.setMuted(e)}toggleSubtitle(){this.log({message:"toggle subtitle"}),this.svelteRootComponent?.toggleSubtitle()}hideControls(){this.log({message:"hide controls"}),this.svelteRootComponent?.hideControls()}showControls(){this.log({message:"show controls"}),this.svelteRootComponent?.showControls()}setPiPEnabled(e){this.store?.webApi.pictureInPictureApi?.setEnabled(e)}setVolume(e){this.log({message:`set volume, volume: ${e}`}),this.svelteRootComponent?.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(ln)&&(r(ln).needToRepeatPlaylist=this.needToRepeatPlaylist,r(ln).showNextPrevButtons=this.needToShowNextPrevButtons(),r(ln).nextButtonActive=this.isNextButtonActive(),r(ln).prevButtonActive=this.isPrevButtonActive())}seekTime(e){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),this.svelteRootComponent?.seekTime(e))}seekEpisodeStartTime(e){this.log({message:`seek episode start time, time: ${e}`}),this.svelteRootComponent?.seekEpisodeStartTime(e)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(e){this.log({message:`set playback rate to: ${e}`}),this.svelteRootComponent?.setPlaybackRate(e)}setAutoQualityLimits(e){this.log({message:`set auto quality limitation. Max: ${e.max??"none"}. Min: ${e.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(e)}addLanguage(e){this.store?.actions.internal.addLanguage(e)}async setLanguage(e){await this.store?.actions.internal.setLanguage(e)}setLiveStart(e){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingStart(!0)}setLiveWaitingRecover(){this.log({message:"live waiting recover"}),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{this.store?.actions.internal.setLiveWaitingRecover(!0),this.store?.destroy()})}setLiveWaitingRecord(){this.log({message:"post live"}),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{this.store?.actions.internal.setLiveWaitingRecord(!0),this.store?.destroy()})}setLiveEnd(e){this.log({message:"live ended"}),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){this.log({message:"live switch to low latency "+e}),this.store?.actions.external.setLiveLowLatency(e)}setLooped(e){this.store?.actions.internal.setLooped(e)}getDebugData(){return this.store?.actions.internal.getDebugTextData()??""}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){if(this.interactiveController&&this.store?.state.positionExact$){let i=be(this.store.state.positionExact$),n=be(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe(Nx()).subscribe(()=>{n&&i>=n.time?this.seekTime(n.time):this.seekTime(i),e?.()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a?.chapter?.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){this.store?.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){this.store?.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){this.store?.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){this.store?.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){this.store?.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){this.store?.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){this.store?.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){this.store?.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){this.store?.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat.updateContext(e)}handleTimerNextVideo(e){this.store?.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){this.store?.actions.internal.togglePictureInPicture()}focus(){this.svelteRootComponent?.keyboardControls?.focus?.()}handleExternalKeyboardEvent(e){return!!this.svelteRootComponent?.keyboardControls?.handleExternalKeyboardEvent(e)}unmountComponent(e){e&&La(e)}};import{InterfaceLanguage as SZ,VKNumericLanguage as CZ,loadVKLangPack as kZ}from"@vkontakte/videoplayer-shared";import{VideoQuality as IZ,VideoFormat as EZ}from"@vkontakte/videoplayer-core";var gZ=()=>{window.customElements.define("vk-video-player",Xc)};export{Mc as ControlButtonType,Ar as GridTypes,SZ as InterfaceLanguage,Pl as MenuItemType,Gr as PlayerPhase,Ms as VERSION,CZ as VKNumericLanguage,EZ as VideoFormat,IZ as VideoQuality,kZ as loadVKLangPack,gZ as registerPlayerWebComponent};
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 vm(t,e){O(e,!0),U(t,rx);let[i,o]=Ve(),n=()=>y(Lt,"$isLive$",i),a=m(e,"sources",7),s=m(e,"store",7),d=m(e,"microStoresRoot",7),l=m(e,"videoConfig",7),c=m(e,"uiConfig",7),u=m(e,"title",7),b=m(e,"thumbUrl",7),p=m(e,"interactiveContainer",7),$=m(e,"interactiveController",7),w=m(e,"subtitles",7),x=m(e,"live",7),k=m(e,"preload",7),T=m(e,"autoplay",7),C=m(e,"volume",7,void 0),R=m(e,"muted",7,void 0),A=m(e,"fromTime",7),E=m(e,"canRewindLive",7),B=m(e,"showAds",7),K=m(e,"adsSlotId",7,void 0),q=m(e,"adsParams",7,void 0),te=m(e,"adsPreviewParam",7,void 0),ne=m(e,"adsAutoplayParam",7,void 0),ve=m(e,"duration",7,void 0),j=m(e,"logoClickable",7),ge=m(e,"logoHidden",7),X=m(e,"isMobile",7),Pe=m(e,"showNextPrevButtons",7,!1),Ee=m(e,"nextButtonActive",7,!1),Me=m(e,"prevButtonActive",7,!1),ue=m(e,"endScreenVideoTitle",7,void 0),De=m(e,"endScreenVideoThumb",7,void 0),oe=m(e,"isOneVideoPlaylist",7,!1),V=m(e,"supportLink",7),Qe=m(e,"shadowRootContainer",7,void 0),ce=m(e,"outerContainerRef",7,void 0),Fe=m(e,"fullScreenTarget",7,void 0),z=m(e,"failoverHosts",7,void 0),ie=m(e,"showMiniTimer",7,!1),Te=m(e,"saveRate",7),J=m(e,"seekToInteractive",7,Zh),Ue=m(e,"playPrevChapter",7,Zh),ot=m(e,"volumeMultiplier",7),de=m(e,"showAutoplayNext",7),Ae=m(e,"showEndScreen",7,!0),qe=m(e,"keyboardControls",15,void 0),{subscribers:je,stores:mt}=d();rg(c());let ft=Mt(),Xe=c().logoLink,$t=s().ui.debugPanelVisible,ct=s().ui.playerSize,Lt=s().state.isLive$,ze=s().state.isInteractive&&mm.device.isAndroid,Et=Y(void 0),Q=null,be=Y(!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}),vg(s(),mt),He(()=>{s().ui.isMobile.set(X()),l().callbacks?.onDomReady?.()});let ae=(G=!1)=>{N(be,!0),G?s().actions.external.firstStart(B()):s().actions.internal.firstStart(B())},Ie=()=>{if(ft.features.qualityDetailsSubMenuEnabled){let G=Rg(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{Bg(s().videoId),up()&&s().actions.internal.setTrafficSavingEnabled(!0);let Kt=sp(s().videoId);Kt&&s().actions.internal.setQuality(Kt)}};function nt(G){let Kt=a()||G;Kt&&s().initVideo({container:r(Et),sources:Kt,failoverHosts:z(),subtitles:w(),volumeMultiplier:ot()});let Jt=tx.get(_l)==="true";$t.set(Jt),A()>0&&s().actions.external.seekTime(A());let Vi=X()?ft.volumeDefault:C()??rc()??ft.volumeDefault,ei=R()??Eg();if(s().actions.external.setVolume(Vi),s().actions.external.setMuted(ei),s().getAdmanWrapper().setInitialVolume(ei?0:Vi),Ie(),ft.features.saveRate&&Te()){let at=Mg();at&&!n()&&s().actions.internal.setPlaybackRate(at)}if(de()){let at=Vg();at&&s().actions.internal.setAutoplayNextEnabled(at)}s().ui.isAutoplay.set(T()),T()?ae():k()&&ft.features.preload&&s().actions.internal.preload()}let Re=G=>{if(window.ResizeObserver){let Kt,Jt;Q=new ResizeObserver(ix(Vi=>{let ei=Vi[0];if(ei.contentBoxSize){let at=Array.isArray(ei.contentBoxSize)?ei.contentBoxSize[0]:ei.contentBoxSize;Kt=at.inlineSize,Jt=at.blockSize}else ei.contentRect&&(Kt=ei.contentRect.width,Jt=ei.contentRect.height);ct.set({width:Kt,height:Jt})},300)),Q.observe(G)}ct.set({width:G.clientWidth,height:G.clientHeight})},me=()=>{document.hidden&&s().actions.external.stop()};At(()=>{ze&&document.addEventListener("visibilitychange",me),ft.debugLog&&s().actions.internal.startLogging(),Re(r(Et));let G=je.map(Jt=>Jt.init({store:s(),microStores:mt,config:l(),interactiveController:$(),uiConfig:c()})),Kt=()=>{ze&&document.removeEventListener("visibilitychange",me),Q?.disconnect(),G.forEach(Jt=>Jt.unsubscribe()),s().destroy()};return x()?.status==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Kt):x()?.status==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Kt):(x()?.status==="finished"||x()?.status==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Kt):(nt(),Kt)});function Ge(){r(be)?s().actions.external.play():ae(!0)}function pt(){s().actions.external.pause()}function kt(G){s().actions.external.setMuted(G)}function qt(){s().actions.external.toggleSubtitle()}function Be(){s().webApi.slotsApi?.haveSlots()&&s().actions.external.hideControls()}function Ze(){s().webApi.slotsApi?.haveSlots()&&s().actions.external.showControls()}function Ht(G){X()||G>=0&&G<=1&&s().actions.external.setVolume(G)}function yi(G){s().actions.internal.seekTime(G,ox.UNKNOWN)}function xi(G){s().actions.external.seekEpisodeStartTime(G)}function Qo(){s().actions.external.returnFocusToEpisodes()}function cn(G){s().actions.external.setPlaybackRate(G)}function un(G){s().actions.external.setAutoQualityLimits(G)}let Go=Kc(ft.view),So=l().playerView==="preview";var qi=nx();let Wt;et(qi,Go);var po=h(qi);{var Yo=G=>{pm(G,{get store(){return s()},uiConfig:ft,get thumbUrl(){return b()},get interactiveContainer(){return p()},get live(){return x()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return B()},get adsSlotId(){return K()},get adsParams(){return q()},get adsPreviewParam(){return te()},get adsAutoplayParam(){return ne()},get duration(){return ve()},get logoClickable(){return j()},get logoHidden(){return ge()},logoTargetUrl:Xe,get nextButtonActive(){return Ee()},get prevButtonActive(){return Me()},get endScreenVideoTitle(){return ue()},get endScreenVideoThumb(){return De()},get isOneVideoPlaylist(){return oe()},get supportLink(){return V()},get shadowRootContainer(){return Qe()},get outerContainerRef(){return ce()},get fullScreenTarget(){return Fe()},get showMiniTimer(){return ie()},get playerStarted(){return r(be)},get seekToInteractive(){return J()},get playPrevChapter(){return Ue()},firstStart:ae,seekTime:yi,get showEndScreen(){return Ae()},get showAutoplayNext(){return de()},get showNextPrevButtons(){return Pe()},get videoContainer(){return r(Et)},set videoContainer(Kt){N(Et,le(Kt))}})},Li=G=>{var Kt=Oe(),Jt=se(Kt);{var Vi=at=>{fm(at,{get thumbUrl(){return b()},get outsideDuration(){return ve()},get canRewindLive(){return E()},get videoContainer(){return r(Et)},set videoContainer(Ki){N(Et,le(Ki))}})},ei=at=>{cm(at,{get store(){return s()},uiConfig:ft,get title(){return u()},get thumbUrl(){return b()},get interactiveContainer(){return p()},get live(){return x()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return B()},get adsSlotId(){return K()},get adsParams(){return q()},get adsPreviewParam(){return te()},get adsAutoplayParam(){return ne()},get duration(){return ve()},get logoClickable(){return j()},get logoHidden(){return ge()},logoTargetUrl:Xe,get nextButtonActive(){return Ee()},get prevButtonActive(){return Me()},get endScreenVideoTitle(){return ue()},get endScreenVideoThumb(){return De()},get isOneVideoPlaylist(){return oe()},get supportLink(){return V()},get shadowRootContainer(){return Qe()},get outerContainerRef(){return ce()},get fullScreenTarget(){return Fe()},get showMiniTimer(){return ie()},get playerStarted(){return r(be)},get seekToInteractive(){return J()},get playPrevChapter(){return Ue()},firstStart:ae,get showEndScreen(){return Ae()},get showAutoplayNext(){return de()},get showNextPrevButtons(){return Pe()},get videoContainer(){return r(Et)},set videoContainer(Ki){N(Et,le(Ki))},get keyboardControls(){return qe()},set keyboardControls(Ki){qe(Ki)}})};L(Jt,at=>{So?at(Vi):at(ei,!1)})}_(G,Kt)};L(po,G=>{X()?G(Yo):G(Li,!1)})}g(qi),S(G=>Wt=Z(qi,1,"root svelte-tw6yp4",null,Wt,G),[()=>({"root--miui-browser":mm.device.isMobile&&mm.browser.isMiuiBrowser,"visible-outside":So})]),_(t,qi);var ro=H({initVideo:nt,play:Ge,pause:pt,setMuted:kt,toggleSubtitle:qt,hideControls:Be,showControls:Ze,setVolume:Ht,seekTime:yi,seekEpisodeStartTime:xi,returnFocusToEpisodes:Qo,setPlaybackRate:cn,setAutoQualityLimits:un,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 c()},set uiConfig(G){c(G)},get title(){return u()},set title(G){u(G)},get thumbUrl(){return b()},set thumbUrl(G){b(G)},get interactiveContainer(){return p()},set interactiveContainer(G){p(G)},get interactiveController(){return $()},set interactiveController(G){$(G)},get subtitles(){return w()},set subtitles(G){w(G)},get live(){return x()},set live(G){x(G)},get preload(){return k()},set preload(G){k(G)},get autoplay(){return T()},set autoplay(G){T(G)},get volume(){return C()},set volume(G){C(G)},get muted(){return R()},set muted(G){R(G)},get fromTime(){return A()},set fromTime(G){A(G)},get canRewindLive(){return E()},set canRewindLive(G){E(G)},get showAds(){return B()},set showAds(G){B(G)},get adsSlotId(){return K()},set adsSlotId(G){K(G)},get adsParams(){return q()},set adsParams(G){q(G)},get adsPreviewParam(){return te()},set adsPreviewParam(G){te(G)},get adsAutoplayParam(){return ne()},set adsAutoplayParam(G){ne(G)},get duration(){return ve()},set duration(G){ve(G)},get logoClickable(){return j()},set logoClickable(G){j(G)},get logoHidden(){return ge()},set logoHidden(G){ge(G)},get isMobile(){return X()},set isMobile(G){X(G)},get showNextPrevButtons(){return Pe()},set showNextPrevButtons(G){Pe(G)},get nextButtonActive(){return Ee()},set nextButtonActive(G){Ee(G)},get prevButtonActive(){return Me()},set prevButtonActive(G){Me(G)},get endScreenVideoTitle(){return ue()},set endScreenVideoTitle(G){ue(G)},get endScreenVideoThumb(){return De()},set endScreenVideoThumb(G){De(G)},get isOneVideoPlaylist(){return oe()},set isOneVideoPlaylist(G){oe(G)},get supportLink(){return V()},set supportLink(G){V(G)},get shadowRootContainer(){return Qe()},set shadowRootContainer(G){Qe(G)},get outerContainerRef(){return ce()},set outerContainerRef(G){ce(G)},get fullScreenTarget(){return Fe()},set fullScreenTarget(G){Fe(G)},get failoverHosts(){return z()},set failoverHosts(G){z(G)},get showMiniTimer(){return ie()},set showMiniTimer(G){ie(G)},get saveRate(){return Te()},set saveRate(G){Te(G)},get showAutoplayNext(){return de()},set showAutoplayNext(G){de(G)},get seekToInteractive(){return J()},set seekToInteractive(G){J(G)},get playPrevChapter(){return Ue()},set playPrevChapter(G){Ue(G)},get volumeMultiplier(){return ot()},set volumeMultiplier(G){ot(G)},get showEndScreen(){return Ae()},set showEndScreen(G){Ae(G)},get keyboardControls(){return qe()},set keyboardControls(G){qe(G)}});return o(),ro}var ax=_e('<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 gm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=ax();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 hm(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");gm(t,{get style(){return r(o)}})}var sx=M('<div class="title svelte-1y9fytq"> </div>'),lx=M('<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 _m(t,e){U(t,dx);var i=lx(),o=h(i);{var n=d=>{var l=sx(),c=h(l,!0);g(l),S(()=>pe(c,e.title)),_(d,l)};L(o,d=>{e.title&&d(n)})}var a=P(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);hm(d,{get isWhite(){return r(l)}})};L(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),S(()=>et(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),_(t,i)}import{now as Ax}from"@vkontakte/videoplayer-shared";import{cloneDeepWith as Mx,InterfaceLanguage as Lx,isNonNullable as Sm,Logger as Vx,Observable as Rx,Subscription as r1,once as Bx,InternalsExposure as Nx,skip as Dx}from"@vkontakte/videoplayer-shared";import{clientChecker as a1,isMobile as Ox}from"@vkontakte/videoplayer-core";import{OneStat as Hx}from"@vkontakte/videoplayer-statistics";import{Logger as cx,Subscription as ux}from"@vkontakte/videoplayer-shared";var Qc=class{constructor(){this.subscription=new ux,this.logger=new cx,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){if(this.isSupported())for(let[i,o]of e)try{navigator.mediaSession.setActionHandler?.(i,o)}catch{throw new Error(`The media session action "${i}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{let o=$e(e.state.currentPlaybackRate$),n=$e(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{navigator.mediaSession.setPositionState?.({position:i,playbackRate:o,duration:n})}catch{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 ym,detectEmbed as vx}from"@vkontakte/videoplayer-shared";var px=_e('<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 bm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=px();let n;var a=h(o);fe(a,()=>e.children??ee),he(),g(o),S(()=>n=we(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 fx=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),mx={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 $m(t,e){O(e,!0),U(t,mx);let[i,o]=Ve(),n=()=>y(c,"$interfaceLanguage$",i),a=()=>y(u,"$isMobile$",i),s=ye(),d=Mt(),l=!!s.webApi.pictureInPictureApi,c=s.interfaceLanguage$,u=s.ui.isMobile,b=s.ui.t,p=v(()=>n()&&b("pip_dummy_title")),$=Kc(d.view);var w=fx();Z(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),et(w,$);var x=h(w);let k;var T=h(x);bm(T,{}),g(x);var C=P(x,2),R=h(C,!0);g(C),g(w),S(A=>{k=Z(x,1,"dummy-image svelte-1pbsod4",null,k,A),pe(R,r(p))},[()=>({desktop:!a()})]),_(t,w),H(),o()}var gx=460,hx=280,fd=class{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new ym(!1),isEnabled$:new ym(!1),type:1};constructor({enabled:e=!0}={enabled:!0}){this.info.isEnabled$=new ym(e)}isSupported(){let{isEmbed:e}=vx();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(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:gx,height:hx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(d=>d.cssText).join(" ")).filter(Boolean).join(`
395
+ `),i=document.createElement("style");i.textContent=e;let o=this.createStretchedContainer(),n=o.attachShadow({mode:"open"});n.append(i),n.append(this.playerDomElement);let a={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=qr($m,a),this.pipWindow?.document.body.append(o),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Ma(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.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 Xh(t){return t instanceof fd}var Gc=class{static getLatestSupportedVersion(e){let i=new Oa(e),o=new fd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Yc(t,e){let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let n of i)o[n]=e[n]??t[n]??void 0;return o}var Jh="Inner error. Unexpectedly root annotation container null reference exception",e1="Annotation with such name already exists",t1="Annotation with such name does not exist";var Ks=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as _x,Subscription as bx,throttleFn as $x}from"@vkontakte/videoplayer-shared";var yx="1",xx=100,jc=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new bx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=$x(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},xx);this.subscriptions.add(_x(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){if(!this.rootAnnotationsContainer)throw new Ks(Jh);if(this.annotations.has(e))throw new Ks(e1);i.style.zIndex=i.style.zIndex??yx,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 Ks(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(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver?.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 Zc,Subscription as wx}from"@vkontakte/videoplayer-shared";var wo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Zc(e),Zc(i),Zc(n),n.interactiveData&&Zc(o),this.subscription=new wx,this.subscription}};var md=class extends wo{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 vd=class extends wo{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$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:c,isMobile:u}=a.ui,b=$e(u),p=()=>b&&$e(c);return o.add(c.subscribe($=>{if(!b)return;let w=$e(s);$e(l)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(l.subscribe($=>{this.state$.set(!$||p())})),o.add(s.subscribe($=>{if($===null)return;let w=$e(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var gd=class extends wo{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(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as Sx}from"@vkontakte/videoplayer-shared";var xm=re(!1),Xc=null,hd=class extends wo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...xm,set:(i,o=!1)=>{i!==$e(xm)&&(this.clearTimeout(),xm.set(i),!i&&Xc&&(Xc=!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:c}=n.ui.controls;o.add(l.subscribe(b=>{$e(s)&&b&&this.state$.set(!1)}));let u=a?.interactiveData||{tooltipHelpHintActive:!1};return o.add(Sx({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:c}).subscribe(({isPlaying$:b,isInteractiveTime$:p,interactiveTimeIndicator:$})=>{if(!(!b||!$?.isDisplayed)){if(!p)return this.state$.set(!1);u.tooltipHelpHintActive&&Xc===null&&(Xc=!0,u.tooltipHelpHintActive=!1,this.state$.set(!0),n.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as Cx,noop as kx}from"@vkontakte/videoplayer-shared";var _d=class extends wo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...re(null),toggle:kx};this.checkIfShouldHide=i=>fa(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($e(s)))return;let l=$e(this.state$),{isEnded$:c,playbackState$:u}=n.state,{disabledControls$:b}=n.ui.controls,p=$e(c),$=$e(u);if(l)try{await a?.toggleGraphView(!1),this.state$.set(!1),b.remove(ep),!p&&this.graphMadePause&&n.actions.internal.play()}catch{d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await a?.toggleGraphView(!0),this.state$.set(!0),b.add(ep),!p&&this.graphMadePause&&n.actions.internal.pause()}catch{d({message:"Cant show graph"})}}},o.add(Cx({graphIsOpened:this.state$,currentGridType:s}).subscribe(async({graphIsOpened:l,currentGridType:c})=>{if(this.checkIfShouldHide(c)&&l)try{await a?.toggleGraphView(!1),this.state$.set(!1)}catch{d({message:"Cant hide graph"})}})),o}};import{ValueSubject as i1}from"@vkontakte/videoplayer-shared";var bd=class extends wo{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$: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 Ex,filterChanged as Px}from"@vkontakte/videoplayer-shared";import{safeStorage as wm}from"@vkontakte/videoplayer-shared";var o1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Tx({maxCount:t}):void 0,e!==0?Ix({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Tx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{e[i]=(e[i]??0)+1,wm.set("videoplayer_notifications_manager_count",JSON.stringify(e[i]??0))},canShowNotification:i=>(e[i]??0)<t}},Ix=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(wm.get(e)||"{}")}catch{return{}}},o=a=>wm.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 $d=class extends wo{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:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=o1({maxShowCount:a,timeout:s});let c=n.getPlayer();return o.add(c.events.severeStallOccured$.pipe(Px(),Ex(u=>u)).subscribe(()=>{d&&!c.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var n1=()=>[md,vd,gd,hd,_d,bd,$d].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 yd}from"@vkontakte/videoplayer-shared";var Fx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Lx.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:Ox(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},dn=Y(void 0),Jc=class extends HTMLElement{svelteStubComponent;svelteRootComponent;store;microStoresRoot;statistics;sentry;_shadowRoot;playerContainer;rootContainer;shadowRootContainer;uiConfig;coreConfig;statisticsConfig;interactiveController;interactiveContainer;graphMadePause;currentPlayingVideoIndex=0;needToRepeatPlaylist=!1;videoConfig=void 0;pictureInPictureApi=void 0;mediaSessionApi=void 0;unsubscribePlayerPhaseSubscription=void 0;logger;log;subscription;interactiveSubscription;annotationsApi=void 0;slotsApi;prevIsid=void 0;isInited=!1;internalsExposure=null;shadowDOMCallbacksDisabled=!1;constructor(){super(),yd.create("ui"),this.logger=new Vx,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new r1,this.interactiveSubscription=new r1,this.graphMadePause=!1}connectedCallback(){if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let e=this.getAttribute("stub-title")??void 0,i=this.getAttribute("stub-thumb-url")??void 0,o=le({title:e,thumbUrl:i}),n={target:this.playerContainer,props:o};this.svelteStubComponent=qr(_m,n)}disconnectedCallback(){this.shadowDOMCallbacksDisabled||(this.annotationsApi?.destroy(),this.mediaSessionApi?.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy(),this.interactiveSubscription.unsubscribe(),this.internalsExposure?.destroy(),yd.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){return this.store?.ui.controls.disabledControls$?.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}}createOneStat=(e,i={})=>{let{albumId:o,statPlace:n,statUserSalt:a,statTrackCode:s,statVKAppId:d,refreshStatAuthToken:l,autoplay:c,isMobile:u,isTouch:b,refDomain:p,deviceId:$,interactiveData:w}=Yc(this.videoConfig,i),x=w?.projectInfo?.pid,k=this.interactiveController?.state.isReplay$.getValue()??!1;k&&(this.prevIsid=void 0);let{unitedVideoId:T,isClip:C=!1}=e;if(this.uiConfig.features.statistics&&T)return new Hx({movieId:T,albumId:o,place:n,trackCode:s,vkAppId:d,autoplay:(c&&!this.interactiveController)??!1,mobile:b??u,clip:C,refDomain:p,deviceId:$,...x&&(!this.isInited||k)&&{projectId:Number(x)}},{refreshAuthToken:l,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};createPlayer(e,i={},o){if(!this.videoConfig)return;let{albumId:n,statPlace:a,statAuthToken:s,preload:d,autoplay:l,volume:c,muted:u,fromTime:b,canRewindLive:p,supportLink:$,showAds:w,adsSlotId:x,adsParams:k={},adsPreviewParam:T,adsAutoplayParam:C,interfaceLanguage:R,isCyrillicRelatedInterface:A,logoClickable:E,logoHidden:B,isMobile:K,isTouch:q,isAudioDisabled:te,isLiveCatchUpMode:ne,fullScreenTarget:ve,failoverHosts:j,canDownload:ge,callbacks:X,interactiveData:Pe,showThumbTimer:Ee,additionalButtons:Me=[],additionalSettingsMenuItems:ue=[],additionalContextMenuItems:De=[],repeat:oe,saveRate:V,volumeMultiplier:Qe,showEndScreen:ce,showAutoplayNext:Fe}=Yc(this.videoConfig,i),{sources:z,title:ie,thumbUrl:Te,unitedVideoId:J,isClip:Ue=!1,duration:ot,adsParams:de={},videoEpisodes:Ae,previewThumbsData:qe,subtitles:je,live:mt}=e,ft={...k,...de},Xe=this.getNextVideoInfo(),$t={sources:z,title:ie,thumbUrl:Te,subtitles:je,unitedVideoId:J,isClip:Ue,live:mt,albumId:n,statPlace:a,autoplay:l,muted:u,volume:c,fromTime:b,canRewindLive:p,showAds:w,adsSlotId:x,adsParams:ft,adsPreviewParam:T,adsAutoplayParam:C,duration:ot,logoClickable:E,logoHidden:B,isTouch:q??K,repeat:oe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Xe.nextVideoTitle,endScreenVideoThumb:Xe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ct={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify($t)}`});let Lt=this.interactiveController?.state.statistics$.getValue(),zt=Lt?.oneStat||this.createOneStat(e,i);zt&&(this.statistics=new Ac(zt,Lt?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Da(this.uiConfig.sentry,{version:As,env:ic},{movieId:J,albumId:n,place:a,autoplay:(l&&!this.interactiveController)??!1,mobile:q??K,clip:Ue}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Da.getInstance()};let Et=!!Pe,Q=[],be="tooltip_interactive_go_back_disabled_first";if(Et&&this.interactiveController){let Re=this.interactiveController.state.isInitialChapter$.getValue(),me=this.interactiveController.getHistoryState();Re&&Q.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Q.push("SEEK_TO_INTERACTIVE_BUTTON"),me.hasPrevChapter$.getValue()||(Q.push("PLAY_PREV_CHAPTER_BUTTON"),Re||(me.isGoBackLimited$.getValue()?be="tooltip_interactive_go_back_disabled_limit":be="tooltip_interactive_go_back_disabled"))}let ae=()=>{this.isInited=!1,this.prevIsid=void 0;let Re=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();X.onReplayInteractiveVideo&&!Re?X.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=xh({player:o,interfaceLanguage:R,isCyrillicRelatedInterface:A,videoId:J,isClip:Ue,isLiveCatchUpMode:ne,isAudioDisabled:te,statAuthToken:s,callbacks:X,webApi:ct,videoEpisodes:Ae,previewThumbsData:qe,canDownload:ge,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Q,isInteractive:Et,saveRate:V,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ae,playPrevChapterDisabledTooltip:be,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?Me:[],additionalSettingsMenuItems:ue??[],additionalContextMenuItems:De??[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:oe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:Ie}=this.microStoresRoot=n1(),nt=()=>{if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(me=>X?.onCurrentFormatChanged?.(me))),this.subscription.add(Ie.interactiveControlsOpacity$.subscribe(me=>{me!==null&&this?.interactiveController?.setDisabledControls(me)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(me=>X?.onThroughputEstimationChanged?.(me))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(me=>X?.onTrafficSavingEnabledChanged?.(me))),this.subscription.add(new Rx(me=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ge=>me.next(Ge)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?Dx(1):me=>me).subscribe(me=>X?.onCurrentPlaybackRateChanged?.(me))),this.subscription.add(this.store.state.volume$.subscribe(me=>X?.onVolumeChange?.(me))),this.subscription.add(this.store.state.muted$.subscribe(me=>me?X?.onMute?.():X?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(me=>X?.onVideoBitrateChanged?.(me))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(me=>{let Ge=this.store?.ui.controls.disabledControls$;Ge&&(me&&!Ge.includes(bl)&&Ge.add(bl),me||Ge.remove(bl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async me=>{if(!a1.browser.isSamsungBrowser||!me||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(me=>X?.onVSIDChanged?.(me))),this.initMediaSession(),N(dn,le({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:z,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ie,thumbUrl:Te,subtitles:je,live:mt,preload:d,autoplay:l,muted:u,volume:c,fromTime:b,canRewindLive:p,supportLink:$,showAds:w,adsSlotId:x,adsParams:ft,adsPreviewParam:T,adsAutoplayParam:C,duration:ot,logoClickable:E,logoHidden:B,isMobile:q??K,failoverHosts:j,fullScreenTarget:ve,saveRate:V,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ee,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Xe.nextVideoTitle,endScreenVideoThumb:Xe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Qe,showEndScreen:ce,showAutoplayNext:Fe}));let Re={target:this.playerContainer,props:r(dn)};this.svelteRootComponent=qr(vm,Re),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.()),this.internalsExposure?.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&this.videoConfig?.callbacks?.onDevNullLog?yd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):yd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?a1.isInited$.subscribe(Re=>{Re&&(console.log("UI SDK async start"),nt())}):nt()}addPlayerInfoSubscriptions(){let e=this.store,i=this.microStoresRoot?.stores;if(!e||!i)return;let o=this.videoConfig?.callbacks;o&&this.subscription.add(e.playerPhase.subscribe(a=>o.onPlayerPhaseChanged?.(a))).add(e.state.playbackState$.subscribe(a=>a&&o.onPlaybackStateChanged?.(a))).add(e.state.isLive$.subscribe(a=>o.onIsLiveChanged?.(a))).add(e.state.isActiveLive$.subscribe(a=>o.onIsActiveLiveChanged?.(a))).add(e.state.isAudioAvailable$.subscribe(a=>o.onIsAudioAvailableChanged?.(a))).add(e.state.currentQuality$.subscribe(a=>o.onCurrentQualityChanged?.(a))).add(e.state.availableQualities$.subscribe(a=>o.onAvailableQualitiesChanged?.(a.map(({value:s})=>s).filter(s=>s!=="auto")))).add(e.state.availableAudioStreams$.subscribe(a=>{a.length>1&&o.onAudioLanguagesAvailable&&o.onAudioLanguagesAvailable()})).add(i.pictureInPicture$.isActive$.subscribe(a=>a?o.onPiPEnter?.():o.onPiPExit?.()));let n=o?.uiInfo;n&&this.subscription.add(e.ui.controlsVisible.subscribe(a=>n.onControlsVisibleChanged?.(a))).add(e.ui.isMobile.subscribe(a=>n.onIsMobileChanged?.(a))).add(e.ui.playerSize.subscribe(a=>n.onPlayerSizeChanged?.(a))).add(e.ui.controls.prevButton.subscribe(a=>n.onPrevButtonChanged?.(a))).add(e.ui.controls.playButton.subscribe(a=>n.onPlayButtonChanged?.(a))).add(e.ui.controls.replayButton.subscribe(a=>n.onReplayButtonChanged?.(a))).add(e.ui.controls.nextButton.subscribe(a=>n.onNextButtonChanged?.(a))).add(e.ui.controls.playPrevChapterButton.subscribe(a=>n.onPlayPrevChapterChanged?.(a))).add(e.ui.controls.seekToInteractiveButton.subscribe(a=>n.onSeekToInteractiveButtonChanged?.(a))).add(e.ui.controls.interactiveGraphButton.subscribe(a=>n.onGraphButtonChanged?.(a))).add(e.ui.controls.liveButton.subscribe(a=>n.onLiveButtonChanged?.(a))).add(e.ui.controls.time.subscribe(a=>n.onTimeUpdateChanged?.(a))).add(e.ui.controls.episodes.subscribe(a=>n.onEpisodesChanged?.(a))).add(e.ui.controls.subtitles.subscribe(a=>n.onSubtitlesChanged?.(a))).add(e.ui.controls.settings.subscribe(a=>n.onSettingsChanged?.(a))).add(e.ui.controls.fullscreen.subscribe(a=>n.onFullscreenChanged?.(a))).add(e.ui.controls.chromecast.subscribe(a=>n.onChromecastChanged?.(a))).add(e.ui.controls.pip.subscribe(a=>n.onPipChanged?.(a))).add(e.ui.controls.vkLogo.subscribe(a=>n.onVkLogoChanged?.(a))).add(e.ui.controls.interactiveTimeIndicator.subscribe(a=>n.onInteractiveTimeIndicatorChanged?.(a))).add(e.ui.controls.timeline.subscribe(a=>n.onTimelineChanged?.(a)))}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){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Sm(o.unitedVideoId)&&this.store?.actions.internal.nextMovie(o.unitedVideoId),this.unmountComponent(this.svelteRootComponent),this.createPlayer(o,{autoplay:i,fromTime:0},e)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let e=this.interactiveController?.getNextInteractiveStartTime();typeof e=="number"&&this.seekTime(e/1e3)}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:e}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let i=this.store?.interfaceLanguage$,o=i?$e(i):this.videoConfig.interfaceLanguage,{projectInfo:n,initChapterId:a,historyApi:s,videoLoader:d}=this.videoConfig.interactiveData;this.interactiveController=new e({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:o,graph:this.uiConfig.features.interactiveGraph,projectInfo:n,initChapterId:a,historyApi:s,vkVideoLoader:d,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$:l,isSeekable$:c}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(c.subscribe(b=>{if(!this.isInited)return;let p=this.store;b?p.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):p.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(l.subscribe(b=>{this.store&&this.store.state.isInteractiveExpectation$.set(b)}));let u=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(b=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...b.config,title:n?.title||b.config.title};let p=u?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(b.player,p),u&&(u=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:b,actionType:p})=>{if(!this.store||!this.microStoresRoot)return;let $=l.getValue();if(b==="action-choice"&&p==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove($l)),b==="action-choice-canceled"){let w=$e(this.store.state.isPlaying$)||$;if((this.videoConfig?.isTouch??this.videoConfig?.isMobile)&&w){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:b,removeAllOpenURI:p})=>{this.store&&b==="container-fake-removed"&&p&&this.store.ui.controls.disabledControls$.remove($l)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let b=this.interactiveController.getHistoryState();this.subscription.add(b.history$.subscribe(p=>{p.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(p)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(b=>{this.log({message:b.toString()})}))}catch(e){this.log({message:e.message})}}initPlayer(e,i={}){if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Yc(Fx,Mx(e,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=ng(i.ui??{}),this.coreConfig=i.core??{configName:[]},this.statisticsConfig=i.statistics??{},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:this.uiConfig.sentry??{}},this.uiConfig.features.exposeInternalsToGlobal&&(this.internalsExposure??=new Nx("UI")),yd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+this.videoConfig?.showAds],numbers:[Ax()]}),Sm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),Sm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isTouch=this.uiConfig.isMobile??this.videoConfig.isTouch??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen??this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext??this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons??this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&this.videoConfig.videos?.[this.videoConfig.videoIndex]?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let o={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Gc.getLatestSupportedVersion(o):this.pictureInPictureApi=new Oa(o)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Qc:void 0,this.slotsApi=this.uiConfig.features.slots?new zc:void 0,this.annotationsApi=this.uiConfig.features.annotations?new jc(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.slotsApi?.init(this.shadowRootContainer),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]),Xh(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}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(dn)&&(r(dn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(dn).nextButtonActive=this.isNextButtonActive(),r(dn).prevButtonActive=this.isPrevButtonActive(),r(dn).endScreenVideoTitle=o.nextVideoTitle,r(dn).endScreenVideoThumb=o.nextVideoThumb,r(dn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(e=>{e==="video"?this.setupMediaSessionForVideo():e==="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(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"});let e=!!this.interactiveController;e&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),this.mediaSessionApi?.destroy();let i=this.videoConfig.videos[0];i&&(this.unmountComponent(this.svelteRootComponent),e?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(i))}setMuted(e){this.log({message:`set muted, muted: ${e}`}),this.svelteRootComponent?.setMuted(e)}toggleSubtitle(){this.log({message:"toggle subtitle"}),this.svelteRootComponent?.toggleSubtitle()}hideControls(){this.log({message:"hide controls"}),this.svelteRootComponent?.hideControls()}showControls(){this.log({message:"show controls"}),this.svelteRootComponent?.showControls()}setPiPEnabled(e){this.store?.webApi.pictureInPictureApi?.setEnabled(e)}setVolume(e){this.log({message:`set volume, volume: ${e}`}),this.svelteRootComponent?.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(dn)&&(r(dn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(dn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(dn).nextButtonActive=this.isNextButtonActive(),r(dn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),this.svelteRootComponent?.seekTime(e))}seekEpisodeStartTime(e){this.log({message:`seek episode start time, time: ${e}`}),this.svelteRootComponent?.seekEpisodeStartTime(e)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(e){this.log({message:`set playback rate to: ${e}`}),this.svelteRootComponent?.setPlaybackRate(e)}setAutoQualityLimits(e){this.log({message:`set auto quality limitation. Max: ${e.max??"none"}. Min: ${e.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(e)}addLanguage(e){this.store?.actions.internal.addLanguage(e)}async setLanguage(e){await this.store?.actions.internal.setLanguage(e)}setLiveStart(e){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingStart(!0)}setLiveWaitingRecover(){this.log({message:"live waiting recover"}),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{this.store?.actions.internal.setLiveWaitingRecover(!0),this.store?.destroy()})}setLiveWaitingRecord(){this.log({message:"post live"}),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{this.store?.actions.internal.setLiveWaitingRecord(!0),this.store?.destroy()})}setLiveEnd(e){this.log({message:"live ended"}),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){this.log({message:"live switch to low latency "+e}),this.store?.actions.external.setLiveLowLatency(e)}setLooped(e){this.store?.actions.internal.setLooped(e)}getDebugData(){return this.store?.actions.internal.getDebugTextData()??""}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){if(this.interactiveController&&this.store?.state.positionExact$){let i=$e(this.store.state.positionExact$),n=$e(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe(Bx()).subscribe(()=>{n&&i>=n.time?this.seekTime(n.time):this.seekTime(i),e?.()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a?.chapter?.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){this.store?.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){this.store?.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){this.store?.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){this.store?.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){this.store?.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){this.store?.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){this.store?.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){this.store?.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){this.store?.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat.updateContext(e)}handleTimerNextVideo(e){this.store?.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){this.store?.actions.internal.togglePictureInPicture()}focus(){this.svelteRootComponent?.keyboardControls?.focus?.()}handleExternalKeyboardEvent(e){return!!this.svelteRootComponent?.keyboardControls?.handleExternalKeyboardEvent(e)}unmountComponent(e){e&&Ma(e)}};import{InterfaceLanguage as CZ,VKNumericLanguage as kZ,loadVKLangPack as TZ}from"@vkontakte/videoplayer-shared";import{VideoQuality as EZ,VideoFormat as PZ}from"@vkontakte/videoplayer-core";var hZ=()=>{window.customElements.define("vk-video-player",Jc)};export{Mc as ControlButtonType,Ar as GridTypes,CZ as InterfaceLanguage,Pl as MenuItemType,Gr as PlayerPhase,As as VERSION,kZ as VKNumericLanguage,PZ as VideoFormat,EZ as VideoQuality,TZ as loadVKLangPack,hZ as registerPlayerWebComponent};