@vkontakte/videoplayer 1.1.67-dev.992eb225.0 → 1.1.67-dev.f850506b.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/evergreen.esm.js CHANGED
@@ -1,59 +1,59 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.67-dev.992eb225.0
3
- * Mon, 14 Jul 2025 08:51:34 GMT
2
+ * @vkontakte/videoplayer v1.1.67-dev.f850506b.0
3
+ * Fri, 18 Jul 2025 06:22:43 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-67/doc/
5
5
  */
6
- var ms="[",vs="[!",Ps="]",Br={};var ki=Symbol(),nn=Symbol("filename"),zm=Symbol("hmr"),Wm="http://www.w3.org/1999/xhtml",zd="http://www.w3.org/2000/svg";var Su="@attach";var Wd=!0;var qm=globalThis.process?.env?.NODE_ENV,Te=qm&&!qm.toLowerCase().startsWith("prod");var Tn=Array.isArray,Km=Array.prototype.indexOf,sl=Array.from,Cu=Object.keys,Vi=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,qd=Object.getOwnPropertyDescriptors,Tu=Object.prototype,Qm=Array.prototype,Ms=Object.getPrototypeOf,ku=Object.isExtensible;function gs(t){return typeof t=="function"}var X=()=>{};function Gm(t){return t()}function hs(t){for(var e=0;e<t.length;e++)t[e]()}var mo=Symbol("$state"),_a=Symbol("legacy props"),jm=Symbol(""),Kd=Symbol("proxy path"),Qd=1,ba=3,kn=8;function Gd(t){return t===this.v}function $a(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ym(t,e){return t!==e}function ya(t){return!$a(t,this.v)}function Zm(){if(Te){let t=new Error(`derived_references_self
6
+ var ms="[",vs="[!",As="]",Br={};var ki=Symbol(),tn=Symbol("filename"),zm=Symbol("hmr"),Wm="http://www.w3.org/1999/xhtml",zd="http://www.w3.org/2000/svg";var Su="@attach";var Wd=!0;var qm=globalThis.process?.env?.NODE_ENV,Ce=qm&&!qm.toLowerCase().startsWith("prod");var In=Array.isArray,Km=Array.prototype.indexOf,sl=Array.from,Cu=Object.keys,Li=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,qd=Object.getOwnPropertyDescriptors,Tu=Object.prototype,Qm=Array.prototype,Ms=Object.getPrototypeOf,ku=Object.isExtensible;function gs(t){return typeof t=="function"}var X=()=>{};function Gm(t){return t()}function hs(t){for(var e=0;e<t.length;e++)t[e]()}var uo=Symbol("$state"),_a=Symbol("legacy props"),jm=Symbol(""),Kd=Symbol("proxy path"),Qd=1,ba=3,Pn=8;function Gd(t){return t===this.v}function $a(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ym(t,e){return t!==e}function ya(t){return!$a(t,this.v)}function Zm(){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 Xm(t){if(Te){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 Xm(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 Jm(){if(Te){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 ev(t){if(Te){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 Jm(){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 ev(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 tv(){if(Te){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 tv(){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 iv(){if(Te){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 iv(){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 ov(){if(Te){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 nv(t){if(Te){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 ov(){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 nv(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 rv(t){if(Te){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 rv(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 sv(t){if(Te){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 sv(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 av(){if(Te){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 lv(){if(Te){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function dv(){if(Te){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Or=!1,Dr=!1;function cv(){Or=!0}var al=null;function Xr(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 av(){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 lv(){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 dv(){if(Ce){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Or=!1,Dr=!1;function cv(){Or=!0}var al=null;function Xr(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),r=[`
24
- `];for(let s=0;s<o.length;s++){let a=o[s];if(a!=="Error"){if(a.includes("validate_each_keys"))return null;a.includes("svelte/src/internal")||r.push(a)}}if(r.length===1)return null;Vi(e,"stack",{value:r.join(`
25
- `)}),Vi(e,"name",{value:`${t}Error`})}return e}function vr(t,e){return t.label=e,jd(t.v,e),t}function jd(t,e){return t?.[Kd]?.(e),t}function xa(t){if(Te){let e=new Error(`lifecycle_outside_component
24
+ `];for(let s=0;s<o.length;s++){let a=o[s];if(a!=="Error"){if(a.includes("validate_each_keys"))return null;a.includes("svelte/src/internal")||r.push(a)}}if(r.length===1)return null;Li(e,"stack",{value:r.join(`
25
+ `)}),Li(e,"name",{value:`${t}Error`})}return e}function vr(t,e){return t.label=e,jd(t.v,e),t}function jd(t,e){return t?.[Kd]?.(e),t}function xa(t){if(Ce){let e=new Error(`lifecycle_outside_component
26
26
  \`${t}(...)\` can only be used during component initialisation
27
- https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Pt=null;function ll(t){Pt=t}var En=null;function dl(t){En=t}function wa(t){return Au("getContext").get(t)}function Sa(t,e){return Au("setContext").set(t,e),e}function cl(){return Au("getAllContexts")}function D(t,e=!1,i){var o=Pt={p:Pt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Or&&!e&&(Pt.l={s:null,u:null,r1:[],r2:Jn(!1)}),vo(()=>{o.d=!0}),Te&&(Pt.function=i,En=i)}function H(t){let e=Pt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=ct,o=bt;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];Ni(s.effect),hi(s.reaction),to(s.fn)}}finally{Ni(i),hi(o)}}Pt=e.p,Te&&(En=e.p?.function??null),e.m=!0}return t||{}}function Hr(){return!Or||Pt!==null&&Pt.l===null}function Au(t){return Pt===null&&xa(t),Pt.c??=new Map(E1(Pt)||void 0)}function E1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var I1=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Kt(t){if(typeof t!="object"||t===null||mo in t)return t;let e=Ms(t);if(e!==Tu&&e!==Qm)return t;var i=new Map,o=Tn(t),r=K(0),s=Te&&Dr?Xr("CreatedAt"):null,a=bt,l=m=>{var g=bt;hi(a);var c=m();return hi(g),c};o&&i.set("length",K(t.length,s));var d="";function u(m){d=m,vr(r,`${d} version`);for(let[g,c]of i)vr(c,Ls(d,g))}return new Proxy(t,{defineProperty(m,g,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&av();var $=i.get(g);return $===void 0?$=l(()=>{var w=K(c.value,s);return i.set(g,w),Te&&typeof g=="string"&&vr(w,Ls(d,g)),w}):N($,c.value,!0),!0},deleteProperty(m,g){var c=i.get(g);if(c===void 0){if(g in m){let x=l(()=>K(ki,s));i.set(g,x),Pu(r),Te&&vr(x,Ls(d,g))}}else{if(o&&typeof g=="string"){var $=i.get("length"),w=Number(g);Number.isInteger(w)&&w<$.v&&N($,w)}N(c,ki),Pu(r)}return!0},get(m,g,c){if(g===mo)return t;if(Te&&g===Kd)return u;var $=i.get(g),w=g in m;if($===void 0&&(!w||Eo(m,g)?.writable)&&($=l(()=>{var S=Kt(w?m[g]:ki),C=K(S,s);return Te&&vr(C,Ls(d,g)),C}),i.set(g,$)),$!==void 0){var x=n($);return x===ki?void 0:x}return Reflect.get(m,g,c)},getOwnPropertyDescriptor(m,g){var c=Reflect.getOwnPropertyDescriptor(m,g);if(c&&"value"in c){var $=i.get(g);$&&(c.value=n($))}else if(c===void 0){var w=i.get(g),x=w?.v;if(w!==void 0&&x!==ki)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return c},has(m,g){if(g===mo)return!0;var c=i.get(g),$=c!==void 0&&c.v!==ki||Reflect.has(m,g);if(c!==void 0||ct!==null&&(!$||Eo(m,g)?.writable)){c===void 0&&(c=l(()=>{var x=$?Kt(m[g]):ki,S=K(x,s);return Te&&vr(S,Ls(d,g)),S}),i.set(g,c));var w=n(c);if(w===ki)return!1}return $},set(m,g,c,$){var w=i.get(g),x=g in m;if(o&&g==="length")for(var S=c;S<w.v;S+=1){var C=i.get(S+"");C!==void 0?N(C,ki):S in m&&(C=l(()=>K(ki,s)),i.set(S+"",C),Te&&vr(C,Ls(d,S)))}if(w===void 0)(!x||Eo(m,g)?.writable)&&(w=l(()=>K(void 0,s)),N(w,Kt(c)),i.set(g,w),Te&&vr(w,Ls(d,g)));else{x=w.v!==ki;var A=l(()=>Kt(c));N(w,A)}var M=Reflect.getOwnPropertyDescriptor(m,g);if(M?.set&&M.set.call($,c),!x){if(o&&typeof g=="string"){var I=i.get("length"),k=Number(g);Number.isInteger(k)&&k>=I.v&&N(I,k+1)}Pu(r)}return!0},ownKeys(m){n(r);var g=Reflect.ownKeys(m).filter(w=>{var x=i.get(w);return x===void 0||x.v!==ki});for(var[c,$]of i)$.v!==ki&&!(c in m)&&g.push(c);return g},setPrototypeOf(){lv()}})}function Ls(t,e){return typeof e=="symbol"?`${t}[Symbol(${e.description??""})]`:I1.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Pu(t,e=1){N(t,t.v+e)}function Ca(t){try{if(t!==null&&typeof t=="object"&&mo in t)return t[mo]}catch{}return t}function Mu(t,e){return Object.is(Ca(t),Ca(e))}function gr(t){var e=2050,i=bt!==null&&(bt.f&2)!==0?bt:null;ct===null||i!==null&&(i.f&256)!==0?e|=256:ct.f|=1048576;let o={ctx:Pt,deps:null,effects:null,equals:Gd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i??ct};return Te&&Dr&&(o.created=Xr("CreatedAt")),o}function h(t){let e=gr(t);return Xd(e),e}function hr(t){let e=gr(t);return e.equals=ya,e}function Yd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)_i(e[i])}}var Lu=[];function A1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Nu(t){var e,i=ct;if(Ni(A1(t)),Te){let o=Rs;Ru(new Set);try{Lu.includes(t)&&Zm(),Lu.push(t),Yd(t),e=Zd(t)}finally{Ni(i),Ru(o),Lu.pop()}}else try{Yd(t),e=Zd(t)}finally{Ni(i)}return e}function Bu(t){var e=Nu(t);if(t.equals(e)||(t.v=e,t.wv=ul()),!Jr){var i=(es||(t.f&256)!==0)&&t.deps!==null?4096:1024;Do(t,i)}}var Rs=new Set,Ta=new Map;function Ru(t){Rs=t}function Jn(t,e){var i={f:0,v:t,reactions:null,equals:Gd,rv:0,wv:0};return Te&&Dr&&(i.created=e??Xr("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function K(t,e){let i=Jn(t,e);return Xd(i),i}function Fr(t,e=!1,i=!0){let o=Jn(t);return e||(o.equals=ya),Or&&i&&Pt!==null&&Pt.l!==null&&(Pt.l.s??=[]).push(o),o}function N(t,e,i=!1){bt!==null&&(!Mn||(bt.f&262144)!==0)&&Hr()&&(bt.f&262162)!==0&&!(An?.[1].includes(t)&&An[0]===bt)&&dv();let o=i?Kt(e):e;return Te&&jd(o,t.label),ka(t,o)}function ka(t,e){if(!t.equals(e)){var i=t.v;if(Jr?Ta.set(t,e):Ta.set(t,i),t.v=e,Te&&Dr&&(t.updated=Xr("UpdatedAt"),ct!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Nu(t),Do(t,(t.f&256)===0?1024:4096)),t.wv=ul(),pv(t,2048),Hr()&&ct!==null&&(ct.f&1024)!==0&&(ct.f&96)===0&&(Pn===null?fv([t]):Pn.push(t)),Te&&Rs.size>0){let o=Array.from(Rs);for(let r of o)(r.f&1024)!==0&&Do(r,4096),Ns(r)&&Ea(r);Rs.clear()}}return e}function pv(t,e){var i=t.reactions;if(i!==null)for(var o=Hr(),r=i.length,s=0;s<r;s++){var a=i[s],l=a.f;if((l&2048)===0&&!(!o&&a===ct)){if(Te&&(l&262144)!==0){Rs.add(a);continue}Do(a,e),(l&1280)!==0&&((l&2)!==0?pv(a,4096):fl(a))}}}var Ia="font-weight: bold",Aa="font-weight: normal";function mv(t,e,i){Te?console.warn(`%c[svelte] hydration_attribute_changed
27
+ https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var At=null;function ll(t){At=t}var An=null;function dl(t){An=t}function wa(t){return Pu("getContext").get(t)}function Sa(t,e){return Pu("setContext").set(t,e),e}function cl(){return Pu("getAllContexts")}function D(t,e=!1,i){var o=At={p:At,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Or&&!e&&(At.l={s:null,u:null,r1:[],r2:er(!1)}),po(()=>{o.d=!0}),Ce&&(At.function=i,An=i)}function H(t){let e=At;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=ct,o=St;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];Ri(s.effect),bi(s.reaction),Yi(s.fn)}}finally{Ri(i),bi(o)}}At=e.p,Ce&&(An=e.p?.function??null),e.m=!0}return t||{}}function Hr(){return!Or||At!==null&&At.l===null}function Pu(t){return At===null&&xa(t),At.c??=new Map(E1(At)||void 0)}function E1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var I1=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Qt(t){if(typeof t!="object"||t===null||uo in t)return t;let e=Ms(t);if(e!==Tu&&e!==Qm)return t;var i=new Map,o=In(t),r=K(0),s=Ce&&Dr?Xr("CreatedAt"):null,a=St,l=m=>{var g=St;bi(a);var c=m();return bi(g),c};o&&i.set("length",K(t.length,s));var d="";function u(m){d=m,vr(r,`${d} version`);for(let[g,c]of i)vr(c,Ls(d,g))}return new Proxy(t,{defineProperty(m,g,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&av();var $=i.get(g);return $===void 0?$=l(()=>{var w=K(c.value,s);return i.set(g,w),Ce&&typeof g=="string"&&vr(w,Ls(d,g)),w}):N($,c.value,!0),!0},deleteProperty(m,g){var c=i.get(g);if(c===void 0){if(g in m){let x=l(()=>K(ki,s));i.set(g,x),Au(r),Ce&&vr(x,Ls(d,g))}}else{if(o&&typeof g=="string"){var $=i.get("length"),w=Number(g);Number.isInteger(w)&&w<$.v&&N($,w)}N(c,ki),Au(r)}return!0},get(m,g,c){if(g===uo)return t;if(Ce&&g===Kd)return u;var $=i.get(g),w=g in m;if($===void 0&&(!w||Po(m,g)?.writable)&&($=l(()=>{var S=Qt(w?m[g]:ki),C=K(S,s);return Ce&&vr(C,Ls(d,g)),C}),i.set(g,$)),$!==void 0){var x=n($);return x===ki?void 0:x}return Reflect.get(m,g,c)},getOwnPropertyDescriptor(m,g){var c=Reflect.getOwnPropertyDescriptor(m,g);if(c&&"value"in c){var $=i.get(g);$&&(c.value=n($))}else if(c===void 0){var w=i.get(g),x=w?.v;if(w!==void 0&&x!==ki)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return c},has(m,g){if(g===uo)return!0;var c=i.get(g),$=c!==void 0&&c.v!==ki||Reflect.has(m,g);if(c!==void 0||ct!==null&&(!$||Po(m,g)?.writable)){c===void 0&&(c=l(()=>{var x=$?Qt(m[g]):ki,S=K(x,s);return Ce&&vr(S,Ls(d,g)),S}),i.set(g,c));var w=n(c);if(w===ki)return!1}return $},set(m,g,c,$){var w=i.get(g),x=g in m;if(o&&g==="length")for(var S=c;S<w.v;S+=1){var C=i.get(S+"");C!==void 0?N(C,ki):S in m&&(C=l(()=>K(ki,s)),i.set(S+"",C),Ce&&vr(C,Ls(d,S)))}if(w===void 0)(!x||Po(m,g)?.writable)&&(w=l(()=>K(void 0,s)),N(w,Qt(c)),i.set(g,w),Ce&&vr(w,Ls(d,g)));else{x=w.v!==ki;var P=l(()=>Qt(c));N(w,P)}var M=Reflect.getOwnPropertyDescriptor(m,g);if(M?.set&&M.set.call($,c),!x){if(o&&typeof g=="string"){var I=i.get("length"),k=Number(g);Number.isInteger(k)&&k>=I.v&&N(I,k+1)}Au(r)}return!0},ownKeys(m){n(r);var g=Reflect.ownKeys(m).filter(w=>{var x=i.get(w);return x===void 0||x.v!==ki});for(var[c,$]of i)$.v!==ki&&!(c in m)&&g.push(c);return g},setPrototypeOf(){lv()}})}function Ls(t,e){return typeof e=="symbol"?`${t}[Symbol(${e.description??""})]`:I1.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Au(t,e=1){N(t,t.v+e)}function Ca(t){try{if(t!==null&&typeof t=="object"&&uo in t)return t[uo]}catch{}return t}function Mu(t,e){return Object.is(Ca(t),Ca(e))}function gr(t){var e=2050,i=St!==null&&(St.f&2)!==0?St:null;ct===null||i!==null&&(i.f&256)!==0?e|=256:ct.f|=1048576;let o={ctx:At,deps:null,effects:null,equals:Gd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i??ct};return Ce&&Dr&&(o.created=Xr("CreatedAt")),o}function h(t){let e=gr(t);return Xd(e),e}function hr(t){let e=gr(t);return e.equals=ya,e}function Yd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)$i(e[i])}}var Lu=[];function P1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Nu(t){var e,i=ct;if(Ri(P1(t)),Ce){let o=Rs;Ru(new Set);try{Lu.includes(t)&&Zm(),Lu.push(t),Yd(t),e=Zd(t)}finally{Ri(i),Ru(o),Lu.pop()}}else try{Yd(t),e=Zd(t)}finally{Ri(i)}return e}function Bu(t){var e=Nu(t);if(t.equals(e)||(t.v=e,t.wv=ul()),!Jr){var i=(es||(t.f&256)!==0)&&t.deps!==null?4096:1024;Fo(t,i)}}var Rs=new Set,Ta=new Map;function Ru(t){Rs=t}function er(t,e){var i={f:0,v:t,reactions:null,equals:Gd,rv:0,wv:0};return Ce&&Dr&&(i.created=e??Xr("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function K(t,e){let i=er(t,e);return Xd(i),i}function Fr(t,e=!1,i=!0){let o=er(t);return e||(o.equals=ya),Or&&i&&At!==null&&At.l!==null&&(At.l.s??=[]).push(o),o}function N(t,e,i=!1){St!==null&&(!Vn||(St.f&262144)!==0)&&Hr()&&(St.f&262162)!==0&&!(Ln?.[1].includes(t)&&Ln[0]===St)&&dv();let o=i?Qt(e):e;return Ce&&jd(o,t.label),ka(t,o)}function ka(t,e){if(!t.equals(e)){var i=t.v;if(Jr?Ta.set(t,e):Ta.set(t,i),t.v=e,Ce&&Dr&&(t.updated=Xr("UpdatedAt"),ct!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Nu(t),Fo(t,(t.f&256)===0?1024:4096)),t.wv=ul(),pv(t,2048),Hr()&&ct!==null&&(ct.f&1024)!==0&&(ct.f&96)===0&&(Rn===null?fv([t]):Rn.push(t)),Ce&&Rs.size>0){let o=Array.from(Rs);for(let r of o)(r.f&1024)!==0&&Fo(r,4096),Ns(r)&&Ea(r);Rs.clear()}}return e}function pv(t,e){var i=t.reactions;if(i!==null)for(var o=Hr(),r=i.length,s=0;s<r;s++){var a=i[s],l=a.f;if((l&2048)===0&&!(!o&&a===ct)){if(Ce&&(l&262144)!==0){Rs.add(a);continue}Fo(a,e),(l&1280)!==0&&((l&2)!==0?pv(a,4096):fl(a))}}}var Ia="font-weight: bold",Pa="font-weight: normal";function mv(t,e,i){Ce?console.warn(`%c[svelte] hydration_attribute_changed
28
28
  %cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
29
- https://svelte.dev/e/hydration_attribute_changed`,Ia,Aa):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function vv(t){Te?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,Ia,Pa):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function vv(t){Ce?console.warn(`%c[svelte] hydration_html_changed
30
30
  %c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
31
- https://svelte.dev/e/hydration_html_changed`,Ia,Aa):console.warn("https://svelte.dev/e/hydration_html_changed")}function _s(t){Te?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,Ia,Pa):console.warn("https://svelte.dev/e/hydration_html_changed")}function _s(t){Ce?console.warn(`%c[svelte] hydration_mismatch
32
32
  %c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
33
- https://svelte.dev/e/hydration_mismatch`,Ia,Aa):console.warn("https://svelte.dev/e/hydration_mismatch")}function gv(){Te?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,Ia,Pa):console.warn("https://svelte.dev/e/hydration_mismatch")}function gv(){Ce?console.warn(`%c[svelte] lifecycle_double_unmount
34
34
  %cTried to unmount a component that was not mounted
35
- https://svelte.dev/e/lifecycle_double_unmount`,Ia,Aa):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function hv(){Te?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",Ia,Aa):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Jd(t){Te?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,Ia,Pa):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function hv(){Ce?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",Ia,Pa):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Jd(t){Ce?console.warn(`%c[svelte] state_proxy_equality_mismatch
36
36
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
37
- https://svelte.dev/e/state_proxy_equality_mismatch`,Ia,Aa):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Qe=!1;function Bi(t){Qe=t}var ut;function ti(t){if(t===null)throw _s(),Br;return ut=t}function bi(){return ti(ho(ut))}function v(t){if(Qe){if(ho(ut)!==null)throw _s(),Br;ut=t}}function be(t=1){if(Qe){for(var e=t,i=ut;e--;)i=ho(i);ut=i}}function Bs(){for(var t=0,e=ut;;){if(e.nodeType===kn){var i=e.data;if(i===Ps){if(t===0)return e;t-=1}else(i===ms||i===vs)&&(t+=1)}var o=ho(e);e.remove(),e=o}}function ec(t){if(!t||t.nodeType!==kn)throw _s(),Br;return t.data}function _v(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(s,a){let l=i.call(this,s,a);if(l===-1){for(let d=a??0;d<this.length;d+=1)if(Ca(this[d])===s){Jd("array.indexOf(...)");break}}return l},t.lastIndexOf=function(s,a){let l=o.call(this,s,a??this.length-1);if(l===-1){for(let d=0;d<=(a??this.length-1);d+=1)if(Ca(this[d])===s){Jd("array.lastIndexOf(...)");break}}return l},t.includes=function(s,a){let l=r.call(this,s,a);if(!l){for(let d=0;d<this.length;d+=1)if(Ca(this[d])===s){Jd("array.includes(...)");break}}return l},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var Os,bv,ml,$v,yv;function tc(){if(Os===void 0){Os=window,bv=document,ml=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;$v=Eo(e,"firstChild").get,yv=Eo(e,"nextSibling").get,ku(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),ku(i)&&(i.__t=void 0),Te&&(t.__svelte_meta=null,_v())}}function Ho(t=""){return document.createTextNode(t)}function oi(t){return $v.call(t)}function ho(t){return yv.call(t)}function _(t,e){if(!Qe)return oi(t);var i=oi(ut);if(i===null)i=ut.appendChild(Ho());else if(e&&i.nodeType!==ba){var o=Ho();return i?.before(o),ti(o),o}return ti(i),i}function le(t,e){if(!Qe){var i=oi(t);return i.nodeType===8&&i.data===""?ho(i):i}if(e&&ut?.nodeType!==ba){var o=Ho();return ut?.before(o),ti(o),o}return ut}function E(t,e=1,i=!1){let o=Qe?ut:t;for(var r;e--;)r=o,o=ho(o);if(!Qe)return o;if(i&&o?.nodeType!==ba){var s=Ho();return o===null?r?.after(s):o.before(s),ti(s),s}return ti(o),o}function vl(t){t.textContent=""}function Hu(t){ct===null&&bt===null&&ev(t),bt!==null&&(bt.f&256)!==0&&ct===null&&Jm(),Jr&&Xm(t)}function P1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Ds(t,e,i,o=!0){var r=ct;if(Te)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:Pt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Te&&(s.component_function=En),i)try{Ea(s),s.f|=32768}catch(d){throw _i(s),d}else e!==null&&fl(s);var a=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!a&&o&&(r!==null&&P1(s,r),bt!==null&&(bt.f&2)!==0)){var l=bt;(l.effects??=[]).push(s)}return s}function vo(t){let e=Ds(8,null,!1);return Do(e,1024),e.teardown=t,e}function Oe(t){Hu("$effect");var e=ct!==null&&(ct.f&32)!==0&&Pt!==null&&!Pt.m;if(Te&&Vi(t,"name",{value:"$effect"}),e){var i=Pt;(i.e??=[]).push({fn:t,effect:ct,reaction:bt})}else{var o=to(t);return o}}function _l(t){return Hu("$effect.pre"),Te&&Vi(t,"name",{value:"$effect.pre"}),_o(t)}function nc(t){let e=Ds(64,t,!0);return()=>{_i(e)}}function wv(t){let e=Ds(64,t,!0);return(i={})=>new Promise(o=>{i.outro?ln(e,()=>{_i(e),o(void 0)}):(_i(e),o(void 0))})}function to(t){return Ds(4,t,!1)}function _o(t){return Ds(8,t,!0)}function B(t,e=[],i=gr){if(Te)return _o(()=>{var r=ct,s=()=>t(...a.map(n));Vi(r.fn,"name",{value:"{expression}"}),Vi(s,"name",{value:"{expression}"});let a=e.map(i);$i(s)});let o=e.map(i);return $i(()=>t(...o.map(n)))}function $i(t,e=0){return Ds(24|e,t,!0)}function ci(t,e=!0){return Ds(40,t,!0,e)}function Fu(t){var e=t.teardown;if(e!==null){let i=Jr,o=bt;Ou(!0),hi(null);try{e.call(null)}finally{Ou(i),hi(o)}}}function Uu(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:_i(i,e),i=o}}function Sv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&_i(e),e=i}}function _i(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(zu(t.nodes_start,t.nodes_end),i=!0),Uu(t,e&&!i),bl(t,0),Do(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Fu(t);var r=t.parent;r!==null&&r.first!==null&&Wu(t),Te&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function zu(t,e){for(;t!==null;){var i=t===e?null:ho(t);t.remove(),t=i}}function Wu(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function ln(t,e){var i=[];rc(t,i,!0),qu(i,()=>{_i(t),e&&e()})}function qu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function rc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let a of t.transitions)(a.is_global||i)&&e.push(a);for(var o=t.first;o!==null;){var r=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;rc(o,e,s?i:!1),o=r}}}function is(t){Cv(t,!0)}function Cv(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;Cv(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var $l=[],Ku=[];function Tv(){var t=$l;$l=[],hs(t)}function M1(){var t=Ku;Ku=[],hs(t)}function Fo(t){$l.length===0&&queueMicrotask(Tv),$l.push(t)}function kv(){$l.length>0&&Tv(),Ku.length>0&&M1()}function Iv(t){var e=ct;if(Te&&t instanceof Error&&L1(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else yl(t,e)}function yl(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch{}e=e.parent}throw t}var Ev=new WeakSet;function L1(t,e){if(Ev.has(t))return;Ev.add(t);let i=Eo(t,"message");if(!(i&&!i.configurable)){for(var o=ml?" ":" ",r=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Ia,Pa):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ke=!1;function Vi(t){Ke=t}var ut;function ei(t){if(t===null)throw _s(),Br;return ut=t}function yi(){return ei(mo(ut))}function v(t){if(Ke){if(mo(ut)!==null)throw _s(),Br;ut=t}}function $e(t=1){if(Ke){for(var e=t,i=ut;e--;)i=mo(i);ut=i}}function Bs(){for(var t=0,e=ut;;){if(e.nodeType===Pn){var i=e.data;if(i===As){if(t===0)return e;t-=1}else(i===ms||i===vs)&&(t+=1)}var o=mo(e);e.remove(),e=o}}function ec(t){if(!t||t.nodeType!==Pn)throw _s(),Br;return t.data}function _v(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(s,a){let l=i.call(this,s,a);if(l===-1){for(let d=a??0;d<this.length;d+=1)if(Ca(this[d])===s){Jd("array.indexOf(...)");break}}return l},t.lastIndexOf=function(s,a){let l=o.call(this,s,a??this.length-1);if(l===-1){for(let d=0;d<=(a??this.length-1);d+=1)if(Ca(this[d])===s){Jd("array.lastIndexOf(...)");break}}return l},t.includes=function(s,a){let l=r.call(this,s,a);if(!l){for(let d=0;d<this.length;d+=1)if(Ca(this[d])===s){Jd("array.includes(...)");break}}return l},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var Os,bv,ml,$v,yv;function tc(){if(Os===void 0){Os=window,bv=document,ml=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;$v=Po(e,"firstChild").get,yv=Po(e,"nextSibling").get,ku(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),ku(i)&&(i.__t=void 0),Ce&&(t.__svelte_meta=null,_v())}}function Uo(t=""){return document.createTextNode(t)}function oi(t){return $v.call(t)}function mo(t){return yv.call(t)}function _(t,e){if(!Ke)return oi(t);var i=oi(ut);if(i===null)i=ut.appendChild(Uo());else if(e&&i.nodeType!==ba){var o=Uo();return i?.before(o),ei(o),o}return ei(i),i}function ce(t,e){if(!Ke){var i=oi(t);return i.nodeType===8&&i.data===""?mo(i):i}if(e&&ut?.nodeType!==ba){var o=Uo();return ut?.before(o),ei(o),o}return ut}function E(t,e=1,i=!1){let o=Ke?ut:t;for(var r;e--;)r=o,o=mo(o);if(!Ke)return o;if(i&&o?.nodeType!==ba){var s=Uo();return o===null?r?.after(s):o.before(s),ei(s),s}return ei(o),o}function vl(t){t.textContent=""}function Hu(t){ct===null&&St===null&&ev(t),St!==null&&(St.f&256)!==0&&ct===null&&Jm(),Jr&&Xm(t)}function A1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Ds(t,e,i,o=!0){var r=ct;if(Ce)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:At,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Ce&&(s.component_function=An),i)try{Ea(s),s.f|=32768}catch(d){throw $i(s),d}else e!==null&&fl(s);var a=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!a&&o&&(r!==null&&A1(s,r),St!==null&&(St.f&2)!==0)){var l=St;(l.effects??=[]).push(s)}return s}function po(t){let e=Ds(8,null,!1);return Fo(e,1024),e.teardown=t,e}function De(t){Hu("$effect");var e=ct!==null&&(ct.f&32)!==0&&At!==null&&!At.m;if(Ce&&Li(t,"name",{value:"$effect"}),e){var i=At;(i.e??=[]).push({fn:t,effect:ct,reaction:St})}else{var o=Yi(t);return o}}function _l(t){return Hu("$effect.pre"),Ce&&Li(t,"name",{value:"$effect.pre"}),vo(t)}function nc(t){let e=Ds(64,t,!0);return()=>{$i(e)}}function wv(t){let e=Ds(64,t,!0);return(i={})=>new Promise(o=>{i.outro?sn(e,()=>{$i(e),o(void 0)}):($i(e),o(void 0))})}function Yi(t){return Ds(4,t,!1)}function vo(t){return Ds(8,t,!0)}function B(t,e=[],i=gr){if(Ce)return vo(()=>{var r=ct,s=()=>t(...a.map(n));Li(r.fn,"name",{value:"{expression}"}),Li(s,"name",{value:"{expression}"});let a=e.map(i);xi(s)});let o=e.map(i);return xi(()=>t(...o.map(n)))}function xi(t,e=0){return Ds(24|e,t,!0)}function fi(t,e=!0){return Ds(40,t,!0,e)}function Fu(t){var e=t.teardown;if(e!==null){let i=Jr,o=St;Ou(!0),bi(null);try{e.call(null)}finally{Ou(i),bi(o)}}}function Uu(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:$i(i,e),i=o}}function Sv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&$i(e),e=i}}function $i(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(zu(t.nodes_start,t.nodes_end),i=!0),Uu(t,e&&!i),bl(t,0),Fo(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Fu(t);var r=t.parent;r!==null&&r.first!==null&&Wu(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 zu(t,e){for(;t!==null;){var i=t===e?null:mo(t);t.remove(),t=i}}function Wu(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function sn(t,e){var i=[];rc(t,i,!0),qu(i,()=>{$i(t),e&&e()})}function qu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function rc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let a of t.transitions)(a.is_global||i)&&e.push(a);for(var o=t.first;o!==null;){var r=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;rc(o,e,s?i:!1),o=r}}}function is(t){Cv(t,!0)}function Cv(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;Cv(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var $l=[],Ku=[];function Tv(){var t=$l;$l=[],hs(t)}function M1(){var t=Ku;Ku=[],hs(t)}function zo(t){$l.length===0&&queueMicrotask(Tv),$l.push(t)}function kv(){$l.length>0&&Tv(),Ku.length>0&&M1()}function Iv(t){var e=ct;if(Ce&&t instanceof Error&&L1(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else yl(t,e)}function yl(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch{}e=e.parent}throw t}var Ev=new WeakSet;function L1(t,e){if(Ev.has(t))return;Ev.add(t);let i=Po(t,"message");if(!(i&&!i.configurable)){for(var o=ml?" ":" ",r=`
38
38
  ${o}in ${e.fn?.name||"<unknown>"}`,s=e.ctx;s!==null;)r+=`
39
- ${o}in ${s.function?.[nn].split("/").pop()}`,s=s.p;Vi(t,"message",{value:t.message+`
39
+ ${o}in ${s.function?.[tn].split("/").pop()}`,s=s.p;Li(t,"message",{value:t.message+`
40
40
  ${r}
41
- `}),t.stack&&Vi(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&Li(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var Hs=!1,Pa=null,Fs=!1,Jr=!1;function Ou(t){Jr=t}var xl=[],wl=[],bt=null,Mn=!1;function hi(t){bt=t}var ct=null;function Ni(t){ct=t}var An=null;function Xd(t){bt!==null&&bt.f&2097152&&(An===null?An=[bt,[t]]:An[1].push(t))}var Uo=null,Ln=0,Pn=null;function fv(t){Pn=t}var Mv=1,ac=0,es=!1,lc=null;function ul(){return++Mv}function Ns(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 r,s,a=(e&512)!==0,l=o&&ct!==null&&!es,d=i.length;if(a||l){var u=t,m=u.parent;for(r=0;r<d;r++)s=i[r],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=512),l&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(r=0;r<d;r++)if(s=i[r],Ns(s)&&Bu(s),s.wv>t.wv)return!0}(!o||ct!==null&&!es)&&Do(t,1024)}return!1}function Lv(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];An?.[1].includes(t)&&An[0]===bt||((s.f&2)!==0?Lv(s,e,!1):e===s&&(i?Do(s,2048):(s.f&1024)!==0&&Do(s,4096),fl(s)))}}function Zd(t){var e=Uo,i=Ln,o=Pn,r=bt,s=es,a=An,l=Pt,d=Mn,u=t.f;Uo=null,Ln=0,Pn=null,es=(u&256)!==0&&(Mn||!Fs||bt===null),bt=(u&96)===0?t:null,An=null,ll(t.ctx),Mn=!1,ac++,t.f|=2097152;try{var m=(0,t.fn)(),g=t.deps;if(Uo!==null){var c;if(bl(t,Ln),g!==null&&Ln>0)for(g.length=Ln+Uo.length,c=0;c<Uo.length;c++)g[Ln+c]=Uo[c];else t.deps=g=Uo;if(!es||(u&2)!==0&&t.reactions!==null)for(c=Ln;c<g.length;c++)(g[c].reactions??=[]).push(t)}else g!==null&&Ln<g.length&&(bl(t,Ln),g.length=Ln);if(Hr()&&Pn!==null&&!Mn&&g!==null&&(t.f&6146)===0)for(c=0;c<Pn.length;c++)Lv(Pn[c],t);return r!==null&&r!==t&&(ac++,Pn!==null&&(o===null?o=Pn:o.push(...Pn))),m}catch($){Iv($)}finally{Uo=e,Ln=i,Pn=o,bt=r,es=s,An=a,ll(l),Mn=d,t.f^=2097152}}function R1(t,e){let i=e.reactions;if(i!==null){var o=Km.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(Uo===null||!Uo.includes(e))&&(Do(e,4096),(e.f&768)===0&&(e.f^=512),Yd(e),bl(e,0))}function bl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)R1(t,i[o])}function Ea(t){var e=t.f;if((e&16384)===0){Do(t,1024);var i=ct,o=Fs;if(ct=t,Fs=!0,Te){var r=En;dl(t.component_function)}try{(e&16)!==0?Sv(t):Uu(t),Fu(t);var s=Zd(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Mv,Te&&Dr&&(t.f&2048)!==0&&t.deps!==null)for(var a of t.deps)a.set_during_effect&&(a.wv=ul(),a.set_during_effect=!1);Te&&wl.push(t)}finally{Fs=o,ct=i,Te&&dl(r)}}}function Av(){console.error("Last ten effects were: ",wl.slice(-10).map(t=>t.fn)),wl=[]}function V1(){try{tv()}catch(t){if(Te&&Vi(t,"stack",{value:""}),Pa!==null)if(Te)try{yl(t,Pa)}catch(e){throw Av(),e}else yl(t,Pa);else throw Te&&Av(),t}}function Gu(){var t=Fs;try{var e=0;for(Fs=!0;xl.length>0;){e++>1e3&&V1();var i=xl,o=i.length;xl=[];for(var r=0;r<o;r++){var s=B1(i[r]);N1(s)}Ta.clear()}}finally{Hs=!1,Fs=t,Pa=null,Te&&(wl=[])}}function N1(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Ns(o)&&(Ea(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Wu(o):o.fn=null))}}function fl(t){Hs||(Hs=!0,queueMicrotask(Gu));for(var e=Pa=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}xl.push(e)}function B1(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:Ns(i)&&Ea(i);var a=i.first;if(a!==null){i=a;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function Ma(t){var e;for(t&&(Hs=!0,Gu(),Hs=!0,e=t());;){if(kv(),xl.length===0)return Hs=!1,Pa=null,Te&&(wl=[]),e;Hs=!0,Gu()}}async function io(){await Promise.resolve(),Ma()}function n(t){var e=t.f,i=(e&2)!==0;if(lc!==null&&lc.add(t),bt!==null&&!Mn){if(!An?.[1].includes(t)||An[0]!==bt){var o=bt.deps;t.rv<ac&&(t.rv=ac,Uo===null&&o!==null&&o[Ln]===t?Ln++:Uo===null?Uo=[t]:(!es||!Uo.includes(t))&&Uo.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,Ns(r)&&Bu(r)),Te&&Dr&&!Mn&&al!==null&&bt!==null&&al.reaction===bt)if(t.trace)t.trace();else{var a=Xr("TracedAt");if(a){var l=al.entries.get(t);l===void 0&&(l={traces:[]},al.entries.set(t,l));var d=l.traces[l.traces.length-1];a.stack!==d?.stack&&l.traces.push(a)}}return Jr&&Ta.has(t)?Ta.get(t):t.v}function _t(t){var e=Mn;try{return Mn=!0,t()}finally{Mn=e}}var O1=-7169;function Do(t,e){t.f=t.f&O1|e}function cc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(mo in t)dc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&mo in i&&dc(i)}}}function dc(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{dc(t[o],e)}catch{}let i=Ms(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=qd(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch{}}}}}function ju(t,e){if(e){let i=document.body;t.autofocus=!0,Fo(()=>{document.activeElement===i&&t.focus()})}}function Sl(t){var e=bt,i=ct;hi(null),Ni(null);try{return t()}finally{hi(e),Ni(i)}}var Yu=new Set,uc=new Set;function Us(t){if(!Qe)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Zu(t,e,i,o={}){function r(s){if(o.capture||La.call(e,s),!s.cancelBubble)return Sl(()=>i?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Fo(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function gt(t,e,i,o,r){var s={capture:o,passive:r},a=Zu(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&vo(()=>{e.removeEventListener(t,a,s)})}function st(t){for(var e=0;e<t.length;e++)Yu.add(t[e]);for(var i of uc)i(t)}function La(t){var e=this,i=e.ownerDocument,o=t.type,r=t.composedPath?.()||[],s=r[0]||t.target,a=0,l=t.__root;if(l){var d=r.indexOf(l);if(d!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;d<=u&&(a=d)}if(s=r[a]||t.target,s!==e){Vi(t,"currentTarget",{configurable:!0,get(){return s||i}});var m=bt,g=ct;hi(null),Ni(null);try{for(var c,$=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+o];if(x!=null&&(!s.disabled||t.target===s))if(Tn(x)){var[S,...C]=x;S.apply(s,[t,...C])}else x.call(s,t)}catch(A){c?$.push(A):c=A}if(t.cancelBubble||w===e||w===null)break;s=w}if(c){for(let A of $)queueMicrotask(()=>{throw A});throw c}}finally{t.__root=e,delete t.currentTarget,hi(m),Ni(g)}}}var H1;function Rv(){H1=void 0}function Ra(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function oo(t,e){var i=ct;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function P(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,s=!t.startsWith("<!>");return()=>{if(Qe)return oo(ut,null),ut;r===void 0&&(r=Ra(s?t:"<!>"+t),i||(r=oi(r)));var a=o||ml?document.importNode(r,!0):r.cloneNode(!0);if(i){var l=oi(a),d=a.lastChild;oo(l,d)}else oo(a,a);return a}}function z1(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,a;return()=>{if(Qe)return oo(ut,null),ut;if(!a){var l=Ra(s),d=oi(l);if(r)for(a=document.createDocumentFragment();oi(d);)a.appendChild(oi(d));else a=oi(d)}var u=a.cloneNode(!0);if(r){var m=oi(u),g=u.lastChild;oo(m,g)}else oo(u,u);return u}}function $e(t,e){return z1(t,e,"svg")}function Ur(t=""){if(!Qe){var e=Ho(t+"");return oo(e,e),e}var i=ut;return i.nodeType!==ba&&(i.before(i=Ho()),ti(i)),oo(i,i),i}function Be(){if(Qe)return oo(ut,null),ut;var t=document.createDocumentFragment(),e=document.createComment(""),i=Ho();return t.append(e,i),oo(e,i),t}function b(t,e){if(Qe){ct.nodes_end=ut,bi();return}t!==null&&t.before(e)}var W1=/\r/g;function Nv(t){t=t.replace(W1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Bv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var q1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ov(t){return q1.includes(t)}var K1=["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 Q1={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 Dv(t){return t=t.toLowerCase(),Q1[t]??t}var K6=[...K1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var G1=["touchstart","touchmove"];function Hv(t){return G1.includes(t)}var j1=["$state","$state.raw","$derived","$derived.by"],Q6=[...j1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var Y1=["textarea","script","style","title"];function Fv(t){return Y1.includes(t)}function pc(t){return t?.replace(/\//g,"/\u200B")}var Cl=!0;function fc(t){Cl=t}function ue(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function os(t,e){return Uv(t,e)}function Ju(t,e){tc(),e.intro=e.intro??!1;let i=e.target,o=Qe,r=ut;try{for(var s=oi(i);s&&(s.nodeType!==kn||s.data!==ms);)s=ho(s);if(!s)throw Br;Bi(!0),ti(s),bi();let a=Uv(t,{...e,anchor:s});if(ut===null||ut.nodeType!==kn||ut.data!==Ps)throw _s(),Br;return Bi(!1),a}catch(a){if(a===Br)return e.recover===!1&&iv(),tc(),vl(i),Bi(!1),os(t,e);throw a}finally{Bi(o),ti(r),Rv()}}var Va=new Map;function Uv(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:a=!0}){tc();var l=new Set,d=g=>{for(var c=0;c<g.length;c++){var $=g[c];if(!l.has($)){l.add($);var w=Hv($);e.addEventListener($,La,{passive:w});var x=Va.get($);x===void 0?(document.addEventListener($,La,{passive:w}),Va.set($,1)):Va.set($,x+1)}}};d(sl(Yu)),uc.add(d);var u=void 0,m=wv(()=>{var g=i??e.appendChild(Ho());return ci(()=>{if(s){D({});var c=Pt;c.c=s}r&&(o.$$events=r),Qe&&oo(g,null),Cl=a,u=t(g,o)||{},Cl=!0,Qe&&(ct.nodes_end=ut),s&&H()}),()=>{for(var c of l){e.removeEventListener(c,La);var $=Va.get(c);--$===0?(document.removeEventListener(c,La),Va.delete(c)):Va.set(c,$)}uc.delete(d),g!==i&&g.parentNode?.removeChild(g)}});return Xu.set(u,m),u}var Xu=new WeakMap;function zs(t,e){let i=Xu.get(t);return i?(Xu.delete(t),i(e)):(Te&&gv(),Promise.resolve())}function pe(t,e,...i){var o=t,r=X,s;$i(()=>{r!==(r=e())&&(s&&(_i(s),s=null),Te&&r==null&&ov(),s=ci(()=>r(o,...i)))},65536),Qe&&(o=ut)}if(Te){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;sv(e)},set:o=>{i=o}})}};e0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var e0;function Et(t){Pt===null&&xa("onMount"),Or&&Pt.l!==null?J1(Pt).m.push(t):Oe(()=>{let e=_t(t);if(typeof e=="function")return e})}function dn(t){Pt===null&&xa("onDestroy"),Et(()=>()=>_t(t))}function J1(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}var zv=new Map;function Wv(t,e){var i=zv.get(t);i||(i=new Set,zv.set(t,i)),i.add(e)}function L(t,e,[i,o]=[0,0]){Qe&&i===0&&bi();var r=t,s=null,a=null,l=ki,d=i>0?65536:0,u=!1;let m=(c,$=!0)=>{u=!0,g($,c)},g=(c,$)=>{if(l===(l=c))return;let w=!1;if(Qe&&o!==-1){if(i===0){let S=ec(r);S===ms?o=0:S===vs?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=l?1/0:-1))}let x=o>i;!!l===x&&(r=Bs(),ti(r),Bi(!1),w=!0,o=-1)}l?(s?is(s):$&&(s=ci(()=>$(r))),a&&ln(a,()=>{a=null})):(a?is(a):$&&(a=ci(()=>$(r,[i+1,o]))),s&&ln(s,()=>{s=null})),w&&Bi(!0)};$i(()=>{u=!1,e(m),u||g(null,null)},d),Qe&&(r=ut)}function Ws(t,e,i){Qe&&bi();var o=t,r=ki,s,a=Hr()?Ym:$a;$i(()=>{a(r,r=e())&&(s&&ln(s),s=ci(()=>i(o)))}),Qe&&(o=ut)}var $s=null;function ip(t){$s=t}function Tl(t,e){return e}function o0(t,e,i,o){for(var r=[],s=e.length,a=0;a<s;a++)rc(e[a].e,r,!0);var l=s>0&&r.length===0&&i!==null;if(l){var d=i.parentNode;vl(d),d.append(i),o.clear(),bs(t,e[0].prev,e[s-1].next)}qu(r,()=>{for(var u=0;u<s;u++){var m=e[u];l||(o.delete(m.k),bs(t,m.prev,m.next)),_i(m.e,!l)}})}function ai(t,e,i,o,r,s=null){var a=t,l={flags:e,items:new Map,first:null},d=(e&4)!==0;if(d){var u=t;a=Qe?ti(oi(u)):u.appendChild(Ho())}Qe&&bi();var m=null,g=!1,c=hr(()=>{var $=i();return Tn($)?$:$==null?[]:sl($)});$i(()=>{var $=n(c),w=$.length;if(g&&w===0)return;g=w===0;let x=!1;if(Qe){var S=ec(a)===vs;S!==(w===0)&&(a=Bs(),ti(a),Bi(!1),x=!0)}if(Qe){for(var C=null,A,M=0;M<w;M++){if(ut.nodeType===kn&&ut.data===Ps){a=ut,x=!0,Bi(!1);break}var I=$[M],k=o(I,M);A=Qv(ut,l,C,null,I,k,M,r,e,i),l.items.set(k,A),C=A}w>0&&ti(Bs())}Qe||n0($,l,a,r,e,o,i),s!==null&&(w===0?m?is(m):m=ci(()=>s(a)):m!==null&&ln(m,()=>{m=null})),x&&Bi(!0),n(c)}),Qe&&(a=ut)}function n0(t,e,i,o,r,s,a){var l=(r&8)!==0,d=(r&3)!==0,u=t.length,m=e.items,g=e.first,c=g,$,w=null,x,S=[],C=[],A,M,I,k;if(l)for(k=0;k<u;k+=1)A=t[k],M=s(A,k),I=m.get(M),I!==void 0&&(I.a?.measure(),(x??=new Set).add(I));for(k=0;k<u;k+=1){if(A=t[k],M=s(A,k),I=m.get(M),I===void 0){var V=c?c.e.nodes_start:i;w=Qv(V,e,w,w===null?e.first:w.next,A,M,k,o,r,a),m.set(M,w),S=[],C=[],c=w.next;continue}if(d&&r0(I,A,k,r),(I.e.f&8192)!==0&&(is(I.e),l&&(I.a?.unfix(),(x??=new Set).delete(I))),I!==c){if($!==void 0&&$.has(I)){if(S.length<C.length){var q=C[0],z;w=q.prev;var ie=S[0],oe=S[S.length-1];for(z=0;z<S.length;z+=1)qv(S[z],q,i);for(z=0;z<C.length;z+=1)$.delete(C[z]);bs(e,ie.prev,oe.next),bs(e,w,ie),bs(e,oe,q),c=q,w=oe,k-=1,S=[],C=[]}else $.delete(I),qv(I,c,i),bs(e,I.prev,I.next),bs(e,I,w===null?e.first:w.next),bs(e,w,I),w=I;continue}for(S=[],C=[];c!==null&&c.k!==M;)(c.e.f&8192)===0&&($??=new Set).add(c),C.push(c),c=c.next;if(c===null)continue;I=c}S.push(I),w=I,c=I.next}if(c!==null||$!==void 0){for(var me=$===void 0?[]:sl($);c!==null;)(c.e.f&8192)===0&&me.push(c),c=c.next;var Q=me.length;if(Q>0){var fe=(r&4)!==0&&u===0?i:null;if(l){for(k=0;k<Q;k+=1)me[k].a?.measure();for(k=0;k<Q;k+=1)me[k].a?.fix()}o0(e,me,fe,m)}}l&&Fo(()=>{if(x!==void 0)for(I of x)I.a?.apply()}),ct.first=e.first&&e.first.e,ct.last=w&&w.e}function r0(t,e,i,o){(o&1)!==0&&ka(t.v,e),(o&2)!==0?ka(t.i,i):t.i=i}function Qv(t,e,i,o,r,s,a,l,d,u){var m=$s,g=(d&1)!==0,c=(d&16)===0,$=g?c?Fr(r,!1,!1):Jn(r):r,w=(d&2)===0?a:Jn(a);Te&&g&&($.trace=()=>{var S=typeof w=="number"?a:w.v;u()[S]});var x={i:w,v:$,k:s,a:null,e:null,prev:i,next:o};$s=x;try{return x.e=ci(()=>l(t,$,w,u),Qe),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{$s=m}}function qv(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var a=ho(s);r.before(s),s=a}}function bs(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 s0(t,e,i){if(!e||e===Nv(String(i??"")))return;let o,r=t.__svelte_meta?.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:En?.[nn]&&(o=`in ${En[nn]}`),vv(pc(o))}function kl(t,e,i=!1,o=!1,r=!1){var s=t,a="";B(()=>{var l=ct;if(a===(a=e()??"")){Qe&&bi();return}if(l.nodes_start!==null&&(zu(l.nodes_start,l.nodes_end),l.nodes_start=l.nodes_end=null),a!==""){if(Qe){for(var d=ut.data,u=bi(),m=u;u!==null&&(u.nodeType!==kn||u.data!=="");)m=u,u=ho(u);if(u===null)throw _s(),Br;Te&&!r&&s0(u.parentNode,d,a),oo(ut,m),s=ti(u);return}var g=a+"";i?g=`<svg>${g}</svg>`:o&&(g=`<math>${g}</math>`);var c=Ra(g);if((i||o)&&(c=oi(c)),oo(oi(c),c.lastChild),i||o)for(;oi(c);)s.before(oi(c));else s.before(c)}})}function li(t,e,i){Qe&&bi();var o=t,r,s;$i(()=>{r!==(r=e())&&(s&&(ln(s),s=null),r&&(s=ci(()=>i(o,r))))},65536),Qe&&(o=ut)}function qs(t,e,i,o,r,s){let a=Qe;Qe&&bi();var l=Te&&s&&Pt?.function[nn],d,u,m=null;Qe&&ut.nodeType===Qd&&(m=ut,bi());var g=Qe?ut:t,c,$=$s;$i(()=>{let w=e()||null;var x=r?r():i||w==="svg"?zd:null;if(w!==d){var S=$s;ip($),c&&(w===null?ln(c,()=>{c=null,u=null}):w===u?is(c):(_i(c),fc(!1))),w&&w!==u&&(c=ci(()=>{if(m=Qe?m:x?document.createElementNS(x,w):document.createElement(w),Te&&s&&(m.__svelte_meta={loc:{file:l,line:s[0],column:s[1]}}),oo(m,m),o){Qe&&Fv(w)&&m.append(document.createComment(""));var C=Qe?oi(m):m.appendChild(Ho());Qe&&(C===null?Bi(!1):ti(C)),o(m,C)}ct.nodes_end=m,g.before(m)})),d=w,d&&(u=d),fc(!0),ip(S)}},65536),a&&(Bi(!0),ti(g))}var np;function Gv(t){return np=t.target,new op(t)}var op=class{#t;#e;constructor(e){var i=new Map,o=(s,a)=>{var l=Fr(a,!1,!1);return i.set(s,l),l};let r=new Proxy({...e.props||{},$$events:{}},{get(s,a){return n(i.get(a)??o(a,Reflect.get(s,a)))},has(s,a){return a===_a?!0:(n(i.get(a)??o(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return N(i.get(a)??o(a,l),l),Reflect.set(s,a,l)}});this.#e=(e.hydrate?Ju:os)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Ma(),this.#t=r.$$events;for(let s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Vi(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(r,s)},this.#e.$destroy=()=>{zs(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...r)=>i.call(this,...r);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(r=>r!==o)}}$destroy(){this.#e.$destroy()}};function U(t,e){Fo(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??np?.parentNode;if(!o?.querySelector("#"+e.hash)){let r=document.createElement("style");r.id=e.hash,r.textContent=e.code,o.appendChild(r),Te&&Wv(e.hash,r)}})}function rp(t,e){var i=void 0,o;$i(()=>{i!==(i=e())&&(o&&(_i(o),o=null),i&&(o=ci(()=>{to(()=>i(t))})))})}function jv(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=jv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Yv(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=jv(t))&&(o&&(o+=" "),o+=e);return o}function El(t){return typeof t=="object"?Yv(t):t??""}var Zv=[...`
44
- \r\f\xA0\v\uFEFF`];function Jv(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var s=r.length,a=0;(a=o.indexOf(r,a))>=0;){var l=a+s;(a===0||Zv.includes(o[a-1]))&&(l===o.length||Zv.includes(o[l]))?o=(a===0?"":o.substring(0,a))+o.substring(l+1):a=l}}return o===""?null:o}function Xv(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function sp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function eg(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,a=0,l=!1,d=[];o&&d.push(...Object.keys(o).map(sp)),r&&d.push(...Object.keys(r).map(sp));var u=0,m=-1;let x=t.length;for(var g=0;g<x;g++){var c=t[g];if(l?c==="/"&&t[g-1]==="*"&&(l=!1):s?s===c&&(s=!1):c==="/"&&t[g+1]==="*"?l=!0:c==='"'||c==="'"?s=c:c==="("?a++:c===")"&&a--,!l&&s===!1&&a===0){if(c===":"&&m===-1)m=g;else if(c===";"||g===x-1){if(m!==-1){var $=sp(t.substring(u,m).trim());if(!d.includes($)){c!==";"&&g++;var w=t.substring(u,g).trim();i+=" "+w+";"}}u=g+1,m=-1}}}}return o&&(i+=Xv(o)),r&&(i+=Xv(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function Z(t,e,i,o,r,s){var a=t.__className;if(Qe||a!==i||a===void 0){var l=Jv(i,o,s);(!Qe||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):e?t.className=l:t.setAttribute("class",l)),t.__className=i}else if(s&&r!==s)for(var d in s){var u=!!s[d];(r==null||u!==!!r[d])&&t.classList.toggle(d,u)}return s}function ap(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function it(t,e,i,o){var r=t.__style;if(Qe||r!==e){var s=eg(e,o);(!Qe||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(ap(t,i?.[0],o[0]),ap(t,i?.[1],o[1],"important")):ap(t,i,o));return o}function Il(t,e,i){if(t.multiple){if(e==null)return;if(!Tn(e))return hv();for(var o of t.options)o.selected=e.includes(tg(o));return}for(o of t.options){var r=tg(o);if(Mu(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function lp(t){var e=new MutationObserver(()=>{Il(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),vo(()=>{e.disconnect()})}function tg(t){return"__value"in t?t.__value:t.value}var Na=Symbol("class"),Ba=Symbol("style"),ng=Symbol("is custom element"),rg=Symbol("is html");function sg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Me(t,e,i,o){var r=lg(t);if(Qe&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||m0(t,e,i??"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[jm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&dg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function ag(t,e,i,o,r=!1){var s=lg(t),a=s[ng],l=!s[rg];let d=Qe&&a;d&&Bi(!1);var u=e||{},m=t.tagName==="OPTION";for(var g in e)g in i||(i[g]=null);i.class?i.class=El(i.class):(o||i[Na])&&(i.class=null),i[Ba]&&(i.style??=null);var c=dg(t);for(let I in i){let k=i[I];if(m&&I==="value"&&k==null){t.value=t.__value="",u[I]=k;continue}if(I==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";Z(t,$,k,o,e?.[Na],i[Na]),u[I]=k,u[Na]=i[Na];continue}if(I==="style"){it(t,k,e?.[Ba],i[Ba]),u[I]=k,u[Ba]=i[Ba];continue}var w=u[I];if(!(k===w&&!(k===void 0&&t.hasAttribute(I)))){u[I]=k;var x=I[0]+I[1];if(x!=="$$")if(x==="on"){let V={},q="$$"+I,z=I.slice(2);var S=Ov(z);if(Bv(z)&&(z=z.slice(0,-7),V.capture=!0),!S&&w){if(k!=null)continue;t.removeEventListener(z,u[q],V),u[q]=null}if(k!=null)if(S)t[`__${z}`]=k,st([z]);else{let ie=function(oe){u[I].call(this,oe)};var M=ie;u[q]=Zu(z,t,ie,V)}else S&&(t[`__${z}`]=void 0)}else if(I==="style")Me(t,I,k);else if(I==="autofocus")ju(t,!!k);else if(!a&&(I==="__value"||I==="value"&&k!=null))t.value=t.__value=k;else if(I==="selected"&&m)sg(t,k);else{var C=I;l||(C=Dv(C));var A=C==="defaultValue"||C==="defaultChecked";if(k==null&&!a&&!A)if(s[I]=null,C==="value"||C==="checked"){let V=t,q=e===void 0;if(C==="value"){let z=V.defaultValue;V.removeAttribute(C),V.defaultValue=z,V.value=V.__value=q?z:null}else{let z=V.defaultChecked;V.removeAttribute(C),V.defaultChecked=z,V.checked=q?z:!1}}else t.removeAttribute(I);else A||c.includes(C)&&(a||typeof k!="string")?t[C]=k:typeof k!="function"&&Me(t,C,k,r)}}}return d&&Bi(!0),u}function Ce(t,e,i=[],o,r=!1,s=gr){let a=i.map(s);var l=void 0,d={},u=t.nodeName==="SELECT",m=!1;if($i(()=>{var c=e(...a.map(n)),$=ag(t,l,c,o,r);m&&u&&"value"in c&&Il(t,c.value,!1);for(let x of Object.getOwnPropertySymbols(d))c[x]||_i(d[x]);for(let x of Object.getOwnPropertySymbols(c)){var w=c[x];x.description===Su&&(!l||w!==l[x])&&(d[x]&&_i(d[x]),d[x]=ci(()=>rp(t,()=>w))),$[x]=w}l=$}),u){var g=t;to(()=>{Il(g,l.value),lp(g)})}m=!0}function lg(t){return t.__attributes??={[ng]:t.nodeName.includes("-"),[rg]:t.namespaceURI===Wm}}var ig=new Map;function dg(t){var e=ig.get(t.nodeName);if(e)return e;ig.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=qd(o);for(var s in i)i[s].set&&e.push(s);o=Ms(o)}return e}function m0(t,e,i){Te&&(e==="srcset"&&v0(t,i)||dp(t.getAttribute(e)??"",i)||mv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function dp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function og(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function v0(t,e){var i=og(t.srcset),o=og(e);return o.length===i.length&&o.every(([r,s],a)=>s===i[a][1]&&(dp(i[a][0],r)||dp(r,i[a][0])))}var g0=Wd?()=>performance.now():()=>Date.now(),$r={tick:t=>(Wd?requestAnimationFrame:X)(t),now:()=>g0(),tasks:new Set};function cg(){let t=$r.now();$r.tasks.forEach(e=>{e.c(t)||($r.tasks.delete(e),e.f())}),$r.tasks.size!==0&&$r.tick(cg)}function ug(t){let e;return $r.tasks.size===0&&$r.tick(cg),{promise:new Promise(i=>{$r.tasks.add(e={c:t,f:i})}),abort(){$r.tasks.delete(e)}}}function mc(t,e){Sl(()=>{t.dispatchEvent(new CustomEvent(e))})}function $0(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 pg(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let a=$0(r.trim());e[a]=s.trim()}return e}var y0=t=>t;function up(t,e,i,o){var r=(t&1)!==0,s=(t&2)!==0,a=r&&s,l=(t&4)!==0,d=a?"both":r?"in":"out",u,m=e.inert,g=e.style.overflow,c,$;function w(){var M=bt,I=ct;hi(null),Ni(null);try{return u??=i()(e,o?.()??{},{direction:d})}finally{hi(M),Ni(I)}}var x={is_global:l,in(){if(e.inert=m,!r){$?.abort(),$?.reset?.();return}s||c?.abort(),mc(e,"introstart"),c=cp(e,w(),$,1,()=>{mc(e,"introend"),c?.abort(),c=u=void 0,e.style.overflow=g})},out(M){if(!s){M?.(),u=void 0;return}e.inert=!0,mc(e,"outrostart"),$=cp(e,w(),c,0,()=>{mc(e,"outroend"),M?.()})},stop:()=>{c?.abort(),$?.abort()}},S=ct;if((S.transitions??=[]).push(x),r&&Cl){var C=l;if(!C){for(var A=S.parent;A&&(A.f&65536)!==0;)for(;(A=A.parent)&&(A.f&16)===0;);C=!A||(A.f&32768)!==0}C&&to(()=>{_t(()=>x.in())})}}function cp(t,e,i,o,r){var s=o===1;if(gs(e)){var a,l=!1;return Fo(()=>{if(!l){var S=e({direction:s?"in":"out"});a=cp(t,S,i,o,r)}}),{abort:()=>{l=!0,a?.abort()},deactivate:()=>a.deactivate(),reset:()=>a.reset(),t:()=>a.t()}}if(i?.deactivate(),!e?.duration)return r(),{abort:X,deactivate:X,reset:X,t:()=>o};let{delay:d=0,css:u,tick:m,easing:g=y0}=e;var c=[];if(s&&i===void 0&&(m&&m(0,1),u)){var $=pg(u(0,1));c.push($,$)}var w=()=>1-o,x=t.animate(c,{duration:d,fill:"forwards"});return x.onfinish=()=>{x.cancel();var S=i?.t()??1-o;i?.abort();var C=o-S,A=e.duration*Math.abs(C),M=[];if(A>0){var I=!1;if(u)for(var k=Math.ceil(A/16.666666666666668),V=0;V<=k;V+=1){var q=S+C*g(V/k),z=pg(u(q,1-q));M.push(z),I||=z.overflow==="hidden"}I&&(t.style.overflow="hidden"),w=()=>{var ie=x.currentTime;return S+C*g(ie/A)},m&&ug(()=>{if(x.playState!=="running")return!1;var ie=w();return m(ie,1-ie),!0})}x=t.animate(M,{duration:A,fill:"forwards"}),x.onfinish=()=>{w=()=>o,m?.(o,1-o),r()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=X)},deactivate:()=>{r=X},reset:()=>{o===0&&m?.(1,0)},t:()=>w()}}var pp=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 r=this.#t.get(e);r.delete(i),r.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 x0=new pp({box:"border-box"});function zr(t,e,i){var o=x0.observe(t,()=>i(t[e]));to(()=>(_t(()=>i(t[e])),o))}function fg(t,e){return t===e||t?.[mo]===e}function Xe(t={},e,i,o){return to(()=>{var r,s;return _o(()=>{r=s,s=o?.()||[],_t(()=>{t!==i(...s)&&(e(t,...s),r&&fg(i(...r),t)&&e(null,...r))})}),()=>{Fo(()=>{s&&fg(i(...s),t)&&e(null,...s)})}}),t}function yr(t=!1){let e=Pt,i=e.l.u;if(!i)return;let o=()=>cc(e.s);if(t){let r=0,s={},a=gr(()=>{let l=!1,d=e.s;for(let u in d)d[u]!==s[u]&&(s[u]=d[u],l=!0);return l&&r++,r});o=()=>n(a)}i.b.length&&_l(()=>{mg(e,o),hs(i.b)}),Oe(()=>{let r=_t(()=>i.m.map(Gm));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&Oe(()=>{mg(e,o),hs(i.a)})}function mg(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Al(t,e,i){if(t==null)return e(void 0),i&&i(void 0),X;let o=_t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Oa=[];function er(t,e){return{subscribe:te(t,e).subscribe}}function te(t,e=X){let i=null,o=new Set;function r(l){if($a(t,l)&&(t=l,i)){let d=!Oa.length;for(let u of o)u[1](),Oa.push(u,t);if(d){for(let u=0;u<Oa.length;u+=2)Oa[u][0](Oa[u+1]);Oa.length=0}}}function s(l){r(l(t))}function a(l,d=X){let u=[l,d];return o.add(u),o.size===1&&(i=e(r,s)||X),l(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:a}}function ni(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return er(i,(a,l)=>{let d=!1,u=[],m=0,g=X,c=()=>{if(m)return;g();let w=e(o?u[0]:u,a,l);s?a(w):g=typeof w=="function"?w:X},$=r.map((w,x)=>Al(w,S=>{u[x]=S,m&=~(1<<x),d&&c()},()=>{m|=1<<x}));return d=!0,c(),function(){hs($),g(),d=!1}})}function ge(t){let e;return Al(t,i=>e=i)(),e}var gc=!1,fp=Symbol();function y(t,e,i){let o=i[e]??={store:null,source:Fr(void 0),unsubscribe:X};if(o.store!==t&&!(fp in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=X;else{var r=!0;o.unsubscribe=Al(t,s=>{r?o.source.v=s:N(o.source,s)}),r=!1}return t&&fp in i?ge(t):n(o.source)}function Re(){let t={};function e(){vo(()=>{for(var i in t)t[i].unsubscribe();Vi(t,fp,{enumerable:!1,value:!0})})}return[t,e]}function mp(t){var e=gc;try{return gc=!1,[t(),gc]}finally{gc=e}}var I0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Te&&rv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ee(t,e,i){return new Proxy(Te?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},I0)}var A0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(gs(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 r=t.props[o];gs(r)&&(r=r());let s=Eo(r,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(gs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Eo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===mo||e===_a)return!1;for(let i of t.props)if(gs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(gs(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function ns(...t){return new Proxy({props:t},A0)}function vg(t){return t.ctx?.d??!1}function f(t,e,i,o){var r=(i&1)!==0,s=!Or||(i&2)!==0,a=(i&8)!==0,l=(i&16)!==0,d=!1,u;a?[u,d]=mp(()=>t[e]):u=t[e];var m=mo in t||_a in t,g=a&&(Eo(t,e)?.set??(m&&e in t&&(q=>t[e]=q)))||void 0,c=o,$=!0,w=!1,x=()=>(w=!0,$&&($=!1,l?c=_t(o):c=o),c);u===void 0&&o!==void 0&&(g&&s&&nv(e),u=x(),g&&g(u));var S;if(s)S=()=>{var q=t[e];return q===void 0?x():($=!0,w=!1,q)};else{var C=(r?gr:hr)(()=>t[e]);C.f|=131072,S=()=>{var q=n(C);return q!==void 0&&(c=void 0),q===void 0?c:q}}if((i&4)===0&&s)return S;if(g){var A=t.$$legacy;return function(q,z){return arguments.length>0?((!s||!z||A||d)&&g(z?S():q),q):S()}}var M=!1,I=!1,k=Fr(u),V=gr(()=>{var q=S(),z=n(k);return M?(M=!1,I=!0,z):(I=!1,k.v=q)});return a&&n(V),r||(V.equals=ya),function(q,z){if(lc!==null&&(M=I,S(),n(k)),arguments.length>0){let ie=z?n(V):s&&a?Kt(q):q;if(!V.equals(ie)){if(M=!0,N(k,ie),w&&c!==void 0&&(c=ie),vg(V))return q;_t(()=>n(V))}return q}return vg(V)?V.v:n(V)}}var P0;typeof HTMLElement=="function"&&(P0=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(r){return s=>{let a=document.createElement("slot");r!=="default"&&(a.name=r),b(s,a)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=M0(this);for(let r of this.$$s)r in o&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),i.default=!0):i[r]=e(r));for(let r of this.attributes){let s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=vp(s,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Gv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=nc(()=>{_o(()=>{this.$$r=!0;for(let r of Cu(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];let s=vp(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(let r in this.$$l)for(let s of this.$$l[r]){let a=this.$$c.$on(r,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=vp(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 Cu(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function vp(t,e,i,o){let r=i[t]?.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){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(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function M0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var gg="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(gg);import{clientChecker as Mm}from"@vkontakte/videoplayer-core/evergreen";import"@vkontakte/videoplayer-core/evergreen";import{noop as v1,safeStorage as _x,throttleFn as bx}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as $x}from"@vkontakte/videoplayer-statistics/evergreen";import{InterfaceLanguage as L0,fillWithDefault as R0,VideoQuality as hg}from"@vkontakte/videoplayer-shared/evergreen";var V0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:L0.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:hg.Q_480P,highQualityLimit:hg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null}},_g=t=>R0(t,V0),bg=t=>Sa("ui-config",t),Rt=()=>wa("ui-config");var Pl="vk_player_debug_panel_opened";var $g="videoplayer",yg="videoplayer";var Wr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},xg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),wg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Sg=new Set(["ShiftRight","ShiftLeft"]);var Cg=["TIMELINE"],Ml=[...Cg,"GRAPH_BUTTON"],gp=[...Cg,"PLAY_BUTTON"],Ll=[...Ml,"PLAY_BUTTON"];var qr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(qr||{}),Qs={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Tg,VERSION as N0}from"@vkontakte/videoplayer-shared/evergreen";import{VERSION as B0}from"@vkontakte/videoplayer-core/evergreen";import{VERSION as O0}from"@vkontakte/videoplayer-statistics/evergreen";var hc="prod",Da="1.1.67-dev.992eb225.0";var Gs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var kg=Symbol("storeContext"),Eg=Symbol("microStoresContext"),Ig=(t,e)=>{Sa(kg,t),Sa(Eg,e),hc==="dev"&&(window.app={store:t,microStores:e})},we=()=>{let t=wa(kg);return Tg(t,"Store context is empty!"),t},Ki=()=>{let t=wa(Eg);return Tg(t,"MicroStores context is empty!"),t},Ft=(t,e)=>bc(t,t.getValue(),e),bc=(t,e,i)=>er(e,o=>{let r=t.subscribe(s=>{o(s),i?.(s)});return()=>r.unsubscribe()}),Ag=(t,e,i,o)=>{let r=t.info,{width:s,height:a}=ge(i.ui.playerSize),l=r.throughputEstimation$.getValue()?.toFixed(0)??0,d=r.rttEstimation$.getValue()?.toFixed(0)??0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",m=`${Da} (core: ${B0}, stat: ${O0}, shared: ${N0})`,g=ge(i.state.errorLog$),c=g.length?`
43
+ `)})}}var Hs=!1,Aa=null,Fs=!1,Jr=!1;function Ou(t){Jr=t}var xl=[],wl=[],St=null,Vn=!1;function bi(t){St=t}var ct=null;function Ri(t){ct=t}var Ln=null;function Xd(t){St!==null&&St.f&2097152&&(Ln===null?Ln=[St,[t]]:Ln[1].push(t))}var Wo=null,Nn=0,Rn=null;function fv(t){Rn=t}var Mv=1,ac=0,es=!1,lc=null;function ul(){return++Mv}function Ns(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 r,s,a=(e&512)!==0,l=o&&ct!==null&&!es,d=i.length;if(a||l){var u=t,m=u.parent;for(r=0;r<d;r++)s=i[r],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=512),l&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(r=0;r<d;r++)if(s=i[r],Ns(s)&&Bu(s),s.wv>t.wv)return!0}(!o||ct!==null&&!es)&&Fo(t,1024)}return!1}function Lv(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];Ln?.[1].includes(t)&&Ln[0]===St||((s.f&2)!==0?Lv(s,e,!1):e===s&&(i?Fo(s,2048):(s.f&1024)!==0&&Fo(s,4096),fl(s)))}}function Zd(t){var e=Wo,i=Nn,o=Rn,r=St,s=es,a=Ln,l=At,d=Vn,u=t.f;Wo=null,Nn=0,Rn=null,es=(u&256)!==0&&(Vn||!Fs||St===null),St=(u&96)===0?t:null,Ln=null,ll(t.ctx),Vn=!1,ac++,t.f|=2097152;try{var m=(0,t.fn)(),g=t.deps;if(Wo!==null){var c;if(bl(t,Nn),g!==null&&Nn>0)for(g.length=Nn+Wo.length,c=0;c<Wo.length;c++)g[Nn+c]=Wo[c];else t.deps=g=Wo;if(!es||(u&2)!==0&&t.reactions!==null)for(c=Nn;c<g.length;c++)(g[c].reactions??=[]).push(t)}else g!==null&&Nn<g.length&&(bl(t,Nn),g.length=Nn);if(Hr()&&Rn!==null&&!Vn&&g!==null&&(t.f&6146)===0)for(c=0;c<Rn.length;c++)Lv(Rn[c],t);return r!==null&&r!==t&&(ac++,Rn!==null&&(o===null?o=Rn:o.push(...Rn))),m}catch($){Iv($)}finally{Wo=e,Nn=i,Rn=o,St=r,es=s,Ln=a,ll(l),Vn=d,t.f^=2097152}}function R1(t,e){let i=e.reactions;if(i!==null){var o=Km.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(Wo===null||!Wo.includes(e))&&(Fo(e,4096),(e.f&768)===0&&(e.f^=512),Yd(e),bl(e,0))}function bl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)R1(t,i[o])}function Ea(t){var e=t.f;if((e&16384)===0){Fo(t,1024);var i=ct,o=Fs;if(ct=t,Fs=!0,Ce){var r=An;dl(t.component_function)}try{(e&16)!==0?Sv(t):Uu(t),Fu(t);var s=Zd(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Mv,Ce&&Dr&&(t.f&2048)!==0&&t.deps!==null)for(var a of t.deps)a.set_during_effect&&(a.wv=ul(),a.set_during_effect=!1);Ce&&wl.push(t)}finally{Fs=o,ct=i,Ce&&dl(r)}}}function Pv(){console.error("Last ten effects were: ",wl.slice(-10).map(t=>t.fn)),wl=[]}function V1(){try{tv()}catch(t){if(Ce&&Li(t,"stack",{value:""}),Aa!==null)if(Ce)try{yl(t,Aa)}catch(e){throw Pv(),e}else yl(t,Aa);else throw Ce&&Pv(),t}}function Gu(){var t=Fs;try{var e=0;for(Fs=!0;xl.length>0;){e++>1e3&&V1();var i=xl,o=i.length;xl=[];for(var r=0;r<o;r++){var s=B1(i[r]);N1(s)}Ta.clear()}}finally{Hs=!1,Fs=t,Aa=null,Ce&&(wl=[])}}function N1(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Ns(o)&&(Ea(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Wu(o):o.fn=null))}}function fl(t){Hs||(Hs=!0,queueMicrotask(Gu));for(var e=Aa=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}xl.push(e)}function B1(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:Ns(i)&&Ea(i);var a=i.first;if(a!==null){i=a;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function Ma(t){var e;for(t&&(Hs=!0,Gu(),Hs=!0,e=t());;){if(kv(),xl.length===0)return Hs=!1,Aa=null,Ce&&(wl=[]),e;Hs=!0,Gu()}}async function Zi(){await Promise.resolve(),Ma()}function n(t){var e=t.f,i=(e&2)!==0;if(lc!==null&&lc.add(t),St!==null&&!Vn){if(!Ln?.[1].includes(t)||Ln[0]!==St){var o=St.deps;t.rv<ac&&(t.rv=ac,Wo===null&&o!==null&&o[Nn]===t?Nn++:Wo===null?Wo=[t]:(!es||!Wo.includes(t))&&Wo.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,Ns(r)&&Bu(r)),Ce&&Dr&&!Vn&&al!==null&&St!==null&&al.reaction===St)if(t.trace)t.trace();else{var a=Xr("TracedAt");if(a){var l=al.entries.get(t);l===void 0&&(l={traces:[]},al.entries.set(t,l));var d=l.traces[l.traces.length-1];a.stack!==d?.stack&&l.traces.push(a)}}return Jr&&Ta.has(t)?Ta.get(t):t.v}function yt(t){var e=Vn;try{return Vn=!0,t()}finally{Vn=e}}var O1=-7169;function Fo(t,e){t.f=t.f&O1|e}function cc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(uo in t)dc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&uo in i&&dc(i)}}}function dc(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{dc(t[o],e)}catch{}let i=Ms(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=qd(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch{}}}}}function ju(t,e){if(e){let i=document.body;t.autofocus=!0,zo(()=>{document.activeElement===i&&t.focus()})}}function Sl(t){var e=St,i=ct;bi(null),Ri(null);try{return t()}finally{bi(e),Ri(i)}}var Yu=new Set,uc=new Set;function Us(t){if(!Ke)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Zu(t,e,i,o={}){function r(s){if(o.capture||La.call(e,s),!s.cancelBubble)return Sl(()=>i?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?zo(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function bt(t,e,i,o,r){var s={capture:o,passive:r},a=Zu(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&po(()=>{e.removeEventListener(t,a,s)})}function st(t){for(var e=0;e<t.length;e++)Yu.add(t[e]);for(var i of uc)i(t)}function La(t){var e=this,i=e.ownerDocument,o=t.type,r=t.composedPath?.()||[],s=r[0]||t.target,a=0,l=t.__root;if(l){var d=r.indexOf(l);if(d!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;d<=u&&(a=d)}if(s=r[a]||t.target,s!==e){Li(t,"currentTarget",{configurable:!0,get(){return s||i}});var m=St,g=ct;bi(null),Ri(null);try{for(var c,$=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+o];if(x!=null&&(!s.disabled||t.target===s))if(In(x)){var[S,...C]=x;S.apply(s,[t,...C])}else x.call(s,t)}catch(P){c?$.push(P):c=P}if(t.cancelBubble||w===e||w===null)break;s=w}if(c){for(let P of $)queueMicrotask(()=>{throw P});throw c}}finally{t.__root=e,delete t.currentTarget,bi(m),Ri(g)}}}var H1;function Rv(){H1=void 0}function Ra(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Xi(t,e){var i=ct;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function A(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,s=!t.startsWith("<!>");return()=>{if(Ke)return Xi(ut,null),ut;r===void 0&&(r=Ra(s?t:"<!>"+t),i||(r=oi(r)));var a=o||ml?document.importNode(r,!0):r.cloneNode(!0);if(i){var l=oi(a),d=a.lastChild;Xi(l,d)}else Xi(a,a);return a}}function z1(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,a;return()=>{if(Ke)return Xi(ut,null),ut;if(!a){var l=Ra(s),d=oi(l);if(r)for(a=document.createDocumentFragment();oi(d);)a.appendChild(oi(d));else a=oi(d)}var u=a.cloneNode(!0);if(r){var m=oi(u),g=u.lastChild;Xi(m,g)}else Xi(u,u);return u}}function ye(t,e){return z1(t,e,"svg")}function Ur(t=""){if(!Ke){var e=Uo(t+"");return Xi(e,e),e}var i=ut;return i.nodeType!==ba&&(i.before(i=Uo()),ei(i)),Xi(i,i),i}function Oe(){if(Ke)return Xi(ut,null),ut;var t=document.createDocumentFragment(),e=document.createComment(""),i=Uo();return t.append(e,i),Xi(e,i),t}function b(t,e){if(Ke){ct.nodes_end=ut,yi();return}t!==null&&t.before(e)}var W1=/\r/g;function Nv(t){t=t.replace(W1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Bv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var q1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ov(t){return q1.includes(t)}var K1=["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 Q1={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 Dv(t){return t=t.toLowerCase(),Q1[t]??t}var G6=[...K1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var G1=["touchstart","touchmove"];function Hv(t){return G1.includes(t)}var j1=["$state","$state.raw","$derived","$derived.by"],j6=[...j1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var Y1=["textarea","script","style","title"];function Fv(t){return Y1.includes(t)}function pc(t){return t?.replace(/\//g,"/\u200B")}var Cl=!0;function fc(t){Cl=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 os(t,e){return Uv(t,e)}function Ju(t,e){tc(),e.intro=e.intro??!1;let i=e.target,o=Ke,r=ut;try{for(var s=oi(i);s&&(s.nodeType!==Pn||s.data!==ms);)s=mo(s);if(!s)throw Br;Vi(!0),ei(s),yi();let a=Uv(t,{...e,anchor:s});if(ut===null||ut.nodeType!==Pn||ut.data!==As)throw _s(),Br;return Vi(!1),a}catch(a){if(a===Br)return e.recover===!1&&iv(),tc(),vl(i),Vi(!1),os(t,e);throw a}finally{Vi(o),ei(r),Rv()}}var Va=new Map;function Uv(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:a=!0}){tc();var l=new Set,d=g=>{for(var c=0;c<g.length;c++){var $=g[c];if(!l.has($)){l.add($);var w=Hv($);e.addEventListener($,La,{passive:w});var x=Va.get($);x===void 0?(document.addEventListener($,La,{passive:w}),Va.set($,1)):Va.set($,x+1)}}};d(sl(Yu)),uc.add(d);var u=void 0,m=wv(()=>{var g=i??e.appendChild(Uo());return fi(()=>{if(s){D({});var c=At;c.c=s}r&&(o.$$events=r),Ke&&Xi(g,null),Cl=a,u=t(g,o)||{},Cl=!0,Ke&&(ct.nodes_end=ut),s&&H()}),()=>{for(var c of l){e.removeEventListener(c,La);var $=Va.get(c);--$===0?(document.removeEventListener(c,La),Va.delete(c)):Va.set(c,$)}uc.delete(d),g!==i&&g.parentNode?.removeChild(g)}});return Xu.set(u,m),u}var Xu=new WeakMap;function zs(t,e){let i=Xu.get(t);return i?(Xu.delete(t),i(e)):(Ce&&gv(),Promise.resolve())}function fe(t,e,...i){var o=t,r=X,s;xi(()=>{r!==(r=e())&&(s&&($i(s),s=null),Ce&&r==null&&ov(),s=fi(()=>r(o,...i)))},65536),Ke&&(o=ut)}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;sv(e)},set:o=>{i=o}})}};e0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var e0;function It(t){At===null&&xa("onMount"),Or&&At.l!==null?J1(At).m.push(t):De(()=>{let e=yt(t);if(typeof e=="function")return e})}function an(t){At===null&&xa("onDestroy"),It(()=>()=>yt(t))}function J1(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}var zv=new Map;function Wv(t,e){var i=zv.get(t);i||(i=new Set,zv.set(t,i)),i.add(e)}function L(t,e,[i,o]=[0,0]){Ke&&i===0&&yi();var r=t,s=null,a=null,l=ki,d=i>0?65536:0,u=!1;let m=(c,$=!0)=>{u=!0,g($,c)},g=(c,$)=>{if(l===(l=c))return;let w=!1;if(Ke&&o!==-1){if(i===0){let S=ec(r);S===ms?o=0:S===vs?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=l?1/0:-1))}let x=o>i;!!l===x&&(r=Bs(),ei(r),Vi(!1),w=!0,o=-1)}l?(s?is(s):$&&(s=fi(()=>$(r))),a&&sn(a,()=>{a=null})):(a?is(a):$&&(a=fi(()=>$(r,[i+1,o]))),s&&sn(s,()=>{s=null})),w&&Vi(!0)};xi(()=>{u=!1,e(m),u||g(null,null)},d),Ke&&(r=ut)}function Ws(t,e,i){Ke&&yi();var o=t,r=ki,s,a=Hr()?Ym:$a;xi(()=>{a(r,r=e())&&(s&&sn(s),s=fi(()=>i(o)))}),Ke&&(o=ut)}var $s=null;function ip(t){$s=t}function Tl(t,e){return e}function o0(t,e,i,o){for(var r=[],s=e.length,a=0;a<s;a++)rc(e[a].e,r,!0);var l=s>0&&r.length===0&&i!==null;if(l){var d=i.parentNode;vl(d),d.append(i),o.clear(),bs(t,e[0].prev,e[s-1].next)}qu(r,()=>{for(var u=0;u<s;u++){var m=e[u];l||(o.delete(m.k),bs(t,m.prev,m.next)),$i(m.e,!l)}})}function di(t,e,i,o,r,s=null){var a=t,l={flags:e,items:new Map,first:null},d=(e&4)!==0;if(d){var u=t;a=Ke?ei(oi(u)):u.appendChild(Uo())}Ke&&yi();var m=null,g=!1,c=hr(()=>{var $=i();return In($)?$:$==null?[]:sl($)});xi(()=>{var $=n(c),w=$.length;if(g&&w===0)return;g=w===0;let x=!1;if(Ke){var S=ec(a)===vs;S!==(w===0)&&(a=Bs(),ei(a),Vi(!1),x=!0)}if(Ke){for(var C=null,P,M=0;M<w;M++){if(ut.nodeType===Pn&&ut.data===As){a=ut,x=!0,Vi(!1);break}var I=$[M],k=o(I,M);P=Qv(ut,l,C,null,I,k,M,r,e,i),l.items.set(k,P),C=P}w>0&&ei(Bs())}Ke||n0($,l,a,r,e,o,i),s!==null&&(w===0?m?is(m):m=fi(()=>s(a)):m!==null&&sn(m,()=>{m=null})),x&&Vi(!0),n(c)}),Ke&&(a=ut)}function n0(t,e,i,o,r,s,a){var l=(r&8)!==0,d=(r&3)!==0,u=t.length,m=e.items,g=e.first,c=g,$,w=null,x,S=[],C=[],P,M,I,k;if(l)for(k=0;k<u;k+=1)P=t[k],M=s(P,k),I=m.get(M),I!==void 0&&(I.a?.measure(),(x??=new Set).add(I));for(k=0;k<u;k+=1){if(P=t[k],M=s(P,k),I=m.get(M),I===void 0){var V=c?c.e.nodes_start:i;w=Qv(V,e,w,w===null?e.first:w.next,P,M,k,o,r,a),m.set(M,w),S=[],C=[],c=w.next;continue}if(d&&r0(I,P,k,r),(I.e.f&8192)!==0&&(is(I.e),l&&(I.a?.unfix(),(x??=new Set).delete(I))),I!==c){if($!==void 0&&$.has(I)){if(S.length<C.length){var q=C[0],z;w=q.prev;var ie=S[0],oe=S[S.length-1];for(z=0;z<S.length;z+=1)qv(S[z],q,i);for(z=0;z<C.length;z+=1)$.delete(C[z]);bs(e,ie.prev,oe.next),bs(e,w,ie),bs(e,oe,q),c=q,w=oe,k-=1,S=[],C=[]}else $.delete(I),qv(I,c,i),bs(e,I.prev,I.next),bs(e,I,w===null?e.first:w.next),bs(e,w,I),w=I;continue}for(S=[],C=[];c!==null&&c.k!==M;)(c.e.f&8192)===0&&($??=new Set).add(c),C.push(c),c=c.next;if(c===null)continue;I=c}S.push(I),w=I,c=I.next}if(c!==null||$!==void 0){for(var ve=$===void 0?[]:sl($);c!==null;)(c.e.f&8192)===0&&ve.push(c),c=c.next;var Q=ve.length;if(Q>0){var me=(r&4)!==0&&u===0?i:null;if(l){for(k=0;k<Q;k+=1)ve[k].a?.measure();for(k=0;k<Q;k+=1)ve[k].a?.fix()}o0(e,ve,me,m)}}l&&zo(()=>{if(x!==void 0)for(I of x)I.a?.apply()}),ct.first=e.first&&e.first.e,ct.last=w&&w.e}function r0(t,e,i,o){(o&1)!==0&&ka(t.v,e),(o&2)!==0?ka(t.i,i):t.i=i}function Qv(t,e,i,o,r,s,a,l,d,u){var m=$s,g=(d&1)!==0,c=(d&16)===0,$=g?c?Fr(r,!1,!1):er(r):r,w=(d&2)===0?a:er(a);Ce&&g&&($.trace=()=>{var S=typeof w=="number"?a:w.v;u()[S]});var x={i:w,v:$,k:s,a:null,e:null,prev:i,next:o};$s=x;try{return x.e=fi(()=>l(t,$,w,u),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{$s=m}}function qv(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var a=mo(s);r.before(s),s=a}}function bs(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 s0(t,e,i){if(!e||e===Nv(String(i??"")))return;let o,r=t.__svelte_meta?.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:An?.[tn]&&(o=`in ${An[tn]}`),vv(pc(o))}function kl(t,e,i=!1,o=!1,r=!1){var s=t,a="";B(()=>{var l=ct;if(a===(a=e()??"")){Ke&&yi();return}if(l.nodes_start!==null&&(zu(l.nodes_start,l.nodes_end),l.nodes_start=l.nodes_end=null),a!==""){if(Ke){for(var d=ut.data,u=yi(),m=u;u!==null&&(u.nodeType!==Pn||u.data!=="");)m=u,u=mo(u);if(u===null)throw _s(),Br;Ce&&!r&&s0(u.parentNode,d,a),Xi(ut,m),s=ei(u);return}var g=a+"";i?g=`<svg>${g}</svg>`:o&&(g=`<math>${g}</math>`);var c=Ra(g);if((i||o)&&(c=oi(c)),Xi(oi(c),c.lastChild),i||o)for(;oi(c);)s.before(oi(c));else s.before(c)}})}function ci(t,e,i){Ke&&yi();var o=t,r,s;xi(()=>{r!==(r=e())&&(s&&(sn(s),s=null),r&&(s=fi(()=>i(o,r))))},65536),Ke&&(o=ut)}function qs(t,e,i,o,r,s){let a=Ke;Ke&&yi();var l=Ce&&s&&At?.function[tn],d,u,m=null;Ke&&ut.nodeType===Qd&&(m=ut,yi());var g=Ke?ut:t,c,$=$s;xi(()=>{let w=e()||null;var x=r?r():i||w==="svg"?zd:null;if(w!==d){var S=$s;ip($),c&&(w===null?sn(c,()=>{c=null,u=null}):w===u?is(c):($i(c),fc(!1))),w&&w!==u&&(c=fi(()=>{if(m=Ke?m:x?document.createElementNS(x,w):document.createElement(w),Ce&&s&&(m.__svelte_meta={loc:{file:l,line:s[0],column:s[1]}}),Xi(m,m),o){Ke&&Fv(w)&&m.append(document.createComment(""));var C=Ke?oi(m):m.appendChild(Uo());Ke&&(C===null?Vi(!1):ei(C)),o(m,C)}ct.nodes_end=m,g.before(m)})),d=w,d&&(u=d),fc(!0),ip(S)}},65536),a&&(Vi(!0),ei(g))}var np;function Gv(t){return np=t.target,new op(t)}var op=class{#t;#e;constructor(e){var i=new Map,o=(s,a)=>{var l=Fr(a,!1,!1);return i.set(s,l),l};let r=new Proxy({...e.props||{},$$events:{}},{get(s,a){return n(i.get(a)??o(a,Reflect.get(s,a)))},has(s,a){return a===_a?!0:(n(i.get(a)??o(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return N(i.get(a)??o(a,l),l),Reflect.set(s,a,l)}});this.#e=(e.hydrate?Ju:os)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Ma(),this.#t=r.$$events;for(let s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Li(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(r,s)},this.#e.$destroy=()=>{zs(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...r)=>i.call(this,...r);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(r=>r!==o)}}$destroy(){this.#e.$destroy()}};function U(t,e){zo(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??np?.parentNode;if(!o?.querySelector("#"+e.hash)){let r=document.createElement("style");r.id=e.hash,r.textContent=e.code,o.appendChild(r),Ce&&Wv(e.hash,r)}})}function rp(t,e){var i=void 0,o;xi(()=>{i!==(i=e())&&(o&&($i(o),o=null),i&&(o=fi(()=>{Yi(()=>i(t))})))})}function jv(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=jv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Yv(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=jv(t))&&(o&&(o+=" "),o+=e);return o}function El(t){return typeof t=="object"?Yv(t):t??""}var Zv=[...`
44
+ \r\f\xA0\v\uFEFF`];function Jv(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var s=r.length,a=0;(a=o.indexOf(r,a))>=0;){var l=a+s;(a===0||Zv.includes(o[a-1]))&&(l===o.length||Zv.includes(o[l]))?o=(a===0?"":o.substring(0,a))+o.substring(l+1):a=l}}return o===""?null:o}function Xv(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function sp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function eg(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,a=0,l=!1,d=[];o&&d.push(...Object.keys(o).map(sp)),r&&d.push(...Object.keys(r).map(sp));var u=0,m=-1;let x=t.length;for(var g=0;g<x;g++){var c=t[g];if(l?c==="/"&&t[g-1]==="*"&&(l=!1):s?s===c&&(s=!1):c==="/"&&t[g+1]==="*"?l=!0:c==='"'||c==="'"?s=c:c==="("?a++:c===")"&&a--,!l&&s===!1&&a===0){if(c===":"&&m===-1)m=g;else if(c===";"||g===x-1){if(m!==-1){var $=sp(t.substring(u,m).trim());if(!d.includes($)){c!==";"&&g++;var w=t.substring(u,g).trim();i+=" "+w+";"}}u=g+1,m=-1}}}}return o&&(i+=Xv(o)),r&&(i+=Xv(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function Z(t,e,i,o,r,s){var a=t.__className;if(Ke||a!==i||a===void 0){var l=Jv(i,o,s);(!Ke||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):e?t.className=l:t.setAttribute("class",l)),t.__className=i}else if(s&&r!==s)for(var d in s){var u=!!s[d];(r==null||u!==!!r[d])&&t.classList.toggle(d,u)}return s}function ap(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function ot(t,e,i,o){var r=t.__style;if(Ke||r!==e){var s=eg(e,o);(!Ke||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(ap(t,i?.[0],o[0]),ap(t,i?.[1],o[1],"important")):ap(t,i,o));return o}function Il(t,e,i){if(t.multiple){if(e==null)return;if(!In(e))return hv();for(var o of t.options)o.selected=e.includes(tg(o));return}for(o of t.options){var r=tg(o);if(Mu(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function lp(t){var e=new MutationObserver(()=>{Il(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),po(()=>{e.disconnect()})}function tg(t){return"__value"in t?t.__value:t.value}var Na=Symbol("class"),Ba=Symbol("style"),ng=Symbol("is custom element"),rg=Symbol("is html");function sg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ae(t,e,i,o){var r=lg(t);if(Ke&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||m0(t,e,i??"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[jm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&dg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function ag(t,e,i,o,r=!1){var s=lg(t),a=s[ng],l=!s[rg];let d=Ke&&a;d&&Vi(!1);var u=e||{},m=t.tagName==="OPTION";for(var g in e)g in i||(i[g]=null);i.class?i.class=El(i.class):(o||i[Na])&&(i.class=null),i[Ba]&&(i.style??=null);var c=dg(t);for(let I in i){let k=i[I];if(m&&I==="value"&&k==null){t.value=t.__value="",u[I]=k;continue}if(I==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";Z(t,$,k,o,e?.[Na],i[Na]),u[I]=k,u[Na]=i[Na];continue}if(I==="style"){ot(t,k,e?.[Ba],i[Ba]),u[I]=k,u[Ba]=i[Ba];continue}var w=u[I];if(!(k===w&&!(k===void 0&&t.hasAttribute(I)))){u[I]=k;var x=I[0]+I[1];if(x!=="$$")if(x==="on"){let V={},q="$$"+I,z=I.slice(2);var S=Ov(z);if(Bv(z)&&(z=z.slice(0,-7),V.capture=!0),!S&&w){if(k!=null)continue;t.removeEventListener(z,u[q],V),u[q]=null}if(k!=null)if(S)t[`__${z}`]=k,st([z]);else{let ie=function(oe){u[I].call(this,oe)};var M=ie;u[q]=Zu(z,t,ie,V)}else S&&(t[`__${z}`]=void 0)}else if(I==="style")Ae(t,I,k);else if(I==="autofocus")ju(t,!!k);else if(!a&&(I==="__value"||I==="value"&&k!=null))t.value=t.__value=k;else if(I==="selected"&&m)sg(t,k);else{var C=I;l||(C=Dv(C));var P=C==="defaultValue"||C==="defaultChecked";if(k==null&&!a&&!P)if(s[I]=null,C==="value"||C==="checked"){let V=t,q=e===void 0;if(C==="value"){let z=V.defaultValue;V.removeAttribute(C),V.defaultValue=z,V.value=V.__value=q?z:null}else{let z=V.defaultChecked;V.removeAttribute(C),V.defaultChecked=z,V.checked=q?z:!1}}else t.removeAttribute(I);else P||c.includes(C)&&(a||typeof k!="string")?t[C]=k:typeof k!="function"&&Ae(t,C,k,r)}}}return d&&Vi(!0),u}function we(t,e,i=[],o,r=!1,s=gr){let a=i.map(s);var l=void 0,d={},u=t.nodeName==="SELECT",m=!1;if(xi(()=>{var c=e(...a.map(n)),$=ag(t,l,c,o,r);m&&u&&"value"in c&&Il(t,c.value,!1);for(let x of Object.getOwnPropertySymbols(d))c[x]||$i(d[x]);for(let x of Object.getOwnPropertySymbols(c)){var w=c[x];x.description===Su&&(!l||w!==l[x])&&(d[x]&&$i(d[x]),d[x]=fi(()=>rp(t,()=>w))),$[x]=w}l=$}),u){var g=t;Yi(()=>{Il(g,l.value),lp(g)})}m=!0}function lg(t){return t.__attributes??={[ng]:t.nodeName.includes("-"),[rg]:t.namespaceURI===Wm}}var ig=new Map;function dg(t){var e=ig.get(t.nodeName);if(e)return e;ig.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=qd(o);for(var s in i)i[s].set&&e.push(s);o=Ms(o)}return e}function m0(t,e,i){Ce&&(e==="srcset"&&v0(t,i)||dp(t.getAttribute(e)??"",i)||mv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function dp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function og(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function v0(t,e){var i=og(t.srcset),o=og(e);return o.length===i.length&&o.every(([r,s],a)=>s===i[a][1]&&(dp(i[a][0],r)||dp(r,i[a][0])))}var g0=Wd?()=>performance.now():()=>Date.now(),$r={tick:t=>(Wd?requestAnimationFrame:X)(t),now:()=>g0(),tasks:new Set};function cg(){let t=$r.now();$r.tasks.forEach(e=>{e.c(t)||($r.tasks.delete(e),e.f())}),$r.tasks.size!==0&&$r.tick(cg)}function ug(t){let e;return $r.tasks.size===0&&$r.tick(cg),{promise:new Promise(i=>{$r.tasks.add(e={c:t,f:i})}),abort(){$r.tasks.delete(e)}}}function mc(t,e){Sl(()=>{t.dispatchEvent(new CustomEvent(e))})}function $0(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 pg(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let a=$0(r.trim());e[a]=s.trim()}return e}var y0=t=>t;function up(t,e,i,o){var r=(t&1)!==0,s=(t&2)!==0,a=r&&s,l=(t&4)!==0,d=a?"both":r?"in":"out",u,m=e.inert,g=e.style.overflow,c,$;function w(){var M=St,I=ct;bi(null),Ri(null);try{return u??=i()(e,o?.()??{},{direction:d})}finally{bi(M),Ri(I)}}var x={is_global:l,in(){if(e.inert=m,!r){$?.abort(),$?.reset?.();return}s||c?.abort(),mc(e,"introstart"),c=cp(e,w(),$,1,()=>{mc(e,"introend"),c?.abort(),c=u=void 0,e.style.overflow=g})},out(M){if(!s){M?.(),u=void 0;return}e.inert=!0,mc(e,"outrostart"),$=cp(e,w(),c,0,()=>{mc(e,"outroend"),M?.()})},stop:()=>{c?.abort(),$?.abort()}},S=ct;if((S.transitions??=[]).push(x),r&&Cl){var C=l;if(!C){for(var P=S.parent;P&&(P.f&65536)!==0;)for(;(P=P.parent)&&(P.f&16)===0;);C=!P||(P.f&32768)!==0}C&&Yi(()=>{yt(()=>x.in())})}}function cp(t,e,i,o,r){var s=o===1;if(gs(e)){var a,l=!1;return zo(()=>{if(!l){var S=e({direction:s?"in":"out"});a=cp(t,S,i,o,r)}}),{abort:()=>{l=!0,a?.abort()},deactivate:()=>a.deactivate(),reset:()=>a.reset(),t:()=>a.t()}}if(i?.deactivate(),!e?.duration)return r(),{abort:X,deactivate:X,reset:X,t:()=>o};let{delay:d=0,css:u,tick:m,easing:g=y0}=e;var c=[];if(s&&i===void 0&&(m&&m(0,1),u)){var $=pg(u(0,1));c.push($,$)}var w=()=>1-o,x=t.animate(c,{duration:d,fill:"forwards"});return x.onfinish=()=>{x.cancel();var S=i?.t()??1-o;i?.abort();var C=o-S,P=e.duration*Math.abs(C),M=[];if(P>0){var I=!1;if(u)for(var k=Math.ceil(P/16.666666666666668),V=0;V<=k;V+=1){var q=S+C*g(V/k),z=pg(u(q,1-q));M.push(z),I||=z.overflow==="hidden"}I&&(t.style.overflow="hidden"),w=()=>{var ie=x.currentTime;return S+C*g(ie/P)},m&&ug(()=>{if(x.playState!=="running")return!1;var ie=w();return m(ie,1-ie),!0})}x=t.animate(M,{duration:P,fill:"forwards"}),x.onfinish=()=>{w=()=>o,m?.(o,1-o),r()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=X)},deactivate:()=>{r=X},reset:()=>{o===0&&m?.(1,0)},t:()=>w()}}var pp=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 r=this.#t.get(e);r.delete(i),r.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 x0=new pp({box:"border-box"});function zr(t,e,i){var o=x0.observe(t,()=>i(t[e]));Yi(()=>(yt(()=>i(t[e])),o))}function fg(t,e){return t===e||t?.[uo]===e}function Je(t={},e,i,o){return Yi(()=>{var r,s;return vo(()=>{r=s,s=o?.()||[],yt(()=>{t!==i(...s)&&(e(t,...s),r&&fg(i(...r),t)&&e(null,...r))})}),()=>{zo(()=>{s&&fg(i(...s),t)&&e(null,...s)})}}),t}function yr(t=!1){let e=At,i=e.l.u;if(!i)return;let o=()=>cc(e.s);if(t){let r=0,s={},a=gr(()=>{let l=!1,d=e.s;for(let u in d)d[u]!==s[u]&&(s[u]=d[u],l=!0);return l&&r++,r});o=()=>n(a)}i.b.length&&_l(()=>{mg(e,o),hs(i.b)}),De(()=>{let r=yt(()=>i.m.map(Gm));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&De(()=>{mg(e,o),hs(i.a)})}function mg(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Pl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),X;let o=yt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Oa=[];function tr(t,e){return{subscribe:te(t,e).subscribe}}function te(t,e=X){let i=null,o=new Set;function r(l){if($a(t,l)&&(t=l,i)){let d=!Oa.length;for(let u of o)u[1](),Oa.push(u,t);if(d){for(let u=0;u<Oa.length;u+=2)Oa[u][0](Oa[u+1]);Oa.length=0}}}function s(l){r(l(t))}function a(l,d=X){let u=[l,d];return o.add(u),o.size===1&&(i=e(r,s)||X),l(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:a}}function ni(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return tr(i,(a,l)=>{let d=!1,u=[],m=0,g=X,c=()=>{if(m)return;g();let w=e(o?u[0]:u,a,l);s?a(w):g=typeof w=="function"?w:X},$=r.map((w,x)=>Pl(w,S=>{u[x]=S,m&=~(1<<x),d&&c()},()=>{m|=1<<x}));return d=!0,c(),function(){hs($),g(),d=!1}})}function he(t){let e;return Pl(t,i=>e=i)(),e}var gc=!1,fp=Symbol();function y(t,e,i){let o=i[e]??={store:null,source:Fr(void 0),unsubscribe:X};if(o.store!==t&&!(fp in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=X;else{var r=!0;o.unsubscribe=Pl(t,s=>{r?o.source.v=s:N(o.source,s)}),r=!1}return t&&fp in i?he(t):n(o.source)}function Le(){let t={};function e(){po(()=>{for(var i in t)t[i].unsubscribe();Li(t,fp,{enumerable:!1,value:!0})})}return[t,e]}function mp(t){var e=gc;try{return gc=!1,[t(),gc]}finally{gc=e}}var I0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ce&&rv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Te(t,e,i){return new Proxy(Ce?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},I0)}var P0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(gs(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 r=t.props[o];gs(r)&&(r=r());let s=Po(r,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(gs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Po(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===uo||e===_a)return!1;for(let i of t.props)if(gs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(gs(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function ns(...t){return new Proxy({props:t},P0)}function vg(t){return t.ctx?.d??!1}function f(t,e,i,o){var r=(i&1)!==0,s=!Or||(i&2)!==0,a=(i&8)!==0,l=(i&16)!==0,d=!1,u;a?[u,d]=mp(()=>t[e]):u=t[e];var m=uo in t||_a in t,g=a&&(Po(t,e)?.set??(m&&e in t&&(q=>t[e]=q)))||void 0,c=o,$=!0,w=!1,x=()=>(w=!0,$&&($=!1,l?c=yt(o):c=o),c);u===void 0&&o!==void 0&&(g&&s&&nv(e),u=x(),g&&g(u));var S;if(s)S=()=>{var q=t[e];return q===void 0?x():($=!0,w=!1,q)};else{var C=(r?gr:hr)(()=>t[e]);C.f|=131072,S=()=>{var q=n(C);return q!==void 0&&(c=void 0),q===void 0?c:q}}if((i&4)===0&&s)return S;if(g){var P=t.$$legacy;return function(q,z){return arguments.length>0?((!s||!z||P||d)&&g(z?S():q),q):S()}}var M=!1,I=!1,k=Fr(u),V=gr(()=>{var q=S(),z=n(k);return M?(M=!1,I=!0,z):(I=!1,k.v=q)});return a&&n(V),r||(V.equals=ya),function(q,z){if(lc!==null&&(M=I,S(),n(k)),arguments.length>0){let ie=z?n(V):s&&a?Qt(q):q;if(!V.equals(ie)){if(M=!0,N(k,ie),w&&c!==void 0&&(c=ie),vg(V))return q;yt(()=>n(V))}return q}return vg(V)?V.v:n(V)}}var A0;typeof HTMLElement=="function"&&(A0=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(r){return s=>{let a=document.createElement("slot");r!=="default"&&(a.name=r),b(s,a)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=M0(this);for(let r of this.$$s)r in o&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),i.default=!0):i[r]=e(r));for(let r of this.attributes){let s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=vp(s,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Gv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=nc(()=>{vo(()=>{this.$$r=!0;for(let r of Cu(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];let s=vp(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(let r in this.$$l)for(let s of this.$$l[r]){let a=this.$$c.$on(r,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=vp(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 Cu(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function vp(t,e,i,o){let r=i[t]?.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){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(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function M0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var gg="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(gg);import{areValidLiveRecordSources as _x,clientChecker as Mm}from"@vkontakte/videoplayer-core/evergreen";import"@vkontakte/videoplayer-core/evergreen";import{noop as v1,safeStorage as bx,throttleFn as $x}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as yx}from"@vkontakte/videoplayer-statistics/evergreen";import{InterfaceLanguage as L0,fillWithDefault as R0,VideoQuality as hg}from"@vkontakte/videoplayer-shared/evergreen";var V0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:L0.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:hg.Q_480P,highQualityLimit:hg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null}},_g=t=>R0(t,V0),bg=t=>Sa("ui-config",t),Lt=()=>wa("ui-config");var Al="vk_player_debug_panel_opened";var $g="videoplayer",yg="videoplayer";var Wr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},xg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),wg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Sg=new Set(["ShiftRight","ShiftLeft"]);var Cg=["TIMELINE"],Ml=[...Cg,"GRAPH_BUTTON"],gp=[...Cg,"PLAY_BUTTON"],Ll=[...Ml,"PLAY_BUTTON"];var qr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(qr||{}),Qs={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Tg,VERSION as N0}from"@vkontakte/videoplayer-shared/evergreen";import{VERSION as B0}from"@vkontakte/videoplayer-core/evergreen";import{VERSION as O0}from"@vkontakte/videoplayer-statistics/evergreen";var hc="prod",Da="1.1.67-dev.f850506b.0";var Gs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var kg=Symbol("storeContext"),Eg=Symbol("microStoresContext"),Ig=(t,e)=>{Sa(kg,t),Sa(Eg,e),hc==="dev"&&(window.app={store:t,microStores:e})},xe=()=>{let t=wa(kg);return Tg(t,"Store context is empty!"),t},zi=()=>{let t=wa(Eg);return Tg(t,"MicroStores context is empty!"),t},Ut=(t,e)=>bc(t,t.getValue(),e),bc=(t,e,i)=>tr(e,o=>{let r=t.subscribe(s=>{o(s),i?.(s)});return()=>r.unsubscribe()}),Pg=(t,e,i,o)=>{let r=t.info,{width:s,height:a}=he(i.ui.playerSize),l=r.throughputEstimation$.getValue()?.toFixed(0)??0,d=r.rttEstimation$.getValue()?.toFixed(0)??0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",m=`${Da} (core: ${B0}, stat: ${O0}, shared: ${N0})`,g=he(i.state.errorLog$),c=g.length?`
45
45
  `+g.map((V,q)=>{let z=`${q}) Type: ${V.id}
46
46
  `,ie=`Message: ${V.message} (${V.thrown})
47
47
  `,oe=`Trace: ${V.thrown?.stack}
48
48
  `;return z+ie+oe}).join(`
49
- `):void 0,$=i.state.isAudioDisabled?"disabled":ge(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${w?.codec??""}`+(w?.hdr?" (HDR)":"")),x&&S.push(`Audio: ${x?.codec??""}`+(x?.language?` (${x.language})`:""));let C=r.currentQuality$.getValue(),A="";if(C){let V=r.availableQualitiesFps$.getValue()[C];A=V?`${V}fps`:""}let M=r.currentBuffer$.getValue()?.end??0,I=Math.max(M-ge(i.state.positionExact$),0),k={Version:m,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:ge(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":r.httpConnectionType$.getValue()+(r.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${d}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${u} ${C} ${A}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:$,Position:`${ge(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${ge(i.playerPhase)} ${r.playbackState$.getValue()}`,"Player size":`${s}x${a}`,URL:window.location.href,Errors:c};return Object.entries(k).filter(([V,q])=>q!==void 0).map(([V,q])=>`${V}: ${q}`).join(`
50
- `)},Pg=(t,e,i)=>{let o=t.info,{width:r,height:s}=ge(i.ui.playerSize),a={version:Da,viewport:`${r}x${s}`,volume:Math.round(ge(i.state.volume$)*100)};a.id=i.videoId,o.currentFormat$.getValue()&&(a.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(a.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(a.videoSize=`${u.width}x${u.height}`);let m=o.currentBuffer$.getValue(),g=o.isLive$.getValue(),c=o.liveBufferTime$.getValue();m&&(g&&c?a.buffer=m.end-c:a.buffer=Math.max(m.end-ge(i.state.positionExact$),0)),a.position=ge(i.state.positionExact$);let $=o.throughputEstimation$.getValue();$&&(a.speed=$);let w=o.videoBitrate$.getValue();w&&(a.bitrate=w);let x=o.liveLatency$.getValue();x&&(a.liveLatency=x);let S=o.currentVideoSegmentLength$.getValue();S&&(a.currentVideoSegmentLength=S);let C=o.currentAudioSegmentLength$.getValue();C&&(a.currentAudioSegmentLength=C);let A=ge(i.vsid);typeof A=="string"&&(a.vsid=A);let M=t.info.currentVideoStream$.getValue()?.codec;M&&(a.videoCodec=M);let I=t.info.currentAudioStream$.getValue()?.codec;I&&(a.audioCodec=I),t.info.currentVideoStream$.getValue()?.hdr&&(a.hdr=!0);let V=t.info.currentAudioStream$.getValue()?.language;return V&&(a.audioLanguage=V),a},Mg=(t,e)=>Gs(t,e,"mp4"),Lg=t=>!t.type,Rg=t=>!!t.type,Vg=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},_c=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as bp,safeStorage as no}from"@vkontakte/videoplayer-shared/evergreen";import"@vkontakte/videoplayer-core/evergreen";var Ng="vk_player_prefer_traffic_saving_enabled",Bg="vk_player_preferred_volume",Og="vk_player_prefer_volume_mute",$p="vk_player_preferred_quality",hp="vk_player_preferred_default_quality_settings",_p="vk_player_preferred_quality_settings_by_video",Dg="vk_player_preferred_stream_language",Hg="vk_player_preferred_rate",Fg="vk_player_preferred_autoplay_next",Ug=t=>t>1?1:t<0?0:t,yp=t=>no.set(Bg,Ug(t).toString(10)),$c=()=>{let t=no.get(Bg);return bp(t)?void 0:Ug(parseFloat(t))},xp=(t,e)=>no.set($p,JSON.stringify({videoId:t,value:e})),Vl=()=>no.remove($p),wp=t=>{let e=no.get($p);if(bp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Vl();return}return o},Sp=(t,e)=>{e?no.set(t,"true"):no.remove(t)},Cp=t=>no.get(t)==="true",Tp=t=>Sp(Og,t),zg=()=>Cp(Og),Rl=t=>Sp(Ng,t),kp=()=>Cp(Ng),Wg=()=>no.get(Dg),Ep=t=>no.set(Dg,t),qg=t=>no.set(Hg,JSON.stringify({rate:t})),Kg=()=>{let t=no.get(Hg);if(bp(t))return;let{rate:e}=JSON.parse(t);return e},Qg=t=>Sp(Fg,t),Gg=()=>Cp(Fg),D0=()=>{let t=m=>{no.set(hp,JSON.stringify(m))},e=()=>{try{let m=no.get(hp);return m?JSON.parse(m):null}catch{return null}},i=()=>{try{let m=no.get(_p);return m?JSON.parse(m):null}catch{return null}},o=m=>{no.set(_p,JSON.stringify(m))},r=m=>{u(m);let g=m?i():null;if(g&&g?.videoId===m)return{...g,appliesTo:"to-video"};g&&s();let c=e();return c?{...c,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{no.remove(_p)},a=()=>{no.remove(hp)},l=(m,g="as-default")=>{m.type==="exact_quality"?o(m):g==="as-default"?t(m):o(m)},d=m=>{let g=r(m);if(g){switch(g.type){case"traffic_saving":Rl(!0);break;case"exact_quality":xp(m,g.quality)}s(),a()}},u=m=>{let g=wp(m);if(g){o({type:"exact_quality",videoId:m,quality:g});return}kp()&&t({type:"traffic_saving",videoId:m}),Rl(!1),Vl()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:d,savePreferredQualitySettings:l,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:jg,migrateSettingsToLegacyWay:Yg,savePreferredQualitySettings:yc,savePreferredDefaultQualitySettings:vP,removePreferredQualitySettingsByVideo:gP,getPreferredDefaultQualitySettings:xc}=D0();import{PlaybackState as p1}from"@vkontakte/videoplayer-core/evergreen";var H0=$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 Nl(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=H0();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}import{isNullable as Jg,InterfaceLanguage as eh}from"@vkontakte/videoplayer-shared/evergreen";var F0={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
49
+ `):void 0,$=i.state.isAudioDisabled?"disabled":he(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${w?.codec??""}`+(w?.hdr?" (HDR)":"")),x&&S.push(`Audio: ${x?.codec??""}`+(x?.language?` (${x.language})`:""));let C=r.currentQuality$.getValue(),P="";if(C){let V=r.availableQualitiesFps$.getValue()[C];P=V?`${V}fps`:""}let M=r.currentBuffer$.getValue()?.end??0,I=Math.max(M-he(i.state.positionExact$),0),k={Version:m,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:he(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":r.httpConnectionType$.getValue()+(r.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${d}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${u} ${C} ${P}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:$,Position:`${he(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${he(i.playerPhase)} ${r.playbackState$.getValue()}`,"Player size":`${s}x${a}`,URL:window.location.href,Errors:c};return Object.entries(k).filter(([V,q])=>q!==void 0).map(([V,q])=>`${V}: ${q}`).join(`
50
+ `)},Ag=(t,e,i)=>{let o=t.info,{width:r,height:s}=he(i.ui.playerSize),a={version:Da,viewport:`${r}x${s}`,volume:Math.round(he(i.state.volume$)*100)};a.id=i.videoId,o.currentFormat$.getValue()&&(a.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(a.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(a.videoSize=`${u.width}x${u.height}`);let m=o.currentBuffer$.getValue(),g=o.isLive$.getValue(),c=o.liveBufferTime$.getValue();m&&(g&&c?a.buffer=m.end-c:a.buffer=Math.max(m.end-he(i.state.positionExact$),0)),a.position=he(i.state.positionExact$);let $=o.throughputEstimation$.getValue();$&&(a.speed=$);let w=o.videoBitrate$.getValue();w&&(a.bitrate=w);let x=o.liveLatency$.getValue();x&&(a.liveLatency=x);let S=o.currentVideoSegmentLength$.getValue();S&&(a.currentVideoSegmentLength=S);let C=o.currentAudioSegmentLength$.getValue();C&&(a.currentAudioSegmentLength=C);let P=he(i.vsid);typeof P=="string"&&(a.vsid=P);let M=t.info.currentVideoStream$.getValue()?.codec;M&&(a.videoCodec=M);let I=t.info.currentAudioStream$.getValue()?.codec;I&&(a.audioCodec=I),t.info.currentVideoStream$.getValue()?.hdr&&(a.hdr=!0);let V=t.info.currentAudioStream$.getValue()?.language;return V&&(a.audioLanguage=V),a},Mg=(t,e)=>Gs(t,e,"mp4"),Lg=t=>!t.type,Rg=t=>!!t.type,Vg=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},_c=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as bp,safeStorage as Ji}from"@vkontakte/videoplayer-shared/evergreen";import"@vkontakte/videoplayer-core/evergreen";var Ng="vk_player_prefer_traffic_saving_enabled",Bg="vk_player_preferred_volume",Og="vk_player_prefer_volume_mute",$p="vk_player_preferred_quality",hp="vk_player_preferred_default_quality_settings",_p="vk_player_preferred_quality_settings_by_video",Dg="vk_player_preferred_stream_language",Hg="vk_player_preferred_rate",Fg="vk_player_preferred_autoplay_next",Ug=t=>t>1?1:t<0?0:t,yp=t=>Ji.set(Bg,Ug(t).toString(10)),$c=()=>{let t=Ji.get(Bg);return bp(t)?void 0:Ug(parseFloat(t))},xp=(t,e)=>Ji.set($p,JSON.stringify({videoId:t,value:e})),Vl=()=>Ji.remove($p),wp=t=>{let e=Ji.get($p);if(bp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Vl();return}return o},Sp=(t,e)=>{e?Ji.set(t,"true"):Ji.remove(t)},Cp=t=>Ji.get(t)==="true",Tp=t=>Sp(Og,t),zg=()=>Cp(Og),Rl=t=>Sp(Ng,t),kp=()=>Cp(Ng),Wg=()=>Ji.get(Dg),Ep=t=>Ji.set(Dg,t),qg=t=>Ji.set(Hg,JSON.stringify({rate:t})),Kg=()=>{let t=Ji.get(Hg);if(bp(t))return;let{rate:e}=JSON.parse(t);return e},Qg=t=>Sp(Fg,t),Gg=()=>Cp(Fg),D0=()=>{let t=m=>{Ji.set(hp,JSON.stringify(m))},e=()=>{try{let m=Ji.get(hp);return m?JSON.parse(m):null}catch{return null}},i=()=>{try{let m=Ji.get(_p);return m?JSON.parse(m):null}catch{return null}},o=m=>{Ji.set(_p,JSON.stringify(m))},r=m=>{u(m);let g=m?i():null;if(g&&g?.videoId===m)return{...g,appliesTo:"to-video"};g&&s();let c=e();return c?{...c,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{Ji.remove(_p)},a=()=>{Ji.remove(hp)},l=(m,g="as-default")=>{m.type==="exact_quality"?o(m):g==="as-default"?t(m):o(m)},d=m=>{let g=r(m);if(g){switch(g.type){case"traffic_saving":Rl(!0);break;case"exact_quality":xp(m,g.quality)}s(),a()}},u=m=>{let g=wp(m);if(g){o({type:"exact_quality",videoId:m,quality:g});return}kp()&&t({type:"traffic_saving",videoId:m}),Rl(!1),Vl()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:d,savePreferredQualitySettings:l,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:jg,migrateSettingsToLegacyWay:Yg,savePreferredQualitySettings:yc,savePreferredDefaultQualitySettings:hA,removePreferredQualitySettingsByVideo:_A,getPreferredDefaultQualitySettings:xc}=D0();import{PlaybackState as p1}from"@vkontakte/videoplayer-core/evergreen";var H0=ye('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function Nl(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=H0();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}import{isNullable as Jg,InterfaceLanguage as eh}from"@vkontakte/videoplayer-shared/evergreen";var F0={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
51
51
  \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
52
52
  \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},Zg=F0;var U0={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
53
53
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
- Try switching the\xA0quality to\xA0Auto.`},Xg=U0;var rs=new Map;rs.set(eh.EN,Xg);rs.set(eh.RU,Zg);var th=new Map,Ip=({language:t,pack:e,fallback:i})=>{if(rs.has(t)){let o=rs.get(t);rs.set(t,{...o,...e})}else rs.set(t,e);th.set(t,i)},Ap=t=>rs.has(t),Pp=(t,e,i,o)=>{let s=rs.get(t)?.[e];if(Jg(s)){let a=th.get(t)??o;s=(a?rs.get(a):void 0)?.[e]}return Jg(s)?e+Object.values(i??{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(a,l)=>i[l]??""):s},F=(t,e)=>{let{interfaceLanguage$:i}=we(),o=ge(i),r=Rt();return Pp(o,t,e,r.defaultLanguage)};import"@vkontakte/videoplayer-core/evergreen";var Ha;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Ha||(Ha={}));var z0=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,W0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,q0=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wc="?",K0="X-Sentry-Auth",Q0=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function G0(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
54
+ Try switching the\xA0quality to\xA0Auto.`},Xg=U0;var rs=new Map;rs.set(eh.EN,Xg);rs.set(eh.RU,Zg);var th=new Map,Ip=({language:t,pack:e,fallback:i})=>{if(rs.has(t)){let o=rs.get(t);rs.set(t,{...o,...e})}else rs.set(t,e);th.set(t,i)},Pp=t=>rs.has(t),Ap=(t,e,i,o)=>{let s=rs.get(t)?.[e];if(Jg(s)){let a=th.get(t)??o;s=(a?rs.get(a):void 0)?.[e]}return Jg(s)?e+Object.values(i??{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(a,l)=>i[l]??""):s},F=(t,e)=>{let{interfaceLanguage$:i}=xe(),o=he(i),r=Lt();return Ap(o,t,e,r.defaultLanguage)};import"@vkontakte/videoplayer-core/evergreen";var Ha;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Ha||(Ha={}));var z0=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,W0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,q0=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wc="?",K0="X-Sentry-Auth",Q0=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function G0(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
55
  `),o,r;for(let s=0;s<i.length;++s){if(o=z0.exec(i[s]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||wc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=q0.exec(i[s]))r={filename:o[2],function:o[1]||wc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=W0.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||wc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=wc),e.push(r)}return e.length?{value:ih(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function ih(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function j0(t){try{let e=G0(t);if(e)return e}catch{}return{value:ih(t),type:t&&t.name,stacktrace:{frames:[]}}}function Y0(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Sc=class{constructor(e){if(e&&e.dsn){let i=Q0.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.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:[j0(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(K0,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Y0(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function oh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Z0(){return window}var Cc=class t extends Sc{constructor(e,i=Z0()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:a=[],ignoreErrors:l=[],release:d=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=a,this.ignoreErrors=l,this.release=d}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=>oh(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=>oh(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],s=Array.isArray(r)?r:null,a=e[o],l=Array.isArray(a)?a:null;return{...i,[o]:s||l?[...s||[],...l||[]]:{...typeof r!="string"?r:{},...typeof a!="string"?a:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Tc,Subscription as X0}from"@vkontakte/videoplayer-shared/evergreen";var kc=null,js=class{constructor(e,i,o={}){!kc&&e.dsn&&(this.sentryClient=new Cc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new X0,this.options=e,this.context=o,kc=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),kc=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:s,options:a}=this,{sampleRate:l=0,whiteErrorIdList:d,whiteErrorCategoryList:u=[],blackErrorIdList:m,blackErrorCategoryList:g}=a,{errorType:c,category:$}=i;if(Tc($)&&g.includes($)||Tc(c)&&m.includes(c))return;if(Math.random()<=l||Tc($)&&u.includes($)||Tc(c)&&d.includes(c)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras({...s,...o});try{c&&r.captureMessage(c,i.fatal?Ha.fatal:Ha.error),r.report(e)}catch(x){console.error(x)}}}static getInstance(){return kc}};var ss=(l=>(l.Thumb="thumb",l.Video="video",l.Ads="ads",l.Crashed="crashed",l.LiveWaitingStart="LiveWaitingStart",l.LiveWaitingRecover="LiveWaitingRecover",l.LiveWaitingRecord="LiveWaitingRecord",l))(ss||{});var Ec=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()},Ic=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),nh=t=>{let e=t;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},Bl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},ys=()=>!!Bl(),Ac=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Pc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},rh=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};import{clientChecker as sh}from"@vkontakte/videoplayer-core/evergreen";var ah=()=>({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:sh.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:sh.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as J0,ValueSubject as Mp}from"@vkontakte/videoplayer-shared/evergreen";var Ys=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:J0(this.onResize.bind(this),300)};this.info={isActive$:new Mp(!1),isEnabled$:new Mp(!1),type:0};this.info.isEnabled$=new Mp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}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 Zs(t){return t instanceof Ys}import{devNull as lh,now as dh}from"@vkontakte/videoplayer-shared/evergreen";cv();function Vp(t,e){D(e,!1);let i=we();Et(()=>{i.getAdmanWrapper().startPostroll()}),yr(),H()}import{noop as e_}from"@vkontakte/videoplayer-shared/evergreen";var t_=(t,e)=>{t.stopPropagation(),e()()},i_=P('<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>'),o_=P("<div><!></div>"),n_={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 Np(t,e){D(e,!0),U(t,n_);let[i,o]=Re(),r=()=>y(u,"$isMobile",i),s=f(e,"position",3,0),a=f(e,"secondsToWatchBeforeSkip",3,0),l=f(e,"skipAd",3,e_),u=we().ui.isMobile,m=h(()=>s()>0&&s()>=a());var g=o_();let c;var $=_(g);{var w=S=>{var C=i_();C.__click=[t_,l];var A=_(C);be(),v(C),B(M=>ue(A,`${M??""} `),[()=>F("skip_ads_now")]),b(S,C)},x=S=>{var C=Ur();B(A=>ue(C,A),[()=>F("skip_ads_after",{time:Math.ceil(a()-s()).toFixed(0)})]),b(S,C)};L($,S=>{n(m)?S(w):S(x,!1)})}v(g),B(S=>c=Z(g,1,"container svelte-1k4i25s",null,c,S),[()=>({"container-mobile":r(),skippable:n(m)})]),b(t,g),H(),o()}st(["click"]);var r_=P('<button class="svelte-1wy3dql"> </button>'),s_={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 Bp(t,e){D(e,!1),U(t,s_),yr();var i=r_(),o=_(i,!0);v(i),B(r=>ue(o,r),[()=>F("visit_advertiser")],hr),b(t,i),H()}var a_=P('<div class="top-gradient-mobile svelte-354ajf"></div>'),l_=P('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),d_={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(
56
+ `).filter(i=>!!i)[0]}function j0(t){try{let e=G0(t);if(e)return e}catch{}return{value:ih(t),type:t&&t.name,stacktrace:{frames:[]}}}function Y0(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Sc=class{constructor(e){if(e&&e.dsn){let i=Q0.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.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:[j0(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(K0,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Y0(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function oh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Z0(){return window}var Cc=class t extends Sc{constructor(e,i=Z0()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:a=[],ignoreErrors:l=[],release:d=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=a,this.ignoreErrors=l,this.release=d}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=>oh(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=>oh(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],s=Array.isArray(r)?r:null,a=e[o],l=Array.isArray(a)?a:null;return{...i,[o]:s||l?[...s||[],...l||[]]:{...typeof r!="string"?r:{},...typeof a!="string"?a:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Tc,Subscription as X0}from"@vkontakte/videoplayer-shared/evergreen";var kc=null,js=class{constructor(e,i,o={}){!kc&&e.dsn&&(this.sentryClient=new Cc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new X0,this.options=e,this.context=o,kc=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),kc=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:s,options:a}=this,{sampleRate:l=0,whiteErrorIdList:d,whiteErrorCategoryList:u=[],blackErrorIdList:m,blackErrorCategoryList:g}=a,{errorType:c,category:$}=i;if(Tc($)&&g.includes($)||Tc(c)&&m.includes(c))return;if(Math.random()<=l||Tc($)&&u.includes($)||Tc(c)&&d.includes(c)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras({...s,...o});try{c&&r.captureMessage(c,i.fatal?Ha.fatal:Ha.error),r.report(e)}catch(x){console.error(x)}}}static getInstance(){return kc}};var ss=(l=>(l.Thumb="thumb",l.Video="video",l.Ads="ads",l.Crashed="crashed",l.LiveWaitingStart="LiveWaitingStart",l.LiveWaitingRecover="LiveWaitingRecover",l.LiveWaitingRecord="LiveWaitingRecord",l))(ss||{});var Ec=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()},Ic=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),nh=t=>{let e=t;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},Bl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},ys=()=>!!Bl(),Pc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Ac=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},rh=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};import{clientChecker as sh}from"@vkontakte/videoplayer-core/evergreen";var ah=()=>({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:sh.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:sh.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as J0,ValueSubject as Mp}from"@vkontakte/videoplayer-shared/evergreen";var Ys=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:J0(this.onResize.bind(this),300)};this.info={isActive$:new Mp(!1),isEnabled$:new Mp(!1),type:0};this.info.isEnabled$=new Mp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}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 Zs(t){return t instanceof Ys}import{devNull as lh,now as dh}from"@vkontakte/videoplayer-shared/evergreen";cv();function Vp(t,e){D(e,!1);let i=xe();It(()=>{i.getAdmanWrapper().startPostroll()}),yr(),H()}import{noop as e_}from"@vkontakte/videoplayer-shared/evergreen";var t_=(t,e)=>{t.stopPropagation(),e()()},i_=A('<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>'),o_=A("<div><!></div>"),n_={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 Np(t,e){D(e,!0),U(t,n_);let[i,o]=Le(),r=()=>y(u,"$isMobile",i),s=f(e,"position",3,0),a=f(e,"secondsToWatchBeforeSkip",3,0),l=f(e,"skipAd",3,e_),u=xe().ui.isMobile,m=h(()=>s()>0&&s()>=a());var g=o_();let c;var $=_(g);{var w=S=>{var C=i_();C.__click=[t_,l];var P=_(C);$e(),v(C),B(M=>pe(P,`${M??""} `),[()=>F("skip_ads_now")]),b(S,C)},x=S=>{var C=Ur();B(P=>pe(C,P),[()=>F("skip_ads_after",{time:Math.ceil(a()-s()).toFixed(0)})]),b(S,C)};L($,S=>{n(m)?S(w):S(x,!1)})}v(g),B(S=>c=Z(g,1,"container svelte-1k4i25s",null,c,S),[()=>({"container-mobile":r(),skippable:n(m)})]),b(t,g),H(),o()}st(["click"]);var r_=A('<button class="svelte-1wy3dql"> </button>'),s_={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 Bp(t,e){D(e,!1),U(t,s_),yr();var i=r_(),o=_(i,!0);v(i),B(r=>pe(o,r),[()=>F("visit_advertiser")],hr),b(t,i),H()}var a_=A('<div class="top-gradient-mobile svelte-354ajf"></div>'),l_=A('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),d_={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
57
57
  360deg,
58
58
  rgba(0, 0, 0, 0) 0%,
59
59
  rgba(0, 0, 0, 0.05) 12%,
@@ -63,7 +63,7 @@ Try switching the\xA0quality to\xA0Auto.`},Xg=U0;var rs=new Map;rs.set(eh.EN,Xg)
63
63
  rgba(0, 0, 0, 0.5) 77%,
64
64
  rgba(0, 0, 0, 0.55) 88%,
65
65
  rgba(0, 0, 0, 0.65) 100%
66
- );}`};function Ol(t,e){D(e,!0),U(t,d_);let[i,o]=Re(),r=()=>y(z,"$canSkipAd",i),s=()=>y(q,"$adPlaybackState",i),a=()=>y(A,"$isMobile",i),l=()=>y(ie,"$adPosition",i),d=()=>y(oe,"$secondsToWatchBeforeSkipAd",i),u=()=>y(C,"$isVideoEnded",i),m=f(e,"adsSlotId",3,void 0),g=f(e,"adsParams",3,void 0),c=f(e,"adsPreviewParam",3,void 0),$=f(e,"adsAutoplayParam",3,void 0),w=f(e,"duration",3,0),x=we(),S=Rt(),C=x.state.isEnded$,A=x.ui.isMobile,M=S.ads.isMobileGoToSiteButton,I=K(void 0),k=K(void 0),V=!1,q=x.ads.playbackState,z=x.ads.canSkip,ie=x.ads.position,oe=x.ads.secondsToWatchBeforeSkip,me=h(()=>r()&&s()!=="inactive"),Q=h(()=>a()&&s()!=="inactive"&&M);Et(()=>{let de=x.getAdmanWrapper();if(lh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[dh(),m()]}),!m()){de.onAdmanLoadingError();return}let Fe=ee=>{de.initAdman(ee),V=!0},ae=new AbortController,ne=()=>{ae.abort()},{width:Ie,height:G}=ge(x.ui.playerSize),ze=ge(x.ui.isFullscreen),et=$()??ge(x.ui.isAutoplay),ce={width:Ie,height:G,isFullscreen:ze,isAutoplay:et,adsContainer:n(I),adsVideoElement:n(k),slotId:m(),params:g(),previewParam:c(),duration:w()};return window.AdmanHTML?Fe(ce):de.loadAdman(ae.signal).then(()=>{Fe(ce)}).catch(()=>{de.onAdmanLoadingError()}),()=>{lh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[dh(),m()]}),!V&&ne()}});var fe=l_(),J=_(fe);{var Pe=de=>{var Fe=a_();b(de,Fe)};L(J,de=>{a()&&de(Pe)})}var Le=E(J,2);Xe(Le,de=>N(k,de),()=>n(k));var Ae=E(Le,2);{var he=de=>{Np(de,{get position(){return l()},get secondsToWatchBeforeSkip(){return d()},get skipAd(){return x.actions.internal.skipAd}})};L(Ae,de=>{n(me)&&de(he)})}var Ve=E(Ae,2);{var re=de=>{Vp(de,{})};L(Ve,de=>{u()&&de(re)})}var R=E(Ve,2);{var Ye=de=>{Bp(de,{})};L(R,de=>{n(Q)&&de(Ye)})}v(fe),Xe(fe,de=>N(I,de),()=>n(I)),b(t,fe),H(),o()}var zo=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 r=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var c_=$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 Op(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=c_();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}var u_=$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 Dp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=u_();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}function Dl(t,e){let i=f(e,"isActive",3,!1);var o=Be(),r=le(o);{var s=l=>{Dp(l,{})},a=l=>{Op(l,{})};L(r,l=>{i()?l(s):l(a,!1)})}b(t,o)}var p_=P('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),f_=P('<div class="live-icon svelte-1s15d2i"><!></div>'),m_=P('<span class="text svelte-1s15d2i"> </span>'),v_=P("<div><!> <!></div>"),g_={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
66
+ );}`};function Ol(t,e){D(e,!0),U(t,d_);let[i,o]=Le(),r=()=>y(z,"$canSkipAd",i),s=()=>y(q,"$adPlaybackState",i),a=()=>y(P,"$isMobile",i),l=()=>y(ie,"$adPosition",i),d=()=>y(oe,"$secondsToWatchBeforeSkipAd",i),u=()=>y(C,"$isVideoEnded",i),m=f(e,"adsSlotId",3,void 0),g=f(e,"adsParams",3,void 0),c=f(e,"adsPreviewParam",3,void 0),$=f(e,"adsAutoplayParam",3,void 0),w=f(e,"duration",3,0),x=xe(),S=Lt(),C=x.state.isEnded$,P=x.ui.isMobile,M=S.ads.isMobileGoToSiteButton,I=K(void 0),k=K(void 0),V=!1,q=x.ads.playbackState,z=x.ads.canSkip,ie=x.ads.position,oe=x.ads.secondsToWatchBeforeSkip,ve=h(()=>r()&&s()!=="inactive"),Q=h(()=>a()&&s()!=="inactive"&&M);It(()=>{let ue=x.getAdmanWrapper();if(lh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[dh(),m()]}),!m()){ue.onAdmanLoadingError();return}let Fe=ee=>{ue.initAdman(ee),V=!0},le=new AbortController,ne=()=>{le.abort()},{width:Ee,height:j}=he(x.ui.playerSize),Ue=he(x.ui.isFullscreen),tt=$()??he(x.ui.isAutoplay),de={width:Ee,height:j,isFullscreen:Ue,isAutoplay:tt,adsContainer:n(I),adsVideoElement:n(k),slotId:m(),params:g(),previewParam:c(),duration:w()};return window.AdmanHTML?Fe(de):ue.loadAdman(le.signal).then(()=>{Fe(de)}).catch(()=>{ue.onAdmanLoadingError()}),()=>{lh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[dh(),m()]}),!V&&ne()}});var me=l_(),J=_(me);{var Pe=ue=>{var Fe=a_();b(ue,Fe)};L(J,ue=>{a()&&ue(Pe)})}var Me=E(J,2);Je(Me,ue=>N(k,ue),()=>n(k));var Ie=E(Me,2);{var _e=ue=>{Np(ue,{get position(){return l()},get secondsToWatchBeforeSkip(){return d()},get skipAd(){return x.actions.internal.skipAd}})};L(Ie,ue=>{n(ve)&&ue(_e)})}var Re=E(Ie,2);{var re=ue=>{Vp(ue,{})};L(Re,ue=>{u()&&ue(re)})}var R=E(Re,2);{var Ze=ue=>{Bp(ue,{})};L(R,ue=>{n(Q)&&ue(Ze)})}v(me),Je(me,ue=>N(I,ue),()=>n(I)),b(t,me),H(),o()}var qo=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 r=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var c_=ye('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function Op(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=c_();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}var u_=ye('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function Dp(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=u_();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}function Dl(t,e){let i=f(e,"isActive",3,!1);var o=Oe(),r=ce(o);{var s=l=>{Dp(l,{})},a=l=>{Op(l,{})};L(r,l=>{i()?l(s):l(a,!1)})}b(t,o)}var p_=A('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),f_=A('<div class="live-icon svelte-1s15d2i"><!></div>'),m_=A('<span class="text svelte-1s15d2i"> </span>'),v_=A("<div><!> <!></div>"),g_={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
67
67
  opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
68
68
  animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
69
69
  animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
@@ -134,10 +134,10 @@ Try switching the\xA0quality to\xA0Auto.`},Xg=U0;var rs=new Map;rs.set(eh.EN,Xg)
134
134
  100% {
135
135
  transform: scaleY(0.6);
136
136
  }
137
- }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Hl(t,e){U(t,g_);let i=f(e,"withEqualizer",3,!1),o=f(e,"isLive",3,!1),r=f(e,"isPlaying",3,!1);var s=v_();let a;var l=_(s);{var d=c=>{var $=p_();b(c,$)};L(l,c=>{i()&&c(d)})}var u=E(l,2);{var m=c=>{var $=f_(),w=_($);Dl(w,{isActive:!0}),v($),b(c,$)},g=c=>{var $=m_(),w=_($,!0);v($),B(()=>ue(w,e.time)),b(c,$)};L(u,c=>{o()?c(m):c(g,!1)})}v(s),B(c=>a=Z(s,1,"wrapper svelte-1s15d2i",null,a,c),[()=>({live:o(),playing:r()})]),b(t,s)}var h_=P('<div role="timer" data-testid="thumb-timer"><!></div>'),__={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
- opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function Fl(t,e){D(e,!0),U(t,__);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),r=f(e,"isPlaying",3,!1),s=h(()=>zo(e.duration-e.position));var a=h_();let l;var d=_(a);Hl(d,{get time(){return n(s)},get isLive(){return o()},get isPlaying(){return r()},withEqualizer:!0}),v(a),B(u=>l=Z(a,1,"thumb-timer svelte-1b40w20",null,l,u),[()=>({hidden:i()})]),b(t,a),H()}var Fa=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 I_}from"@vkontakte/videoplayer-core/evergreen";import{clientChecker as ch}from"@vkontakte/videoplayer-core/evergreen";var Hp="focus-hidden";var tr=t=>{t.stopPropagation(),t.preventDefault()},Fp=t=>{t.parentNode?.firstElementChild?.classList.remove(Hp)},$_=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},y_=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},x_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},w_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},uh=t=>t.code==="Escape",S_=t=>t.code==="ArrowLeft",Ul=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},ph=t=>{x_(t)?(tr(t),y_(t.target)):w_(t)&&(tr(t),$_(t.target))},Ss=t=>!ch.device.isAndroid&&t?.detail===0||ch.device.isAndroid&&t?.pointerType==="",Ua=async(t,e,i)=>{await io(),t&&!t.classList.contains("opened")&&!e&&ge(i)&&(await io(),i.set(!1),t.focus())},fh=async(t,e,i)=>{await io(),t&&!e&&ge(i)&&(i.set(!1),t.focus())},zl=async(t,e,i,o=!1)=>{if(await io(),!!t&&e&&!o){let s=t.children[0];s?.classList.toggle(Hp,!i),s?.focus()}},mh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Mc=(t,e)=>{ph(t),Fp(t.target),uh(t)&&(tr(t),e())},Lc=async(t,e)=>{Ul(t,["ArrowRight"])&&(tr(t),e())},vh=async(t,e,i)=>{if(ph(t),S_(t)){tr(t),e();return}uh(t)&&(tr(t),i())},za=(t,e)=>{Ul(t)&&(tr(t),e())},gh=(t,e,i)=>{if(Ul(t))tr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),tr(t);return}o==="ArrowRight"&&!e&&(i(!0),tr(t))}},hh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},_h=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};import{isNullable as Rc,isValidURL as A_}from"@vkontakte/videoplayer-shared/evergreen";var xr={"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 bh}from"@vkontakte/videoplayer-shared/evergreen";var T_=(t,e)=>{za(t,()=>e())},k_=P('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),E_={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 Up(t,e){D(e,!0),U(t,E_);let i=f(e,"onClick",3,bh),o=f(e,"closeContextMenu",3,bh),r=l=>{l?.stopPropagation(),i()(),o()()};var s=k_();s.__click=r,s.__keydown=[T_,r];var a=_(s,!0);v(s),B(()=>{Me(s,"aria-label",e.ariaLabel??e.label),Me(s,"data-testid",e.id),ue(a,e.label)}),b(t,s),H()}st(["click","keydown"]);var Js=(t,e)=>t.weight-e.weight;var Wl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Wl||{});var P_=(t,e)=>{Mc(t,e)},M_=t=>{t.preventDefault()},L_=P('<ul role="menu" class="svelte-1p5ukkp"></ul>'),R_={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 zp(t,e){D(e,!0),U(t,R_);let[i,o]=Re(),r=()=>y(me,"$isLive$",i),s=()=>y(Pe,"$isPiPEnabled$",i),a=()=>y(oe,"$chromecastState$",i),l=()=>y(Le,"$pictureInPictureApiIsActive$",i),d=()=>y(J,"$isLooped$",i),u=()=>y(Q,"$positionExact$",i),m=()=>y(q,"$additionalContextMenuItems$",i),g=f(e,"visible",3,!1),c=f(e,"position",19,()=>({top:0,left:0})),$=f(e,"playerContainerRef",3,void 0),w=f(e,"controlsContainerRef",3,void 0),x=f(e,"menuElementRef",15,void 0),S=K(0),C=K(0),A=we(),{pictureInPicture$:M}=Ki(),I=Rt(),k=A.ui.contextMenu.visible$,V=A.ui.debugPanelVisible,q=A.ui.additionalContextMenuItems$,z=A.ui.t,ie=A.actions.internal.togglePictureInPicture,oe=A.state.chromecastState$,me=A.state.isLive$,Q=A.state.positionExact$,fe=A.state.isInteractive,J=A.state.looped$,{isEnabled$:Pe,isActive$:Le}=M,Ae=h(()=>I.features.copyVideoLink&&A.callbacks?.onCopyVideoLink),he=h(()=>n(Ae)&&!r()&&!fe),Ve=h(()=>!!A.callbacks?.onCopyEmbedCodeClicked),re=h(()=>s()&&a()!==I_.CONNECTED&&!fe),R=h(()=>I.features.videoRotate&&!fe),Ye=h(()=>I.showSupport&&!l()),de=h(()=>I.features.saveTraceInfoToFile),Fe=()=>{k.set(!1),e.returnFocus?.()},ae=(Se,xe)=>{if(!x()||!$()||!w())return;let Je=x().getBoundingClientRect(),ht=$().getBoundingClientRect();N(S,Se-ht.left),N(C,xe-ht.top),n(S)+Je.width>ht.width&&N(S,ht.width-Je.width),n(C)+Je.height>ht.height&&N(C,ht.height-Je.height),N(S,Math.max(n(S),0),!0),N(C,Math.max(n(C),0),!0)};Oe(()=>{(async()=>{if(x()&&$()&&w()){await io();let{top:xe,left:Je,bottom:ht,right:Mt}=c(),Ge=Je??0,He=xe??0,Yt=x().getBoundingClientRect();Rc(Je)&&!Rc(Mt)&&(Ge=Mt-Yt.width),Rc(xe)&&!Rc(ht)&&(He=ht-Yt.height),Ge=Math.max(Ge,0),He=Math.max(He,0),ae(Ge,He)}})()});let ne=()=>{A.actions.internal.videoRotate()},Ie=()=>{A_(e.supportLink)&&window.open(e.supportLink,"_blank"),A.actions.internal.reportProblem(),A.actions.internal.pause()},G=()=>{let Se=A.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let xe=new Blob([...Se],{type:"plain/text"}),Je=window.URL.createObjectURL(xe);Gs(Je,"vk_player_debug_info","txt")}else Fa(A.actions.internal.getDebugTextData())},ze=()=>{let Se=A.actions.internal.getTraceTextData(),xe=new Blob([...Se],{type:"application/json"}),Je=window.URL.createObjectURL(xe);Gs(Je,"vk_player_trace_info","json")},et=()=>{V.set(!0)},ce=async()=>{try{ie()}finally{e.returnFocus?.()}},ee=()=>{A.actions.internal.setLooped(!d())},Ne=()=>{if(n(Ve)){let Se=A.callbacks?.onCopyEmbedCodeClicked?.();Se&&Fa(Se)}},je=(Se=!1)=>{if(A.callbacks?.onCopyVideoLink){let xe=A.callbacks?.onCopyVideoLink(Se,u());xe&&Fa(xe)}},dt=h(()=>I.features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug")),at=h(()=>n(Ae)?{id:"copy-link",weight:xr["copy-link"],label:z("menu_copy_video_link"),onClick:()=>je()}:void 0),Tt=h(()=>n(he)?{id:"copy-link-timestamp",weight:xr["copy-link-timestamp"],label:z("menu_copy_video_link_with_timestamp"),onClick:()=>je(!0)}:void 0),Ze=h(()=>n(Ve)?{id:"copy-embed-code",weight:xr["copy-embed-code"],label:z("menu_copy_embed_code"),onClick:Ne}:void 0),lt=h(()=>n(re)?{id:"pip",weight:xr.pip,label:l()?z("menu_pip_close"):z("menu_pip"),onClick:ce}:void 0),Nt=h(()=>({id:"video-loop",weight:xr["video-loop"],label:d()?z("menu_video_loop_off"):z("menu_video_loop_on"),ariaLabel:z("aria_label_menu_loop"),onClick:ee})),Ut=h(()=>n(R)?{id:"rotate",weight:xr.rotate,label:z("menu_video_rotate"),ariaLabel:z("aria_label_menu_rotate"),onClick:ne}:void 0),qe=h(()=>n(Ye)?{id:"report",weight:xr.report,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,onClick:Ie}:void 0),vt=h(()=>({id:"save-debug",weight:xr["save-debug"],label:n(dt),onClick:G})),ke=h(()=>n(de)?{id:"save-trace",weight:xr["save-trace"],label:z("menu_save_debug"),onClick:ze}:void 0),St=h(()=>({id:"debug-info",weight:xr["debug-info"],label:z("menu_debug_overlay"),ariaLabel:z("aria_label_menu_debug_overlay"),onClick:et})),ve=h(()=>[n(at),n(Tt),n(Ze),n(lt),n(Nt),n(Ut),n(qe),n(vt),n(ke),n(St),...m()].filter(Se=>!!Se).sort(Js));var Y=Be(),se=le(Y);{var De=Se=>{var xe=L_();xe.__contextmenu=[M_],xe.__keydown=[P_,Fe],ai(xe,21,()=>n(ve),Je=>Je.id,(Je,ht)=>{Up(Je,{get id(){return n(ht).id},get label(){return n(ht).label},get ariaLabel(){return n(ht).ariaLabel},get onClick(){return n(ht).onClick},closeContextMenu:Fe})}),v(xe),Xe(xe,Je=>x(Je),()=>x()),B(()=>it(xe,`top: ${n(C)??""}px; left: ${n(S)??""}px;`)),b(Se,xe)};L(se,Se=>{g()&&Se(De)})}b(t,Y),H(),o()}st(["contextmenu","keydown"]);var Vc=class{constructor(e){this.value=e,this.next=null}};var Wa=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Vc(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 V_=P('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),N_={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function ql(t,e){D(e,!0),U(t,N_);let i=f(e,"values",19,()=>[]),o=K(void 0),r=K(null),s=16,a=120,l=60,d=a/l;Et(()=>{n(o).width=a,n(o).height=s,N(r,n(o).getContext("2d"),!0)});function u(c,$,w,x,S){S===0&&(S=1),c.fillStyle="#fff",c.fillRect($,w,x,S)}Oe(()=>{let c="";if(n(r)){let $=i()[0];for(let x=1;x<i().length;x++)i()[x]>$&&($=i()[x]);n(r).clearRect(0,0,a,s);let w=l-1;for(let x=i().length-1;x>=0;x--){let S=w*d,C=$>0?s*(i()[x]/$):0;u(n(r),S,0,d,C),c=C+" "+c,w--}}});var m=V_(),g=_(m);Xe(g,c=>N(o,c),()=>n(o)),v(m),b(t,m),H()}import{safeStorage as $h}from"@vkontakte/videoplayer-shared/evergreen";var B_=(t,e)=>{t.stopPropagation(),$h.remove(Pl),e.set(!1)},O_=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),D_=P('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),H_=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),F_=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),U_=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),z_=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),W_=P('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),q_=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),K_=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Q_=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),G_=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),j_=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Y_=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Z_=P('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),X_=P('<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>'),J_={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Kl(t,e){D(e,!0),U(t,J_);let[i,o]=Re(),r=()=>y(l,"$isMobile",i),s=we(),a=s.ui.debugPanelVisible,l=s.ui.isMobile,d=K(Kt(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),m=K(0),g=K(0),c=K(0),$=new Wa(60),w=new Wa(60),x=new Wa(60),S=K(Kt([])),C=K(Kt([])),A=K(Kt([])),M=F("aria_label_debug_panel");Et(()=>{$h.set(Pl,"true"),s.actions.internal.startLogging(),u&&(N(g,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let ve=window.setInterval(()=>{N(d,s.actions.internal.getDebugPanelData(),!0)},500),Y;return u&&(Y=window.setInterval(()=>{if(u){N(g,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let se=u.getVideoPlaybackQuality().totalVideoFrames;N(c,se-n(m)),N(m,se,!0),$.push(n(c)),n(d).speed&&w.push(n(d).speed),n(d).bitrate&&x.push(n(d).bitrate),N(S,$.getValuesFromBottom(),!0),N(C,w.getValuesFromBottom(),!0),N(A,x.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(ve),Y&&clearInterval(Y)}});var I=X_();let k;var V=_(I);V.__click=[B_,a];var q=E(V,2),z=_(q),ie=E(_(z),2),oe=_(ie,!0);v(ie),v(z);var me=E(z,2);{var Q=ve=>{var Y=O_(),se=E(_(Y),2),De=_(se,!0);v(se),v(Y),B(()=>ue(De,n(d).id)),b(ve,Y)};L(me,ve=>{n(d).id&&ve(Q)})}var fe=E(me,2);{var J=ve=>{var Y=D_(),se=E(_(Y),2),De=_(se,!0);v(se),v(Y),B(()=>ue(De,n(d).vsid)),b(ve,Y)};L(fe,ve=>{n(d).vsid&&ve(J)})}var Pe=E(fe,2);{var Le=ve=>{var Y=H_(),se=E(_(Y),2),De=_(se,!0);v(se),v(Y),B(()=>ue(De,n(d).provider)),b(ve,Y)};L(Pe,ve=>{n(d).provider&&ve(Le)})}var Ae=E(Pe,2);{var he=ve=>{var Y=F_(),se=E(_(Y),2),De=_(se);v(se),v(Y),B(()=>ue(De,`Video: ${(n(d).videoCodec||"")??""} ${n(d).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Hl(t,e){U(t,g_);let i=f(e,"withEqualizer",3,!1),o=f(e,"isLive",3,!1),r=f(e,"isPlaying",3,!1);var s=v_();let a;var l=_(s);{var d=c=>{var $=p_();b(c,$)};L(l,c=>{i()&&c(d)})}var u=E(l,2);{var m=c=>{var $=f_(),w=_($);Dl(w,{isActive:!0}),v($),b(c,$)},g=c=>{var $=m_(),w=_($,!0);v($),B(()=>pe(w,e.time)),b(c,$)};L(u,c=>{o()?c(m):c(g,!1)})}v(s),B(c=>a=Z(s,1,"wrapper svelte-1s15d2i",null,a,c),[()=>({live:o(),playing:r()})]),b(t,s)}var h_=A('<div role="timer" data-testid="thumb-timer"><!></div>'),__={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
+ opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function Fl(t,e){D(e,!0),U(t,__);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),r=f(e,"isPlaying",3,!1),s=h(()=>qo(e.duration-e.position));var a=h_();let l;var d=_(a);Hl(d,{get time(){return n(s)},get isLive(){return o()},get isPlaying(){return r()},withEqualizer:!0}),v(a),B(u=>l=Z(a,1,"thumb-timer svelte-1b40w20",null,l,u),[()=>({hidden:i()})]),b(t,a),H()}var Fa=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 I_}from"@vkontakte/videoplayer-core/evergreen";import{clientChecker as ch}from"@vkontakte/videoplayer-core/evergreen";var Hp="focus-hidden";var ir=t=>{t.stopPropagation(),t.preventDefault()},Fp=t=>{t.parentNode?.firstElementChild?.classList.remove(Hp)},$_=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},y_=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},x_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},w_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},uh=t=>t.code==="Escape",S_=t=>t.code==="ArrowLeft",Ul=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},ph=t=>{x_(t)?(ir(t),y_(t.target)):w_(t)&&(ir(t),$_(t.target))},Ss=t=>!ch.device.isAndroid&&t?.detail===0||ch.device.isAndroid&&t?.pointerType==="",Ua=async(t,e,i)=>{await Zi(),t&&!t.classList.contains("opened")&&!e&&he(i)&&(await Zi(),i.set(!1),t.focus())},fh=async(t,e,i)=>{await Zi(),t&&!e&&he(i)&&(i.set(!1),t.focus())},zl=async(t,e,i,o=!1)=>{if(await Zi(),!!t&&e&&!o){let s=t.children[0];s?.classList.toggle(Hp,!i),s?.focus()}},mh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Mc=(t,e)=>{ph(t),Fp(t.target),uh(t)&&(ir(t),e())},Lc=async(t,e)=>{Ul(t,["ArrowRight"])&&(ir(t),e())},vh=async(t,e,i)=>{if(ph(t),S_(t)){ir(t),e();return}uh(t)&&(ir(t),i())},za=(t,e)=>{Ul(t)&&(ir(t),e())},gh=(t,e,i)=>{if(Ul(t))ir(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),ir(t);return}o==="ArrowRight"&&!e&&(i(!0),ir(t))}},hh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},_h=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};import{isNullable as Rc,isValidURL as P_}from"@vkontakte/videoplayer-shared/evergreen";var xr={"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 bh}from"@vkontakte/videoplayer-shared/evergreen";var T_=(t,e)=>{za(t,()=>e())},k_=A('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),E_={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 Up(t,e){D(e,!0),U(t,E_);let i=f(e,"onClick",3,bh),o=f(e,"closeContextMenu",3,bh),r=l=>{l?.stopPropagation(),i()(),o()()};var s=k_();s.__click=r,s.__keydown=[T_,r];var a=_(s,!0);v(s),B(()=>{Ae(s,"aria-label",e.ariaLabel??e.label),Ae(s,"data-testid",e.id),pe(a,e.label)}),b(t,s),H()}st(["click","keydown"]);var Js=(t,e)=>t.weight-e.weight;var Wl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Wl||{});var A_=(t,e)=>{Mc(t,e)},M_=t=>{t.preventDefault()},L_=A('<ul role="menu" class="svelte-1p5ukkp"></ul>'),R_={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 zp(t,e){D(e,!0),U(t,R_);let[i,o]=Le(),r=()=>y(ve,"$isLive$",i),s=()=>y(Pe,"$isPiPEnabled$",i),a=()=>y(oe,"$chromecastState$",i),l=()=>y(Me,"$pictureInPictureApiIsActive$",i),d=()=>y(J,"$isLooped$",i),u=()=>y(Q,"$positionExact$",i),m=()=>y(q,"$additionalContextMenuItems$",i),g=f(e,"visible",3,!1),c=f(e,"position",19,()=>({top:0,left:0})),$=f(e,"playerContainerRef",3,void 0),w=f(e,"controlsContainerRef",3,void 0),x=f(e,"menuElementRef",15,void 0),S=K(0),C=K(0),P=xe(),{pictureInPicture$:M}=zi(),I=Lt(),k=P.ui.contextMenu.visible$,V=P.ui.debugPanelVisible,q=P.ui.additionalContextMenuItems$,z=P.ui.t,ie=P.actions.internal.togglePictureInPicture,oe=P.state.chromecastState$,ve=P.state.isLive$,Q=P.state.positionExact$,me=P.state.isInteractive,J=P.state.looped$,{isEnabled$:Pe,isActive$:Me}=M,Ie=h(()=>I.features.copyVideoLink&&P.callbacks?.onCopyVideoLink),_e=h(()=>n(Ie)&&!r()&&!me),Re=h(()=>!!P.callbacks?.onCopyEmbedCodeClicked),re=h(()=>s()&&a()!==I_.CONNECTED&&!me),R=h(()=>I.features.videoRotate&&!me),Ze=h(()=>I.showSupport&&!l()),ue=h(()=>I.features.saveTraceInfoToFile),Fe=()=>{k.set(!1),e.returnFocus?.()},le=(ke,qe)=>{if(!x()||!$()||!w())return;let it=x().getBoundingClientRect(),Ne=$().getBoundingClientRect();N(S,ke-Ne.left),N(C,qe-Ne.top),n(S)+it.width>Ne.width&&N(S,Ne.width-it.width),n(C)+it.height>Ne.height&&N(C,Ne.height-it.height),N(S,Math.max(n(S),0),!0),N(C,Math.max(n(C),0),!0)};De(()=>{(async()=>{if(x()&&$()&&w()){await Zi();let{top:qe,left:it,bottom:Ne,right:ht}=c(),Ye=it??0,He=qe??0,jt=x().getBoundingClientRect();Rc(it)&&!Rc(ht)&&(Ye=ht-jt.width),Rc(qe)&&!Rc(Ne)&&(He=Ne-jt.height),Ye=Math.max(Ye,0),He=Math.max(He,0),le(Ye,He)}})()});let ne=()=>{P.actions.internal.videoRotate()},Ee=()=>{P_(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},j=()=>{let ke=P.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let qe=new Blob([...ke],{type:"plain/text"}),it=window.URL.createObjectURL(qe);Gs(it,"vk_player_debug_info","txt")}else Fa(P.actions.internal.getDebugTextData())},Ue=()=>{let ke=P.actions.internal.getTraceTextData(),qe=new Blob([...ke],{type:"application/json"}),it=window.URL.createObjectURL(qe);Gs(it,"vk_player_trace_info","json")},tt=()=>{V.set(!0)},de=async()=>{try{ie()}finally{e.returnFocus?.()}},ee=()=>{P.actions.internal.setLooped(!d())},Be=()=>{if(n(Re)){let ke=P.callbacks?.onCopyEmbedCodeClicked?.();ke&&Fa(ke)}},Xe=(ke=!1)=>{if(P.callbacks?.onCopyVideoLink){let qe=P.callbacks?.onCopyVideoLink(ke,u());qe&&Fa(qe)}},dt=h(()=>I.features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug")),at=h(()=>n(Ie)?{id:"copy-link",weight:xr["copy-link"],label:z("menu_copy_video_link"),onClick:()=>Xe()}:void 0),Mt=h(()=>n(_e)?{id:"copy-link-timestamp",weight:xr["copy-link-timestamp"],label:z("menu_copy_video_link_with_timestamp"),onClick:()=>Xe(!0)}:void 0),je=h(()=>n(Re)?{id:"copy-embed-code",weight:xr["copy-embed-code"],label:z("menu_copy_embed_code"),onClick:Be}:void 0),lt=h(()=>n(re)?{id:"pip",weight:xr.pip,label:l()?z("menu_pip_close"):z("menu_pip"),onClick:de}:void 0),Bt=h(()=>({id:"video-loop",weight:xr["video-loop"],label:d()?z("menu_video_loop_off"):z("menu_video_loop_on"),ariaLabel:z("aria_label_menu_loop"),onClick:ee})),zt=h(()=>n(R)?{id:"rotate",weight:xr.rotate,label:z("menu_video_rotate"),ariaLabel:z("aria_label_menu_rotate"),onClick:ne}:void 0),Qe=h(()=>n(Ze)?{id:"report",weight:xr.report,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,onClick:Ee}:void 0),gt=h(()=>({id:"save-debug",weight:xr["save-debug"],label:n(dt),onClick:j})),Se=h(()=>n(ue)?{id:"save-trace",weight:xr["save-trace"],label:z("menu_save_debug"),onClick:Ue}:void 0),Pt=h(()=>({id:"debug-info",weight:xr["debug-info"],label:z("menu_debug_overlay"),ariaLabel:z("aria_label_menu_debug_overlay"),onClick:tt})),ge=h(()=>[n(at),n(Mt),n(je),n(lt),n(Bt),n(zt),n(Qe),n(gt),n(Se),n(Pt),...m()].filter(ke=>!!ke).sort(Js));var Y=Oe(),se=ce(Y);{var Ve=ke=>{var qe=L_();qe.__contextmenu=[M_],qe.__keydown=[A_,Fe],di(qe,21,()=>n(ge),it=>it.id,(it,Ne)=>{Up(it,{get id(){return n(Ne).id},get label(){return n(Ne).label},get ariaLabel(){return n(Ne).ariaLabel},get onClick(){return n(Ne).onClick},closeContextMenu:Fe})}),v(qe),Je(qe,it=>x(it),()=>x()),B(()=>ot(qe,`top: ${n(C)??""}px; left: ${n(S)??""}px;`)),b(ke,qe)};L(se,ke=>{g()&&ke(Ve)})}b(t,Y),H(),o()}st(["contextmenu","keydown"]);var Vc=class{constructor(e){this.value=e,this.next=null}};var Wa=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Vc(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 V_=A('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),N_={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function ql(t,e){D(e,!0),U(t,N_);let i=f(e,"values",19,()=>[]),o=K(void 0),r=K(null),s=16,a=120,l=60,d=a/l;It(()=>{n(o).width=a,n(o).height=s,N(r,n(o).getContext("2d"),!0)});function u(c,$,w,x,S){S===0&&(S=1),c.fillStyle="#fff",c.fillRect($,w,x,S)}De(()=>{let c="";if(n(r)){let $=i()[0];for(let x=1;x<i().length;x++)i()[x]>$&&($=i()[x]);n(r).clearRect(0,0,a,s);let w=l-1;for(let x=i().length-1;x>=0;x--){let S=w*d,C=$>0?s*(i()[x]/$):0;u(n(r),S,0,d,C),c=C+" "+c,w--}}});var m=V_(),g=_(m);Je(g,c=>N(o,c),()=>n(o)),v(m),b(t,m),H()}import{safeStorage as $h}from"@vkontakte/videoplayer-shared/evergreen";var B_=(t,e)=>{t.stopPropagation(),$h.remove(Al),e.set(!1)},O_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),D_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),H_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),F_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),U_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),z_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),W_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),q_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),K_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Q_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),G_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),j_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Y_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Z_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),X_=A('<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>'),J_={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Kl(t,e){D(e,!0),U(t,J_);let[i,o]=Le(),r=()=>y(l,"$isMobile",i),s=xe(),a=s.ui.debugPanelVisible,l=s.ui.isMobile,d=K(Qt(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),m=K(0),g=K(0),c=K(0),$=new Wa(60),w=new Wa(60),x=new Wa(60),S=K(Qt([])),C=K(Qt([])),P=K(Qt([])),M=F("aria_label_debug_panel");It(()=>{$h.set(Al,"true"),s.actions.internal.startLogging(),u&&(N(g,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let ge=window.setInterval(()=>{N(d,s.actions.internal.getDebugPanelData(),!0)},500),Y;return u&&(Y=window.setInterval(()=>{if(u){N(g,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let se=u.getVideoPlaybackQuality().totalVideoFrames;N(c,se-n(m)),N(m,se,!0),$.push(n(c)),n(d).speed&&w.push(n(d).speed),n(d).bitrate&&x.push(n(d).bitrate),N(S,$.getValuesFromBottom(),!0),N(C,w.getValuesFromBottom(),!0),N(P,x.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(ge),Y&&clearInterval(Y)}});var I=X_();let k;var V=_(I);V.__click=[B_,a];var q=E(V,2),z=_(q),ie=E(_(z),2),oe=_(ie,!0);v(ie),v(z);var ve=E(z,2);{var Q=ge=>{var Y=O_(),se=E(_(Y),2),Ve=_(se,!0);v(se),v(Y),B(()=>pe(Ve,n(d).id)),b(ge,Y)};L(ve,ge=>{n(d).id&&ge(Q)})}var me=E(ve,2);{var J=ge=>{var Y=D_(),se=E(_(Y),2),Ve=_(se,!0);v(se),v(Y),B(()=>pe(Ve,n(d).vsid)),b(ge,Y)};L(me,ge=>{n(d).vsid&&ge(J)})}var Pe=E(me,2);{var Me=ge=>{var Y=H_(),se=E(_(Y),2),Ve=_(se,!0);v(se),v(Y),B(()=>pe(Ve,n(d).provider)),b(ge,Y)};L(Pe,ge=>{n(d).provider&&ge(Me)})}var Ie=E(Pe,2);{var _e=ge=>{var Y=F_(),se=E(_(Y),2),Ve=_(se);v(se),v(Y),B(()=>pe(Ve,`Video: ${(n(d).videoCodec||"")??""} ${n(d).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(n(d).audioCodec||"")??""} ${n(d).audioLanguage?`(${n(d).audioLanguage})`:""}`)),b(ve,Y)};L(Ae,ve=>{(n(d).videoCodec||n(d).audioCodec)&&ve(he)})}var Ve=E(Ae,2);{var re=ve=>{var Y=U_(),se=E(_(Y),2),De=_(se,!0);v(se),v(Y),B(()=>ue(De,n(d).viewport)),b(ve,Y)};L(Ve,ve=>{n(d).viewport&&ve(re)})}var R=E(Ve,2);{var Ye=ve=>{var Y=z_(),se=E(_(Y),2),De=_(se,!0);v(se),v(Y),B(()=>ue(De,n(d).videoSize)),b(ve,Y)};L(R,ve=>{n(d).videoSize&&ve(Ye)})}var de=E(R,2);{var Fe=ve=>{var Y=W_(),se=E(_(Y),2),De=_(se,!0);v(se),v(Y),B(()=>ue(De,n(d).cdn)),b(ve,Y)};L(de,ve=>{n(d).cdn&&ve(Fe)})}var ae=E(de,2);{var ne=ve=>{var Y=q_(),se=E(_(Y),2),De=_(se);v(se),v(Y),B(()=>ue(De,`${n(d).volume??""} %`)),b(ve,Y)};L(ae,ve=>{n(d).volume&&ve(ne)})}var Ie=E(ae,2);{var G=ve=>{var Y=K_(),se=E(_(Y),2),De=_(se);v(se),v(Y),B(Se=>ue(De,`${Se??""} s`),[()=>n(d).position.toFixed(2)]),b(ve,Y)};L(Ie,ve=>{n(d).position&&ve(G)})}var ze=E(Ie,2);{var et=ve=>{var Y=Q_(),se=E(_(Y),2),De=_(se);v(se),v(Y),B(Se=>ue(De,`${Se??""} s`),[()=>n(d).buffer.toFixed(2)]),b(ve,Y)};L(ze,ve=>{n(d).buffer&&ve(et)})}var ce=E(ze,2);{var ee=ve=>{var Y=G_(),se=E(_(Y),2),De=_(se);v(se),v(Y),B(Se=>ue(De,`${Se??""} s`),[()=>n(d).liveLatency.toFixed(2)]),b(ve,Y)};L(ce,ve=>{n(d).liveLatency&&ve(ee)})}var Ne=E(ce,2);{var je=ve=>{var Y=j_(),se=E(_(Y),2),De=_(se,!0);v(se),v(Y),B(Se=>ue(De,Se),[()=>[{value:n(d).currentVideoSegmentLength,title:"Video:"},{value:n(d).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Se})=>Se).map(({value:Se,title:xe})=>`${xe} ${((Se??0)/1e3).toFixed(2)} s`).join(" & ")]),b(ve,Y)};L(Ne,ve=>{(n(d).currentVideoSegmentLength||n(d).currentAudioSegmentLength)&&ve(je)})}var dt=E(Ne,2),at=E(_(dt),2),Tt=_(at);v(at),v(dt);var Ze=E(dt,2);{var lt=ve=>{var Y=Y_(),se=E(_(Y),2);ql(se,{get values(){return n(C)}});var De=E(se,2),Se=_(De);v(De),v(Y),B(xe=>ue(Se,`${xe??""} Kbps`),[()=>n(d).speed.toFixed(2)]),b(ve,Y)};L(Ze,ve=>{n(d).speed&&ve(lt)})}var Nt=E(Ze,2);{var Ut=ve=>{var Y=Z_(),se=E(_(Y),2);ql(se,{get values(){return n(A)}});var De=E(se,2),Se=_(De);v(De),v(Y),B(xe=>ue(Se,`${xe??""} Kbps`),[()=>n(d).bitrate.toFixed(2)]),b(ve,Y)};L(Nt,ve=>{n(d).bitrate&&ve(Ut)})}var qe=E(Nt,2),vt=E(_(qe),2);ql(vt,{get values(){return n(S)}});var ke=E(vt,2),St=_(ke,!0);v(ke),v(qe),v(q),v(I),B(ve=>{k=Z(I,1,"container svelte-4deykz",null,k,ve),Me(I,"aria-label",M),ue(oe,n(d).version),ue(Tt,`${n(g)??""} / ${n(m)??""} frames`),ue(St,n(c))},[()=>({"container-mobile":r()})]),b(t,I),H(),o()}st(["click"]);import{noop as eb}from"@vkontakte/videoplayer-shared/evergreen";var tb=(t,e)=>{t.stopPropagation(),e()()},ib=P('<div class="close svelte-1ome55p"></div>'),ob={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 ea(t,e){D(e,!0),U(t,ob);let i=f(e,"onClick",3,eb);var o=ib();o.__click=[tb,i],b(t,o),H()}st(["click"]);import{noop as nb}from"@vkontakte/videoplayer-shared/evergreen";var rb=P('<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>'),sb={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function Ql(t,e){D(e,!0),U(t,sb);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,nb),r=5e3,s=K(void 0),a,l,d=K(0),u;Oe(()=>{i()&&(l=Date.now(),N(d,requestAnimationFrame(g),!0))});let m=()=>{n(d)&&(cancelAnimationFrame(n(d)),N(d,0))},g=()=>{if(!i()){m();return}u=(Date.now()-l)/r,u<1?(a?.clearRect(0,0,100,100),a?.beginPath(),a?.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),a?.stroke(),N(d,requestAnimationFrame(g),!0)):o()()};Et(()=>{if(a=n(s).getContext("2d"),!!a)return a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff",()=>{m()}}),dn(()=>{m()});var c=rb(),$=_(c);Xe($,w=>N(s,w),()=>n(s)),be(2),v(c),b(t,c),H()}var ab=(t,e,i)=>{e(!1),i()},lb=P('<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),db={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 Wp(t,e){D(e,!0),U(t,db);let[i,o]=Re(),r=()=>y(l,"$autoplayNextEnabled$",i),s=()=>y(d,"$timerNextVideoRunning$",i),a=we(),l=a.ui.autoplayNextEnabled$,d=a.ui.timerNextVideoRunning$,u=a.actions.internal.nextVideoClick,m=a.actions.internal.nextVideoAnnouncementShow,g=a.actions.internal.nextVideoAnnouncementClick,c=a.actions.internal.nextVideoAnnouncementAuto,$=a.actions.internal.nextVideoAnnouncementCancel,w=()=>{r()&&(u(!1),c())},x=()=>{e.clickCloseIcon(),$()};Et(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),c())});var S=Be(),C=le(S);{var A=M=>{var I=lb(),k=E(le(I),2),V=_(k),q=_(V),z=_(q,!0);v(q);var ie=E(q,2);ea(ie,{onClick:x}),v(V);var oe=E(V,2);oe.__click=[ab,u,g];var me=_(oe),Q=_(me),fe=_(Q);let J;var Pe=E(fe,2);{var Le=re=>{let R=h(()=>s()&&r());Ql(re,{get isRunning(){return n(R)},onTimerEnded:w})};L(Pe,re=>{r()&&re(Le)})}v(Q),v(me);var Ae=E(me,2),he=_(Ae),Ve=_(he,!0);v(he),v(Ae),v(oe),v(k),B((re,R)=>{ue(z,re),it(Q,`background-image: url('${e.thumb}')`),J=Z(fe,1,"thumb-overlay svelte-jfbaax",null,J,R),ue(Ve,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:r()})]),b(M,I)};L(C,M=>{e.isHide||M(A)})}b(t,S),H(),o()}st(["click"]);import{PlaybackState as ta}from"@vkontakte/videoplayer-core/evergreen";import{checkNever as ub}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as cn}from"@vkontakte/videoplayer-statistics/evergreen";var qp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Kp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Nc=(t,e,i)=>{let o=qp(e,i);e<1?t.actions.internal.setVolume(o):ge(t.state.muted$)&&t.actions.external.setMuted(!1)},Bc=(t,e,i)=>{let o=Kp(e,i);e>0&&t.actions.internal.setVolume(o)};var Cs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o?.(),!1):e?!0:(r?.(),!1);var pb=(t,e)=>{e(t)},fb=P('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),mb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Qp(t,e){D(e,!0),U(t,mb);let[i,o]=Re(),r=()=>y(z,"$playbackState$",i),s=()=>y(ie,"$adPlaybackState",i),a=()=>y(fe,"$disabledControls$",i),l=()=>y(oe,"$positionExact$",i),d=()=>y(me,"$duration$",i),u=()=>y(ne,"$isAudioAvailable$",i),m=()=>y(Q,"$volume$",i),g=()=>y(Ae,"$availablePlaybackRates$",i),c=()=>y(Le,"$currentPlaybackRate$",i),$=()=>y(G,"$isInteractiveTime$",i),w=()=>y(ze,"$showInteractiveTimeIndicatorTooltip$",i),x=()=>y(Ye,"$isEnded$",i),S=()=>y(J,"$muted$",i),C=()=>y(Pe,"$currentSubtitle$",i),A=()=>y(de,"$overlayContainer$",i),M=f(e,"nextButtonActive",3,!1),I=f(e,"prevButtonActive",3,!1),k=we(),V=Rt(),q=k.getLogger().createComponentLog("KeyboardControls component"),z=k.state.playbackState$,ie=k.ads.playbackState,oe=k.state.positionExact$,me=k.state.duration$,Q=k.state.volume$,fe=k.ui.controls.disabledControls$,J=k.state.muted$,Pe=k.state.currentSubtitle$,Le=k.state.currentPlaybackRate$,Ae=k.state.availablePlaybackRates$,he=k.ui.contextMenu.openedByHotKey$,Ve=k.ui.contextMenu.lastActiveElem$,re=k.ui.contextMenu.visible$,R=k.ui.contextMenu.position$,Ye=k.state.isEnded$,de=k.ui.overlayContainer$,Fe=k.callbacks?.onAudioDoesNotExistHint,ae=k.callbacks?.onAudioDisabledHint,ne=k.state.isAudioAvailable$,Ie=k.state.isAudioDisabled,G=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:ze}=Ki(),et=0,ce=!0,ee=K(void 0),Ne=qe=>(qe!==ce&&(ce=qe,et=0),et+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*et)/1e3),je=(qe,vt=!1)=>{let ke=qe.target,St=ke?.getAttribute("role")?.includes("menuitem"),ve=ke.classList.contains("btn"),Y=qe.code;if(ve&&Y==="Space")return!1;let se=wg.has(Y);if(St&&se)return!1;let De=!xg.has(Y);if(qe.ctrlKey&&De||qe.altKey&&De||qe.metaKey)return!1;let Se=St&&Y==="Escape";Sg.has(Y)||Se||e.hideContextMenu();let xe=r()===ta.PLAYING||r()===ta.PAUSED,Je=e.isAds&&(s()==="paused"||s()==="playing"),ht=!Je&&!a().has("TIMELINE");if(!(xe||Je))return!1;q({message:`key down, code: ${Y}, isExternal = ${vt}`});let Mt=!1,Ge=()=>{Mt=!0,vt||qe.preventDefault()};switch(Y){case"KeyJ":case"ArrowLeft":{if(!ht)break;if(qe.ctrlKey||qe.altKey){let He=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(He),He&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:He.text}),Ge()}else{let He=qe.shiftKey?Ne(!1):V.controls.seekStepKeyboard/1e3,Yt=Math.max(l()-He,0);l()>0&&(k.actions.internal.seekTime(Yt,cn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:He.toString()}),Ge())}break}case"KeyL":case"ArrowRight":{if(!ht)break;if(qe.ctrlKey||qe.altKey){let He=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(He),He&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:He.text}),Ge()}else{let He=qe.shiftKey?Ne(!0):V.controls.seekStepKeyboard/1e3,Yt=Math.min(l()+He,d());Math.round(l())<Math.round(d())&&(k.actions.internal.seekTime(Yt,cn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:He.toString()}),Ge())}break}case"ArrowUp":{if(Cs({isAudioDisabled:Ie,audioDisabledHintCallback:ae,isAudioAvailable:u(),audioIsNotExistHintCallback:Fe,isAds:e.isAds})){let He=m(),Yt=V.controls.volumeStepKeyboard,Ai=He<=1;if(Nc(k,He,Yt),Ai){let Qi=Math.round(qp(He,Yt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Qi}})}}Ge();break}case"ArrowDown":{if(Cs({isAudioDisabled:Ie,audioDisabledHintCallback:ae,isAudioAvailable:u(),audioIsNotExistHintCallback:Fe,isAds:e.isAds})){let He=m(),Yt=V.controls.volumeStepKeyboard,Ai=He>=0;if(Bc(k,He,Yt),Ai){let Qi=Math.round(Kp(He,Yt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Qi}})}}Ge();break}case"Comma":{if(qe.shiftKey){k.actions.internal.decrementPlaybackRate();let He=g().find(Yt=>Yt.value===c());e.showHotKeyHelpers({type:"RATE_DOWN",text:He?.displayValue}),Ge()}else{if(Je||r()!==ta.PAUSED)break;let He=Math.max(l()-V.controls.seekStepFrame/1e3,0);l()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(He,cn.DOUBLE_TAP),Ge())}break}case"Period":{if(qe.shiftKey){k.actions.internal.incrementPlaybackRate();let He=g().find(Yt=>Yt.value===c());e.showHotKeyHelpers({type:"RATE_UP",text:He?.displayValue}),Ge()}else{if(Je||r()!==ta.PAUSED)break;let He=Math.min(l()+V.controls.seekStepFrame/1e3,d());l()<d()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(He,cn.DOUBLE_TAP),Ge())}break}case"KeyK":case"Space":if(!a().has("PLAY_BUTTON"))if($()&&w()&&ze.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let He="PLAY";r()===ta.PAUSED?He="PAUSE":x()&&(He="REPLAY"),e.showHotKeyHelpers({type:He})}Ge();break;case"KeyM":{Cs({isAudioDisabled:Ie,audioDisabledHintCallback:ae,isAudioAvailable:u(),audioIsNotExistHintCallback:Fe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),Ge();break}case"KeyF":e.toggleFullscreen(),Ge();break;case"KeyC":k.actions.internal.toggleSubtitle(),C().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:C()?.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Ge();break;case"KeyI":k.actions.internal.togglePictureInPicture(),Ge();break;case"Digit1":case"Numpad1":if(qe.shiftKey){let He=_h(A());R.set(He),Ve.set(ke),he.set(!0),re.set(!0),Ge();break}e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,cn.DOUBLE_TAP),Ge();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,cn.DOUBLE_TAP),Ge();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,cn.DOUBLE_TAP),Ge();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,cn.DOUBLE_TAP),Ge();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,cn.DOUBLE_TAP),Ge();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,cn.DOUBLE_TAP),Ge();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,cn.DOUBLE_TAP),Ge();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,cn.DOUBLE_TAP),Ge();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,cn.DOUBLE_TAP),Ge();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,cn.DOUBLE_TAP),Ge();break;case"Slash":{qe.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),Ge());break}case"KeyN":qe.shiftKey&&M()&&(k.actions.internal.nextVideoClick(),Ge());break;case"KeyP":qe.shiftKey&&I()&&(k.actions.internal.prevVideoClick(),Ge());break;case"ShiftLeft":case"ShiftRight":Ge();break;case"Tab":case"Escape":case"Enter":break;default:ub(Y);break}return Mt},dt=qe=>{let vt=qe.code;if(qe.ctrlKey||qe.altKey||qe.metaKey)return;let ke=r()===ta.PLAYING||r()===ta.PAUSED,St=e.isAds&&(s()==="paused"||s()==="playing");if(ke||St)switch(vt){case"ShiftLeft":case"ShiftRight":et=0;break}},at=F("aria_label_video_player"),Tt=()=>n(ee)?.focus(),Ze=qe=>qe.type==="keydown"?je(qe,!0):(qe.type==="keyup"&&dt(qe),!1);var lt=fb();lt.__keyup=dt,lt.__keydown=[pb,je];var Nt=_(lt);pe(Nt,()=>e.children??X),v(lt),Xe(lt,qe=>N(ee,qe),()=>n(ee)),B(()=>Me(lt,"aria-label",at)),b(t,lt);var Ut=H({focus:Tt,handleExternalKeyboardEvent:Ze});return o(),Ut}st(["keyup","keydown"]);var vb=P('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),gb={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
140
+ Audio: ${(n(d).audioCodec||"")??""} ${n(d).audioLanguage?`(${n(d).audioLanguage})`:""}`)),b(ge,Y)};L(Ie,ge=>{(n(d).videoCodec||n(d).audioCodec)&&ge(_e)})}var Re=E(Ie,2);{var re=ge=>{var Y=U_(),se=E(_(Y),2),Ve=_(se,!0);v(se),v(Y),B(()=>pe(Ve,n(d).viewport)),b(ge,Y)};L(Re,ge=>{n(d).viewport&&ge(re)})}var R=E(Re,2);{var Ze=ge=>{var Y=z_(),se=E(_(Y),2),Ve=_(se,!0);v(se),v(Y),B(()=>pe(Ve,n(d).videoSize)),b(ge,Y)};L(R,ge=>{n(d).videoSize&&ge(Ze)})}var ue=E(R,2);{var Fe=ge=>{var Y=W_(),se=E(_(Y),2),Ve=_(se,!0);v(se),v(Y),B(()=>pe(Ve,n(d).cdn)),b(ge,Y)};L(ue,ge=>{n(d).cdn&&ge(Fe)})}var le=E(ue,2);{var ne=ge=>{var Y=q_(),se=E(_(Y),2),Ve=_(se);v(se),v(Y),B(()=>pe(Ve,`${n(d).volume??""} %`)),b(ge,Y)};L(le,ge=>{n(d).volume&&ge(ne)})}var Ee=E(le,2);{var j=ge=>{var Y=K_(),se=E(_(Y),2),Ve=_(se);v(se),v(Y),B(ke=>pe(Ve,`${ke??""} s`),[()=>n(d).position.toFixed(2)]),b(ge,Y)};L(Ee,ge=>{n(d).position&&ge(j)})}var Ue=E(Ee,2);{var tt=ge=>{var Y=Q_(),se=E(_(Y),2),Ve=_(se);v(se),v(Y),B(ke=>pe(Ve,`${ke??""} s`),[()=>n(d).buffer.toFixed(2)]),b(ge,Y)};L(Ue,ge=>{n(d).buffer&&ge(tt)})}var de=E(Ue,2);{var ee=ge=>{var Y=G_(),se=E(_(Y),2),Ve=_(se);v(se),v(Y),B(ke=>pe(Ve,`${ke??""} s`),[()=>n(d).liveLatency.toFixed(2)]),b(ge,Y)};L(de,ge=>{n(d).liveLatency&&ge(ee)})}var Be=E(de,2);{var Xe=ge=>{var Y=j_(),se=E(_(Y),2),Ve=_(se,!0);v(se),v(Y),B(ke=>pe(Ve,ke),[()=>[{value:n(d).currentVideoSegmentLength,title:"Video:"},{value:n(d).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ke})=>ke).map(({value:ke,title:qe})=>`${qe} ${((ke??0)/1e3).toFixed(2)} s`).join(" & ")]),b(ge,Y)};L(Be,ge=>{(n(d).currentVideoSegmentLength||n(d).currentAudioSegmentLength)&&ge(Xe)})}var dt=E(Be,2),at=E(_(dt),2),Mt=_(at);v(at),v(dt);var je=E(dt,2);{var lt=ge=>{var Y=Y_(),se=E(_(Y),2);ql(se,{get values(){return n(C)}});var Ve=E(se,2),ke=_(Ve);v(Ve),v(Y),B(qe=>pe(ke,`${qe??""} Kbps`),[()=>n(d).speed.toFixed(2)]),b(ge,Y)};L(je,ge=>{n(d).speed&&ge(lt)})}var Bt=E(je,2);{var zt=ge=>{var Y=Z_(),se=E(_(Y),2);ql(se,{get values(){return n(P)}});var Ve=E(se,2),ke=_(Ve);v(Ve),v(Y),B(qe=>pe(ke,`${qe??""} Kbps`),[()=>n(d).bitrate.toFixed(2)]),b(ge,Y)};L(Bt,ge=>{n(d).bitrate&&ge(zt)})}var Qe=E(Bt,2),gt=E(_(Qe),2);ql(gt,{get values(){return n(S)}});var Se=E(gt,2),Pt=_(Se,!0);v(Se),v(Qe),v(q),v(I),B(ge=>{k=Z(I,1,"container svelte-4deykz",null,k,ge),Ae(I,"aria-label",M),pe(oe,n(d).version),pe(Mt,`${n(g)??""} / ${n(m)??""} frames`),pe(Pt,n(c))},[()=>({"container-mobile":r()})]),b(t,I),H(),o()}st(["click"]);import{noop as eb}from"@vkontakte/videoplayer-shared/evergreen";var tb=(t,e)=>{t.stopPropagation(),e()()},ib=A('<div class="close svelte-1ome55p"></div>'),ob={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 ea(t,e){D(e,!0),U(t,ob);let i=f(e,"onClick",3,eb);var o=ib();o.__click=[tb,i],b(t,o),H()}st(["click"]);import{noop as nb}from"@vkontakte/videoplayer-shared/evergreen";var rb=A('<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>'),sb={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function Ql(t,e){D(e,!0),U(t,sb);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,nb),r=5e3,s=K(void 0),a,l,d=K(0),u;De(()=>{i()&&(l=Date.now(),N(d,requestAnimationFrame(g),!0))});let m=()=>{n(d)&&(cancelAnimationFrame(n(d)),N(d,0))},g=()=>{if(!i()){m();return}u=(Date.now()-l)/r,u<1?(a?.clearRect(0,0,100,100),a?.beginPath(),a?.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),a?.stroke(),N(d,requestAnimationFrame(g),!0)):o()()};It(()=>{if(a=n(s).getContext("2d"),!!a)return a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff",()=>{m()}}),an(()=>{m()});var c=rb(),$=_(c);Je($,w=>N(s,w),()=>n(s)),$e(2),v(c),b(t,c),H()}var ab=(t,e,i)=>{e(!1),i()},lb=A('<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),db={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 Wp(t,e){D(e,!0),U(t,db);let[i,o]=Le(),r=()=>y(l,"$autoplayNextEnabled$",i),s=()=>y(d,"$timerNextVideoRunning$",i),a=xe(),l=a.ui.autoplayNextEnabled$,d=a.ui.timerNextVideoRunning$,u=a.actions.internal.nextVideoClick,m=a.actions.internal.nextVideoAnnouncementShow,g=a.actions.internal.nextVideoAnnouncementClick,c=a.actions.internal.nextVideoAnnouncementAuto,$=a.actions.internal.nextVideoAnnouncementCancel,w=()=>{r()&&(u(!1),c())},x=()=>{e.clickCloseIcon(),$()};It(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),c())});var S=Oe(),C=ce(S);{var P=M=>{var I=lb(),k=E(ce(I),2),V=_(k),q=_(V),z=_(q,!0);v(q);var ie=E(q,2);ea(ie,{onClick:x}),v(V);var oe=E(V,2);oe.__click=[ab,u,g];var ve=_(oe),Q=_(ve),me=_(Q);let J;var Pe=E(me,2);{var Me=re=>{let R=h(()=>s()&&r());Ql(re,{get isRunning(){return n(R)},onTimerEnded:w})};L(Pe,re=>{r()&&re(Me)})}v(Q),v(ve);var Ie=E(ve,2),_e=_(Ie),Re=_(_e,!0);v(_e),v(Ie),v(oe),v(k),B((re,R)=>{pe(z,re),ot(Q,`background-image: url('${e.thumb}')`),J=Z(me,1,"thumb-overlay svelte-jfbaax",null,J,R),pe(Re,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:r()})]),b(M,I)};L(C,M=>{e.isHide||M(P)})}b(t,S),H(),o()}st(["click"]);import{PlaybackState as ta}from"@vkontakte/videoplayer-core/evergreen";import{checkNever as ub}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as ln}from"@vkontakte/videoplayer-statistics/evergreen";var qp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Kp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Nc=(t,e,i)=>{let o=qp(e,i);e<1?t.actions.internal.setVolume(o):he(t.state.muted$)&&t.actions.external.setMuted(!1)},Bc=(t,e,i)=>{let o=Kp(e,i);e>0&&t.actions.internal.setVolume(o)};var Cs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o?.(),!1):e?!0:(r?.(),!1);var pb=(t,e)=>{e(t)},fb=A('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),mb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Qp(t,e){D(e,!0),U(t,mb);let[i,o]=Le(),r=()=>y(z,"$playbackState$",i),s=()=>y(ie,"$adPlaybackState",i),a=()=>y(me,"$disabledControls$",i),l=()=>y(oe,"$positionExact$",i),d=()=>y(ve,"$duration$",i),u=()=>y(ne,"$isAudioAvailable$",i),m=()=>y(Q,"$volume$",i),g=()=>y(Ie,"$availablePlaybackRates$",i),c=()=>y(Me,"$currentPlaybackRate$",i),$=()=>y(j,"$isInteractiveTime$",i),w=()=>y(Ue,"$showInteractiveTimeIndicatorTooltip$",i),x=()=>y(Ze,"$isEnded$",i),S=()=>y(J,"$muted$",i),C=()=>y(Pe,"$currentSubtitle$",i),P=()=>y(ue,"$overlayContainer$",i),M=f(e,"nextButtonActive",3,!1),I=f(e,"prevButtonActive",3,!1),k=xe(),V=Lt(),q=k.getLogger().createComponentLog("KeyboardControls component"),z=k.state.playbackState$,ie=k.ads.playbackState,oe=k.state.positionExact$,ve=k.state.duration$,Q=k.state.volume$,me=k.ui.controls.disabledControls$,J=k.state.muted$,Pe=k.state.currentSubtitle$,Me=k.state.currentPlaybackRate$,Ie=k.state.availablePlaybackRates$,_e=k.ui.contextMenu.openedByHotKey$,Re=k.ui.contextMenu.lastActiveElem$,re=k.ui.contextMenu.visible$,R=k.ui.contextMenu.position$,Ze=k.state.isEnded$,ue=k.ui.overlayContainer$,Fe=k.callbacks?.onAudioDoesNotExistHint,le=k.callbacks?.onAudioDisabledHint,ne=k.state.isAudioAvailable$,Ee=k.state.isAudioDisabled,j=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ue}=zi(),tt=0,de=!0,ee=K(void 0),Be=Qe=>(Qe!==de&&(de=Qe,tt=0),tt+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*tt)/1e3),Xe=(Qe,gt=!1)=>{let Se=Qe.target,Pt=Se?.getAttribute("role")?.includes("menuitem"),ge=Se.classList.contains("btn"),Y=Qe.code;if(ge&&Y==="Space")return!1;let se=wg.has(Y);if(Pt&&se)return!1;let Ve=!xg.has(Y);if(Qe.ctrlKey&&Ve||Qe.altKey&&Ve||Qe.metaKey)return!1;let ke=Pt&&Y==="Escape";Sg.has(Y)||ke||e.hideContextMenu();let qe=r()===ta.PLAYING||r()===ta.PAUSED,it=e.isAds&&(s()==="paused"||s()==="playing"),Ne=!it&&!a().has("TIMELINE");if(!(qe||it))return!1;q({message:`key down, code: ${Y}, isExternal = ${gt}`});let ht=!1,Ye=()=>{ht=!0,gt||Qe.preventDefault()};switch(Y){case"KeyJ":case"ArrowLeft":{if(!Ne)break;if(Qe.ctrlKey||Qe.altKey){let He=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(He),He&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:He.text}),Ye()}else{let He=Qe.shiftKey?Be(!1):V.controls.seekStepKeyboard/1e3,jt=Math.max(l()-He,0);l()>0&&(k.actions.internal.seekTime(jt,ln.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:He.toString()}),Ye())}break}case"KeyL":case"ArrowRight":{if(!Ne)break;if(Qe.ctrlKey||Qe.altKey){let He=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(He),He&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:He.text}),Ye()}else{let He=Qe.shiftKey?Be(!0):V.controls.seekStepKeyboard/1e3,jt=Math.min(l()+He,d());Math.round(l())<Math.round(d())&&(k.actions.internal.seekTime(jt,ln.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:He.toString()}),Ye())}break}case"ArrowUp":{if(Cs({isAudioDisabled:Ee,audioDisabledHintCallback:le,isAudioAvailable:u(),audioIsNotExistHintCallback:Fe,isAds:e.isAds})){let He=m(),jt=V.controls.volumeStepKeyboard,Ni=He<=1;if(Nc(k,He,jt),Ni){let Bi=Math.round(qp(He,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Bi}})}}Ye();break}case"ArrowDown":{if(Cs({isAudioDisabled:Ee,audioDisabledHintCallback:le,isAudioAvailable:u(),audioIsNotExistHintCallback:Fe,isAds:e.isAds})){let He=m(),jt=V.controls.volumeStepKeyboard,Ni=He>=0;if(Bc(k,He,jt),Ni){let Bi=Math.round(Kp(He,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Bi}})}}Ye();break}case"Comma":{if(Qe.shiftKey){k.actions.internal.decrementPlaybackRate();let He=g().find(jt=>jt.value===c());e.showHotKeyHelpers({type:"RATE_DOWN",text:He?.displayValue}),Ye()}else{if(it||r()!==ta.PAUSED)break;let He=Math.max(l()-V.controls.seekStepFrame/1e3,0);l()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(He,ln.DOUBLE_TAP),Ye())}break}case"Period":{if(Qe.shiftKey){k.actions.internal.incrementPlaybackRate();let He=g().find(jt=>jt.value===c());e.showHotKeyHelpers({type:"RATE_UP",text:He?.displayValue}),Ye()}else{if(it||r()!==ta.PAUSED)break;let He=Math.min(l()+V.controls.seekStepFrame/1e3,d());l()<d()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(He,ln.DOUBLE_TAP),Ye())}break}case"KeyK":case"Space":if(!a().has("PLAY_BUTTON"))if($()&&w()&&Ue.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let He="PLAY";r()===ta.PAUSED?He="PAUSE":x()&&(He="REPLAY"),e.showHotKeyHelpers({type:He})}Ye();break;case"KeyM":{Cs({isAudioDisabled:Ee,audioDisabledHintCallback:le,isAudioAvailable:u(),audioIsNotExistHintCallback:Fe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),Ye();break}case"KeyF":e.toggleFullscreen(),Ye();break;case"KeyC":k.actions.internal.toggleSubtitle(),C().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:C()?.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Ye();break;case"KeyI":k.actions.internal.togglePictureInPicture(),Ye();break;case"Digit1":case"Numpad1":if(Qe.shiftKey){let He=_h(P());R.set(He),Re.set(Se),_e.set(!0),re.set(!0),Ye();break}e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,ln.DOUBLE_TAP),Ye();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,ln.DOUBLE_TAP),Ye();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,ln.DOUBLE_TAP),Ye();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,ln.DOUBLE_TAP),Ye();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,ln.DOUBLE_TAP),Ye();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,ln.DOUBLE_TAP),Ye();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,ln.DOUBLE_TAP),Ye();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,ln.DOUBLE_TAP),Ye();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,ln.DOUBLE_TAP),Ye();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,ln.DOUBLE_TAP),Ye();break;case"Slash":{Qe.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),Ye());break}case"KeyN":Qe.shiftKey&&M()&&(k.actions.internal.nextVideoClick(),Ye());break;case"KeyP":Qe.shiftKey&&I()&&(k.actions.internal.prevVideoClick(),Ye());break;case"ShiftLeft":case"ShiftRight":Ye();break;case"Tab":case"Escape":case"Enter":break;default:ub(Y);break}return ht},dt=Qe=>{let gt=Qe.code;if(Qe.ctrlKey||Qe.altKey||Qe.metaKey)return;let Se=r()===ta.PLAYING||r()===ta.PAUSED,Pt=e.isAds&&(s()==="paused"||s()==="playing");if(Se||Pt)switch(gt){case"ShiftLeft":case"ShiftRight":tt=0;break}},at=F("aria_label_video_player"),Mt=()=>n(ee)?.focus(),je=Qe=>Qe.type==="keydown"?Xe(Qe,!0):(Qe.type==="keyup"&&dt(Qe),!1);var lt=fb();lt.__keyup=dt,lt.__keydown=[pb,Xe];var Bt=_(lt);fe(Bt,()=>e.children??X),v(lt),Je(lt,Qe=>N(ee,Qe),()=>n(ee)),B(()=>Ae(lt,"aria-label",at)),b(t,lt);var zt=H({focus:Mt,handleExternalKeyboardEvent:je});return o(),zt}st(["keyup","keydown"]);var vb=A('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),gb={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
141
141
 
142
142
  @keyframes svelte-1dbnjb1-dot_animation {
143
143
  0% {
@@ -150,7 +150,7 @@ Try switching the\xA0quality to\xA0Auto.`},Xg=U0;var rs=new Map;rs.set(eh.EN,Xg)
150
150
  opacity: 0.2;
151
151
  }
152
152
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
153
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ia(t,e){U(t,gb);let i=f(e,"style",3,"");var o=vb();B(()=>it(o,i())),b(t,o)}var hb=$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 Gp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=hb();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}import{noop as qa}from"@vkontakte/videoplayer-shared/evergreen";var _b=t=>{t.stopPropagation()},bb=P("<button><!></button>"),$b={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
153
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ia(t,e){U(t,gb);let i=f(e,"style",3,"");var o=vb();B(()=>ot(o,i())),b(t,o)}var hb=ye('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function Gp(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=hb();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}import{noop as qa}from"@vkontakte/videoplayer-shared/evergreen";var _b=t=>{t.stopPropagation()},bb=A("<button><!></button>"),$b={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
154
154
 
155
155
  /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
156
156
 
@@ -158,22 +158,22 @@ Try switching the\xA0quality to\xA0Auto.`},Xg=U0;var rs=new Map;rs.set(eh.EN,Xg)
158
158
  /* mobile */
159
159
  /* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
160
160
  .btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
161
- /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Ct(t,e){D(e,!0),U(t,$b);let i=f(e,"className",3,""),o=f(e,"style",3,""),r=f(e,"disabled",3,void 0),s=f(e,"testId",3,void 0),a=f(e,"ariaHidden",3,void 0),l=f(e,"ariaLabel",3,void 0),d=f(e,"ref",15,void 0),u=f(e,"ariaKeyShortCut",3,void 0),m=f(e,"ariaExpanded",3,void 0),g=f(e,"tabIndex",3,0),c=f(e,"click",3,qa),$=f(e,"focus",3,qa),w=f(e,"blur",3,qa),x=h(()=>c()===qa?null:I=>{I.stopPropagation(),c()(I)}),S=h(()=>$()===qa?null:I=>{I.preventDefault(),$()()}),C=h(()=>w()===qa?null:I=>{I.preventDefault(),w()()});var A=bb();A.__pointerdown=[_b],A.__click=function(...I){n(x)?.apply(this,I)};var M=_(A);pe(M,()=>e.children??X),v(A),Xe(A,I=>d(I),()=>d()),B(()=>{Z(A,1,`btn ${i()??""}`,"svelte-wr0kwr"),it(A,o()||null),A.disabled=r()??null,Me(A,"aria-hidden",a()??null),Me(A,"aria-label",l()??null),Me(A,"aria-keyshortcuts",u()??null),Me(A,"aria-expanded",m()??null),Me(A,"data-testid",s()??null),Me(A,"tabindex",g()),Me(A,"role",e.role),Me(A,"aria-checked",e.areaChecked??null)}),gt("focus",A,function(...I){n(S)?.apply(this,I)}),gt("blur",A,function(...I){n(C)?.apply(this,I)}),b(t,A),H()}st(["pointerdown","click"]);var yb=P('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),xb=P('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),wb={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function jp(t,e){D(e,!0),U(t,wb);let i=f(e,"showHeader",3,!0),o=f(e,"showCloseCross",3,!0),r=F("hotkey_map_modal_close_btn_text");var s=xb(),a=_(s),l=_(a);{var d=c=>{var $=yb(),w=_($),x=_(w,!0);v(w);var S=E(w,2);{var C=A=>{Ct(A,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(M,I)=>{Gp(M,{})},$$slots:{default:!0}})};L(S,A=>{o()&&A(C)})}v($),B(()=>ue(x,e.title)),b(c,$)};L(l,c=>{i()&&c(d)})}var u=E(l,2),m=_(u),g=_(m);pe(g,()=>e.children??X),v(m),v(u),v(a),v(s),b(t,s),H()}var Sb=new Set(["BR"]),yh=t=>{let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],s=r.tagName;Sb.has(s)||r.parentElement?.removeChild(r)}return e.innerHTML};var Cb=P('<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>'),Tb=P('<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>'),kb=P('<div class="hot-key-map svelte-quklnq"></div>'),Eb={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
161
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function kt(t,e){D(e,!0),U(t,$b);let i=f(e,"className",3,""),o=f(e,"style",3,""),r=f(e,"disabled",3,void 0),s=f(e,"testId",3,void 0),a=f(e,"ariaHidden",3,void 0),l=f(e,"ariaLabel",3,void 0),d=f(e,"ref",15,void 0),u=f(e,"ariaKeyShortCut",3,void 0),m=f(e,"ariaExpanded",3,void 0),g=f(e,"tabIndex",3,0),c=f(e,"click",3,qa),$=f(e,"focus",3,qa),w=f(e,"blur",3,qa),x=h(()=>c()===qa?null:I=>{I.stopPropagation(),c()(I)}),S=h(()=>$()===qa?null:I=>{I.preventDefault(),$()()}),C=h(()=>w()===qa?null:I=>{I.preventDefault(),w()()});var P=bb();P.__pointerdown=[_b],P.__click=function(...I){n(x)?.apply(this,I)};var M=_(P);fe(M,()=>e.children??X),v(P),Je(P,I=>d(I),()=>d()),B(()=>{Z(P,1,`btn ${i()??""}`,"svelte-wr0kwr"),ot(P,o()||null),P.disabled=r()??null,Ae(P,"aria-hidden",a()??null),Ae(P,"aria-label",l()??null),Ae(P,"aria-keyshortcuts",u()??null),Ae(P,"aria-expanded",m()??null),Ae(P,"data-testid",s()??null),Ae(P,"tabindex",g()),Ae(P,"role",e.role),Ae(P,"aria-checked",e.areaChecked??null)}),bt("focus",P,function(...I){n(S)?.apply(this,I)}),bt("blur",P,function(...I){n(C)?.apply(this,I)}),b(t,P),H()}st(["pointerdown","click"]);var yb=A('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),xb=A('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),wb={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function jp(t,e){D(e,!0),U(t,wb);let i=f(e,"showHeader",3,!0),o=f(e,"showCloseCross",3,!0),r=F("hotkey_map_modal_close_btn_text");var s=xb(),a=_(s),l=_(a);{var d=c=>{var $=yb(),w=_($),x=_(w,!0);v(w);var S=E(w,2);{var C=P=>{kt(P,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(M,I)=>{Gp(M,{})},$$slots:{default:!0}})};L(S,P=>{o()&&P(C)})}v($),B(()=>pe(x,e.title)),b(c,$)};L(l,c=>{i()&&c(d)})}var u=E(l,2),m=_(u),g=_(m);fe(g,()=>e.children??X),v(m),v(u),v(a),v(s),b(t,s),H()}var Sb=new Set(["BR"]),yh=t=>{let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],s=r.tagName;Sb.has(s)||r.parentElement?.removeChild(r)}return e.innerHTML};var Cb=A('<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>'),Tb=A('<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>'),kb=A('<div class="hot-key-map svelte-quklnq"></div>'),Eb={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
162
162
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
163
- .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Yp(t,e){D(e,!1),U(t,Eb);let[i,o]=Re(),r=()=>y(a,"$data",i),s=we(),{data:a,show:l}=s.ui.modals.hotKeyMap,d=()=>{l.set(!1)};yr(),jp(t,{get title(){return r().title},onClose:d,children:(u,m)=>{var g=kb();ai(g,5,()=>r().groups,({title:c,items:$})=>c,(c,$)=>{let w=()=>n($).title,x=()=>n($).items;var S=Tb(),C=_(S),A=_(C,!0);v(C);var M=E(C,2);ai(M,5,x,({description:I,value:k})=>k,(I,k)=>{let V=()=>n(k).description,q=()=>n(k).value;var z=Cb(),ie=_(z),oe=_(ie);kl(oe,()=>yh(V())),v(ie);var me=E(ie,2),Q=_(me,!0);v(me),v(z),B(()=>ue(Q,q())),b(I,z)}),v(M),v(S),B(()=>ue(A,w())),b(c,S)}),v(g),b(u,g)},$$slots:{default:!0}}),H(),o()}import{noop as Qh}from"@vkontakte/videoplayer-shared/evergreen";import{ChromecastState as Fh,PlaybackState as Nf}from"@vkontakte/videoplayer-core/evergreen";import"@vkontakte/videoplayer-shared/evergreen";var Ib=P('<div class="pillow svelte-1oe0j8n"><!></div>'),Ab={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 Zp(t,e){U(t,Ab);var i=Ib(),o=_(i);pe(o,()=>e.children??X),v(i),b(t,i)}import{VideoQuality as Yl}from"@vkontakte/videoplayer-shared/evergreen";var Pb=$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 Xp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Pb();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}var Mb=$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 Jp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Mb();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}var Lb=$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 ef(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Lb();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var Rb=$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 Gl(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Rb();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var Vb=$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 jl(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Vb();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}var Oc=t=>{switch(t){case Yl.Q_720P:return ef;case Yl.Q_1080P:return Gl;case Yl.Q_1440P:return jl;case Yl.Q_2160P:return Xp;case Yl.Q_4320P:return Jp}};var Nb=$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 tf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Nb();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var Bb=$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 of(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Bb();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}var Ob=P('<div aria-hidden="true"><!> <!></div>'),Db={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function Zl(t,e){D(e,!0),U(t,Db);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),r=h(()=>Oc(o())),s=h(()=>!!n(r)&&[Gl,jl].includes(n(r)));var a=Be(),l=le(a);{var d=m=>{tf(m,{})},u=m=>{var g=Ob();let c;var $=_(g);{var w=C=>{Zp(C,{children:(A,M)=>{var I=Be(),k=le(I);li(k,()=>n(r),(V,q)=>{q(V,{})}),b(A,I)},$$slots:{default:!0}})};L($,C=>{n(r)&&C(w)})}var x=E($,2);let S=h(()=>n(r)?"settings-icon--labeled":"settings-icon");of(x,{get"data-testid"(){return n(S)},fill:"var(--btn-color, #fff)"}),v(g),B(C=>c=Z(g,1,"icon svelte-8t5w85",null,c,C),[()=>({triple:n(s)})]),b(m,g)};L(l,m=>{i()?m(d):m(u,!1)})}b(t,a),H()}var Hb=P('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Fb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Ka(t,e){D(e,!0),U(t,Fb);let[i,o]=Re(),r=()=>y(e.ref$,"$ref$",i),s=()=>y(m,"$settingsMenuVisible",i),a=()=>y($,"$isMobile",i),l=()=>y(u,"$currentQuality",i),d=we(),u=d.state.currentQuality$,m=d.ui.settingsMenu.visible$,g=d.actions.internal.openSettingsMenu,c=d.actions.internal.closeSettingsMenu,$=d.ui.isMobile,w=d.ui.t,x=K(void 0);Oe(()=>{r()&&_t(()=>{e.ref$.set(n(x))})});let S=w("aria_label_settings");async function C(M){let I=Ss(M);s()?c():g(I,io)}let A=h(()=>s()?"opened":"");Ct(t,{get className(){return n(A)},testId:"btn-settings",click:C,get ariaLabel(){return S},get ariaExpanded(){return s()},get ref(){return n(x)},set ref(M){N(x,M,!0)},children:(M,I)=>{var k=Hb(),V=_(k);Zl(V,{get isMobile(){return a()},get currentQuality(){return l()}}),v(k),b(M,k)},$$slots:{default:!0}}),H(),o()}var Ub=$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 nf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ub();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var zb=$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 Xl(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=zb();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}function rf(t,e){D(e,!0);let i=f(e,"isSubtitlesEnabled",3,!1),r=we().ui.t,s=h(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Ct(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return Wr.KeyC},role:"button",children:(a,l)=>{var d=Be(),u=le(d);{var m=c=>{nf(c,{})},g=c=>{Xl(c,{})};L(u,c=>{i()?c(m):c(g,!1)})}b(a,d)},$$slots:{default:!0}}),H()}var Wb=P('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),qb=P('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),Kb={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function Jl(t,e){D(e,!0),U(t,Kb);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),r=f(e,"ref",15),s=h(()=>zo(e.duration)),a=h(()=>zo(e.position));var l=qb();let d;var u=_(l),m=_(u,!0);v(u);var g=E(u,2);{var c=$=>{var w=Wb(),x=_(w,!0);v(w),B(()=>ue(x,n(s))),b($,w)};L(g,$=>{o()&&$(c)})}v(l),Xe(l,$=>r($),()=>r()),B($=>{d=Z(l,1,"time svelte-sz9er7",null,d,$),ue(m,n(a))},[()=>({mobile:i()})]),b(t,l),H()}import{noop as Dc}from"@vkontakte/videoplayer-shared/evergreen";var Qb=$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>'),Gb={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),
164
- .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),
165
- .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function Ts(t,e){U(t,Gb);let i=f(e,"volume",3,1),o=f(e,"muted",3,!1),r=(l,d)=>d?"off":l>.5?"max":l>.2?"mid":l>0?"min":"off",s=h(()=>r(i(),o()));var a=Qb();B(()=>{Me(a,"data-value",n(s)),Me(a,"data-testid",`volume-${n(s)??""}-icon`)}),b(t,a)}import{isNonNullable as wh,noop as Rn}from"@vkontakte/videoplayer-shared/evergreen";import{noop as af}from"@vkontakte/videoplayer-shared/evergreen";import{noop as Yb}from"@vkontakte/videoplayer-shared/evergreen";var jb=P('<div class="overlay"><!></div>');function sf(t,e){D(e,!0);let[i,o]=Re(),r=()=>y(a,"$overlayContainer$",i),a=we().ui.overlayContainer$,l=K(void 0),d=c=>{!c||!n(l)||!c.contains(n(l))||c.removeChild(n(l))},u=c=>{!c||!n(l)||c.contains(n(l))||c.appendChild(n(l))};Oe(()=>{u(r())}),Et(()=>(u(r()),()=>d(r())));var m=jb(),g=_(m);pe(g,()=>e.children??X),v(m),Xe(m,c=>N(l,c),()=>n(l)),b(t,m),H(),o()}var Zb=P('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),Xb=P("<div><!></div> <!>",1),Jb={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 oa(t,e){D(e,!0),U(t,Jb);let[i,o]=Re(),r=()=>y(oe,"$overlayContainer$",i),s=()=>y(ie,"$containerSize",i),a=f(e,"isMobile",3,!1),l=f(e,"content",3,""),d=f(e,"active",15,!1),u=f(e,"translateX",3,0),m=f(e,"translateY",3,0),g=f(e,"isFullWidthWrapper",3,!1),c=f(e,"maxTooltipWidth",3,void 0),$=f(e,"placement",3,"top"),w=f(e,"onVisibilityChange",3,Yb),x=5,S=K(void 0),C=K(void 0),A,M=K(0),I=K(0),k=K(0),V=K(0),q=Rt(),z=we(),ie=z.ui.playerSize,oe=z.ui.overlayContainer$;Oe(()=>{_t(()=>{w()(d())})});let me=z.getLogger().createComponentLog("Tooltip component"),Q=()=>{if(!r()||!n(C)||!n(S))return;N(I,x);let ce=r().getBoundingClientRect(),ee=n(S).getBoundingClientRect(),Ne=ee.width,je=n(C).clientWidth,dt=s().width,at=(Ne-je)/2,Tt=ee.left+u()-ce.left,Ze=Tt+at,lt=ee.top+m()-ce.top,Nt=je/2-x,Ut=Ze<8,qe=Ze+je>dt-8;Ut&&(Ze=8,Nt=Tt+ee.width/2-2.5*x),qe&&(Ze=dt-8-je,Nt=ee.left-ce.left+ee.width/2-Ze-x),N(k,Ze,!0),N(V,lt),N(M,Nt,!0)},fe=()=>{!r()||!n(C)||!n(S)||N(I,-x)},J=()=>{if(!r()||!n(C)||!n(S))return;N(M,x);let ce=r().getBoundingClientRect(),ee=n(S).getBoundingClientRect(),Ne=ee.height,je=n(C).clientHeight,dt=(Ne-je)/2+je,at=ee.left+u()-ce.left-n(C).clientWidth,Tt=2,Ze=at-x;Ze<8&&(Ze=8);let Nt=ee.top+m()-ce.top+dt,Ut=Tt-dt/2,qe=Tt-x;N(k,Ze,!0),N(V,Nt),N(I,Ut),N(M,qe)},Pe=()=>{!r()||!n(C)||!n(S)||N(M,-x)},Le=()=>{switch($()){case"top":Q();break;case"bottom":fe();break;case"left":J();break;default:Pe()}},Ae=()=>{try{if(!r()||!n(S))return;Le(),d(!0)}catch(ce){me({message:String(ce)})}},he=()=>{d(!1)},Ve=()=>{n(C)&&(A||(A=window.setTimeout(Ae,q.controls.hideTimeoutTooltips)),d()&&Ae())},re=()=>{he(),window.clearTimeout(A),A=void 0},R=(ce,ee,Ne)=>{let je="";switch($()){case"top":je=`transform: translate(${ce}px, ${ee}px);`;break;case"bottom":je=`transform: translate(${ce}px, ${ee}px); top: auto; bottom: 100%;`;break;case"left":je=`transform: translate(${ce}px, ${ee}px); left: 0; right: auto;`;break;default:je=`transform: translate(${ce}px, ${ee}px);`}return je+=` max-width: ${c()===void 0?"auto":`${c()}px`};`,je+=` opacity: ${Ne?1:0}; visibility: ${Ne?"visible":"hidden"}`,je},Ye=(ce,ee)=>{let Ne="";switch($()){case"top":Ne=`transform: translate(${ce}px, ${ee}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ne=`transform: translate(${ce}px, ${ee}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ne=`transform: translate(${ce}px, ${ee}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ne=`transform: translate(${ce}px, ${ee}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ne},de=h(()=>R(n(k),n(V),d())),Fe=h(()=>Ye(n(M),n(I)));Et(Le),dn(()=>window.clearTimeout(A));var ae=Xb(),ne=le(ae);let Ie;ne.__mousemove=Ve,ne.__mousedown=re,ne.__mouseup=Ve;var G=_(ne);pe(G,()=>e.children??X),v(ne),Xe(ne,ce=>N(S,ce),()=>n(S));var ze=E(ne,2);{var et=ce=>{sf(ce,{children:(ee,Ne)=>{var je=Zb(),dt=_(je),at=_(dt,!0);v(dt);var Tt=E(dt,2);v(je),Xe(je,Ze=>N(C,Ze),()=>n(C)),B(()=>{it(je,n(de)),ue(at,l()),it(Tt,n(Fe))}),b(ee,je)},$$slots:{default:!0}})};L(ze,ce=>{l()&&!a()&&ce(et)})}B(ce=>Ie=Z(ne,1,"tooltip-wrapper svelte-hxlyne",null,Ie,ce),[()=>({"full-width":g()})]),gt("mouseenter",ne,Ve),gt("mouseleave",ne,re),b(t,ae),H(),o()}st(["mousemove","mousedown","mouseup"]);var xh=t=>{t.stopPropagation()},e$=P("<div><!></div>"),t$={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 bo(t,e){D(e,!0),U(t,t$);let[i,o]=Re(),r=()=>y(u,"$isGraphOpened$",i),s=()=>y(d,"$isMobile",i),a=we(),l=Ki(),d=a.ui.isMobile,u=l.graphIsOpened$,m=a.ui.t,g=f(e,"className",3,""),c=f(e,"disabled",3,!1),$=f(e,"hasTooltip",3,!0),w=f(e,"ref",15,void 0),x=f(e,"width",15,void 0),S=f(e,"isFullWidthTooltip",3,!0),C=f(e,"tooltipContent",3,""),A=f(e,"tooltipActive",3,!1),M=f(e,"tooltipPlacement",3,"top"),I=f(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),k=f(e,"isAriaHidden",3,!1),V=f(e,"onTooltipVisibilityChange",3,af),q=f(e,"initialTranslateXPx",3,0),z=f(e,"initialTranslateYPx",19,()=>-18),ie=f(e,"mouseEnter",3,af),oe=f(e,"mouseLeave",3,af),me=h(()=>c()?r()?m("tooltip_disabled_when_graph_on"):I():C());var Q=e$();Q.__pointerdown=[xh],Q.__click=[xh];var fe=_(Q);{var J=Le=>{oa(Le,{get content(){return n(me)},get translateX(){return q()},get translateY(){return z()},get isFullWidthWrapper(){return S()},get active(){return A()},get placement(){return M()},get onVisibilityChange(){return V()},children:(Ae,he)=>{var Ve=Be(),re=le(Ve);pe(re,()=>e.children??X),b(Ae,Ve)},$$slots:{default:!0}})},Pe=Le=>{var Ae=Be(),he=le(Ae);pe(he,()=>e.children??X),b(Le,Ae)};L(fe,Le=>{$()&&n(me)&&!s()?Le(J):Le(Pe,!1)})}v(Q),Xe(Q,Le=>w(Le),()=>w()),B(()=>{Z(Q,1,`btn-container ${g()??""}`,"svelte-p9r045"),Me(Q,"aria-hidden",k()||null)}),gt("mouseenter",Q,function(...Le){ie()?.apply(this,Le)}),gt("mouseleave",Q,function(...Le){oe()?.apply(this,Le)}),zr(Q,"clientWidth",x),b(t,Q),H(),o()}st(["pointerdown","click"]);var i$=$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 ed(t,e){"use strict";var i=i$(),o=_(i),r=E(o);v(i),B(()=>{Me(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Me(o,"fill-opacity",e.completed?1:.24),Me(r,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var o$=P("<div><!></div>"),n$={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 lf(t,e){D(e,!0),U(t,n$);let o=we().ui.t,r=K(0),s=h(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));bo(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(a,l)=>{var d=o$();let u;var m=_(d);let g=h(()=>!!e.videoEpisode.completed);ed(m,{get completed(){return n(g)}}),v(d),B(c=>{u=Z(d,1,"interactive-episode-icon svelte-bklhpe",null,u,c),it(d,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),zr(d,"clientWidth",c=>N(r,c)),b(a,d)},$$slots:{default:!0}}),H()}var r$=P('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),s$=P('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),a$={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,
163
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Yp(t,e){D(e,!1),U(t,Eb);let[i,o]=Le(),r=()=>y(a,"$data",i),s=xe(),{data:a,show:l}=s.ui.modals.hotKeyMap,d=()=>{l.set(!1)};yr(),jp(t,{get title(){return r().title},onClose:d,children:(u,m)=>{var g=kb();di(g,5,()=>r().groups,({title:c,items:$})=>c,(c,$)=>{let w=()=>n($).title,x=()=>n($).items;var S=Tb(),C=_(S),P=_(C,!0);v(C);var M=E(C,2);di(M,5,x,({description:I,value:k})=>k,(I,k)=>{let V=()=>n(k).description,q=()=>n(k).value;var z=Cb(),ie=_(z),oe=_(ie);kl(oe,()=>yh(V())),v(ie);var ve=E(ie,2),Q=_(ve,!0);v(ve),v(z),B(()=>pe(Q,q())),b(I,z)}),v(M),v(S),B(()=>pe(P,w())),b(c,S)}),v(g),b(u,g)},$$slots:{default:!0}}),H(),o()}import{noop as Qh}from"@vkontakte/videoplayer-shared/evergreen";import{ChromecastState as Fh,PlaybackState as Nf}from"@vkontakte/videoplayer-core/evergreen";import"@vkontakte/videoplayer-shared/evergreen";var Ib=A('<div class="pillow svelte-1oe0j8n"><!></div>'),Pb={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 Zp(t,e){U(t,Pb);var i=Ib(),o=_(i);fe(o,()=>e.children??X),v(i),b(t,i)}import{VideoQuality as Yl}from"@vkontakte/videoplayer-shared/evergreen";var Ab=ye('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function Xp(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Ab();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}var Mb=ye('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function Jp(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Mb();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}var Lb=ye('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function ef(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Lb();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var Rb=ye('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function Gl(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Rb();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var Vb=ye('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function jl(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Vb();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}var Oc=t=>{switch(t){case Yl.Q_720P:return ef;case Yl.Q_1080P:return Gl;case Yl.Q_1440P:return jl;case Yl.Q_2160P:return Xp;case Yl.Q_4320P:return Jp}};var Nb=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function tf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Nb();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var Bb=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function of(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Bb();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}var Ob=A('<div aria-hidden="true"><!> <!></div>'),Db={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function Zl(t,e){D(e,!0),U(t,Db);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),r=h(()=>Oc(o())),s=h(()=>!!n(r)&&[Gl,jl].includes(n(r)));var a=Oe(),l=ce(a);{var d=m=>{tf(m,{})},u=m=>{var g=Ob();let c;var $=_(g);{var w=C=>{Zp(C,{children:(P,M)=>{var I=Oe(),k=ce(I);ci(k,()=>n(r),(V,q)=>{q(V,{})}),b(P,I)},$$slots:{default:!0}})};L($,C=>{n(r)&&C(w)})}var x=E($,2);let S=h(()=>n(r)?"settings-icon--labeled":"settings-icon");of(x,{get"data-testid"(){return n(S)},fill:"var(--btn-color, #fff)"}),v(g),B(C=>c=Z(g,1,"icon svelte-8t5w85",null,c,C),[()=>({triple:n(s)})]),b(m,g)};L(l,m=>{i()?m(d):m(u,!1)})}b(t,a),H()}var Hb=A('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Fb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Ka(t,e){D(e,!0),U(t,Fb);let[i,o]=Le(),r=()=>y(e.ref$,"$ref$",i),s=()=>y(m,"$settingsMenuVisible",i),a=()=>y($,"$isMobile",i),l=()=>y(u,"$currentQuality",i),d=xe(),u=d.state.currentQuality$,m=d.ui.settingsMenu.visible$,g=d.actions.internal.openSettingsMenu,c=d.actions.internal.closeSettingsMenu,$=d.ui.isMobile,w=d.ui.t,x=K(void 0);De(()=>{r()&&yt(()=>{e.ref$.set(n(x))})});let S=w("aria_label_settings");async function C(M){let I=Ss(M);s()?c():g(I,Zi)}let P=h(()=>s()?"opened":"");kt(t,{get className(){return n(P)},testId:"btn-settings",click:C,get ariaLabel(){return S},get ariaExpanded(){return s()},get ref(){return n(x)},set ref(M){N(x,M,!0)},children:(M,I)=>{var k=Hb(),V=_(k);Zl(V,{get isMobile(){return a()},get currentQuality(){return l()}}),v(k),b(M,k)},$$slots:{default:!0}}),H(),o()}var Ub=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function nf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Ub();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var zb=ye('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function Xl(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=zb();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}function rf(t,e){D(e,!0);let i=f(e,"isSubtitlesEnabled",3,!1),r=xe().ui.t,s=h(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));kt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return Wr.KeyC},role:"button",children:(a,l)=>{var d=Oe(),u=ce(d);{var m=c=>{nf(c,{})},g=c=>{Xl(c,{})};L(u,c=>{i()?c(m):c(g,!1)})}b(a,d)},$$slots:{default:!0}}),H()}var Wb=A('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),qb=A('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),Kb={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function Jl(t,e){D(e,!0),U(t,Kb);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),r=f(e,"ref",15),s=h(()=>qo(e.duration)),a=h(()=>qo(e.position));var l=qb();let d;var u=_(l),m=_(u,!0);v(u);var g=E(u,2);{var c=$=>{var w=Wb(),x=_(w,!0);v(w),B(()=>pe(x,n(s))),b($,w)};L(g,$=>{o()&&$(c)})}v(l),Je(l,$=>r($),()=>r()),B($=>{d=Z(l,1,"time svelte-sz9er7",null,d,$),pe(m,n(a))},[()=>({mobile:i()})]),b(t,l),H()}import{noop as Dc}from"@vkontakte/videoplayer-shared/evergreen";var Qb=ye('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),Gb={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
164
+ .icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
165
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Ts(t,e){U(t,Gb);let i=f(e,"volume",3,1),o=f(e,"muted",3,!1),r=(l,d)=>d?"off":l>.5?"max":l>.2?"mid":l>0?"min":"off",s=h(()=>r(i(),o()));var a=Qb();B(()=>{Ae(a,"data-value",n(s)),Ae(a,"data-testid",`volume-${n(s)??""}-icon`)}),b(t,a)}import{isNonNullable as wh,noop as Bn}from"@vkontakte/videoplayer-shared/evergreen";import{noop as af}from"@vkontakte/videoplayer-shared/evergreen";import{noop as Yb}from"@vkontakte/videoplayer-shared/evergreen";var jb=A('<div class="overlay"><!></div>');function sf(t,e){D(e,!0);let[i,o]=Le(),r=()=>y(a,"$overlayContainer$",i),a=xe().ui.overlayContainer$,l=K(void 0),d=c=>{!c||!n(l)||!c.contains(n(l))||c.removeChild(n(l))},u=c=>{!c||!n(l)||c.contains(n(l))||c.appendChild(n(l))};De(()=>{u(r())}),It(()=>(u(r()),()=>d(r())));var m=jb(),g=_(m);fe(g,()=>e.children??X),v(m),Je(m,c=>N(l,c),()=>n(l)),b(t,m),H(),o()}var Zb=A('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),Xb=A("<div><!></div> <!>",1),Jb={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 oa(t,e){D(e,!0),U(t,Jb);let[i,o]=Le(),r=()=>y(oe,"$overlayContainer$",i),s=()=>y(ie,"$containerSize",i),a=f(e,"isMobile",3,!1),l=f(e,"content",3,""),d=f(e,"active",15,!1),u=f(e,"translateX",3,0),m=f(e,"translateY",3,0),g=f(e,"isFullWidthWrapper",3,!1),c=f(e,"maxTooltipWidth",3,void 0),$=f(e,"placement",3,"top"),w=f(e,"onVisibilityChange",3,Yb),x=5,S=K(void 0),C=K(void 0),P,M=K(0),I=K(0),k=K(0),V=K(0),q=Lt(),z=xe(),ie=z.ui.playerSize,oe=z.ui.overlayContainer$;De(()=>{yt(()=>{w()(d())})});let ve=z.getLogger().createComponentLog("Tooltip component"),Q=()=>{if(!r()||!n(C)||!n(S))return;N(I,x);let de=r().getBoundingClientRect(),ee=n(S).getBoundingClientRect(),Be=ee.width,Xe=n(C).clientWidth,dt=s().width,at=(Be-Xe)/2,Mt=ee.left+u()-de.left,je=Mt+at,lt=ee.top+m()-de.top,Bt=Xe/2-x,zt=je<8,Qe=je+Xe>dt-8;zt&&(je=8,Bt=Mt+ee.width/2-2.5*x),Qe&&(je=dt-8-Xe,Bt=ee.left-de.left+ee.width/2-je-x),N(k,je,!0),N(V,lt),N(M,Bt,!0)},me=()=>{!r()||!n(C)||!n(S)||N(I,-x)},J=()=>{if(!r()||!n(C)||!n(S))return;N(M,x);let de=r().getBoundingClientRect(),ee=n(S).getBoundingClientRect(),Be=ee.height,Xe=n(C).clientHeight,dt=(Be-Xe)/2+Xe,at=ee.left+u()-de.left-n(C).clientWidth,Mt=2,je=at-x;je<8&&(je=8);let Bt=ee.top+m()-de.top+dt,zt=Mt-dt/2,Qe=Mt-x;N(k,je,!0),N(V,Bt),N(I,zt),N(M,Qe)},Pe=()=>{!r()||!n(C)||!n(S)||N(M,-x)},Me=()=>{switch($()){case"top":Q();break;case"bottom":me();break;case"left":J();break;default:Pe()}},Ie=()=>{try{if(!r()||!n(S))return;Me(),d(!0)}catch(de){ve({message:String(de)})}},_e=()=>{d(!1)},Re=()=>{n(C)&&(P||(P=window.setTimeout(Ie,q.controls.hideTimeoutTooltips)),d()&&Ie())},re=()=>{_e(),window.clearTimeout(P),P=void 0},R=(de,ee,Be)=>{let Xe="";switch($()){case"top":Xe=`transform: translate(${de}px, ${ee}px);`;break;case"bottom":Xe=`transform: translate(${de}px, ${ee}px); top: auto; bottom: 100%;`;break;case"left":Xe=`transform: translate(${de}px, ${ee}px); left: 0; right: auto;`;break;default:Xe=`transform: translate(${de}px, ${ee}px);`}return Xe+=` max-width: ${c()===void 0?"auto":`${c()}px`};`,Xe+=` opacity: ${Be?1:0}; visibility: ${Be?"visible":"hidden"}`,Xe},Ze=(de,ee)=>{let Be="";switch($()){case"top":Be=`transform: translate(${de}px, ${ee}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Be=`transform: translate(${de}px, ${ee}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Be=`transform: translate(${de}px, ${ee}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Be=`transform: translate(${de}px, ${ee}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Be},ue=h(()=>R(n(k),n(V),d())),Fe=h(()=>Ze(n(M),n(I)));It(Me),an(()=>window.clearTimeout(P));var le=Xb(),ne=ce(le);let Ee;ne.__mousemove=Re,ne.__mousedown=re,ne.__mouseup=function(...de){(e.disableMouseupTooltipShow?void 0:Re)?.apply(this,de)};var j=_(ne);fe(j,()=>e.children??X),v(ne),Je(ne,de=>N(S,de),()=>n(S));var Ue=E(ne,2);{var tt=de=>{sf(de,{children:(ee,Be)=>{var Xe=Zb(),dt=_(Xe),at=_(dt,!0);v(dt);var Mt=E(dt,2);v(Xe),Je(Xe,je=>N(C,je),()=>n(C)),B(()=>{ot(Xe,n(ue)),pe(at,l()),ot(Mt,n(Fe))}),b(ee,Xe)},$$slots:{default:!0}})};L(Ue,de=>{l()&&!a()&&de(tt)})}B(de=>Ee=Z(ne,1,"tooltip-wrapper svelte-hxlyne",null,Ee,de),[()=>({"full-width":g()})]),bt("mouseenter",ne,Re),bt("mouseleave",ne,re),b(t,le),H(),o()}st(["mousemove","mousedown","mouseup"]);var xh=t=>{t.stopPropagation()},e$=A("<div><!></div>"),t$={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 go(t,e){D(e,!0),U(t,t$);let[i,o]=Le(),r=()=>y(u,"$isGraphOpened$",i),s=()=>y(d,"$isMobile",i),a=xe(),l=zi(),d=a.ui.isMobile,u=l.graphIsOpened$,m=a.ui.t,g=f(e,"className",3,""),c=f(e,"disabled",3,!1),$=f(e,"hasTooltip",3,!0),w=f(e,"ref",15,void 0),x=f(e,"width",15,void 0),S=f(e,"isFullWidthTooltip",3,!0),C=f(e,"tooltipContent",3,""),P=f(e,"tooltipActive",3,!1),M=f(e,"tooltipPlacement",3,"top"),I=f(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),k=f(e,"isAriaHidden",3,!1),V=f(e,"onTooltipVisibilityChange",3,af),q=f(e,"initialTranslateXPx",3,0),z=f(e,"initialTranslateYPx",19,()=>-18),ie=f(e,"mouseEnter",3,af),oe=f(e,"mouseLeave",3,af),ve=h(()=>c()?r()?m("tooltip_disabled_when_graph_on"):I():C());var Q=e$();Q.__pointerdown=[xh],Q.__click=[xh];var me=_(Q);{var J=Me=>{oa(Me,{get content(){return n(ve)},get translateX(){return q()},get translateY(){return z()},get isFullWidthWrapper(){return S()},get active(){return P()},get placement(){return M()},get onVisibilityChange(){return V()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(Ie,_e)=>{var Re=Oe(),re=ce(Re);fe(re,()=>e.children??X),b(Ie,Re)},$$slots:{default:!0}})},Pe=Me=>{var Ie=Oe(),_e=ce(Ie);fe(_e,()=>e.children??X),b(Me,Ie)};L(me,Me=>{$()&&n(ve)&&!s()?Me(J):Me(Pe,!1)})}v(Q),Je(Q,Me=>w(Me),()=>w()),B(()=>{Z(Q,1,`btn-container ${g()??""}`,"svelte-p9r045"),Ae(Q,"aria-hidden",k()||null)}),bt("mouseenter",Q,function(...Me){ie()?.apply(this,Me)}),bt("mouseleave",Q,function(...Me){oe()?.apply(this,Me)}),zr(Q,"clientWidth",x),b(t,Q),H(),o()}st(["pointerdown","click"]);var i$=ye('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function ed(t,e){"use strict";var i=i$(),o=_(i),r=E(o);v(i),B(()=>{Ae(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ae(o,"fill-opacity",e.completed?1:.24),Ae(r,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var o$=A("<div><!></div>"),n$={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 lf(t,e){D(e,!0),U(t,n$);let o=xe().ui.t,r=K(0),s=h(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));go(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(a,l)=>{var d=o$();let u;var m=_(d);let g=h(()=>!!e.videoEpisode.completed);ed(m,{get completed(){return n(g)}}),v(d),B(c=>{u=Z(d,1,"interactive-episode-icon svelte-bklhpe",null,u,c),ot(d,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),zr(d,"clientWidth",c=>N(r,c)),b(a,d)},$$slots:{default:!0}}),H()}var r$=A('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),s$=A('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),a$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
166
166
  .video-episode-loaded.svelte-1u6kv8l,
167
- .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function df(t,e){U(t,a$);let i=f(e,"videoEpisodes",19,()=>[]);var o=s$();ai(o,21,i,r=>r.from,(r,s)=>{var a=r$();let l;var d=_(a),u=_(d),m=E(u,2);let g;v(d),v(a),B((c,$)=>{l=Z(a,1,"video-episode svelte-1u6kv8l",null,l,c),it(a,`left: ${n(s).from}%; width: ${n(s).width}%`),it(u,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),g=Z(m,1,"video-episode-filled svelte-1u6kv8l",null,g,$),it(m,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,a)}),v(o),b(t,o)}function l$(t,e,i,o,r,s,a){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let l=s(t.clientX,t.clientY);a()(l),e().setPointerCapture(t.pointerId)}function d$(t,e,i,o,r,s,a,l){if(t.preventDefault(),e())return;let d=i(t.clientX,t.clientY),u=o(t.clientX);r()(d,u,n(s).width),n(a)&&l()(d)}function c$(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let s=o(t.clientX,t.clientY);r()(s)}function u$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var p$=P("<div></div>"),f$=P('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),m$=P('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),v$={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
167
+ .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function df(t,e){U(t,a$);let i=f(e,"videoEpisodes",19,()=>[]);var o=s$();di(o,21,i,r=>r.from,(r,s)=>{var a=r$();let l;var d=_(a),u=_(d),m=E(u,2);let g;v(d),v(a),B((c,$)=>{l=Z(a,1,"video-episode svelte-1u6kv8l",null,l,c),ot(a,`left: ${n(s).from}%; width: ${n(s).width}%`),ot(u,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),g=Z(m,1,"video-episode-filled svelte-1u6kv8l",null,g,$),ot(m,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,a)}),v(o),b(t,o)}function l$(t,e,i,o,r,s,a){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let l=s(t.clientX,t.clientY);a()(l),e().setPointerCapture(t.pointerId)}function d$(t,e,i,o,r,s,a,l){if(t.preventDefault(),e())return;let d=i(t.clientX,t.clientY),u=o(t.clientX);r()(d,u,n(s).width),n(a)&&l()(d)}function c$(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let s=o(t.clientX,t.clientY);r()(s)}function u$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var p$=A("<div></div>"),f$=A('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),m$=A('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),v$={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
168
168
  /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
169
169
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
170
170
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
171
171
  .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
172
- .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function na(t,e){D(e,!0),U(t,v$);let i=f(e,"ref",15,void 0),o=f(e,"className",3,""),r=f(e,"testId",3,void 0),s=f(e,"isHidden",3,!1),a=f(e,"isVertical",3,!1),l=f(e,"isActiveLive",3,!1),d=f(e,"isMobile",3,!1),u=f(e,"squareBorders",3,!1),m=f(e,"videoEpisodes",19,()=>[]),g=f(e,"withWheelHandler",3,!1),c=f(e,"isInteractive",3,!1),$=f(e,"disabled",3,!1),w=f(e,"hideHandel",3,!1),x=f(e,"onPointerDown",3,Rn),S=f(e,"onHandleMove",3,Rn),C=f(e,"onPointerUp",3,Rn),A=f(e,"onPointerEnter",3,Rn),M=f(e,"onPointerMove",3,Rn),I=f(e,"onPointerLeave",3,Rn),k=f(e,"onMouseEnter",3,Rn),V=f(e,"onMouseLeave",3,Rn),q=f(e,"onWheelUp",3,Rn),z=f(e,"onWheelDown",3,Rn),ie=f(e,"onWheelLeft",3,Rn),oe=f(e,"onWheelRight",3,Rn),me=f(e,"onDisabledClick",3,Rn),Q=f(e,"loadedProgress",3,0),fe=f(e,"filledProgress",3,0),J=f(e,"handleProgress",3,0),Pe=f(e,"ariaLabel",3,""),Le=f(e,"ariaValueMin",3,void 0),Ae=f(e,"ariaValueMax",3,void 0),he=f(e,"ariaValueNow",3,void 0),Ve=f(e,"ariaValueText",3,""),re=Rt(),R=K(void 0),Ye=K(!1),de=h(()=>Ae()??0),Fe=h(()=>wh(m())&&m()[m().length-1]?.time<n(de)),ae=h(()=>wh(m())&&m().length&&n(Fe)&&n(de)?Ne(Q()*100,fe()*100):[]);function ne(Y){if(Y.preventDefault(),i()&&N(R,i().getBoundingClientRect(),!0),$())return;let se=ce(Y.clientX,Y.clientY),De=ee(Y.clientX);A()(se,De,n(R).width)}function Ie(Y){Y.preventDefault(),!$()&&I()()}function G(){k()()}function ze(){V()()}function et(Y){$()||g()&&(Y.preventDefault(),Y.deltaY<0?q()():Y.deltaY>0?z()():Y.deltaX>0?oe()():ie()())}function ce(Y,se){return a()?Math.max(0,Math.min(1,(n(R).height-(se-n(R).top))/n(R).height)):Math.min(Math.max(Y-n(R).x,0),n(R).width)/n(R).width}function ee(Y){return Math.min(Math.max(Y-n(R).x,0),n(R).width)}function Ne(Y,se){let De=re.features.episodesClustering&&!c()?re.episodeMinWidthPc:0,Se=[],xe=m()[0].time/n(de)*100,Je=0,ht=0;for(let He=1;He<m().length;He++)Je=m()[He].time/n(de)*100,Je-xe>De&&(Se.push({from:xe,width:Math.max(0,Je-xe),loadedWidth:Math.max(0,Math.min(Je,Y)-xe),filledWidth:Math.max(0,Math.min(Je,se)-xe),interactive:m()[He-1].interactive,completed:m()[He-1].completed}),xe=m()[He].time/n(de)*100,ht++);let Mt={from:xe,width:Math.max(0,100-xe),loadedWidth:Math.max(0,Math.min(Y,100)-xe),filledWidth:Math.max(0,Math.min(se,100)-xe),interactive:m()[ht].interactive,completed:m()[ht].completed};100-xe<De?(ht-=1,Se[ht].width+=100-xe,Se[ht].loadedWidth+=Math.max(0,Math.min(Y,100)-xe),Se[ht].filledWidth+=Math.max(0,Math.min(se,100)-xe)):Se[ht]=Mt;let Ge=m()[0].time;if(Ge!==0){let He=Ge/n(de)*100;Se.unshift({from:0,width:He,loadedWidth:Math.min(He,Y),filledWidth:Math.min(He,se)})}return Se}function je(Y){return Math.max(0,Math.min(100,Y*100))}var dt=m$(),at=le(dt);{var Tt=Y=>{var se=p$();let De;ai(se,21,()=>n(ae),Se=>Se.from,(Se,xe)=>{var Je=Be(),ht=le(Je);{var Mt=Ge=>{lf(Ge,{get videoEpisode(){return n(xe)},get disabled(){return $()}})};L(ht,Ge=>{n(xe).interactive&&Ge(Mt)})}b(Se,Je)}),v(se),B(Se=>De=Z(se,1,"interactive-icons svelte-1tpemng",null,De,Se),[()=>({mobile:d(),hidden:d()&&!n(Ye)})]),b(Y,se)};L(at,Y=>{c()&&Y(Tt)})}var Ze=E(at,2);let lt;Ze.__pointerdown=[l$,i,R,$,Ye,ce,x],Ze.__pointermove=[d$,$,ce,ee,M,R,Ye,S],Ze.__pointerup=[c$,$,Ye,ce,C],Ze.__click=[u$,$,me,ce];var Nt=_(Ze);{var Ut=Y=>{df(Y,{get videoEpisodes(){return n(ae)},get disabled(){return $()},get isMobile(){return d()}})},qe=Y=>{var se=f$(),De=_(se),Se=E(De,2);let xe;v(se),B((Je,ht,Mt)=>{it(De,Je),xe=Z(Se,1,"filled svelte-1tpemng",null,xe,ht),it(Se,Mt)},[()=>`transform: translateX(${je(Q())}%);`,()=>({"active-live":l()}),()=>`transform: translateX(${je(fe())}%);`]),b(Y,se)};L(Nt,Y=>{n(ae).length?Y(Ut):Y(qe,!1)})}var vt=E(Nt,2);let ke;var St=_(vt);let ve;v(vt),v(Ze),Xe(Ze,Y=>i(Y),()=>i()),B((Y,se,De,Se)=>{lt=Z(Ze,1,`slider ${o()??""}`,"svelte-1tpemng",lt,Y),Me(Ze,"aria-label",Pe()),Me(Ze,"aria-valuemin",Le()),Me(Ze,"aria-valuemax",Ae()),Me(Ze,"aria-valuenow",he()),Me(Ze,"aria-valuetext",Ve()),Me(Ze,"data-testid",r()??null),ke=Z(vt,1,"handleWrap svelte-1tpemng",null,ke,se),it(vt,De),ve=Z(St,1,"handle svelte-1tpemng",null,ve,Se)},[()=>({disabled:$(),"slider-dragging":n(Ye),hidden:s(),"slider-vertical":a(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${je(J())}%);`,()=>({"active-live":l()})]),gt("pointerenter",Ze,ne),gt("pointerleave",Ze,Ie),gt("mouseenter",Ze,G),gt("mouseleave",Ze,ze),gt("wheel",Ze,et),b(t,dt),H()}st(["pointerdown","pointermove","pointerup","click"]);var Ei=(t,e)=>Qs[t]>=Qs[e],Sh=(t,e)=>Qs[t]<Qs[e],ks=(t,e)=>Qs[t]<=Qs[e],Ch=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var g$=P("<div><!></div>"),h$=P("<div><!> <!></div>"),_$={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 cf(t,e){D(e,!0),U(t,_$);let[i,o]=Re(),r=()=>y(A,"$isAudioAvailable$",i),s=()=>y(g,"$muted$",i),a=()=>y(m,"$volume$",i),l=()=>y(x,"$currentGridType$",i),d=we(),u=Rt(),m=d.state.volume$,g=d.state.muted$,{setVolume:c,startVolumeChanging:$,stopVolumeChanging:w}=d.actions.internal,x=d.ui.currentGridType$,S=d.callbacks?.onAudioDoesNotExistHint,C=d.callbacks?.onAudioDisabledHint,A=d.state.isAudioAvailable$,M=d.state.isAudioDisabled,I=d.ui.t,k=K(!1),V,q=h(()=>e.isAds||r()),z=h(()=>!n(q)||s()||a()===0),ie=h(()=>ks(l(),"s")),oe=h(()=>n(ie)?"":n(z)?!r()||M?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),me=h(()=>n(z)?I("tooltip_volume"):I("tooltip_volume_muted")),Q=h(()=>n(z)?0:a()),fe=!1,J=h(()=>e.isAds?!1:M?!C:r()?!1:!S);function Pe(ce){$(),c(ce)}function Le(){Nc(d,a(),u.controls.volumeStepWheel)}function Ae(){Bc(d,a(),u.controls.volumeStepWheel)}function he(ce){c(ce)}function Ve(ce){c(ce),w()}function re(){fe=!0}function R(){fe=!1,Fe()}function Ye(){clearTimeout(V),N(k,!0)}function de(){Fe()}function Fe(){V=window.setTimeout(()=>{fe||N(k,!1)},u.controls.volumeBarTimeout)}function ae(ce){ce.preventDefault(),ce.deltaY<0?Le():ce.deltaY>0&&Ae()}var ne=h$();let Ie;var G=_(ne);oa(G,{get content(){return n(oe)},translateY:-18,children:(ce,ee)=>{let Ne=h(()=>n(ie)?"btn-volume-vertical":"btn-volume-horizontal");Ct(ce,{className:"btn-full-opacity",get disabled(){return n(J)},get testId(){return n(Ne)},get ariaLabel(){return n(me)},get click(){return e.click},get ariaKeyShortCut(){return Wr.KeyM},role:"button",children:(je,dt)=>{Ts(je,{get volume(){return a()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ze=E(G,2);{var et=ce=>{var ee=g$();let Ne;var je=_(ee);let dt=h(()=>n(ie)?"volumeBar-slider-vertical":""),at=h(()=>n(ie)&&!n(k)),Tt=h(()=>n(ie)?re:Dc),Ze=h(()=>n(ie)?R:Dc),lt=h(()=>Math.round(n(Q)*100)),Nt=h(()=>`${Math.round(n(Q)*100)}%`),Ut=h(()=>n(ie)?"volume-slider-vertical":"volume-slider");na(je,{get className(){return n(dt)},get isHidden(){return n(at)},get isVertical(){return n(ie)},withWheelHandler:!0,onWheelUp:Le,onWheelDown:Ae,onPointerDown:Pe,onHandleMove:he,onPointerUp:Ve,get onPointerEnter(){return n(Tt)},get onPointerLeave(){return n(Ze)},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 n(lt)},get ariaValueText(){return n(Nt)},get filledProgress(){return n(Q)},get handleProgress(){return n(Q)},get testId(){return n(Ut)}}),v(ee),B(qe=>Ne=Z(ee,1,"volumeBar svelte-1auih1j",null,Ne,qe),[()=>({"volumeBar-vertical":n(ie)})]),b(ce,ee)};L(ze,ce=>{n(q)&&ce(et)})}v(ne),B(ce=>Ie=Z(ne,1,"volumeBar-container svelte-1auih1j",null,Ie,ce),[()=>({vertical:n(ie)})]),gt("mouseenter",ne,function(...ce){(n(ie)?Ye:Dc)?.apply(this,ce)}),gt("mouseleave",ne,function(...ce){(n(ie)?de:Dc)?.apply(this,ce)}),gt("wheel",ne,ae),b(t,ne),H(),o()}import{noop as y$}from"@vkontakte/videoplayer-shared/evergreen";var b$=$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 uf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=b$();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var $$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function pf(t,e){U(t,$$);let i=f(e,"isFullscreen",8,!1),o=hr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");uf(t,{get"data-testid"(){return n(o)},fill:"var(--btn-color, #fff)"})}function td(t,e){D(e,!0);let i=f(e,"isFullscreen",3,!1),o=f(e,"click",3,y$),r=we(),s=r.ui.isFullscreenOpenedByKeyboard,a=r.ui.t,l=h(()=>i()?a("tooltip_fullscreen_on"):a("tooltip_fullscreen_off"));Ct(t,{testId:"btn-fullscreen",get ariaLabel(){return n(l)},click:u=>{let m=Ss(u);s.set(m),o()()},get ariaKeyShortCut(){return Wr.KeyF},role:"button",children:(u,m)=>{pf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var x$=$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 ff(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=x$();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var w$=$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 mf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=w$();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(4),v(o),b(t,o)}var S$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
172
+ .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function na(t,e){D(e,!0),U(t,v$);let i=f(e,"ref",15,void 0),o=f(e,"className",3,""),r=f(e,"testId",3,void 0),s=f(e,"isHidden",3,!1),a=f(e,"isVertical",3,!1),l=f(e,"isActiveLive",3,!1),d=f(e,"isMobile",3,!1),u=f(e,"squareBorders",3,!1),m=f(e,"videoEpisodes",19,()=>[]),g=f(e,"withWheelHandler",3,!1),c=f(e,"isInteractive",3,!1),$=f(e,"disabled",3,!1),w=f(e,"hideHandel",3,!1),x=f(e,"onPointerDown",3,Bn),S=f(e,"onHandleMove",3,Bn),C=f(e,"onPointerUp",3,Bn),P=f(e,"onPointerEnter",3,Bn),M=f(e,"onPointerMove",3,Bn),I=f(e,"onPointerLeave",3,Bn),k=f(e,"onMouseEnter",3,Bn),V=f(e,"onMouseLeave",3,Bn),q=f(e,"onWheelUp",3,Bn),z=f(e,"onWheelDown",3,Bn),ie=f(e,"onWheelLeft",3,Bn),oe=f(e,"onWheelRight",3,Bn),ve=f(e,"onDisabledClick",3,Bn),Q=f(e,"loadedProgress",3,0),me=f(e,"filledProgress",3,0),J=f(e,"handleProgress",3,0),Pe=f(e,"ariaLabel",3,""),Me=f(e,"ariaValueMin",3,void 0),Ie=f(e,"ariaValueMax",3,void 0),_e=f(e,"ariaValueNow",3,void 0),Re=f(e,"ariaValueText",3,""),re=Lt(),R=K(void 0),Ze=K(!1),ue=h(()=>Ie()??0),Fe=h(()=>wh(m())&&m()[m().length-1]?.time<n(ue)),le=h(()=>wh(m())&&m().length&&n(Fe)&&n(ue)?Be(Q()*100,me()*100):[]);function ne(Y){if(Y.preventDefault(),i()&&N(R,i().getBoundingClientRect(),!0),$())return;let se=de(Y.clientX,Y.clientY),Ve=ee(Y.clientX);P()(se,Ve,n(R).width)}function Ee(Y){Y.preventDefault(),!$()&&I()()}function j(){k()()}function Ue(){V()()}function tt(Y){$()||g()&&(Y.preventDefault(),Y.deltaY<0?q()():Y.deltaY>0?z()():Y.deltaX>0?oe()():ie()())}function de(Y,se){return a()?Math.max(0,Math.min(1,(n(R).height-(se-n(R).top))/n(R).height)):Math.min(Math.max(Y-n(R).x,0),n(R).width)/n(R).width}function ee(Y){return Math.min(Math.max(Y-n(R).x,0),n(R).width)}function Be(Y,se){let Ve=re.features.episodesClustering&&!c()?re.episodeMinWidthPc:0,ke=[],qe=m()[0].time/n(ue)*100,it=0,Ne=0;for(let He=1;He<m().length;He++)it=m()[He].time/n(ue)*100,it-qe>Ve&&(ke.push({from:qe,width:Math.max(0,it-qe),loadedWidth:Math.max(0,Math.min(it,Y)-qe),filledWidth:Math.max(0,Math.min(it,se)-qe),interactive:m()[He-1].interactive,completed:m()[He-1].completed}),qe=m()[He].time/n(ue)*100,Ne++);let ht={from:qe,width:Math.max(0,100-qe),loadedWidth:Math.max(0,Math.min(Y,100)-qe),filledWidth:Math.max(0,Math.min(se,100)-qe),interactive:m()[Ne].interactive,completed:m()[Ne].completed};100-qe<Ve?(Ne-=1,ke[Ne].width+=100-qe,ke[Ne].loadedWidth+=Math.max(0,Math.min(Y,100)-qe),ke[Ne].filledWidth+=Math.max(0,Math.min(se,100)-qe)):ke[Ne]=ht;let Ye=m()[0].time;if(Ye!==0){let He=Ye/n(ue)*100;ke.unshift({from:0,width:He,loadedWidth:Math.min(He,Y),filledWidth:Math.min(He,se)})}return ke}function Xe(Y){return Math.max(0,Math.min(100,Y*100))}var dt=m$(),at=ce(dt);{var Mt=Y=>{var se=p$();let Ve;di(se,21,()=>n(le),ke=>ke.from,(ke,qe)=>{var it=Oe(),Ne=ce(it);{var ht=Ye=>{lf(Ye,{get videoEpisode(){return n(qe)},get disabled(){return $()}})};L(Ne,Ye=>{n(qe).interactive&&Ye(ht)})}b(ke,it)}),v(se),B(ke=>Ve=Z(se,1,"interactive-icons svelte-1tpemng",null,Ve,ke),[()=>({mobile:d(),hidden:d()&&!n(Ze)})]),b(Y,se)};L(at,Y=>{c()&&Y(Mt)})}var je=E(at,2);let lt;je.__pointerdown=[l$,i,R,$,Ze,de,x],je.__pointermove=[d$,$,de,ee,M,R,Ze,S],je.__pointerup=[c$,$,Ze,de,C],je.__click=[u$,$,ve,de];var Bt=_(je);{var zt=Y=>{df(Y,{get videoEpisodes(){return n(le)},get disabled(){return $()},get isMobile(){return d()}})},Qe=Y=>{var se=f$(),Ve=_(se),ke=E(Ve,2);let qe;v(se),B((it,Ne,ht)=>{ot(Ve,it),qe=Z(ke,1,"filled svelte-1tpemng",null,qe,Ne),ot(ke,ht)},[()=>`transform: translateX(${Xe(Q())}%);`,()=>({"active-live":l()}),()=>`transform: translateX(${Xe(me())}%);`]),b(Y,se)};L(Bt,Y=>{n(le).length?Y(zt):Y(Qe,!1)})}var gt=E(Bt,2);let Se;var Pt=_(gt);let ge;v(gt),v(je),Je(je,Y=>i(Y),()=>i()),B((Y,se,Ve,ke)=>{lt=Z(je,1,`slider ${o()??""}`,"svelte-1tpemng",lt,Y),Ae(je,"aria-label",Pe()),Ae(je,"aria-valuemin",Me()),Ae(je,"aria-valuemax",Ie()),Ae(je,"aria-valuenow",_e()),Ae(je,"aria-valuetext",Re()),Ae(je,"data-testid",r()??null),Se=Z(gt,1,"handleWrap svelte-1tpemng",null,Se,se),ot(gt,Ve),ge=Z(Pt,1,"handle svelte-1tpemng",null,ge,ke)},[()=>({disabled:$(),"slider-dragging":n(Ze),hidden:s(),"slider-vertical":a(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${Xe(J())}%);`,()=>({"active-live":l()})]),bt("pointerenter",je,ne),bt("pointerleave",je,Ee),bt("mouseenter",je,j),bt("mouseleave",je,Ue),bt("wheel",je,tt),b(t,dt),H()}st(["pointerdown","pointermove","pointerup","click"]);var Ei=(t,e)=>Qs[t]>=Qs[e],Sh=(t,e)=>Qs[t]<Qs[e],ks=(t,e)=>Qs[t]<=Qs[e],Ch=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var g$=A("<div><!></div>"),h$=A("<div><!> <!></div>"),_$={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 cf(t,e){D(e,!0),U(t,_$);let[i,o]=Le(),r=()=>y(P,"$isAudioAvailable$",i),s=()=>y(g,"$muted$",i),a=()=>y(m,"$volume$",i),l=()=>y(x,"$currentGridType$",i),d=xe(),u=Lt(),m=d.state.volume$,g=d.state.muted$,{setVolume:c,startVolumeChanging:$,stopVolumeChanging:w}=d.actions.internal,x=d.ui.currentGridType$,S=d.callbacks?.onAudioDoesNotExistHint,C=d.callbacks?.onAudioDisabledHint,P=d.state.isAudioAvailable$,M=d.state.isAudioDisabled,I=d.ui.t,k=K(!1),V,q=h(()=>e.isAds||r()),z=h(()=>!n(q)||s()||a()===0),ie=h(()=>ks(l(),"s")),oe=h(()=>n(ie)?"":n(z)?!r()||M?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),ve=h(()=>n(z)?I("tooltip_volume"):I("tooltip_volume_muted")),Q=h(()=>n(z)?0:a()),me=!1,J=h(()=>e.isAds?!1:M?!C:r()?!1:!S);function Pe(de){$(),c(de)}function Me(){Nc(d,a(),u.controls.volumeStepWheel)}function Ie(){Bc(d,a(),u.controls.volumeStepWheel)}function _e(de){c(de)}function Re(de){c(de),w()}function re(){me=!0}function R(){me=!1,Fe()}function Ze(){clearTimeout(V),N(k,!0)}function ue(){Fe()}function Fe(){V=window.setTimeout(()=>{me||N(k,!1)},u.controls.volumeBarTimeout)}function le(de){de.preventDefault(),de.deltaY<0?Me():de.deltaY>0&&Ie()}var ne=h$();let Ee;var j=_(ne);oa(j,{get content(){return n(oe)},translateY:-18,children:(de,ee)=>{let Be=h(()=>n(ie)?"btn-volume-vertical":"btn-volume-horizontal");kt(de,{className:"btn-full-opacity",get disabled(){return n(J)},get testId(){return n(Be)},get ariaLabel(){return n(ve)},get click(){return e.click},get ariaKeyShortCut(){return Wr.KeyM},role:"button",children:(Xe,dt)=>{Ts(Xe,{get volume(){return a()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ue=E(j,2);{var tt=de=>{var ee=g$();let Be;var Xe=_(ee);let dt=h(()=>n(ie)?"volumeBar-slider-vertical":""),at=h(()=>n(ie)&&!n(k)),Mt=h(()=>n(ie)?re:Dc),je=h(()=>n(ie)?R:Dc),lt=h(()=>Math.round(n(Q)*100)),Bt=h(()=>`${Math.round(n(Q)*100)}%`),zt=h(()=>n(ie)?"volume-slider-vertical":"volume-slider");na(Xe,{get className(){return n(dt)},get isHidden(){return n(at)},get isVertical(){return n(ie)},withWheelHandler:!0,onWheelUp:Me,onWheelDown:Ie,onPointerDown:Pe,onHandleMove:_e,onPointerUp:Re,get onPointerEnter(){return n(Mt)},get onPointerLeave(){return n(je)},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 n(lt)},get ariaValueText(){return n(Bt)},get filledProgress(){return n(Q)},get handleProgress(){return n(Q)},get testId(){return n(zt)}}),v(ee),B(Qe=>Be=Z(ee,1,"volumeBar svelte-1auih1j",null,Be,Qe),[()=>({"volumeBar-vertical":n(ie)})]),b(de,ee)};L(Ue,de=>{n(q)&&de(tt)})}v(ne),B(de=>Ee=Z(ne,1,"volumeBar-container svelte-1auih1j",null,Ee,de),[()=>({vertical:n(ie)})]),bt("mouseenter",ne,function(...de){(n(ie)?Ze:Dc)?.apply(this,de)}),bt("mouseleave",ne,function(...de){(n(ie)?ue:Dc)?.apply(this,de)}),bt("wheel",ne,le),b(t,ne),H(),o()}import{noop as y$}from"@vkontakte/videoplayer-shared/evergreen";var b$=ye('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function uf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=b$();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var $$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function pf(t,e){U(t,$$);let i=f(e,"isFullscreen",8,!1),o=hr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");uf(t,{get"data-testid"(){return n(o)},fill:"var(--btn-color, #fff)"})}function td(t,e){D(e,!0);let i=f(e,"isFullscreen",3,!1),o=f(e,"click",3,y$),r=xe(),s=r.ui.isFullscreenOpenedByKeyboard,a=r.ui.t,l=h(()=>i()?a("tooltip_fullscreen_on"):a("tooltip_fullscreen_off"));kt(t,{testId:"btn-fullscreen",get ariaLabel(){return n(l)},click:u=>{let m=Ss(u);s.set(m),o()()},get ariaKeyShortCut(){return Wr.KeyF},role:"button",children:(u,m)=>{pf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var x$=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function ff(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=x$();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var w$=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function mf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=w$();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(4),v(o),b(t,o)}var S$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
174
174
  svg[data-testid="vk-video-logo-icon--short"] ._en,
175
175
  svg[data-testid="vk-video-logo-icon"] ._en,
176
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function vf(t,e){U(t,S$);let i=f(e,"short",3,!1),o=f(e,"isCyrillic",3,!0),r="vk-video-logo-icon--short",s=21,a=h(()=>!o()&&!i()?91:i()?s:95),l=h(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?r:"vk-video-logo-icon"),d=h(()=>`0 0 ${n(a)+1} 24`);mf(t,{get width(){return n(a)},height:"24",get viewBox(){return n(d)},get"data-testid"(){return n(l)}})}function id(t,e){D(e,!0);let[i,o]=Re(),r=()=>y($,"$isMobile",i),s=()=>y(c,"$currentGridType$",i),a=()=>y(x,"$isCyrillicRelatedInterface$",i),l=f(e,"ref",15,void 0),d=f(e,"logoClickable",3,!1),u=f(e,"targetUrl",3,""),m=Rt(),g=we(),c=g.ui.currentGridType$,$=g.ui.isMobile,w=g.ui.t,x=g.isCyrillicRelatedInterface$,S=h(()=>m.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),C=h(()=>m.logoType==="vk_video"||m.logoType==="vk_video_mobile"),A=h(()=>(r()||ks(s(),"l"))&&n(C)),M=()=>{e.click(),g.callbacks?.onLogoClicked?g.callbacks?.onLogoClicked():u()&&window.open(u(),"_blank")},I=h(()=>!d()),k=h(()=>n(C)?"btn-vk-video-logo":"btn-vk-logo");Ct(t,{className:"btn-full-opacity",get disabled(){return n(I)},click:M,get testId(){return n(k)},get ariaLabel(){return n(S)},get ref(){return l()},set ref(V){l(V)},children:(V,q)=>{var z=Be(),ie=le(z);{var oe=Q=>{vf(Q,{get short(){return n(A)},get isCyrillic(){return a()}})},me=Q=>{ff(Q,{})};L(ie,Q=>{n(C)?Q(oe):Q(me,!1)})}b(V,z)},$$slots:{default:!0}}),H(),o()}import{ChromecastState as I$}from"@vkontakte/videoplayer-core/evergreen";import{ChromecastState as Th}from"@vkontakte/videoplayer-core/evergreen";var T$=$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>'),k$=$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>'),E$={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
176
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function vf(t,e){U(t,S$);let i=f(e,"short",3,!1),o=f(e,"isCyrillic",3,!0),r="vk-video-logo-icon--short",s=21,a=h(()=>!o()&&!i()?91:i()?s:95),l=h(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?r:"vk-video-logo-icon"),d=h(()=>`0 0 ${n(a)+1} 24`);mf(t,{get width(){return n(a)},height:"24",get viewBox(){return n(d)},get"data-testid"(){return n(l)}})}function id(t,e){D(e,!0);let[i,o]=Le(),r=()=>y($,"$isMobile",i),s=()=>y(c,"$currentGridType$",i),a=()=>y(x,"$isCyrillicRelatedInterface$",i),l=f(e,"ref",15,void 0),d=f(e,"logoClickable",3,!1),u=f(e,"targetUrl",3,""),m=Lt(),g=xe(),c=g.ui.currentGridType$,$=g.ui.isMobile,w=g.ui.t,x=g.isCyrillicRelatedInterface$,S=h(()=>m.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),C=h(()=>m.logoType==="vk_video"||m.logoType==="vk_video_mobile"),P=h(()=>(r()||ks(s(),"l"))&&n(C)),M=()=>{e.click(),g.callbacks?.onLogoClicked?g.callbacks?.onLogoClicked():u()&&window.open(u(),"_blank")},I=h(()=>!d()),k=h(()=>n(C)?"btn-vk-video-logo":"btn-vk-logo");kt(t,{className:"btn-full-opacity",get disabled(){return n(I)},click:M,get testId(){return n(k)},get ariaLabel(){return n(S)},get ref(){return l()},set ref(V){l(V)},children:(V,q)=>{var z=Oe(),ie=ce(z);{var oe=Q=>{vf(Q,{get short(){return n(P)},get isCyrillic(){return a()}})},ve=Q=>{ff(Q,{})};L(ie,Q=>{n(C)?Q(oe):Q(ve,!1)})}b(V,z)},$$slots:{default:!0}}),H(),o()}import{ChromecastState as I$}from"@vkontakte/videoplayer-core/evergreen";import{ChromecastState as Th}from"@vkontakte/videoplayer-core/evergreen";var T$=ye('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),k$=ye('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),E$={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
177
177
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
178
178
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
179
179
  animation-name: svelte-8z1bf5-wave3;}
@@ -221,9 +221,9 @@ Try switching the\xA0quality to\xA0Auto.`},Xg=U0;var rs=new Map;rs.set(eh.EN,Xg)
221
221
  100% {
222
222
  opacity: 1;
223
223
  }
224
- }`};function gf(t,e){D(e,!0),U(t,E$);let i=f(e,"isMobile",3,!1),o=h(()=>e.iconState===Th.CONNECTED),r=h(()=>e.iconState===Th.CONNECTING);var s=Be(),a=le(s);{var l=u=>{var m=T$(),g=_(m),c=_(g),$=_(c);be(),v(c);var w=E(c);be(),v(g);var x=E(g),S=_(x),C=_(S);v(S),be(),v(x),v(m),B(()=>{Me($,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Me(w,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Me(C,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,m)},d=u=>{var m=k$();let g;var c=_(m),$=E(_(c),5);let w;v(c),v(m),B((x,S)=>{g=Z(m,0,"svelte-8z1bf5",null,g,x),w=Z($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:n(r)}),()=>({hidden:!n(o)})]),b(u,m)};L(a,u=>{i()?u(l):u(d,!1)})}b(t,s),H()}import{noop as A$}from"@vkontakte/videoplayer-shared/evergreen";function od(t,e){D(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),r=f(e,"click",3,A$),a=we().ui.t,l=h(()=>e.state===I$.CONNECTED?a("tooltip_chromecast_on"):a("tooltip_chromecast_off"));Ct(t,{get ariaLabel(){return n(l)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(d){i(d)},children:(d,u)=>{gf(d,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var P$=P('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),M$={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 hf(t,e){U(t,M$);let i=f(e,"active",3,!1),o=f(e,"pointer",3,!1),r=f(e,"translateXPx",3,0),s=f(e,"translateYPx",3,0),a=f(e,"leftOffset",3,0),l=f(e,"rightOffset",3,0),d=K(void 0),u=K(void 0);function m(S){if(!n(u))return 0;let{width:C}=n(u).getBoundingClientRect(),A=C/2;return S<A?A+a():S>e.containerWidth-A?e.containerWidth-A-l():S}let g=h(()=>m(r()));var c=P$(),$=_(c);let w;var x=_($);pe(x,()=>e.children??X),v($),Xe($,S=>N(u,S),()=>n(u)),v(c),Xe(c,S=>N(d,S),()=>n(d)),B(S=>{it(c,`transform: translate(${n(g)}px, ${s()}px);`),w=Z($,1,"tooltip svelte-5ygsa2",null,w,S),it($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,c)}var Hc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var kh=t=>!!(Math.round(Math.abs(t)/90)%2),Eh=t=>Math.abs(t)/90%4===1;var L$=P('<div class="preview svelte-1wqg760"></div>'),R$=P('<div class="time svelte-1wqg760"> </div>'),V$=P('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),N$={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 _f(t,e){D(e,!0),U(t,N$);let[i,o]=Re(),r=()=>y(w,"$rotateAlpha",i),s=()=>y(x,"$playerSize",i),a={MOBILE:150,DESKTOP:278},l=f(e,"time",3,""),d=f(e,"isMobile",3,!1),u=f(e,"videoEpisodes",19,()=>[]),m=f(e,"progress",3,0),g=f(e,"duration",3,0),c=f(e,"isInteractive",3,!1),$=we(),w=$.ui.rotateAlpha,x=$.ui.playerSize,S=K(0),C=K(0),A=K(""),M=K(0),I=K(0),k=K(0),V=K(0),q=h(()=>Hc(m(),g(),u())),z=h(()=>kh(r())),ie=h(()=>Eh(r())),oe=h(fe),me=h(()=>(n(ie)?1:-1)*(n(S)/2-n(C)/2)),Q=h(()=>n(me)*-1);Oe(()=>{(ne=>{N(S,ne.width,!0),N(C,ne.height,!0)})(Pe())}),Oe(()=>{(ne=>{N(A,ne.imgSrc,!0),N(M,ne.imgWidth,!0),N(I,ne.imgHeight,!0),N(k,ne.imgOffsetX,!0),N(V,ne.imgOffsetY,!0)})(Le(m()))});function fe(){let ne=d()?a.MOBILE:a.DESKTOP,{isVertical:Ie}=J(),G=30;return n(q)?.text&&(G+=16),(Ie||n(z))&&(G+=18,G+=50),Math.min(Math.max(s().height-G,0),ne)}function J(){let ne=e.previewThumbsData.frameWidth,Ie=e.previewThumbsData.frameHeight,G=Ie>ne;return{width:ne,height:Ie,isHorizontal:!G,isVertical:G}}function Pe(){let{height:ne,isHorizontal:Ie,isVertical:G,width:ze}=J();return Ie&&(ne=ne/ze*n(oe),ze=n(oe)),G&&(ze=ze/ne*n(oe),ne=n(oe)),{width:ze,height:ne}}function Le(ne){let Ie;e.previewThumbsData.isUV?Ie=Math.floor(g()*ne/e.previewThumbsData.frequency):Ie=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ne)));let G=Math.floor(Ie/e.previewThumbsData.countPerImage),ze=Math.floor(Ie%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),et=Ie%e.previewThumbsData.countPerRow,ce=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&G===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ce=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ce++);let ee=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&G===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ee=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ne=n(S)*ee,je=n(C)*ce,dt=-et*n(S),at=-ze*n(C);return{imgSrc:e.previewThumbsData.links[G],imgWidth:Ne,imgHeight:je,imgOffsetX:dt,imgOffsetY:at}}var Ae=V$();let he;var Ve=_(Ae);{var re=ne=>{var Ie=L$();B(()=>it(Ie,`width: ${n(S)}px; height: ${n(C)}px; background-image: url(${n(A)}); background-size: ${n(M)}px ${n(I)}px; background-position: ${n(k)}px ${n(V)}px;
225
- transform: rotate(${r()}deg) ${n(z)?`translate(${n(me)}px, ${n(Q)}px)`:""};
226
- `)),b(ne,Ie)};L(Ve,ne=>{n(A)&&ne(re)})}var R=E(Ve,2),Ye=_(R);{var de=ne=>{var Ie=Be(),G=le(Ie);{var ze=ce=>{var ee=Ur();B(Ne=>ue(ee,Ne),[()=>F("tooltip_episode_unfinished")]),b(ce,ee)},et=ce=>{var ee=Ur();B(()=>ue(ee,n(q).text||"")),b(ce,ee)};L(G,ce=>{c()&&n(q).completed===!1?ce(ze):ce(et,!1)})}b(ne,Ie)};L(Ye,ne=>{n(q)&&ne(de)})}v(R);var Fe=E(R,2);{var ae=ne=>{var Ie=R$(),G=_(Ie,!0);v(Ie),B(()=>ue(G,l())),b(ne,Ie)};L(Fe,ne=>{c()||ne(ae)})}v(Ae),B(ne=>{he=Z(Ae,1,"timeline-preview svelte-1wqg760",null,he,ne),it(Ae,`width: ${n(z)?n(C):n(S)}px;`)},[()=>({mobile:d()})]),b(t,Ae),H(),o()}var B$=P('<span class="time svelte-1jr6obn"> </span>'),O$=P("<!> <!>",1),D$={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 bf(t,e){D(e,!0),U(t,D$);let[i,o]=Re(),r=()=>y(me,"$interactiveEpisodes$",i),s=()=>y(k,"$duration$",i),a=()=>y(I,"$position$",i),l=()=>y(J,"$isInteractiveExpectation$",i),d=()=>y(fe,"$isInteractiveTime$",i),u=()=>y(V,"$isLive$",i),m=()=>y(z,"$isMobile",i),g=()=>y(q,"$isActiveLive$",i),c=()=>y(M,"$bufferedProgress$",i),$=()=>y(Ae,"$disabledControls$",i),w=f(e,"showTimeline",3,!1),x=f(e,"withEpisodes",3,!0),S=f(e,"ref",15,void 0),C=we(),A=Rt(),M=C.state.bufferedProgress$,I=C.state.positionWithScrubbing$,k=C.state.duration$,V=C.state.isLive$,q=C.state.isActiveLive$,z=C.ui.isMobile,ie=A.features.episodes&&x()?C.actions.internal.getVideoEpisodes():void 0,oe=C.actions.internal.getPreviewThumbsData(),me=C.state.interactiveEpisodes$,Q=C.state.isInteractive,fe=C.state.isInteractiveTime$,J=C.state.isInteractiveExpectation$,Pe=C.actions.internal.correctSeekTimeToInteractive,Le=C.callbacks?.onDisabledTimelineClick,Ae=C.ui.controls.disabledControls$,he=C.callbacks?.uiInfo?.onTimelineMouseEnter,Ve=C.callbacks?.uiInfo?.onTimelineMouseLeave,re=C.ui.t,R=A.features.interactiveResponsiveUi,Ye=h(()=>Q?r():ie),de=h(()=>zo(s())),Fe=h(()=>zo(a())),ae=h(()=>a()/s()),ne=h(()=>l()||d()),Ie=K(!1),G=K(""),ze=K(0),et=K(0),ce=K(0),ee=h(()=>({containerWidth:n(et),translateXPx:n(ze),translateYPx:Q&&oe?-36:-16,active:n(Ie)&&w()&&!n(ne)&&!R,pointer:!A.features.timelinePreview||!oe||u()})),Ne=re("aria_timeline"),je=h(()=>re("aria_timeline_value",{position:n(Fe),duration:n(de)}));function dt(se){return!Pe||!Q?se:Pe(se*s())/s()}function at(se){C.actions.internal.startScrubbing(dt(se))}function Tt(se){d()||C.actions.internal.progressScrubbing(dt(se))}function Ze(se){C.actions.internal.completeScrubbing(dt(se)),N(Ie,!1)}function lt(se,De,Se){qe(se,De,Se),N(Ie,!0)}function Nt(se,De,Se){qe(se,De,Se),N(Ie,!0)}function Ut(){N(Ie,!1)}function qe(se,De,Se){N(ce,dt(se),!0),N(ze,De,!0),Se&&N(et,Se,!0),N(G,vt(se),!0)}function vt(se){let De=zo((u()?1-se:se)*s());return u()?`-${De}`:De}var ke=O$(),St=le(ke);hf(St,ns(()=>n(ee),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(se,De)=>{var Se=Be(),xe=le(Se);{var Je=Mt=>{_f(Mt,{get time(){return n(G)},get isMobile(){return m()},get videoEpisodes(){return n(Ye)},get previewThumbsData(){return oe},get progress(){return n(ce)},get duration(){return s()},get isInteractive(){return Q}})},ht=Mt=>{var Ge=B$(),He=_(Ge,!0);v(Ge),B(()=>ue(He,n(G))),b(Mt,Ge)};L(xe,Mt=>{A.features.timelinePreview&&oe&&!u()?Mt(Je):Mt(ht,!1)})}b(se,Se)},$$slots:{default:!0}}));var ve=E(St,2);let Y=h(()=>$().has("TIMELINE"));na(ve,{className:"timeline-slider",get isActiveLive(){return g()},get isMobile(){return m()},get ariaLabel(){return Ne},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return a()},get ariaValueText(){return n(je)},get loadedProgress(){return c()},get filledProgress(){return n(ae)},get handleProgress(){return n(ae)},get videoEpisodes(){return n(Ye)},onPointerDown:at,onHandleMove:Tt,onPointerMove:Nt,onPointerUp:Ze,onPointerEnter:lt,onPointerLeave:Ut,get onMouseEnter(){return he},get onMouseLeave(){return Ve},get onDisabledClick(){return Le},get isInteractive(){return Q},get disabled(){return n(Y)},get hideHandel(){return d()},testId:"progress_bar",get ref(){return S()},set ref(se){S(se)}}),b(t,ke),H(),o()}var H$={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function nd(t,e){D(e,!0),U(t,H$);let[i,o]=Re(),r=()=>y(d,"$isMobile",i),s=f(e,"position",3,0),a=f(e,"duration",3,0),l=we(),d=l.ui.isMobile,u=l.ui.t,m=h(()=>zo(a())),g=h(()=>zo(s())),c=h(()=>s()/a()),$=h(()=>u("aria_timeline_value",{position:n(g),duration:n(m)})),w=h(()=>Math.round(n(c)*100));na(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return n(w)},get ariaValueText(){return n($)},get filledProgress(){return n(c)},hideHandel:!0,get squareBorders(){return r()}}),H(),o()}var F$=P("<div><!></div>"),U$=P("<div></div>"),z$={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 ra(t,e){D(e,!0),U(t,z$);let[i,o]=Re(),r=()=>y($,"$isLive$",i),s=()=>y(S,"$isMobile",i),a=()=>y(x,"$adPosition",i),l=()=>y(w,"$adDuration",i),d=f(e,"isAds",3,!1),u=f(e,"isHidden",3,!1),m=f(e,"needPadding",3,!0),g=f(e,"ref",15,void 0),c=we(),$=c.state.isLive$,w=c.ads.duration,x=c.ads.position,S=c.ui.isMobile,C=h(()=>!u()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||d()));var A=Be(),M=le(A);{var I=V=>{var q=F$();let z;var ie=_(q);{var oe=Q=>{nd(Q,{get position(){return a()},get duration(){return l()}})},me=Q=>{bf(Q,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(C)},get withEpisodes(){return e.withEpisodes},get ref(){return g()},set ref(fe){g(fe)}})};L(ie,Q=>{d()?Q(oe):Q(me,!1)})}v(q),B(Q=>z=Z(q,1,"timeline svelte-41cp6d",null,z,Q),[()=>({withoutPadding:!m(),mobile:s()})]),b(V,q)},k=V=>{var q=U$();let z;B(ie=>z=Z(q,1,"timeline-stub svelte-41cp6d",null,z,ie),[()=>({mobile:s()})]),b(V,q)};L(M,V=>{n(C)?V(I):V(k,!1)})}b(t,A),H(),o()}import{noop as K$}from"@vkontakte/videoplayer-shared/evergreen";var W$=$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 $f(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=W$();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(3),v(o),b(t,o)}var q$=$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 yf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=q$();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var Q$=P('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),G$=P('<span class="text svelte-1yhs2ga"> </span>'),j$=P('<span class="text count svelte-1yhs2ga"> </span>'),Y$=P("<!> <!>",1),Z$={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function rd(t,e){D(e,!0),U(t,Z$);let[i,o]=Re(),r=()=>y(w,"$currentGridType$",i),s=()=>y(x,"$openedByKeyboard$",i),a=()=>y(S,"$panelOpened$",i),l=()=>y(C,"$isMobile",i),d=f(e,"position",3,0),u=f(e,"duration",3,0),m=f(e,"timeCodes",19,()=>[]),g=we(),c=g.callbacks?.onEpisodeChanged??K$,$=!!g.callbacks?.onEpisodeClicked,w=g.ui.currentGridType$,x=g.ui.episodes.openedByKeyboard$,S=g.ui.episodes.panelOpened$,C=g.ui.isMobile,A=g.ui.t,M=K(void 0),I=J=>{if(!!g.callbacks?.onEpisodeClicked){let Le=Ss(J);x.set(Le),S.set(!0),g.callbacks?.onEpisodeClicked?.(Le)}},k=K(null),V=h(()=>d()/u());Oe(()=>{let J=Hc(n(V),u(),m());J?n(k)?.time!==J.time&&(c(J),N(k,J,!0)):N(k,null)});let q=h(()=>n(k)?.text||""),z=h(()=>Ei(r(),"xl")?"FULL":Ei(r(),"m")&&Sh(r(),"xl")?"COUNT":"SHORT"),ie=h(()=>`${A("tooltip_episodes")}: ${n(q)}`),oe=async(J,Pe,Le)=>{await io(),J?.getAttribute("aria-expanded")==="false"&&Pe&&!Le&&_t(()=>{x.set(!1),J.focus()})};Oe(()=>{oe(n(M),s(),a())});var me=Be(),Q=le(me);{var fe=J=>{let Pe=h(()=>l()?"px-0":""),Le=h(()=>!$);Ct(J,{get className(){return`w-max btn-full-opacity btn-jc-l ${n(Pe)??""}`},testId:"btn-episodes",click:I,get disabled(){return n(Le)},get ariaExpanded(){return a()},get ariaLabel(){return n(ie)},get ref(){return n(M)},set ref(Ae){N(M,Ae,!0)},children:(Ae,he)=>{var Ve=Be(),re=le(Ve);{var R=de=>{var Fe=Q$(),ae=le(Fe),ne=_(ae,!0);v(ae);var Ie=E(ae,2),G=_(Ie);yf(G,{}),v(Ie),B(()=>ue(ne,n(q))),b(de,Fe)},Ye=de=>{var Fe=Y$(),ae=le(Fe);$f(ae,{});var ne=E(ae,2);{var Ie=ze=>{var et=G$(),ce=_(et,!0);v(et),B(()=>ue(ce,n(q))),b(ze,et)},G=(ze,et)=>{{var ce=ee=>{var Ne=j$(),je=_(Ne,!0);v(Ne),B(()=>ue(je,m().length)),b(ee,Ne)};L(ze,ee=>{n(z)==="COUNT"&&ee(ce)},et)}};L(ne,ze=>{n(z)==="FULL"?ze(Ie):ze(G,!1)})}b(de,Fe)};L(re,de=>{l()?de(R):de(Ye,!1)})}b(Ae,Ve)},$$slots:{default:!0}})};L(Q,J=>{n(k)&&J(fe)})}b(t,me),H(),o()}import{debounceFn as Uh}from"@vkontakte/videoplayer-shared/evergreen";import{ChromecastState as ry,PlaybackState as sd,Player as sy,PredefinedQualityLimits as Qr,VideoFormat as ad,clientChecker as ay}from"@vkontakte/videoplayer-core/evergreen";import{assertNonNullable as Vn,getHighestQuality as ly,InterfaceLanguage as dy,isInvariantQuality as cy,isNonNullable as uy,loadVKLangPack as py,Logger as fy,map as Vh,merge as my,Observable as Nh,Subject as jc,Subscription as kf,TracerFactory as vy,ValueSubject as gy,VideoQuality as hy,devNull as _y,now as by,filter as $y,once as yy}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as ls}from"@vkontakte/videoplayer-statistics/evergreen";import{detectEmbed as X$,devNull as Dt,now as Ht}from"@vkontakte/videoplayer-shared/evergreen";import{addScript as J$,Subject as Po,clearVideoElement as ey}from"@vkontakte/videoplayer-shared/evergreen";var Ih=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var ty="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Fc=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new Po,loadStarted$:new Po,loadEnded$:new Po,loadError$:new Po,ready$:new Po,slotRequested$:new Po,started$:new Po,timeRemained$:new Po,paused$:new Po,resumed$:new Po,ended$:new Po,empty$:new Po,skipped$:new Po,clicked$:new Po,closed$:new Po,error$:new Po};this.loadAdman=e=>(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Ht()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Ht()]}),i(),this.events.loadEnded$.next()):(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Ht()]}),o())};J$(ty,e,this.loadTimeout).then(()=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Ht()]}),window.AdmanHTML?(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Ht()]}),i(),this.events.loadEnded$.next()):(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Ht()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(a=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(a)],numbers:[Ht()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Ht()]}),i(),this.events.loadEnded$.next()):(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Ht()]}),o())},a=()=>{l=!0,o()},l=!1,d=window.setTimeout(()=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Ht()]}),a()},this.loadTimeout);e.addEventListener("abort",a),e.aborted&&(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Ht()]}),a()),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(l)],numbers:[Ht()]}),!l&&(window.AdmanHTML?(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Ht()]}),i(),this.events.loadEnded$.next()):(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Ht()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout)))},a).finally(()=>{clearTimeout(r),clearTimeout(d),e.removeEventListener("abort",a)})});this.onAdsReady=()=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Ht()]}),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:[Ht(),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"}),ge(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:[Ht()]}),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:[Ht()]}),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:[Ht()]}),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:[Ht()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",this.currentAdSection??""],numbers:[Ht()]}),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:[Ht()]}),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:[Ht()]}),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:[Ht()]}),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:[Ht()]}),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(Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Ht(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:r,isAutoplay:s,adsContainer:a,adsVideoElement:l,slotId:d,params:u={},duration:m,previewParam:g}=e,c,$=this.playerState&&ge(this.playerState.vsid);$&&(this.isVsidOriginal?c=$:c=parseInt($,36));let{isEmbed:w,immediateOrigin:x}=X$(),S=(w?x:window.location.href)??window.location.href,C={...u,dl:encodeURIComponent(S),autoplay:s?1:0,player_width:i,player_height:o,preview:g,...c?{request_id:c}:{},duration:m,puid10:Ih(i,o),puid11:r?0:1};g||delete C.preview;let A={slot:d,wrapper:a,videoEl:l,videoQuality:o,params:C,browser:{mobile:!1}};try{let M=new window.AdmanHTML;M.setDebug(!1),M.onReady(this.onAdsReady),M.onStarted(this.onAdStarted),M.onPlayed(this.onAdPlayed),M.onPaused(this.onAdPaused),M.adMidrollPoint(this.onAdMidrollPoint),M.onClosed(this.onAdClosed),M.onSkipped(this.onAdSkipped),M.onClicked(this.onAdClicked),M.onTimeRemained(this.onAdTimeRemained),M.onCompleted(this.onAdCompleted),M.onError(this.onAdError),M.init(A),this.adman=M,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(A)}`})}catch(M){Dt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(M)],numbers:[Ht()]}),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:[Ht()]}),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:[Ht()]}),this.adsState){this.log({message:"toggle play"});let e=ge(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:[Ht()]}),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:[Ht()]}),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:[Ht()]}),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:[Ht()]}),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:[Ht()]}),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:[Ht()]}),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&&ey(this.videoElement),this.isDestroyed=!0}};var Ah=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 xf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let s of r){let a={startTime:0,endTime:0,texts:[],lang:i},l=s.split(this.oneLineRegExp);for(let d of l)if(!a.startTime&&!a.endTime){let u=new Uc,{startTime:m,endTime:g}=u.parse(d);a.startTime=m,a.endTime=g}else if(d.trim()!==""){let u=new wf,{texts:m}=u.parse(d);a.texts=[...a.texts,...m]}(a.startTime||a.endTime)&&a.texts.length>0&&o.push(a)}return o}},Uc=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let s=Number(e)*60*60,a=Number(i)*60,l=Number(o),d=+`0.${r}`;return s+a+l+d}},wf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](a){let l=0,d=[];for(;l<a.length;){let u=["<",">"].reduce((m,g)=>{let c=a.indexOf(g,l);return m===-1||m>c?c:m},-1);if(u===-1){d.push(a.substring(l));break}d.push(a.substring(l,u)),l=u+1}return d}}),s=new Uc;for(let a of r)s.isTime(a)?i.texts.push({type:"timestamp",value:s.parseTime(a)}):i.texts.push({type:"text",value:a});return i}},Ph=xf;import{isNonNullable as Sf}from"@vkontakte/videoplayer-shared/evergreen";var sa,ir,Cf=0,Tf=!1,Mh="",Lh=(t,e=0,i=0)=>t<e&&t<i,zc=(t,e=0,i=0)=>t>=e&&t<=i,iy=(t,e=0,i=0)=>t>e&&t>i,Rh=(t,e,i,o=!1)=>{let r=i.find(({id:l})=>l===e.value)?.subtitles;if(o)return r?.find(({startTime:d,endTime:u})=>zc(t,d,u));let s=t>=Cf,a=t<Cf;if(Cf=t,a&&(Tf=!1),Sf(sa)&&zc(t,sa.startTime,sa.endTime)&&Mh===e.value)return sa;if(!Sf(ir)&&r?.length&&!Tf){ir=r.find(({startTime:d,endTime:u})=>zc(t,d,u)||s&&Lh(t,d,u)),sa=void 0,!Sf(ir)&&r[r.length-1].endTime<t&&(Tf=!0);return}else{if(zc(t,ir?.startTime,ir?.endTime))return sa=ir,ir=void 0,Mh=e.value,sa;(s&&iy(t,ir?.startTime,ir?.endTime)||a&&Lh(t,ir?.startTime,ir?.endTime))&&(ir=void 0)}};var Wc={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},oy={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},qc=t=>Wc[t]??Wc[oy[t]]??void 0;import{Subscription as ny}from"@vkontakte/videoplayer-shared/evergreen";import"@vkontakte/videoplayer-statistics/evergreen";var Kc=class{constructor(e,i,o=new ny){this.oneStat=e;this.thinOneStat=i;this.statSubscription=o}destroy(){this.oneStat?.destroy(),this.thinOneStat?.destroy(),this.statSubscription.unsubscribe()}};var Qc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Qc||{});var Kr=t=>t??0,as=(t,e)=>{let i=t?.getBoundingClientRect?.(),o=e?.getBoundingClientRect?.();return{top:Math.round(Kr(i?.top)-Kr(o?.top)),left:Math.round(Kr(i?.left)-Kr(o?.left)),bottom:Math.round(Kr(i?.bottom)-Kr(o?.top)),right:Math.round(Kr(i?.right)-Kr(o?.left))}},Qa=t=>{let e=t?.getBoundingClientRect?.();return{width:Kr(e?.width),height:Kr(e?.height)}};var Gc="off";var Bh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:a,canDownload:l,callbacks:d,webApi:u,videoEpisodes:m,previewThumbsData:g,uiConfig:c,coreConfig:$,player:w,disabledControls:x,isInteractive:S,interactiveRanges$:C,isInteractiveTime$:A,replayInteractive:M,stopPlayer:I,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:V,additionalButtons:q,additionalSettingsMenuItems:z,additionalContextMenuItems:ie,playPrevVideo:oe,playNextVideo:me,looped:Q=!1,statistics:fe,saveRate:J,internalsExposure:Pe,playerView:Le})=>{let Ae={...$,configName:[...$.configName??[],"ui"],isAudioDisabled:a,live:{...$.live??{},isLiveCatchUpMode:!!r}},he=c,Ve=vy.createRootTracer(he.features.tracer),re=Ve.createComponentTracer("Store"),R=w||new sy(Ae,Ve);Pe?.expose({corePlayer:R});let Ye=new fy,de=new Fc(Ye,{loadTimeout:he.ads.loadTimeout,initTimeout:he.ads.initTimeout,runtimeTimeout:he.ads.runtimeTimeout,useAdmanFromNPM:he.ads.useAdmanFromNPM,volumeMultiplier:he.ads.volumeMultiplier,isVsidOriginal:he.ads.isVsidOriginal}),Fe=js.getInstance(),ae=u?.pictureInPictureApi,ne=u?.annotationsApi,Ie=u?.slotsApi,G=Ye.createComponentLog("Store"),ze,et,ce={},ee=new _c,Ne=new kf,je=fe&&fe.oneStat?Ft(fe.oneStat.vsid$):er(void 0),dt=te(ys()),at=te(!1),Tt=ae?.info.isActive$??new gy(!1),Ze=te(0),lt=te([]),Nt=my(R.events.fatalError$,R.events.managedError$).subscribe(p=>lt.update(T=>[...T,p])),Ut=er(!1,p=>{let T=R.events.fatalError$.subscribe(()=>p(!0));return()=>T.unsubscribe()}),qe=async p=>{let T=Object.values(dy).includes(p);if(he.downloadVKLanguages&&(T&&he.updateBuiltinLanguages||!Ap(p))){let ye;try{ye=await py(p,$g,yg)}catch(tt){fe?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),Fe?.report(tt,{errorType:"VKLangPack",fatal:!1})}ye&&(Ip({language:p,pack:ye,fallback:he.defaultLanguage}),vt.set(p))}Ap(p)&&vt.set(p)},vt=te(t),ke=te(e);qe(t);let St=(p,T)=>{let O=ge(vt);return Pp(O,p,T,he.defaultLanguage)},ve=te("thumb"),Y=(()=>{let p=ni([Ut,ve],([T,O])=>T?"crashed":O);return{...p,is:T=>ge(p)===T}})(),se=(()=>{let p=te(new Set(x));return{...p,add:T=>{p.update(O=>new Set([...O].concat(T)))},remove:T=>{p.update(O=>{let ye=[...O];return new Set(Array.isArray(T)?ye.filter(tt=>!T.includes(tt)):ye.filter(tt=>tt!==T))})},includes:T=>{let O=ge(p);return Array.isArray(T)?T.every(ye=>O.has(ye)):O.has(T)}}})();re.log("create store"),G({message:"create store"});let De=p=>{let T=p.container,O=()=>{He=new MutationObserver(tt=>{let{removedNodes:pt}=tt[0];pt.length&&T.append(R.experimental.element$.getValue())}),He.observe(T,{childList:!0})},ye=R.experimental.element$.getValue();if(ye)T.append(ye),O();else{let tt=R.experimental.element$.pipe($y(pt=>!!pt),yy()).subscribe(pt=>{T.append(pt),O()});Ne.add(tt)}},Se=p=>{G({message:`init video, config: ${JSON.stringify(p)}`}),S?De(p):(_y.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[by()]}),R.initVideo(p)),re.log("init video",{isInteractive:S}),p.subtitles&&R.setExternalTextTracks(p.subtitles),ze=p},xe=new jc,Je=p=>xe.next(p),ht=new jc,Mt=new jc,Ge=new jc,He=null,Yt={actionRewind$:ht,actionSeek$:Mt,inPiP$:Tt,inFullscreen$:new Nh(p=>dt.subscribe(T=>p.next(T))),actionSetSubtitle$:Ge,nextMovie$:xe},Ai={actionSeek$:Mt,playerSize$:new Nh(p=>ri.subscribe(T=>p.next(T)))};if(fe){let{oneStat:p,thinOneStat:T,statSubscription:O}=fe;p&&(S||O.add(p.attachTo(R)),O.add(p.attachToUi(Yt)),O.add(p.attachToAds(de.events)),p.authorize(s).catch(ye=>{G({message:`onestat auth error ${String(ye)}`})})),T&&(O.add(T.attachTo(R)),O.add(T.attachToUi(Ai)),T.authorize(s))}if(Fe){let p=new kf,T=(O,ye)=>p.add(O.subscribe(ye));if(T(R.events.managedError$,O=>{Fe.logIError(O)}),T(R.events.fatalError$,O=>{Fe.logIError(O,!0)}),fe){let{oneStat:O}=fe;O&&T(O.experimental.error$,ye=>{Fe.logIError(ye)})}Fe.sentrySubscription.add(p)}let Qi=()=>{ay.device.isIOS&&et&&nh(et).catch(p=>{G({message:`exitIosSafariFullscreen failed: ${p}`})})};Ne.add(R.experimental.element$.subscribe(p=>{p&&(et=p,p.classList.add("player-media"),Zs(ae)&&(ae.updateVideoElement(),ae.registryEventHandlers()),S&&p.setAttribute("pip","false"),Le==="preview"&&(p.setAttribute("disablePictureInPicture","true"),p.setAttribute("x-yandex-pip","false")))})).add(R.events.ended$.subscribe(()=>{Qi(),d?.onEnded?.()})).add(R.events.looped$.subscribe(()=>{d?.onLooped?.()})).add(R.events.started$.subscribe(async()=>{Zs(ae)&&await ae?.revealPictureInPicture();let p=R.info.muted$.getValue();d?.onStarted?.(),ce.onStarted?.(p)})).add(R.events.willSeek$.subscribe(({from:p,to:T})=>{d?.onSeek?.(p,T)})).add(R.events.autoplaySoundProhibited$.subscribe(()=>{d?.onAutoplaySoundProhibited?.()})).add(R.info.position$.subscribe(p=>{let T=R.info.duration$.getValue();isFinite(T)&&T>0&&(d?.onTimeupdate?.(T,p),de.setPosition(p,T))})).add(R.events.fatalError$.subscribe(p=>{d?.onCrashed?.(p?`${p.id}: ${p.message}`:void 0)})).add(R.events.fetcherRecoverableError$.subscribe(p=>{d?.onRecoverableError?.(p?`${p.id}: ${p.message}`:void 0)})).add(R.events.loadedMetadata$.subscribe(()=>{yt.state.loadedMetadata$.set(!0)})).add(R.info.is3DVideo$.subscribe(p=>{yt.ui.is3DVideo.set(p)})).add(R.info.isEnded$.subscribe(p=>{S&&(p?(A?.getValue()&&se.add(Ll),se.add("PLAY_BUTTON")):se.remove("PLAY_BUTTON"))})).add(R.info.liveTime$.subscribe(p=>{d?.onLiveTime?.(p)})).add(R.info.isStalled$.subscribe(p=>{d?.onStalledChanged?.(p)})).add(R.info.isLiveEnded$.subscribe(p=>p&&d?.onLiveEnded?.())).add(de.events.loadStarted$.subscribe(()=>d?.adsInfo?.onLoadStarted?.())).add(de.events.loadEnded$.subscribe(()=>d?.adsInfo?.onLoadEnded?.())).add(de.events.loadError$.subscribe(()=>d?.adsInfo?.onLoadError?.())).add(de.events.init$.subscribe(()=>d?.adsInfo?.onInit?.())).add(de.events.ready$.subscribe(()=>d?.adsInfo?.onReady?.())).add(de.events.started$.subscribe(p=>d?.adsInfo?.onStarted?.(p))).add(de.events.timeRemained$.subscribe(p=>d?.adsInfo?.onTimeRemained?.(p))).add(de.events.ended$.subscribe(p=>d?.adsInfo?.onCompleted?.(p))).add(de.events.empty$.subscribe(()=>d?.adsInfo?.onEmpty?.())).add(de.events.clicked$.subscribe(p=>d?.adsInfo?.onClicked?.(p))).add(de.events.closed$.subscribe(p=>d?.adsInfo?.onClosed?.(p))).add(de.events.error$.subscribe(p=>d?.adsInfo?.onError?.(p))).add(de.events.paused$.subscribe(()=>d?.adsInfo?.onPaused?.())).add(de.events.resumed$.subscribe(()=>d?.adsInfo?.onResumed?.()));let Lo=new kf,Wo=()=>{let{debugLog:p}=he,T,O="#9df7b7",ye="#efd169";if(p&&p!==!0){let{colors:pt}=p;T=p.tag,O=pt?.[0]??O,ye=pt?.[1]??pt?.[0]??ye}let tt=T?`: ${T}`:"";Lo.add(R.events.log$.subscribe(pt=>{console.debug(`%c sdk${tt} `,`background:${O};`,`sdk component: ${pt.component}`,pt.message)})).add(Ye.log$.subscribe(pt=>{console.debug(`%c ui${tt} `,`background:${ye};`,`ui component: ${pt.component}.`,pt.message)}))},pn=()=>{Lo.unsubscribe()},qo=(p,T)=>{re.log("start camera manual rotation",{mx:p,my:T}),R.startCameraManualRotation(p,T)},Ro=(p=!1)=>{re.log("stop camera manual rotation",{immediate:p}),R.stopCameraManualRotation(p)},Gi=(p,T,O)=>{re.log("move camera focus px",{xpx:p,ypx:T,dt:O}),R.moveCameraFocusPX(p,T,O)},zt=()=>{R.holdCamera()},Ko=()=>{R.releaseCamera()},ro=er(R.info.position$.getValue(),p=>{let T,O,ye=()=>{let tt=R.info.playbackState$.getValue(),pt=R.info.isLive$.getValue(),Bt=R.info.duration$.getValue(),Jt=R.info.position$.getValue();if(tt&&[sd.PLAYING,sd.PAUSED].includes(tt)){let ko=pt?Jt-Bt:R.getExactTime();ko!==O&&p(ko),O=ko}T=requestAnimationFrame(ye)};return ye(),()=>cancelAnimationFrame(T)}),so=Ft(R.info.playbackState$),$o=Ft(R.info.currentBuffer$),j=Ft(R.info.isEnded$),Qt=Ft(R.info.isLive$),ei=he.features.playbackRate?Ft(R.info.canChangePlaybackSpeed$):er(!1),Oi=Ft(R.info.liveBufferTime$),ii=Ft(R.info.volume$),Gt=Ft(R.info.muted$),xt=bc(R.info.predefinedQualityLimitType$.pipe(Vh(p=>p===Qr.TRAFFIC_SAVING)),R.info.predefinedQualityLimitType$.getValue()===Qr.TRAFFIC_SAVING),wt=bc(R.info.predefinedQualityLimitType$.pipe(Vh(p=>p===Qr.HIGH_QUALITY)),R.info.predefinedQualityLimitType$.getValue()===Qr.HIGH_QUALITY),Vt=Ft(R.info.autoQualityLimitingAvailable$),yo=Ft(R.info.availableQualities$),yi=Ft(R.info.availableQualitiesFps$),fn=Ft(R.info.chromecastState$),di=Ft(R.info.chromecastDeviceName$),ji=Ft(R.info.currentFormat$),ui=Ft(R.info.throughputEstimation$),mt=Ft(R.info.videoBitrate$),pi=Ft(R.info.intrinsicVideoSize$),xo=Ft(R.info.duration$),Qo=Ft(R.info.isAudioAvailable$),Xt=null,fi=R.info.isBuffering$,wo=er(fi.getValue(),p=>{let T=fi.subscribe(O=>{O&&Xt===null?Xt=window.setTimeout(()=>{p(fi.getValue()),Xt=null},he.loaderDelay):p(O)});return()=>{T.unsubscribe(),Xt&&clearTimeout(Xt)}}),mn=()=>{Xt&&clearTimeout(Xt),Xt=null},ao=ni([xo,Qt],([p,T])=>T?-p:p),Yi=ni([so],([p])=>p===sd.PLAYING),vn=Ft(R.info.atLiveEdge$),Zi=Ft(R.info.atLiveDurationEdge$),Di=Ft(R.info.position$),Go=ni([Di,xo],([p,T])=>isFinite(p)&&isFinite(T)&&!!T),or=ni([fn],([p])=>p===ry.CONNECTED),Nn=Ft(R.info.availableVideoStreams$),Bn=he.features.audioLanguages?Ft(R.info.availableAudioStreams$):er([]),On=Ft(R.info.currentVideoStream$),Tr=Ft(R.info.currentAudioStream$),gn=p=>{p.language&&Ep(p.language),R.setVideoStream(p)},Gr=p=>{p.language&&Ep(p.language),R.setAudioStream(p)},nr=p=>{let T;if(p.length===1&&(T=p.at(0)),T??=p.find(ye=>"isDefault"in ye&&ye.isDefault),T)return T;let O=Wg();return O&&(T=p.find(({language:ye})=>O===ye)),T??=p.at(0),T},mi=!1;Ne.add(R.info.availableAudioStreams$.subscribe(p=>{if(!mi&&p.length){let T=nr(p);T&&(R.setAudioStream(T),mi=!0)}}));let jo=!1;Ne.add(R.info.availableVideoStreams$.subscribe(p=>{if(!jo&&p.length){let T=nr(p);T&&(R.setVideoStream(T),jo=!0)}}));let lo=te(void 0),Vo=Ft(R.info.isAutoQualityEnabled$,p=>p&&lo.set(void 0)),No=Ft(R.info.currentQuality$,()=>lo.set(void 0)),hn=ni([lo,No],([p,T])=>p??T),Yo=ni(ji,p=>p!==ad.MPEG),jr=ni([yo,yi,Vo,hn,Yo],([p,T,O,ye,tt])=>{let pt=[];tt&&pt.push({value:"auto",displayValue:St("auto_quality_option"),selected:O});let Bt=p.filter(Jt=>!cy(Jt));for(let Jt of Bt){let ko=T[Jt];pt.push({value:Jt,displayValue:`${Jt}${ko?Ah(ko):""}`,selected:O?!1:Jt===ye})}return pt}),Dn=Ft(R.info.currentPlaybackRate$),Hn=ni([Dn,vn,Zi],([p,T,O])=>{let ye=O||S?1:he.controls.playbackRateMin,tt=T?1:he.controls.playbackRateMax,pt=he.controls.playbackRateStep,Bt=[];for(let Jt=ye;Jt<=tt;Jt+=pt)Bt.push({value:Jt,displayValue:Jt===1?St("playback_rate_1"):St("playback_rate",{multiplier:Jt.toString(10)}),selected:p===Jt});return Bt}),xi={displayValue:St("subtitles_off"),value:Gc},Hi=te({...xi}),ot=he.features.subtitles?Ft(R.info.availableTextTracks$):er([]),vi=Vg(),rr=ni([ot,Hi],([p,T],O)=>{let ye=[],tt=p.find(({id:pt})=>pt===T.value);if(tt?.url){let[,pt]=vi.find(tt.url)??[];if(pt){O(pt);return}ee.download(tt.url).then(Bt=>{if(!Bt||ee.isDestroyed())return;let Jt=new Ph,ko=tt.language;if(ko){let wu=!!tt.isAuto,T1=Jt.parse(Bt,ko);ye.push({lang:ko,subtitles:T1,isAuto:wu,id:tt.id})}vi.add(tt.url,ye),ge(Hi).value===T.value&&O(ye)}).catch(Bt=>{fe?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),Fe?.report(Bt,{errorType:"Subtitles download",fatal:!1})})}O(ye)}),Pi=ni([Dn,Yi,Hi],([p,T,O],ye)=>{let Bt;if(R.info.isLive$.getValue()&&T&&O.value!==xi.value){let ko=()=>{let wu=1e3/(3*p);Bt=setTimeout(ko,wu),ye(Date.now())};return ko(),()=>clearTimeout(Bt)}}),_n=ni([ot,Hi],([p,T])=>{if(!p.length)return[];let O=[];for(let{language:ye,isAuto:tt,id:pt}of p){let Bt=ye&&qc(ye);ye&&Bt&&O.push({displayValue:tt?St("subtitles_auto",{language:Bt}):Bt,value:pt,selected:T?.value===pt,isAuto:tt})}return O.length?(O.unshift({...xi,selected:T?.value===xi.value}),O):[]}),co={available:[],prev:[]},bn=()=>R.experimental.getCurrentTime$.getValue()?.()??et?.currentTime??0,uo=ni([ro,Hi,rr,Pi],([p,T,O,ye])=>{let tt=R.info.isLive$.getValue();if(tt&&co.prev!==O){let pt=O.find(({id:Jt})=>Jt===T.value),Bt=co.prev.find(({id:Jt})=>Jt===T.value);if(pt){let Jt={...pt,subtitles:[...Bt?.subtitles??[],...pt.subtitles]};co.available=[Jt],co.prev=O}}if(T&&T.value!==xi.value){let pt=tt?bn():p,Bt=tt?co.available:O;return Rh(pt,T,Bt,tt)}}),Bo=ni([uo],([p])=>p?.texts?p.texts:[]);Ne.add(Hi.subscribe(p=>{if(p.value===xi.value)d?.onSubtitleOff?.();else{let T=Object.entries(Wc).find(([O,ye])=>ye===p.displayValue);d?.onSubtitleOn?.(T?T[0]:"")}}));let So=te(!0),Zo=ni([$o,ao,Di,Oi],([p,T,O,ye])=>{let tt=p?.end??0;if(!ye)return tt/T;let Bt=-O+ye-T;return(tt-Bt)/T}),Fn=Ft(R.info.availableSources$),sr=ni([Fn],([p])=>Object.keys(p?.[ad.MPEG]||{}).length>0),$n=()=>{let p=Object.keys(R.info.availableSources$?.getValue()?.[ad.MPEG]||{}),T=ly(p)||hy.Q_144P;return ze.sources[ad.MPEG]?.[T]},kr=()=>{let p=$n();if(p)re.log("download video",{url:p}),Mg(p,ze?.meta?.title||"video");else{let T="There is no URL for download video";re.log("download video",{message:T}),G({message:T})}},Xo=()=>{G({message:"toggle muted"});let p=R.info.muted$.getValue();R.info.volume$.getValue()===0&&!p?Fi(It()):zn(!p)},Er=()=>{if(yt.ui.settingsMenu.visible$.set(!1),!ge(yt.ui.settingsSubMenu.visible$)){let p=ge(yt.ui.settingsMenu.ref$);if(d?.uiInfo?.onSettingsMenu&&p){let O=Qa(p),ye={top:0,left:0,bottom:0,right:0};d.uiInfo.onSettingsMenu({visible:!1,size:O,position:ye,name:"settings"})}}re.log("close settings menu")},Un=async(p,T=()=>Promise.resolve())=>{yt.ui.settingsMenu.openedByBtnKeyboard$.set(!!p),yt.ui.settingsMenu.visible$.set(!0),await T();let O=ge(yt.ui.settingsMenu.ref$),ye=ha();if(d?.uiInfo?.onSettingsMenu&&O&&ye){let pt=Qa(O),Bt=as(O,ye);d.uiInfo.onSettingsMenu({visible:!0,size:pt,position:Bt,name:"settings"})}re.log("open settings menu",{wasOpenedByKeyboard:p})},ar=(p,T=!1)=>{yt.ui.settingsSubMenu.visible$.set(!1);let O=ge(yt.ui.settingsMenu.ref$),ye=ha(),tt=ge(yt.ui.settingsMenu.visible$);if(d?.uiInfo?.onSettingsMenu&&O&&ye)if(tt&&!T){let Bt=Qa(O),Jt=as(O,ye);d.uiInfo.onSettingsMenu({visible:!0,size:Bt,position:Jt,name:"settings"})}else{let Bt=Qa(p),Jt={top:0,left:0,bottom:0,right:0},ko=ge(yt.ui.settingsSubMenu.name$);d.uiInfo.onSettingsMenu({visible:!1,size:Bt,position:Jt,name:ko})}re.log("close settings sub menu")},Oo=(p,T)=>{yt.ui.settingsSubMenu.visible$.set(!0),yt.ui.settingsSubMenu.ref$.set(T),yt.ui.settingsSubMenu.name$.set(p);let O=ha();if(d?.uiInfo?.onSettingsMenu&&T&&O){let tt=Qa(T),pt=as(T,O);d.uiInfo.onSettingsMenu({visible:!0,name:p,size:tt,position:pt})}re.log("open settings sub menu",{name:p})},It=()=>{let p=Math.max(he.volumeMinRestore,$c()??0);return p===0?he.volumeDefault:p},Fi=p=>{let T=p===0?It():p,O=R.info.muted$.getValue();G({message:`set volume, volume: ${p}, preferredVolume: ${T}`});let ye=!a||Y.is("ads");O&&p>0&&ye&&(O=!1,Tp(!1)),R.setVolume(p,O),de.setVolume(p),yp(T)},zn=p=>{let T=R.info.volume$.getValue();if(G({message:`set muted, currentVolume: ${T}, mute: ${p}`}),R.setMuted(p,Y.is("ads")),de.setVolume(p?0:T),Tp(p),!p&&T===0){let O=It();R.setVolume(O),yp(O),de.setVolume(O)}},Wn=te(!1),Ir=p=>{re.log("set looped",{isLooped:p}),Wn.set(p),R.setLooped(p),d?.uiInfo?.onLoopedChanged?.(p)};Ir(Q);let nt=()=>{d?.uiInfo?.onReportProblem?.()},jt=(p,T=!1)=>{G({message:`set autoplayNextEnabled, value: ${p}`}),re.log("set autoplay next enabled",{autoplayNextEnabled:p}),yt.ui.autoplayNextEnabled$.set(p),Qg(p),T&&d?.onSetAutoplayNextEnabled?.(p)},qn=p=>{G({message:`set timerNextVideoRunning, value: ${p}`}),re.log("set timer next video running",{timerNextVideoRunning:p}),yt.ui.timerNextVideoRunning$.set(p)},Kn=(p=!0)=>{let T=!0;if(p&&d?.onPrevVideoClick)try{T=d?.onPrevVideoClick?.()}catch{G({message:"onPrevVideoClick callback failed to execute"})}if(!T)return;p&&lr("prev")||oe()},Qn=(p=!0)=>{let T=!0;if(p&&d?.onNextVideoClick)try{T=d?.onNextVideoClick?.()}catch{G({message:"onNextVideoClick callback failed to execute"})}if(!T)return;p&&lr("next")||me()},lr=p=>{let{isMobile:T,features:{playbackStatusNextVideoShow:O,playbackStatusShow:ye}}=he;return O&&ye&&!T?(yt.ui.aboutToGoNextVideo.set(p),yt.ui.userActionsDisabled.set(!0),!0):!1},dr=()=>{d?.onNextVideoAnnouncementShow?.()},cr=()=>{d?.onNextVideoAnnouncementClick?.()},Co=()=>{d?.onNextVideoAnnouncementAuto?.()},Ar=()=>{d?.onNextVideoAnnouncementCancel?.()},Pr=()=>{R.prepare()},Yr=()=>{Vn(yt);let p=ge(yt.ui.controls.disabledControls$),T=ge(yt.playerPhase),O={playerPhase:T,isInteractive:S,isVideoEnded:!1,action:"none"};if(p.has("PLAY_BUTTON"))return;if(G({message:"toggle play"}),T==="ads"){O.action="play",re.log("toggle adman play",O),de.togglePlay();return}let ye=()=>{G({message:"toggle play, call player.play"}),O.action="play",R.play(),d?.onPlay?.()},tt=()=>{G({message:"toggle play, call player.pause"}),O.action="pause",R.pause(),d?.onPause?.()};if(R.info.isEnded$.getValue()){if(G({message:"toggle play, video ended, seek to 0"}),ht.next(),Mt.next(ls.REWIND),S){M?.();return}R.seekTime(0),ye()}else R.info.playbackState$.getValue()!==sd.PLAYING?ye():tt();re.log("toggle play",O)},rt=(p,{changeReason:T="default",appliesTo:O="to-video"}={})=>{G({message:`set quality, quality: ${p}`}),re.log("set quality",{quality:p}),R.setAutoQuality(p==="auto"),p!=="auto"?(he.features.qualityDetailsSubMenuEnabled?(yc({type:"exact_quality",quality:p,videoId:i},O),Vl(),R.setPredefinedQualityLimits(Qr.UNKNOWN)):xp(i,p),lo.set(p),R.setQuality(p)):he.features.qualityDetailsSubMenuEnabled?T==="default"&&(wi("auto_quality",O),ge(xt)&&kt(!1),ge(wt)&&Wt(!1)):Vl()},kt=(p,T="as-default")=>{G({message:`set trafficSavingEnabled, value: ${p}`}),re.log("set traffic saving enabled",{trafficSavingEnabled:p});let O=p?Qr.TRAFFIC_SAVING:Qr.UNKNOWN;he.features.qualityDetailsSubMenuEnabled?(Mi(O,T),Rl(!1)):(R.setPredefinedQualityLimits(O),Rl(p))},Wt=(p,T="as-default")=>{G({message:`set highQualityEnabled, value: ${p}`}),re.log("set high quality enabled",{highQualityEnabled:p}),Mi(p?Qr.HIGH_QUALITY:Qr.UNKNOWN,T)},Mi=(p,T)=>{p!==Qr.UNKNOWN&&(ge(Vt)&&!ge(Vo)&&rt("auto",{appliesTo:T,changeReason:"limit-changed"}),wi(p,T)),R.setPredefinedQualityLimits(p)},wi=(p,T)=>{yc({type:p,videoId:i},T),T==="as-default"&&yc({type:p,videoId:i},"to-video")},Xi=p=>{re.log("set playback rate",{playbackRate:p}),R.setPlaybackRate(p),he.features.saveRate&&J&&!R.info.isLive$.getValue()&&qg(p)},po=()=>{let p=ge(Hn),T=p.findIndex(({selected:ye})=>ye);if(T===p.length-1)return;let O=p[T+1];Xi(O.value)},Jo=()=>{let p=ge(Hn),T=p.findIndex(({selected:ye})=>ye);if(T===0)return;let O=p[T-1];Xi(O.value)},Ui=(p={...xi,selected:!1})=>{re.log("set subtitles",{...p}),p&&p.value!==xi.value&&Ge.next(p.isAuto?p.value+"_auto":p.value),Hi.set(p)},gi=()=>{re.log("toggle subtitles");let p=ge(_n),T=ge(Hi),O=ge(vt);if(T?.value===xi.value){let ye=p.filter(tt=>tt.value!==xi.value).find(tt=>tt.value===O)||p[1];Ui(ye)}else Ui()},Si=te(!0),To=p=>{Si.set(p)},zi=(p,T,O=!0)=>{if(G({message:`seek to time, time: ${p}`}),re.log("seek to time",{time:p,action:T,forcePrecise:O}),Mt.next(T),R.info.isLive$.getValue()){let ye=R.info.duration$.getValue(),tt=Math.min(0,ye+p);R.seekTime(tt,O)}else{if(A?.getValue())return;R.info.isEnded$.getValue()&&(G({message:"seek after ended, call callbacks.onPlay"}),d?.onPlay?.()),R.seekTime(fs(p),O)}},fo=p=>{G({message:`seek to episode start time: ${p}`}),re.log("seek to episode start time",{time:p}),zi(p,ls.EPISODE,!0)},ur=(p,T)=>{G({message:`seek to percent, percent: ${p}`}),re.log("seek to percent",{percent:p,action:T});let O=ge(ao)*p;zi(O,T,!1)},yn=p=>{G({message:`seek external, time: ${p}`}),re.log("seek external",{time:p}),Mt.next(ls.UNKNOWN),R.seekTime(R.info.isLive$.getValue()?-p:p)},pr=p=>{let T=p.max??"none",O=p.min??"none";G({message:`set auto quality limitation. Max: ${T}. Min: ${O}`}),re.log("set auto quality limits",{max:T,min:O}),R.setAutoQualityLimits(p)},Mr=p=>{G({message:`seek external to episode start time: ${p}`}),re.log("seek external to episode start time",{time:p}),zi(p,ls.EPISODE,!0)},Lr=p=>{G({message:`set playback rate to: ${p}`}),re.log("set playback rate external",{playbackRate:p}),R.setPlaybackRate(p)},xn=te(void 0),wn=te(!1),en=p=>{G({message:`start scrubbing, progress: ${p}`}),re.log("start scrubbing",{progress:p}),wn.set(!0),Li(p)},Li=p=>{xn.set(p)},Sn,fr,Gn=()=>{xn.set(void 0),wn.set(!1)},Ue=()=>{clearTimeout(fr),clearTimeout(Sn),Sn=window.setTimeout(()=>{Gn()},500),et?.removeEventListener("seeked",Ue)},Ot=p=>{G({message:`complete scrubbing, progress: ${p}`}),re.log("complete scrubbing",{progress:p}),ur(p,ls.SLIDER),ge(yt.ui.isMobile)&&ge(yt.state.currentFormat$)===ad.HLS?(et?.addEventListener("seeked",Ue),fr=window.setTimeout(()=>{Ue()},300)):Gn()},Ci=ni([ro,ao,xn],([p,T,O],ye)=>{ye(uy(O)?O*T:p)}),_e=te(!1),At=()=>{_e.set(!0)},Ri=()=>{_e.set(!1)},ri=te({width:0,height:0}),Ke=ni([ri],([{width:p}],T)=>{let O=Ch(p);T(O)}),Lt=te(!1),Zt=q.filter(p=>Lg(p)),Ji=ni([Ke,Lt],([p,T])=>T?Zt.filter(O=>!O.hideOnMobile):Zt.filter(O=>!O.hideOnDesktopGridTypes?.includes(p))),Ti=te(q.filter(p=>Rg(p))),jn=ni([Ti,Ke],([p,T])=>p.filter(O=>!O.hideOnDesktopGridTypes?.includes(T))),Yn=ni([jn,Ji],([p,T])=>[...he.features.additionalButtonsDesktopControlPanelRight?p.filter(O=>O.type==="desktop-control-panel-right"):[],...he.features.additionalButtons?T.map((O,ye)=>({id:ye,weight:ye,type:"desktop-control-panel-right",testId:O.testId,icon:O.iconUrl,onClick:O.onClick,ariaLabel:O.ariaLabel??O.tooltip,tooltipText:O.tooltip})):[]]),Wi=te(z),eo=ni([Wi],([p])=>he.features.additionalSettingsMenuItems?p.map(T=>T.type==="SWITCH"?{...T,onClick:T.onChangeEnabled}:T):[]),si=(p,T)=>{let O=ge(Ti).map(ye=>ye.id!==p?ye:{...ye,...T});Ti.set(O)},tn=p=>{let T=ge(Ti);if(T.some(O=>O.id===p.id)){G({message:`Additional button with id: "${p.id}" was exist! Can't add more with the same id`});return}T.push(p),Ti.set(T)},Zn=p=>{let T=ge(Ti);if(!T.some(O=>O.id===p)){G({message:`Can't find additional button with id: "${p}"! Can't remove item with this id`});return}T=T.filter(O=>O.id!==p),Ti.set(T)},mr=p=>{Mt.next(ls.LIVE),G({message:"live switch to low latency "+p}),re.log("live switch to low latency "+p),R.setLiveLowLatency(p)},qi=(p,T)=>{let O=ge(Wi).map(ye=>ye.id!==p?ye:{...ye,...T});Wi.set(O)},Ja=p=>{let T=ge(Wi);if(T.some(O=>O.id===p.id)){G({message:`Settings menu item with id: "${p.id}" was exist! Can't add more with the same id`});return}T.push(p),Wi.set(T)},ga=p=>{let T=ge(Wi);if(!T.some(O=>O.id===p)){G({message:`Can't find settings menu item with id: "${p}"! Can't remove item with this id`});return}T=T.filter(O=>O.id!==p),Wi.set(T)},ft=te(ie),$t=ni([ft],([p])=>he.features.additionalContextMenuItems?p:[]),Cn=(p,T)=>{let O=ge(ft).map(ye=>ye.id!==p?ye:{...ye,...T});ft.set(O)},Rr=p=>{let T=ge(ft);if(T.some(O=>O.id===p.id)){G({message:`Context menu item with id: "${p.id}" was exist! Can't add more with the same id`});return}T.push(p),ft.set(T)},As=p=>{let T=ge(ft);if(!T.some(O=>O.id===p)){G({message:`Can't find context menu item with id: "${p}"! Can't remove item with this id`});return}T=T.filter(O=>O.id!==p),ft.set(T)},Vr=ni([Lt,Ut],([p,T],O)=>{O(p&&T)}),Nr=()=>{Mt.next(ls.LIVE),G({message:"switch to active live"}),re.log("switch to active live"),R.seekTime(0),R.info.playbackState$.getValue()!==sd.PLAYING&&yt.actions.internal.togglePlay()},ps=()=>{re.log("skip adman"),de.skip()},el=(p=!0)=>{Vn(yt),G({message:`switch from ads to video, callPlay: ${p}`}),re.log("switch from ads to video",{callPlay:p}),ve.set("video"),p&&R.play(),a&&zn(!0)},Nd=()=>{Vn(yt),G({message:"switch from video to ads"}),re.log("switch from video to ads"),yt.actions.internal.pause(),Qi(),ve.set("ads")},gu=p=>{Vn(yt);let T=p?"LiveWaitingStart":"thumb";re.log("set live waiting start",{state:p,playerPhase:T}),ve.set(T)},Bd=p=>{Vn(yt);let T=p?"LiveWaitingRecover":"thumb";re.log("set live waiting recover",{state:p,playerPhase:T}),ve.set(T)},hu=p=>{Vn(yt);let T=p?"LiveWaitingRecord":"thumb";re.log("set live waiting record",{state:p,playerPhase:T}),ve.set(T)},Od=()=>(Vn(yt),re.log("get debug text data"),Ag(R,ze,yt,Ve.getTraceId())),_u=()=>(Vn(yt),JSON.stringify(Ve.getFinishedSpans())),Dd=()=>(Vn(yt),Pg(R,ze,yt)),ha=()=>et,Hd=()=>{G({message:"toggle chromecast"}),re.log("toggle chromecast"),R.toggleChromecast()},Fd=p=>{if(Vn(yt),R.info.isEnded$.getValue())return;let T=!p;if(ge(yt.playerPhase)==="ads"){G({message:`pause ads, internalCall: ${T}`}),re.log("pause ads",{internalCall:T}),de.pause();return}G({message:`pause video, internalCall: ${T}`}),re.log("pause video",{internalCall:T}),T&&d?.onPause?.(),R.pause()},tl=p=>{Vn(yt);let T=!p;if(ge(yt.playerPhase)==="ads"){G({message:`play ads, internalCall: ${T}`}),re.log("play ads",{internalCall:T}),de.play();return}G({message:`play video, internalCall: ${T}`}),re.log("play video",{internalCall:T}),T&&d?.onPlay?.(),R.play()},Ud=p=>{Vn(yt);let T=!p;if(ge(yt.playerPhase)==="ads"){G({message:"player cannot be stopped during ads via external method"});return}G({message:`player will be stopped, internalCall: ${T}`}),I?.()},il=(p,T)=>{Vn(yt),G({message:`first start, show ads: ${p}, internalCall: ${!T}`}),re.log("first start",{showAds:p,external:T}),p?ve.set("ads"):(ve.set("video"),T?R.play():yt.actions.internal.togglePlay())},ol=()=>(G({message:"getting time codes"}),m),nl=()=>{let p=ol();if(!p||[0,1].includes(p.length))return;let T=R.info.position$.getValue();return p.find(O=>O.time>T)},bu=p=>{let T=p;T||(T=nl());let O=R.info.position$.getValue();re.log("seek to next episode",{currentTime:O,...T}),T&&(G({message:"seek to next episode"}),zi(T.time,ls.EPISODE,!0))},rl=()=>{let p=ol();if(!p||[0,1].includes(p.length))return;let T=R.info.position$.getValue(),O=p.findIndex(tt=>tt.time>T),ye=O===-1?p.length-2:O-2;if(!(ye<0))return p[ye]},$u=p=>{let T=p;T||(T=rl());let O=R.info.position$.getValue();re.log("seek to prev episode",{currentTime:O,...T}),T&&(G({message:"seek to prev episode"}),zi(T.time,ls.EPISODE,!0))},yu=()=>(G({message:"getting preview thumbs data"}),re.log("get preview thumbs data",{...g}),g),xu=async()=>{let p=ae?.isActive(),T="none";ae?.isActive()?(T="remove",await ae?.remove()):(T="request",await ae?.request()),re.log("toggle picture in picture",{isActive:p,action:T})},We=(p=-90)=>{re.log("rotate video",{alphaDiff:p}),Ze.update(T=>T+p)},qt=te([]);C?.subscribe(p=>{let T=[];for(let O=0;O<p.length;O++){let{range:[ye,tt],subjects:pt}=p[O];O===0&&ye!==0&&T.push({time:0,text:"",interactive:!1,completed:!0}),T.push({time:ye/1e3,text:"",interactive:!0,completed:he.features.interactiveTimeOpenUri?!pt.length||pt.every(Bt=>Bt.isRemoved):!pt.length}),tt!==1/0&&T.push({time:tt/1e3,text:"",interactive:!1,completed:!0})}qt.set(T)});let on=te(!1);A?.subscribe(p=>{p&&ge(wn)&&Gn()});let fs=p=>{if(!S)return p;let T=ge(qt),O=ge(ao),tt=ge(Di)/O,pt=T.find(Bt=>Bt.interactive&&!Bt.completed&&Bt.time>tt);return typeof pt?.time=="number"?Math.min(p,pt.time-.05):p},Zr=()=>{yt.ui.episodes.panelOpened$.set(!1)},C1=()=>{re.log("destroy store"),clearTimeout(fr),clearTimeout(Sn),Ne.unsubscribe(),Lo.unsubscribe(),R.destroy(),de.destroy(),fe?.destroy(),Fe?.destroy(),Nt.unsubscribe(),He?.disconnect(),He=null,ee.destroy()},yt={interfaceLanguage$:vt,isCyrillicRelatedInterface$:ke,initVideo:Se,videoId:i,isClip:o,playerPhase:Y,vsid:je,state:{positionExact$:ro,positionWithScrubbing$:Ci,duration$:ao,playbackState$:so,isPlaying$:Yi,isLoaderVisible:wo,bufferedProgress$:Zo,isLive$:Qt,canChangePlaybackSpeed$:ei,isActiveLive$:vn,isOldestAvailableLive$:Zi,isRewindableLive$:Go,isEnded$:j,muted$:Gt,volume$:ii,trafficSavingEnabled$:xt,highQualityEnabled$:wt,autoQualityLimitingAvailable$:Vt,availableVideoStreams$:Nn,availableAudioStreams$:Bn,videoStream$:On,audioStream$:Tr,currentQuality$:hn,isAutoQualityEnabled$:Vo,availableQualities$:jr,currentPlaybackRate$:Dn,availablePlaybackRates$:Hn,currentSubtitle$:Hi,availableTextTracks$:ot,availableSubtitlesList$:_n,currentSubtitleCaptions$:Bo,isAutoSubtitleCaptionVisible$:So,chromecastState$:fn,chromecastDeviceName$:di,chromecastConnected$:or,currentFormat$:ji,throughputEstimation$:ui,videoBitrate$:mt,videoSize$:pi,errorLog$:lt,crashed$:Ut,isAudioAvailable$:Qo,isAudioDisabled:!!a,canDownload:he.features.download&&!!l,availableSources$:Fn,hasMpegSources$:sr,isInteractive:S,showInteractiveGraph:he.features.interactiveGraph,showSeekToInteractive:he.features.seekToInteractive,showPlayPrevChapter:he.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:he.features.interactiveTimeIndicator&&!!ge(qt).length,interactiveEpisodes$:qt,isInteractiveTime$:A?Ft(A):te(!1),isInteractiveExpectation$:on,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:V,looped$:Wn,loadedMetadata$:te(!1),isAutoQualityAvailable$:Yo},ui:{t:St,controlsVisible:te(!1),touched:te(!1),controls:{prevButton:te(void 0),playButton:te(void 0),replayButton:te(void 0),nextButton:te(void 0),playPrevChapterButton:te(void 0),seekToInteractiveButton:te(void 0),interactiveGraphButton:te(void 0),liveButton:te(void 0),time:te(void 0),episodes:te(void 0),volume:te(void 0),subtitles:te(void 0),settings:te(void 0),context:te(void 0),chromecast:te(void 0),pip:te(void 0),fullscreen:te(void 0),vkLogo:te(void 0),interactiveTimeIndicator:te(void 0),timeline:te(void 0),autoplayNextToggle:te(void 0),additionalButtons:q.length?q.reduce(p=>[...p,te(void 0)],[]):[],disabledControls$:se},modals:{hotKeyMap:{show:te(!1),data:te({title:"",closeBtnText:"",groups:[]})}},isFullscreen:dt,isFullscreenOpenedByKeyboard:at,rotateAlpha:Ze,isAutoplay:te(!1),debugPanelVisible:te(!1),episodes:{panelOpened$:te(!1),openedByKeyboard$:te(!1)},contextMenu:{visible$:te(!1),btnRef$:te(void 0),openedByBtnKeyboard$:te(!1),openedByHotKey$:te(!1),lastActiveElem$:te(void 0),showContextMenuBtn$:te(!1),position$:te({top:0,left:0})},playerSize:ri,isMobile:Lt,mobileNotReportControlHidden$:Vr,mobileUnmuteButtonExpanded:te(!1),mobileUnmuteButtonVisible:te(!1),icon3DVideoVisible:te(!1),scrubbingInProgress:wn,volumeChangingInProgress:_e,is3DVideo:te(!1),currentGridType$:Ke,additionalButtonsDeprecated$:Ji,additionalDesktopControlPanelRightButtons$:Yn,additionalSettingsMenuItems$:eo,additionalContextMenuItems$:$t,interactiveHideMobileControls:te(!1),overlayContainer$:te(void 0),startedByKeyboard$:te(!1),autoplayNextEnabled$:te(!1),timerNextVideoRunning$:te(!0),settingsMenu:{visible$:te(!1),ref$:te(void 0),openedByBtnKeyboard$:te(!1)},settingsSubMenu:{visible$:te(!1),ref$:te(void 0),name$:te(void 0)},aboutToGoNextVideo:te(void 0),userActionsDisabled:te(!1),hiddenControls:{volume:te(!1),vkLogo:te(!1),pip:te(!1),chromecast:te(!1),settings:te(!1)},isControlsAvailable:Si,controlBlocks:{topLeft:te(void 0),topRight:te(void 0),middle:te(void 0),bottom:te(void 0),bottomLeft:te(void 0),bottomRight:te(void 0)},videoTitleInfo:te(void 0)},ads:{position:te(0),duration:te(0),playbackState:te("inactive"),canSkip:te(!1),secondsToWatchBeforeSkip:te(0),postrollPassed:te(!1)},webApi:{pictureInPictureApi:ae,annotationsApi:ne,slotsApi:Ie},actions:{internal:{preload:Pr,firstStart:p=>il(p,!1),play:()=>tl(!1),pause:()=>Fd(!1),togglePlay:Yr,toggleMuted:Xo,openSettingsMenu:Un,closeSettingsMenu:Er,openSettingsSubMenu:Oo,closeSettingsSubMenu:ar,setVolume:Fi,startVolumeChanging:At,stopVolumeChanging:Ri,setVideoStream:gn,setAudioStream:Gr,setQuality:rt,setTrafficSavingEnabled:kt,setHighQualityEnabled:Wt,setPlaybackRate:Xi,incrementPlaybackRate:po,decrementPlaybackRate:Jo,setSubtitle:Ui,toggleSubtitle:gi,togglePictureInPicture:xu,startScrubbing:en,progressScrubbing:Li,completeScrubbing:Ot,toggleChromecast:Hd,switchToActiveLive:Nr,switchFromAdsToVideo:el,switchFromVideoToAds:Nd,skipAd:ps,setLiveWaitingStart:gu,setLiveWaitingRecover:Bd,setLiveWaitingRecord:hu,getDebugTextData:Od,getTraceTextData:_u,getDebugPanelData:Dd,getVideoElement:ha,seekTime:(p,T,O)=>zi(p,T,O),clearDelayedBufferingCheckTimeout:mn,seekEpisodeStartTime:fo,seekToPercent:ur,getNextEpisode:nl,seekToNextEpisode:bu,getPrevEpisode:rl,seekToPrevEpisode:$u,startLogging:Wo,stopLogging:pn,startCameraManualRotation:qo,stopCameraManualRotation:Ro,moveCameraFocusPX:Gi,holdCamera:zt,releaseCamera:Ko,getVideoEpisodes:ol,getPreviewThumbsData:yu,downloadVideo:kr,addLanguage:Ip,setLanguage:qe,nextMovie:Je,videoRotate:We,correctSeekTimeToInteractive:fs,replayInteractive:M,setLooped:Ir,reportProblem:nt,setAutoplayNextEnabled:jt,setTimerNextVideoRunning:qn,prevVideoClick:Kn,nextVideoClick:Qn,nextVideoAnnouncementShow:dr,nextVideoAnnouncementClick:cr,nextVideoAnnouncementAuto:Co,nextVideoAnnouncementCancel:Ar},external:{firstStart:p=>il(p,!0),play:()=>tl(!0),pause:()=>Fd(!0),stop:()=>Ud(!0),seekTime:p=>yn(p),seekEpisodeStartTime:p=>Mr(p),setPlaybackRate:p=>Lr(p),setAutoQualityLimits:p=>pr(p),setMuted:zn,toggleSubtitle:gi,setVolume:Fi,returnFocusToEpisodes:Zr,updateAdditionalSettingsItem:qi,addAdditionalSettingsItem:Ja,removeAdditionalSettingsItem:ga,updateAdditionalContextItem:Cn,addAdditionalContextItem:Rr,removeAdditionalContextItem:As,updateAdditionalButton:si,addAdditionalButton:tn,removeAdditionalButton:Zn,setLiveLowLatency:mr,hideControls:()=>To(!1),showControls:()=>To(!0)}},callbacks:d,setUiCallbacks:p=>{ce={...p}},getAdmanWrapper:()=>de,getLogger:()=>Ye,getPlayer:()=>R,destroy:C1};return yt};function wr(t,e,i,o){let r=e[i]?.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:a,left:l,bottom:d,right:u}=as(e[i],t||void 0);return{left:s?l:0,right:s?u:0,top:s?a:0,bottom:s?d:0,isDisplayed:s}}var xy=["disabledControls$","additionalButtons"],wy=["interactiveTimeIndicator"],Ga=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!xy.includes(r)){let a=o||wy.includes(r);s.set(wr(t,i,r,a))}}};var Yc=async(t,e,i)=>{await io(),e&&i&&(i.focus(),t.set(!1))};var Sy=$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 Ef(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Sy();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}function If(t,e){D(e,!0);let[i,o]=Re(),r=()=>y(d,"$contextMenuVisible$",i),s=f(e,"disabled",3,!1),a=f(e,"ariaLabel",3,""),l=we(),d=l.ui.contextMenu.visible$,u=l.ui.contextMenu.openedByBtnKeyboard$,m=l.ui.contextMenu.showContextMenuBtn$,g=l.ui.contextMenu.position$,c=l.ui.contextMenu.btnRef$,$=K(void 0);Oe(()=>{n($)&&_t(()=>{c.set(n($))})});let w=A=>{let M=Ss(A),I=hh(n($));g.set(I),u.set(M),d.set(!r())},x=()=>{m.set(!0)},S=()=>{m.set(!1)},C=h(()=>r()?"opened":"");Ct(t,{get className(){return n(C)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return a()},click:w,focus:x,blur:S,get ariaExpanded(){return r()},get ref(){return n($)},set ref(A){N($,A,!0)},children:(A,M)=>{Ef(A,{})},$$slots:{default:!0}}),H(),o()}var Cy=t=>{t.stopPropagation()},Ty=P("<div><!> <div></div> <div></div></div>"),ky={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;}
224
+ }`};function gf(t,e){D(e,!0),U(t,E$);let i=f(e,"isMobile",3,!1),o=h(()=>e.iconState===Th.CONNECTED),r=h(()=>e.iconState===Th.CONNECTING);var s=Oe(),a=ce(s);{var l=u=>{var m=T$(),g=_(m),c=_(g),$=_(c);$e(),v(c);var w=E(c);$e(),v(g);var x=E(g),S=_(x),C=_(S);v(S),$e(),v(x),v(m),B(()=>{Ae($,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Ae(w,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Ae(C,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,m)},d=u=>{var m=k$();let g;var c=_(m),$=E(_(c),5);let w;v(c),v(m),B((x,S)=>{g=Z(m,0,"svelte-8z1bf5",null,g,x),w=Z($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:n(r)}),()=>({hidden:!n(o)})]),b(u,m)};L(a,u=>{i()?u(l):u(d,!1)})}b(t,s),H()}import{noop as P$}from"@vkontakte/videoplayer-shared/evergreen";function od(t,e){D(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),r=f(e,"click",3,P$),a=xe().ui.t,l=h(()=>e.state===I$.CONNECTED?a("tooltip_chromecast_on"):a("tooltip_chromecast_off"));kt(t,{get ariaLabel(){return n(l)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(d){i(d)},children:(d,u)=>{gf(d,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var A$=A('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),M$={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 hf(t,e){U(t,M$);let i=f(e,"active",3,!1),o=f(e,"pointer",3,!1),r=f(e,"translateXPx",3,0),s=f(e,"translateYPx",3,0),a=f(e,"leftOffset",3,0),l=f(e,"rightOffset",3,0),d=K(void 0),u=K(void 0);function m(S){if(!n(u))return 0;let{width:C}=n(u).getBoundingClientRect(),P=C/2;return S<P?P+a():S>e.containerWidth-P?e.containerWidth-P-l():S}let g=h(()=>m(r()));var c=A$(),$=_(c);let w;var x=_($);fe(x,()=>e.children??X),v($),Je($,S=>N(u,S),()=>n(u)),v(c),Je(c,S=>N(d,S),()=>n(d)),B(S=>{ot(c,`transform: translate(${n(g)}px, ${s()}px);`),w=Z($,1,"tooltip svelte-5ygsa2",null,w,S),ot($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,c)}var Hc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var kh=t=>!!(Math.round(Math.abs(t)/90)%2),Eh=t=>Math.abs(t)/90%4===1;var L$=A('<div class="preview svelte-1wqg760"></div>'),R$=A('<div class="time svelte-1wqg760"> </div>'),V$=A('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),N$={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 _f(t,e){D(e,!0),U(t,N$);let[i,o]=Le(),r=()=>y(w,"$rotateAlpha",i),s=()=>y(x,"$playerSize",i),a={MOBILE:150,DESKTOP:278},l=f(e,"time",3,""),d=f(e,"isMobile",3,!1),u=f(e,"videoEpisodes",19,()=>[]),m=f(e,"progress",3,0),g=f(e,"duration",3,0),c=f(e,"isInteractive",3,!1),$=xe(),w=$.ui.rotateAlpha,x=$.ui.playerSize,S=K(0),C=K(0),P=K(""),M=K(0),I=K(0),k=K(0),V=K(0),q=h(()=>Hc(m(),g(),u())),z=h(()=>kh(r())),ie=h(()=>Eh(r())),oe=h(me),ve=h(()=>(n(ie)?1:-1)*(n(S)/2-n(C)/2)),Q=h(()=>n(ve)*-1);De(()=>{(ne=>{N(S,ne.width,!0),N(C,ne.height,!0)})(Pe())}),De(()=>{(ne=>{N(P,ne.imgSrc,!0),N(M,ne.imgWidth,!0),N(I,ne.imgHeight,!0),N(k,ne.imgOffsetX,!0),N(V,ne.imgOffsetY,!0)})(Me(m()))});function me(){let ne=d()?a.MOBILE:a.DESKTOP,{isVertical:Ee}=J(),j=30;return n(q)?.text&&(j+=16),(Ee||n(z))&&(j+=18,j+=50),Math.min(Math.max(s().height-j,0),ne)}function J(){let ne=e.previewThumbsData.frameWidth,Ee=e.previewThumbsData.frameHeight,j=Ee>ne;return{width:ne,height:Ee,isHorizontal:!j,isVertical:j}}function Pe(){let{height:ne,isHorizontal:Ee,isVertical:j,width:Ue}=J();return Ee&&(ne=ne/Ue*n(oe),Ue=n(oe)),j&&(Ue=Ue/ne*n(oe),ne=n(oe)),{width:Ue,height:ne}}function Me(ne){let Ee;e.previewThumbsData.isUV?Ee=Math.floor(g()*ne/e.previewThumbsData.frequency):Ee=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ne)));let j=Math.floor(Ee/e.previewThumbsData.countPerImage),Ue=Math.floor(Ee%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),tt=Ee%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 ee=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&j===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ee=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Be=n(S)*ee,Xe=n(C)*de,dt=-tt*n(S),at=-Ue*n(C);return{imgSrc:e.previewThumbsData.links[j],imgWidth:Be,imgHeight:Xe,imgOffsetX:dt,imgOffsetY:at}}var Ie=V$();let _e;var Re=_(Ie);{var re=ne=>{var Ee=L$();B(()=>ot(Ee,`width: ${n(S)}px; height: ${n(C)}px; background-image: url(${n(P)}); background-size: ${n(M)}px ${n(I)}px; background-position: ${n(k)}px ${n(V)}px;
225
+ transform: rotate(${r()}deg) ${n(z)?`translate(${n(ve)}px, ${n(Q)}px)`:""};
226
+ `)),b(ne,Ee)};L(Re,ne=>{n(P)&&ne(re)})}var R=E(Re,2),Ze=_(R);{var ue=ne=>{var Ee=Oe(),j=ce(Ee);{var Ue=de=>{var ee=Ur();B(Be=>pe(ee,Be),[()=>F("tooltip_episode_unfinished")]),b(de,ee)},tt=de=>{var ee=Ur();B(()=>pe(ee,n(q).text||"")),b(de,ee)};L(j,de=>{c()&&n(q).completed===!1?de(Ue):de(tt,!1)})}b(ne,Ee)};L(Ze,ne=>{n(q)&&ne(ue)})}v(R);var Fe=E(R,2);{var le=ne=>{var Ee=R$(),j=_(Ee,!0);v(Ee),B(()=>pe(j,l())),b(ne,Ee)};L(Fe,ne=>{c()||ne(le)})}v(Ie),B(ne=>{_e=Z(Ie,1,"timeline-preview svelte-1wqg760",null,_e,ne),ot(Ie,`width: ${n(z)?n(C):n(S)}px;`)},[()=>({mobile:d()})]),b(t,Ie),H(),o()}var B$=A('<span class="time svelte-1jr6obn"> </span>'),O$=A("<!> <!>",1),D$={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 bf(t,e){D(e,!0),U(t,D$);let[i,o]=Le(),r=()=>y(ve,"$interactiveEpisodes$",i),s=()=>y(k,"$duration$",i),a=()=>y(I,"$position$",i),l=()=>y(J,"$isInteractiveExpectation$",i),d=()=>y(me,"$isInteractiveTime$",i),u=()=>y(V,"$isLive$",i),m=()=>y(z,"$isMobile",i),g=()=>y(q,"$isActiveLive$",i),c=()=>y(M,"$bufferedProgress$",i),$=()=>y(Ie,"$disabledControls$",i),w=f(e,"showTimeline",3,!1),x=f(e,"withEpisodes",3,!0),S=f(e,"ref",15,void 0),C=xe(),P=Lt(),M=C.state.bufferedProgress$,I=C.state.positionWithScrubbing$,k=C.state.duration$,V=C.state.isLive$,q=C.state.isActiveLive$,z=C.ui.isMobile,ie=P.features.episodes&&x()?C.actions.internal.getVideoEpisodes():void 0,oe=C.actions.internal.getPreviewThumbsData(),ve=C.state.interactiveEpisodes$,Q=C.state.isInteractive,me=C.state.isInteractiveTime$,J=C.state.isInteractiveExpectation$,Pe=C.actions.internal.correctSeekTimeToInteractive,Me=C.callbacks?.onDisabledTimelineClick,Ie=C.ui.controls.disabledControls$,_e=C.callbacks?.uiInfo?.onTimelineMouseEnter,Re=C.callbacks?.uiInfo?.onTimelineMouseLeave,re=C.ui.t,R=P.features.interactiveResponsiveUi,Ze=h(()=>Q?r():ie),ue=h(()=>qo(s())),Fe=h(()=>qo(a())),le=h(()=>a()/s()),ne=h(()=>l()||d()),Ee=K(!1),j=K(""),Ue=K(0),tt=K(0),de=K(0),ee=h(()=>({containerWidth:n(tt),translateXPx:n(Ue),translateYPx:Q&&oe?-36:-16,active:n(Ee)&&w()&&!n(ne)&&!R,pointer:!P.features.timelinePreview||!oe||u()})),Be=re("aria_timeline"),Xe=h(()=>re("aria_timeline_value",{position:n(Fe),duration:n(ue)}));function dt(se){return!Pe||!Q?se:Pe(se*s())/s()}function at(se){C.actions.internal.startScrubbing(dt(se))}function Mt(se){d()||C.actions.internal.progressScrubbing(dt(se))}function je(se){C.actions.internal.completeScrubbing(dt(se)),N(Ee,!1)}function lt(se,Ve,ke){Qe(se,Ve,ke),N(Ee,!0)}function Bt(se,Ve,ke){Qe(se,Ve,ke),N(Ee,!0)}function zt(){N(Ee,!1)}function Qe(se,Ve,ke){N(de,dt(se),!0),N(Ue,Ve,!0),ke&&N(tt,ke,!0),N(j,gt(se),!0)}function gt(se){let Ve=qo((u()?1-se:se)*s());return u()?`-${Ve}`:Ve}var Se=O$(),Pt=ce(Se);hf(Pt,ns(()=>n(ee),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(se,Ve)=>{var ke=Oe(),qe=ce(ke);{var it=ht=>{_f(ht,{get time(){return n(j)},get isMobile(){return m()},get videoEpisodes(){return n(Ze)},get previewThumbsData(){return oe},get progress(){return n(de)},get duration(){return s()},get isInteractive(){return Q}})},Ne=ht=>{var Ye=B$(),He=_(Ye,!0);v(Ye),B(()=>pe(He,n(j))),b(ht,Ye)};L(qe,ht=>{P.features.timelinePreview&&oe&&!u()?ht(it):ht(Ne,!1)})}b(se,ke)},$$slots:{default:!0}}));var ge=E(Pt,2);let Y=h(()=>$().has("TIMELINE"));na(ge,{className:"timeline-slider",get isActiveLive(){return g()},get isMobile(){return m()},get ariaLabel(){return Be},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return a()},get ariaValueText(){return n(Xe)},get loadedProgress(){return c()},get filledProgress(){return n(le)},get handleProgress(){return n(le)},get videoEpisodes(){return n(Ze)},onPointerDown:at,onHandleMove:Mt,onPointerMove:Bt,onPointerUp:je,onPointerEnter:lt,onPointerLeave:zt,get onMouseEnter(){return _e},get onMouseLeave(){return Re},get onDisabledClick(){return Me},get isInteractive(){return Q},get disabled(){return n(Y)},get hideHandel(){return d()},testId:"progress_bar",get ref(){return S()},set ref(se){S(se)}}),b(t,Se),H(),o()}var H$={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function nd(t,e){D(e,!0),U(t,H$);let[i,o]=Le(),r=()=>y(d,"$isMobile",i),s=f(e,"position",3,0),a=f(e,"duration",3,0),l=xe(),d=l.ui.isMobile,u=l.ui.t,m=h(()=>qo(a())),g=h(()=>qo(s())),c=h(()=>s()/a()),$=h(()=>u("aria_timeline_value",{position:n(g),duration:n(m)})),w=h(()=>Math.round(n(c)*100));na(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return n(w)},get ariaValueText(){return n($)},get filledProgress(){return n(c)},hideHandel:!0,get squareBorders(){return r()}}),H(),o()}var F$=A("<div><!></div>"),U$=A("<div></div>"),z$={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 ra(t,e){D(e,!0),U(t,z$);let[i,o]=Le(),r=()=>y($,"$isLive$",i),s=()=>y(S,"$isMobile",i),a=()=>y(x,"$adPosition",i),l=()=>y(w,"$adDuration",i),d=f(e,"isAds",3,!1),u=f(e,"isHidden",3,!1),m=f(e,"needPadding",3,!0),g=f(e,"ref",15,void 0),c=xe(),$=c.state.isLive$,w=c.ads.duration,x=c.ads.position,S=c.ui.isMobile,C=h(()=>!u()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||d()));var P=Oe(),M=ce(P);{var I=V=>{var q=F$();let z;var ie=_(q);{var oe=Q=>{nd(Q,{get position(){return a()},get duration(){return l()}})},ve=Q=>{bf(Q,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(C)},get withEpisodes(){return e.withEpisodes},get ref(){return g()},set ref(me){g(me)}})};L(ie,Q=>{d()?Q(oe):Q(ve,!1)})}v(q),B(Q=>z=Z(q,1,"timeline svelte-41cp6d",null,z,Q),[()=>({withoutPadding:!m(),mobile:s()})]),b(V,q)},k=V=>{var q=U$();let z;B(ie=>z=Z(q,1,"timeline-stub svelte-41cp6d",null,z,ie),[()=>({mobile:s()})]),b(V,q)};L(M,V=>{n(C)?V(I):V(k,!1)})}b(t,P),H(),o()}import{noop as K$}from"@vkontakte/videoplayer-shared/evergreen";var W$=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function $f(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=W$();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(3),v(o),b(t,o)}var q$=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function yf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=q$();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var Q$=A('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),G$=A('<span class="text svelte-1yhs2ga"> </span>'),j$=A('<span class="text count svelte-1yhs2ga"> </span>'),Y$=A("<!> <!>",1),Z$={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function rd(t,e){D(e,!0),U(t,Z$);let[i,o]=Le(),r=()=>y(w,"$currentGridType$",i),s=()=>y(x,"$openedByKeyboard$",i),a=()=>y(S,"$panelOpened$",i),l=()=>y(C,"$isMobile",i),d=f(e,"position",3,0),u=f(e,"duration",3,0),m=f(e,"timeCodes",19,()=>[]),g=xe(),c=g.callbacks?.onEpisodeChanged??K$,$=!!g.callbacks?.onEpisodeClicked,w=g.ui.currentGridType$,x=g.ui.episodes.openedByKeyboard$,S=g.ui.episodes.panelOpened$,C=g.ui.isMobile,P=g.ui.t,M=K(void 0),I=J=>{if(!!g.callbacks?.onEpisodeClicked){let Me=Ss(J);x.set(Me),S.set(!0),g.callbacks?.onEpisodeClicked?.(Me)}},k=K(null),V=h(()=>d()/u());De(()=>{let J=Hc(n(V),u(),m());J?n(k)?.time!==J.time&&(c(J),N(k,J,!0)):N(k,null)});let q=h(()=>n(k)?.text||""),z=h(()=>Ei(r(),"xl")?"FULL":Ei(r(),"m")&&Sh(r(),"xl")?"COUNT":"SHORT"),ie=h(()=>`${P("tooltip_episodes")}: ${n(q)}`),oe=async(J,Pe,Me)=>{await Zi(),J?.getAttribute("aria-expanded")==="false"&&Pe&&!Me&&yt(()=>{x.set(!1),J.focus()})};De(()=>{oe(n(M),s(),a())});var ve=Oe(),Q=ce(ve);{var me=J=>{let Pe=h(()=>l()?"px-0":""),Me=h(()=>!$);kt(J,{get className(){return`w-max btn-full-opacity btn-jc-l ${n(Pe)??""}`},testId:"btn-episodes",click:I,get disabled(){return n(Me)},get ariaExpanded(){return a()},get ariaLabel(){return n(ie)},get ref(){return n(M)},set ref(Ie){N(M,Ie,!0)},children:(Ie,_e)=>{var Re=Oe(),re=ce(Re);{var R=ue=>{var Fe=Q$(),le=ce(Fe),ne=_(le,!0);v(le);var Ee=E(le,2),j=_(Ee);yf(j,{}),v(Ee),B(()=>pe(ne,n(q))),b(ue,Fe)},Ze=ue=>{var Fe=Y$(),le=ce(Fe);$f(le,{});var ne=E(le,2);{var Ee=Ue=>{var tt=G$(),de=_(tt,!0);v(tt),B(()=>pe(de,n(q))),b(Ue,tt)},j=(Ue,tt)=>{{var de=ee=>{var Be=j$(),Xe=_(Be,!0);v(Be),B(()=>pe(Xe,m().length)),b(ee,Be)};L(Ue,ee=>{n(z)==="COUNT"&&ee(de)},tt)}};L(ne,Ue=>{n(z)==="FULL"?Ue(Ee):Ue(j,!1)})}b(ue,Fe)};L(re,ue=>{l()?ue(R):ue(Ze,!1)})}b(Ie,Re)},$$slots:{default:!0}})};L(Q,J=>{n(k)&&J(me)})}b(t,ve),H(),o()}import{debounceFn as Uh}from"@vkontakte/videoplayer-shared/evergreen";import{ChromecastState as r2,PlaybackState as sd,Player as s2,PredefinedQualityLimits as Qr,VideoFormat as ad,clientChecker as a2}from"@vkontakte/videoplayer-core/evergreen";import{assertNonNullable as On,getHighestQuality as l2,InterfaceLanguage as d2,isInvariantQuality as c2,isNonNullable as u2,loadVKLangPack as p2,Logger as f2,map as Vh,merge as m2,Observable as Nh,Subject as jc,Subscription as kf,TracerFactory as v2,ValueSubject as g2,VideoQuality as h2,devNull as _2,now as b2,filter as $2,once as y2}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as ls}from"@vkontakte/videoplayer-statistics/evergreen";import{detectEmbed as X$,devNull as Ht,now as Ft}from"@vkontakte/videoplayer-shared/evergreen";import{addScript as J$,Subject as Lo,clearVideoElement as e2}from"@vkontakte/videoplayer-shared/evergreen";var Ih=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var t2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Fc=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new Lo,loadStarted$:new Lo,loadEnded$:new Lo,loadError$:new Lo,ready$:new Lo,slotRequested$:new Lo,started$:new Lo,timeRemained$:new Lo,paused$:new Lo,resumed$:new Lo,ended$:new Lo,empty$:new Lo,skipped$:new Lo,clicked$:new Lo,closed$:new Lo,error$:new Lo};this.loadAdman=e=>(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Ft()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Ft()]}),i(),this.events.loadEnded$.next()):(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Ft()]}),o())};J$(t2,e,this.loadTimeout).then(()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Ft()]}),window.AdmanHTML?(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Ft()]}),i(),this.events.loadEnded$.next()):(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Ft()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(a=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(a)],numbers:[Ft()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Ft()]}),i(),this.events.loadEnded$.next()):(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Ft()]}),o())},a=()=>{l=!0,o()},l=!1,d=window.setTimeout(()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Ft()]}),a()},this.loadTimeout);e.addEventListener("abort",a),e.aborted&&(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Ft()]}),a()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(l)],numbers:[Ft()]}),!l&&(window.AdmanHTML?(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Ft()]}),i(),this.events.loadEnded$.next()):(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Ft()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout)))},a).finally(()=>{clearTimeout(r),clearTimeout(d),e.removeEventListener("abort",a)})});this.onAdsReady=()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Ft()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Ft(),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"}),he(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=()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",this.currentAdSection??""],numbers:[Ft()]}),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=()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",this.currentAdSection??""],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Ft()]}),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=()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",this.currentAdSection??""],numbers:[Ft()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",this.currentAdSection??""],numbers:[Ft()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",this.currentAdSection??""],numbers:[Ft()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",this.currentAdSection??""],numbers:[Ft()]}),this.log({message:"ad clicked"}),this.videoElement?.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Ft()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Ft(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:r,isAutoplay:s,adsContainer:a,adsVideoElement:l,slotId:d,params:u={},duration:m,previewParam:g}=e,c,$=this.playerState&&he(this.playerState.vsid);$&&(this.isVsidOriginal?c=$:c=parseInt($,36));let{isEmbed:w,immediateOrigin:x}=X$(),S=(w?x:window.location.href)??window.location.href,C={...u,dl:encodeURIComponent(S),autoplay:s?1:0,player_width:i,player_height:o,preview:g,...c?{request_id:c}:{},duration:m,puid10:Ih(i,o),puid11:r?0:1};g||delete C.preview;let P={slot:d,wrapper:a,videoEl:l,videoQuality:o,params:C,browser:{mobile:!1}};try{let M=new window.AdmanHTML;M.setDebug(!1),M.onReady(this.onAdsReady),M.onStarted(this.onAdStarted),M.onPlayed(this.onAdPlayed),M.onPaused(this.onAdPaused),M.adMidrollPoint(this.onAdMidrollPoint),M.onClosed(this.onAdClosed),M.onSkipped(this.onAdSkipped),M.onClicked(this.onAdClicked),M.onTimeRemained(this.onAdTimeRemained),M.onCompleted(this.onAdCompleted),M.onError(this.onAdError),M.init(P),this.adman=M,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(P)}`})}catch(M){Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(M)],numbers:[Ft()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){if(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",this.currentAdSection??"","force: "+e],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",this.currentAdSection??""],numbers:[Ft()]}),this.adsState){this.log({message:"toggle play"});let e=he(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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",this.currentAdSection??""],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",this.currentAdSection??""],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",this.currentAdSection??""],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",this.currentAdSection??""],numbers:[Ft()]}),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(){Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Ft()]}),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&&e2(this.videoElement),this.isDestroyed=!0}};var Ph=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 xf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let s of r){let a={startTime:0,endTime:0,texts:[],lang:i},l=s.split(this.oneLineRegExp);for(let d of l)if(!a.startTime&&!a.endTime){let u=new Uc,{startTime:m,endTime:g}=u.parse(d);a.startTime=m,a.endTime=g}else if(d.trim()!==""){let u=new wf,{texts:m}=u.parse(d);a.texts=[...a.texts,...m]}(a.startTime||a.endTime)&&a.texts.length>0&&o.push(a)}return o}},Uc=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let s=Number(e)*60*60,a=Number(i)*60,l=Number(o),d=+`0.${r}`;return s+a+l+d}},wf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](a){let l=0,d=[];for(;l<a.length;){let u=["<",">"].reduce((m,g)=>{let c=a.indexOf(g,l);return m===-1||m>c?c:m},-1);if(u===-1){d.push(a.substring(l));break}d.push(a.substring(l,u)),l=u+1}return d}}),s=new Uc;for(let a of r)s.isTime(a)?i.texts.push({type:"timestamp",value:s.parseTime(a)}):i.texts.push({type:"text",value:a});return i}},Ah=xf;import{isNonNullable as Sf}from"@vkontakte/videoplayer-shared/evergreen";var sa,or,Cf=0,Tf=!1,Mh="",Lh=(t,e=0,i=0)=>t<e&&t<i,zc=(t,e=0,i=0)=>t>=e&&t<=i,i2=(t,e=0,i=0)=>t>e&&t>i,Rh=(t,e,i,o=!1)=>{let r=i.find(({id:l})=>l===e.value)?.subtitles;if(o)return r?.find(({startTime:d,endTime:u})=>zc(t,d,u));let s=t>=Cf,a=t<Cf;if(Cf=t,a&&(Tf=!1),Sf(sa)&&zc(t,sa.startTime,sa.endTime)&&Mh===e.value)return sa;if(!Sf(or)&&r?.length&&!Tf){or=r.find(({startTime:d,endTime:u})=>zc(t,d,u)||s&&Lh(t,d,u)),sa=void 0,!Sf(or)&&r[r.length-1].endTime<t&&(Tf=!0);return}else{if(zc(t,or?.startTime,or?.endTime))return sa=or,or=void 0,Mh=e.value,sa;(s&&i2(t,or?.startTime,or?.endTime)||a&&Lh(t,or?.startTime,or?.endTime))&&(or=void 0)}};var Wc={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},o2={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},qc=t=>Wc[t]??Wc[o2[t]]??void 0;import{Subscription as n2}from"@vkontakte/videoplayer-shared/evergreen";import"@vkontakte/videoplayer-statistics/evergreen";var Kc=class{constructor(e,i,o,r=new n2){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){this.oneStat?.destroy(),this.thinOneStat?.destroy(),this.mediascopePixel?.destroy(),this.statSubscription.unsubscribe()}};var Qc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Qc||{});var Kr=t=>t??0,as=(t,e)=>{let i=t?.getBoundingClientRect?.(),o=e?.getBoundingClientRect?.();return{top:Math.round(Kr(i?.top)-Kr(o?.top)),left:Math.round(Kr(i?.left)-Kr(o?.left)),bottom:Math.round(Kr(i?.bottom)-Kr(o?.top)),right:Math.round(Kr(i?.right)-Kr(o?.left))}},Qa=t=>{let e=t?.getBoundingClientRect?.();return{width:Kr(e?.width),height:Kr(e?.height)}};var Gc="off";var Bh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:a,canDownload:l,callbacks:d,webApi:u,videoEpisodes:m,previewThumbsData:g,uiConfig:c,coreConfig:$,player:w,disabledControls:x,isInteractive:S,interactiveRanges$:C,isInteractiveTime$:P,replayInteractive:M,stopPlayer:I,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:V,additionalButtons:q,additionalSettingsMenuItems:z,additionalContextMenuItems:ie,playPrevVideo:oe,playNextVideo:ve,looped:Q=!1,statistics:me,saveRate:J,internalsExposure:Pe,playerView:Me})=>{let Ie={...$,configName:[...$.configName??[],"ui"],isAudioDisabled:a,live:{...$.live??{},isLiveCatchUpMode:!!r}},_e=c,Re=v2.createRootTracer(_e.features.tracer),re=Re.createComponentTracer("Store"),R=w||new s2(Ie,Re);Pe?.expose({corePlayer:R});let Ze=new f2,ue=new Fc(Ze,{loadTimeout:_e.ads.loadTimeout,initTimeout:_e.ads.initTimeout,runtimeTimeout:_e.ads.runtimeTimeout,useAdmanFromNPM:_e.ads.useAdmanFromNPM,volumeMultiplier:_e.ads.volumeMultiplier,isVsidOriginal:_e.ads.isVsidOriginal}),Fe=js.getInstance(),le=u?.pictureInPictureApi,ne=u?.annotationsApi,Ee=u?.slotsApi,j=Ze.createComponentLog("Store"),Ue,tt,de={},ee=new _c,Be=new kf,Xe=me&&me.oneStat?Ut(me.oneStat.vsid$):tr(void 0),dt=te(ys()),at=te(!1),Mt=le?.info.isActive$??new g2(!1),je=te(0),lt=te([]),Bt=m2(R.events.fatalError$,R.events.managedError$).subscribe(p=>lt.update(T=>[...T,p])),zt=tr(!1,p=>{let T=R.events.fatalError$.subscribe(()=>p(!0));return()=>T.unsubscribe()}),Qe=async p=>{let T=Object.values(d2).includes(p);if(_e.downloadVKLanguages&&(T&&_e.updateBuiltinLanguages||!Pp(p))){let be;try{be=await p2(p,$g,yg)}catch(et){me?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),Fe?.report(et,{errorType:"VKLangPack",fatal:!1})}be&&(Ip({language:p,pack:be,fallback:_e.defaultLanguage}),gt.set(p))}Pp(p)&&gt.set(p)},gt=te(t),Se=te(e);Qe(t);let Pt=(p,T)=>{let O=he(gt);return Ap(O,p,T,_e.defaultLanguage)},ge=te("thumb"),Y=(()=>{let p=ni([zt,ge],([T,O])=>T?"crashed":O);return{...p,is:T=>he(p)===T}})(),se=(()=>{let p=te(new Set(x));return{...p,add:T=>{p.update(O=>new Set([...O].concat(T)))},remove:T=>{p.update(O=>{let be=[...O];return new Set(Array.isArray(T)?be.filter(et=>!T.includes(et)):be.filter(et=>et!==T))})},includes:T=>{let O=he(p);return Array.isArray(T)?T.every(be=>O.has(be)):O.has(T)}}})();re.log("create store"),j({message:"create store"});let Ve=p=>{let T=p.container,O=()=>{He=new MutationObserver(et=>{let{removedNodes:ft}=et[0];ft.length&&T.append(R.experimental.element$.getValue())}),He.observe(T,{childList:!0})},be=R.experimental.element$.getValue();if(be)T.append(be),O();else{let et=R.experimental.element$.pipe($2(ft=>!!ft),y2()).subscribe(ft=>{T.append(ft),O()});Be.add(et)}},ke=p=>{j({message:`init video, config: ${JSON.stringify(p)}`}),S?Ve(p):(_2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[b2()]}),R.initVideo(p)),re.log("init video",{isInteractive:S}),p.subtitles&&R.setExternalTextTracks(p.subtitles),Ue=p},qe=new jc,it=p=>qe.next(p),Ne=new jc,ht=new jc,Ye=new jc,He=null,jt={actionRewind$:Ne,actionSeek$:ht,inPiP$:Mt,inFullscreen$:new Nh(p=>dt.subscribe(T=>p.next(T))),actionSetSubtitle$:Ye,nextMovie$:qe},Ni={actionSeek$:ht,playerSize$:new Nh(p=>ri.subscribe(T=>p.next(T)))};if(me){let{oneStat:p,thinOneStat:T,mediascopePixel:O,statSubscription:be}=me;p&&(S||be.add(p.attachTo(R)),be.add(p.attachToUi(jt)),be.add(p.attachToAds(ue.events)),p.authorize(s).catch(et=>{j({message:`onestat auth error ${String(et)}`})}),O&&O.attachTo(R)),T&&(be.add(T.attachTo(R)),be.add(T.attachToUi(Ni)),T.authorize(s))}if(Fe){let p=new kf,T=(O,be)=>p.add(O.subscribe(be));if(T(R.events.managedError$,O=>{Fe.logIError(O)}),T(R.events.fatalError$,O=>{Fe.logIError(O,!0)}),me){let{oneStat:O}=me;O&&T(O.experimental.error$,be=>{Fe.logIError(be)})}Fe.sentrySubscription.add(p)}let Bi=()=>{a2.device.isIOS&&tt&&nh(tt).catch(p=>{j({message:`exitIosSafariFullscreen failed: ${p}`})})};Be.add(R.experimental.element$.subscribe(p=>{p&&(tt=p,p.classList.add("player-media"),Zs(le)&&(le.updateVideoElement(),le.registryEventHandlers()),S&&p.setAttribute("pip","false"),Me==="preview"&&(p.setAttribute("disablePictureInPicture","true"),p.setAttribute("x-yandex-pip","false")))})).add(R.events.ended$.subscribe(()=>{Bi(),d?.onEnded?.()})).add(R.events.looped$.subscribe(()=>{d?.onLooped?.()})).add(R.events.started$.subscribe(async()=>{Zs(le)&&await le?.revealPictureInPicture();let p=R.info.muted$.getValue();d?.onStarted?.(),de.onStarted?.(p)})).add(R.events.willSeek$.subscribe(({from:p,to:T})=>{d?.onSeek?.(p,T)})).add(R.events.autoplaySoundProhibited$.subscribe(()=>{d?.onAutoplaySoundProhibited?.()})).add(R.info.position$.subscribe(p=>{let T=R.info.duration$.getValue();isFinite(T)&&T>0&&(d?.onTimeupdate?.(T,p),ue.setPosition(p,T))})).add(R.events.fatalError$.subscribe(p=>{d?.onCrashed?.(p?`${p.id}: ${p.message}`:void 0)})).add(R.events.fetcherRecoverableError$.subscribe(p=>{d?.onRecoverableError?.(p?`${p.id}: ${p.message}`:void 0)})).add(R.events.loadedMetadata$.subscribe(()=>{Ct.state.loadedMetadata$.set(!0)})).add(R.info.is3DVideo$.subscribe(p=>{Ct.ui.is3DVideo.set(p)})).add(R.info.isEnded$.subscribe(p=>{S&&(p?(P?.getValue()&&se.add(Ll),se.add("PLAY_BUTTON")):se.remove("PLAY_BUTTON"))})).add(R.info.liveTime$.subscribe(p=>{d?.onLiveTime?.(p)})).add(R.info.isStalled$.subscribe(p=>{d?.onStalledChanged?.(p)})).add(R.info.isLiveEnded$.subscribe(p=>p&&d?.onLiveEnded?.())).add(ue.events.loadStarted$.subscribe(()=>d?.adsInfo?.onLoadStarted?.())).add(ue.events.loadEnded$.subscribe(()=>d?.adsInfo?.onLoadEnded?.())).add(ue.events.loadError$.subscribe(()=>d?.adsInfo?.onLoadError?.())).add(ue.events.init$.subscribe(()=>d?.adsInfo?.onInit?.())).add(ue.events.ready$.subscribe(()=>d?.adsInfo?.onReady?.())).add(ue.events.started$.subscribe(p=>d?.adsInfo?.onStarted?.(p))).add(ue.events.timeRemained$.subscribe(p=>d?.adsInfo?.onTimeRemained?.(p))).add(ue.events.ended$.subscribe(p=>d?.adsInfo?.onCompleted?.(p))).add(ue.events.empty$.subscribe(()=>d?.adsInfo?.onEmpty?.())).add(ue.events.clicked$.subscribe(p=>d?.adsInfo?.onClicked?.(p))).add(ue.events.closed$.subscribe(p=>d?.adsInfo?.onClosed?.(p))).add(ue.events.error$.subscribe(p=>d?.adsInfo?.onError?.(p))).add(ue.events.paused$.subscribe(()=>d?.adsInfo?.onPaused?.())).add(ue.events.resumed$.subscribe(()=>d?.adsInfo?.onResumed?.()));let ho=new kf,Ko=()=>{let{debugLog:p}=_e,T,O="#9df7b7",be="#efd169";if(p&&p!==!0){let{colors:ft}=p;T=p.tag,O=ft?.[0]??O,be=ft?.[1]??ft?.[0]??be}let et=T?`: ${T}`:"";ho.add(R.events.log$.subscribe(ft=>{console.debug(`%c sdk${et} `,`background:${O};`,`sdk component: ${ft.component}`,ft.message)})).add(Ze.log$.subscribe(ft=>{console.debug(`%c ui${et} `,`background:${be};`,`ui component: ${ft.component}.`,ft.message)}))},cn=()=>{ho.unsubscribe()},Qo=(p,T)=>{re.log("start camera manual rotation",{mx:p,my:T}),R.startCameraManualRotation(p,T)},Vo=(p=!1)=>{re.log("stop camera manual rotation",{immediate:p}),R.stopCameraManualRotation(p)},Wi=(p,T,O)=>{re.log("move camera focus px",{xpx:p,ypx:T,dt:O}),R.moveCameraFocusPX(p,T,O)},Wt=()=>{R.holdCamera()},Go=()=>{R.releaseCamera()},_o=tr(R.info.position$.getValue(),p=>{let T,O,be=()=>{let et=R.info.playbackState$.getValue(),ft=R.info.isLive$.getValue(),Nt=R.info.duration$.getValue(),Zt=R.info.position$.getValue();if(et&&[sd.PLAYING,sd.PAUSED].includes(et)){let Io=ft?Zt-Nt:R.getExactTime();Io!==O&&p(Io),O=Io}T=requestAnimationFrame(be)};return be(),()=>cancelAnimationFrame(T)}),eo=Ut(R.info.playbackState$),to=Ut(R.info.currentBuffer$),G=Ut(R.info.isEnded$),Gt=Ut(R.info.isLive$),Xt=_e.features.playbackRate?Ut(R.info.canChangePlaybackSpeed$):tr(!1),Oi=Ut(R.info.liveBufferTime$),ti=Ut(R.info.volume$),Jt=Ut(R.info.muted$),Tt=bc(R.info.predefinedQualityLimitType$.pipe(Vh(p=>p===Qr.TRAFFIC_SAVING)),R.info.predefinedQualityLimitType$.getValue()===Qr.TRAFFIC_SAVING),vt=bc(R.info.predefinedQualityLimitType$.pipe(Vh(p=>p===Qr.HIGH_QUALITY)),R.info.predefinedQualityLimitType$.getValue()===Qr.HIGH_QUALITY),Rt=Ut(R.info.autoQualityLimitingAvailable$),bo=Ut(R.info.availableQualities$),Pi=Ut(R.info.availableQualitiesFps$),Dn=Ut(R.info.chromecastState$),mi=Ut(R.info.chromecastDeviceName$),$o=Ut(R.info.currentFormat$),si=Ut(R.info.throughputEstimation$),pt=Ut(R.info.videoBitrate$),vi=Ut(R.info.intrinsicVideoSize$),yo=Ut(R.info.duration$),un=Ut(R.info.isAudioAvailable$),Yt=null,ui=R.info.isBuffering$,xo=tr(ui.getValue(),p=>{let T=ui.subscribe(O=>{O&&Yt===null?Yt=window.setTimeout(()=>{p(ui.getValue()),Yt=null},_e.loaderDelay):p(O)});return()=>{T.unsubscribe(),Yt&&clearTimeout(Yt)}}),pn=()=>{Yt&&clearTimeout(Yt),Yt=null},wo=ni([yo,Gt],([p,T])=>T?-p:p),io=ni([eo],([p])=>p===sd.PLAYING),jo=Ut(R.info.atLiveEdge$),No=Ut(R.info.atLiveDurationEdge$),qi=Ut(R.info.position$),oo=ni([qi,yo],([p,T])=>isFinite(p)&&isFinite(T)&&!!T),Tr=ni([Dn],([p])=>p===r2.CONNECTED),nr=Ut(R.info.availableVideoStreams$),Hn=_e.features.audioLanguages?Ut(R.info.availableAudioStreams$):tr([]),Fn=Ut(R.info.currentVideoStream$),Un=Ut(R.info.currentAudioStream$),fn=p=>{p.language&&Ep(p.language),R.setVideoStream(p)},Gr=p=>{p.language&&Ep(p.language),R.setAudioStream(p)},mn=p=>{let T;if(p.length===1&&(T=p.at(0)),T??=p.find(be=>"isDefault"in be&&be.isDefault),T)return T;let O=Wg();return O&&(T=p.find(({language:be})=>O===be)),T??=p.at(0),T},gi=!1;Be.add(R.info.availableAudioStreams$.subscribe(p=>{if(!gi&&p.length){let T=mn(p);T&&(R.setAudioStream(T),gi=!0)}}));let vn=!1;Be.add(R.info.availableVideoStreams$.subscribe(p=>{if(!vn&&p.length){let T=mn(p);T&&(R.setVideoStream(T),vn=!0)}}));let Bo=te(void 0),Oo=Ut(R.info.isAutoQualityEnabled$,p=>p&&Bo.set(void 0)),gn=Ut(R.info.currentQuality$,()=>Bo.set(void 0)),hn=ni([Bo,gn],([p,T])=>p??T),So=ni($o,p=>p!==ad.MPEG),kr=ni([bo,Pi,Oo,hn,So],([p,T,O,be,et])=>{let ft=[];et&&ft.push({value:"auto",displayValue:Pt("auto_quality_option"),selected:O});let Nt=p.filter(Zt=>!c2(Zt));for(let Zt of Nt){let Io=T[Zt];ft.push({value:Zt,displayValue:`${Zt}${Io?Ph(Io):""}`,selected:O?!1:Zt===be})}return ft}),_n=Ut(R.info.currentPlaybackRate$),zn=ni([_n,jo,No],([p,T,O])=>{let be=O||S?1:_e.controls.playbackRateMin,et=T?1:_e.controls.playbackRateMax,ft=_e.controls.playbackRateStep,Nt=[];for(let Zt=be;Zt<=et;Zt+=ft)Nt.push({value:Zt,displayValue:Zt===1?Pt("playback_rate_1"):Pt("playback_rate",{multiplier:Zt.toString(10)}),selected:p===Zt});return Nt}),wi={displayValue:Pt("subtitles_off"),value:Gc},no=te({...wi}),nt=_e.features.subtitles?Ut(R.info.availableTextTracks$):tr([]),ai=Vg(),rr=ni([nt,no],([p,T],O)=>{let be=[],et=p.find(({id:ft})=>ft===T.value);if(et?.url){let[,ft]=ai.find(et.url)??[];if(ft){O(ft);return}ee.download(et.url).then(Nt=>{if(!Nt||ee.isDestroyed())return;let Zt=new Ah,Io=et.language;if(Io){let wu=!!et.isAuto,T1=Zt.parse(Nt,Io);be.push({lang:Io,subtitles:T1,isAuto:wu,id:et.id})}ai.add(et.url,be),he(no).value===T.value&&O(be)}).catch(Nt=>{me?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),Fe?.report(Nt,{errorType:"Subtitles download",fatal:!1})})}O(be)}),bn=ni([_n,io,no],([p,T,O],be)=>{let Nt;if(R.info.isLive$.getValue()&&T&&O.value!==wi.value){let Io=()=>{let wu=1e3/(3*p);Nt=setTimeout(Io,wu),be(Date.now())};return Io(),()=>clearTimeout(Nt)}}),Yo=ni([nt,no],([p,T])=>{if(!p.length)return[];let O=[];for(let{language:be,isAuto:et,id:ft}of p){let Nt=be&&qc(be);be&&Nt&&O.push({displayValue:et?Pt("subtitles_auto",{language:Nt}):Nt,value:ft,selected:T?.value===ft,isAuto:et})}return O.length?(O.unshift({...wi,selected:T?.value===wi.value}),O):[]}),hi={available:[],prev:[]},$n=()=>R.experimental.getCurrentTime$.getValue()?.()??tt?.currentTime??0,ro=ni([_o,no,rr,bn],([p,T,O,be])=>{let et=R.info.isLive$.getValue();if(et&&hi.prev!==O){let ft=O.find(({id:Zt})=>Zt===T.value),Nt=hi.prev.find(({id:Zt})=>Zt===T.value);if(ft){let Zt={...ft,subtitles:[...Nt?.subtitles??[],...ft.subtitles]};hi.available=[Zt],hi.prev=O}}if(T&&T.value!==wi.value){let ft=et?$n():p,Nt=et?hi.available:O;return Rh(ft,T,Nt,et)}}),yn=ni([ro],([p])=>p?.texts?p.texts:[]);Be.add(no.subscribe(p=>{if(p.value===wi.value)d?.onSubtitleOff?.();else{let T=Object.entries(Wc).find(([O,be])=>be===p.displayValue);d?.onSubtitleOn?.(T?T[0]:"")}}));let so=te(!0),xn=ni([to,wo,qi,Oi],([p,T,O,be])=>{let et=p?.end??0;if(!be)return et/T;let Nt=-O+be-T;return(et-Nt)/T}),wn=Ut(R.info.availableSources$),Wn=ni([wn],([p])=>Object.keys(p?.[ad.MPEG]||{}).length>0),sr=()=>{let p=Object.keys(R.info.availableSources$?.getValue()?.[ad.MPEG]||{}),T=l2(p)||h2.Q_144P;return Ue.sources[ad.MPEG]?.[T]},qn=()=>{let p=sr();if(p)re.log("download video",{url:p}),Mg(p,Ue?.meta?.title||"video");else{let T="There is no URL for download video";re.log("download video",{message:T}),j({message:T})}},Co=()=>{j({message:"toggle muted"});let p=R.info.muted$.getValue();R.info.volume$.getValue()===0&&!p?Ki(Ot()):ao(!p)},Er=()=>{if(Ct.ui.settingsMenu.visible$.set(!1),!he(Ct.ui.settingsSubMenu.visible$)){let p=he(Ct.ui.settingsMenu.ref$);if(d?.uiInfo?.onSettingsMenu&&p){let O=Qa(p),be={top:0,left:0,bottom:0,right:0};d.uiInfo.onSettingsMenu({visible:!1,size:O,position:be,name:"settings"})}}re.log("close settings menu")},Kn=async(p,T=()=>Promise.resolve())=>{Ct.ui.settingsMenu.openedByBtnKeyboard$.set(!!p),Ct.ui.settingsMenu.visible$.set(!0),await T();let O=he(Ct.ui.settingsMenu.ref$),be=ha();if(d?.uiInfo?.onSettingsMenu&&O&&be){let ft=Qa(O),Nt=as(O,be);d.uiInfo.onSettingsMenu({visible:!0,size:ft,position:Nt,name:"settings"})}re.log("open settings menu",{wasOpenedByKeyboard:p})},ar=(p,T=!1)=>{Ct.ui.settingsSubMenu.visible$.set(!1);let O=he(Ct.ui.settingsMenu.ref$),be=ha(),et=he(Ct.ui.settingsMenu.visible$);if(d?.uiInfo?.onSettingsMenu&&O&&be)if(et&&!T){let Nt=Qa(O),Zt=as(O,be);d.uiInfo.onSettingsMenu({visible:!0,size:Nt,position:Zt,name:"settings"})}else{let Nt=Qa(p),Zt={top:0,left:0,bottom:0,right:0},Io=he(Ct.ui.settingsSubMenu.name$);d.uiInfo.onSettingsMenu({visible:!1,size:Nt,position:Zt,name:Io})}re.log("close settings sub menu")},Do=(p,T)=>{Ct.ui.settingsSubMenu.visible$.set(!0),Ct.ui.settingsSubMenu.ref$.set(T),Ct.ui.settingsSubMenu.name$.set(p);let O=ha();if(d?.uiInfo?.onSettingsMenu&&T&&O){let et=Qa(T),ft=as(T,O);d.uiInfo.onSettingsMenu({visible:!0,name:p,size:et,position:ft})}re.log("open settings sub menu",{name:p})},Ot=()=>{let p=Math.max(_e.volumeMinRestore,$c()??0);return p===0?_e.volumeDefault:p},Ki=p=>{let T=p===0?Ot():p,O=R.info.muted$.getValue();j({message:`set volume, volume: ${p}, preferredVolume: ${T}`});let be=!a||Y.is("ads");O&&p>0&&be&&(O=!1,Tp(!1)),R.setVolume(p,O),ue.setVolume(p),yp(T)},ao=p=>{let T=R.info.volume$.getValue();if(j({message:`set muted, currentVolume: ${T}, mute: ${p}`}),R.setMuted(p,Y.is("ads")),ue.setVolume(p?0:T),Tp(p),!p&&T===0){let O=Ot();R.setVolume(O),yp(O),ue.setVolume(O)}},Qn=te(!1),lr=p=>{re.log("set looped",{isLooped:p}),Qn.set(p),R.setLooped(p),d?.uiInfo?.onLoopedChanged?.(p)};lr(Q);let pi=()=>{d?.uiInfo?.onReportProblem?.()},jr=(p,T=!1)=>{j({message:`set autoplayNextEnabled, value: ${p}`}),re.log("set autoplay next enabled",{autoplayNextEnabled:p}),Ct.ui.autoplayNextEnabled$.set(p),Qg(p),T&&d?.onSetAutoplayNextEnabled?.(p)},_t=p=>{j({message:`set timerNextVideoRunning, value: ${p}`}),re.log("set timer next video running",{timerNextVideoRunning:p}),Ct.ui.timerNextVideoRunning$.set(p)},Vt=(p=!0)=>{let T=!0;if(p&&d?.onPrevVideoClick)try{T=d?.onPrevVideoClick?.()}catch{j({message:"onPrevVideoClick callback failed to execute"})}if(!T)return;p&&Ho("prev")||oe()},To=(p=!0)=>{let T=!0;if(p&&d?.onNextVideoClick)try{T=d?.onNextVideoClick?.()}catch{j({message:"onNextVideoClick callback failed to execute"})}if(!T)return;p&&Ho("next")||ve()},Ho=p=>{let{isMobile:T,features:{playbackStatusNextVideoShow:O,playbackStatusShow:be}}=_e;return O&&be&&!T?(Ct.ui.aboutToGoNextVideo.set(p),Ct.ui.userActionsDisabled.set(!0),!0):!1},dr=()=>{d?.onNextVideoAnnouncementShow?.()},cr=()=>{d?.onNextVideoAnnouncementClick?.()},ko=()=>{d?.onNextVideoAnnouncementAuto?.()},Ir=()=>{d?.onNextVideoAnnouncementCancel?.()},Pr=()=>{R.prepare()},Yr=()=>{On(Ct);let p=he(Ct.ui.controls.disabledControls$),T=he(Ct.playerPhase),O={playerPhase:T,isInteractive:S,isVideoEnded:!1,action:"none"};if(p.has("PLAY_BUTTON"))return;if(j({message:"toggle play"}),T==="ads"){O.action="play",re.log("toggle adman play",O),ue.togglePlay();return}let be=()=>{j({message:"toggle play, call player.play"}),O.action="play",R.play(),d?.onPlay?.()},et=()=>{j({message:"toggle play, call player.pause"}),O.action="pause",R.pause(),d?.onPause?.()};if(R.info.isEnded$.getValue()){if(j({message:"toggle play, video ended, seek to 0"}),Ne.next(),ht.next(ls.REWIND),S){M?.();return}R.seekTime(0),be()}else R.info.playbackState$.getValue()!==sd.PLAYING?be():et();re.log("toggle play",O)},rt=(p,{changeReason:T="default",appliesTo:O="to-video"}={})=>{j({message:`set quality, quality: ${p}`}),re.log("set quality",{quality:p}),R.setAutoQuality(p==="auto"),p!=="auto"?(_e.features.qualityDetailsSubMenuEnabled?(yc({type:"exact_quality",quality:p,videoId:i},O),Vl(),R.setPredefinedQualityLimits(Qr.UNKNOWN)):xp(i,p),Bo.set(p),R.setQuality(p)):_e.features.qualityDetailsSubMenuEnabled?T==="default"&&(Si("auto_quality",O),he(Tt)&&Et(!1),he(vt)&&qt(!1)):Vl()},Et=(p,T="as-default")=>{j({message:`set trafficSavingEnabled, value: ${p}`}),re.log("set traffic saving enabled",{trafficSavingEnabled:p});let O=p?Qr.TRAFFIC_SAVING:Qr.UNKNOWN;_e.features.qualityDetailsSubMenuEnabled?(Ai(O,T),Rl(!1)):(R.setPredefinedQualityLimits(O),Rl(p))},qt=(p,T="as-default")=>{j({message:`set highQualityEnabled, value: ${p}`}),re.log("set high quality enabled",{highQualityEnabled:p}),Ai(p?Qr.HIGH_QUALITY:Qr.UNKNOWN,T)},Ai=(p,T)=>{p!==Qr.UNKNOWN&&(he(Rt)&&!he(Oo)&&rt("auto",{appliesTo:T,changeReason:"limit-changed"}),Si(p,T)),R.setPredefinedQualityLimits(p)},Si=(p,T)=>{yc({type:p,videoId:i},T),T==="as-default"&&yc({type:p,videoId:i},"to-video")},Qi=p=>{re.log("set playback rate",{playbackRate:p}),R.setPlaybackRate(p),_e.features.saveRate&&J&&!R.info.isLive$.getValue()&&qg(p)},lo=()=>{let p=he(zn),T=p.findIndex(({selected:be})=>be);if(T===p.length-1)return;let O=p[T+1];Qi(O.value)},Zo=()=>{let p=he(zn),T=p.findIndex(({selected:be})=>be);if(T===0)return;let O=p[T-1];Qi(O.value)},Di=(p={...wi,selected:!1})=>{re.log("set subtitles",{...p}),p&&p.value!==wi.value&&Ye.next(p.isAuto?p.value+"_auto":p.value),no.set(p)},_i=()=>{re.log("toggle subtitles");let p=he(Yo),T=he(no),O=he(gt);if(T?.value===wi.value){let be=p.filter(et=>et.value!==wi.value).find(et=>et.value===O)||p[1];Di(be)}else Di()},Ci=te(!0),Eo=p=>{Ci.set(p)},Hi=(p,T,O=!0)=>{if(j({message:`seek to time, time: ${p}`}),re.log("seek to time",{time:p,action:T,forcePrecise:O}),ht.next(T),R.info.isLive$.getValue()){let be=R.info.duration$.getValue(),et=Math.min(0,be+p);R.seekTime(et,O)}else{if(P?.getValue())return;R.info.isEnded$.getValue()&&(j({message:"seek after ended, call callbacks.onPlay"}),d?.onPlay?.()),R.seekTime(fs(p),O)}},co=p=>{j({message:`seek to episode start time: ${p}`}),re.log("seek to episode start time",{time:p}),Hi(p,ls.EPISODE,!0)},ur=(p,T)=>{j({message:`seek to percent, percent: ${p}`}),re.log("seek to percent",{percent:p,action:T});let O=he(wo)*p;Hi(O,T,!1)},Sn=p=>{j({message:`seek external, time: ${p}`}),re.log("seek external",{time:p}),ht.next(ls.UNKNOWN),R.seekTime(R.info.isLive$.getValue()?-p:p)},pr=p=>{let T=p.max??"none",O=p.min??"none";j({message:`set auto quality limitation. Max: ${T}. Min: ${O}`}),re.log("set auto quality limits",{max:T,min:O}),R.setAutoQualityLimits(p)},Ar=p=>{j({message:`seek external to episode start time: ${p}`}),re.log("seek external to episode start time",{time:p}),Hi(p,ls.EPISODE,!0)},Mr=p=>{j({message:`set playback rate to: ${p}`}),re.log("set playback rate external",{playbackRate:p}),R.setPlaybackRate(p)},Cn=te(void 0),Tn=te(!1),Xo=p=>{j({message:`start scrubbing, progress: ${p}`}),re.log("start scrubbing",{progress:p}),Tn.set(!0),Mi(p)},Mi=p=>{Cn.set(p)},kn,Gn,jn=()=>{Cn.set(void 0),Tn.set(!1)},fr=()=>{clearTimeout(Gn),clearTimeout(kn),kn=window.setTimeout(()=>{jn()},500),tt?.removeEventListener("seeked",fr)},Lr=p=>{j({message:`complete scrubbing, progress: ${p}`}),re.log("complete scrubbing",{progress:p}),ur(p,ls.SLIDER),he(Ct.ui.isMobile)&&he(Ct.state.currentFormat$)===ad.HLS?(tt?.addEventListener("seeked",fr),Gn=window.setTimeout(()=>{fr()},300)):jn()},ze=ni([_o,wo,Cn],([p,T,O],be)=>{be(u2(O)?O*T:p)}),ae=te(!1),xt=()=>{ae.set(!0)},ii=()=>{ae.set(!1)},ri=te({width:0,height:0}),Ge=ni([ri],([{width:p}],T)=>{let O=Ch(p);T(O)}),$t=te(!1),Dt=q.filter(p=>Lg(p)),Gi=ni([Ge,$t],([p,T])=>T?Dt.filter(O=>!O.hideOnMobile):Dt.filter(O=>!O.hideOnDesktopGridTypes?.includes(p))),Ti=te(q.filter(p=>Rg(p))),Yn=ni([Ti,Ge],([p,T])=>p.filter(O=>!O.hideOnDesktopGridTypes?.includes(T))),Zn=ni([Yn,Gi],([p,T])=>[..._e.features.additionalButtonsDesktopControlPanelRight?p.filter(O=>O.type==="desktop-control-panel-right"):[],..._e.features.additionalButtons?T.map((O,be)=>({id:be,weight:be,type:"desktop-control-panel-right",testId:O.testId,icon:O.iconUrl,onClick:O.onClick,ariaLabel:O.ariaLabel??O.tooltip,tooltipText:O.tooltip})):[]]),Fi=te(z),ji=ni([Fi],([p])=>_e.features.additionalSettingsMenuItems?p.map(T=>T.type==="SWITCH"?{...T,onClick:T.onChangeEnabled}:T):[]),li=(p,T)=>{let O=he(Ti).map(be=>be.id!==p?be:{...be,...T});Ti.set(O)},Jo=p=>{let T=he(Ti);if(T.some(O=>O.id===p.id)){j({message:`Additional button with id: "${p.id}" was exist! Can't add more with the same id`});return}T.push(p),Ti.set(T)},Xn=p=>{let T=he(Ti);if(!T.some(O=>O.id===p)){j({message:`Can't find additional button with id: "${p}"! Can't remove item with this id`});return}T=T.filter(O=>O.id!==p),Ti.set(T)},mr=p=>{ht.next(ls.LIVE),j({message:"live switch to low latency "+p}),re.log("live switch to low latency "+p),R.setLiveLowLatency(p)},Ui=(p,T)=>{let O=he(Fi).map(be=>be.id!==p?be:{...be,...T});Fi.set(O)},Ja=p=>{let T=he(Fi);if(T.some(O=>O.id===p.id)){j({message:`Settings menu item with id: "${p.id}" was exist! Can't add more with the same id`});return}T.push(p),Fi.set(T)},ga=p=>{let T=he(Fi);if(!T.some(O=>O.id===p)){j({message:`Can't find settings menu item with id: "${p}"! Can't remove item with this id`});return}T=T.filter(O=>O.id!==p),Fi.set(T)},mt=te(ie),wt=ni([mt],([p])=>_e.features.additionalContextMenuItems?p:[]),En=(p,T)=>{let O=he(mt).map(be=>be.id!==p?be:{...be,...T});mt.set(O)},Rr=p=>{let T=he(mt);if(T.some(O=>O.id===p.id)){j({message:`Context menu item with id: "${p.id}" was exist! Can't add more with the same id`});return}T.push(p),mt.set(T)},Ps=p=>{let T=he(mt);if(!T.some(O=>O.id===p)){j({message:`Can't find context menu item with id: "${p}"! Can't remove item with this id`});return}T=T.filter(O=>O.id!==p),mt.set(T)},Vr=ni([$t,zt],([p,T],O)=>{O(p&&T)}),Nr=()=>{ht.next(ls.LIVE),j({message:"switch to active live"}),re.log("switch to active live"),R.seekTime(0),R.info.playbackState$.getValue()!==sd.PLAYING&&Ct.actions.internal.togglePlay()},ps=()=>{re.log("skip adman"),ue.skip()},el=(p=!0)=>{On(Ct),j({message:`switch from ads to video, callPlay: ${p}`}),re.log("switch from ads to video",{callPlay:p}),ge.set("video"),p&&R.play(),a&&ao(!0)},Nd=()=>{On(Ct),j({message:"switch from video to ads"}),re.log("switch from video to ads"),Ct.actions.internal.pause(),Bi(),ge.set("ads")},gu=p=>{On(Ct);let T=p?"LiveWaitingStart":"thumb";re.log("set live waiting start",{state:p,playerPhase:T}),ge.set(T)},Bd=p=>{On(Ct);let T=p?"LiveWaitingRecover":"thumb";re.log("set live waiting recover",{state:p,playerPhase:T}),ge.set(T)},hu=p=>{On(Ct);let T=p?"LiveWaitingRecord":"thumb";re.log("set live waiting record",{state:p,playerPhase:T}),ge.set(T)},Od=()=>(On(Ct),re.log("get debug text data"),Pg(R,Ue,Ct,Re.getTraceId())),_u=()=>(On(Ct),JSON.stringify(Re.getFinishedSpans())),Dd=()=>(On(Ct),Ag(R,Ue,Ct)),ha=()=>tt,Hd=()=>{j({message:"toggle chromecast"}),re.log("toggle chromecast"),R.toggleChromecast()},Fd=p=>{if(On(Ct),R.info.isEnded$.getValue())return;let T=!p;if(he(Ct.playerPhase)==="ads"){j({message:`pause ads, internalCall: ${T}`}),re.log("pause ads",{internalCall:T}),ue.pause();return}j({message:`pause video, internalCall: ${T}`}),re.log("pause video",{internalCall:T}),T&&d?.onPause?.(),R.pause()},tl=p=>{On(Ct);let T=!p;if(he(Ct.playerPhase)==="ads"){j({message:`play ads, internalCall: ${T}`}),re.log("play ads",{internalCall:T}),ue.play();return}j({message:`play video, internalCall: ${T}`}),re.log("play video",{internalCall:T}),T&&d?.onPlay?.(),R.play()},Ud=p=>{On(Ct);let T=!p;if(he(Ct.playerPhase)==="ads"){j({message:"player cannot be stopped during ads via external method"});return}j({message:`player will be stopped, internalCall: ${T}`}),I?.()},il=(p,T)=>{On(Ct),j({message:`first start, show ads: ${p}, internalCall: ${!T}`}),re.log("first start",{showAds:p,external:T}),p?ge.set("ads"):(ge.set("video"),T?R.play():Ct.actions.internal.togglePlay())},ol=()=>(j({message:"getting time codes"}),m),nl=()=>{let p=ol();if(!p||[0,1].includes(p.length))return;let T=R.info.position$.getValue();return p.find(O=>O.time>T)},bu=p=>{let T=p;T||(T=nl());let O=R.info.position$.getValue();re.log("seek to next episode",{currentTime:O,...T}),T&&(j({message:"seek to next episode"}),Hi(T.time,ls.EPISODE,!0))},rl=()=>{let p=ol();if(!p||[0,1].includes(p.length))return;let T=R.info.position$.getValue(),O=p.findIndex(et=>et.time>T),be=O===-1?p.length-2:O-2;if(!(be<0))return p[be]},$u=p=>{let T=p;T||(T=rl());let O=R.info.position$.getValue();re.log("seek to prev episode",{currentTime:O,...T}),T&&(j({message:"seek to prev episode"}),Hi(T.time,ls.EPISODE,!0))},yu=()=>(j({message:"getting preview thumbs data"}),re.log("get preview thumbs data",{...g}),g),xu=async()=>{let p=le?.isActive(),T="none";le?.isActive()?(T="remove",await le?.remove()):(T="request",await le?.request()),re.log("toggle picture in picture",{isActive:p,action:T})},We=(p=-90)=>{re.log("rotate video",{alphaDiff:p}),je.update(T=>T+p)},Kt=te([]);C?.subscribe(p=>{let T=[];for(let O=0;O<p.length;O++){let{range:[be,et],subjects:ft}=p[O];O===0&&be!==0&&T.push({time:0,text:"",interactive:!1,completed:!0}),T.push({time:be/1e3,text:"",interactive:!0,completed:_e.features.interactiveTimeOpenUri?!ft.length||ft.every(Nt=>Nt.isRemoved):!ft.length}),et!==1/0&&T.push({time:et/1e3,text:"",interactive:!1,completed:!0})}Kt.set(T)});let en=te(!1);P?.subscribe(p=>{p&&he(Tn)&&jn()});let fs=p=>{if(!S)return p;let T=he(Kt),O=he(wo),et=he(qi)/O,ft=T.find(Nt=>Nt.interactive&&!Nt.completed&&Nt.time>et);return typeof ft?.time=="number"?Math.min(p,ft.time-.05):p},Zr=()=>{Ct.ui.episodes.panelOpened$.set(!1)},C1=()=>{re.log("destroy store"),clearTimeout(Gn),clearTimeout(kn),Be.unsubscribe(),ho.unsubscribe(),R.destroy(),ue.destroy(),me?.destroy(),Fe?.destroy(),Bt.unsubscribe(),He?.disconnect(),He=null,ee.destroy()},Ct={interfaceLanguage$:gt,isCyrillicRelatedInterface$:Se,initVideo:ke,videoId:i,isClip:o,playerPhase:Y,vsid:Xe,state:{positionExact$:_o,positionWithScrubbing$:ze,duration$:wo,playbackState$:eo,isPlaying$:io,isLoaderVisible:xo,bufferedProgress$:xn,isLive$:Gt,canChangePlaybackSpeed$:Xt,isActiveLive$:jo,isOldestAvailableLive$:No,isRewindableLive$:oo,isEnded$:G,muted$:Jt,volume$:ti,trafficSavingEnabled$:Tt,highQualityEnabled$:vt,autoQualityLimitingAvailable$:Rt,availableVideoStreams$:nr,availableAudioStreams$:Hn,videoStream$:Fn,audioStream$:Un,currentQuality$:hn,isAutoQualityEnabled$:Oo,availableQualities$:kr,currentPlaybackRate$:_n,availablePlaybackRates$:zn,currentSubtitle$:no,availableTextTracks$:nt,availableSubtitlesList$:Yo,currentSubtitleCaptions$:yn,isAutoSubtitleCaptionVisible$:so,chromecastState$:Dn,chromecastDeviceName$:mi,chromecastConnected$:Tr,currentFormat$:$o,throughputEstimation$:si,videoBitrate$:pt,videoSize$:vi,errorLog$:lt,crashed$:zt,isAudioAvailable$:un,isAudioDisabled:!!a,canDownload:_e.features.download&&!!l,availableSources$:wn,hasMpegSources$:Wn,isInteractive:S,showInteractiveGraph:_e.features.interactiveGraph,showSeekToInteractive:_e.features.seekToInteractive,showPlayPrevChapter:_e.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:_e.features.interactiveTimeIndicator&&!!he(Kt).length,interactiveEpisodes$:Kt,isInteractiveTime$:P?Ut(P):te(!1),isInteractiveExpectation$:en,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:V,looped$:Qn,loadedMetadata$:te(!1),isAutoQualityAvailable$:So},ui:{t:Pt,controlsVisible:te(!1),touched:te(!1),controls:{prevButton:te(void 0),playButton:te(void 0),replayButton:te(void 0),nextButton:te(void 0),playPrevChapterButton:te(void 0),seekToInteractiveButton:te(void 0),interactiveGraphButton:te(void 0),liveButton:te(void 0),time:te(void 0),episodes:te(void 0),volume:te(void 0),subtitles:te(void 0),settings:te(void 0),context:te(void 0),chromecast:te(void 0),pip:te(void 0),fullscreen:te(void 0),vkLogo:te(void 0),interactiveTimeIndicator:te(void 0),timeline:te(void 0),autoplayNextToggle:te(void 0),additionalButtons:q.length?q.reduce(p=>[...p,te(void 0)],[]):[],disabledControls$:se},modals:{hotKeyMap:{show:te(!1),data:te({title:"",closeBtnText:"",groups:[]})}},isFullscreen:dt,isFullscreenOpenedByKeyboard:at,rotateAlpha:je,isAutoplay:te(!1),debugPanelVisible:te(!1),episodes:{panelOpened$:te(!1),openedByKeyboard$:te(!1)},contextMenu:{visible$:te(!1),btnRef$:te(void 0),openedByBtnKeyboard$:te(!1),openedByHotKey$:te(!1),lastActiveElem$:te(void 0),showContextMenuBtn$:te(!1),position$:te({top:0,left:0})},playerSize:ri,isMobile:$t,mobileNotReportControlHidden$:Vr,mobileUnmuteButtonExpanded:te(!1),mobileUnmuteButtonVisible:te(!1),icon3DVideoVisible:te(!1),scrubbingInProgress:Tn,volumeChangingInProgress:ae,is3DVideo:te(!1),currentGridType$:Ge,additionalButtonsDeprecated$:Gi,additionalDesktopControlPanelRightButtons$:Zn,additionalSettingsMenuItems$:ji,additionalContextMenuItems$:wt,interactiveHideMobileControls:te(!1),overlayContainer$:te(void 0),startedByKeyboard$:te(!1),autoplayNextEnabled$:te(!1),timerNextVideoRunning$:te(!0),settingsMenu:{visible$:te(!1),ref$:te(void 0),openedByBtnKeyboard$:te(!1)},settingsSubMenu:{visible$:te(!1),ref$:te(void 0),name$:te(void 0)},aboutToGoNextVideo:te(void 0),userActionsDisabled:te(!1),hiddenControls:{volume:te(!1),vkLogo:te(!1),pip:te(!1),chromecast:te(!1),settings:te(!1)},isControlsAvailable:Ci,controlBlocks:{topLeft:te(void 0),topRight:te(void 0),middle:te(void 0),bottom:te(void 0),bottomLeft:te(void 0),bottomRight:te(void 0)},videoTitleInfo:te(void 0)},ads:{position:te(0),duration:te(0),playbackState:te("inactive"),canSkip:te(!1),secondsToWatchBeforeSkip:te(0),postrollPassed:te(!1)},webApi:{pictureInPictureApi:le,annotationsApi:ne,slotsApi:Ee},actions:{internal:{preload:Pr,firstStart:p=>il(p,!1),play:()=>tl(!1),pause:()=>Fd(!1),togglePlay:Yr,toggleMuted:Co,openSettingsMenu:Kn,closeSettingsMenu:Er,openSettingsSubMenu:Do,closeSettingsSubMenu:ar,setVolume:Ki,startVolumeChanging:xt,stopVolumeChanging:ii,setVideoStream:fn,setAudioStream:Gr,setQuality:rt,setTrafficSavingEnabled:Et,setHighQualityEnabled:qt,setPlaybackRate:Qi,incrementPlaybackRate:lo,decrementPlaybackRate:Zo,setSubtitle:Di,toggleSubtitle:_i,togglePictureInPicture:xu,startScrubbing:Xo,progressScrubbing:Mi,completeScrubbing:Lr,toggleChromecast:Hd,switchToActiveLive:Nr,switchFromAdsToVideo:el,switchFromVideoToAds:Nd,skipAd:ps,setLiveWaitingStart:gu,setLiveWaitingRecover:Bd,setLiveWaitingRecord:hu,getDebugTextData:Od,getTraceTextData:_u,getDebugPanelData:Dd,getVideoElement:ha,seekTime:(p,T,O)=>Hi(p,T,O),clearDelayedBufferingCheckTimeout:pn,seekEpisodeStartTime:co,seekToPercent:ur,getNextEpisode:nl,seekToNextEpisode:bu,getPrevEpisode:rl,seekToPrevEpisode:$u,startLogging:Ko,stopLogging:cn,startCameraManualRotation:Qo,stopCameraManualRotation:Vo,moveCameraFocusPX:Wi,holdCamera:Wt,releaseCamera:Go,getVideoEpisodes:ol,getPreviewThumbsData:yu,downloadVideo:qn,addLanguage:Ip,setLanguage:Qe,nextMovie:it,videoRotate:We,correctSeekTimeToInteractive:fs,replayInteractive:M,setLooped:lr,reportProblem:pi,setAutoplayNextEnabled:jr,setTimerNextVideoRunning:_t,prevVideoClick:Vt,nextVideoClick:To,nextVideoAnnouncementShow:dr,nextVideoAnnouncementClick:cr,nextVideoAnnouncementAuto:ko,nextVideoAnnouncementCancel:Ir},external:{firstStart:p=>il(p,!0),play:()=>tl(!0),pause:()=>Fd(!0),stop:()=>Ud(!0),seekTime:p=>Sn(p),seekEpisodeStartTime:p=>Ar(p),setPlaybackRate:p=>Mr(p),setAutoQualityLimits:p=>pr(p),setMuted:ao,toggleSubtitle:_i,setVolume:Ki,returnFocusToEpisodes:Zr,updateAdditionalSettingsItem:Ui,addAdditionalSettingsItem:Ja,removeAdditionalSettingsItem:ga,updateAdditionalContextItem:En,addAdditionalContextItem:Rr,removeAdditionalContextItem:Ps,updateAdditionalButton:li,addAdditionalButton:Jo,removeAdditionalButton:Xn,setLiveLowLatency:mr,hideControls:()=>Eo(!1),showControls:()=>Eo(!0)}},callbacks:d,setUiCallbacks:p=>{de={...p}},getAdmanWrapper:()=>ue,getLogger:()=>Ze,getPlayer:()=>R,destroy:C1};return Ct};function wr(t,e,i,o){let r=e[i]?.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:a,left:l,bottom:d,right:u}=as(e[i],t||void 0);return{left:s?l:0,right:s?u:0,top:s?a:0,bottom:s?d:0,isDisplayed:s}}var x2=["disabledControls$","additionalButtons"],w2=["interactiveTimeIndicator"],Ga=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!x2.includes(r)){let a=o||w2.includes(r);s.set(wr(t,i,r,a))}}};var Yc=async(t,e,i)=>{await Zi(),e&&i&&(i.focus(),t.set(!1))};var S2=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Ef(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=S2();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}function If(t,e){D(e,!0);let[i,o]=Le(),r=()=>y(d,"$contextMenuVisible$",i),s=f(e,"disabled",3,!1),a=f(e,"ariaLabel",3,""),l=xe(),d=l.ui.contextMenu.visible$,u=l.ui.contextMenu.openedByBtnKeyboard$,m=l.ui.contextMenu.showContextMenuBtn$,g=l.ui.contextMenu.position$,c=l.ui.contextMenu.btnRef$,$=K(void 0);De(()=>{n($)&&yt(()=>{c.set(n($))})});let w=P=>{let M=Ss(P),I=hh(n($));g.set(I),u.set(M),d.set(!r())},x=()=>{m.set(!0)},S=()=>{m.set(!1)},C=h(()=>r()?"opened":"");kt(t,{get className(){return n(C)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return a()},click:w,focus:x,blur:S,get ariaExpanded(){return r()},get ref(){return n($)},set ref(P){N($,P,!0)},children:(P,M)=>{Ef(P,{})},$$slots:{default:!0}}),H(),o()}var C2=t=>{t.stopPropagation()},T2=A("<div><!> <div></div> <div></div></div>"),k2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
227
227
 
228
228
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
229
229
  }
@@ -248,8 +248,8 @@ Try switching the\xA0quality to\xA0Auto.`},Xg=U0;var rs=new Map;rs.set(eh.EN,Xg)
248
248
  opacity: 0;
249
249
  }
250
250
  }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
251
- animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function dd(t,e){D(e,!0),U(t,ky);let[i,o]=Re(),r=()=>y(S,"$isMobile",i),s=()=>y(I,"$areControlsVisible",i),a=()=>y(V,"$currentGridType$",i),l=()=>y(A,"$isInteractiveTime$",i),d=()=>y(x,"$interactiveControlsOpacity$",i),u=()=>y(M,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>y(C,"$isFullscreen",i),g=f(e,"ref",15,void 0),c=K(void 0),$=we(),w=Ki(),{interactiveControlsOpacity$:x}=w,S=$.ui.isMobile,C=$.ui.isFullscreen,A=$.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,I=$.ui.controlsVisible,k=$.callbacks?.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,q=h(()=>!r()&&s()),z=h(()=>ks(a(),"s")),ie=h(()=>!l()||!!d()||n(q)),oe=K(!1);Oe(()=>{N(oe,n(ie),!0)});let me=()=>{N(oe,!0)},Q=()=>{fe(),n(c)?.addEventListener("animationiteration",me,{once:!0})},fe=()=>{N(oe,!1),n(c)?.removeEventListener("animationiteration",me)},J=ne=>{M.set(ne)},Pe=h(()=>u()&&!n(ie));Oe(()=>{u()?Q():fe()});let Le=()=>{n(ie)||(M.set(!0),k?.())};dn(()=>{M.clearTimeout(),fe()});let Ae=()=>{M.set(!1)},he=F("tooltip_interactive_interaction_time_indicator");var Ve=Ty();let re;Ve.__mousemove=[Cy],Ve.__click=Le;var R=_(Ve);bo(R,{get tooltipContent(){return he},get tooltipActive(){return n(Pe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return g()},set ref(ne){g(ne)},children:(ne,Ie)=>{ed(ne,{completed:!0})},$$slots:{default:!0}});var Ye=E(R,2);let de;Xe(Ye,ne=>g(ne),()=>g());var Fe=E(Ye,2);let ae;Xe(Fe,ne=>N(c,ne),()=>n(c)),v(Ve),B((ne,Ie,G)=>{re=Z(Ve,1,"interactive-episode-icon-animated svelte-od3veb",null,re,ne),de=Z(Ye,1,"ref-block svelte-od3veb",null,de,Ie),ae=Z(Fe,1,"pulse svelte-od3veb",null,ae,G)},[()=>({mobile:r(),fullscreen:m(),invisible:n(ie),"icon-small":n(z)}),()=>({hidden:n(ie)}),()=>({paused:n(oe)})]),gt("mouseleave",Ve,Ae),b(t,Ve),H(),o()}st(["mousemove","click"]);function Zc(t,e){D(e,!0);let i=f(e,"tooltipEnabled",3,!0),o=f(e,"disabled",3,!1),r=f(e,"className",3,void 0),s=f(e,"ref",15);bo(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 r()},get ref(){return s()},set ref(a){s(a)},children:(a,l)=>{var d=Be();let u=h(()=>e.buttonComponent);var m=le(d);li(m,()=>n(u),(g,c)=>{c(g,ns(()=>e.buttonComponentProps??{}))}),b(a,d)},$$slots:{default:!0}}),H()}var ds={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Iy=$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 Af(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}function Es(t,e){let i=f(e,"isPrev",3,!1),o=f(e,"isMobile",3,!1),r=f(e,"width",3,"24"),s=f(e,"height",3,"24"),a=h(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),l=h(()=>i()?"prev-icon":"next-icon");Af(t,{get style(){return n(a)},get width(){return r()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return n(l)}})}var Ay=P('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Py=P("<!> <!>",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 aa(t,e){D(e,!0),U(t,My);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),r=f(e,"disabled",3,!1),a=we().ui.t,l=h(()=>e.type==="prev"?a("tooltip_previous"):a("tooltip_next")),d=h(()=>e.type==="prev"?a("hotkey_map_item_prev_video_value"):a("hotkey_map_item_next_video_value")),u=h(()=>`btn-${o()?"m":"d"}--${e.type}`);Ct(t,{get className(){return n(u)},get testId(){return`btn-${e.type??""}`},get disabled(){return r()},get ariaLabel(){return n(l)},get click(){return e.click},get ariaKeyShortCut(){return n(d)},get ref(){return i()},set ref(m){i(m)},children:(m,g)=>{var c=Py(),$=le(c);{var w=C=>{var A=Ay();b(C,A)};L($,C=>{o()&&C(w)})}var x=E($,2);let S=h(()=>e.type==="prev");Es(x,{get isMobile(){return o()},get isPrev(){return n(S)}}),b(m,c)},$$slots:{default:!0}}),H()}var Ly=$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 cd(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ly();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}import{noop as Ry}from"@vkontakte/videoplayer-shared/evergreen";var Vy=P('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Ny=P("<!> <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 ja(t,e){D(e,!0),U(t,By);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),r=f(e,"disabled",3,!1),s=f(e,"className",3,""),a=f(e,"click",3,Ry),l=F("tooltip_restart"),d=h(()=>`${o()?"btn-m--play":""} ${s()}`);Ct(t,{get className(){return n(d)},testId:"btn-replay",get ariaLabel(){return l},get disabled(){return r()},get click(){return a()},get ariaKeyShortCut(){return Wr.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var g=Ny(),c=le(g);{var $=C=>{var A=Vy();b(C,A)};L(c,C=>{o()&&C($)})}var w=E(c,2);let x;var S=_(w);cd(S,{}),v(w),B(C=>x=Z(w,1,"svelte-1ot3duq",null,x,C),[()=>({mobile:o()})]),b(u,g)},$$slots:{default:!0}}),H()}var Oy=$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 Sr(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),r=f(e,"viewBox",3,"0 0 24 24"),s=f(e,"fill",3,"var(--btn-color)");var a=Oy(),l=_(a);v(a),B(()=>{Me(a,"width",i()),Me(a,"height",o()),Me(a,"viewBox",r()),Me(l,"fill",s())}),b(t,a)}var Dy=$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 cs(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),r=f(e,"viewBox",3,"0 0 24 24"),s=f(e,"fill",3,"var(--btn-color)");var a=Dy(),l=_(a);v(a),B(()=>{Me(a,"width",i()),Me(a,"height",o()),Me(a,"viewBox",r()),Me(l,"fill",s())}),b(t,a)}import{noop as Hy}from"@vkontakte/videoplayer-shared/evergreen";var Fy=P('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Uy=P("<!> <div><!></div>",1),zy={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 Ya(t,e){D(e,!0),U(t,zy);let[i,o]=Re(),r=()=>y(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=Ki(),a=f(e,"ref",15,void 0),l=f(e,"isMobile",3,!1),d=f(e,"isPlaying",3,!1),u=f(e,"disabled",3,!1),m=f(e,"className",3,""),g=f(e,"click",3,Hy),$=we().ui.t,{toggle:w}=s,x=h(()=>w),S=h(()=>r()!==null),C=h(()=>n(S)?r():d()),A=h(()=>n(C)?$("tooltip_pause"):$("tooltip_play")),M=h(()=>n(C)?cs:Sr),I=h(()=>`${l()?"btn-m--play":""} ${m()}`),k=h(()=>n(S)?n(x):g());Ct(t,{get className(){return n(I)},testId:"btn-play",get click(){return n(k)},get disabled(){return u()},get ariaLabel(){return n(A)},get ariaKeyShortCut(){return Wr.KeyK},get ref(){return a()},set ref(V){a(V)},children:(V,q)=>{var z=Uy();let ie=h(()=>n(M));var oe=le(z);{var me=Pe=>{var Le=Fy();b(Pe,Le)};L(oe,Pe=>{l()&&Pe(me)})}var Q=E(oe,2);let fe;var J=_(Q);li(J,()=>n(ie),(Pe,Le)=>{Le(Pe,{})}),v(Q),B(Pe=>fe=Z(Q,1,"svelte-1ot3duq",null,fe,Pe),[()=>({mobile:l()})]),b(V,z)},$$slots:{default:!0}}),H(),o()}var Wy=$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 Pf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Wy();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}function ud(t,e){D(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),r=f(e,"disabled",3,!1),s=F("tooltip_interactive_go_back"),a=h(()=>o()?"hidden":"");Ct(t,{get className(){return n(a)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Pf(l,{})},$$slots:{default:!0}}),H()}var qy=P('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Ky={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function pd(t,e){D(e,!0),U(t,Ky);let[i,o]=Re(),r=()=>y(d,"$autoplayNextEnabled$",i),s=f(e,"ref",15,void 0),a=we(),l=a.ui.t,d=a.ui.autoplayNextEnabled$,u=a.actions.internal.setAutoplayNextEnabled,m=()=>{u(!r(),!0)},g=l("aria_label_autoplay"),c=h(()=>r()?"true":"false");Ct(t,{click:m,get ariaLabel(){return g},role:"switch",get areaChecked(){return n(c)},get ref(){return s()},set ref($){s($)},children:($,w)=>{var x=qy(),S=_(x);let C;var A=_(S);{var M=k=>{Sr(k,{width:"14",height:"14",fill:"#000"})},I=k=>{cs(k,{width:"14",height:"14",fill:"#000"})};L(A,k=>{r()?k(M):k(I,!1)})}v(S),v(x),B(k=>C=Z(S,1,"toggler svelte-et3q1q",null,C,k),[()=>({enabled:r()})]),b($,x)},$$slots:{default:!0}}),H(),o()}var Qy=$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=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}function fd(t,e){D(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),r=f(e,"disabled",3,!1),s=F("tooltip_interactive_seek"),a=h(()=>o()?"hidden":"");Ct(t,{get className(){return n(a)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Mf(l,{})},$$slots:{default:!0}}),H()}var Gy=$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 Lf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Gy();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}var jy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Rf(t,e){U(t,jy);let i=f(e,"isOpened",3,!1),o=h(()=>i()?"graph-close-icon":"graph-open-icon");Lf(t,{get"data-testid"(){return n(o)}})}function md(t,e){D(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),r=f(e,"disabled",3,!1),s=f(e,"graphIsOpened",3,!1),l=we().ui.t,d=h(()=>s()?l("tooltip_interactive_graph_on"):l("tooltip_interactive_graph_off")),u=h(()=>o()?"hidden":"");Ct(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,g)=>{let c=h(()=>!!s());Rf(m,{get isOpened(){return n(c)}})},$$slots:{default:!0}}),H()}import{PlaybackState as Oh}from"@vkontakte/videoplayer-core/evergreen";function vd(t,e){D(e,!0);let[i,o]=Re(),r=()=>y(u,"$playbackState$",i),s=f(e,"isMobile",3,!1),a=f(e,"isLiveActive",3,!1),l=f(e,"ariaLabel",3,""),d=we(),u=d.state.playbackState$,m=d.actions.internal.switchToActiveLive,g=d.actions.internal.togglePlay,c=h(()=>()=>{if(!a()){m();return}r()===Oh.PAUSED&&g()}),$=h(()=>s()?"":"btn--live btn-full-opacity"),w=h(()=>a()?"btn-live":"btn-live-offset"),x=h(()=>a()&&r()===Oh.PLAYING);Ct(t,{get className(){return n($)},get testId(){return n(w)},get disabled(){return n(x)},get ariaLabel(){return l()},get click(){return n(c)},children:(S,C)=>{Dl(S,{get isActive(){return a()}})},$$slots:{default:!0}}),H(),o()}import{noop as Dh}from"@vkontakte/videoplayer-shared/evergreen";var Yy=P('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Zy=P('<img class="icon" aria-hidden="true"/>');function la(t,e){"use strict";let i=K(!1),o=()=>{N(i,!0)};var r=Be(),s=le(r);{var a=d=>{var u=Yy();b(d,u)},l=d=>{var u=Zy();B(()=>Me(u,"src",e.icon)),gt("error",u,o),Us(u),b(d,u)};L(s,d=>{n(i)?d(a):d(l,!1)})}b(t,r)}function Vf(t,e){D(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Dh),r=f(e,"ref",15),s=h(()=>o()===Dh),a=h(()=>n(s)||i()),l=h(()=>n(s)?"btn-full-opacity":"");bo(t,{get disabled(){return n(a)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return r()},set ref(d){r(d)},children:(d,u)=>{let m=h(()=>e.testId??e.id);Ct(d,{get className(){return n(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return n(m)},children:(g,c)=>{la(g,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var Hh=t=>!!t.buttonComponent;var us={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Xc=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(wr(t,i,r,o))};var e2=P('<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),t2={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){D(e,!0),U(t,t2);let[i,o]=Re(),r=()=>y(j,"$disabledControls$",i),s=()=>y(yo,"$adPlaybackState",i),a=()=>y(Ge,"$playbackState$",i),l=()=>y($o,"$currentSubtitle$",i),d=()=>y(Ai,"$isEnded$",i),u=()=>y(di,"$currentGridType$",i),m=()=>y(Qi,"$isLive$",i),g=()=>y(ro,"$chromecastState$",i),c=()=>y(pn,"$isPictureInPictureActive",i),$=()=>y(qo,"$pictureInPictureType$",i),w=()=>y(so,"$availableSubtitlesList$",i),x=()=>y(Oi,"$contextMenuOpenedByKeyboard$",i),S=()=>y(ei,"$showContextMenuBtn$",i),C=()=>y(fn,"$playerSize",i),A=()=>y(Wo,"$isRewindableLive$",i),M=()=>y(Lo,"$isActiveLive$",i),I=()=>y(Di,"$graphIsOpened$",i),k=()=>y(Qt,"$contextMenuVisible$",i),V=()=>y(yi,"$isFullscreen",i),q=()=>y(ui,"$autoplayNextEnabled",i),z=()=>y(n(zn),"$prevButton",i),ie=()=>y(n(Wn),"$replayButton",i),oe=()=>y(n(Ir),"$playButton",i),me=()=>y(n(nt),"$nextButton",i),Q=()=>y(n(jt),"$playPrevChapterButton",i),fe=()=>y(n(qn),"$seekToInteractiveButton",i),J=()=>y(n(Kn),"$interactiveGraphButton",i),Pe=()=>y(n(Qn),"$liveButton",i),Le=()=>y(n(lr),"$time",i),Ae=()=>y(n(dr),"$episodes",i),he=()=>y(n(cr),"$vkLogo",i),Ve=()=>y(n(Co),"$volume",i),re=()=>y(n(Ar),"$subtitles",i),R=()=>y(n(Pr),"$settings",i),Ye=()=>y(n(Yr),"$context",i),de=()=>y(n(rt),"$fullscreen",i),Fe=()=>y(n(kt),"$chromecast",i),ae=()=>y(ji,"$additionalDesktopControlPanelRightButtons$",i),ne=()=>y(fi,"$isInteractiveTime$",i),Ie=()=>y(Ro,"$settingsMenuVisible",i),G=()=>y(Ui,"$settingButtonRef$",i),ze=()=>y(ii,"$startedByKeyboard$",i),et=()=>y(He,"$isAudioAvailable$",i),ce=()=>y(vt,"$fakeIsPlaying$",i),ee=()=>y(Zi,"$seekToInteractiveDisabledTooltip$",i),Ne=()=>y(Vt,"$adPosition",i),je=()=>y(Mt,"$position$",i),dt=()=>y(wt,"$adDuration",i),at=()=>y(ht,"$duration$",i),Tt=f(e,"playerControlsWrapperRef",15,void 0),Ze=f(e,"playerControlsRef",15,void 0),lt=f(e,"isAds",3,!1),Nt=f(e,"logoTargetUrl",3,""),Ut=f(e,"isOneVideoPlaylist",3,!1),qe=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:vt}=Ki(),ke=we(),St=Ki(),ve=Rt(),Y=ke.actions.internal.toggleMuted,se=ke.actions.internal.togglePlay,De=ke.actions.internal.pause,Se=ke.actions.internal.toggleSubtitle,xe=ke.callbacks?.onAudioDoesNotExistHint,Je=ke.callbacks?.onAudioDisabledHint,ht=ke.state.duration$,Mt=ke.state.positionWithScrubbing$,Ge=ke.state.playbackState$,He=ke.state.isAudioAvailable$,Yt=ke.state.isAudioDisabled,Ai=ke.state.isEnded$,Qi=ke.state.isLive$,Lo=ke.state.isActiveLive$,Wo=ke.state.isRewindableLive$,{isActive$:pn,type$:qo}=St.pictureInPicture$,Ro=ke.ui.settingsMenu.visible$,Gi=ke.ui.settingsMenu.openedByBtnKeyboard$,zt=ke.ui.controls,Ko=ke.actions.internal.getVideoEpisodes(),ro=ke.state.chromecastState$,so=ke.state.availableSubtitlesList$,$o=ke.state.currentSubtitle$,j=zt.disabledControls$,Qt=ke.ui.contextMenu.visible$,ei=ke.ui.contextMenu.showContextMenuBtn$,Oi=ke.ui.contextMenu.openedByBtnKeyboard$,ii=ke.ui.startedByKeyboard$,Gt=ke.ui.controlBlocks,xt=ke.ui.t,wt=ke.ads.duration,Vt=ke.ads.position,yo=ke.ads.playbackState,yi=ke.ui.isFullscreen,fn=ke.ui.playerSize,di=ke.ui.currentGridType$,ji=ke.ui.additionalDesktopControlPanelRightButtons$,ui=ke.ui.autoplayNextEnabled$,mt=ke.actions.internal.getVideoElement,pi=ke.actions.internal.replayInteractive,xo=ke.actions.internal.prevVideoClick,Qo=ke.actions.internal.nextVideoClick,Xt=ke.state.isInteractive,fi=ke.state.isInteractiveTime$,wo=ke.state.showInteractiveGraph,mn=ke.state.showSeekToInteractive,ao=ke.state.showPlayPrevChapter,Yi=ke.state.showInteractiveTimeIndicator,vn=ke.state.playPrevChapterDisabledTooltip,Zi=St.seekToInteractiveDisabledTooltip$,Di=St.graphIsOpened$,Go=ve.features.interactiveResponsiveUi,or=h(()=>r().has("EPISODE_BUTTON")),Nn=h(()=>r().has("GRAPH_BUTTON")),Bn=h(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),On=h(()=>r().has("PLAY_BUTTON")),Tr=h(()=>r().has("REPLAY_BUTTON")),gn=h(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Gr=()=>ke.actions.internal.toggleChromecast(),nr=h(()=>lt()?s()==="playing":a()===Nf.PLAYING),mi=h(()=>l().value!=="off"),jo=h(()=>d()&&!lt()||Xt),lo=h(()=>Go?n(jo)&&Ei(u(),"m"):n(jo)),Vo=h(()=>!d()||Xt||lt()),No=h(()=>Ei(u(),"m")),hn=h(()=>e.showNextPrevButtons&&Ei(u(),"m")&&!lt()&&e.nextButtonActive),Yo=h(()=>e.showNextPrevButtons&&Ei(u(),"m")&&!lt()&&e.prevButtonActive),jr=h(()=>!lt()&&!!m()),Dn=h(()=>g()!==Fh.NOT_AVAILABLE&&!(c()&&$()===1)&&Ei(u(),"m")&&!Xt),Hn=h(()=>e.showAutoplayNext&&!Ut()&&Ei(u(),"s")),xi=h(()=>w().length>0&&Ei(u(),"m")),Hi=h(()=>x()||S()),ot=h(()=>Ei(u(),"s")&&!lt()),vi=h(()=>!e.logoHidden&&!lt()),rr=h(()=>ve.features.fullscreen&&(e.logoHidden||Ei(u(),Go?"xs":"s"))&&!(c()&&$()===1)&&(Xt?qe():!0)),Pi=h(()=>(!m()||lt())&&!(ve.features.interactiveHideTime&&Xt)),_n=h(()=>C().width>100),co=h(()=>wo&&Ei(u(),"m")),bn=h(()=>Go?mn&&Ei(u(),"s"):mn),uo=h(()=>Go?ao&&Ei(u(),"s"):ao),Bo=h(()=>!lt()&&!m()&&!!Ko?.length&&n(No)&&!n(or)),So=h(()=>!A()||!!M()),Zo=h(()=>I()?xt("tooltip_interactive_graph_on"):xt("tooltip_interactive_graph_off")),Fn=h(()=>k()?xt("tooltip_context_menu_close"):xt("tooltip_context_menu_open")),sr=(ft,$t)=>ft?$t&&$t===Nf.PAUSED?xt("tooltip_play"):"":xt("tooltip_live"),$n=h(()=>sr(n(So),a())),kr=h(()=>ve.logoType==="vk_video"?xt("tooltip_vk_video_logo"):xt("tooltip_vk_logo")),Xo=h(()=>n(mi)?xt("tooltip_subtitles_on"):xt("tooltip_subtitles_off")),Er=h(()=>V()?xt("tooltip_fullscreen_on"):xt("tooltip_fullscreen_off")),Un=h(()=>g()===Fh.CONNECTED?xt("tooltip_chromecast_on"):xt("tooltip_chromecast_off")),ar=h(()=>q()?xt("tooltip_autoplay_on"):xt("tooltip_autoplay_off")),Oo=K(0),It=Kt({}),Fi=Kt({}),zn=h(()=>zt.prevButton),Wn=h(()=>zt.replayButton),Ir=h(()=>zt.playButton),nt=h(()=>zt.nextButton),jt=h(()=>zt.playPrevChapterButton),qn=h(()=>zt.seekToInteractiveButton),Kn=h(()=>zt.interactiveGraphButton),Qn=h(()=>zt.liveButton),lr=h(()=>zt.time),dr=h(()=>zt.episodes),cr=h(()=>zt.vkLogo),Co=h(()=>zt.volume),Ar=h(()=>zt.subtitles),Pr=h(()=>zt.settings),Yr=h(()=>zt.context),rt=h(()=>zt.fullscreen),kt=h(()=>zt.chromecast),Wt=h(()=>({prevButton:z()?z().right-z().left:0,replayButton:ie()?ie().right-ie().left:0,playButton:oe()?oe().right-oe().left:0,nextButton:me()?me().right-me().left:0,playPrevChapterButton:Q()?Q().right-Q().left:0,seekToInteractiveButton:fe()?fe().right-fe().left:0,interactiveGraphButton:J()?J().right-J().left:0,liveButton:Pe()?Pe().right-Pe().left:0,time:Le()?Le().right-Le().left:0,episodes:Ae()?Ae().right-Ae().left:0,vkLogo:he()?he().right-he().left:0,volume:Ve()?Ve().right-Ve().left:0,subtitles:re()?re().right-re().left:0,settings:R()?R().right-R().left:0,context:Ye()?Ye().right-Ye().left:0,fullscreen:de()?de().right-de().left:0,chromecast:Fe()?Fe().right-Fe().left:0,additionalButtons:ae().length?ae().reduce(ft=>[...ft,40],[]):[]})),Mi=K(0);Oe(()=>{(!n(Mi)||n(Mi)<n(Wt).time)&&_t(()=>N(Mi,n(Wt).time,!0))});let wi=K(!1);Oe(()=>{let ft=0;n(Bo)&&(Ei(u(),"xl")?ft=n(Wt).time:ft=60);let $t=n(Wt).prevButton+n(Wt).playButton+n(Wt).nextButton+n(Wt).seekToInteractiveButton+n(Wt).interactiveGraphButton+n(Wt).liveButton+n(Mi)+ft;N(wi,n(Pi)&&n(Oo)>=$t,!0)});let Xi=h(()=>n(wi)&&Ei(u(),"m")),po=Uh(Ga,260),Jo=Uh(Xc,260);Oe(()=>{C(),ne(),po(mt(),zt,It,e.showControls),Jo(mt(),Gt,Fi,e.showControls)}),Oe(()=>{Fi.bottom=Tt()});let Ui=te();Oe(()=>{Ie(),G()&&_t(()=>Ua(G(),Ie(),Gi))});let gi;Oe(()=>{ze(),_t(()=>Yc(ii,ze(),gi))});function Si(){Cs({isAudioDisabled:Yt,isAudioAvailable:et(),isAds:lt(),audioIsNotExistHintCallback:xe,audioDisabledHintCallback:Je})&&Y()}let To=Xt?pi:se,zi=h(()=>ce()!==null),fo=h(()=>n(zi)?ce():n(nr)),ur=h(()=>n(fo)?xt("tooltip_pause"):xt("tooltip_play")),yn=xt("tooltip_episodes"),pr=h(()=>n(Yo)?{id:"prevButton",type:"desktop-control-panel-left",weight:ds.prevButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:xo.bind(null,!0)},tooltipEnabled:!ke.callbacks?.uiInfo?.onPrevButtonMouseEnter&&!ke.callbacks?.uiInfo?.onPrevButtonMouseLeave,mouseEnter:()=>{ke.callbacks?.uiInfo?.onPrevButtonMouseEnter?.(wr(mt(),It,"prevButton",e.showControls))},mouseLeave:()=>{ke.callbacks?.uiInfo?.onPrevButtonMouseLeave?.(wr(mt(),It,"prevButton",e.showControls))},tooltipText:xt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0),Mr=h(()=>n(lo)?{id:"replayButton",type:"desktop-control-panel-left",weight:ds.replayButton,buttonComponent:ja,buttonComponentProps:{disabled:n(Tr),click:To},tooltipText:xt("tooltip_restart"),disabled:n(Tr)}:void 0),Lr=h(()=>n(Vo)?{id:"playButton",type:"desktop-control-panel-left",weight:ds.playButton,buttonComponent:Ya,buttonComponentProps:{disabled:n(On),isPlaying:n(nr),click:se},tooltipText:n(ur),disabled:n(On)}:void 0),xn=h(()=>n(hn)?{id:"nextButton",type:"desktop-control-panel-left",weight:ds.nextButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Qo.bind(null,!0)},tooltipEnabled:!ke.callbacks?.uiInfo?.onNextButtonMouseEnter&&!ke.callbacks?.uiInfo?.onNextButtonMouseLeave,mouseEnter:()=>{ke.callbacks?.uiInfo?.onNextButtonMouseEnter?.(wr(mt(),It,"nextButton",e.showControls))},mouseLeave:()=>{ke.callbacks?.uiInfo?.onNextButtonMouseLeave?.(wr(mt(),It,"nextButton",e.showControls))},tooltipText:xt("tooltip_next"),disabled:!e.nextButtonActive}:void 0),wn=h(()=>Xt&&n(uo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ds.playPrevChapterButton,buttonComponent:ud,buttonComponentProps:{disabled:n(gn),click:e.playPrevChapter},tooltipText:xt("tooltip_interactive_go_back"),disabledTooltipContent:xt(vn),disabled:n(gn)}:void 0),en=h(()=>Xt&&n(bn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ds.seekToInteractiveButton,buttonComponent:fd,buttonComponentProps:{disabled:n(Bn),click:e.seekToInteractive},tooltipText:xt("tooltip_interactive_seek"),disabled:n(Bn),disabledTooltipContent:xt(ee())}:void 0),Li=h(()=>Xt&&n(co)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ds.interactiveGraphButton,buttonComponent:md,buttonComponentProps:{disabled:n(Nn),click:Di.toggle,graphIsOpened:I()},tooltipText:n(Zo)}:void 0),Sn=h(()=>n(jr)?{id:"liveButton",type:"desktop-control-panel-left",weight:ds.liveButton,buttonComponent:vd,buttonComponentProps:{isLiveActive:n(So),ariaLabel:n($n)},tooltipText:n($n),disabled:n(So)&&a()===Nf.PLAYING}:void 0),fr=h(()=>[n(pr),n(Mr),n(Lr),n(xn),n(wn),n(en),n(Li),n(Sn)].filter(ft=>!!ft).sort(Js)),Gn=h(()=>n(vi)?{id:"vkLogo",type:"desktop-control-panel-right",weight:us.vkLogo,buttonComponent:id,buttonComponentProps:{targetUrl:Nt(),logoClickable:e.logoClickable,click:De},tooltipText:n(kr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Ue=h(()=>n(Hn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:us.autoplayNext,buttonComponent:pd,tooltipText:n(ar)}:void 0),Ot=h(()=>({id:"volume",type:"desktop-control-panel-right",weight:us.volume,buttonComponent:cf,buttonComponentProps:{click:Si,isAds:lt()}})),Ci=h(()=>n(xi)?{id:"subtitles",type:"desktop-control-panel-right",weight:us.subtitles,buttonComponent:rf,buttonComponentProps:{isSubtitlesEnabled:n(mi),click:Se},tooltipText:n(Xo)}:void 0),_e=h(()=>n(ot)?{id:"settings",type:"desktop-control-panel-right",weight:us.settings,buttonComponent:Ka,buttonComponentProps:{ref$:Ui},tooltipText:Ie()?void 0:xt("tooltip_settings_off")}:void 0),At=h(()=>ve.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:us.context,buttonComponent:If,buttonComponentProps:{ariaLabel:xt("aria_label_context_menu")},className:n(Hi)?"":"out-of-view",tooltipText:n(Fn)}:void 0),Ri=h(()=>n(rr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:us.fullscreen,buttonComponent:td,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:n(Er)}:void 0),ri=h(()=>n(Dn)?{id:"chromecast",type:"desktop-control-panel-right",weight:us.chromecast,buttonComponent:od,buttonComponentProps:{state:g(),click:Gr},tooltipText:n(Un)}:void 0),Ke=h(()=>[n(Gn),n(Ue),n(Ot),n(Ci),n(_e),n(At),n(Ri),n(ri),...ae()].filter(ft=>!!ft).sort(Js));var Lt=e2(),Zt=le(Lt);let Ji;var Ti=_(Zt);let jn=h(()=>!n(_n));ra(Ti,{get isHidden(){return n(jn)},get isAds(){return lt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return A()},get ref(){return It.timeline},set ref(ft){It.timeline=ft}});var Yn=E(Ti,2),Wi=_(Yn),eo=_(Wi);ai(eo,17,()=>n(fr),ft=>ft.id,(ft,$t)=>{Zc(ft,{get buttonComponent(){return n($t).buttonComponent},get buttonComponentProps(){return n($t).buttonComponentProps},get tooltipText(){return n($t).tooltipText},get disabledTooltipContent(){return n($t).disabledTooltipContent},get disabled(){return n($t).disabled},get className(){return n($t).className},get tooltipEnabled(){return n($t).tooltipEnabled},get mouseEnter(){return n($t).mouseEnter},get mouseLeave(){return n($t).mouseLeave},get ref(){return It[n($t).id]},set ref(Cn){It[n($t).id]=Cn}})});var si=E(eo,2);{var tn=ft=>{let $t=h(()=>lt()?Ne():je()),Cn=h(()=>lt()?dt():at());Jl(ft,{isMobile:!1,get showDuration(){return n(Xi)},get position(){return n($t)},get duration(){return n(Cn)},get ref(){return It.time},set ref(Rr){It.time=Rr}})};L(si,ft=>{n(Pi)&&ft(tn)})}var Zn=E(si,2);let mr=h(()=>!n(Bo));bo(Zn,{className:"w-max",get disabled(){return n(mr)},get tooltipContent(){return yn},get ref(){return It.episodes},set ref(ft){It.episodes=ft},children:(ft,$t)=>{var Cn=Be(),Rr=le(Cn);{var As=Vr=>{rd(Vr,{get position(){return je()},get duration(){return at()},get timeCodes(){return Ko}})};L(Rr,Vr=>{n(Bo)&&Vr(As)})}b(ft,Cn)},$$slots:{default:!0}}),v(Wi);var qi=E(Wi,2);ai(qi,21,()=>n(Ke),ft=>ft.id,(ft,$t)=>{var Cn=Be(),Rr=le(Cn);{var As=Nr=>{Zc(Nr,{get buttonComponent(){return n($t).buttonComponent},get buttonComponentProps(){return n($t).buttonComponentProps},get tooltipText(){return n($t).tooltipText},get disabledTooltipContent(){return n($t).disabledTooltipContent},get disabled(){return n($t).disabled},get className(){return n($t).className},get ref(){return It[n($t).id]},set ref(ps){It[n($t).id]=ps}})},Vr=Nr=>{let ps=h(()=>!!n($t).disabled);Vf(Nr,{get id(){return n($t).id},get testId(){return n($t).testId},get icon(){return n($t).icon},get ariaLabel(){return n($t).ariaLabel},get tooltipText(){return n($t).tooltipText},get disabledTooltipContent(){return n($t).disabledTooltipContent},get disabled(){return n(ps)},get onClick(){return n($t).onClick},get ref(){return It[n($t).id]},set ref(el){It[n($t).id]=el}})};L(Rr,Nr=>{Hh(n($t))?Nr(As):Nr(Vr,!1)})}b(ft,Cn)}),v(qi),v(Yn),Xe(Yn,ft=>Ze(ft),()=>Ze()),v(Zt),Xe(Zt,ft=>Tt(ft),()=>Tt());var Ja=E(Zt,2);{var ga=ft=>{dd(ft,{get ref(){return It.interactiveTimeIndicator},set ref($t){It.interactiveTimeIndicator=$t}})};L(Ja,ft=>{Yi&&ft(ga)})}B(ft=>Ji=Z(Zt,1,"wrapper-bottom svelte-f6e8ix",null,Ji,ft),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),zr(Wi,"clientWidth",ft=>N(Oo,ft)),b(t,Lt),H(),o()}import{ChromecastState as Wh,PlaybackState as qh}from"@vkontakte/videoplayer-core/evergreen";import{noop as zh}from"@vkontakte/videoplayer-shared/evergreen";var i2=P('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),o2=P('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),n2={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function Of(t,e){U(t,n2);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,zh),r=h(()=>o()===zh),s=h(()=>n(r)||i()),a=K(!1),l=()=>{N(a,!0)},d=h(()=>n(r)?"btn-full-opacity":"");Ct(t,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(u,m)=>{var g=Be(),c=le(g);{var $=x=>{var S=i2();b(x,S)},w=x=>{var S=o2();B(()=>Me(S,"src",e.iconUrl)),gt("error",S,l),Us(S),b(x,S)};L(c,x=>{n(a)?x($):x(w,!1)})}b(u,g)},$$slots:{default:!0}})}var r2=$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 Df(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=r2();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}import{noop as s2}from"@vkontakte/videoplayer-shared/evergreen";var a2=P('<span class="text svelte-6gmlbk"> </span>'),l2=P('<div aria-hidden="true"><!> <!></div>'),d2={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 Jc(t,e){D(e,!0),U(t,d2);let i=f(e,"muted",3,!1),o=f(e,"expanded",3,!1),r=f(e,"click",3,s2),s=f(e,"ref",15,void 0),l=we().ui.t,d=h(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),u=h(()=>o()?Ts:Df),m=h(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Ct(t,{get testId(){return n(m)},get click(){return r()},get ariaLabel(){return n(d)},role:"button",get ref(){return s()},set ref(g){s(g)},children:(g,c)=>{var $=l2();let w=h(()=>n(u)),x;var S=_($);li(S,()=>n(w),(M,I)=>{I(M,{})});var C=E(S,2);{var A=M=>{var I=a2(),k=_(I,!0);v(I),B(V=>ue(k,V),[()=>l("mobile_unmute")]),b(M,I)};L(C,M=>{o()&&M(A)})}v($),B(M=>x=Z($,1,"container svelte-6gmlbk",null,x,M),[()=>({expanded:o()})]),b(g,$)},$$slots:{default:!0}}),H()}var c2=$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 Hf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=c2();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(3),v(o),b(t,o)}var u2={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Ff(t,e){U(t,u2);let i=f(e,"isActive",3,!1),o=h(()=>i()?"color: #2688EB;":"color: #fff;"),r=h(()=>i()?"pip-icon--active":"pip-icon");Hf(t,{get style(){return n(o)},get"data-testid"(){return n(r)}})}import{noop as p2}from"@vkontakte/videoplayer-shared/evergreen";function Uf(t,e){D(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isPictureInPictureActive",3,!1),r=f(e,"click",3,p2),s=F("menu_pip");Ct(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(a){i(a)},children:(a,l)=>{Ff(a,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}import{debounceFn as Kh}from"@vkontakte/videoplayer-shared/evergreen";var f2=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},m2=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},v2=P("<div><!></div>"),g2=P("<div><!></div>"),h2=P("<div><!></div>"),_2=P("<!> <!> <!>",1),b2=P("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),$2=P("<div><!></div>"),y2=P('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),x2=P("<!> <!> <div><!></div>",1),w2=P('<div aria-hidden="true">\xB7</div> <!>',1),S2=P('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!></div></div> <!></div></div> <!>',1),C2={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-9xcbwc {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
251
+ animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function dd(t,e){D(e,!0),U(t,k2);let[i,o]=Le(),r=()=>y(S,"$isMobile",i),s=()=>y(I,"$areControlsVisible",i),a=()=>y(V,"$currentGridType$",i),l=()=>y(P,"$isInteractiveTime$",i),d=()=>y(x,"$interactiveControlsOpacity$",i),u=()=>y(M,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>y(C,"$isFullscreen",i),g=f(e,"ref",15,void 0),c=K(void 0),$=xe(),w=zi(),{interactiveControlsOpacity$:x}=w,S=$.ui.isMobile,C=$.ui.isFullscreen,P=$.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,I=$.ui.controlsVisible,k=$.callbacks?.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,q=h(()=>!r()&&s()),z=h(()=>ks(a(),"s")),ie=h(()=>!l()||!!d()||n(q)),oe=K(!1);De(()=>{N(oe,n(ie),!0)});let ve=()=>{N(oe,!0)},Q=()=>{me(),n(c)?.addEventListener("animationiteration",ve,{once:!0})},me=()=>{N(oe,!1),n(c)?.removeEventListener("animationiteration",ve)},J=ne=>{M.set(ne)},Pe=h(()=>u()&&!n(ie));De(()=>{u()?Q():me()});let Me=()=>{n(ie)||(M.set(!0),k?.())};an(()=>{M.clearTimeout(),me()});let Ie=()=>{M.set(!1)},_e=F("tooltip_interactive_interaction_time_indicator");var Re=T2();let re;Re.__mousemove=[C2],Re.__click=Me;var R=_(Re);go(R,{get tooltipContent(){return _e},get tooltipActive(){return n(Pe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return g()},set ref(ne){g(ne)},children:(ne,Ee)=>{ed(ne,{completed:!0})},$$slots:{default:!0}});var Ze=E(R,2);let ue;Je(Ze,ne=>g(ne),()=>g());var Fe=E(Ze,2);let le;Je(Fe,ne=>N(c,ne),()=>n(c)),v(Re),B((ne,Ee,j)=>{re=Z(Re,1,"interactive-episode-icon-animated svelte-od3veb",null,re,ne),ue=Z(Ze,1,"ref-block svelte-od3veb",null,ue,Ee),le=Z(Fe,1,"pulse svelte-od3veb",null,le,j)},[()=>({mobile:r(),fullscreen:m(),invisible:n(ie),"icon-small":n(z)}),()=>({hidden:n(ie)}),()=>({paused:n(oe)})]),bt("mouseleave",Re,Ie),b(t,Re),H(),o()}st(["mousemove","click"]);function Zc(t,e){D(e,!0);let i=f(e,"tooltipEnabled",3,!0),o=f(e,"disabled",3,!1),r=f(e,"className",3,void 0),s=f(e,"ref",15);go(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 r()},get ref(){return s()},set ref(a){s(a)},children:(a,l)=>{var d=Oe();let u=h(()=>e.buttonComponent);var m=ce(d);ci(m,()=>n(u),(g,c)=>{c(g,ns(()=>e.buttonComponentProps??{}))}),b(a,d)},$$slots:{default:!0}}),H()}var ds={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var I2=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Pf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=I2();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}function Es(t,e){let i=f(e,"isPrev",3,!1),o=f(e,"isMobile",3,!1),r=f(e,"width",3,"24"),s=f(e,"height",3,"24"),a=h(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),l=h(()=>i()?"prev-icon":"next-icon");Pf(t,{get style(){return n(a)},get width(){return r()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return n(l)}})}var P2=A('<div class="icon-background-mobile svelte-xtk2k4"></div>'),A2=A("<!> <!>",1),M2={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function aa(t,e){D(e,!0),U(t,M2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),r=f(e,"disabled",3,!1),a=xe().ui.t,l=h(()=>e.type==="prev"?a("tooltip_previous"):a("tooltip_next")),d=h(()=>e.type==="prev"?a("hotkey_map_item_prev_video_value"):a("hotkey_map_item_next_video_value")),u=h(()=>`btn-${o()?"m":"d"}--${e.type}`);kt(t,{get className(){return n(u)},get testId(){return`btn-${e.type??""}`},get disabled(){return r()},get ariaLabel(){return n(l)},get click(){return e.click},get ariaKeyShortCut(){return n(d)},get ref(){return i()},set ref(m){i(m)},children:(m,g)=>{var c=A2(),$=ce(c);{var w=C=>{var P=P2();b(C,P)};L($,C=>{o()&&C(w)})}var x=E($,2);let S=h(()=>e.type==="prev");Es(x,{get isMobile(){return o()},get isPrev(){return n(S)}}),b(m,c)},$$slots:{default:!0}}),H()}var L2=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function cd(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=L2();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}import{noop as R2}from"@vkontakte/videoplayer-shared/evergreen";var V2=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),N2=A("<!> <div><!></div>",1),B2={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 ja(t,e){D(e,!0),U(t,B2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),r=f(e,"disabled",3,!1),s=f(e,"className",3,""),a=f(e,"click",3,R2),l=F("tooltip_restart"),d=h(()=>`${o()?"btn-m--play":""} ${s()}`);kt(t,{get className(){return n(d)},testId:"btn-replay",get ariaLabel(){return l},get disabled(){return r()},get click(){return a()},get ariaKeyShortCut(){return Wr.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var g=N2(),c=ce(g);{var $=C=>{var P=V2();b(C,P)};L(c,C=>{o()&&C($)})}var w=E(c,2);let x;var S=_(w);cd(S,{}),v(w),B(C=>x=Z(w,1,"svelte-1ot3duq",null,x,C),[()=>({mobile:o()})]),b(u,g)},$$slots:{default:!0}}),H()}var O2=ye('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Sr(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),r=f(e,"viewBox",3,"0 0 24 24"),s=f(e,"fill",3,"var(--btn-color)");var a=O2(),l=_(a);v(a),B(()=>{Ae(a,"width",i()),Ae(a,"height",o()),Ae(a,"viewBox",r()),Ae(l,"fill",s())}),b(t,a)}var D2=ye('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function cs(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),r=f(e,"viewBox",3,"0 0 24 24"),s=f(e,"fill",3,"var(--btn-color)");var a=D2(),l=_(a);v(a),B(()=>{Ae(a,"width",i()),Ae(a,"height",o()),Ae(a,"viewBox",r()),Ae(l,"fill",s())}),b(t,a)}import{noop as H2}from"@vkontakte/videoplayer-shared/evergreen";var F2=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),U2=A("<!> <div><!></div>",1),z2={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 Ya(t,e){D(e,!0),U(t,z2);let[i,o]=Le(),r=()=>y(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=zi(),a=f(e,"ref",15,void 0),l=f(e,"isMobile",3,!1),d=f(e,"isPlaying",3,!1),u=f(e,"disabled",3,!1),m=f(e,"className",3,""),g=f(e,"click",3,H2),$=xe().ui.t,{toggle:w}=s,x=h(()=>w),S=h(()=>r()!==null),C=h(()=>n(S)?r():d()),P=h(()=>n(C)?$("tooltip_pause"):$("tooltip_play")),M=h(()=>n(C)?cs:Sr),I=h(()=>`${l()?"btn-m--play":""} ${m()}`),k=h(()=>n(S)?n(x):g());kt(t,{get className(){return n(I)},testId:"btn-play",get click(){return n(k)},get disabled(){return u()},get ariaLabel(){return n(P)},get ariaKeyShortCut(){return Wr.KeyK},get ref(){return a()},set ref(V){a(V)},children:(V,q)=>{var z=U2();let ie=h(()=>n(M));var oe=ce(z);{var ve=Pe=>{var Me=F2();b(Pe,Me)};L(oe,Pe=>{l()&&Pe(ve)})}var Q=E(oe,2);let me;var J=_(Q);ci(J,()=>n(ie),(Pe,Me)=>{Me(Pe,{})}),v(Q),B(Pe=>me=Z(Q,1,"svelte-1ot3duq",null,me,Pe),[()=>({mobile:l()})]),b(V,z)},$$slots:{default:!0}}),H(),o()}var W2=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Af(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=W2();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}function ud(t,e){D(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),r=f(e,"disabled",3,!1),s=F("tooltip_interactive_go_back"),a=h(()=>o()?"hidden":"");kt(t,{get className(){return n(a)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Af(l,{})},$$slots:{default:!0}}),H()}var q2=A('<span class="gutter svelte-et3q1q"><span><!></span></span>'),K2={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function pd(t,e){D(e,!0),U(t,K2);let[i,o]=Le(),r=()=>y(d,"$autoplayNextEnabled$",i),s=f(e,"ref",15,void 0),a=xe(),l=a.ui.t,d=a.ui.autoplayNextEnabled$,u=a.actions.internal.setAutoplayNextEnabled,m=()=>{u(!r(),!0)},g=l("aria_label_autoplay"),c=h(()=>r()?"true":"false");kt(t,{click:m,get ariaLabel(){return g},role:"switch",get areaChecked(){return n(c)},get ref(){return s()},set ref($){s($)},children:($,w)=>{var x=q2(),S=_(x);let C;var P=_(S);{var M=k=>{Sr(k,{width:"14",height:"14",fill:"#000"})},I=k=>{cs(k,{width:"14",height:"14",fill:"#000"})};L(P,k=>{r()?k(M):k(I,!1)})}v(S),v(x),B(k=>C=Z(S,1,"toggler svelte-et3q1q",null,C,k),[()=>({enabled:r()})]),b($,x)},$$slots:{default:!0}}),H(),o()}var Q2=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Mf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Q2();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}function fd(t,e){D(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),r=f(e,"disabled",3,!1),s=F("tooltip_interactive_seek"),a=h(()=>o()?"hidden":"");kt(t,{get className(){return n(a)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Mf(l,{})},$$slots:{default:!0}}),H()}var G2=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Lf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=G2();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}var j2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Rf(t,e){U(t,j2);let i=f(e,"isOpened",3,!1),o=h(()=>i()?"graph-close-icon":"graph-open-icon");Lf(t,{get"data-testid"(){return n(o)}})}function md(t,e){D(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),r=f(e,"disabled",3,!1),s=f(e,"graphIsOpened",3,!1),l=xe().ui.t,d=h(()=>s()?l("tooltip_interactive_graph_on"):l("tooltip_interactive_graph_off")),u=h(()=>o()?"hidden":"");kt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,g)=>{let c=h(()=>!!s());Rf(m,{get isOpened(){return n(c)}})},$$slots:{default:!0}}),H()}import{PlaybackState as Oh}from"@vkontakte/videoplayer-core/evergreen";function vd(t,e){D(e,!0);let[i,o]=Le(),r=()=>y(u,"$playbackState$",i),s=f(e,"isMobile",3,!1),a=f(e,"isLiveActive",3,!1),l=f(e,"ariaLabel",3,""),d=xe(),u=d.state.playbackState$,m=d.actions.internal.switchToActiveLive,g=d.actions.internal.togglePlay,c=h(()=>()=>{if(!a()){m();return}r()===Oh.PAUSED&&g()}),$=h(()=>s()?"":"btn--live btn-full-opacity"),w=h(()=>a()?"btn-live":"btn-live-offset"),x=h(()=>a()&&r()===Oh.PLAYING);kt(t,{get className(){return n($)},get testId(){return n(w)},get disabled(){return n(x)},get ariaLabel(){return l()},get click(){return n(c)},children:(S,C)=>{Dl(S,{get isActive(){return a()}})},$$slots:{default:!0}}),H(),o()}import{noop as Dh}from"@vkontakte/videoplayer-shared/evergreen";var Y2=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Z2=A('<img class="icon" aria-hidden="true"/>');function la(t,e){"use strict";let i=K(!1),o=()=>{N(i,!0)};var r=Oe(),s=ce(r);{var a=d=>{var u=Y2();b(d,u)},l=d=>{var u=Z2();B(()=>Ae(u,"src",e.icon)),bt("error",u,o),Us(u),b(d,u)};L(s,d=>{n(i)?d(a):d(l,!1)})}b(t,r)}function Vf(t,e){D(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Dh),r=f(e,"ref",15),s=h(()=>o()===Dh),a=h(()=>n(s)||i()),l=h(()=>n(s)?"btn-full-opacity":"");go(t,{get disabled(){return n(a)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return r()},set ref(d){r(d)},children:(d,u)=>{let m=h(()=>e.testId??e.id);kt(d,{get className(){return n(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return n(m)},children:(g,c)=>{la(g,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var Hh=t=>!!t.buttonComponent;var us={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Xc=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(wr(t,i,r,o))};var ey=A('<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),ty={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){D(e,!0),U(t,ty);let[i,o]=Le(),r=()=>y(G,"$disabledControls$",i),s=()=>y(bo,"$adPlaybackState",i),a=()=>y(Ye,"$playbackState$",i),l=()=>y(to,"$currentSubtitle$",i),d=()=>y(Ni,"$isEnded$",i),u=()=>y(mi,"$currentGridType$",i),m=()=>y(Bi,"$isLive$",i),g=()=>y(_o,"$chromecastState$",i),c=()=>y(cn,"$isPictureInPictureActive",i),$=()=>y(Qo,"$pictureInPictureType$",i),w=()=>y(eo,"$availableSubtitlesList$",i),x=()=>y(Oi,"$contextMenuOpenedByKeyboard$",i),S=()=>y(Xt,"$showContextMenuBtn$",i),C=()=>y(Dn,"$playerSize",i),P=()=>y(Ko,"$isRewindableLive$",i),M=()=>y(ho,"$isActiveLive$",i),I=()=>y(qi,"$graphIsOpened$",i),k=()=>y(Gt,"$contextMenuVisible$",i),V=()=>y(Pi,"$isFullscreen",i),q=()=>y(si,"$autoplayNextEnabled",i),z=()=>y(n(ao),"$prevButton",i),ie=()=>y(n(Qn),"$replayButton",i),oe=()=>y(n(lr),"$playButton",i),ve=()=>y(n(pi),"$nextButton",i),Q=()=>y(n(jr),"$playPrevChapterButton",i),me=()=>y(n(_t),"$seekToInteractiveButton",i),J=()=>y(n(Vt),"$interactiveGraphButton",i),Pe=()=>y(n(To),"$liveButton",i),Me=()=>y(n(Ho),"$time",i),Ie=()=>y(n(dr),"$episodes",i),_e=()=>y(n(cr),"$vkLogo",i),Re=()=>y(n(ko),"$volume",i),re=()=>y(n(Ir),"$subtitles",i),R=()=>y(n(Pr),"$settings",i),Ze=()=>y(n(Yr),"$context",i),ue=()=>y(n(rt),"$fullscreen",i),Fe=()=>y(n(Et),"$chromecast",i),le=()=>y($o,"$additionalDesktopControlPanelRightButtons$",i),ne=()=>y(ui,"$isInteractiveTime$",i),Ee=()=>y(Vo,"$settingsMenuVisible",i),j=()=>y(Di,"$settingButtonRef$",i),Ue=()=>y(ti,"$startedByKeyboard$",i),tt=()=>y(He,"$isAudioAvailable$",i),de=()=>y(gt,"$fakeIsPlaying$",i),ee=()=>y(No,"$seekToInteractiveDisabledTooltip$",i),Be=()=>y(Rt,"$adPosition",i),Xe=()=>y(ht,"$position$",i),dt=()=>y(vt,"$adDuration",i),at=()=>y(Ne,"$duration$",i),Mt=f(e,"playerControlsWrapperRef",15,void 0),je=f(e,"playerControlsRef",15,void 0),lt=f(e,"isAds",3,!1),Bt=f(e,"logoTargetUrl",3,""),zt=f(e,"isOneVideoPlaylist",3,!1),Qe=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:gt}=zi(),Se=xe(),Pt=zi(),ge=Lt(),Y=Se.actions.internal.toggleMuted,se=Se.actions.internal.togglePlay,Ve=Se.actions.internal.pause,ke=Se.actions.internal.toggleSubtitle,qe=Se.callbacks?.onAudioDoesNotExistHint,it=Se.callbacks?.onAudioDisabledHint,Ne=Se.state.duration$,ht=Se.state.positionWithScrubbing$,Ye=Se.state.playbackState$,He=Se.state.isAudioAvailable$,jt=Se.state.isAudioDisabled,Ni=Se.state.isEnded$,Bi=Se.state.isLive$,ho=Se.state.isActiveLive$,Ko=Se.state.isRewindableLive$,{isActive$:cn,type$:Qo}=Pt.pictureInPicture$,Vo=Se.ui.settingsMenu.visible$,Wi=Se.ui.settingsMenu.openedByBtnKeyboard$,Wt=Se.ui.controls,Go=Se.actions.internal.getVideoEpisodes(),_o=Se.state.chromecastState$,eo=Se.state.availableSubtitlesList$,to=Se.state.currentSubtitle$,G=Wt.disabledControls$,Gt=Se.ui.contextMenu.visible$,Xt=Se.ui.contextMenu.showContextMenuBtn$,Oi=Se.ui.contextMenu.openedByBtnKeyboard$,ti=Se.ui.startedByKeyboard$,Jt=Se.ui.controlBlocks,Tt=Se.ui.t,vt=Se.ads.duration,Rt=Se.ads.position,bo=Se.ads.playbackState,Pi=Se.ui.isFullscreen,Dn=Se.ui.playerSize,mi=Se.ui.currentGridType$,$o=Se.ui.additionalDesktopControlPanelRightButtons$,si=Se.ui.autoplayNextEnabled$,pt=Se.actions.internal.getVideoElement,vi=Se.actions.internal.replayInteractive,yo=Se.actions.internal.prevVideoClick,un=Se.actions.internal.nextVideoClick,Yt=Se.state.isInteractive,ui=Se.state.isInteractiveTime$,xo=Se.state.showInteractiveGraph,pn=Se.state.showSeekToInteractive,wo=Se.state.showPlayPrevChapter,io=Se.state.showInteractiveTimeIndicator,jo=Se.state.playPrevChapterDisabledTooltip,No=Pt.seekToInteractiveDisabledTooltip$,qi=Pt.graphIsOpened$,oo=ge.features.interactiveResponsiveUi,Tr=h(()=>r().has("EPISODE_BUTTON")),nr=h(()=>r().has("GRAPH_BUTTON")),Hn=h(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Fn=h(()=>r().has("PLAY_BUTTON")),Un=h(()=>r().has("REPLAY_BUTTON")),fn=h(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Gr=()=>Se.actions.internal.toggleChromecast(),mn=h(()=>lt()?s()==="playing":a()===Nf.PLAYING),gi=h(()=>l().value!=="off"),vn=h(()=>d()&&!lt()||Yt),Bo=h(()=>oo?n(vn)&&Ei(u(),"m"):n(vn)),Oo=h(()=>!d()||Yt||lt()),gn=h(()=>Ei(u(),"m")),hn=h(()=>e.showNextPrevButtons&&Ei(u(),"m")&&!lt()&&e.nextButtonActive),So=h(()=>e.showNextPrevButtons&&Ei(u(),"m")&&!lt()&&e.prevButtonActive),kr=h(()=>!lt()&&!!m()),_n=h(()=>g()!==Fh.NOT_AVAILABLE&&!(c()&&$()===1)&&Ei(u(),"m")&&!Yt),zn=h(()=>e.showAutoplayNext&&!zt()&&Ei(u(),"s")),wi=h(()=>w().length>0&&Ei(u(),"m")),no=h(()=>x()||S()),nt=h(()=>Ei(u(),"s")&&!lt()),ai=h(()=>!e.logoHidden&&!lt()),rr=h(()=>ge.features.fullscreen&&(e.logoHidden||Ei(u(),oo?"xs":"s"))&&!(c()&&$()===1)&&(Yt?Qe():!0)),bn=h(()=>(!m()||lt())&&!(ge.features.interactiveHideTime&&Yt)),Yo=h(()=>C().width>100),hi=h(()=>xo&&Ei(u(),"m")),$n=h(()=>oo?pn&&Ei(u(),"s"):pn),ro=h(()=>oo?wo&&Ei(u(),"s"):wo),yn=h(()=>!lt()&&!m()&&!!Go?.length&&n(gn)&&!n(Tr)),so=h(()=>!P()||!!M()),xn=h(()=>I()?Tt("tooltip_interactive_graph_on"):Tt("tooltip_interactive_graph_off")),wn=h(()=>k()?Tt("tooltip_context_menu_close"):Tt("tooltip_context_menu_open")),Wn=(mt,wt)=>mt?wt&&wt===Nf.PAUSED?Tt("tooltip_play"):"":Tt("tooltip_live"),sr=h(()=>Wn(n(so),a())),qn=h(()=>ge.logoType==="vk_video"?Tt("tooltip_vk_video_logo"):Tt("tooltip_vk_logo")),Co=h(()=>n(gi)?Tt("tooltip_subtitles_on"):Tt("tooltip_subtitles_off")),Er=h(()=>V()?Tt("tooltip_fullscreen_on"):Tt("tooltip_fullscreen_off")),Kn=h(()=>g()===Fh.CONNECTED?Tt("tooltip_chromecast_on"):Tt("tooltip_chromecast_off")),ar=h(()=>q()?Tt("tooltip_autoplay_on"):Tt("tooltip_autoplay_off")),Do=K(0),Ot=Qt({}),Ki=Qt({}),ao=h(()=>Wt.prevButton),Qn=h(()=>Wt.replayButton),lr=h(()=>Wt.playButton),pi=h(()=>Wt.nextButton),jr=h(()=>Wt.playPrevChapterButton),_t=h(()=>Wt.seekToInteractiveButton),Vt=h(()=>Wt.interactiveGraphButton),To=h(()=>Wt.liveButton),Ho=h(()=>Wt.time),dr=h(()=>Wt.episodes),cr=h(()=>Wt.vkLogo),ko=h(()=>Wt.volume),Ir=h(()=>Wt.subtitles),Pr=h(()=>Wt.settings),Yr=h(()=>Wt.context),rt=h(()=>Wt.fullscreen),Et=h(()=>Wt.chromecast),qt=h(()=>({prevButton:z()?z().right-z().left:0,replayButton:ie()?ie().right-ie().left:0,playButton:oe()?oe().right-oe().left:0,nextButton:ve()?ve().right-ve().left:0,playPrevChapterButton:Q()?Q().right-Q().left:0,seekToInteractiveButton:me()?me().right-me().left:0,interactiveGraphButton:J()?J().right-J().left:0,liveButton:Pe()?Pe().right-Pe().left:0,time:Me()?Me().right-Me().left:0,episodes:Ie()?Ie().right-Ie().left:0,vkLogo:_e()?_e().right-_e().left:0,volume:Re()?Re().right-Re().left:0,subtitles:re()?re().right-re().left:0,settings:R()?R().right-R().left:0,context:Ze()?Ze().right-Ze().left:0,fullscreen:ue()?ue().right-ue().left:0,chromecast:Fe()?Fe().right-Fe().left:0,additionalButtons:le().length?le().reduce(mt=>[...mt,40],[]):[]})),Ai=K(0);De(()=>{(!n(Ai)||n(Ai)<n(qt).time)&&yt(()=>N(Ai,n(qt).time,!0))});let Si=K(!1);De(()=>{let mt=0;n(yn)&&(Ei(u(),"xl")?mt=n(qt).time:mt=60);let wt=n(qt).prevButton+n(qt).playButton+n(qt).nextButton+n(qt).seekToInteractiveButton+n(qt).interactiveGraphButton+n(qt).liveButton+n(Ai)+mt;N(Si,n(bn)&&n(Do)>=wt,!0)});let Qi=h(()=>n(Si)&&Ei(u(),"m")),lo=Uh(Ga,260),Zo=Uh(Xc,260);De(()=>{C(),ne(),lo(pt(),Wt,Ot,e.showControls),Zo(pt(),Jt,Ki,e.showControls)}),De(()=>{Ki.bottom=Mt()});let Di=te();De(()=>{Ee(),j()&&yt(()=>Ua(j(),Ee(),Wi))});let _i;De(()=>{Ue(),yt(()=>Yc(ti,Ue(),_i))});function Ci(){Cs({isAudioDisabled:jt,isAudioAvailable:tt(),isAds:lt(),audioIsNotExistHintCallback:qe,audioDisabledHintCallback:it})&&Y()}let Eo=Yt?vi:se,Hi=h(()=>de()!==null),co=h(()=>n(Hi)?de():n(mn)),ur=h(()=>n(co)?Tt("tooltip_pause"):Tt("tooltip_play")),Sn=Tt("tooltip_episodes"),pr=h(()=>n(So)?{id:"prevButton",type:"desktop-control-panel-left",weight:ds.prevButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:yo.bind(null,!0)},tooltipEnabled:!Se.callbacks?.uiInfo?.onPrevButtonMouseEnter&&!Se.callbacks?.uiInfo?.onPrevButtonMouseLeave,mouseEnter:()=>{Se.callbacks?.uiInfo?.onPrevButtonMouseEnter?.(wr(pt(),Ot,"prevButton",e.showControls))},mouseLeave:()=>{Se.callbacks?.uiInfo?.onPrevButtonMouseLeave?.(wr(pt(),Ot,"prevButton",e.showControls))},tooltipText:Tt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0),Ar=h(()=>n(Bo)?{id:"replayButton",type:"desktop-control-panel-left",weight:ds.replayButton,buttonComponent:ja,buttonComponentProps:{disabled:n(Un),click:Eo},tooltipText:Tt("tooltip_restart"),disabled:n(Un)}:void 0),Mr=h(()=>n(Oo)?{id:"playButton",type:"desktop-control-panel-left",weight:ds.playButton,buttonComponent:Ya,buttonComponentProps:{disabled:n(Fn),isPlaying:n(mn),click:se},tooltipText:n(ur),disabled:n(Fn)}:void 0),Cn=h(()=>n(hn)?{id:"nextButton",type:"desktop-control-panel-left",weight:ds.nextButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:un.bind(null,!0)},tooltipEnabled:!Se.callbacks?.uiInfo?.onNextButtonMouseEnter&&!Se.callbacks?.uiInfo?.onNextButtonMouseLeave,mouseEnter:()=>{Se.callbacks?.uiInfo?.onNextButtonMouseEnter?.(wr(pt(),Ot,"nextButton",e.showControls))},mouseLeave:()=>{Se.callbacks?.uiInfo?.onNextButtonMouseLeave?.(wr(pt(),Ot,"nextButton",e.showControls))},tooltipText:Tt("tooltip_next"),disabled:!e.nextButtonActive}:void 0),Tn=h(()=>Yt&&n(ro)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ds.playPrevChapterButton,buttonComponent:ud,buttonComponentProps:{disabled:n(fn),click:e.playPrevChapter},tooltipText:Tt("tooltip_interactive_go_back"),disabledTooltipContent:Tt(jo),disabled:n(fn)}:void 0),Xo=h(()=>Yt&&n($n)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ds.seekToInteractiveButton,buttonComponent:fd,buttonComponentProps:{disabled:n(Hn),click:e.seekToInteractive},tooltipText:Tt("tooltip_interactive_seek"),disabled:n(Hn),disabledTooltipContent:Tt(ee())}:void 0),Mi=h(()=>Yt&&n(hi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ds.interactiveGraphButton,buttonComponent:md,buttonComponentProps:{disabled:n(nr),click:qi.toggle,graphIsOpened:I()},tooltipText:n(xn)}:void 0),kn=h(()=>n(kr)?{id:"liveButton",type:"desktop-control-panel-left",weight:ds.liveButton,buttonComponent:vd,buttonComponentProps:{isLiveActive:n(so),ariaLabel:n(sr)},tooltipText:n(sr),disabled:n(so)&&a()===Nf.PLAYING}:void 0),Gn=h(()=>[n(pr),n(Ar),n(Mr),n(Cn),n(Tn),n(Xo),n(Mi),n(kn)].filter(mt=>!!mt).sort(Js)),jn=h(()=>n(ai)?{id:"vkLogo",type:"desktop-control-panel-right",weight:us.vkLogo,buttonComponent:id,buttonComponentProps:{targetUrl:Bt(),logoClickable:e.logoClickable,click:Ve},tooltipText:n(qn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),fr=h(()=>n(zn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:us.autoplayNext,buttonComponent:pd,tooltipText:n(ar)}:void 0),Lr=h(()=>({id:"volume",type:"desktop-control-panel-right",weight:us.volume,buttonComponent:cf,buttonComponentProps:{click:Ci,isAds:lt()}})),ze=h(()=>n(wi)?{id:"subtitles",type:"desktop-control-panel-right",weight:us.subtitles,buttonComponent:rf,buttonComponentProps:{isSubtitlesEnabled:n(gi),click:ke},tooltipText:n(Co)}:void 0),ae=h(()=>n(nt)?{id:"settings",type:"desktop-control-panel-right",weight:us.settings,buttonComponent:Ka,buttonComponentProps:{ref$:Di},tooltipText:Ee()?void 0:Tt("tooltip_settings_off")}:void 0),xt=h(()=>ge.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:us.context,buttonComponent:If,buttonComponentProps:{ariaLabel:Tt("aria_label_context_menu")},className:n(no)?"":"out-of-view",tooltipText:n(wn)}:void 0),ii=h(()=>n(rr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:us.fullscreen,buttonComponent:td,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:n(Er)}:void 0),ri=h(()=>n(_n)?{id:"chromecast",type:"desktop-control-panel-right",weight:us.chromecast,buttonComponent:od,buttonComponentProps:{state:g(),click:Gr},tooltipText:n(Kn)}:void 0),Ge=h(()=>[n(jn),n(fr),n(Lr),n(ze),n(ae),n(xt),n(ii),n(ri),...le()].filter(mt=>!!mt).sort(Js));var $t=ey(),Dt=ce($t);let Gi;var Ti=_(Dt);let Yn=h(()=>!n(Yo));ra(Ti,{get isHidden(){return n(Yn)},get isAds(){return lt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return Ot.timeline},set ref(mt){Ot.timeline=mt}});var Zn=E(Ti,2),Fi=_(Zn),ji=_(Fi);di(ji,17,()=>n(Gn),mt=>mt.id,(mt,wt)=>{Zc(mt,{get buttonComponent(){return n(wt).buttonComponent},get buttonComponentProps(){return n(wt).buttonComponentProps},get tooltipText(){return n(wt).tooltipText},get disabledTooltipContent(){return n(wt).disabledTooltipContent},get disabled(){return n(wt).disabled},get className(){return n(wt).className},get tooltipEnabled(){return n(wt).tooltipEnabled},get mouseEnter(){return n(wt).mouseEnter},get mouseLeave(){return n(wt).mouseLeave},get ref(){return Ot[n(wt).id]},set ref(En){Ot[n(wt).id]=En}})});var li=E(ji,2);{var Jo=mt=>{let wt=h(()=>lt()?Be():Xe()),En=h(()=>lt()?dt():at());Jl(mt,{isMobile:!1,get showDuration(){return n(Qi)},get position(){return n(wt)},get duration(){return n(En)},get ref(){return Ot.time},set ref(Rr){Ot.time=Rr}})};L(li,mt=>{n(bn)&&mt(Jo)})}var Xn=E(li,2);let mr=h(()=>!n(yn));go(Xn,{className:"w-max",get disabled(){return n(mr)},get tooltipContent(){return Sn},get ref(){return Ot.episodes},set ref(mt){Ot.episodes=mt},children:(mt,wt)=>{var En=Oe(),Rr=ce(En);{var Ps=Vr=>{rd(Vr,{get position(){return Xe()},get duration(){return at()},get timeCodes(){return Go}})};L(Rr,Vr=>{n(yn)&&Vr(Ps)})}b(mt,En)},$$slots:{default:!0}}),v(Fi);var Ui=E(Fi,2);di(Ui,21,()=>n(Ge),mt=>mt.id,(mt,wt)=>{var En=Oe(),Rr=ce(En);{var Ps=Nr=>{Zc(Nr,{get buttonComponent(){return n(wt).buttonComponent},get buttonComponentProps(){return n(wt).buttonComponentProps},get tooltipText(){return n(wt).tooltipText},get disabledTooltipContent(){return n(wt).disabledTooltipContent},get disabled(){return n(wt).disabled},get className(){return n(wt).className},get ref(){return Ot[n(wt).id]},set ref(ps){Ot[n(wt).id]=ps}})},Vr=Nr=>{let ps=h(()=>!!n(wt).disabled);Vf(Nr,{get id(){return n(wt).id},get testId(){return n(wt).testId},get icon(){return n(wt).icon},get ariaLabel(){return n(wt).ariaLabel},get tooltipText(){return n(wt).tooltipText},get disabledTooltipContent(){return n(wt).disabledTooltipContent},get disabled(){return n(ps)},get onClick(){return n(wt).onClick},get disableMouseupTooltipShow(){return n(wt).disableMouseupTooltipShow},get ref(){return Ot[n(wt).id]},set ref(el){Ot[n(wt).id]=el}})};L(Rr,Nr=>{Hh(n(wt))?Nr(Ps):Nr(Vr,!1)})}b(mt,En)}),v(Ui),v(Zn),Je(Zn,mt=>je(mt),()=>je()),v(Dt),Je(Dt,mt=>Mt(mt),()=>Mt());var Ja=E(Dt,2);{var ga=mt=>{dd(mt,{get ref(){return Ot.interactiveTimeIndicator},set ref(wt){Ot.interactiveTimeIndicator=wt}})};L(Ja,mt=>{io&&mt(ga)})}B(mt=>Gi=Z(Dt,1,"wrapper-bottom svelte-f6e8ix",null,Gi,mt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),zr(Fi,"clientWidth",mt=>N(Do,mt)),b(t,$t),H(),o()}import{ChromecastState as Wh,PlaybackState as qh}from"@vkontakte/videoplayer-core/evergreen";import{noop as zh}from"@vkontakte/videoplayer-shared/evergreen";var iy=A('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),oy=A('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),ny={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function Of(t,e){U(t,ny);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,zh),r=h(()=>o()===zh),s=h(()=>n(r)||i()),a=K(!1),l=()=>{N(a,!0)},d=h(()=>n(r)?"btn-full-opacity":"");kt(t,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(u,m)=>{var g=Oe(),c=ce(g);{var $=x=>{var S=iy();b(x,S)},w=x=>{var S=oy();B(()=>Ae(S,"src",e.iconUrl)),bt("error",S,l),Us(S),b(x,S)};L(c,x=>{n(a)?x($):x(w,!1)})}b(u,g)},$$slots:{default:!0}})}var ry=ye('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Df(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=ry();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}import{noop as sy}from"@vkontakte/videoplayer-shared/evergreen";var ay=A('<span class="text svelte-6gmlbk"> </span>'),ly=A('<div aria-hidden="true"><!> <!></div>'),dy={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 Jc(t,e){D(e,!0),U(t,dy);let i=f(e,"muted",3,!1),o=f(e,"expanded",3,!1),r=f(e,"click",3,sy),s=f(e,"ref",15,void 0),l=xe().ui.t,d=h(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),u=h(()=>o()?Ts:Df),m=h(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");kt(t,{get testId(){return n(m)},get click(){return r()},get ariaLabel(){return n(d)},role:"button",get ref(){return s()},set ref(g){s(g)},children:(g,c)=>{var $=ly();let w=h(()=>n(u)),x;var S=_($);ci(S,()=>n(w),(M,I)=>{I(M,{})});var C=E(S,2);{var P=M=>{var I=ay(),k=_(I,!0);v(I),B(V=>pe(k,V),[()=>l("mobile_unmute")]),b(M,I)};L(C,M=>{o()&&M(P)})}v($),B(M=>x=Z($,1,"container svelte-6gmlbk",null,x,M),[()=>({expanded:o()})]),b(g,$)},$$slots:{default:!0}}),H()}var cy=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Hf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=cy();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(3),v(o),b(t,o)}var uy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Ff(t,e){U(t,uy);let i=f(e,"isActive",3,!1),o=h(()=>i()?"color: #2688EB;":"color: #fff;"),r=h(()=>i()?"pip-icon--active":"pip-icon");Hf(t,{get style(){return n(o)},get"data-testid"(){return n(r)}})}import{noop as py}from"@vkontakte/videoplayer-shared/evergreen";function Uf(t,e){D(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isPictureInPictureActive",3,!1),r=f(e,"click",3,py),s=F("menu_pip");kt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(a){i(a)},children:(a,l)=>{Ff(a,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}import{debounceFn as Kh}from"@vkontakte/videoplayer-shared/evergreen";var fy=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},my=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},vy=A("<div><!></div>"),gy=A("<div><!></div>"),hy=A("<div><!></div>"),_y=A("<!> <!> <!>",1),by=A("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),$y=A("<div><!></div>"),yy=A('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),xy=A("<!> <!> <div><!></div>",1),wy=A('<div aria-hidden="true">\xB7</div> <!>',1),Sy=A('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!></div></div> <!></div></div> <!>',1),Cy={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-9xcbwc {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
253
253
  .wrapper-middle-left-second.svelte-9xcbwc,
254
254
  .wrapper-middle-right.svelte-9xcbwc {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-9xcbwc {left:12px;}.wrapper-middle-left-second.svelte-9xcbwc {left:64px;}.wrapper-middle-right.svelte-9xcbwc {right:12px;}.controls.svelte-9xcbwc {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-9xcbwc {display:flex;}.controls-group.contain.svelte-9xcbwc {min-width:0;}.controls-group.svelte-9xcbwc > *:not(:first-child) {margin-left:8px;}.hidden.svelte-9xcbwc {visibility:hidden;opacity:0;}.controls-hidden.svelte-9xcbwc {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-9xcbwc {transition:none;}.overlay-mobile.svelte-9xcbwc {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
255
255
 
@@ -258,7 +258,7 @@ Try switching the\xA0quality to\xA0Auto.`},Xg=U0;var rs=new Map;rs.set(eh.EN,Xg)
258
258
  }
259
259
 
260
260
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-9xcbwc {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-9xcbwc {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-9xcbwc {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-9xcbwc {left:96px;}.wrapper-middle-right.fullscreen.svelte-9xcbwc {right:44px;}.controls-wrapper.fullscreen.svelte-9xcbwc {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
261
- }`};function zf(t,e){D(e,!0),U(t,C2);let[i,o]=Re(),r=()=>y(Qo,"$seekToInteractiveDisabledTooltip$",i),s=()=>y(Qt,"$disabledControls$",i),a=()=>y(St,"$playbackState$",i),l=()=>y(xt,"$adPlaybackState",i),d=()=>y(se,"$isEnded$",i),u=()=>y(Vt,"$playerSize",i),m=()=>y(ht,"$scrubbingInProgress",i),g=()=>y($o,"$chromecastState$",i),c=()=>y(Ge,"$isPictureInPictureActive",i),$=()=>y(He,"$pictureInPictureType$",i),w=()=>y(Mt,"$mobileNotReportControlHidden$",i),x=()=>y(Ko,"$chromecastHidden",i),S=()=>y(qe,"$playerPhase",i),C=()=>y(Gi,"$pipHidden",i),A=()=>y(Oi,"$currentGridType$",i),M=()=>y(qo,"$vkLogoHidden",i),I=()=>y(De,"$isLive$",i),k=()=>y(Qi,"$settingsMenuVisible",i),V=()=>y(Je,"$isRewindableLive$",i),q=()=>y(xe,"$isActiveLive$",i),z=()=>y(ji,"$isInteractiveTime$",i),ie=()=>y(ve,"$isAudioAvailable$",i),oe=()=>y(So,"$settingButtonRef$",i),me=()=>y(ei,"$startedByKeyboard$",i),Q=()=>y(wt,"$isFullscreen",i),fe=()=>y(Ai,"$mobileUnmuteButtonVisible",i),J=()=>y(pn,"$volumeHidden",i),Pe=()=>y(Se,"$muted$",i),Le=()=>y(Yt,"$mobileUnmuteButtonExpanded",i),Ae=()=>y(yo,"$additionalButtons$",i),he=()=>y(Ro,"$autoplayNextToggleHidden",i),Ve=()=>y(j,"$crashed$",i),re=()=>y(zt,"$settingsHidden",i),R=()=>y(Xt,"$graphIsOpened$",i),Ye=()=>y(Gt,"$adPosition",i),de=()=>y(ii,"$adDuration",i),Fe=()=>y(ke,"$position$",i),ae=()=>y(vt,"$duration$",i),ne=f(e,"playerControlsWrapperRef",15,void 0),Ie=f(e,"playerControlsRef",15,void 0),G=f(e,"isAds",3,!1),ze=f(e,"logoTargetUrl",3,""),et=f(e,"isOneVideoPlaylist",3,!1),ce=f(e,"customFullscreenSupported",3,!0),ee=we(),Ne=Ki(),je=Rt(),dt=ee.actions.internal.toggleMuted,at=ee.actions.internal.togglePlay,Tt=ee.actions.internal.pause,Ze=ee.actions.internal.prevVideoClick,lt=ee.actions.internal.nextVideoClick,Nt=ee.callbacks?.onAudioDoesNotExistHint,Ut=ee.callbacks?.onAudioDisabledHint,qe=ee.playerPhase,vt=ee.state.duration$,ke=ee.state.positionWithScrubbing$,St=ee.state.playbackState$,ve=ee.state.isAudioAvailable$,Y=ee.state.isAudioDisabled,se=ee.state.isEnded$,De=ee.state.isLive$,Se=ee.state.muted$,xe=ee.state.isActiveLive$,Je=ee.state.isRewindableLive$,ht=ee.ui.scrubbingInProgress,Mt=ee.ui.mobileNotReportControlHidden$,{isActive$:Ge,type$:He}=Ne.pictureInPicture$,Yt=ee.ui.mobileUnmuteButtonExpanded,Ai=ee.ui.mobileUnmuteButtonVisible,Qi=ee.ui.settingsMenu.visible$,Lo=ee.ui.settingsMenu.openedByBtnKeyboard$,Wo=ee.ui.controls,{volume:pn,vkLogo:qo,autoplayNextToggle:Ro,pip:Gi,settings:zt,chromecast:Ko}=ee.ui.hiddenControls,ro=ee.actions.internal.getVideoEpisodes(),so=ee.webApi.pictureInPictureApi,$o=ee.state.chromecastState$,j=ee.state.crashed$,Qt=Wo.disabledControls$,ei=ee.ui.startedByKeyboard$,Oi=ee.ui.currentGridType$,ii=ee.ads.duration,Gt=ee.ads.position,xt=ee.ads.playbackState,wt=ee.ui.isFullscreen,Vt=ee.ui.playerSize,yo=ee.ui.additionalButtonsDeprecated$,yi=ee.actions.internal.getVideoElement,fn=ee.actions.internal.replayInteractive,di=ee.state.isInteractive,ji=ee.state.isInteractiveTime$,ui=ee.state.showInteractiveGraph,mt=ee.state.showSeekToInteractive,pi=ee.state.showPlayPrevChapter,xo=ee.state.showInteractiveTimeIndicator,Qo=Ne.seekToInteractiveDisabledTooltip$,Xt=Ne.graphIsOpened$,fi=ee.ui.controlBlocks,wo=h(()=>F(ee.state.playPrevChapterDisabledTooltip)),mn=h(()=>F(r())),ao=h(()=>s().has("EPISODE_BUTTON")),Yi=h(()=>s().has("GRAPH_BUTTON")),vn=h(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Zi=h(()=>s().has("PLAY_BUTTON")),Di=h(()=>s().has("REPLAY_BUTTON")),Go=h(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),or=h(()=>a()===qh.PLAYING),Nn=h(()=>l()==="paused"),Bn=h(()=>d()&&!G()&&!di),On=h(()=>!d()||G()),Tr=h(()=>e.showNextPrevButtons&&!G()&&e.prevButtonActive),gn=h(()=>e.showNextPrevButtons&&!G()&&e.nextButtonActive),Gr=h(()=>u().width>300),nr=h(()=>u().width>400),mi=h(m),jo=h(()=>g()!==Wh.NOT_AVAILABLE&&!(c()&&$()===1)&&!w()&&!di&&!x()),lo=h(()=>S()==="LiveWaitingStart"),Vo=h(()=>!!so&&g()!==Wh.CONNECTED&&!w()&&($()===1&&n(lo)||!n(lo))&&!n(mi)&&!di&&!C()),No=h(()=>!n(mi)&&Ei(A(),"s")),hn=h(()=>!e.logoHidden&&u().width>350&&!M()),Yo=h(()=>je.features.fullscreen&&!(c()&&$()===1)&&(di?ce():!0)&&!n(mi)),jr=h(()=>(!I()||G())&&u().width>260&&!n(mi)&&!(je.features.interactiveHideTime&&di)),Dn=h(()=>k()||e.showControls),Hn=h(()=>!G()&&!I()&&!!ro?.length&&n(Gr)&&!n(ao)&&!n(mi)),xi=h(()=>!V()||!!q()),Hi=h(()=>ui&&Ei(A(),"m")),ot=Kt({}),vi=Kt({}),rr=Kh(Ga,260),Pi=Kh(Xc,260);Oe(()=>{u(),z(),rr(yi(),Wo,ot,e.showControls),Pi(yi(),fi,vi,e.showControls)});let _n=()=>ee.actions.internal.toggleChromecast();async function co(){so?.isActive()?await so?.remove():await so?.request()}function bn(){(!Y&&ie()||G())&&Ai.set(!1),Cs({isAudioDisabled:Y,audioDisabledHintCallback:Ut,isAudioAvailable:ie(),audioIsNotExistHintCallback:Nt,isAds:G()})&&dt()}let uo=K(""),Bo=(rt,kt)=>{if(!rt){N(uo,F("tooltip_live"),!0);return}kt&&kt===qh.PAUSED&&N(uo,F("tooltip_play"),!0)};Oe(()=>{Bo(n(xi),a())});let So=te();Oe(()=>{oe()&&Ua(oe(),k(),Lo)}),Oe(()=>{Yc(ei,me(),ot.playButton)});var Zo=S2(),Fn=le(Zo);{var sr=rt=>{var kt=b2(),Wt=le(kt);let Mi;var wi=E(Wt,2);let Xi;var po=_(wi);{var Jo=Ke=>{let Lt=h(()=>ie()&&!Y&&Le());Jc(Ke,{get muted(){return Pe()},get expanded(){return n(Lt)},click:bn,get ref(){return ot.volume},set ref(Zt){ot.volume=Zt}})};L(po,Ke=>{(!ie()||fe())&&!J()&&Ke(Jo)})}v(wi),Xe(wi,Ke=>vi.topLeft=Ke,()=>vi?.topLeft);var Ui=E(wi,2);let gi;var Si=_(Ui);ai(Si,1,Ae,({iconUrl:Ke,ariaLabel:Lt,testId:Zt,onClick:Ji,tooltip:Ti})=>Ke,(Ke,Lt)=>{let Zt=()=>n(Lt).iconUrl,Ji=()=>n(Lt).ariaLabel,Ti=()=>n(Lt).testId,jn=()=>n(Lt).onClick,Yn=()=>n(Lt).tooltip,Wi=h(()=>Ji()??Yn());Of(Ke,{get iconUrl(){return Zt()},get ariaLabel(){return n(Wi)},get testId(){return Ti()},get onClick(){return jn()}})});var To=E(Si,2);{var zi=Ke=>{pd(Ke,{get ref(){return ot.autoplayNextToggle},set ref(Lt){ot.autoplayNextToggle=Lt}})};L(To,Ke=>{e.showAutoplayNext&&!et()&&!he()&&Ke(zi)})}var fo=E(To,2);{var ur=Ke=>{od(Ke,{isMobile:!0,click:_n,get state(){return g()},get ref(){return ot.chromecast},set ref(Lt){ot.chromecast=Lt}})};L(fo,Ke=>{n(jo)&&Ke(ur)})}var yn=E(fo,2);{var pr=Ke=>{Uf(Ke,{click:co,get isPictureInPictureActive(){return c()},get ref(){return ot.pip},set ref(Lt){ot.pip=Lt}})};L(yn,Ke=>{n(Vo)&&Ke(pr)})}var Mr=E(yn,2);{var Lr=Ke=>{Ka(Ke,{get ref$(){return So}})};L(Mr,Ke=>{Ve()&&!re()&&Ke(Lr)})}var xn=E(Mr,2);{var wn=Ke=>{id(Ke,{get click(){return Tt},get targetUrl(){return ze()},get logoClickable(){return e.logoClickable},get ref(){return ot.vkLogo},set ref(Lt){ot.vkLogo=Lt}})};L(xn,Ke=>{n(hn)&&Ke(wn)})}v(Ui),Xe(Ui,Ke=>vi.topRight=Ke,()=>vi?.topRight);var en=E(Ui,2);let Li;var Sn=_(en);{var fr=Ke=>{let Lt=h(()=>Ze.bind(null,!0));aa(Ke,{get click(){return n(Lt)},type:"prev",isMobile:!0,get ref(){return ot.prevButton},set ref(Zt){ot.prevButton=Zt}})};L(Sn,Ke=>{n(Tr)&&Ke(fr)})}var Gn=E(Sn,2);{var Ue=Ke=>{Ya(Ke,{get disabled(){return n(Zi)},get click(){return at},isMobile:!0,get isPlaying(){return n(or)},get ref(){return ot.playButton},set ref(Lt){ot.playButton=Lt}})};L(Gn,Ke=>{n(On)&&Ke(Ue)})}var Ot=E(Gn,2);{var Ci=Ke=>{ja(Ke,{get disabled(){return n(Di)},get click(){return at},isMobile:!0,get ref(){return ot.replayButton},set ref(Lt){ot.replayButton=Lt}})};L(Ot,Ke=>{n(Bn)&&Ke(Ci)})}var _e=E(Ot,2);{var At=Ke=>{let Lt=h(()=>lt.bind(null,!0));aa(Ke,{get click(){return n(Lt)},type:"next",isMobile:!0,get ref(){return ot.nextButton},set ref(Zt){ot.nextButton=Zt}})};L(_e,Ke=>{n(gn)&&Ke(At)})}v(en),Xe(en,Ke=>vi.middle=Ke,()=>vi?.middle);var Ri=E(en,2);{var ri=Ke=>{var Lt=_2(),Zt=le(Lt);{var Ji=eo=>{var si=v2();let tn;si.__click=[f2,Go,e,wo];var Zn=_(si);let mr=h(()=>!e.showControls);ud(Zn,{get hidden(){return n(mr)},get disabled(){return n(Go)},get click(){return e.playPrevChapter},get ref(){return ot.playPrevChapterButton},set ref(qi){ot.playPrevChapterButton=qi}}),v(si),B(qi=>tn=Z(si,1,"wrapper-middle-left svelte-9xcbwc",null,tn,qi),[()=>({fullscreen:Q(),hidden:!e.showControls})]),b(eo,si)};L(Zt,eo=>{pi&&eo(Ji)})}var Ti=E(Zt,2);{var jn=eo=>{var si=g2();let tn;var Zn=_(si);let mr=h(()=>!e.showControls&&!R());md(Zn,{get hidden(){return n(mr)},get disabled(){return n(Yi)},get click(){return Xt.toggle},get graphIsOpened(){return R()},get ref(){return ot.interactiveGraphButton},set ref(qi){ot.interactiveGraphButton=qi}}),v(si),B(qi=>tn=Z(si,1,El(pi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",tn,qi),[()=>({fullscreen:Q(),hidden:!e.showControls&&!R()})]),b(eo,si)};L(Ti,eo=>{n(Hi)&&eo(jn)})}var Yn=E(Ti,2);{var Wi=eo=>{var si=h2();let tn;si.__click=[m2,vn,e,mn];var Zn=_(si);let mr=h(()=>!e.showControls);fd(Zn,{get hidden(){return n(mr)},get disabled(){return n(vn)},get click(){return e.seekToInteractive},get ref(){return ot.seekToInteractiveButton},set ref(qi){ot.seekToInteractiveButton=qi}}),v(si),B(qi=>tn=Z(si,1,"wrapper-middle-right svelte-9xcbwc",null,tn,qi),[()=>({fullscreen:Q(),hidden:!e.showControls})]),b(eo,si)};L(Yn,eo=>{mt&&eo(Wi)})}b(Ke,Lt)};L(Ri,Ke=>{di&&!m()&&Ke(ri)})}B((Ke,Lt,Zt,Ji)=>{Mi=Z(Wt,1,"overlay-mobile svelte-9xcbwc",null,Mi,Ke),Xi=Z(wi,1,"wrapper-top-left svelte-9xcbwc",null,Xi,Lt),gi=Z(Ui,1,"wrapper-top-right svelte-9xcbwc",null,gi,Zt),Li=Z(en,1,"wrapper-middle svelte-9xcbwc",null,Li,Ji)},[()=>({hidden:!n(Dn)}),()=>({hidden:!e.showControls,fullscreen:Q()}),()=>({hidden:!e.showControls&&!w(),fullscreen:Q()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),b(rt,kt)};L(Fn,rt=>{G()||rt(sr)})}var $n=E(Fn,2);{var kr=rt=>{var kt=x2(),Wt=le(kt);{var Mi=gi=>{var Si=$2();let To;var zi=_(Si);Jc(zi,{get muted(){return Pe()},expanded:!1,click:bn,get ref(){return ot.volume},set ref(fo){ot.volume=fo}}),v(Si),B(fo=>To=Z(Si,1,"wrapper-top-right svelte-9xcbwc",null,To,fo),[()=>({fullscreen:Q()})]),b(gi,Si)};L(Wt,gi=>{fe()&&gi(Mi)})}var wi=E(Wt,2);{var Xi=gi=>{var Si=y2(),To=_(Si);let zi=h(()=>!n(Nn));Ya(To,{get disabled(){return n(Zi)},get click(){return at},isMobile:!0,get isPlaying(){return n(zi)},get ref(){return ot.playButton},set ref(fo){ot.playButton=fo}}),v(Si),b(gi,Si)};L(wi,gi=>{n(Nn)&&gi(Xi)})}var po=E(wi,2);let Jo;var Ui=_(po);nd(Ui,{get position(){return Ye()},get duration(){return de()}}),v(po),B(gi=>Jo=Z(po,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Jo,gi),[()=>({fullscreen:Q()})]),b(rt,kt)};L($n,rt=>{G()&&l()!=="inactive"&&rt(kr)})}var Xo=E($n,2);let Er;var Un=_(Xo);let ar;var Oo=_(Un);Z(Oo,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var It=_(Oo),Fi=_(It);{var zn=rt=>{bo(rt,{get disabled(){return n(Di)},get ref(){return ot.replayButton},set ref(kt){ot.replayButton=kt},children:(kt,Wt)=>{ja(kt,{get disabled(){return n(Di)},get click(){return fn}})},$$slots:{default:!0}})};L(Fi,rt=>{di&&rt(zn)})}var Wn=E(Fi,2);{var Ir=rt=>{bo(rt,{get ref(){return ot.liveButton},set ref(kt){ot.liveButton=kt},children:(kt,Wt)=>{vd(kt,{get isLiveActive(){return n(xi)},isMobile:!0,get ariaLabel(){return n(uo)}})},$$slots:{default:!0}})};L(Wn,rt=>{!G()&&I()&&rt(Ir)})}var nt=E(Wn,2);{var jt=rt=>{let kt=h(()=>G()?Ye():Fe()),Wt=h(()=>G()?de():ae());Jl(rt,{get showDuration(){return n(nr)},get position(){return n(kt)},get duration(){return n(Wt)},isMobile:!0,get ref(){return ot.time},set ref(Mi){ot.time=Mi}})};L(nt,rt=>{n(jr)&&rt(jt)})}var qn=E(nt,2);let Kn=h(()=>!n(Hn));bo(qn,{className:"w-max",get disabled(){return n(Kn)},get ref(){return ot.episodes},set ref(rt){ot.episodes=rt},children:(rt,kt)=>{var Wt=Be(),Mi=le(Wt);{var wi=Xi=>{var po=w2(),Jo=E(le(po),2);rd(Jo,{get position(){return Fe()},get duration(){return ae()},get timeCodes(){return ro}}),b(Xi,po)};L(Mi,Xi=>{n(Hn)&&Xi(wi)})}b(rt,Wt)},$$slots:{default:!0}}),v(It),Xe(It,rt=>vi.bottomRight=rt,()=>vi?.bottomRight);var Qn=E(It,2),lr=_(Qn);{var dr=rt=>{bo(rt,{get ref(){return ot.settings},set ref(kt){ot.settings=kt},children:(kt,Wt)=>{Ka(kt,{get ref$(){return So}})},$$slots:{default:!0}})};L(lr,rt=>{n(No)&&rt(dr)})}var cr=E(lr,2);{var Co=rt=>{bo(rt,{get ref(){return ot.fullscreen},set ref(kt){ot.fullscreen=kt},children:(kt,Wt)=>{td(kt,{get click(){return e.toggleFullscreen},get isFullscreen(){return Q()}})},$$slots:{default:!0}})};L(cr,rt=>{n(Yo)&&rt(Co)})}v(Qn),Xe(Qn,rt=>vi.bottomRight=rt,()=>vi?.bottomRight),v(Oo),Xe(Oo,rt=>Ie(rt),()=>Ie());var Ar=E(Oo,2);ra(Ar,{get isAds(){return G()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return V()},get ref(){return ot.timeline},set ref(rt){ot.timeline=rt}}),v(Un),v(Xo),Xe(Xo,rt=>ne(rt),()=>ne());var Pr=E(Xo,2);{var Yr=rt=>{dd(rt,{get ref(){return ot.interactiveTimeIndicator},set ref(kt){ot.interactiveTimeIndicator=kt}})};L(Pr,rt=>{xo&&rt(Yr)})}B((rt,kt)=>{Er=Z(Xo,1,"wrapper-bottom svelte-9xcbwc",null,Er,rt),ar=Z(Un,1,"controls-wrapper svelte-9xcbwc",null,ar,kt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:Q()})]),b(t,Zo),H(),o()}st(["click"]);function gd(t,e){D(e,!0);let[i,o]=Re(),r=()=>y(C,"$isMobile",i),s=f(e,"bottomNoSmooth",3,!1),a=f(e,"playerControlsWrapperRef",15,void 0),l=f(e,"playerControlsRef",15,void 0),d=f(e,"isAds",3,!1),u=f(e,"logoTargetUrl",3,""),m=f(e,"showAutoplayNext",3,!1),g=f(e,"isOneVideoPlaylist",3,!1),c=f(e,"customFullscreenSupported",3,!0),$=f(e,"endScreenShown",3,!1),w=f(e,"onDisabledPlayPrevChapterClick",3,Qh),x=f(e,"onDisabledSeekToInteractiveClick",3,Qh),C=we().ui.isMobile,A=K(!1);Et(()=>{let V=setTimeout(()=>N(A,!0),0);return()=>clearTimeout(V)});var M=Be(),I=le(M);{var k=V=>{var q=Be(),z=le(q);{var ie=me=>{zf(me,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return d()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return g()},get customFullscreenSupported(){return c()},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 a()},set playerControlsWrapperRef(Q){a(Q)},get playerControlsRef(){return l()},set playerControlsRef(Q){l(Q)}})},oe=me=>{Bf(me,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return d()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return g()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return c()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(Q){a(Q)},get playerControlsRef(){return l()},set playerControlsRef(Q){l(Q)}})};L(z,me=>{r()?me(ie):me(oe,!1)})}b(V,q)};L(I,V=>{n(A)&&V(k)})}b(t,M),H(),o()}var T2=$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 Wf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=T2();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}function qf(t,e){let i=f(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Wf(t,{get style(){return n(o)}})}var k2=$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 Kf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=k2();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}var E2=$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 Qf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=E2();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}function eu(t,e){let i=f(e,"isOff",3,!1);var o=Be(),r=le(o);{var s=l=>{Qf(l,{})},a=l=>{Kf(l,{})};L(r,l=>{i()?l(s):l(a,!1)})}b(t,o)}var I2=$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 Gf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=I2();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}function jf(t,e){let i=f(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Gf(t,{get style(){return n(o)}})}var A2=$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 Yf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=A2();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(2),v(o),b(t,o)}function Zf(t,e){let i=f(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Yf(t,{get style(){return n(o)}})}var P2=P('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),M2=P('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),L2=P("<div><!></div>"),R2={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
261
+ }`};function zf(t,e){D(e,!0),U(t,Cy);let[i,o]=Le(),r=()=>y(un,"$seekToInteractiveDisabledTooltip$",i),s=()=>y(Gt,"$disabledControls$",i),a=()=>y(Pt,"$playbackState$",i),l=()=>y(Tt,"$adPlaybackState",i),d=()=>y(se,"$isEnded$",i),u=()=>y(Rt,"$playerSize",i),m=()=>y(Ne,"$scrubbingInProgress",i),g=()=>y(to,"$chromecastState$",i),c=()=>y(Ye,"$isPictureInPictureActive",i),$=()=>y(He,"$pictureInPictureType$",i),w=()=>y(ht,"$mobileNotReportControlHidden$",i),x=()=>y(Go,"$chromecastHidden",i),S=()=>y(Qe,"$playerPhase",i),C=()=>y(Wi,"$pipHidden",i),P=()=>y(Oi,"$currentGridType$",i),M=()=>y(Qo,"$vkLogoHidden",i),I=()=>y(Ve,"$isLive$",i),k=()=>y(Bi,"$settingsMenuVisible",i),V=()=>y(it,"$isRewindableLive$",i),q=()=>y(qe,"$isActiveLive$",i),z=()=>y($o,"$isInteractiveTime$",i),ie=()=>y(ge,"$isAudioAvailable$",i),oe=()=>y(so,"$settingButtonRef$",i),ve=()=>y(Xt,"$startedByKeyboard$",i),Q=()=>y(vt,"$isFullscreen",i),me=()=>y(Ni,"$mobileUnmuteButtonVisible",i),J=()=>y(cn,"$volumeHidden",i),Pe=()=>y(ke,"$muted$",i),Me=()=>y(jt,"$mobileUnmuteButtonExpanded",i),Ie=()=>y(bo,"$additionalButtons$",i),_e=()=>y(Vo,"$autoplayNextToggleHidden",i),Re=()=>y(G,"$crashed$",i),re=()=>y(Wt,"$settingsHidden",i),R=()=>y(Yt,"$graphIsOpened$",i),Ze=()=>y(Jt,"$adPosition",i),ue=()=>y(ti,"$adDuration",i),Fe=()=>y(Se,"$position$",i),le=()=>y(gt,"$duration$",i),ne=f(e,"playerControlsWrapperRef",15,void 0),Ee=f(e,"playerControlsRef",15,void 0),j=f(e,"isAds",3,!1),Ue=f(e,"logoTargetUrl",3,""),tt=f(e,"isOneVideoPlaylist",3,!1),de=f(e,"customFullscreenSupported",3,!0),ee=xe(),Be=zi(),Xe=Lt(),dt=ee.actions.internal.toggleMuted,at=ee.actions.internal.togglePlay,Mt=ee.actions.internal.pause,je=ee.actions.internal.prevVideoClick,lt=ee.actions.internal.nextVideoClick,Bt=ee.callbacks?.onAudioDoesNotExistHint,zt=ee.callbacks?.onAudioDisabledHint,Qe=ee.playerPhase,gt=ee.state.duration$,Se=ee.state.positionWithScrubbing$,Pt=ee.state.playbackState$,ge=ee.state.isAudioAvailable$,Y=ee.state.isAudioDisabled,se=ee.state.isEnded$,Ve=ee.state.isLive$,ke=ee.state.muted$,qe=ee.state.isActiveLive$,it=ee.state.isRewindableLive$,Ne=ee.ui.scrubbingInProgress,ht=ee.ui.mobileNotReportControlHidden$,{isActive$:Ye,type$:He}=Be.pictureInPicture$,jt=ee.ui.mobileUnmuteButtonExpanded,Ni=ee.ui.mobileUnmuteButtonVisible,Bi=ee.ui.settingsMenu.visible$,ho=ee.ui.settingsMenu.openedByBtnKeyboard$,Ko=ee.ui.controls,{volume:cn,vkLogo:Qo,autoplayNextToggle:Vo,pip:Wi,settings:Wt,chromecast:Go}=ee.ui.hiddenControls,_o=ee.actions.internal.getVideoEpisodes(),eo=ee.webApi.pictureInPictureApi,to=ee.state.chromecastState$,G=ee.state.crashed$,Gt=Ko.disabledControls$,Xt=ee.ui.startedByKeyboard$,Oi=ee.ui.currentGridType$,ti=ee.ads.duration,Jt=ee.ads.position,Tt=ee.ads.playbackState,vt=ee.ui.isFullscreen,Rt=ee.ui.playerSize,bo=ee.ui.additionalButtonsDeprecated$,Pi=ee.actions.internal.getVideoElement,Dn=ee.actions.internal.replayInteractive,mi=ee.state.isInteractive,$o=ee.state.isInteractiveTime$,si=ee.state.showInteractiveGraph,pt=ee.state.showSeekToInteractive,vi=ee.state.showPlayPrevChapter,yo=ee.state.showInteractiveTimeIndicator,un=Be.seekToInteractiveDisabledTooltip$,Yt=Be.graphIsOpened$,ui=ee.ui.controlBlocks,xo=h(()=>F(ee.state.playPrevChapterDisabledTooltip)),pn=h(()=>F(r())),wo=h(()=>s().has("EPISODE_BUTTON")),io=h(()=>s().has("GRAPH_BUTTON")),jo=h(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),No=h(()=>s().has("PLAY_BUTTON")),qi=h(()=>s().has("REPLAY_BUTTON")),oo=h(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),Tr=h(()=>a()===qh.PLAYING),nr=h(()=>l()==="paused"),Hn=h(()=>d()&&!j()&&!mi),Fn=h(()=>!d()||j()),Un=h(()=>e.showNextPrevButtons&&!j()&&e.prevButtonActive),fn=h(()=>e.showNextPrevButtons&&!j()&&e.nextButtonActive),Gr=h(()=>u().width>300),mn=h(()=>u().width>400),gi=h(m),vn=h(()=>g()!==Wh.NOT_AVAILABLE&&!(c()&&$()===1)&&!w()&&!mi&&!x()),Bo=h(()=>S()==="LiveWaitingStart"),Oo=h(()=>!!eo&&g()!==Wh.CONNECTED&&!w()&&($()===1&&n(Bo)||!n(Bo))&&!n(gi)&&!mi&&!C()),gn=h(()=>!n(gi)&&Ei(P(),"s")),hn=h(()=>!e.logoHidden&&u().width>350&&!M()),So=h(()=>Xe.features.fullscreen&&!(c()&&$()===1)&&(mi?de():!0)&&!n(gi)),kr=h(()=>(!I()||j())&&u().width>260&&!n(gi)&&!(Xe.features.interactiveHideTime&&mi)),_n=h(()=>k()||e.showControls),zn=h(()=>!j()&&!I()&&!!_o?.length&&n(Gr)&&!n(wo)&&!n(gi)),wi=h(()=>!V()||!!q()),no=h(()=>si&&Ei(P(),"m")),nt=Qt({}),ai=Qt({}),rr=Kh(Ga,260),bn=Kh(Xc,260);De(()=>{u(),z(),rr(Pi(),Ko,nt,e.showControls),bn(Pi(),ui,ai,e.showControls)});let Yo=()=>ee.actions.internal.toggleChromecast();async function hi(){eo?.isActive()?await eo?.remove():await eo?.request()}function $n(){(!Y&&ie()||j())&&Ni.set(!1),Cs({isAudioDisabled:Y,audioDisabledHintCallback:zt,isAudioAvailable:ie(),audioIsNotExistHintCallback:Bt,isAds:j()})&&dt()}let ro=K(""),yn=(rt,Et)=>{if(!rt){N(ro,F("tooltip_live"),!0);return}Et&&Et===qh.PAUSED&&N(ro,F("tooltip_play"),!0)};De(()=>{yn(n(wi),a())});let so=te();De(()=>{oe()&&Ua(oe(),k(),ho)}),De(()=>{Yc(Xt,ve(),nt.playButton)});var xn=Sy(),wn=ce(xn);{var Wn=rt=>{var Et=by(),qt=ce(Et);let Ai;var Si=E(qt,2);let Qi;var lo=_(Si);{var Zo=Ge=>{let $t=h(()=>ie()&&!Y&&Me());Jc(Ge,{get muted(){return Pe()},get expanded(){return n($t)},click:$n,get ref(){return nt.volume},set ref(Dt){nt.volume=Dt}})};L(lo,Ge=>{(!ie()||me())&&!J()&&Ge(Zo)})}v(Si),Je(Si,Ge=>ai.topLeft=Ge,()=>ai?.topLeft);var Di=E(Si,2);let _i;var Ci=_(Di);di(Ci,1,Ie,({iconUrl:Ge,ariaLabel:$t,testId:Dt,onClick:Gi,tooltip:Ti})=>Ge,(Ge,$t)=>{let Dt=()=>n($t).iconUrl,Gi=()=>n($t).ariaLabel,Ti=()=>n($t).testId,Yn=()=>n($t).onClick,Zn=()=>n($t).tooltip,Fi=h(()=>Gi()??Zn());Of(Ge,{get iconUrl(){return Dt()},get ariaLabel(){return n(Fi)},get testId(){return Ti()},get onClick(){return Yn()}})});var Eo=E(Ci,2);{var Hi=Ge=>{pd(Ge,{get ref(){return nt.autoplayNextToggle},set ref($t){nt.autoplayNextToggle=$t}})};L(Eo,Ge=>{e.showAutoplayNext&&!tt()&&!_e()&&Ge(Hi)})}var co=E(Eo,2);{var ur=Ge=>{od(Ge,{isMobile:!0,click:Yo,get state(){return g()},get ref(){return nt.chromecast},set ref($t){nt.chromecast=$t}})};L(co,Ge=>{n(vn)&&Ge(ur)})}var Sn=E(co,2);{var pr=Ge=>{Uf(Ge,{click:hi,get isPictureInPictureActive(){return c()},get ref(){return nt.pip},set ref($t){nt.pip=$t}})};L(Sn,Ge=>{n(Oo)&&Ge(pr)})}var Ar=E(Sn,2);{var Mr=Ge=>{Ka(Ge,{get ref$(){return so}})};L(Ar,Ge=>{Re()&&!re()&&Ge(Mr)})}var Cn=E(Ar,2);{var Tn=Ge=>{id(Ge,{get click(){return Mt},get targetUrl(){return Ue()},get logoClickable(){return e.logoClickable},get ref(){return nt.vkLogo},set ref($t){nt.vkLogo=$t}})};L(Cn,Ge=>{n(hn)&&Ge(Tn)})}v(Di),Je(Di,Ge=>ai.topRight=Ge,()=>ai?.topRight);var Xo=E(Di,2);let Mi;var kn=_(Xo);{var Gn=Ge=>{let $t=h(()=>je.bind(null,!0));aa(Ge,{get click(){return n($t)},type:"prev",isMobile:!0,get ref(){return nt.prevButton},set ref(Dt){nt.prevButton=Dt}})};L(kn,Ge=>{n(Un)&&Ge(Gn)})}var jn=E(kn,2);{var fr=Ge=>{Ya(Ge,{get disabled(){return n(No)},get click(){return at},isMobile:!0,get isPlaying(){return n(Tr)},get ref(){return nt.playButton},set ref($t){nt.playButton=$t}})};L(jn,Ge=>{n(Fn)&&Ge(fr)})}var Lr=E(jn,2);{var ze=Ge=>{ja(Ge,{get disabled(){return n(qi)},get click(){return at},isMobile:!0,get ref(){return nt.replayButton},set ref($t){nt.replayButton=$t}})};L(Lr,Ge=>{n(Hn)&&Ge(ze)})}var ae=E(Lr,2);{var xt=Ge=>{let $t=h(()=>lt.bind(null,!0));aa(Ge,{get click(){return n($t)},type:"next",isMobile:!0,get ref(){return nt.nextButton},set ref(Dt){nt.nextButton=Dt}})};L(ae,Ge=>{n(fn)&&Ge(xt)})}v(Xo),Je(Xo,Ge=>ai.middle=Ge,()=>ai?.middle);var ii=E(Xo,2);{var ri=Ge=>{var $t=_y(),Dt=ce($t);{var Gi=ji=>{var li=vy();let Jo;li.__click=[fy,oo,e,xo];var Xn=_(li);let mr=h(()=>!e.showControls);ud(Xn,{get hidden(){return n(mr)},get disabled(){return n(oo)},get click(){return e.playPrevChapter},get ref(){return nt.playPrevChapterButton},set ref(Ui){nt.playPrevChapterButton=Ui}}),v(li),B(Ui=>Jo=Z(li,1,"wrapper-middle-left svelte-9xcbwc",null,Jo,Ui),[()=>({fullscreen:Q(),hidden:!e.showControls})]),b(ji,li)};L(Dt,ji=>{vi&&ji(Gi)})}var Ti=E(Dt,2);{var Yn=ji=>{var li=gy();let Jo;var Xn=_(li);let mr=h(()=>!e.showControls&&!R());md(Xn,{get hidden(){return n(mr)},get disabled(){return n(io)},get click(){return Yt.toggle},get graphIsOpened(){return R()},get ref(){return nt.interactiveGraphButton},set ref(Ui){nt.interactiveGraphButton=Ui}}),v(li),B(Ui=>Jo=Z(li,1,El(vi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",Jo,Ui),[()=>({fullscreen:Q(),hidden:!e.showControls&&!R()})]),b(ji,li)};L(Ti,ji=>{n(no)&&ji(Yn)})}var Zn=E(Ti,2);{var Fi=ji=>{var li=hy();let Jo;li.__click=[my,jo,e,pn];var Xn=_(li);let mr=h(()=>!e.showControls);fd(Xn,{get hidden(){return n(mr)},get disabled(){return n(jo)},get click(){return e.seekToInteractive},get ref(){return nt.seekToInteractiveButton},set ref(Ui){nt.seekToInteractiveButton=Ui}}),v(li),B(Ui=>Jo=Z(li,1,"wrapper-middle-right svelte-9xcbwc",null,Jo,Ui),[()=>({fullscreen:Q(),hidden:!e.showControls})]),b(ji,li)};L(Zn,ji=>{pt&&ji(Fi)})}b(Ge,$t)};L(ii,Ge=>{mi&&!m()&&Ge(ri)})}B((Ge,$t,Dt,Gi)=>{Ai=Z(qt,1,"overlay-mobile svelte-9xcbwc",null,Ai,Ge),Qi=Z(Si,1,"wrapper-top-left svelte-9xcbwc",null,Qi,$t),_i=Z(Di,1,"wrapper-top-right svelte-9xcbwc",null,_i,Dt),Mi=Z(Xo,1,"wrapper-middle svelte-9xcbwc",null,Mi,Gi)},[()=>({hidden:!n(_n)}),()=>({hidden:!e.showControls,fullscreen:Q()}),()=>({hidden:!e.showControls&&!w(),fullscreen:Q()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),b(rt,Et)};L(wn,rt=>{j()||rt(Wn)})}var sr=E(wn,2);{var qn=rt=>{var Et=xy(),qt=ce(Et);{var Ai=_i=>{var Ci=$y();let Eo;var Hi=_(Ci);Jc(Hi,{get muted(){return Pe()},expanded:!1,click:$n,get ref(){return nt.volume},set ref(co){nt.volume=co}}),v(Ci),B(co=>Eo=Z(Ci,1,"wrapper-top-right svelte-9xcbwc",null,Eo,co),[()=>({fullscreen:Q()})]),b(_i,Ci)};L(qt,_i=>{me()&&_i(Ai)})}var Si=E(qt,2);{var Qi=_i=>{var Ci=yy(),Eo=_(Ci);let Hi=h(()=>!n(nr));Ya(Eo,{get disabled(){return n(No)},get click(){return at},isMobile:!0,get isPlaying(){return n(Hi)},get ref(){return nt.playButton},set ref(co){nt.playButton=co}}),v(Ci),b(_i,Ci)};L(Si,_i=>{n(nr)&&_i(Qi)})}var lo=E(Si,2);let Zo;var Di=_(lo);nd(Di,{get position(){return Ze()},get duration(){return ue()}}),v(lo),B(_i=>Zo=Z(lo,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Zo,_i),[()=>({fullscreen:Q()})]),b(rt,Et)};L(sr,rt=>{j()&&l()!=="inactive"&&rt(qn)})}var Co=E(sr,2);let Er;var Kn=_(Co);let ar;var Do=_(Kn);Z(Do,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var Ot=_(Do),Ki=_(Ot);{var ao=rt=>{go(rt,{get disabled(){return n(qi)},get ref(){return nt.replayButton},set ref(Et){nt.replayButton=Et},children:(Et,qt)=>{ja(Et,{get disabled(){return n(qi)},get click(){return Dn}})},$$slots:{default:!0}})};L(Ki,rt=>{mi&&rt(ao)})}var Qn=E(Ki,2);{var lr=rt=>{go(rt,{get ref(){return nt.liveButton},set ref(Et){nt.liveButton=Et},children:(Et,qt)=>{vd(Et,{get isLiveActive(){return n(wi)},isMobile:!0,get ariaLabel(){return n(ro)}})},$$slots:{default:!0}})};L(Qn,rt=>{!j()&&I()&&rt(lr)})}var pi=E(Qn,2);{var jr=rt=>{let Et=h(()=>j()?Ze():Fe()),qt=h(()=>j()?ue():le());Jl(rt,{get showDuration(){return n(mn)},get position(){return n(Et)},get duration(){return n(qt)},isMobile:!0,get ref(){return nt.time},set ref(Ai){nt.time=Ai}})};L(pi,rt=>{n(kr)&&rt(jr)})}var _t=E(pi,2);let Vt=h(()=>!n(zn));go(_t,{className:"w-max",get disabled(){return n(Vt)},get ref(){return nt.episodes},set ref(rt){nt.episodes=rt},children:(rt,Et)=>{var qt=Oe(),Ai=ce(qt);{var Si=Qi=>{var lo=wy(),Zo=E(ce(lo),2);rd(Zo,{get position(){return Fe()},get duration(){return le()},get timeCodes(){return _o}}),b(Qi,lo)};L(Ai,Qi=>{n(zn)&&Qi(Si)})}b(rt,qt)},$$slots:{default:!0}}),v(Ot),Je(Ot,rt=>ai.bottomRight=rt,()=>ai?.bottomRight);var To=E(Ot,2),Ho=_(To);{var dr=rt=>{go(rt,{get ref(){return nt.settings},set ref(Et){nt.settings=Et},children:(Et,qt)=>{Ka(Et,{get ref$(){return so}})},$$slots:{default:!0}})};L(Ho,rt=>{n(gn)&&rt(dr)})}var cr=E(Ho,2);{var ko=rt=>{go(rt,{get ref(){return nt.fullscreen},set ref(Et){nt.fullscreen=Et},children:(Et,qt)=>{td(Et,{get click(){return e.toggleFullscreen},get isFullscreen(){return Q()}})},$$slots:{default:!0}})};L(cr,rt=>{n(So)&&rt(ko)})}v(To),Je(To,rt=>ai.bottomRight=rt,()=>ai?.bottomRight),v(Do),Je(Do,rt=>Ee(rt),()=>Ee());var Ir=E(Do,2);ra(Ir,{get isAds(){return j()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return V()},get ref(){return nt.timeline},set ref(rt){nt.timeline=rt}}),v(Kn),v(Co),Je(Co,rt=>ne(rt),()=>ne());var Pr=E(Co,2);{var Yr=rt=>{dd(rt,{get ref(){return nt.interactiveTimeIndicator},set ref(Et){nt.interactiveTimeIndicator=Et}})};L(Pr,rt=>{yo&&rt(Yr)})}B((rt,Et)=>{Er=Z(Co,1,"wrapper-bottom svelte-9xcbwc",null,Er,rt),ar=Z(Kn,1,"controls-wrapper svelte-9xcbwc",null,ar,Et)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:Q()})]),b(t,xn),H(),o()}st(["click"]);function gd(t,e){D(e,!0);let[i,o]=Le(),r=()=>y(C,"$isMobile",i),s=f(e,"bottomNoSmooth",3,!1),a=f(e,"playerControlsWrapperRef",15,void 0),l=f(e,"playerControlsRef",15,void 0),d=f(e,"isAds",3,!1),u=f(e,"logoTargetUrl",3,""),m=f(e,"showAutoplayNext",3,!1),g=f(e,"isOneVideoPlaylist",3,!1),c=f(e,"customFullscreenSupported",3,!0),$=f(e,"endScreenShown",3,!1),w=f(e,"onDisabledPlayPrevChapterClick",3,Qh),x=f(e,"onDisabledSeekToInteractiveClick",3,Qh),C=xe().ui.isMobile,P=K(!1);It(()=>{let V=setTimeout(()=>N(P,!0),0);return()=>clearTimeout(V)});var M=Oe(),I=ce(M);{var k=V=>{var q=Oe(),z=ce(q);{var ie=ve=>{zf(ve,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return d()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return g()},get customFullscreenSupported(){return c()},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 a()},set playerControlsWrapperRef(Q){a(Q)},get playerControlsRef(){return l()},set playerControlsRef(Q){l(Q)}})},oe=ve=>{Bf(ve,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return d()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return g()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return c()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(Q){a(Q)},get playerControlsRef(){return l()},set playerControlsRef(Q){l(Q)}})};L(z,ve=>{r()?ve(ie):ve(oe,!1)})}b(V,q)};L(I,V=>{n(P)&&V(k)})}b(t,M),H(),o()}var Ty=ye('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Wf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}function qf(t,e){let i=f(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Wf(t,{get style(){return n(o)}})}var ky=ye('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function Kf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=ky();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}var Ey=ye('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Qf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}function eu(t,e){let i=f(e,"isOff",3,!1);var o=Oe(),r=ce(o);{var s=l=>{Qf(l,{})},a=l=>{Kf(l,{})};L(r,l=>{i()?l(s):l(a,!1)})}b(t,o)}var Iy=ye('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function Gf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}function jf(t,e){let i=f(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Gf(t,{get style(){return n(o)}})}var Py=ye('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function Yf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Py();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(2),v(o),b(t,o)}function Zf(t,e){let i=f(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Yf(t,{get style(){return n(o)}})}var Ay=A('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),My=A('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Ly=A("<div><!></div>"),Ry={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
262
262
  animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
263
263
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
264
264
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -273,23 +273,23 @@ Try switching the\xA0quality to\xA0Auto.`},Xg=U0;var rs=new Map;rs.set(eh.EN,Xg)
273
273
  @keyframes svelte-1ad3n06-fadeOut {
274
274
  0% {opacity:1;}
275
275
  100% {opacity:0;}
276
- }`};function Xf(t,e){D(e,!0),U(t,R2);let[i,o]=Re(),r=()=>y(e.data,"$data",i),a=we().ui.t,l=h(()=>!r()),d=h(()=>r()?.type==="BACKWARD_SEEK"),u=h(()=>r()?.type==="FORWARD_SEEK"),m=h(()=>r()?.type),g=h(()=>r()?.t?a(r().t.key,{value:r().t.value||""}):r()?.text);var c=L2();let $;var w=_(c);{var x=S=>{var C=M2(),A=le(C),M=_(A);{var I=ae=>{let ne=h(()=>n(m)==="FORWARD_SEEK");qf(ae,{get reversed(){return n(ne)}})};L(M,ae=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(m))&&ae(I)})}var k=E(M,2);{var V=ae=>{cs(ae,{})};L(k,ae=>{n(m)==="PAUSE"&&ae(V)})}var q=E(k,2);{var z=ae=>{Sr(ae,{})};L(q,ae=>{n(m)==="PLAY"&&ae(z)})}var ie=E(q,2);{var oe=ae=>{cd(ae,{})};L(ie,ae=>{n(m)==="REPLAY"&&ae(oe)})}var me=E(ie,2);{var Q=ae=>{eu(ae,{isOff:!0})};L(me,ae=>{n(m)==="SUBTITLES_OFF"&&ae(Q)})}var fe=E(me,2);{var J=ae=>{eu(ae,{})};L(fe,ae=>{n(m)==="SUBTITLES_ON"&&ae(J)})}var Pe=E(fe,2);{var Le=ae=>{let ne=h(()=>n(m)==="RATE_UP");jf(ae,{get reversed(){return n(ne)}})};L(Pe,ae=>{["RATE_DOWN","RATE_UP"].includes(n(m))&&ae(Le)})}var Ae=E(Pe,2);{var he=ae=>{let ne=h(()=>n(m)==="EPISODE_NEXT");Zf(ae,{get reversed(){return n(ne)}})};L(Ae,ae=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(m))&&ae(he)})}var Ve=E(Ae,2);{var re=ae=>{Ts(ae,{volume:0})};L(Ve,ae=>{n(m)==="MUTE"&&ae(re)})}var R=E(Ve,2);{var Ye=ae=>{Ts(ae,{volume:1})};L(R,ae=>{n(m)==="VOLUME"&&ae(Ye)})}v(A);var de=E(A,2);{var Fe=ae=>{var ne=P2(),Ie=_(ne,!0);v(ne),B(()=>ue(Ie,n(g))),b(ae,ne)};L(de,ae=>{n(g)&&ae(Fe)})}b(S,C)};L(w,S=>{!n(l)&&n(m)&&S(x)})}v(c),B(S=>$=Z(c,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:n(l),"hot-key-helpers-container--left":n(d),"hot-key-helpers-container--right":n(u)})]),b(t,c),H(),o()}var V2=$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 Jf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=V2();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var N2=$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 em(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=N2();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}function Is(t,e){D(e,!0);let i=f(e,"direction",3,"left"),o=f(e,"useBtnColor",3,!1),r=h(()=>["up","down"].includes(i())),s=h(()=>["right","down"].includes(i())),a=h(()=>(()=>{let g="";return n(s)&&(g+="transform: rotate(180deg);"),o()&&(g+="color: var(--btn-color, #fff);"),g.length?g:void 0})());var l=Be(),d=le(l);{var u=g=>{let c=h(()=>n(s)?"chevron-icon--down":"chevron-icon--up");Jf(g,{get style(){return n(a)},get"data-testid"(){return n(c)}})},m=g=>{let c=h(()=>n(s)?"chevron-icon--right":"chevron-icon--left");em(g,{get style(){return n(a)},get"data-testid"(){return n(c)}})};L(d,g=>{n(r)?g(u):g(m,!1)})}b(t,l),H()}var B2=(t,e,i,o,r,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":s();break}},O2=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},D2=P('<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>'),H2={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 hd(t,e){D(e,!0),U(t,H2);let i=f(e,"isShifted",3,!1),o=we(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},l=()=>{o.actions.internal.startCameraManualRotation(1,0)},d=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),m=F("aria_label_spherical_control");var g=D2();let c;g.__keydown=[B2,r,s,a,d,l],g.__keyup=[O2,r,u];var $=_(g),w=_($),x=_(w);x.__mousedown=s,x.__mouseup=u;var S=_(x);Is(S,{direction:"up",useBtnColor:!0}),v(x);var C=E(x,2);C.__mousedown=l,C.__mouseup=u;var A=_(C);Is(A,{direction:"up",useBtnColor:!0}),v(C),v(w);var M=E(w,2),I=_(M);I.__mousedown=d,I.__mouseup=u;var k=_(I);Is(k,{direction:"up",useBtnColor:!0}),v(I);var V=E(I,2);V.__mousedown=a,V.__mouseup=u;var q=_(V);Is(q,{direction:"up",useBtnColor:!0}),v(V),v(M),v($),v(g),B(z=>{c=Z(g,1,"immersive-controls svelte-1yzc86r",null,c,z),Me(g,"aria-label",m)},[()=>({"m-shifted":i()})]),gt("mouseleave",x,u),gt("mouseleave",C,u),gt("mouseleave",I,u),gt("mouseleave",V,u),b(t,g),H()}st(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as jh,Subscription as F2,filterChanged as U2,filter as z2}from"@vkontakte/videoplayer-shared/evergreen";var Gh=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var tu=class{constructor(){this.flickeringTimeout=Gh(1e3);this.subscriptions=new F2;this.isAuto=!1;this.isLive=!1;this.captions$=new jh([]);this.captionsPrepared$=new jh([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(z2(()=>this.isEnabled()),U2()).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((r,{type:s,value:a},l)=>(o&&!l||(s==="timestamp"?r.push({timeAppeared:Number(a),value:""}):r.length===0?r.push({value:String(a)}):r[r.length-1].value=String(a)),r),[])),this.captionsPrepared$.next(i)}};var W2=P('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),q2=P('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),K2=P('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Q2=P('<div><span class="caption svelte-c2x749"><!></span></div>'),G2=P("<div><!></div>"),j2={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
277
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function ca(t,e){D(e,!0),U(t,j2);let[i,o]=Re(),r=()=>y(g,"$currentSubtitle$",i),s=()=>y($,"$isLive$",i),a=()=>y(w,"$isFullscreen",i),l=()=>y(c,"$isAutoSubtitleCaptionVisible$",i),d=f(e,"isMobile",3,!1),u=we(),m=Rt(),g=u.state.currentSubtitle$,c=u.state.isAutoSubtitleCaptionVisible$,$=u.state.isLive$,w=u.ui.isFullscreen,x=h(()=>!!r().isAuto),S=h(()=>!!s()),C=h(()=>e.playerSize.width*.02),A=h(()=>d()&&!a()||n(C)<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:n(C)),M=K(null);Oe(()=>{n(M)?.setIsAuto(n(x)),n(M)?.setIsLive(n(S)),n(M)?.setCaptions(e.captions)});let I=K(Kt([[]]));Et(()=>{N(M,new tu().subscribe(),!0);let oe=n(M).captionsPrepared$.subscribe(me=>{N(I,me,!0)});return()=>{n(M)?.destroy(),oe.unsubscribe()}}),Et(()=>{if(n(x)){let oe=window.setTimeout(()=>{c.set(!1)},m.autoSubtitlesTimeout);return()=>{window.clearTimeout(oe)}}else c.set(!1)});let k=h(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=G2();let q;var z=_(V);{var ie=oe=>{var me=Q2();let Q;var fe=_(me),J=_(fe);{var Pe=Ae=>{var he=W2(),Ve=_(he),re=_(Ve,!0);v(Ve),v(he),B(R=>{it(Ve,`font-size: ${n(A)??""}px`),ue(re,R)},[()=>F("subtitles_auto_caption")]),b(Ae,he)},Le=(Ae,he)=>{{var Ve=R=>{var Ye=Be(),de=le(Ye);ai(de,17,()=>n(I),Tl,(Fe,ae)=>{var ne=q2(),Ie=_(ne);ai(Ie,21,()=>n(ae),({value:G,timeAppeared:ze})=>ze,(G,ze)=>{let et=()=>n(ze).value,ce=()=>n(ze).timeAppeared;var ee=Be(),Ne=le(ee);{var je=dt=>{var at=Ur();B(()=>ue(at,et())),b(dt,at)};L(Ne,dt=>{(!ce()||ce()<=e.position)&&dt(je)})}b(G,ee)}),v(Ie),v(ne),B(()=>it(Ie,`font-size: ${n(A)??""}px`)),b(Fe,ne)}),b(R,Ye)},re=R=>{var Ye=Be(),de=le(Ye);ai(de,17,()=>e.captions,({value:Fe})=>Fe,(Fe,ae)=>{let ne=()=>n(ae).value;var Ie=K2(),G=_(Ie),ze=_(G,!0);v(G),v(Ie),B(()=>{it(G,`font-size: ${n(A)??""}px`),ue(ze,ne())}),b(Fe,Ie)}),b(R,Ye)};L(Ae,R=>{n(x)&&n(I)?.length?R(Ve):R(re,!1)},he)}};L(J,Ae=>{n(x)&&l()?Ae(Pe):Ae(Le,!1)})}v(fe),v(me),B(Ae=>{Q=Z(me,1,"subtitles-caption svelte-c2x749",null,Q,Ae),it(me,`--subtitles-caption-margin: ${n(k)??""}%`)},[()=>({mobile:d()})]),b(oe,me)};L(z,oe=>{(e.captions.length||n(I)?.length)&&oe(ie)})}v(V),B(oe=>q=Z(V,1,"subtitles-container svelte-c2x749",null,q,oe),[()=>({shifted:e.shifted,auto:n(x)&&!n(S)&&!l()})]),b(t,V),H(),o()}var Y2=P('<div class="text svelte-raurnb"> </div>'),Z2=P('<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>'),X2={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 _d(t,e){D(e,!0),U(t,X2);let i=Rt();var o=Z2();let r;var s=E(_(o),2);{var a=l=>{var d=Y2(),u=_(d);v(d),B(()=>ue(u,`\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(l,d)};L(s,l=>{e.chromecastDeviceName&&l(a)})}v(o),B(l=>{r=Z(o,1,"wrapper svelte-raurnb",null,r,l),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),H()}var J2=$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 tm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=J2();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var e4=P('<div class="container svelte-13zpvm8"><!></div>'),t4={hash:"svelte-13zpvm8",code:".container.svelte-13zpvm8 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}"};function bd(t){U(t,t4);var e=e4(),i=_(e);tm(i,{}),v(e),b(t,e)}var i4=P('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),o4=P("<div><!></div>"),n4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
276
+ }`};function Xf(t,e){D(e,!0),U(t,Ry);let[i,o]=Le(),r=()=>y(e.data,"$data",i),a=xe().ui.t,l=h(()=>!r()),d=h(()=>r()?.type==="BACKWARD_SEEK"),u=h(()=>r()?.type==="FORWARD_SEEK"),m=h(()=>r()?.type),g=h(()=>r()?.t?a(r().t.key,{value:r().t.value||""}):r()?.text);var c=Ly();let $;var w=_(c);{var x=S=>{var C=My(),P=ce(C),M=_(P);{var I=le=>{let ne=h(()=>n(m)==="FORWARD_SEEK");qf(le,{get reversed(){return n(ne)}})};L(M,le=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(m))&&le(I)})}var k=E(M,2);{var V=le=>{cs(le,{})};L(k,le=>{n(m)==="PAUSE"&&le(V)})}var q=E(k,2);{var z=le=>{Sr(le,{})};L(q,le=>{n(m)==="PLAY"&&le(z)})}var ie=E(q,2);{var oe=le=>{cd(le,{})};L(ie,le=>{n(m)==="REPLAY"&&le(oe)})}var ve=E(ie,2);{var Q=le=>{eu(le,{isOff:!0})};L(ve,le=>{n(m)==="SUBTITLES_OFF"&&le(Q)})}var me=E(ve,2);{var J=le=>{eu(le,{})};L(me,le=>{n(m)==="SUBTITLES_ON"&&le(J)})}var Pe=E(me,2);{var Me=le=>{let ne=h(()=>n(m)==="RATE_UP");jf(le,{get reversed(){return n(ne)}})};L(Pe,le=>{["RATE_DOWN","RATE_UP"].includes(n(m))&&le(Me)})}var Ie=E(Pe,2);{var _e=le=>{let ne=h(()=>n(m)==="EPISODE_NEXT");Zf(le,{get reversed(){return n(ne)}})};L(Ie,le=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(m))&&le(_e)})}var Re=E(Ie,2);{var re=le=>{Ts(le,{volume:0})};L(Re,le=>{n(m)==="MUTE"&&le(re)})}var R=E(Re,2);{var Ze=le=>{Ts(le,{volume:1})};L(R,le=>{n(m)==="VOLUME"&&le(Ze)})}v(P);var ue=E(P,2);{var Fe=le=>{var ne=Ay(),Ee=_(ne,!0);v(ne),B(()=>pe(Ee,n(g))),b(le,ne)};L(ue,le=>{n(g)&&le(Fe)})}b(S,C)};L(w,S=>{!n(l)&&n(m)&&S(x)})}v(c),B(S=>$=Z(c,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:n(l),"hot-key-helpers-container--left":n(d),"hot-key-helpers-container--right":n(u)})]),b(t,c),H(),o()}var Vy=ye('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function Jf(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var Ny=ye('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function em(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}function Is(t,e){D(e,!0);let i=f(e,"direction",3,"left"),o=f(e,"useBtnColor",3,!1),r=h(()=>["up","down"].includes(i())),s=h(()=>["right","down"].includes(i())),a=h(()=>(()=>{let g="";return n(s)&&(g+="transform: rotate(180deg);"),o()&&(g+="color: var(--btn-color, #fff);"),g.length?g:void 0})());var l=Oe(),d=ce(l);{var u=g=>{let c=h(()=>n(s)?"chevron-icon--down":"chevron-icon--up");Jf(g,{get style(){return n(a)},get"data-testid"(){return n(c)}})},m=g=>{let c=h(()=>n(s)?"chevron-icon--right":"chevron-icon--left");em(g,{get style(){return n(a)},get"data-testid"(){return n(c)}})};L(d,g=>{n(r)?g(u):g(m,!1)})}b(t,l),H()}var By=(t,e,i,o,r,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":s();break}},Oy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Dy=A('<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>'),Hy={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 hd(t,e){D(e,!0),U(t,Hy);let i=f(e,"isShifted",3,!1),o=xe(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},l=()=>{o.actions.internal.startCameraManualRotation(1,0)},d=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),m=F("aria_label_spherical_control");var g=Dy();let c;g.__keydown=[By,r,s,a,d,l],g.__keyup=[Oy,r,u];var $=_(g),w=_($),x=_(w);x.__mousedown=s,x.__mouseup=u;var S=_(x);Is(S,{direction:"up",useBtnColor:!0}),v(x);var C=E(x,2);C.__mousedown=l,C.__mouseup=u;var P=_(C);Is(P,{direction:"up",useBtnColor:!0}),v(C),v(w);var M=E(w,2),I=_(M);I.__mousedown=d,I.__mouseup=u;var k=_(I);Is(k,{direction:"up",useBtnColor:!0}),v(I);var V=E(I,2);V.__mousedown=a,V.__mouseup=u;var q=_(V);Is(q,{direction:"up",useBtnColor:!0}),v(V),v(M),v($),v(g),B(z=>{c=Z(g,1,"immersive-controls svelte-1yzc86r",null,c,z),Ae(g,"aria-label",m)},[()=>({"m-shifted":i()})]),bt("mouseleave",x,u),bt("mouseleave",C,u),bt("mouseleave",I,u),bt("mouseleave",V,u),b(t,g),H()}st(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as jh,Subscription as Fy,filterChanged as Uy,filter as zy}from"@vkontakte/videoplayer-shared/evergreen";var Gh=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var tu=class{constructor(){this.flickeringTimeout=Gh(1e3);this.subscriptions=new Fy;this.isAuto=!1;this.isLive=!1;this.captions$=new jh([]);this.captionsPrepared$=new jh([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(zy(()=>this.isEnabled()),Uy()).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((r,{type:s,value:a},l)=>(o&&!l||(s==="timestamp"?r.push({timeAppeared:Number(a),value:""}):r.length===0?r.push({value:String(a)}):r[r.length-1].value=String(a)),r),[])),this.captionsPrepared$.next(i)}};var Wy=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),qy=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),Ky=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Qy=A('<div><span class="caption svelte-c2x749"><!></span></div>'),Gy=A("<div><!></div>"),jy={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
277
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function ca(t,e){D(e,!0),U(t,jy);let[i,o]=Le(),r=()=>y(g,"$currentSubtitle$",i),s=()=>y($,"$isLive$",i),a=()=>y(w,"$isFullscreen",i),l=()=>y(c,"$isAutoSubtitleCaptionVisible$",i),d=f(e,"isMobile",3,!1),u=xe(),m=Lt(),g=u.state.currentSubtitle$,c=u.state.isAutoSubtitleCaptionVisible$,$=u.state.isLive$,w=u.ui.isFullscreen,x=h(()=>!!r().isAuto),S=h(()=>!!s()),C=h(()=>e.playerSize.width*.02),P=h(()=>d()&&!a()||n(C)<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:n(C)),M=K(null);De(()=>{n(M)?.setIsAuto(n(x)),n(M)?.setIsLive(n(S)),n(M)?.setCaptions(e.captions)});let I=K(Qt([[]]));It(()=>{N(M,new tu().subscribe(),!0);let oe=n(M).captionsPrepared$.subscribe(ve=>{N(I,ve,!0)});return()=>{n(M)?.destroy(),oe.unsubscribe()}}),It(()=>{if(n(x)){let oe=window.setTimeout(()=>{c.set(!1)},m.autoSubtitlesTimeout);return()=>{window.clearTimeout(oe)}}else c.set(!1)});let k=h(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=Gy();let q;var z=_(V);{var ie=oe=>{var ve=Qy();let Q;var me=_(ve),J=_(me);{var Pe=Ie=>{var _e=Wy(),Re=_(_e),re=_(Re,!0);v(Re),v(_e),B(R=>{ot(Re,`font-size: ${n(P)??""}px`),pe(re,R)},[()=>F("subtitles_auto_caption")]),b(Ie,_e)},Me=(Ie,_e)=>{{var Re=R=>{var Ze=Oe(),ue=ce(Ze);di(ue,17,()=>n(I),Tl,(Fe,le)=>{var ne=qy(),Ee=_(ne);di(Ee,21,()=>n(le),({value:j,timeAppeared:Ue})=>Ue,(j,Ue)=>{let tt=()=>n(Ue).value,de=()=>n(Ue).timeAppeared;var ee=Oe(),Be=ce(ee);{var Xe=dt=>{var at=Ur();B(()=>pe(at,tt())),b(dt,at)};L(Be,dt=>{(!de()||de()<=e.position)&&dt(Xe)})}b(j,ee)}),v(Ee),v(ne),B(()=>ot(Ee,`font-size: ${n(P)??""}px`)),b(Fe,ne)}),b(R,Ze)},re=R=>{var Ze=Oe(),ue=ce(Ze);di(ue,17,()=>e.captions,({value:Fe})=>Fe,(Fe,le)=>{let ne=()=>n(le).value;var Ee=Ky(),j=_(Ee),Ue=_(j,!0);v(j),v(Ee),B(()=>{ot(j,`font-size: ${n(P)??""}px`),pe(Ue,ne())}),b(Fe,Ee)}),b(R,Ze)};L(Ie,R=>{n(x)&&n(I)?.length?R(Re):R(re,!1)},_e)}};L(J,Ie=>{n(x)&&l()?Ie(Pe):Ie(Me,!1)})}v(me),v(ve),B(Ie=>{Q=Z(ve,1,"subtitles-caption svelte-c2x749",null,Q,Ie),ot(ve,`--subtitles-caption-margin: ${n(k)??""}%`)},[()=>({mobile:d()})]),b(oe,ve)};L(z,oe=>{(e.captions.length||n(I)?.length)&&oe(ie)})}v(V),B(oe=>q=Z(V,1,"subtitles-container svelte-c2x749",null,q,oe),[()=>({shifted:e.shifted,auto:n(x)&&!n(S)&&!l()})]),b(t,V),H(),o()}var Yy=A('<div class="text svelte-raurnb"> </div>'),Zy=A('<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>'),Xy={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 _d(t,e){D(e,!0),U(t,Xy);let i=Lt();var o=Zy();let r;var s=E(_(o),2);{var a=l=>{var d=Yy(),u=_(d);v(d),B(()=>pe(u,`\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(l,d)};L(s,l=>{e.chromecastDeviceName&&l(a)})}v(o),B(l=>{r=Z(o,1,"wrapper svelte-raurnb",null,r,l),ot(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),H()}var Jy=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function tm(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Jy();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var e4=A('<div class="container svelte-13zpvm8"><!></div>'),t4={hash:"svelte-13zpvm8",code:".container.svelte-13zpvm8 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}"};function bd(t){U(t,t4);var e=e4(),i=_(e);tm(i,{}),v(e),b(t,e)}var i4=A('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),o4=A("<div><!></div>"),n4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
278
278
  visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
279
- transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function ua(t,e){D(e,!0),U(t,n4);let i=f(e,"iconVisible",3,!0),o=we(),r=Rt(),s=o.ui.startedByKeyboard$,a=F("tooltip_play"),l=$=>{let w=$.code;["Enter","Space"].includes(w)&&($.stopPropagation(),$.preventDefault(),s.set(!0),e.startVideo?.())},d=$=>{$.stopPropagation(),e.startVideo?.()};var u=o4();let m;u.__click=d;var g=_(u);{var c=$=>{var w=i4();w.__keydown=l;var x=E(_(w),2);Sr(x,{}),v(w),B(()=>Me(w,"aria-label",a)),b($,w)};L(g,$=>{i()&&$(c)})}return v(u),B($=>{m=Z(u,1,"container svelte-1ciju45",null,m,$),it(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),H({handlePressKey:l,handleClick:d})}st(["click","keydown"]);var r4=P('<div data-testid="video_title"><span> </span></div>'),s4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
279
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function ua(t,e){D(e,!0),U(t,n4);let i=f(e,"iconVisible",3,!0),o=xe(),r=Lt(),s=o.ui.startedByKeyboard$,a=F("tooltip_play"),l=$=>{let w=$.code;["Enter","Space"].includes(w)&&($.stopPropagation(),$.preventDefault(),s.set(!0),e.startVideo?.())},d=$=>{$.stopPropagation(),e.startVideo?.()};var u=o4();let m;u.__click=d;var g=_(u);{var c=$=>{var w=i4();w.__keydown=l;var x=E(_(w),2);Sr(x,{}),v(w),B(()=>Ae(w,"aria-label",a)),b($,w)};L(g,$=>{i()&&$(c)})}return v(u),B($=>{m=Z(u,1,"container svelte-1ciju45",null,m,$),ot(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),H({handlePressKey:l,handleClick:d})}st(["click","keydown"]);var r4=A('<div data-testid="video_title"><span> </span></div>'),s4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
280
280
  0deg,
281
281
  rgba(0, 0, 0, 0) 0%,
282
282
  rgba(0, 0, 0, 0.02) 19%,
283
283
  rgba(0, 0, 0, 0.1) 34%,
284
284
  rgba(0, 0, 0, 0.4) 60%,
285
285
  rgba(0, 0, 0, 0.6) 100%
286
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function im(t,e){D(e,!0),U(t,s4);let i=f(e,"title",3,""),o=f(e,"isHidden",3,!1),r=f(e,"ref",15),s=K(void 0);Et(()=>{requestAnimationFrame(()=>{e.onVisibilityChanged?.(!0)});function m(g){g.propertyName==="transform"&&e.onVisibilityChanged?.(!o())}return n(s)?.addEventListener("transitionend",m),()=>n(s)?.removeEventListener("transitionend",m)});var a=r4();let l;var d=_(a),u=_(d,!0);v(d),Xe(d,m=>r(m),()=>r()),v(a),Xe(a,m=>N(s,m),()=>n(s)),B(m=>{l=Z(a,1,"title svelte-14hk510",null,l,m),ue(u,i())},[()=>({hidden:o()})]),b(t,a),H()}var a4=P('<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),l4=P('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),d4=P('<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),c4=P('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),u4=P('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),p4={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 om(t,e){D(e,!0),U(t,p4);let i=K(""),o=K(""),r=K(""),s=K(""),a,l=M=>String(M).padStart(2,"0"),d=M=>{let I=Math.floor(M/86400);I&&(M-=I*86400,N(i,l(I),!0));let k=Math.floor(M/3600);N(o,l(k),!0);let V=Math.floor(M/60)%60;N(r,l(V),!0);let q=M%60;N(s,l(q),!0)},u=()=>{let M=Math.floor(Date.now()/1e3),I=e.startTime-M;d(I),I>=1?a=requestAnimationFrame(u):e.onTimerOver()};Et(()=>{a=requestAnimationFrame(u)}),dn(()=>{cancelAnimationFrame(a)});var m=u4(),g=_(m);{var c=M=>{var I=a4(),k=le(I),V=_(k),q=_(V,!0);v(V);var z=E(V,2),ie=_(z,!0);v(z),v(k);var oe=E(k,2),me=_(oe,!0);v(oe),B((Q,fe)=>{ue(q,n(i)),ue(ie,Q),ue(me,fe)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(M,I)};L(g,M=>{n(i)&&M(c)})}var $=E(g,2);{var w=M=>{var I=l4(),k=le(I),V=_(k),q=_(V,!0);v(V);var z=E(V,2),ie=_(z,!0);v(z),v(k);var oe=E(k,2),me=_(oe,!0);v(oe),B((Q,fe)=>{ue(q,n(o)),ue(ie,Q),ue(me,fe)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(M,I)};L($,M=>{n(o)&&M(w)})}var x=E($,2);{var S=M=>{var I=d4(),k=le(I),V=_(k),q=_(V,!0);v(V);var z=E(V,2),ie=_(z,!0);v(z),v(k);var oe=E(k,2),me=_(oe,!0);v(oe),B((Q,fe)=>{ue(q,n(r)),ue(ie,Q),ue(me,fe)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(M,I)};L(x,M=>{n(r)&&M(S)})}var C=E(x,2);{var A=M=>{var I=c4(),k=_(I),V=_(k,!0);v(k);var q=E(k,2),z=_(q,!0);v(q),v(I),B(ie=>{ue(V,n(s)),ue(z,ie)},[()=>F("waiting_live_second_value")]),b(M,I)};L(C,M=>{n(s)&&M(A)})}v(m),b(t,m),H()}var f4=$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 nm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=f4();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(4),v(o),b(t,o)}var m4=P('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),v4=P('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),g4=P('<div class="waiting-container svelte-15pewff"><!></div>'),h4={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 $d(t,e){D(e,!0),U(t,h4);let i=K(!1);Oe(()=>{N(i,e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3),!0)});var o=g4(),r=_(o);{var s=l=>{var d=m4(),u=_(d),m=_(u);nm(m,{}),v(u);var g=E(u,2),c=_(g,!0);v(g),v(d),B($=>ue(c,$),[()=>F("waiting_live_upcoming_title")]),b(l,d)},a=l=>{var d=v4(),u=_(d),m=_(u,!0);v(u);var g=E(u,2);let c=h(()=>e.startTime||0);om(g,{get startTime(){return n(c)},onTimerOver:()=>N(i,!0)}),v(d),B($=>ue(m,$),[()=>F("waiting_live_timer_title")]),b(l,d)};L(r,l=>{n(i)?l(s):l(a,!1)})}v(o),B(()=>it(o,`background-image: url(${n(i)?"":e.thumbUrl})`)),b(t,o),H()}var _4=P('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),b4={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 pa(t,e){D(e,!0),U(t,b4);let i=f(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},r=h(()=>o[e.kind]||"");var s=_4(),a=_(s),l=_(a);ia(l,{style:"position: static; transform: translate(0, 0)"});var d=E(l,2),u=_(d,!0);v(d),v(a),v(s),B(()=>{it(s,`background-image: url('${i()}')`),ue(u,n(r))}),b(t,s),H()}var $4=$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 rm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=$4();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var y4=P('<div class="select-icon svelte-124aexk"><!></div>'),x4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function yd(t){U(t,x4);var e=y4(),i=_(e);rm(i,{}),v(e),b(t,e)}var w4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},S4=(t,e)=>{za(t,()=>e.item.selectItem(e.item.value))},C4=P("<p> </p>"),T4=P('<p class="sublabel svelte-1t7rx2m"> </p>'),k4=P('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),E4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
286
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function im(t,e){D(e,!0),U(t,s4);let i=f(e,"title",3,""),o=f(e,"isHidden",3,!1),r=f(e,"ref",15),s=K(void 0);It(()=>{requestAnimationFrame(()=>{e.onVisibilityChanged?.(!0)});function m(g){g.propertyName==="transform"&&e.onVisibilityChanged?.(!o())}return n(s)?.addEventListener("transitionend",m),()=>n(s)?.removeEventListener("transitionend",m)});var a=r4();let l;var d=_(a),u=_(d,!0);v(d),Je(d,m=>r(m),()=>r()),v(a),Je(a,m=>N(s,m),()=>n(s)),B(m=>{l=Z(a,1,"title svelte-14hk510",null,l,m),pe(u,i())},[()=>({hidden:o()})]),b(t,a),H()}var a4=A('<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),l4=A('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),d4=A('<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),c4=A('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),u4=A('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),p4={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 om(t,e){D(e,!0),U(t,p4);let i=K(""),o=K(""),r=K(""),s=K(""),a,l=M=>String(M).padStart(2,"0"),d=M=>{let I=Math.floor(M/86400);I&&(M-=I*86400,N(i,l(I),!0));let k=Math.floor(M/3600);N(o,l(k),!0);let V=Math.floor(M/60)%60;N(r,l(V),!0);let q=M%60;N(s,l(q),!0)},u=()=>{let M=Math.floor(Date.now()/1e3),I=e.startTime-M;d(I),I>=1?a=requestAnimationFrame(u):e.onTimerOver()};It(()=>{a=requestAnimationFrame(u)}),an(()=>{cancelAnimationFrame(a)});var m=u4(),g=_(m);{var c=M=>{var I=a4(),k=ce(I),V=_(k),q=_(V,!0);v(V);var z=E(V,2),ie=_(z,!0);v(z),v(k);var oe=E(k,2),ve=_(oe,!0);v(oe),B((Q,me)=>{pe(q,n(i)),pe(ie,Q),pe(ve,me)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(M,I)};L(g,M=>{n(i)&&M(c)})}var $=E(g,2);{var w=M=>{var I=l4(),k=ce(I),V=_(k),q=_(V,!0);v(V);var z=E(V,2),ie=_(z,!0);v(z),v(k);var oe=E(k,2),ve=_(oe,!0);v(oe),B((Q,me)=>{pe(q,n(o)),pe(ie,Q),pe(ve,me)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(M,I)};L($,M=>{n(o)&&M(w)})}var x=E($,2);{var S=M=>{var I=d4(),k=ce(I),V=_(k),q=_(V,!0);v(V);var z=E(V,2),ie=_(z,!0);v(z),v(k);var oe=E(k,2),ve=_(oe,!0);v(oe),B((Q,me)=>{pe(q,n(r)),pe(ie,Q),pe(ve,me)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(M,I)};L(x,M=>{n(r)&&M(S)})}var C=E(x,2);{var P=M=>{var I=c4(),k=_(I),V=_(k,!0);v(k);var q=E(k,2),z=_(q,!0);v(q),v(I),B(ie=>{pe(V,n(s)),pe(z,ie)},[()=>F("waiting_live_second_value")]),b(M,I)};L(C,M=>{n(s)&&M(P)})}v(m),b(t,m),H()}var f4=ye('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function nm(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=f4();we(o,()=>({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(4),v(o),b(t,o)}var m4=A('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),v4=A('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),g4=A('<div class="waiting-container svelte-15pewff"><!></div>'),h4={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 $d(t,e){D(e,!0),U(t,h4);let i=K(!1);De(()=>{N(i,e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3),!0)});var o=g4(),r=_(o);{var s=l=>{var d=m4(),u=_(d),m=_(u);nm(m,{}),v(u);var g=E(u,2),c=_(g,!0);v(g),v(d),B($=>pe(c,$),[()=>F("waiting_live_upcoming_title")]),b(l,d)},a=l=>{var d=v4(),u=_(d),m=_(u,!0);v(u);var g=E(u,2);let c=h(()=>e.startTime||0);om(g,{get startTime(){return n(c)},onTimerOver:()=>N(i,!0)}),v(d),B($=>pe(m,$),[()=>F("waiting_live_timer_title")]),b(l,d)};L(r,l=>{n(i)?l(s):l(a,!1)})}v(o),B(()=>ot(o,`background-image: url(${n(i)?"":e.thumbUrl})`)),b(t,o),H()}var _4=A('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),b4={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 pa(t,e){D(e,!0),U(t,b4);let i=f(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},r=h(()=>o[e.kind]||"");var s=_4(),a=_(s),l=_(a);ia(l,{style:"position: static; transform: translate(0, 0)"});var d=E(l,2),u=_(d,!0);v(d),v(a),v(s),B(()=>{ot(s,`background-image: url('${i()}')`),pe(u,n(r))}),b(t,s),H()}var $4=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function rm(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=$4();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var y4=A('<div class="select-icon svelte-124aexk"><!></div>'),x4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function yd(t){U(t,x4);var e=y4(),i=_(e);rm(i,{}),v(e),b(t,e)}var w4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},S4=(t,e)=>{za(t,()=>e.item.selectItem(e.item.value))},C4=A("<p> </p>"),T4=A('<p class="sublabel svelte-1t7rx2m"> </p>'),k4=A('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),E4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
287
287
 
288
288
  /**
289
289
  * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
290
290
  * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
291
291
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
292
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function sm(t,e){D(e,!0),U(t,E4);let i=f(e,"isMobile",3,!1);var o=k4();let r;o.__click=[w4,e],o.__keydown=[S4,e];var s=_(o);{var a=w=>{yd(w,{})};L(s,w=>{e.item.selected&&w(a)})}var l=E(s,2);let d;var u=_(l);{var m=w=>{var x=Be(),S=le(x);li(S,()=>e.item.valueComponent,(C,A)=>{A(C,ns(()=>e.item.valueComponentParams??{}))}),b(w,x)},g=w=>{var x=C4();let S;var C=_(x,!0);v(x),B(A=>{S=Z(x,1,"label svelte-1t7rx2m",null,S,A),ue(C,e.item.label??e.item.value)},[()=>({mobile:i()})]),b(w,x)};L(u,w=>{e.item.valueComponent?w(m):w(g,!1)})}var c=E(u,2);{var $=w=>{var x=T4(),S=_(x,!0);v(x),B(()=>ue(S,e.item.sublabel)),b(w,x)};L(c,w=>{e.item.sublabel&&w($)})}v(l),v(o),B((w,x,S)=>{r=Z(o,1,"item",null,r,w),Me(o,"data-value",e.item.value),Me(o,"aria-label",x),Me(o,"data-testid",e.item.dataTestid),d=Z(l,1,"menu-item-value svelte-1t7rx2m",null,d,S),Me(l,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>e.item.ariaLabel??e.item.label??e.item.value.toString(),()=>({"submenu-value-mobile":i()})]),b(t,o),H()}st(["click","keydown"]);var I4=P('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function am(t,e){D(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"refMenuItems",15),r=h(()=>()=>e.openSubMenuList(e.item.children)),s=h(()=>x=>Lc(x,n(r)));var a=I4();let l;a.__click=function(...x){n(r)?.apply(this,x)},a.__keydown=function(...x){n(s)?.apply(this,x)};var d=_(a);{var u=x=>{yd(x,{})};L(d,x=>{e.item.selected&&x(u)})}var m=E(d,2);let g;var c=_(m);{var $=x=>{var S=Be();let C=h(()=>e.item.valueComponent);var A=le(S);li(A,()=>n(C),(M,I)=>{I(M,ns(()=>e.item.valueComponentParams??{}))}),b(x,S)},w=x=>{var S=Ur();B(()=>ue(S,e.item.label)),b(x,S)};L(c,x=>{e.item.valueComponent?x($):x(w,!1)})}v(m),v(a),Xe(a,x=>o(o()[e.item.id]=x,!0),()=>o()?.[e.item.id]),B((x,S)=>{l=Z(a,1,"item",null,l,x),Me(a,"aria-label",e.item.ariaLabel??e.item.label),Me(a,"data-testid",e.item.id),g=Z(m,1,"menu-item-value",null,g,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,a),H()}st(["click","keydown"]);var Cr={"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 P4=(t,e)=>{vh(t,e.returnFromSubMenu,e.closeSettingsMenu)},M4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},L4=(t,e)=>{Ul(t)&&(tr(t),e.returnFromSubMenu())},R4=P('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),V4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
292
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function sm(t,e){D(e,!0),U(t,E4);let i=f(e,"isMobile",3,!1);var o=k4();let r;o.__click=[w4,e],o.__keydown=[S4,e];var s=_(o);{var a=w=>{yd(w,{})};L(s,w=>{e.item.selected&&w(a)})}var l=E(s,2);let d;var u=_(l);{var m=w=>{var x=Oe(),S=ce(x);ci(S,()=>e.item.valueComponent,(C,P)=>{P(C,ns(()=>e.item.valueComponentParams??{}))}),b(w,x)},g=w=>{var x=C4();let S;var C=_(x,!0);v(x),B(P=>{S=Z(x,1,"label svelte-1t7rx2m",null,S,P),pe(C,e.item.label??e.item.value)},[()=>({mobile:i()})]),b(w,x)};L(u,w=>{e.item.valueComponent?w(m):w(g,!1)})}var c=E(u,2);{var $=w=>{var x=T4(),S=_(x,!0);v(x),B(()=>pe(S,e.item.sublabel)),b(w,x)};L(c,w=>{e.item.sublabel&&w($)})}v(l),v(o),B((w,x,S)=>{r=Z(o,1,"item",null,r,w),Ae(o,"data-value",e.item.value),Ae(o,"aria-label",x),Ae(o,"data-testid",e.item.dataTestid),d=Z(l,1,"menu-item-value svelte-1t7rx2m",null,d,S),Ae(l,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>e.item.ariaLabel??e.item.label??e.item.value.toString(),()=>({"submenu-value-mobile":i()})]),b(t,o),H()}st(["click","keydown"]);var I4=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function am(t,e){D(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"refMenuItems",15),r=h(()=>()=>e.openSubMenuList(e.item.children)),s=h(()=>x=>Lc(x,n(r)));var a=I4();let l;a.__click=function(...x){n(r)?.apply(this,x)},a.__keydown=function(...x){n(s)?.apply(this,x)};var d=_(a);{var u=x=>{yd(x,{})};L(d,x=>{e.item.selected&&x(u)})}var m=E(d,2);let g;var c=_(m);{var $=x=>{var S=Oe();let C=h(()=>e.item.valueComponent);var P=ce(S);ci(P,()=>n(C),(M,I)=>{I(M,ns(()=>e.item.valueComponentParams??{}))}),b(x,S)},w=x=>{var S=Ur();B(()=>pe(S,e.item.label)),b(x,S)};L(c,x=>{e.item.valueComponent?x($):x(w,!1)})}v(m),v(a),Je(a,x=>o(o()[e.item.id]=x,!0),()=>o()?.[e.item.id]),B((x,S)=>{l=Z(a,1,"item",null,l,x),Ae(a,"aria-label",e.item.ariaLabel??e.item.label),Ae(a,"data-testid",e.item.id),g=Z(m,1,"menu-item-value",null,g,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,a),H()}st(["click","keydown"]);var Cr={"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 A4=(t,e)=>{vh(t,e.returnFromSubMenu,e.closeSettingsMenu)},M4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},L4=(t,e)=>{Ul(t)&&(ir(t),e.returnFromSubMenu())},R4=A('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),V4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
293
293
  /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
294
294
  /**
295
295
  * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
@@ -299,14 +299,14 @@ Try switching the\xA0quality to\xA0Auto.`},Xg=U0;var rs=new Map;rs.set(eh.EN,Xg)
299
299
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
300
300
  1px
301
301
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
302
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function dm(t,e){D(e,!0),U(t,V4);let[i,o]=Re(),r=()=>y(g,"$isFullscreen",i),s=()=>y(c,"$playerSize",i),a=f(e,"isMobile",3,!1),l=f(e,"playerControlsHeight",3,0),d=f(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),u=f(e,"listRef",15);Et(()=>{let Q=e.items.findIndex(fe=>fe.selected);u().children[Q+1].focus()});let m=we(),g=m.ui.isFullscreen,c=m.ui.playerSize,$=K(void 0),w=K(0),x=K(0),S=h(()=>a()&&r()?`max-height: ${Math.round(s().height*.6)}px`:a()?"":`max-height: ${s().height-32-n(x)-l()}px; overflow: auto;`),C=h(()=>Math.max(e.minWidth,n(w)));var A=R4();let M;var I=_(A);let k;I.__keydown=[P4,e];var V=_(I);let q;V.__click=[M4,e],V.__keydown=[L4,e];var z=_(V);Is(z,{direction:"left"});var ie=E(z,2),oe=_(ie,!0);v(ie),v(V),Xe(V,Q=>N($,Q),()=>n($));var me=E(V,2);ai(me,17,()=>e.items,Tl,(Q,fe)=>{var J=Be(),Pe=le(J);{var Le=he=>{sm(he,{get item(){return n(fe)},get isMobile(){return a()}})},Ae=(he,Ve)=>{{var re=R=>{am(R,{get isMobile(){return a()},get item(){return n(fe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(he,R=>{n(fe).type==="OPEN_SUB_MENU"&&R(re)},Ve)}};L(Pe,he=>{n(fe).type==="SELECT_VALUE"?he(Le):he(Ae,!1)})}b(Q,J)}),v(I),Xe(I,Q=>u(Q),()=>u()),v(A),B((Q,fe,J)=>{M=Z(A,1,"sub-menu menu svelte-7dfsuh",null,M,Q),Me(A,"data-testid",`sub-menu-${e.id}`),it(A,`min-width: ${n(C)}px`),k=Z(I,1,"items svelte-7dfsuh",null,k,fe),it(I,n(S)),q=Z(V,1,"item header back svelte-7dfsuh",null,q,J),Me(V,"aria-label",d()),ue(oe,e.title)},[()=>({desktop:!a(),mobile:a()}),()=>({mobile:a()}),()=>({mobile:a()})]),zr(V,"clientWidth",Q=>N(w,Q)),zr(V,"clientHeight",Q=>N(x,Q)),b(t,A),H(),o()}st(["keydown","click"]);import{noop as N4}from"@vkontakte/videoplayer-shared/evergreen";var B4=(t,e)=>Lc(t,e()),O4=(t,e)=>{t.stopPropagation(),e()()},D4=P('<div class="value svelte-1ikfjte"> </div>'),H4=P('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),F4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function cm(t,e){D(e,!0),U(t,F4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,N4),r=f(e,"valueComponent",3,void 0),s=f(e,"ref",15);var a=H4();let l;a.__click=[O4,o],a.__keydown=[B4,o];var d=_(a),u=_(d);{var m=C=>{la(C,{get icon(){return e.icon}})},g=C=>{var A=Be();let M=h(()=>e.icon);var I=le(A);li(I,()=>n(M),(k,V)=>{V(k,{})}),b(C,A)};L(u,C=>{typeof e.icon=="string"?C(m):C(g,!1)})}v(d);var c=E(d,2),$=_(c,!0);v(c);var w=E(c,2);{var x=C=>{var A=Be();let M=h(r);var I=le(A);li(I,()=>n(M),(k,V)=>{V(k,{})}),b(C,A)},S=C=>{var A=D4(),M=_(A,!0);v(A),B(()=>ue(M,e.value)),b(C,A)};L(w,C=>{r()?C(x):C(S,!1)})}v(a),Xe(a,C=>s(C),()=>s()),B(C=>{l=Z(a,1,"item",null,l,C),Me(a,"aria-label",e.ariaLabel),Me(a,"data-testid",e.id),ue($,e.label)},[()=>({mobile:i()})]),b(t,a),H()}st(["click","keydown"]);import{noop as Zh}from"@vkontakte/videoplayer-shared/evergreen";var U4=(t,e)=>{za(t,()=>e())},z4=P('<div class="icon icon-error-stub"><div class="inner"></div></div>'),W4=P('<img class="icon" aria-hidden="true"/>'),q4=P('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),K4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function um(t,e){D(e,!0),U(t,K4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,Zh),r=f(e,"closeSettings",3,Zh),s=K(!1),a=()=>{N(s,!0)},l=S=>{S?.stopPropagation(),o()(),r()()};var d=q4();let u;d.__click=l,d.__keydown=[U4,l];var m=_(d),g=_(m);{var c=S=>{var C=Be(),A=le(C);{var M=k=>{var V=z4();b(k,V)},I=k=>{var V=W4();B(()=>Me(V,"src",e.icon)),gt("error",V,a),Us(V),b(k,V)};L(A,k=>{n(s)?k(M):k(I,!1)})}b(S,C)},$=S=>{var C=Be();let A=h(()=>e.icon);var M=le(C);li(M,()=>n(A),(I,k)=>{k(I,{})}),b(S,C)};L(g,S=>{typeof e.icon=="string"?S(c):S($,!1)})}v(m);var w=E(m,2),x=_(w,!0);v(w),v(d),B(S=>{u=Z(d,1,"item",null,u,S),Me(d,"aria-label",e.ariaLabel??e.label),Me(d,"data-testid",e.id),ue(x,e.label)},[()=>({mobile:i()})]),b(t,d),H()}st(["click","keydown"]);import{noop as j4}from"@vkontakte/videoplayer-shared/evergreen";var Q4=P('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),G4={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 pm(t,e){U(t,G4);let i=f(e,"enabled",3,!1);var o=Q4(),r=_(o);let s;be(2),v(o),B(a=>s=Z(r,1,"toggle svelte-17wbjko",null,s,a),[()=>({on:i()})]),b(t,o)}var Y4=(t,e,i)=>{gh(t,e(),o=>i()(o))},Z4=(t,e,i)=>{t.stopPropagation(),e()(!i())},X4=P('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),J4=P('<li role="menuitem" tabindex="0"><!></li>');function fm(t,e){D(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,j4),r=f(e,"enabled",3,!1),s=f(e,"tooltipText",3,void 0),a=f(e,"maxTooltipWidth",3,void 0);var l=J4();let d;l.__click=[Z4,o,r],l.__keydown=[Y4,r,o];var u=_(l);oa(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return a()},children:(m,g)=>{var c=X4();let $;var w=_(c),x=_(w);{var S=k=>{la(k,{get icon(){return e.icon}})},C=k=>{var V=Be();let q=h(()=>e.icon);var z=le(V);li(z,()=>n(q),(ie,oe)=>{oe(ie,{})}),b(k,V)};L(x,k=>{typeof e.icon=="string"?k(S):k(C,!1)})}v(w);var A=E(w,2),M=_(A,!0);v(A);var I=E(A,2);pm(I,{get enabled(){return r()}}),v(c),B(k=>{$=Z(c,1,"switch-wrapper",null,$,k),ue(M,e.label)},[()=>({mobile:i()})]),b(m,c)},$$slots:{default:!0}}),v(l),B(m=>{d=Z(l,1,"item switch-item",null,d,m),Me(l,"aria-label",e.ariaLabel??e.label),Me(l,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,l),H()}st(["click","keydown"]);import{isValidURL as w3,VideoQuality as l1}from"@vkontakte/videoplayer-shared/evergreen";var Xh=()=>{let t=K(Kt([])),e=h(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{N(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var e3=P('<div class="quality-icon svelte-t2qk8t"><!></div>'),t3=P('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),i3={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 fa(t,e){D(e,!0),U(t,i3);let i=f(e,"isSubCase",3,!1),o=h(()=>Oc(e.quality));var r=t3(),s=_(r);let a;var l=_(s,!0);v(s);var d=E(s,2);{var u=m=>{var g=e3();let c=h(()=>n(o));var $=_(g);li($,()=>n(c),(w,x)=>{x(w,{})}),v(g),b(m,g)};L(d,m=>{n(o)&&!e.isMobile&&m(u)})}v(r),B(m=>{a=Z(s,1,"svelte-t2qk8t",null,a,m),ue(l,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,r),H()}import{VideoQuality as o3}from"@vkontakte/videoplayer-shared/evergreen";import{VideoQuality as Jh}from"@vkontakte/videoplayer-core/evergreen";var e1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},t1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=e1({quality:t,availableQualities:e});return i?t===Jh.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},i1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Jh.INVARIANT?i:`${i}${e1({quality:t,availableQualities:e})}`:"...";var n3=P('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),r3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Za(t,e){D(e,!0),U(t,r3);let[i,o]=Re(),r=()=>y(d,"$currentQuality$",i),s=()=>y(u,"$availableQualities$",i),a=()=>y(m,"$isMobile$",i),l=we(),d=l.state.currentQuality$,u=l.state.availableQualities$,m=l.ui.isMobile,g=" \xB7 ",c=h(()=>e.prefix+(e.selected&&r()!==o3.INVARIANT?g:"")),$=h(()=>i1({prefix:n(c),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var w=n3(),x=_(w);let S=h(()=>e.selected?r():void 0);fa(x,{get quality(){return n(S)},get label(){return n($)},get isMobile(){return a()},isSubCase:!0}),v(w),b(t,w),H(),o()}var s3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},a3={br:!0,span:!0},mm=(t,e={})=>{if(!t)return t;let i={...a3,...e},o=Object.keys(i);if(!o.length)return t;let r=s3(o),s=[],a=0;for(let l of t.matchAll(r)){let d=l[0],u=l.groups?.keyhtml||l.groups?.keyi18n||l.groups?.keyhtmlself||l.groups?.keyi18nself||"",{index:m}=l;if(!i[u]){s.push(t.slice(a,m)),a=m+d.length;continue}let g=l.groups?.childrenhtml?mm(l.groups.childrenhtml,i):"",c=l.groups?.childrenhtml?d.replace(new RegExp(l.groups?.childrenhtml),()=>g||""):d;s.push(t.slice(a,m),c),a=m+d.length}return a===0?t:(s.push(t.slice(a)),s.join(""))};function xd(t,e){D(e,!1);let i=f(e,"message",8),o=mm(i());yr();var r=Be(),s=le(r);{var a=l=>{var d=Be(),u=le(d);kl(u,()=>o),b(l,d)};L(s,l=>{o&&l(a)})}b(t,r),H()}var l3=P('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),d3={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 vm(t,e){D(e,!1),U(t,d3),yr();var i=l3(),o=_(i);let r=hr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));xd(o,{get message(){return n(r)}}),v(i),b(t,i),H()}var n1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Za,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},gm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?Za:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),r1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:vm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),hm=({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?Za:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),_m=({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?Za:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var iu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),ou=(t,e)=>{if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=qc(i)??i),o&&i&&r){let a=e.filter(l=>l.label===o&&l.language===i);if(a.length===1)return F("audio_stream_display_language_label",{language:r,label:o});{let l=iu(t,a);return F("audio_stream_display_language_label_index",{language:r,label:o,index:l})}}if(o){let a=e.filter(l=>l.label===o);if(a.length===1)return o;{let l=iu(t,a);return F("audio_stream_display_label_index",{label:o,index:l})}}if(i&&r){let a=e.filter(l=>l.language===i);if(a.length===1)return r;{let l=iu(t,a);return F("audio_stream_display_language_index",{language:r,index:l})}}let s=iu(t,e);return F("audio_stream_display_unknown",{index:s})};var c3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:gm,selected:e&&!o&&!r||!1}),s.push({handler:_m,selected:o},{handler:hm,selected:r}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[r1(t),...s.map(({handler:a,selected:l})=>a({labelWithQuality:!0,appliesTo:"to-video",selected:l},t)),n1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:fa,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:gm,selected:xc()?.type==="auto_quality"},{handler:_m,selected:xc()?.type==="traffic_saving"},{handler:hm,selected:xc()?.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(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===i?.id,label:ou(r,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===Gc?"sub_off":void 0}))})},s1=({subMenuId:t,context:e})=>t?[c3[t](e)]:[];var u3=$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 bm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=u3();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var p3=$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 $m(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=p3();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var f3=$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 ym(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=f3();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var m3=$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 xm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=m3();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var v3=$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 wm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=v3();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var g3=$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 nu(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=g3();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var h3=$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 Sm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=h3();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var _3=P('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),b3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Cm(t,e){D(e,!0),U(t,b3);let[i,o]=Re(),r=()=>y(u,"$currentQuality$",i),s=()=>y(m,"$availableQualities$",i),a=()=>y(g,"$isAutoQualityEnabled$",i),l=()=>y(c,"$isMobile$",i),d=we(),u=d.state.currentQuality$,m=d.state.availableQualities$,g=d.state.isAutoQualityEnabled$,c=d.ui.isMobile,$=h(()=>t1({quality:r(),availableQualities:s(),isAutoQualityEnabled:a()}));var w=_3(),x=_(w);fa(x,{get quality(){return r()},get label(){return n($)},get isMobile(){return l()}}),v(w),b(t,w),H(),o()}var y3={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:Zl,label:F("menu_quality"),value:e,valueComponent:Cm,weight:Cr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Cr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:bm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=ou(t,e);return{id:"AUDIO_LANGUAGES",weight:Cr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:$m,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:Cr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:ym,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Cr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Xl,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Cr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:xm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Cr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:wm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Cr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:nu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Cr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:nu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Cr["debug-info"],type:"CLICK",onClick:t,ariaLabel:F("aria_label_menu_debug_overlay"),label:F("menu_debug_overlay"),icon:Sm,isHiddenFor:["desktop"]})},a1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>y3[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>!r?.isHiddenFor?.length||!r?.isHiddenFor?.includes("desktop")&&!o||!r?.isHiddenFor?.includes("mobile")&&o).sort(Js)};var S3=(t,e)=>{Mc(t,e)},C3=P('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),T3=P('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),k3=P("<div><!> <!></div>"),E3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
302
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function dm(t,e){D(e,!0),U(t,V4);let[i,o]=Le(),r=()=>y(g,"$isFullscreen",i),s=()=>y(c,"$playerSize",i),a=f(e,"isMobile",3,!1),l=f(e,"playerControlsHeight",3,0),d=f(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),u=f(e,"listRef",15);It(()=>{let Q=e.items.findIndex(me=>me.selected);u().children[Q+1].focus()});let m=xe(),g=m.ui.isFullscreen,c=m.ui.playerSize,$=K(void 0),w=K(0),x=K(0),S=h(()=>a()&&r()?`max-height: ${Math.round(s().height*.6)}px`:a()?"":`max-height: ${s().height-32-n(x)-l()}px; overflow: auto;`),C=h(()=>Math.max(e.minWidth,n(w)));var P=R4();let M;var I=_(P);let k;I.__keydown=[A4,e];var V=_(I);let q;V.__click=[M4,e],V.__keydown=[L4,e];var z=_(V);Is(z,{direction:"left"});var ie=E(z,2),oe=_(ie,!0);v(ie),v(V),Je(V,Q=>N($,Q),()=>n($));var ve=E(V,2);di(ve,17,()=>e.items,Tl,(Q,me)=>{var J=Oe(),Pe=ce(J);{var Me=_e=>{sm(_e,{get item(){return n(me)},get isMobile(){return a()}})},Ie=(_e,Re)=>{{var re=R=>{am(R,{get isMobile(){return a()},get item(){return n(me)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(_e,R=>{n(me).type==="OPEN_SUB_MENU"&&R(re)},Re)}};L(Pe,_e=>{n(me).type==="SELECT_VALUE"?_e(Me):_e(Ie,!1)})}b(Q,J)}),v(I),Je(I,Q=>u(Q),()=>u()),v(P),B((Q,me,J)=>{M=Z(P,1,"sub-menu menu svelte-7dfsuh",null,M,Q),Ae(P,"data-testid",`sub-menu-${e.id}`),ot(P,`min-width: ${n(C)}px`),k=Z(I,1,"items svelte-7dfsuh",null,k,me),ot(I,n(S)),q=Z(V,1,"item header back svelte-7dfsuh",null,q,J),Ae(V,"aria-label",d()),pe(oe,e.title)},[()=>({desktop:!a(),mobile:a()}),()=>({mobile:a()}),()=>({mobile:a()})]),zr(V,"clientWidth",Q=>N(w,Q)),zr(V,"clientHeight",Q=>N(x,Q)),b(t,P),H(),o()}st(["keydown","click"]);import{noop as N4}from"@vkontakte/videoplayer-shared/evergreen";var B4=(t,e)=>Lc(t,e()),O4=(t,e)=>{t.stopPropagation(),e()()},D4=A('<div class="value svelte-1ikfjte"> </div>'),H4=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),F4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function cm(t,e){D(e,!0),U(t,F4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,N4),r=f(e,"valueComponent",3,void 0),s=f(e,"ref",15);var a=H4();let l;a.__click=[O4,o],a.__keydown=[B4,o];var d=_(a),u=_(d);{var m=C=>{la(C,{get icon(){return e.icon}})},g=C=>{var P=Oe();let M=h(()=>e.icon);var I=ce(P);ci(I,()=>n(M),(k,V)=>{V(k,{})}),b(C,P)};L(u,C=>{typeof e.icon=="string"?C(m):C(g,!1)})}v(d);var c=E(d,2),$=_(c,!0);v(c);var w=E(c,2);{var x=C=>{var P=Oe();let M=h(r);var I=ce(P);ci(I,()=>n(M),(k,V)=>{V(k,{})}),b(C,P)},S=C=>{var P=D4(),M=_(P,!0);v(P),B(()=>pe(M,e.value)),b(C,P)};L(w,C=>{r()?C(x):C(S,!1)})}v(a),Je(a,C=>s(C),()=>s()),B(C=>{l=Z(a,1,"item",null,l,C),Ae(a,"aria-label",e.ariaLabel),Ae(a,"data-testid",e.id),pe($,e.label)},[()=>({mobile:i()})]),b(t,a),H()}st(["click","keydown"]);import{noop as Zh}from"@vkontakte/videoplayer-shared/evergreen";var U4=(t,e)=>{za(t,()=>e())},z4=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),W4=A('<img class="icon" aria-hidden="true"/>'),q4=A('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),K4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function um(t,e){D(e,!0),U(t,K4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,Zh),r=f(e,"closeSettings",3,Zh),s=K(!1),a=()=>{N(s,!0)},l=S=>{S?.stopPropagation(),o()(),r()()};var d=q4();let u;d.__click=l,d.__keydown=[U4,l];var m=_(d),g=_(m);{var c=S=>{var C=Oe(),P=ce(C);{var M=k=>{var V=z4();b(k,V)},I=k=>{var V=W4();B(()=>Ae(V,"src",e.icon)),bt("error",V,a),Us(V),b(k,V)};L(P,k=>{n(s)?k(M):k(I,!1)})}b(S,C)},$=S=>{var C=Oe();let P=h(()=>e.icon);var M=ce(C);ci(M,()=>n(P),(I,k)=>{k(I,{})}),b(S,C)};L(g,S=>{typeof e.icon=="string"?S(c):S($,!1)})}v(m);var w=E(m,2),x=_(w,!0);v(w),v(d),B(S=>{u=Z(d,1,"item",null,u,S),Ae(d,"aria-label",e.ariaLabel??e.label),Ae(d,"data-testid",e.id),pe(x,e.label)},[()=>({mobile:i()})]),b(t,d),H()}st(["click","keydown"]);import{noop as j4}from"@vkontakte/videoplayer-shared/evergreen";var Q4=A('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),G4={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 pm(t,e){U(t,G4);let i=f(e,"enabled",3,!1);var o=Q4(),r=_(o);let s;$e(2),v(o),B(a=>s=Z(r,1,"toggle svelte-17wbjko",null,s,a),[()=>({on:i()})]),b(t,o)}var Y4=(t,e,i)=>{gh(t,e(),o=>i()(o))},Z4=(t,e,i)=>{t.stopPropagation(),e()(!i())},X4=A('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),J4=A('<li role="menuitem" tabindex="0"><!></li>');function fm(t,e){D(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,j4),r=f(e,"enabled",3,!1),s=f(e,"tooltipText",3,void 0),a=f(e,"maxTooltipWidth",3,void 0);var l=J4();let d;l.__click=[Z4,o,r],l.__keydown=[Y4,r,o];var u=_(l);oa(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return a()},children:(m,g)=>{var c=X4();let $;var w=_(c),x=_(w);{var S=k=>{la(k,{get icon(){return e.icon}})},C=k=>{var V=Oe();let q=h(()=>e.icon);var z=ce(V);ci(z,()=>n(q),(ie,oe)=>{oe(ie,{})}),b(k,V)};L(x,k=>{typeof e.icon=="string"?k(S):k(C,!1)})}v(w);var P=E(w,2),M=_(P,!0);v(P);var I=E(P,2);pm(I,{get enabled(){return r()}}),v(c),B(k=>{$=Z(c,1,"switch-wrapper",null,$,k),pe(M,e.label)},[()=>({mobile:i()})]),b(m,c)},$$slots:{default:!0}}),v(l),B(m=>{d=Z(l,1,"item switch-item",null,d,m),Ae(l,"aria-label",e.ariaLabel??e.label),Ae(l,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,l),H()}st(["click","keydown"]);import{isValidURL as w3,VideoQuality as l1}from"@vkontakte/videoplayer-shared/evergreen";var Xh=()=>{let t=K(Qt([])),e=h(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{N(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var e3=A('<div class="quality-icon svelte-t2qk8t"><!></div>'),t3=A('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),i3={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 fa(t,e){D(e,!0),U(t,i3);let i=f(e,"isSubCase",3,!1),o=h(()=>Oc(e.quality));var r=t3(),s=_(r);let a;var l=_(s,!0);v(s);var d=E(s,2);{var u=m=>{var g=e3();let c=h(()=>n(o));var $=_(g);ci($,()=>n(c),(w,x)=>{x(w,{})}),v(g),b(m,g)};L(d,m=>{n(o)&&!e.isMobile&&m(u)})}v(r),B(m=>{a=Z(s,1,"svelte-t2qk8t",null,a,m),pe(l,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,r),H()}import{VideoQuality as o3}from"@vkontakte/videoplayer-shared/evergreen";import{VideoQuality as Jh}from"@vkontakte/videoplayer-core/evergreen";var e1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},t1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=e1({quality:t,availableQualities:e});return i?t===Jh.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},i1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Jh.INVARIANT?i:`${i}${e1({quality:t,availableQualities:e})}`:"...";var n3=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),r3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Za(t,e){D(e,!0),U(t,r3);let[i,o]=Le(),r=()=>y(d,"$currentQuality$",i),s=()=>y(u,"$availableQualities$",i),a=()=>y(m,"$isMobile$",i),l=xe(),d=l.state.currentQuality$,u=l.state.availableQualities$,m=l.ui.isMobile,g=" \xB7 ",c=h(()=>e.prefix+(e.selected&&r()!==o3.INVARIANT?g:"")),$=h(()=>i1({prefix:n(c),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var w=n3(),x=_(w);let S=h(()=>e.selected?r():void 0);fa(x,{get quality(){return n(S)},get label(){return n($)},get isMobile(){return a()},isSubCase:!0}),v(w),b(t,w),H(),o()}var s3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},a3={br:!0,span:!0},mm=(t,e={})=>{if(!t)return t;let i={...a3,...e},o=Object.keys(i);if(!o.length)return t;let r=s3(o),s=[],a=0;for(let l of t.matchAll(r)){let d=l[0],u=l.groups?.keyhtml||l.groups?.keyi18n||l.groups?.keyhtmlself||l.groups?.keyi18nself||"",{index:m}=l;if(!i[u]){s.push(t.slice(a,m)),a=m+d.length;continue}let g=l.groups?.childrenhtml?mm(l.groups.childrenhtml,i):"",c=l.groups?.childrenhtml?d.replace(new RegExp(l.groups?.childrenhtml),()=>g||""):d;s.push(t.slice(a,m),c),a=m+d.length}return a===0?t:(s.push(t.slice(a)),s.join(""))};function xd(t,e){D(e,!1);let i=f(e,"message",8),o=mm(i());yr();var r=Oe(),s=ce(r);{var a=l=>{var d=Oe(),u=ce(d);kl(u,()=>o),b(l,d)};L(s,l=>{o&&l(a)})}b(t,r),H()}var l3=A('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),d3={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 vm(t,e){D(e,!1),U(t,d3),yr();var i=l3(),o=_(i);let r=hr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));xd(o,{get message(){return n(r)}}),v(i),b(t,i),H()}var n1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Za,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},gm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?Za:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),r1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:vm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),hm=({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?Za:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),_m=({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?Za:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var iu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),ou=(t,e)=>{if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=qc(i)??i),o&&i&&r){let a=e.filter(l=>l.label===o&&l.language===i);if(a.length===1)return F("audio_stream_display_language_label",{language:r,label:o});{let l=iu(t,a);return F("audio_stream_display_language_label_index",{language:r,label:o,index:l})}}if(o){let a=e.filter(l=>l.label===o);if(a.length===1)return o;{let l=iu(t,a);return F("audio_stream_display_label_index",{label:o,index:l})}}if(i&&r){let a=e.filter(l=>l.language===i);if(a.length===1)return r;{let l=iu(t,a);return F("audio_stream_display_language_index",{language:r,index:l})}}let s=iu(t,e);return F("audio_stream_display_unknown",{index:s})};var c3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:gm,selected:e&&!o&&!r||!1}),s.push({handler:_m,selected:o},{handler:hm,selected:r}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[r1(t),...s.map(({handler:a,selected:l})=>a({labelWithQuality:!0,appliesTo:"to-video",selected:l},t)),n1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:fa,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:gm,selected:xc()?.type==="auto_quality"},{handler:_m,selected:xc()?.type==="traffic_saving"},{handler:hm,selected:xc()?.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(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===i?.id,label:ou(r,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===Gc?"sub_off":void 0}))})},s1=({subMenuId:t,context:e})=>t?[c3[t](e)]:[];var u3=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function bm(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=u3();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var p3=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function $m(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=p3();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var f3=ye('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function ym(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=f3();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var m3=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function xm(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=m3();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var v3=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function wm(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=v3();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var g3=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function nu(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=g3();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var h3=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function Sm(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=h3();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var _3=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),b3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Cm(t,e){D(e,!0),U(t,b3);let[i,o]=Le(),r=()=>y(u,"$currentQuality$",i),s=()=>y(m,"$availableQualities$",i),a=()=>y(g,"$isAutoQualityEnabled$",i),l=()=>y(c,"$isMobile$",i),d=xe(),u=d.state.currentQuality$,m=d.state.availableQualities$,g=d.state.isAutoQualityEnabled$,c=d.ui.isMobile,$=h(()=>t1({quality:r(),availableQualities:s(),isAutoQualityEnabled:a()}));var w=_3(),x=_(w);fa(x,{get quality(){return r()},get label(){return n($)},get isMobile(){return l()}}),v(w),b(t,w),H(),o()}var y3={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:Zl,label:F("menu_quality"),value:e,valueComponent:Cm,weight:Cr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Cr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:bm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=ou(t,e);return{id:"AUDIO_LANGUAGES",weight:Cr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:$m,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:Cr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:ym,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Cr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Xl,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Cr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:xm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Cr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:wm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Cr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:nu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Cr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:nu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Cr["debug-info"],type:"CLICK",onClick:t,ariaLabel:F("aria_label_menu_debug_overlay"),label:F("menu_debug_overlay"),icon:Sm,isHiddenFor:["desktop"]})},a1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>y3[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>!r?.isHiddenFor?.length||!r?.isHiddenFor?.includes("desktop")&&!o||!r?.isHiddenFor?.includes("mobile")&&o).sort(Js)};var S3=(t,e)=>{Mc(t,e)},C3=A('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),T3=A('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),k3=A("<div><!> <!></div>"),E3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
303
303
  /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
304
304
  .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
305
305
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
306
- .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function wd(t,e){D(e,!0),U(t,E3);let[i,o]=Re(),r=()=>y(ze,"$settingsMenuVisible",i),s=()=>y(et,"$settingsMenuOpenedByKeyboard",i),a=()=>y(Ze,"$debugPanelVisible",i),l=()=>y(ee,"$isMobile",i),d=()=>y(Tt,"$playerSize",i),u=()=>y(G,"$hasMpegSources$",i),m=()=>y(Ne,"$mobileNotReportControlHidden$",i),g=()=>y(re,"$autoQualityLimitingAvailable$",i),c=()=>y(ne,"$availableSubtitlesList$",i),$=()=>y(je,"$isLiveWithPlaybackSpeed",i),w=()=>y(Ae,"$availableAudioStreams$",i),x=()=>y(Fe,"$availablePlaybackRates$",i),S=()=>y(Le,"$currentAudioStream$",i),C=()=>y(de,"$currentPlaybackRate$",i),A=()=>y(dt,"$trafficSavingEnabled",i),M=()=>y(he,"$currentQuality$",i),I=()=>y(R,"$isAutoQualityEnabled$",i),k=()=>y(ae,"$currentSubtitle$",i),V=()=>y(Nt,"$additionalSettingsMenuItems$",i),q=()=>y(Ye,"$isAutoQualityAvailable$",i),z=()=>y(Ve,"$availableQualities$",i),ie=()=>y(at,"$highQualityEnabled",i),oe=f(e,"ref",15,void 0),me=f(e,"playerControlsHeight",3,0),Q=Kt({}),fe=Kt({}),J=we(),Pe=Rt(),Le=J.state.audioStream$,Ae=J.state.availableAudioStreams$,he=J.state.currentQuality$,Ve=J.state.availableQualities$,re=J.state.autoQualityLimitingAvailable$,R=J.state.isAutoQualityEnabled$,Ye=J.state.isAutoQualityAvailable$,de=J.state.currentPlaybackRate$,Fe=J.state.availablePlaybackRates$,ae=J.state.currentSubtitle$,ne=J.state.availableSubtitlesList$,Ie=J.state.canDownload,G=J.state.hasMpegSources$,ze=J.ui.settingsMenu.visible$,et=J.ui.settingsMenu.openedByBtnKeyboard$,ce=J.ui.settingsMenu.ref$,ee=J.ui.isMobile,Ne=J.ui.mobileNotReportControlHidden$,je=J.state.canChangePlaybackSpeed$,dt=J.state.trafficSavingEnabled$,at=J.state.highQualityEnabled$,Tt=J.ui.playerSize,Ze=J.ui.debugPanelVisible,lt=J.state.isInteractiveTime$,Nt=J.ui.additionalSettingsMenuItems$,Ut=J.ui.t,qe=J.actions.internal.downloadVideo,vt=J.actions.internal.closeSettingsMenu,ke=J.actions.internal.openSettingsSubMenu,St=J.actions.internal.closeSettingsSubMenu,ve=K(!1),Y=K(void 0),se=Xh();Oe(()=>{!r()&&se.current&&(St(fe[se.current]),se.popAllSubMenus())}),Oe(()=>{r()||N(Y,void 0)}),Oe(()=>{!se.current&&n(Y)&&mh(Q,n(Y))}),Oe(()=>{oe()&&ce.set(oe())});async function De(wt){se.pushSubMenu(wt),await io(),ke(wt,fe[wt]);let Vt=oe()?.firstElementChild;Vt&&Fp(Vt)}function Se(wt){wt?.stopPropagation(),s()||e.returnFocus?.(),vt(),N(ve,!1)}function xe(wt,Vt){J.actions.internal.setQuality(wt,{appliesTo:Vt}),Se()}function Je(wt){J.actions.internal.setAudioStream(wt),Se()}function ht(wt,Vt){J.actions.internal.setTrafficSavingEnabled(wt,Vt),Pe.features.qualityDetailsSubMenuEnabled&&Se()}function Mt(wt,Vt){J.actions.internal.setHighQualityEnabled(wt,Vt),Se()}function Ge(wt){J.actions.internal.setPlaybackRate(wt),Se()}function He(wt){J.actions.internal.setSubtitle(wt),Se()}function Yt(){qe()}function Ai(){w3(e.supportLink)&&window.open(e.supportLink,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()}function Qi(){Fa(J.actions.internal.getDebugTextData())}let Lo=()=>{let wt=J.actions.internal.getTraceTextData(),Vt=new Blob([...wt],{type:"application/json"}),yo=window.URL.createObjectURL(Vt);Gs(yo,"vk_player_trace_info","json")};function Wo(){Ze.set(!a())}function pn(){N(ve,!0)}function qo(){N(ve,!1)}function Ro(){return l()?`max-height: ${Math.round(d().height*.6)}px`:`max-height: ${d().height-32-me()}px; overflow: auto;`}let Gi=h(()=>Ie&&u()&&!m()),zt=h(()=>Pe.features.trafficSaving&&!m()&&g()&&!Pe.features.qualityDetailsSubMenuEnabled),Ko=h(()=>c().length>0&&!m()),ro=h(()=>!!$()&&!m()),so=h(()=>Pe.features.audioLanguages&&w().length>=2&&!m()),$o=h(()=>!m());Et(()=>lt.subscribe(wt=>{wt&&!l()&&!n(ve)&&!s()&&Se()}));let j=h(()=>{let wt=[n($o)&&"QUALITY_SETTINGS",n(so)&&"AUDIO_LANGUAGES",n(ro)&&"PLAYBACK_RATE",n(Ko)&&"SUBTITLES",n(zt)&&"TRAFFIC_SAVING_SWITCH",n(Gi)&&"DOWNLOAD",Pe.showSupport&&"SHOW_SUPPORT","COPY_DATA",Pe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Vt=>!!Vt);return a1({items:wt,context:{qualityDetailsSubMenuEnabled:Pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:C(),selectPlaybackRate:Ge,trafficSavingEnabled:A(),toggleTrafficSaving:ht,currentQuality:M()||l1.INVARIANT,isAutoQualityEnabled:I()||!1,currentSubtitle:k(),isMobile:l(),onDownloadClick:Yt,onCopyDataClick:Qi,onReportProblemClick:Ai,onSaveTraceDataClick:Lo,toggleShowDebugInfo:Wo},additionalSettingsMenuItems:V()})}),Qt=h(()=>s1({subMenuId:se.current,context:{availablePlaybackRates:x(),selectPlaybackRate:Ge,trafficSavingEnabled:A(),toggleTrafficSaving:ht,currentQuality:M()||l1.INVARIANT,isAutoQualityEnabled:I()||!1,isAutoQualityAvailable:q()||!1,availableQualities:z(),highQualityEnabled:ie(),toggleHighQuality:Mt,availableAudioStreams:w(),availableSubtitlesList:c(),closeSettingsMenu:vt,currentAudioStream:S(),isMobile:l(),selectAudioLanguage:Je,selectQuality:xe,selectSubtitle:He}}));var ei=k3();let Oi;var ii=_(ei);{var Gt=wt=>{var Vt=T3();let yo;Vt.__keydown=[S3,vt];var yi=_(Vt);{var fn=ui=>{var mt=C3();let pi;var xo=_(mt),Qo=_(xo,!0);v(xo);var Xt=E(xo,2);Xt.__click=Se,v(mt),B((fi,wo)=>{pi=Z(mt,1,"item header svelte-17or3al",null,pi,fi),ue(Qo,wo)},[()=>({mobile:l()}),()=>Ut("submenu_settings")]),b(ui,mt)};L(yi,ui=>{l()&&ui(fn)})}var di=E(yi,2);let ji;ai(di,21,()=>n(j),ui=>ui.id,(ui,mt)=>{var pi=Be(),xo=le(pi);{var Qo=fi=>{cm(fi,{get isMobile(){return l()},get id(){return n(mt).id},get icon(){return n(mt).icon},get label(){return n(mt).label},get ariaLabel(){return n(mt).ariaLabel},get value(){return n(mt).value},get valueComponent(){return n(mt).valueComponent},onClick:()=>{De(n(mt).children),N(Y,n(mt).id,!0)},get ref(){return Q[n(mt).id]},set ref(wo){Q[n(mt).id]=wo}})},Xt=(fi,wo)=>{{var mn=Yi=>{um(Yi,{get isMobile(){return l()},get id(){return n(mt).id},get onClick(){return n(mt).onClick},get icon(){return n(mt).icon},get label(){return n(mt).label},get ariaLabel(){return n(mt).ariaLabel},closeSettings:Se})},ao=(Yi,vn)=>{{var Zi=Di=>{fm(Di,{get isMobile(){return l()},get id(){return n(mt).id},get onClick(){return n(mt).onClick},get icon(){return n(mt).icon},get label(){return n(mt).label},get ariaLabel(){return n(mt).ariaLabel},get enabled(){return n(mt).enabled},get tooltipText(){return n(mt).tooltipText},get maxTooltipWidth(){return n(mt).maxTooltipWidth}})};L(Yi,Di=>{n(mt).type==="SWITCH"&&Di(Zi)},vn)}};L(fi,Yi=>{n(mt).type==="CLICK"?Yi(mn):Yi(ao,!1)},wo)}};L(xo,fi=>{n(mt).type==="OPEN_SUB_MENU"?fi(Qo):fi(Xt,!1)})}b(ui,pi)}),v(di),Xe(di,ui=>oe(ui),()=>oe()),v(Vt),B((ui,mt,pi)=>{yo=Z(Vt,1,"settings-menu menu svelte-17or3al",null,yo,ui),ji=Z(di,1,"items",null,ji,mt),it(di,pi)},[()=>({desktop:!l(),mobile:l(),hidden:!!se.current}),()=>({mobile:l()}),Ro]),gt("mouseenter",Vt,pn),gt("mouseleave",Vt,qo),b(wt,Vt)};L(ii,wt=>{r()&&wt(Gt)})}var xt=E(ii,2);ai(xt,17,()=>n(Qt),wt=>wt.id,(wt,Vt)=>{let yo=h(()=>n(Vt).minWidth??137);dm(wt,{get isMobile(){return l()},get playerControlsHeight(){return me()},get returnFromSubMenu(){return se.popSubMenu},get id(){return n(Vt).id},get title(){return n(Vt).title},get closeSettingsMenu(){return vt},openSubMenuList:De,get items(){return n(Vt).items},get minWidth(){return n(yo)},get refMenuItems(){return Q},get listRef(){return fe[n(Vt).id]},set listRef(yi){fe[n(Vt).id]=yi}})}),v(ei),B(wt=>Oi=Z(ei,1,"settings-menu-container svelte-17or3al",null,Oi,wt),[()=>({mobile:l(),hidden:!r()})]),b(t,ei),H(),o()}st(["keydown","click"]);var I3=t=>t;function d1(t,{delay:e=0,duration:i=400,easing:o=I3}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var A3=P('<button class="button svelte-1sbbskl"> </button>'),P3={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 Tm(t,e){U(t,P3);var i=A3();i.__click=function(...r){e.onClick?.apply(this,r)};var o=_(i,!0);v(i),B(()=>ue(o,e.label)),b(t,i)}st(["click"]);var M3=P('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),L3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
306
+ .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function wd(t,e){D(e,!0),U(t,E3);let[i,o]=Le(),r=()=>y(Ue,"$settingsMenuVisible",i),s=()=>y(tt,"$settingsMenuOpenedByKeyboard",i),a=()=>y(je,"$debugPanelVisible",i),l=()=>y(ee,"$isMobile",i),d=()=>y(Mt,"$playerSize",i),u=()=>y(j,"$hasMpegSources$",i),m=()=>y(Be,"$mobileNotReportControlHidden$",i),g=()=>y(re,"$autoQualityLimitingAvailable$",i),c=()=>y(ne,"$availableSubtitlesList$",i),$=()=>y(Xe,"$isLiveWithPlaybackSpeed",i),w=()=>y(Ie,"$availableAudioStreams$",i),x=()=>y(Fe,"$availablePlaybackRates$",i),S=()=>y(Me,"$currentAudioStream$",i),C=()=>y(ue,"$currentPlaybackRate$",i),P=()=>y(dt,"$trafficSavingEnabled",i),M=()=>y(_e,"$currentQuality$",i),I=()=>y(R,"$isAutoQualityEnabled$",i),k=()=>y(le,"$currentSubtitle$",i),V=()=>y(Bt,"$additionalSettingsMenuItems$",i),q=()=>y(Ze,"$isAutoQualityAvailable$",i),z=()=>y(Re,"$availableQualities$",i),ie=()=>y(at,"$highQualityEnabled",i),oe=f(e,"ref",15,void 0),ve=f(e,"playerControlsHeight",3,0),Q=Qt({}),me=Qt({}),J=xe(),Pe=Lt(),Me=J.state.audioStream$,Ie=J.state.availableAudioStreams$,_e=J.state.currentQuality$,Re=J.state.availableQualities$,re=J.state.autoQualityLimitingAvailable$,R=J.state.isAutoQualityEnabled$,Ze=J.state.isAutoQualityAvailable$,ue=J.state.currentPlaybackRate$,Fe=J.state.availablePlaybackRates$,le=J.state.currentSubtitle$,ne=J.state.availableSubtitlesList$,Ee=J.state.canDownload,j=J.state.hasMpegSources$,Ue=J.ui.settingsMenu.visible$,tt=J.ui.settingsMenu.openedByBtnKeyboard$,de=J.ui.settingsMenu.ref$,ee=J.ui.isMobile,Be=J.ui.mobileNotReportControlHidden$,Xe=J.state.canChangePlaybackSpeed$,dt=J.state.trafficSavingEnabled$,at=J.state.highQualityEnabled$,Mt=J.ui.playerSize,je=J.ui.debugPanelVisible,lt=J.state.isInteractiveTime$,Bt=J.ui.additionalSettingsMenuItems$,zt=J.ui.t,Qe=J.actions.internal.downloadVideo,gt=J.actions.internal.closeSettingsMenu,Se=J.actions.internal.openSettingsSubMenu,Pt=J.actions.internal.closeSettingsSubMenu,ge=K(!1),Y=K(void 0),se=Xh();De(()=>{!r()&&se.current&&(Pt(me[se.current]),se.popAllSubMenus())}),De(()=>{r()||N(Y,void 0)}),De(()=>{!se.current&&n(Y)&&mh(Q,n(Y))}),De(()=>{oe()&&de.set(oe())});async function Ve(vt){se.pushSubMenu(vt),await Zi(),Se(vt,me[vt]);let Rt=oe()?.firstElementChild;Rt&&Fp(Rt)}function ke(vt){vt?.stopPropagation(),s()||e.returnFocus?.(),gt(),N(ge,!1)}function qe(vt,Rt){J.actions.internal.setQuality(vt,{appliesTo:Rt}),ke()}function it(vt){J.actions.internal.setAudioStream(vt),ke()}function Ne(vt,Rt){J.actions.internal.setTrafficSavingEnabled(vt,Rt),Pe.features.qualityDetailsSubMenuEnabled&&ke()}function ht(vt,Rt){J.actions.internal.setHighQualityEnabled(vt,Rt),ke()}function Ye(vt){J.actions.internal.setPlaybackRate(vt),ke()}function He(vt){J.actions.internal.setSubtitle(vt),ke()}function jt(){Qe()}function Ni(){w3(e.supportLink)&&window.open(e.supportLink,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()}function Bi(){Fa(J.actions.internal.getDebugTextData())}let ho=()=>{let vt=J.actions.internal.getTraceTextData(),Rt=new Blob([...vt],{type:"application/json"}),bo=window.URL.createObjectURL(Rt);Gs(bo,"vk_player_trace_info","json")};function Ko(){je.set(!a())}function cn(){N(ge,!0)}function Qo(){N(ge,!1)}function Vo(){return l()?`max-height: ${Math.round(d().height*.6)}px`:`max-height: ${d().height-32-ve()}px; overflow: auto;`}let Wi=h(()=>Ee&&u()&&!m()),Wt=h(()=>Pe.features.trafficSaving&&!m()&&g()&&!Pe.features.qualityDetailsSubMenuEnabled),Go=h(()=>c().length>0&&!m()),_o=h(()=>!!$()&&!m()),eo=h(()=>Pe.features.audioLanguages&&w().length>=2&&!m()),to=h(()=>!m());It(()=>lt.subscribe(vt=>{vt&&!l()&&!n(ge)&&!s()&&ke()}));let G=h(()=>{let vt=[n(to)&&"QUALITY_SETTINGS",n(eo)&&"AUDIO_LANGUAGES",n(_o)&&"PLAYBACK_RATE",n(Go)&&"SUBTITLES",n(Wt)&&"TRAFFIC_SAVING_SWITCH",n(Wi)&&"DOWNLOAD",Pe.showSupport&&"SHOW_SUPPORT","COPY_DATA",Pe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Rt=>!!Rt);return a1({items:vt,context:{qualityDetailsSubMenuEnabled:Pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:C(),selectPlaybackRate:Ye,trafficSavingEnabled:P(),toggleTrafficSaving:Ne,currentQuality:M()||l1.INVARIANT,isAutoQualityEnabled:I()||!1,currentSubtitle:k(),isMobile:l(),onDownloadClick:jt,onCopyDataClick:Bi,onReportProblemClick:Ni,onSaveTraceDataClick:ho,toggleShowDebugInfo:Ko},additionalSettingsMenuItems:V()})}),Gt=h(()=>s1({subMenuId:se.current,context:{availablePlaybackRates:x(),selectPlaybackRate:Ye,trafficSavingEnabled:P(),toggleTrafficSaving:Ne,currentQuality:M()||l1.INVARIANT,isAutoQualityEnabled:I()||!1,isAutoQualityAvailable:q()||!1,availableQualities:z(),highQualityEnabled:ie(),toggleHighQuality:ht,availableAudioStreams:w(),availableSubtitlesList:c(),closeSettingsMenu:gt,currentAudioStream:S(),isMobile:l(),selectAudioLanguage:it,selectQuality:qe,selectSubtitle:He}}));var Xt=k3();let Oi;var ti=_(Xt);{var Jt=vt=>{var Rt=T3();let bo;Rt.__keydown=[S3,gt];var Pi=_(Rt);{var Dn=si=>{var pt=C3();let vi;var yo=_(pt),un=_(yo,!0);v(yo);var Yt=E(yo,2);Yt.__click=ke,v(pt),B((ui,xo)=>{vi=Z(pt,1,"item header svelte-17or3al",null,vi,ui),pe(un,xo)},[()=>({mobile:l()}),()=>zt("submenu_settings")]),b(si,pt)};L(Pi,si=>{l()&&si(Dn)})}var mi=E(Pi,2);let $o;di(mi,21,()=>n(G),si=>si.id,(si,pt)=>{var vi=Oe(),yo=ce(vi);{var un=ui=>{cm(ui,{get isMobile(){return l()},get id(){return n(pt).id},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},get value(){return n(pt).value},get valueComponent(){return n(pt).valueComponent},onClick:()=>{Ve(n(pt).children),N(Y,n(pt).id,!0)},get ref(){return Q[n(pt).id]},set ref(xo){Q[n(pt).id]=xo}})},Yt=(ui,xo)=>{{var pn=io=>{um(io,{get isMobile(){return l()},get id(){return n(pt).id},get onClick(){return n(pt).onClick},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},closeSettings:ke})},wo=(io,jo)=>{{var No=qi=>{fm(qi,{get isMobile(){return l()},get id(){return n(pt).id},get onClick(){return n(pt).onClick},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},get enabled(){return n(pt).enabled},get tooltipText(){return n(pt).tooltipText},get maxTooltipWidth(){return n(pt).maxTooltipWidth}})};L(io,qi=>{n(pt).type==="SWITCH"&&qi(No)},jo)}};L(ui,io=>{n(pt).type==="CLICK"?io(pn):io(wo,!1)},xo)}};L(yo,ui=>{n(pt).type==="OPEN_SUB_MENU"?ui(un):ui(Yt,!1)})}b(si,vi)}),v(mi),Je(mi,si=>oe(si),()=>oe()),v(Rt),B((si,pt,vi)=>{bo=Z(Rt,1,"settings-menu menu svelte-17or3al",null,bo,si),$o=Z(mi,1,"items",null,$o,pt),ot(mi,vi)},[()=>({desktop:!l(),mobile:l(),hidden:!!se.current}),()=>({mobile:l()}),Vo]),bt("mouseenter",Rt,cn),bt("mouseleave",Rt,Qo),b(vt,Rt)};L(ti,vt=>{r()&&vt(Jt)})}var Tt=E(ti,2);di(Tt,17,()=>n(Gt),vt=>vt.id,(vt,Rt)=>{let bo=h(()=>n(Rt).minWidth??137);dm(vt,{get isMobile(){return l()},get playerControlsHeight(){return ve()},get returnFromSubMenu(){return se.popSubMenu},get id(){return n(Rt).id},get title(){return n(Rt).title},get closeSettingsMenu(){return gt},openSubMenuList:Ve,get items(){return n(Rt).items},get minWidth(){return n(bo)},get refMenuItems(){return Q},get listRef(){return me[n(Rt).id]},set listRef(Pi){me[n(Rt).id]=Pi}})}),v(Xt),B(vt=>Oi=Z(Xt,1,"settings-menu-container svelte-17or3al",null,Oi,vt),[()=>({mobile:l(),hidden:!r()})]),b(t,Xt),H(),o()}st(["keydown","click"]);var I3=t=>t;function d1(t,{delay:e=0,duration:i=400,easing:o=I3}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var P3=A('<button class="button svelte-1sbbskl"> </button>'),A3={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 Tm(t,e){U(t,A3);var i=P3();i.__click=function(...r){e.onClick?.apply(this,r)};var o=_(i,!0);v(i),B(()=>pe(o,e.label)),b(t,i)}st(["click"]);var M3=A('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),L3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
307
307
  /**
308
308
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
309
- */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Sd(t,e){D(e,!0),U(t,L3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Rt(),{ui:{t:r}}=we(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var a=M3(),l=_(a),d=_(l),u=_(d),m=_(u);xd(m,{get message(){return s}}),v(u);var g=E(u,2);{var c=w=>{let x=h(()=>r("slow_video_notification_button"));Tm(w,{get label(){return n(x)},get onClick(){return e.onSelectAutoQuality}})};L(g,w=>{o||w(c)})}v(d);var $=E(d,2);ea($,{get onClick(){return e.onClose}}),v(l),v(a),up(3,l,()=>d1,()=>({duration:i})),b(t,a),H()}import{isIntersecting as c1,Subscription as R3}from"@vkontakte/videoplayer-shared/evergreen";var ma="annotation",ru=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:a}=i;e.setAttribute("slot",ma),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),a&&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 r=this.slots.get(e);if(!r)return;let s=await this.findSlotElement(r.rootElement,i,e),{controls:a,hiddenControls:l}=this.store?.ui||{},d=new MutationObserver(m=>m.forEach(()=>{let g=as(s,this.shadowRootContainer);o.forEach(c=>{let $=a?.[c],w=$?ge($):null,x=l?.[c];w&&x?.set(c1(w,g))})}));d.observe(s,{childList:!0,subtree:!0}),r.observer=d;let u=new R3;o.forEach(m=>{a&&u.add(a[m].subscribe(g=>{let c=l?.[m];g&&g.isDisplayed?c?.set(c1(g,as(s,this.shadowRootContainer))):c?.set(!1)}))}),r.subs=u}async findSlotElement(e,i,o){return new Promise(r=>{let s=null,a=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){a.disconnect();let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=void 0),r(s)}});a.observe(e,{childList:!0,subtree:!0});let l=this.slots.get(o);l&&(l.observerForFindingSlotElement=a)})}remove(e){let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:s,subs:a,options:{controlsBehaviour:l,hideAllControls:d}}=i;o&&o.remove(),[r,s].forEach(u=>u?.disconnect()),a?.unsubscribe(),this.slots.delete(e),d&&this.store?.ui.isControlsAvailable.set(!0),l?.controlsToObserve?.forEach(u=>{this.store?.ui.hiddenControls[u]?.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var V3=P('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),N3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
309
+ */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Sd(t,e){D(e,!0),U(t,L3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Lt(),{ui:{t:r}}=xe(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var a=M3(),l=_(a),d=_(l),u=_(d),m=_(u);xd(m,{get message(){return s}}),v(u);var g=E(u,2);{var c=w=>{let x=h(()=>r("slow_video_notification_button"));Tm(w,{get label(){return n(x)},get onClick(){return e.onSelectAutoQuality}})};L(g,w=>{o||w(c)})}v(d);var $=E(d,2);ea($,{get onClick(){return e.onClose}}),v(l),v(a),up(3,l,()=>d1,()=>({duration:i})),b(t,a),H()}import{isIntersecting as c1,Subscription as R3}from"@vkontakte/videoplayer-shared/evergreen";var ma="annotation",ru=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:a}=i;e.setAttribute("slot",ma),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),a&&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 r=this.slots.get(e);if(!r)return;let s=await this.findSlotElement(r.rootElement,i,e),{controls:a,hiddenControls:l}=this.store?.ui||{},d=new MutationObserver(m=>m.forEach(()=>{let g=as(s,this.shadowRootContainer);o.forEach(c=>{let $=a?.[c],w=$?he($):null,x=l?.[c];w&&x?.set(c1(w,g))})}));d.observe(s,{childList:!0,subtree:!0}),r.observer=d;let u=new R3;o.forEach(m=>{a&&u.add(a[m].subscribe(g=>{let c=l?.[m];g&&g.isDisplayed?c?.set(c1(g,as(s,this.shadowRootContainer))):c?.set(!1)}))}),r.subs=u}async findSlotElement(e,i,o){return new Promise(r=>{let s=null,a=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){a.disconnect();let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=void 0),r(s)}});a.observe(e,{childList:!0,subtree:!0});let l=this.slots.get(o);l&&(l.observerForFindingSlotElement=a)})}remove(e){let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:s,subs:a,options:{controlsBehaviour:l,hideAllControls:d}}=i;o&&o.remove(),[r,s].forEach(u=>u?.disconnect()),a?.unsubscribe(),this.slots.delete(e),d&&this.store?.ui.isControlsAvailable.set(!0),l?.controlsToObserve?.forEach(u=>{this.store?.ui.hiddenControls[u]?.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var V3=A('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),N3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
310
310
 
311
311
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
312
312
 
@@ -337,8 +337,8 @@ Try switching the\xA0quality to\xA0Auto.`},Xg=U0;var rs=new Map;rs.set(eh.EN,Xg)
337
337
  opacity: 0;
338
338
  scale: 0;
339
339
  }
340
- }`};function km(t,e){D(e,!0),U(t,N3);let[i,o]=Re(),r=()=>y(a,"$isPlaying$",i),s=()=>y(l,"$aboutToGoNextVideo",i),{state:{isPlaying$:a},ui:{aboutToGoNextVideo:l},actions:d}=we(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:m,playbackStatusNextVideoAnimationDuration:g}}=Rt(),c=0,$=K(null),w=K(!1);Oe(()=>{N($,r()?Sr:cs,!0)}),Oe(()=>{N($,s()?Es:null,!0)}),Oe(()=>{if(u)return c=window.setTimeout(()=>{c=0,s()&&n($)===Es&&(s()==="next"?d.internal.nextVideoClick(!1):d.internal.prevVideoClick(!1)),N($,null)},n($)!==Es?m:g),()=>{c&&(window.clearTimeout(c),c=0)}}),Oe(()=>{r()&&!n(w)&&(N(w,!0),N($,null))});var x=Be(),S=le(x);{var C=A=>{var M=Be(),I=le(M);Ws(I,()=>n($),k=>{var V=V3(),q=_(V),z=_(q);let ie=h(()=>s()==="prev");li(z,()=>n($),(oe,me)=>{me(oe,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return n(ie)}})}),v(q),v(V),B(()=>it(q,`animation-duration: ${n($)!==Es?m:g}ms`)),b(k,V)}),b(A,M)};L(S,A=>{n($)&&u&&A(C)})}b(t,x),H(),o()}var B3=P('<div><div data-testid="video-container"></div></div>'),O3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
- .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function va(t,e){D(e,!0),U(t,O3);let[i,o]=Re(),r=()=>y(m,"$rotateAlpha",i),s=()=>y(g,"$playerSize",i),a=()=>y(u,"$playerPhase",i),l=()=>y(c,"$isPlaying$",i),d=f(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:m,playerSize:g},state:{isPlaying$:c}}=we(),{isSmoothVideoRotate:$}=Rt(),w=h(()=>d()&&r()%180?s().height/s().width:1);var x=B3();let S;x.__contextmenu=function(...M){e.onContextMenu?.apply(this,M)},x.__mousedown=function(...M){e.onMouseDown?.apply(this,M)},x.__mouseup=function(...M){e.onMouseUp?.apply(this,M)},x.__click=function(...M){e.onClick?.apply(this,M)},x.__dblclick=function(...M){e.onDblClick?.apply(this,M)};var C=_(x);let A;Xe(C,M=>d(M),()=>d()),v(x),B((M,I)=>{S=Z(x,1,"video-wrapper svelte-1czns9r",null,S,M),A=Z(C,1,"video-container svelte-1czns9r",null,A,I),it(C,`transform: rotate(${r()}deg) scale(${n(w)})`),Me(C,"data-is-playing",l())},[()=>({hidden:a()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,x),H(),o()}st(["contextmenu","mousedown","mouseup","click","dblclick"]);var D3=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},H3=P("<div><!></div>"),F3=P('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),U3=P("<div><!></div>"),z3=P('<div class="settings-menu svelte-jtgjmv"><!></div>'),W3=P("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),q3=P("<!> <!> <!>",1),K3=P('<div class="blocked svelte-jtgjmv"></div>'),Q3=P('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),G3={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 Em(t,e){D(e,!0),U(t,G3);let[i,o]=Re(),r=()=>y(Dn,"$notificationsToShow$",i),s=()=>y(pn,"$playerPhase",i),a=()=>y(Qt,"$isLoaderVisible",i),l=()=>y(Qi,"$adPlaybackState",i),d=()=>y(Vt,"$crashed",i),u=()=>y(xo,"$isInteractiveTime$",i),m=()=>y(zt,"$settingsMenuVisible",i),g=()=>y(Qo,"$isInteractiveExpectation$",i),c=()=>y(Gi,"$controlsVisible",i),$=()=>y(fi,"$touched",i),w=()=>y(nr,"$graphIsOpened$",i),x=()=>y(qo,"$isFullscreen",i),S=()=>y(or,"$autoplayNextEnabled$",i),C=()=>y(Gt,"$postrollPassed",i),A=()=>y(ei,"$isEnded$",i),M=()=>y(co,"$cursorInside",i),I=()=>y(Bn,"$isControlsAvailable",i),k=()=>y(gn,"$fakeIsPlaying$",i),V=()=>y(vi,"$bottomNoSmooth",i),q=()=>y(Yi,"$interactiveTimeIndicator",i),z=()=>y(ji,"$playerSize",i),ie=()=>y(ui,"$is3DVideo",i),oe=()=>y($o,"$contextMenuVisible$",i),me=()=>y(Ai,"$playbackState$",i),Q=()=>y(wo,"$hotKeyMapData",i),fe=()=>y(ro,"$scrubbingInProgress",i),J=()=>y(so,"$volumeChangingInProgress",i),Pe=()=>y(Oi,"$chromecastConnected$",i),Le=()=>y(Pi,"$controlsTimeoutActive",i),Ae=()=>y(Ko,"$settingsMenuOpenedByKeyboard",i),he=()=>y(fo,"$contextMenuOpenedByKeyboard$",i),Ve=()=>y(pr,"$contextMenuOpenedByHotKey$",i),re=()=>y(ur,"$contextMenuButtonRef$",i),R=()=>y(Mr,"$contextMenuLastActiveElem$",i),Ye=()=>y(Ro,"$isFullscreenOpenedByKeyboard",i),de=()=>y(Yt,"$language$",i),Fe=()=>y(mt,"$icon3DVideoVisible",i),ae=()=>y(ii,"$chromecastDeviceName$",i),ne=()=>y(fn,"$currentSubtitle$",i),Ie=()=>y(di,"$currentSubtitleCaptions$",i),G=()=>y(Lo,"$position$",i),ze=()=>y(Wo,"$duration$",i),et=()=>y(xt,"$isLive$",i),ce=()=>y(wt,"$isPlaying$",i),ee=()=>y(Zi,"$contextMenuPosition$",i),Ne=()=>y(mn,"$showHotKeyMap",i),je=()=>y(j,"$debugPanelVisible",i),dt=()=>y(Nn,"$userActionsDisabled$",i),at=f(e,"videoContainer",15),Tt=f(e,"adsSlotId",3,void 0),Ze=f(e,"adsParams",3,void 0),lt=f(e,"adsPreviewParam",3,void 0),Nt=f(e,"adsAutoplayParam",3,void 0),Ut=f(e,"duration",3,void 0),qe=f(e,"logoTargetUrl",3,""),vt=f(e,"showNextPrevButtons",3,!1),ke=f(e,"nextButtonActive",3,!1),St=f(e,"prevButtonActive",3,!1),ve=f(e,"endScreenVideoTitle",3,void 0),Y=f(e,"endScreenVideoThumb",3,void 0),se=f(e,"isOneVideoPlaylist",3,!1),De=f(e,"shadowRootContainer",3,void 0),Se=f(e,"outerContainerRef",3,void 0),xe=f(e,"playerStarted",3,!1),Je=f(e,"fullScreenTarget",3,void 0),ht=f(e,"showMiniTimer",3,!1),Mt=f(e,"showEndScreen",3,!0),Ge=f(e,"keyboardControls",15),He=e.store.getLogger().createComponentLog("Root component"),Yt=e.store.interfaceLanguage$,Ai=e.store.state.playbackState$,Qi=e.store.ads.playbackState,Lo=e.store.state.positionWithScrubbing$,Wo=e.store.state.duration$,pn=e.store.playerPhase,qo=e.store.ui.isFullscreen,Ro=e.store.ui.isFullscreenOpenedByKeyboard,Gi=e.store.ui.controlsVisible,zt=e.store.ui.settingsMenu.visible$,Ko=e.store.ui.settingsMenu.openedByBtnKeyboard$,ro=e.store.ui.scrubbingInProgress,so=e.store.ui.volumeChangingInProgress,$o=e.store.ui.contextMenu.visible$,j=e.store.ui.debugPanelVisible,Qt=e.store.state.isLoaderVisible,ei=e.store.state.isEnded$,Oi=e.store.state.chromecastConnected$,ii=e.store.state.chromecastDeviceName$,Gt=e.store.ads.postrollPassed,xt=e.store.state.isLive$,wt=e.store.state.isPlaying$,Vt=e.store.state.crashed$,yo=e.store.webApi.annotationsApi,yi=e.store.webApi.pictureInPictureApi,fn=e.store.state.currentSubtitle$,di=e.store.state.currentSubtitleCaptions$,ji=e.store.ui.playerSize,ui=e.store.ui.is3DVideo,mt=e.store.ui.icon3DVideoVisible,pi=e.store.state.isInteractive,xo=e.store.state.isInteractiveTime$,Qo=e.store.state.isInteractiveExpectation$,Xt=e.store.state.hasInteractiveBranches,fi=e.store.ui.touched,wo=e.store.ui.modals.hotKeyMap.data,mn=e.store.ui.modals.hotKeyMap.show,ao=e.store.ui.overlayContainer$,Yi=e.store.ui.controls.interactiveTimeIndicator,vn=e.store.state.showInteractiveTimeIndicator,Zi=e.store.ui.contextMenu.position$,Di=e.store.actions.internal.setQuality,Go=e.store.actions.internal.closeSettingsMenu,or=e.store.ui.autoplayNextEnabled$,Nn=e.store.ui.userActionsDisabled,Bn=e.store.ui.isControlsAvailable,On=e.store.ui.videoTitleInfo,Tr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:gn,notifications$:Gr,graphIsOpened$:nr}=Ki(),mi=K(void 0),jo=K(void 0),lo=K(void 0),Vo=K(void 0),No,hn,Yo;wo.set(ah());let{closeNotification:jr,notificationsToShow$:Dn}=Gr,Hn=h(()=>!!r().slow_video),xi=()=>jr("slow_video"),Hi=h(()=>(s()==="video"&&a()||s()==="ads"&&l()==="inactive")&&!d()),ot=K(void 0),vi=te(!1),rr,Pi=te(!1),_n=te(),co=te(!1),bn=K(!1),uo=K(!1),Bo=K(!1),So=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Zo=h(()=>u()&&!m()&&!(n(bn)||n(uo))&&!(n(Bo)&&!g())),Fn=!0,sr=h(()=>e.uiConfig.features.thumbTimer&&ht()&&s()==="video"&&!c()&&!d()&&!pi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),$n=h(()=>s()==="video"&&!w()&&x()),kr=K(!1),Xo=h(()=>(Mt()||e.showAutoplayNext&&S())&&!!ve()&&!!Y()&&(e.showAds&&C()||!e.showAds)&&A()&&!d()&&!n(kr)),Er=h(()=>M()&&!(c()||n(Xo))&&!u()&&I()),Un=K(!1),ar=h(()=>k()!==null),{toggle:Oo}=gn,It=!1,Fi=null;yi?.setContext(cl());let zn=()=>{e.autoplay&&!pi&&e.uiConfig.controls.showOnStartupAtAutoplay&&nt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:zn});let Wn=()=>{window.clearTimeout(No),Pi.set(!1)},Ir=()=>{window.clearTimeout(hn),_n.set(null)},nt=_e=>{Wn(),Pi.set(!0),No=window.setTimeout(()=>Pi.set(!1),_e);let At=_e-100;rr=window.setTimeout(()=>{V()&&vi.set(!1)},At>0?At:_e)},jt=(_e,At)=>{Ir(),_n.set(At),hn=window.setTimeout(()=>_n.set(null),_e)},qn=ui.subscribe(_e=>{mt.set(_e),_e&&(window.clearTimeout(Yo),Yo=window.setTimeout(()=>mt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Kn=async()=>{let _e=ys();if(_e){let At=Bl(),Ri=dr();_e=At===Ri||At===De()}if(_e){nt(e.uiConfig.controls.hideTimeoutFullscreen);try{await yi?.remove()}catch(At){He({message:String(At)})}}qo.set(_e),e.store.getAdmanWrapper().setFullscreen(_e),x()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},Qn=_e=>{let{width:At,height:Ri}=_e.target;ji.set({width:At,height:Ri})},lr=()=>{let{width:_e,height:At}=n(mi).getBoundingClientRect();ji.set({width:_e,height:At})};Et(()=>(Ac(Kn),e.uiConfig.features.annotationsInside&&yo?.init(n(mi)),Zs(yi)&&(yi?.assignPlayerContainer(n(mi)),yi?.registryExternalEventHandlers({resize:Qn,leavepictureinpicture:lr})),e.interactiveContainer&&at().parentElement?.insertBefore(e.interactiveContainer,at().nextSibling),()=>{window.clearTimeout(No),window.clearTimeout(rr),window.clearTimeout(hn),window.clearTimeout(Yo),qn(),yi?.dispose().catch(At=>{He({message:String(At)})}),Pc(Kn)}));let dr=()=>{let _e=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Se()?n(mi):Se(),At=_e.getRootNode(),Ri=At instanceof ShadowRoot?At.host:At,ri=Je()instanceof HTMLElement&&Je().contains(Ri);return e.uiConfig.allowChangingFullscreenTarget&&Je()&&ri?Je():_e},cr=async()=>{ys()?(await Ic(document),He({message:"exit fullscreen"})):(He({message:"request fullscreen"}),await Ec(dr()))},Co=()=>{Go(),$o.set(!1)},Ar=_e=>{w()||(_e.preventDefault(),$o.set(!0),Zi.set({left:_e.clientX,top:_e.clientY}))};function Pr(){co.set(!0),pi||nt(e.uiConfig.controls.hideTimeoutCursor)}function Yr(){pi||(vi.set(!0),nt(e.uiConfig.controls.hideTimeoutCursor))}function rt(){co.set(!1),N(uo,!1),N(bn,!1),It=!1,e.store.actions.internal.releaseCamera(),nt(e.uiConfig.controls.hideTimeout)}function kt(_e){return _e?_e.offsetTop+kt(_e.offsetParent):0}function Wt(_e){return _e?_e.offsetLeft+Wt(_e.offsetParent):0}function Mi(_e){if(q()&&vn){let At=_e.currentTarget,Ri=kt(At),ri=Wt(At),Ke=_e.pageX-ri,Lt=_e.pageY-Ri,{left:Zt,bottom:Ji,right:Ti}=q(),jn=Ti-Zt;return Ke>=Zt-jn&&Lt<=Ji+jn}}function wi(_e){if(n(mi)){let At=kt(_e.currentTarget),Ri=z().height,ri=_e.pageY-At;if(Mi(_e)){N(uo,!1);return}ri<40?N(uo,!0):ri>Ri-40?N(bn,!0):(N(uo,!1),m()||N(bn,!1))}}function Xi(_e){wi(_e),n(Zo)||nt(e.uiConfig.controls.hideTimeoutCursor),ie()&&It&&Fi&&e.store.actions.internal.moveCameraFocusPX(Fi.clientX-_e.clientX,Fi.clientY-_e.clientY,_e.timeStamp-Fi.timeStamp),Fi=_e}let po=_e=>{_e.preventDefault(),_e.button===0&&(It=!0,e.store.actions.internal.holdCamera()),nt(e.uiConfig.controls.hideTimeoutCursor)},Jo=_e=>{_e.preventDefault(),_e.button===0&&(Fi=_e,It=!1,e.store.actions.internal.releaseCamera()),nt(e.uiConfig.controls.hideTimeoutCursor)},Ui=_e=>{_e.preventDefault(),Fn&&(He({message:"double click on video"}),cr(),nt(e.uiConfig.controls.hideTimeoutCursor))},gi=_e=>{if(_e.preventDefault(),oe()||m()){Co();return}if(!(A()&&!Xt)){if(n(ar))return Oo();if(Ge()?.focus(),!xe()){e.firstStart(),nt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||me()!==p1.PLAYING)&&e.store.actions.internal.togglePlay(),nt(e.uiConfig.controls.hideTimeoutCursor)}},Si=_e=>{Co(),fi.set(!0),nt(e.uiConfig.controls.hideTimeout),_e&&jt(e.uiConfig.controls.hideHotKeyHelpers,_e)},To=()=>{Co(),e.store.callbacks?.onOpenHotKeyMap?e.store.callbacks?.onOpenHotKeyMap(Q()):mn.update(_e=>!_e)},zi=()=>{fi.set(!0)},fo=e.store.ui.contextMenu.openedByBtnKeyboard$,ur=e.store.ui.contextMenu.btnRef$,yn=K(void 0),pr=e.store.ui.contextMenu.openedByHotKey$,Mr=e.store.ui.contextMenu.lastActiveElem$;Oe(()=>{ao.set(n(ot))}),Oe(()=>{N(Bo,n(So)&&me()!==p1.PLAYING,!0),n(So)||_t(()=>N(So,!0))}),Oe(()=>{Gi.set((n(Bo)||A()||m()||fe()||J()||Pe()||Le())&&!n(Zo)&&(s()==="video"||s()==="ads")&&!d()&&I())}),Oe(()=>{!fe()&&n(Un)&&!u()&&nt(e.uiConfig.controls.hideTimeoutCursor),_t(()=>N(Un,fe(),!0))}),Oe(()=>{n(Vo),m(),Ae(),_t(()=>zl(n(Vo),m(),Ae()))}),Oe(()=>{n(yn),oe(),he(),Ve(),_t(()=>{let _e=he()||Ve();zl(n(yn),oe(),_e)})}),Oe(()=>{let _e=re();_e&&(oe(),_t(()=>Ua(_e,oe(),fo)))}),Oe(()=>{let _e=R();_e&&(oe(),_t(()=>fh(_e,oe(),pr)))}),Oe(()=>{!Ye()&&x()&&(_t(()=>Ro.set(!1)),Ge()?.focus())}),Oe(()=>{w()&&Co()});let Lr=F("video360"),xn=K(void 0),wn=_e=>{On.set(wr(Tr(),{title:n(xn)},"title",_e))};var en=Q3();gt("blur",Os,Co);var Li=le(en);Li.__mousemove=Xi;var Sn=_(Li);let fr=h(()=>s()==="ads"),Gn=h(()=>n(ar)?Oo:void 0);Xe(Qp(Sn,{toggleFullscreen:cr,hideContextMenu:Co,showHotKeyHelpers:Si,showKeyMap:To,get isAds(){return n(fr)},get fakePlayButtonHandler(){return n(Gn)},get nextButtonActive(){return ke()},get prevButtonActive(){return St()},children:(_e,At)=>{var Ri=q3(),ri=le(Ri);va(ri,{get hideCursor(){return n(Er)},onClick:gi,onContextMenu:Ar,onMouseDown:po,onMouseUp:Jo,onDblClick:Ui,get videoContainer(){return at()},set videoContainer(Zt){at(Zt)}});var Ke=E(ri,2);qs(Ke,()=>"slot",!1,(Zt,Ji)=>{Ce(Zt,()=>({name:ma}))});var Lt=E(Ke,2);Ws(Lt,de,Zt=>{var Ji=W3(),Ti=le(Ji);let jn=h(()=>s()!=="thumb"||d()||pi&&e.autoplay);ua(Ti,{get hidden(){return n(jn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Yn=E(Ti,2);km(Yn,{});var Wi=E(Yn,2);{var eo=We=>{let qt=h(()=>e.live?.startTime);$d(We,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(qt)}})};L(Wi,We=>{s()==="LiveWaitingStart"&&We(eo)})}var si=E(Wi,2);{var tn=We=>{pa(We,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(si,We=>{s()==="LiveWaitingRecover"&&We(tn)})}var Zn=E(si,2);{var mr=We=>{pa(We,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(Zn,We=>{s()==="LiveWaitingRecord"&&We(mr)})}var qi=E(Zn,2);{var Ja=We=>{var qt=H3();let on;var fs=_(qt);Ol(fs,{get adsSlotId(){return Tt()},get adsParams(){return Ze()},get adsPreviewParam(){return lt()},get adsAutoplayParam(){return Nt()},get duration(){return Ut()}}),v(qt),B(Zr=>on=Z(qt,1,"ads-container svelte-jtgjmv",null,on,Zr),[()=>({hidden:s()!=="ads"})]),b(We,qt)};L(qi,We=>{e.showAds&&xe()&&We(Ja)})}var ga=E(qi,2);{var ft=We=>{let qt=h(()=>!Mt()&&e.showAutoplayNext&&S());Wp(We,{get title(){return ve()},get thumb(){return Y()},get isHide(){return n(qt)},clickCloseIcon:()=>N(kr,!0)})};L(ga,We=>{n(Xo)&&ve()&&Y()&&We(ft)})}var $t=E(ga,2);{var Cn=We=>{let qt=h(()=>!c());im(We,{get title(){return e.title},get isHidden(){return n(qt)},onVisibilityChanged:wn,get ref(){return n(xn)},set ref(on){N(xn,on,!0)}})};L($t,We=>{n($n)&&We(Cn)})}var Rr=E($t,2);{var As=We=>{let qt=h(()=>s()==="video"&&c());hd(We,{get isShifted(){return n(qt)}})};L(Rr,We=>{ie()&&We(As)})}var Vr=E(Rr,2);{var Nr=We=>{var qt=F3(),on=_(qt);Nl(on,{get"aria-label"(){return Lr}}),v(qt),b(We,qt)};L(Vr,We=>{Fe()&&We(Nr)})}var ps=E(Vr,2);{var el=We=>{_d(We,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ae()}})};L(ps,We=>{Pe()&&We(el)})}var Nd=E(ps,2);{var gu=We=>{ca(We,{get shifted(){return c()},get captions(){return Ie()},get position(){return G()},get playerSize(){return z()}})};L(Nd,We=>{ne().value!=="off"&&We(gu)})}var Bd=E(Nd,2);{var hu=We=>{var qt=U3();qt.__contextmenu=Ar,qt.__click=[D3,oe,$o,m,zt,Co];var on=_(qt);bd(on,{}),v(qt),b(We,qt)};L(Bd,We=>{d()&&We(hu)})}var Od=E(Bd,2);{var _u=We=>{let qt=h(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),on=h(()=>s()==="ads"),fs=h(()=>e.canRewindLive&&ze()!==0);gd(We,{get bottomHidden(){return n(qt)},get bottomNoSmooth(){return V()},get showControls(){return c()},get isAds(){return n(on)},get canRewindLive(){return n(fs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return qe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return vt()},get nextButtonActive(){return ke()},get prevButtonActive(){return St()},get isOneVideoPlaylist(){return se()},customFullscreenSupported:Fn,toggleFullscreen:cr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(jo)},set playerControlsWrapperRef(Zr){N(jo,Zr,!0)},get playerControlsRef(){return n(lo)},set playerControlsRef(Zr){N(lo,Zr,!0)}})};L(Od,We=>{xe()&&We(_u)})}var Dd=E(Od,2);{var ha=We=>{var qt=z3(),on=_(qt);let fs=h(()=>n(lo)?.clientHeight);wd(on,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(fs)},returnFocus:()=>Ge()?.focus(),get ref(){return n(Vo)},set ref(Zr){N(Vo,Zr,!0)}}),v(qt),b(We,qt)};L(Dd,We=>{!Pe()&&s()!=="ads"&&We(ha)})}var Hd=E(Dd,2);let Fd=h(()=>!n(sr));Fl(Hd,{get isLive(){return et()},get isHidden(){return n(Fd)},get isPlaying(){return ce()},get position(){return G()},get duration(){return ze()}});var tl=E(Hd,2);Xf(tl,{get data(){return _n}});var Ud=E(tl,2);zp(Ud,{get supportLink(){return e.supportLink},returnFocus:()=>Ge()?.focus(),get visible(){return oe()},get playerContainerRef(){return n(mi)},get controlsContainerRef(){return n(jo)},get position(){return ee()},get menuElementRef(){return n(yn)},set menuElementRef(We){N(yn,We,!0)}});var il=E(Ud,2);{var ol=We=>{Sd(We,{onClose:xi,onSelectAutoQuality:()=>{Di("auto"),xi()}})};L(il,We=>{n(Hn)&&We(ol)})}var nl=E(il,2);{var bu=We=>{ia(We,{})};L(nl,We=>{n(Hi)&&We(bu)})}var rl=E(nl,2);{var $u=We=>{Yp(We,{})};L(rl,We=>{Ne()&&We($u)})}var yu=E(rl,2);{var xu=We=>{Kl(We,{})};L(yu,We=>{je()&&We(xu)})}b(Zt,Ji)}),b(_e,Ri)},$$slots:{default:!0}}),_e=>Ge(_e),()=>Ge());var Ue=E(Sn,2);Xe(Ue,_e=>N(ot,_e),()=>n(ot)),v(Li),Xe(Li,_e=>N(mi,_e),()=>n(mi));var Ot=E(Li,2);{var Ci=_e=>{var At=K3();b(_e,At)};L(Ot,_e=>{dt()&&_e(Ci)})}gt("mouseenter",Li,Pr),gt("mouseleave",Li,rt),gt("click",Li,zi,!0),gt("focusin",Li,Yr,!0),b(t,en),H(),o()}st(["mousemove","contextmenu","click"]);import{clientChecker as Cd,PlaybackState as nx}from"@vkontakte/videoplayer-core/evergreen";import{noop as rx}from"@vkontakte/videoplayer-shared/evergreen";var j3=P('<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),Y3=P("<div><!></div>"),Z3={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
340
+ }`};function km(t,e){D(e,!0),U(t,N3);let[i,o]=Le(),r=()=>y(a,"$isPlaying$",i),s=()=>y(l,"$aboutToGoNextVideo",i),{state:{isPlaying$:a},ui:{aboutToGoNextVideo:l},actions:d}=xe(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:m,playbackStatusNextVideoAnimationDuration:g}}=Lt(),c=0,$=K(null),w=K(!1);De(()=>{N($,r()?Sr:cs,!0)}),De(()=>{N($,s()?Es:null,!0)}),De(()=>{if(u)return c=window.setTimeout(()=>{c=0,s()&&n($)===Es&&(s()==="next"?d.internal.nextVideoClick(!1):d.internal.prevVideoClick(!1)),N($,null)},n($)!==Es?m:g),()=>{c&&(window.clearTimeout(c),c=0)}}),De(()=>{r()&&!n(w)&&(N(w,!0),N($,null))});var x=Oe(),S=ce(x);{var C=P=>{var M=Oe(),I=ce(M);Ws(I,()=>n($),k=>{var V=V3(),q=_(V),z=_(q);let ie=h(()=>s()==="prev");ci(z,()=>n($),(oe,ve)=>{ve(oe,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return n(ie)}})}),v(q),v(V),B(()=>ot(q,`animation-duration: ${n($)!==Es?m:g}ms`)),b(k,V)}),b(P,M)};L(S,P=>{n($)&&u&&P(C)})}b(t,x),H(),o()}var B3=A('<div><div data-testid="video-container"></div></div>'),O3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
+ .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function va(t,e){D(e,!0),U(t,O3);let[i,o]=Le(),r=()=>y(m,"$rotateAlpha",i),s=()=>y(g,"$playerSize",i),a=()=>y(u,"$playerPhase",i),l=()=>y(c,"$isPlaying$",i),d=f(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:m,playerSize:g},state:{isPlaying$:c}}=xe(),{isSmoothVideoRotate:$}=Lt(),w=h(()=>d()&&r()%180?s().height/s().width:1);var x=B3();let S;x.__contextmenu=function(...M){e.onContextMenu?.apply(this,M)},x.__mousedown=function(...M){e.onMouseDown?.apply(this,M)},x.__mouseup=function(...M){e.onMouseUp?.apply(this,M)},x.__click=function(...M){e.onClick?.apply(this,M)},x.__dblclick=function(...M){e.onDblClick?.apply(this,M)};var C=_(x);let P;Je(C,M=>d(M),()=>d()),v(x),B((M,I)=>{S=Z(x,1,"video-wrapper svelte-1czns9r",null,S,M),P=Z(C,1,"video-container svelte-1czns9r",null,P,I),ot(C,`transform: rotate(${r()}deg) scale(${n(w)})`),Ae(C,"data-is-playing",l())},[()=>({hidden:a()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,x),H(),o()}st(["contextmenu","mousedown","mouseup","click","dblclick"]);var D3=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},H3=A("<div><!></div>"),F3=A('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),U3=A("<div><!></div>"),z3=A('<div class="settings-menu svelte-jtgjmv"><!></div>'),W3=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),q3=A("<!> <!> <!>",1),K3=A('<div class="blocked svelte-jtgjmv"></div>'),Q3=A('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),G3={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 Em(t,e){D(e,!0),U(t,G3);let[i,o]=Le(),r=()=>y(_n,"$notificationsToShow$",i),s=()=>y(cn,"$playerPhase",i),a=()=>y(Gt,"$isLoaderVisible",i),l=()=>y(Bi,"$adPlaybackState",i),d=()=>y(Rt,"$crashed",i),u=()=>y(yo,"$isInteractiveTime$",i),m=()=>y(Wt,"$settingsMenuVisible",i),g=()=>y(un,"$isInteractiveExpectation$",i),c=()=>y(Wi,"$controlsVisible",i),$=()=>y(ui,"$touched",i),w=()=>y(mn,"$graphIsOpened$",i),x=()=>y(Qo,"$isFullscreen",i),S=()=>y(Tr,"$autoplayNextEnabled$",i),C=()=>y(Jt,"$postrollPassed",i),P=()=>y(Xt,"$isEnded$",i),M=()=>y(hi,"$cursorInside",i),I=()=>y(Hn,"$isControlsAvailable",i),k=()=>y(fn,"$fakeIsPlaying$",i),V=()=>y(ai,"$bottomNoSmooth",i),q=()=>y(io,"$interactiveTimeIndicator",i),z=()=>y($o,"$playerSize",i),ie=()=>y(si,"$is3DVideo",i),oe=()=>y(to,"$contextMenuVisible$",i),ve=()=>y(Ni,"$playbackState$",i),Q=()=>y(xo,"$hotKeyMapData",i),me=()=>y(_o,"$scrubbingInProgress",i),J=()=>y(eo,"$volumeChangingInProgress",i),Pe=()=>y(Oi,"$chromecastConnected$",i),Me=()=>y(bn,"$controlsTimeoutActive",i),Ie=()=>y(Go,"$settingsMenuOpenedByKeyboard",i),_e=()=>y(co,"$contextMenuOpenedByKeyboard$",i),Re=()=>y(pr,"$contextMenuOpenedByHotKey$",i),re=()=>y(ur,"$contextMenuButtonRef$",i),R=()=>y(Ar,"$contextMenuLastActiveElem$",i),Ze=()=>y(Vo,"$isFullscreenOpenedByKeyboard",i),ue=()=>y(jt,"$language$",i),Fe=()=>y(pt,"$icon3DVideoVisible",i),le=()=>y(ti,"$chromecastDeviceName$",i),ne=()=>y(Dn,"$currentSubtitle$",i),Ee=()=>y(mi,"$currentSubtitleCaptions$",i),j=()=>y(ho,"$position$",i),Ue=()=>y(Ko,"$duration$",i),tt=()=>y(Tt,"$isLive$",i),de=()=>y(vt,"$isPlaying$",i),ee=()=>y(No,"$contextMenuPosition$",i),Be=()=>y(pn,"$showHotKeyMap",i),Xe=()=>y(G,"$debugPanelVisible",i),dt=()=>y(nr,"$userActionsDisabled$",i),at=f(e,"videoContainer",15),Mt=f(e,"adsSlotId",3,void 0),je=f(e,"adsParams",3,void 0),lt=f(e,"adsPreviewParam",3,void 0),Bt=f(e,"adsAutoplayParam",3,void 0),zt=f(e,"duration",3,void 0),Qe=f(e,"logoTargetUrl",3,""),gt=f(e,"showNextPrevButtons",3,!1),Se=f(e,"nextButtonActive",3,!1),Pt=f(e,"prevButtonActive",3,!1),ge=f(e,"endScreenVideoTitle",3,void 0),Y=f(e,"endScreenVideoThumb",3,void 0),se=f(e,"isOneVideoPlaylist",3,!1),Ve=f(e,"shadowRootContainer",3,void 0),ke=f(e,"outerContainerRef",3,void 0),qe=f(e,"playerStarted",3,!1),it=f(e,"fullScreenTarget",3,void 0),Ne=f(e,"showMiniTimer",3,!1),ht=f(e,"showEndScreen",3,!0),Ye=f(e,"keyboardControls",15),He=e.store.getLogger().createComponentLog("Root component"),jt=e.store.interfaceLanguage$,Ni=e.store.state.playbackState$,Bi=e.store.ads.playbackState,ho=e.store.state.positionWithScrubbing$,Ko=e.store.state.duration$,cn=e.store.playerPhase,Qo=e.store.ui.isFullscreen,Vo=e.store.ui.isFullscreenOpenedByKeyboard,Wi=e.store.ui.controlsVisible,Wt=e.store.ui.settingsMenu.visible$,Go=e.store.ui.settingsMenu.openedByBtnKeyboard$,_o=e.store.ui.scrubbingInProgress,eo=e.store.ui.volumeChangingInProgress,to=e.store.ui.contextMenu.visible$,G=e.store.ui.debugPanelVisible,Gt=e.store.state.isLoaderVisible,Xt=e.store.state.isEnded$,Oi=e.store.state.chromecastConnected$,ti=e.store.state.chromecastDeviceName$,Jt=e.store.ads.postrollPassed,Tt=e.store.state.isLive$,vt=e.store.state.isPlaying$,Rt=e.store.state.crashed$,bo=e.store.webApi.annotationsApi,Pi=e.store.webApi.pictureInPictureApi,Dn=e.store.state.currentSubtitle$,mi=e.store.state.currentSubtitleCaptions$,$o=e.store.ui.playerSize,si=e.store.ui.is3DVideo,pt=e.store.ui.icon3DVideoVisible,vi=e.store.state.isInteractive,yo=e.store.state.isInteractiveTime$,un=e.store.state.isInteractiveExpectation$,Yt=e.store.state.hasInteractiveBranches,ui=e.store.ui.touched,xo=e.store.ui.modals.hotKeyMap.data,pn=e.store.ui.modals.hotKeyMap.show,wo=e.store.ui.overlayContainer$,io=e.store.ui.controls.interactiveTimeIndicator,jo=e.store.state.showInteractiveTimeIndicator,No=e.store.ui.contextMenu.position$,qi=e.store.actions.internal.setQuality,oo=e.store.actions.internal.closeSettingsMenu,Tr=e.store.ui.autoplayNextEnabled$,nr=e.store.ui.userActionsDisabled,Hn=e.store.ui.isControlsAvailable,Fn=e.store.ui.videoTitleInfo,Un=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:fn,notifications$:Gr,graphIsOpened$:mn}=zi(),gi=K(void 0),vn=K(void 0),Bo=K(void 0),Oo=K(void 0),gn,hn,So;xo.set(ah());let{closeNotification:kr,notificationsToShow$:_n}=Gr,zn=h(()=>!!r().slow_video),wi=()=>kr("slow_video"),no=h(()=>(s()==="video"&&a()||s()==="ads"&&l()==="inactive")&&!d()),nt=K(void 0),ai=te(!1),rr,bn=te(!1),Yo=te(),hi=te(!1),$n=K(!1),ro=K(!1),yn=K(!1),so=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),xn=h(()=>u()&&!m()&&!(n($n)||n(ro))&&!(n(yn)&&!g())),wn=!0,Wn=h(()=>e.uiConfig.features.thumbTimer&&Ne()&&s()==="video"&&!c()&&!d()&&!vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),sr=h(()=>s()==="video"&&!w()&&x()),qn=K(!1),Co=h(()=>(ht()||e.showAutoplayNext&&S())&&!!ge()&&!!Y()&&(e.showAds&&C()||!e.showAds)&&P()&&!d()&&!n(qn)),Er=h(()=>M()&&!(c()||n(Co))&&!u()&&I()),Kn=K(!1),ar=h(()=>k()!==null),{toggle:Do}=fn,Ot=!1,Ki=null;Pi?.setContext(cl());let ao=()=>{e.autoplay&&!vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&pi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:ao});let Qn=()=>{window.clearTimeout(gn),bn.set(!1)},lr=()=>{window.clearTimeout(hn),Yo.set(null)},pi=ae=>{Qn(),bn.set(!0),gn=window.setTimeout(()=>bn.set(!1),ae);let xt=ae-100;rr=window.setTimeout(()=>{V()&&ai.set(!1)},xt>0?xt:ae)},jr=(ae,xt)=>{lr(),Yo.set(xt),hn=window.setTimeout(()=>Yo.set(null),ae)},_t=si.subscribe(ae=>{pt.set(ae),ae&&(window.clearTimeout(So),So=window.setTimeout(()=>pt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Vt=async()=>{let ae=ys();if(ae){let xt=Bl(),ii=dr();ae=xt===ii||xt===Ve()}if(ae){pi(e.uiConfig.controls.hideTimeoutFullscreen);try{await Pi?.remove()}catch(xt){He({message:String(xt)})}}Qo.set(ae),e.store.getAdmanWrapper().setFullscreen(ae),x()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},To=ae=>{let{width:xt,height:ii}=ae.target;$o.set({width:xt,height:ii})},Ho=()=>{let{width:ae,height:xt}=n(gi).getBoundingClientRect();$o.set({width:ae,height:xt})};It(()=>(Pc(Vt),e.uiConfig.features.annotationsInside&&bo?.init(n(gi)),Zs(Pi)&&(Pi?.assignPlayerContainer(n(gi)),Pi?.registryExternalEventHandlers({resize:To,leavepictureinpicture:Ho})),e.interactiveContainer&&at().parentElement?.insertBefore(e.interactiveContainer,at().nextSibling),()=>{window.clearTimeout(gn),window.clearTimeout(rr),window.clearTimeout(hn),window.clearTimeout(So),_t(),Pi?.dispose().catch(xt=>{He({message:String(xt)})}),Ac(Vt)}));let dr=()=>{let ae=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ke()?n(gi):ke(),xt=ae.getRootNode(),ii=xt instanceof ShadowRoot?xt.host:xt,ri=it()instanceof HTMLElement&&it().contains(ii);return e.uiConfig.allowChangingFullscreenTarget&&it()&&ri?it():ae},cr=async()=>{ys()?(await Ic(document),He({message:"exit fullscreen"})):(He({message:"request fullscreen"}),await Ec(dr()))},ko=()=>{oo(),to.set(!1)},Ir=ae=>{w()||(ae.preventDefault(),to.set(!0),No.set({left:ae.clientX,top:ae.clientY}))};function Pr(){hi.set(!0),vi||pi(e.uiConfig.controls.hideTimeoutCursor)}function Yr(){vi||(ai.set(!0),pi(e.uiConfig.controls.hideTimeoutCursor))}function rt(){hi.set(!1),N(ro,!1),N($n,!1),Ot=!1,e.store.actions.internal.releaseCamera(),pi(e.uiConfig.controls.hideTimeout)}function Et(ae){return ae?ae.offsetTop+Et(ae.offsetParent):0}function qt(ae){return ae?ae.offsetLeft+qt(ae.offsetParent):0}function Ai(ae){if(q()&&jo){let xt=ae.currentTarget,ii=Et(xt),ri=qt(xt),Ge=ae.pageX-ri,$t=ae.pageY-ii,{left:Dt,bottom:Gi,right:Ti}=q(),Yn=Ti-Dt;return Ge>=Dt-Yn&&$t<=Gi+Yn}}function Si(ae){if(n(gi)){let xt=Et(ae.currentTarget),ii=z().height,ri=ae.pageY-xt;if(Ai(ae)){N(ro,!1);return}ri<40?N(ro,!0):ri>ii-40?N($n,!0):(N(ro,!1),m()||N($n,!1))}}function Qi(ae){Si(ae),n(xn)||pi(e.uiConfig.controls.hideTimeoutCursor),ie()&&Ot&&Ki&&e.store.actions.internal.moveCameraFocusPX(Ki.clientX-ae.clientX,Ki.clientY-ae.clientY,ae.timeStamp-Ki.timeStamp),Ki=ae}let lo=ae=>{ae.preventDefault(),ae.button===0&&(Ot=!0,e.store.actions.internal.holdCamera()),pi(e.uiConfig.controls.hideTimeoutCursor)},Zo=ae=>{ae.preventDefault(),ae.button===0&&(Ki=ae,Ot=!1,e.store.actions.internal.releaseCamera()),pi(e.uiConfig.controls.hideTimeoutCursor)},Di=ae=>{ae.preventDefault(),wn&&(He({message:"double click on video"}),cr(),pi(e.uiConfig.controls.hideTimeoutCursor))},_i=ae=>{if(ae.preventDefault(),oe()||m()){ko();return}if(!(P()&&!Yt)){if(n(ar))return Do();if(Ye()?.focus(),!qe()){e.firstStart(),pi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ve()!==p1.PLAYING)&&e.store.actions.internal.togglePlay(),pi(e.uiConfig.controls.hideTimeoutCursor)}},Ci=ae=>{ko(),ui.set(!0),pi(e.uiConfig.controls.hideTimeout),ae&&jr(e.uiConfig.controls.hideHotKeyHelpers,ae)},Eo=()=>{ko(),e.store.callbacks?.onOpenHotKeyMap?e.store.callbacks?.onOpenHotKeyMap(Q()):pn.update(ae=>!ae)},Hi=()=>{ui.set(!0)},co=e.store.ui.contextMenu.openedByBtnKeyboard$,ur=e.store.ui.contextMenu.btnRef$,Sn=K(void 0),pr=e.store.ui.contextMenu.openedByHotKey$,Ar=e.store.ui.contextMenu.lastActiveElem$;De(()=>{wo.set(n(nt))}),De(()=>{N(yn,n(so)&&ve()!==p1.PLAYING,!0),n(so)||yt(()=>N(so,!0))}),De(()=>{Wi.set((n(yn)||P()||m()||me()||J()||Pe()||Me())&&!n(xn)&&(s()==="video"||s()==="ads")&&!d()&&I())}),De(()=>{!me()&&n(Kn)&&!u()&&pi(e.uiConfig.controls.hideTimeoutCursor),yt(()=>N(Kn,me(),!0))}),De(()=>{n(Oo),m(),Ie(),yt(()=>zl(n(Oo),m(),Ie()))}),De(()=>{n(Sn),oe(),_e(),Re(),yt(()=>{let ae=_e()||Re();zl(n(Sn),oe(),ae)})}),De(()=>{let ae=re();ae&&(oe(),yt(()=>Ua(ae,oe(),co)))}),De(()=>{let ae=R();ae&&(oe(),yt(()=>fh(ae,oe(),pr)))}),De(()=>{!Ze()&&x()&&(yt(()=>Vo.set(!1)),Ye()?.focus())}),De(()=>{w()&&ko()});let Mr=F("video360"),Cn=K(void 0),Tn=ae=>{Fn.set(wr(Un(),{title:n(Cn)},"title",ae))};var Xo=Q3();bt("blur",Os,ko);var Mi=ce(Xo);Mi.__mousemove=Qi;var kn=_(Mi);let Gn=h(()=>s()==="ads"),jn=h(()=>n(ar)?Do:void 0);Je(Qp(kn,{toggleFullscreen:cr,hideContextMenu:ko,showHotKeyHelpers:Ci,showKeyMap:Eo,get isAds(){return n(Gn)},get fakePlayButtonHandler(){return n(jn)},get nextButtonActive(){return Se()},get prevButtonActive(){return Pt()},children:(ae,xt)=>{var ii=q3(),ri=ce(ii);va(ri,{get hideCursor(){return n(Er)},onClick:_i,onContextMenu:Ir,onMouseDown:lo,onMouseUp:Zo,onDblClick:Di,get videoContainer(){return at()},set videoContainer(Dt){at(Dt)}});var Ge=E(ri,2);qs(Ge,()=>"slot",!1,(Dt,Gi)=>{we(Dt,()=>({name:ma}))});var $t=E(Ge,2);Ws($t,ue,Dt=>{var Gi=W3(),Ti=ce(Gi);let Yn=h(()=>s()!=="thumb"||d()||vi&&e.autoplay);ua(Ti,{get hidden(){return n(Yn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Zn=E(Ti,2);km(Zn,{});var Fi=E(Zn,2);{var ji=We=>{let Kt=h(()=>e.live?.startTime);$d(We,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Kt)}})};L(Fi,We=>{s()==="LiveWaitingStart"&&We(ji)})}var li=E(Fi,2);{var Jo=We=>{pa(We,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(li,We=>{s()==="LiveWaitingRecover"&&We(Jo)})}var Xn=E(li,2);{var mr=We=>{pa(We,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(Xn,We=>{s()==="LiveWaitingRecord"&&We(mr)})}var Ui=E(Xn,2);{var Ja=We=>{var Kt=H3();let en;var fs=_(Kt);Ol(fs,{get adsSlotId(){return Mt()},get adsParams(){return je()},get adsPreviewParam(){return lt()},get adsAutoplayParam(){return Bt()},get duration(){return zt()}}),v(Kt),B(Zr=>en=Z(Kt,1,"ads-container svelte-jtgjmv",null,en,Zr),[()=>({hidden:s()!=="ads"})]),b(We,Kt)};L(Ui,We=>{e.showAds&&qe()&&We(Ja)})}var ga=E(Ui,2);{var mt=We=>{let Kt=h(()=>!ht()&&e.showAutoplayNext&&S());Wp(We,{get title(){return ge()},get thumb(){return Y()},get isHide(){return n(Kt)},clickCloseIcon:()=>N(qn,!0)})};L(ga,We=>{n(Co)&&ge()&&Y()&&We(mt)})}var wt=E(ga,2);{var En=We=>{let Kt=h(()=>!c());im(We,{get title(){return e.title},get isHidden(){return n(Kt)},onVisibilityChanged:Tn,get ref(){return n(Cn)},set ref(en){N(Cn,en,!0)}})};L(wt,We=>{n(sr)&&We(En)})}var Rr=E(wt,2);{var Ps=We=>{let Kt=h(()=>s()==="video"&&c());hd(We,{get isShifted(){return n(Kt)}})};L(Rr,We=>{ie()&&We(Ps)})}var Vr=E(Rr,2);{var Nr=We=>{var Kt=F3(),en=_(Kt);Nl(en,{get"aria-label"(){return Mr}}),v(Kt),b(We,Kt)};L(Vr,We=>{Fe()&&We(Nr)})}var ps=E(Vr,2);{var el=We=>{_d(We,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return le()}})};L(ps,We=>{Pe()&&We(el)})}var Nd=E(ps,2);{var gu=We=>{ca(We,{get shifted(){return c()},get captions(){return Ee()},get position(){return j()},get playerSize(){return z()}})};L(Nd,We=>{ne().value!=="off"&&We(gu)})}var Bd=E(Nd,2);{var hu=We=>{var Kt=U3();Kt.__contextmenu=Ir,Kt.__click=[D3,oe,to,m,Wt,ko];var en=_(Kt);bd(en,{}),v(Kt),b(We,Kt)};L(Bd,We=>{d()&&We(hu)})}var Od=E(Bd,2);{var _u=We=>{let Kt=h(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),en=h(()=>s()==="ads"),fs=h(()=>e.canRewindLive&&Ue()!==0);gd(We,{get bottomHidden(){return n(Kt)},get bottomNoSmooth(){return V()},get showControls(){return c()},get isAds(){return n(en)},get canRewindLive(){return n(fs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Qe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return gt()},get nextButtonActive(){return Se()},get prevButtonActive(){return Pt()},get isOneVideoPlaylist(){return se()},customFullscreenSupported:wn,toggleFullscreen:cr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(vn)},set playerControlsWrapperRef(Zr){N(vn,Zr,!0)},get playerControlsRef(){return n(Bo)},set playerControlsRef(Zr){N(Bo,Zr,!0)}})};L(Od,We=>{qe()&&We(_u)})}var Dd=E(Od,2);{var ha=We=>{var Kt=z3(),en=_(Kt);let fs=h(()=>n(Bo)?.clientHeight);wd(en,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(fs)},returnFocus:()=>Ye()?.focus(),get ref(){return n(Oo)},set ref(Zr){N(Oo,Zr,!0)}}),v(Kt),b(We,Kt)};L(Dd,We=>{!Pe()&&s()!=="ads"&&We(ha)})}var Hd=E(Dd,2);let Fd=h(()=>!n(Wn));Fl(Hd,{get isLive(){return tt()},get isHidden(){return n(Fd)},get isPlaying(){return de()},get position(){return j()},get duration(){return Ue()}});var tl=E(Hd,2);Xf(tl,{get data(){return Yo}});var Ud=E(tl,2);zp(Ud,{get supportLink(){return e.supportLink},returnFocus:()=>Ye()?.focus(),get visible(){return oe()},get playerContainerRef(){return n(gi)},get controlsContainerRef(){return n(vn)},get position(){return ee()},get menuElementRef(){return n(Sn)},set menuElementRef(We){N(Sn,We,!0)}});var il=E(Ud,2);{var ol=We=>{Sd(We,{onClose:wi,onSelectAutoQuality:()=>{qi("auto"),wi()}})};L(il,We=>{n(zn)&&We(ol)})}var nl=E(il,2);{var bu=We=>{ia(We,{})};L(nl,We=>{n(no)&&We(bu)})}var rl=E(nl,2);{var $u=We=>{Yp(We,{})};L(rl,We=>{Be()&&We($u)})}var yu=E(rl,2);{var xu=We=>{Kl(We,{})};L(yu,We=>{Xe()&&We(xu)})}b(Dt,Gi)}),b(ae,ii)},$$slots:{default:!0}}),ae=>Ye(ae),()=>Ye());var fr=E(kn,2);Je(fr,ae=>N(nt,ae),()=>n(nt)),v(Mi),Je(Mi,ae=>N(gi,ae),()=>n(gi));var Lr=E(Mi,2);{var ze=ae=>{var xt=K3();b(ae,xt)};L(Lr,ae=>{dt()&&ae(ze)})}bt("mouseenter",Mi,Pr),bt("mouseleave",Mi,rt),bt("click",Mi,Hi,!0),bt("focusin",Mi,Yr,!0),b(t,Xo),H(),o()}st(["mousemove","contextmenu","click"]);import{clientChecker as Cd,PlaybackState as nx}from"@vkontakte/videoplayer-core/evergreen";import{noop as rx}from"@vkontakte/videoplayer-shared/evergreen";var j3=A('<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),Y3=A("<div><!></div>"),Z3={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
342
342
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
343
343
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
344
344
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -354,7 +354,7 @@ Try switching the\xA0quality to\xA0Auto.`},Xg=U0;var rs=new Map;rs.set(eh.EN,Xg)
354
354
  100% {
355
355
  opacity: 0;
356
356
  }
357
- }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function su(t,e){D(e,!0),U(t,Z3);let i=f(e,"seekStep",3,0),o=K(!1),r=0,s=0,a=K(Kt(i())),l=g=>{g.stopPropagation(),s+=1,N(a,i()*(s-1)),s===1?e.handleSingleFirstClick(g):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,N(o,!1)},300)};dn(()=>{window.clearTimeout(r)});var d=Y3();d.__click=l;var u=_(d);{var m=g=>{var c=j3(),$=le(c),w=E($,2),x=_(w),S=_(x),C=E(S,2),A=E(C,2);v(x);var M=E(x,2),I=_(M,!0);v(M),v(w),B(k=>{Z($,1,`semicircle ${e.side??""}`,"svelte-nhq2ld"),Z(S,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),Z(C,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),Z(A,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),ue(I,k)},[()=>F("doubletap_seek_step",{seconds:n(a).toFixed(0)})]),b(g,c)};L(u,g=>{n(o)&&g(m)})}v(d),B(()=>Z(d,1,`double-click-area ${e.side??""}`,"svelte-nhq2ld")),b(t,d),H()}st(["click"]);var X3=(t,e,i)=>{e(!1),i()},J3=P('<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),ex={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 Im(t,e){D(e,!0),U(t,ex);let[i,o]=Re(),r=()=>y(l,"$autoplayNextEnabled$",i),s=()=>y(d,"$timerNextVideoRunning$",i),a=we(),l=a.ui.autoplayNextEnabled$,d=a.ui.timerNextVideoRunning$,u=a.actions.internal.nextVideoClick,m=a.actions.internal.nextVideoAnnouncementShow,g=a.actions.internal.nextVideoAnnouncementClick,c=a.actions.internal.nextVideoAnnouncementAuto,$=a.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),c()},x=()=>{e.clickCloseIcon(),$()};Et(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),c())});var S=Be(),C=le(S);{var A=M=>{var I=J3(),k=E(le(I),2),V=_(k),q=_(V),z=_(q,!0);v(q);var ie=E(q,2);ea(ie,{onClick:x}),v(V);var oe=E(V,2);oe.__click=[X3,u,g];var me=_(oe),Q=_(me),fe=_(Q);let J;var Pe=E(fe,2);{var Le=re=>{Ql(re,{get isRunning(){return s()},onTimerEnded:w})};L(Pe,re=>{r()&&re(Le)})}v(Q),v(me);var Ae=E(me,2),he=_(Ae),Ve=_(he,!0);v(he),v(Ae),v(oe),v(k),B((re,R)=>{ue(z,re),it(Q,`background-image: url('${e.thumb}')`),J=Z(fe,1,"thumb-overlay svelte-1qdxi6t",null,J,R),ue(Ve,e.title)},[()=>r()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(M,I)};L(C,M=>{e.isHide||M(A)})}b(t,S),H(),o()}st(["click"]);import{clientChecker as tx}from"@vkontakte/videoplayer-core/evergreen";var f1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Et(()=>{tx.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let a=()=>e(!0),l=()=>e(!1);s.addEventListener("webkitbeginfullscreen",a),s.addEventListener("webkitendfullscreen",l),i=()=>{s.removeEventListener("webkitbeginfullscreen",a),s.removeEventListener("webkitendfullscreen",l)}},0))}),dn(()=>{i?.(),clearTimeout(o)})};import{VideoFormat as ix}from"@vkontakte/videoplayer-core/evergreen";var au=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 ox}from"@vkontakte/videoplayer-core/evergreen";var m1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:a,availableTextTracks$:l}=t.state,d=null,u=()=>e().querySelector("video"),m=()=>ox.device.isIOS&&ge(a)===ix.DASH_LIVE_CMAF,g=()=>{d?.(),d=null},c=$=>{if(g(),!m()||!$)return;let w=u();if(!w)return;let x=new au(w),S=ge(l),C=ge(s),A=ge(r);for(let k of S)C.some(q=>q.value===k.id)&&x.attach(k,A.value===k.id);let M=l.subscribe(k=>{for(let V of k)x.updateSrc(V)}),I=()=>{let k=x.getCurrentShowingId();o(ge(s).find(V=>V.value===k))};w.textTracks.addEventListener("change",I),d=()=>{M(),x.detachAll(),w.textTracks.removeEventListener("change",I)}};Et(()=>i.subscribe(c)),dn(g)};var sx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},ax=P("<!> <!>",1),lx=P("<div><!></div>"),dx=P('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),cx=P("<div><!></div>"),ux=P('<div class="settings-mobile svelte-7yl31d"><!></div>'),px=P("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),fx=P('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),mx={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Am(t,e){D(e,!0),U(t,mx);let[i,o]=Re(),r=()=>y(ht,"$playerPhase",i),s=()=>y(qo,"$isLoaderVisible",i),a=()=>y(Se,"$adPlaybackState",i),l=()=>y(Oi,"$crashed",i),d=()=>y(nr,"$notificationsToShow$",i),u=()=>y(De,"$playbackState$",i),m=()=>y(ve,"$graphIsOpened$",i),g=()=>y(Yt,"$interactiveHideMobileControls",i),c=()=>y(Ro,"$isEnded$",i),$=()=>y(mt,"$isInteractiveExpectation$",i),w=()=>y(Ge,"$controlsVisible",i),x=()=>y(Qo,"$touched",i),S=()=>y(fi,"$autoplayNextEnabled$",i),C=()=>y(Ko,"$postrollPassed",i),A=()=>y(lo,"$bottomNoSmooth",i),M=()=>y(xt,"$videoSize",i),I=()=>y(yi,"$playerSize",i),k=()=>y(Mt,"$isFullscreen",i),V=()=>y(xe,"$position$",i),q=()=>y(Je,"$duration$",i),z=()=>y(wo,"$loadedMetadata",i),ie=()=>y(Ai,"$settingsMenuVisible",i),oe=()=>y(Lo,"$scrubbingInProgress",i),me=()=>y(Wo,"$volumeChangingInProgress",i),Q=()=>y(Gi,"$chromecastConnected$",i),fe=()=>y(He,"$isControlsAvailable",i),J=()=>y(ui,"$isInteractiveTime$",i),Pe=()=>y(Qt,"$isActiveLive",i),Le=()=>y(Qi,"$settingsMenuOpenedByKeyboard",i),Ae=()=>y(se,"$language$",i),he=()=>y(xo,"$disabledControls$",i),Ve=()=>y(fn,"$is3DVideo",i),re=()=>y(di,"$icon3DVideoVisible",i),R=()=>y(zt,"$chromecastDeviceName$",i),Ye=()=>y(wt,"$currentSubtitle$",i),de=()=>y(Vt,"$currentSubtitleCaptions$",i),Fe=()=>y(yo,"$realDuration$",i),ae=()=>y($o,"$isLive$",i),ne=()=>y(j,"$isPlaying$",i),Ie=()=>y(pn,"$debugPanelVisible",i),G=f(e,"videoContainer",15),ze=f(e,"adsSlotId",3,void 0),et=f(e,"adsParams",3,void 0),ce=f(e,"adsPreviewParam",3,void 0),ee=f(e,"adsAutoplayParam",3,void 0),Ne=f(e,"duration",3,void 0),je=f(e,"logoTargetUrl",3,""),dt=f(e,"showNextPrevButtons",3,!1),at=f(e,"nextButtonActive",3,!1),Tt=f(e,"prevButtonActive",3,!1),Ze=f(e,"endScreenVideoTitle",3,void 0),lt=f(e,"endScreenVideoThumb",3,void 0),Nt=f(e,"isOneVideoPlaylist",3,!1),Ut=f(e,"showMiniTimer",3,!1),qe=f(e,"fullScreenTarget",3,void 0),vt=f(e,"playerStarted",3,!1),ke=f(e,"showEndScreen",3,!0),{notifications$:St,graphIsOpened$:ve}=Ki(),Y=e.store.getLogger().createComponentLog("Root component"),se=e.store.interfaceLanguage$,De=e.store.state.playbackState$,Se=e.store.ads.playbackState,xe=e.store.state.positionWithScrubbing$,Je=e.store.state.duration$,ht=e.store.playerPhase,Mt=e.store.ui.isFullscreen,Ge=e.store.ui.controlsVisible,He=e.store.ui.isControlsAvailable,Yt=e.store.ui.interactiveHideMobileControls,Ai=e.store.ui.settingsMenu.visible$,Qi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Lo=e.store.ui.scrubbingInProgress,Wo=e.store.ui.volumeChangingInProgress,pn=e.store.ui.debugPanelVisible,qo=e.store.state.isLoaderVisible,Ro=e.store.state.isEnded$,Gi=e.store.state.chromecastConnected$,zt=e.store.state.chromecastDeviceName$,Ko=e.store.ads.postrollPassed,ro=e.store.ui.mobileUnmuteButtonExpanded,so=e.store.ui.mobileUnmuteButtonVisible,$o=e.store.state.isLive$,j=e.store.state.isPlaying$,Qt=e.store.state.isActiveLive$,ei=e.store.state.isRewindableLive$,Oi=e.store.state.crashed$,ii=e.store.webApi.annotationsApi,Gt=e.store.webApi.pictureInPictureApi,xt=e.store.state.videoSize$,wt=e.store.state.currentSubtitle$,Vt=e.store.state.currentSubtitleCaptions$,yo=e.store.state.duration$,yi=e.store.ui.playerSize,fn=e.store.ui.is3DVideo,di=e.store.ui.icon3DVideoVisible,ji=e.store.state.isInteractive,ui=e.store.state.isInteractiveTime$,mt=e.store.state.isInteractiveExpectation$,pi=e.store.state.hasInteractiveBranches,xo=e.store.ui.controls.disabledControls$,Qo=e.store.ui.touched,Xt=e.store.ui.overlayContainer$,fi=e.store.ui.autoplayNextEnabled$,wo=e.store.state.loadedMetadata$,mn=e.store.actions.internal.closeSettingsMenu,ao=e.store.callbacks?.onDisabledPlayPrevChapterClick,Yi=e.store.callbacks?.onDisabledSeekToInteractiveClick,vn=e.store.actions.internal.setQuality,Zi=K(void 0),Di=K(void 0),Go=K(void 0),or=K(void 0),Nn,Bn,On,Tr=h(()=>(r()==="video"&&s()||r()==="ads"&&a()==="inactive")&&!l()),gn=K(void 0),{closeNotification:Gr,notificationsToShow$:nr}=St,mi=h(()=>!!d().slow_video),jo=()=>Gr("slow_video"),lo=te(!1),Vo,No=K(!1),hn=h(()=>u()!==nx.PLAYING),Yo=K(!1),jr=h(()=>m()||g()||!n(No)&&(c()&&!!pi||n(hn)&&$())),Dn=K(!0),Hn=h(()=>e.uiConfig.features.thumbTimer&&Ut()&&r()==="video"&&!w()&&!l()&&!ji&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),xi=K(!1),Hi=h(()=>(ke()||e.showAutoplayNext&&S())&&!!Ze()&&!!lt()&&(e.showAds&&C()||!e.showAds)&&c()&&!l()&&!n(xi)),ot=K(!1);Gt?.setContext(cl());let vi=nt=>{clearTimeout(Bn),nt&&(so.set(!0),ro.set(!0),Bn=setTimeout(()=>{ro.set(!1)},e.uiConfig.controls.collapseMobileUnmute),ji||Pi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:vi});let rr=()=>{clearTimeout(Nn),N(No,!1),g()&&Yt.set(!1)},Pi=nt=>{rr(),N(No,!0),Nn=setTimeout(()=>N(No,!1),nt);let jt=nt-100;Vo=setTimeout(()=>{A()&&lo.set(!1)},jt>0?jt:nt)},_n=fn.subscribe(nt=>{di.set(nt),nt&&(clearTimeout(On),On=setTimeout(()=>di.set(!1),e.uiConfig.controls.hide360IconTimeout))}),co=async(nt=ys())=>{if(nt&&!Cd.device.isIOS){let jt=Bl(),qn=Zo(),Kn=Cd.browser.isSamsungBrowser&&jt===e.shadowRootContainer;nt=jt===qn||Kn}if(nt){Pi(e.uiConfig.controls.hideTimeoutFullscreen);try{await Gt?.remove()}catch(jt){Y({message:String(jt)})}try{let jt=M()?.width&&M()?.height?M():I();await rh(jt)}catch(jt){Y({message:String(jt)})}}Mt.set(nt),e.store.getAdmanWrapper().setFullscreen(nt),k()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},bn=nt=>{let jt=nt;yi.set({width:jt.target.width,height:jt.target.height})};Et(()=>(Ac(co),e.uiConfig.features.annotationsInside&&ii?.init(n(Zi)),Zs(Gt)&&(Gt?.assignPlayerContainer(n(Zi)),Gt?.registryExternalEventHandlers({resize:bn})),N(Dn,!Cd.device.isIphoneOrOldIpad),e.interactiveContainer&&G().parentElement?.insertBefore(e.interactiveContainer,G().nextSibling),()=>{clearTimeout(Nn),clearTimeout(Vo),clearTimeout(Bn),clearTimeout(On),_n(),Gt?.dispose().catch(nt=>{Y({message:String(nt)})}),Pc(co)}));let uo=K(!0),Bo=K(!0),So=nt=>{let jt=V()+(nt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;jt<0?(N(uo,!1),jt=0):jt>=q()&&(N(Bo,!1),jt=q()),N(Yo,!0),e.seekTime(jt)},Zo=()=>Cd.device.isIOS?n(Zi):!e.uiConfig.allowChangingFullscreenTarget||!qe()?e.outerContainerRef:qe().contains(e.outerContainerRef)?qe():e.outerContainerRef,Fn=async()=>{try{if(ys())await Ic(document),Y({message:"exit fullscreen"});else{if(Y({message:"request fullscreen"}),Cd.device.isIOS&&!z())return;await Ec(Zo())}}catch(nt){Y({message:String(nt)})}},sr=()=>{mn()},$n=nt=>{if(nt.preventDefault(),ie()){sr();return}if(!vt()){e.firstStart(),Pi(e.uiConfig.controls.hideTimeoutCursor);return}N(Yo,!1),w()?rr():Pi(e.uiConfig.controls.hideTimeoutMobile)},kr=()=>{Qo.set(!0)},Xo=()=>{ji||(lo.set(!0),Pi(e.uiConfig.controls.hideTimeoutCursor))},Er=nt=>{ao&&(ao(nt),Pi(e.uiConfig.controls.hideTimeoutMobile))},Un=nt=>{Yi&&(Yi(nt),Pi(e.uiConfig.controls.hideTimeoutMobile))};Oe(()=>{Xt.set(n(gn))}),Oe(()=>{Ge.set((n(hn)||ie()||oe()||me()||Q()||!n(Hi)&&(c()||n(No)&&!n(Yo)))&&!n(jr)&&r()==="video"&&!l()&&fe())}),Oe(()=>{!oe()&&n(ot)&&!J()&&Pi(e.uiConfig.controls.hideTimeoutMobile),N(ot,oe(),!0)}),Oe(()=>{N(uo,V()>0),N(Bo,!Pe()&&V()<q(),!0)}),Oe(()=>{zl(n(or),ie(),Le(),!0)});let ar=F("aria_label_video_player"),Oo=F("video360");f1({fullScreenChangeHandler:co,getFullscreenTarget:Zo}),m1({store:e.store,getFullscreenTarget:Zo});var It=fx();gt("blur",Os,sr);var Fi=_(It);va(Fi,{onClick:$n,get videoContainer(){return G()},set videoContainer(nt){G(nt)}});var zn=E(Fi,2);qs(zn,()=>"slot",!1,(nt,jt)=>{Ce(nt,()=>({name:ma}))});var Wn=E(zn,2);Ws(Wn,Ae,nt=>{var jt=px(),qn=le(jt);let Kn=h(()=>r()!=="thumb"||l()||ji&&e.autoplay);ua(qn,{get hidden(){return n(Kn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Qn=E(qn,2);{var lr=Ue=>{var Ot=ax(),Ci=le(Ot);{var _e=ri=>{let Ke=h(()=>e.uiConfig.controls.seekStepMobile/1e3);su(ri,{side:"left",get seekStep(){return n(Ke)},handleSingleFirstClick:$n,handleSecondClick:()=>So("backward")})};L(Ci,ri=>{n(uo)&&ri(_e)})}var At=E(Ci,2);{var Ri=ri=>{let Ke=h(()=>e.uiConfig.controls.seekStepMobile/1e3);su(ri,{side:"right",get seekStep(){return n(Ke)},handleSingleFirstClick:$n,handleSecondClick:()=>So("forward")})};L(At,ri=>{n(Bo)&&ri(Ri)})}b(Ue,Ot)};L(Qn,Ue=>{e.canRewindLive&&ei&&!he().has("TIMELINE")&&Ue(lr)})}var dr=E(Qn,2);{var cr=Ue=>{let Ot=h(()=>e.live?.startTime);$d(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Ot)}})};L(dr,Ue=>{r()==="LiveWaitingStart"&&Ue(cr)})}var Co=E(dr,2);{var Ar=Ue=>{pa(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Co,Ue=>{r()==="LiveWaitingRecover"&&Ue(Ar)})}var Pr=E(Co,2);{var Yr=Ue=>{pa(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(Pr,Ue=>{r()==="LiveWaitingRecord"&&Ue(Yr)})}var rt=E(Pr,2);{var kt=Ue=>{var Ot=lx();let Ci;var _e=_(Ot);Ol(_e,{get adsSlotId(){return ze()},get adsParams(){return et()},get adsPreviewParam(){return ce()},get adsAutoplayParam(){return ee()},get duration(){return Ne()}}),v(Ot),B(At=>Ci=Z(Ot,1,"ads-container svelte-7yl31d",null,Ci,At),[()=>({hidden:r()!=="ads"})]),b(Ue,Ot)};L(rt,Ue=>{e.showAds&&vt()&&Ue(kt)})}var Wt=E(rt,2);{var Mi=Ue=>{let Ot=h(()=>!ke()&&e.showAutoplayNext&&S());Im(Ue,{get title(){return Ze()},get thumb(){return lt()},get isHide(){return n(Ot)},clickCloseIcon:()=>N(xi,!0)})};L(Wt,Ue=>{n(Hi)&&Ze()&&lt()&&Ue(Mi)})}var wi=E(Wt,2);{var Xi=Ue=>{hd(Ue,{})};L(wi,Ue=>{Ve()&&Ue(Xi)})}var po=E(wi,2);{var Jo=Ue=>{var Ot=dx(),Ci=_(Ot);Nl(Ci,{get"aria-label"(){return Oo}}),v(Ot),b(Ue,Ot)};L(po,Ue=>{re()&&Ue(Jo)})}var Ui=E(po,2);{var gi=Ue=>{_d(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return R()}})};L(Ui,Ue=>{Q()&&Ue(gi)})}var Si=E(Ui,2);{var To=Ue=>{ca(Ue,{get shifted(){return w()},get captions(){return de()},get position(){return V()},get playerSize(){return I()},isMobile:!0})};L(Si,Ue=>{Ye().value!=="off"&&Ue(To)})}var zi=E(Si,2);{var fo=Ue=>{var Ot=cx();Ot.__click=[sx,ie,Ai,sr];var Ci=_(Ot);bd(Ci,{}),v(Ot),b(Ue,Ot)};L(zi,Ue=>{l()&&Ue(fo)})}var ur=E(zi,2);{var yn=Ue=>{let Ot=h(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Ci=h(()=>r()==="ads"),_e=h(()=>e.canRewindLive&&Fe()!==0);gd(Ue,{get bottomHidden(){return n(Ot)},get showControls(){return w()},get bottomNoSmooth(){return A()},get isAds(){return n(Ci)},get canRewindLive(){return n(_e)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return je()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return dt()},get nextButtonActive(){return at()},get prevButtonActive(){return Tt()},get isOneVideoPlaylist(){return Nt()},get customFullscreenSupported(){return n(Dn)},get endScreenShown(){return n(Hi)},toggleFullscreen:Fn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Er,onDisabledSeekToInteractiveClick:Un,get playerControlsWrapperRef(){return n(Di)},set playerControlsWrapperRef(At){N(Di,At,!0)},get playerControlsRef(){return n(Go)},set playerControlsRef(At){N(Go,At,!0)}})};L(ur,Ue=>{vt()&&Ue(yn)})}var pr=E(ur,2);{var Mr=Ue=>{var Ot=ux(),Ci=_(Ot);wd(Ci,{get supportLink(){return e.supportLink},get returnFocus(){return rx},get ref(){return n(or)},set ref(_e){N(or,_e,!0)}}),v(Ot),b(Ue,Ot)};L(pr,Ue=>{ie()&&Ue(Mr)})}var Lr=E(pr,2);let xn=h(()=>!n(Hn));Fl(Lr,{get isLive(){return ae()},get isHidden(){return n(xn)},get isPlaying(){return ne()},get position(){return V()},get duration(){return q()}});var wn=E(Lr,2);{var en=Ue=>{ia(Ue,{})};L(wn,Ue=>{n(Tr)&&Ue(en)})}var Li=E(wn,2);{var Sn=Ue=>{Kl(Ue,{})};L(Li,Ue=>{Ie()&&Ue(Sn)})}var fr=E(Li,2);{var Gn=Ue=>{Sd(Ue,{onClose:jo,onSelectAutoQuality:()=>{vn("auto"),jo()}})};L(fr,Ue=>{n(mi)&&Ue(Gn)})}b(nt,jt)});var Ir=E(Wn,2);Xe(Ir,nt=>N(gn,nt),()=>n(gn)),v(It),Xe(It,nt=>N(Zi,nt),()=>n(Zi)),B(()=>Me(It,"aria-label",ar)),gt("click",It,kr,!0),gt("focusin",It,Xo,!0),b(t,It),H(),o()}st(["click"]);function lu(t){let e="";return Ii(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Ii(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Ii(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Ii(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Ii(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Ii(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Ii(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Ii(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Ii(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Ii(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Ii(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Ii(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Ii(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Ii(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Ii(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Ii(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Ii(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Ii(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Ii(t.font)&&(e+=`--font:${t.font};`),Ii(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Ii(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Ii(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as vx}from"@vkontakte/videoplayer-shared/evergreen";var gx=P('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),hx={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){D(e,!0),U(t,hx);let[i,o]=Re(),r=()=>y(me,"$playerSize",i),s=()=>y(k,"$isPlaying$",i),a=()=>y(M,"$duration$",i),l=()=>y(z,"$positionWithScrubbing$",i),d=()=>y(C,"$playerPhase",i),u=()=>y(A,"$crashed$",i),m=()=>y(V,"$currentSubtitle$",i),g=()=>y(q,"$currentSubtitleCaptions$",i),c=()=>y(I,"$positionExact$",i),$=()=>y(ie,"$isLive$",i),w=()=>y(oe,"$isRewindableLive$",i),x=f(e,"outsideDuration",3,0),S=f(e,"videoContainer",15),{playerPhase:C,state:{crashed$:A,duration$:M,positionExact$:I,isPlaying$:k,currentSubtitle$:V,currentSubtitleCaptions$:q,positionWithScrubbing$:z,isLive$:ie,isRewindableLive$:oe},ui:{playerSize:me,controls:Q},actions:{internal:{getVideoElement:fe}}}=we(),J=8,Pe=K(!1),Le=Kt({}),Ae=()=>{N(Pe,!0)},he=()=>{N(Pe,!1)},Ve=vx(Ga,260);Oe(()=>{r(),Ve(fe(),Q,Le,n(Pe))});let re=h(()=>s()?zo(a()-l()):zo(isFinite(a())?a():x()));var R=gx(),Ye=_(R);va(Ye,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Ne){S(Ne)}});var de=E(Ye,2);qs(de,()=>"slot",!1,(Ne,je)=>{Ce(Ne,()=>({name:ma}))});var Fe=E(de,2);let ae=h(()=>d()!=="thumb"||u());ua(Fe,{get hidden(){return n(ae)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ne=E(Fe,2);{var Ie=Ne=>{ca(Ne,{shifted:!1,get captions(){return g()},get position(){return c()},get playerSize(){return r()}})};L(ne,Ne=>{m().value!=="off"&&Ne(Ie)})}var G=E(ne,2),ze=_(G);Hl(ze,{get isLive(){return $()},get isPlaying(){return s()},get time(){return n(re)}}),v(G);var et=E(G,2);let ce;var ee=_(et);ra(ee,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:J,tooltipRightOffset:J,get ref(){return Le.timeline},set ref(Ne){Le.timeline=Ne}}),v(et),v(R),B(Ne=>ce=Z(et,1,"timeline svelte-1qfjf44",null,ce,Ne),[()=>({visible:n(Pe)})]),gt("mouseenter",R,Ae),gt("mouseleave",R,he),b(t,R),H(),o()}var yx=P("<div><!></div>"),xx={hash:"svelte-oba660",code:`.root.svelte-oba660 {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
357
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function su(t,e){D(e,!0),U(t,Z3);let i=f(e,"seekStep",3,0),o=K(!1),r=0,s=0,a=K(Qt(i())),l=g=>{g.stopPropagation(),s+=1,N(a,i()*(s-1)),s===1?e.handleSingleFirstClick(g):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,N(o,!1)},300)};an(()=>{window.clearTimeout(r)});var d=Y3();d.__click=l;var u=_(d);{var m=g=>{var c=j3(),$=ce(c),w=E($,2),x=_(w),S=_(x),C=E(S,2),P=E(C,2);v(x);var M=E(x,2),I=_(M,!0);v(M),v(w),B(k=>{Z($,1,`semicircle ${e.side??""}`,"svelte-nhq2ld"),Z(S,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),Z(C,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),Z(P,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),pe(I,k)},[()=>F("doubletap_seek_step",{seconds:n(a).toFixed(0)})]),b(g,c)};L(u,g=>{n(o)&&g(m)})}v(d),B(()=>Z(d,1,`double-click-area ${e.side??""}`,"svelte-nhq2ld")),b(t,d),H()}st(["click"]);var X3=(t,e,i)=>{e(!1),i()},J3=A('<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),ex={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 Im(t,e){D(e,!0),U(t,ex);let[i,o]=Le(),r=()=>y(l,"$autoplayNextEnabled$",i),s=()=>y(d,"$timerNextVideoRunning$",i),a=xe(),l=a.ui.autoplayNextEnabled$,d=a.ui.timerNextVideoRunning$,u=a.actions.internal.nextVideoClick,m=a.actions.internal.nextVideoAnnouncementShow,g=a.actions.internal.nextVideoAnnouncementClick,c=a.actions.internal.nextVideoAnnouncementAuto,$=a.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),c()},x=()=>{e.clickCloseIcon(),$()};It(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),c())});var S=Oe(),C=ce(S);{var P=M=>{var I=J3(),k=E(ce(I),2),V=_(k),q=_(V),z=_(q,!0);v(q);var ie=E(q,2);ea(ie,{onClick:x}),v(V);var oe=E(V,2);oe.__click=[X3,u,g];var ve=_(oe),Q=_(ve),me=_(Q);let J;var Pe=E(me,2);{var Me=re=>{Ql(re,{get isRunning(){return s()},onTimerEnded:w})};L(Pe,re=>{r()&&re(Me)})}v(Q),v(ve);var Ie=E(ve,2),_e=_(Ie),Re=_(_e,!0);v(_e),v(Ie),v(oe),v(k),B((re,R)=>{pe(z,re),ot(Q,`background-image: url('${e.thumb}')`),J=Z(me,1,"thumb-overlay svelte-1qdxi6t",null,J,R),pe(Re,e.title)},[()=>r()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(M,I)};L(C,M=>{e.isHide||M(P)})}b(t,S),H(),o()}st(["click"]);import{clientChecker as tx}from"@vkontakte/videoplayer-core/evergreen";var f1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;It(()=>{tx.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let a=()=>e(!0),l=()=>e(!1);s.addEventListener("webkitbeginfullscreen",a),s.addEventListener("webkitendfullscreen",l),i=()=>{s.removeEventListener("webkitbeginfullscreen",a),s.removeEventListener("webkitendfullscreen",l)}},0))}),an(()=>{i?.(),clearTimeout(o)})};import{VideoFormat as ix}from"@vkontakte/videoplayer-core/evergreen";var au=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 ox}from"@vkontakte/videoplayer-core/evergreen";var m1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:a,availableTextTracks$:l}=t.state,d=null,u=()=>e().querySelector("video"),m=()=>ox.device.isIOS&&he(a)===ix.DASH_LIVE_CMAF,g=()=>{d?.(),d=null},c=$=>{if(g(),!m()||!$)return;let w=u();if(!w)return;let x=new au(w),S=he(l),C=he(s),P=he(r);for(let k of S)C.some(q=>q.value===k.id)&&x.attach(k,P.value===k.id);let M=l.subscribe(k=>{for(let V of k)x.updateSrc(V)}),I=()=>{let k=x.getCurrentShowingId();o(he(s).find(V=>V.value===k))};w.textTracks.addEventListener("change",I),d=()=>{M(),x.detachAll(),w.textTracks.removeEventListener("change",I)}};It(()=>i.subscribe(c)),an(g)};var sx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},ax=A("<!> <!>",1),lx=A("<div><!></div>"),dx=A('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),cx=A("<div><!></div>"),ux=A('<div class="settings-mobile svelte-7yl31d"><!></div>'),px=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),fx=A('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),mx={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){D(e,!0),U(t,mx);let[i,o]=Le(),r=()=>y(Ye,"$playerPhase",i),s=()=>y(Wi,"$isLoaderVisible",i),a=()=>y(it,"$adPlaybackState",i),l=()=>y(Jt,"$crashed",i),d=()=>y(vn,"$notificationsToShow$",i),u=()=>y(qe,"$playbackState$",i),m=()=>y(se,"$graphIsOpened$",i),g=()=>y(Bi,"$interactiveHideMobileControls",i),c=()=>y(Wt,"$isEnded$",i),$=()=>y(yo,"$isInteractiveExpectation$",i),w=()=>y(jt,"$controlsVisible",i),x=()=>y(ui,"$touched",i),S=()=>y(pn,"$autoplayNextEnabled$",i),C=()=>y(eo,"$postrollPassed",i),P=()=>y(gn,"$bottomNoSmooth",i),M=()=>y(Rt,"$videoSize",i),I=()=>y(mi,"$playerSize",i),k=()=>y(He,"$isFullscreen",i),V=()=>y(Ne,"$position$",i),q=()=>y(ht,"$duration$",i),z=()=>y(wo,"$loadedMetadata",i),ie=()=>y(ho,"$settingsMenuVisible",i),oe=()=>y(cn,"$scrubbingInProgress",i),ve=()=>y(Qo,"$volumeChangingInProgress",i),Q=()=>y(Go,"$chromecastConnected$",i),me=()=>y(Ni,"$isControlsAvailable",i),J=()=>y(vi,"$isInteractiveTime$",i),Pe=()=>y(Oi,"$isActiveLive",i),Me=()=>y(Ko,"$settingsMenuOpenedByKeyboard",i),Ie=()=>y(ke,"$language$",i),_e=()=>y(Yt,"$disabledControls$",i),Re=()=>y($o,"$is3DVideo",i),re=()=>y(si,"$icon3DVideoVisible",i),R=()=>y(_o,"$chromecastDeviceName$",i),Ze=()=>y(bo,"$currentSubtitle$",i),ue=()=>y(Pi,"$currentSubtitleCaptions$",i),Fe=()=>y(Dn,"$realDuration$",i),le=()=>y(Gt,"$isLive$",i),ne=()=>y(Xt,"$isPlaying$",i),Ee=()=>y(Vo,"$debugPanelVisible",i),j=f(e,"videoContainer",15),Ue=f(e,"adsSlotId",3,void 0),tt=f(e,"adsParams",3,void 0),de=f(e,"adsPreviewParam",3,void 0),ee=f(e,"adsAutoplayParam",3,void 0),Be=f(e,"duration",3,void 0),Xe=f(e,"logoTargetUrl",3,""),dt=f(e,"showNextPrevButtons",3,!1),at=f(e,"nextButtonActive",3,!1),Mt=f(e,"prevButtonActive",3,!1),je=f(e,"endScreenVideoTitle",3,void 0),lt=f(e,"endScreenVideoThumb",3,void 0),Bt=f(e,"isOneVideoPlaylist",3,!1),zt=f(e,"shadowRootContainer",3,void 0),Qe=f(e,"outerContainerRef",3,void 0),gt=f(e,"showMiniTimer",3,!1),Se=f(e,"fullScreenTarget",3,void 0),Pt=f(e,"playerStarted",3,!1),ge=f(e,"showEndScreen",3,!0),{notifications$:Y,graphIsOpened$:se}=zi(),Ve=e.store.getLogger().createComponentLog("Root component"),ke=e.store.interfaceLanguage$,qe=e.store.state.playbackState$,it=e.store.ads.playbackState,Ne=e.store.state.positionWithScrubbing$,ht=e.store.state.duration$,Ye=e.store.playerPhase,He=e.store.ui.isFullscreen,jt=e.store.ui.controlsVisible,Ni=e.store.ui.isControlsAvailable,Bi=e.store.ui.interactiveHideMobileControls,ho=e.store.ui.settingsMenu.visible$,Ko=e.store.ui.settingsMenu.openedByBtnKeyboard$,cn=e.store.ui.scrubbingInProgress,Qo=e.store.ui.volumeChangingInProgress,Vo=e.store.ui.debugPanelVisible,Wi=e.store.state.isLoaderVisible,Wt=e.store.state.isEnded$,Go=e.store.state.chromecastConnected$,_o=e.store.state.chromecastDeviceName$,eo=e.store.ads.postrollPassed,to=e.store.ui.mobileUnmuteButtonExpanded,G=e.store.ui.mobileUnmuteButtonVisible,Gt=e.store.state.isLive$,Xt=e.store.state.isPlaying$,Oi=e.store.state.isActiveLive$,ti=e.store.state.isRewindableLive$,Jt=e.store.state.crashed$,Tt=e.store.webApi.annotationsApi,vt=e.store.webApi.pictureInPictureApi,Rt=e.store.state.videoSize$,bo=e.store.state.currentSubtitle$,Pi=e.store.state.currentSubtitleCaptions$,Dn=e.store.state.duration$,mi=e.store.ui.playerSize,$o=e.store.ui.is3DVideo,si=e.store.ui.icon3DVideoVisible,pt=e.store.state.isInteractive,vi=e.store.state.isInteractiveTime$,yo=e.store.state.isInteractiveExpectation$,un=e.store.state.hasInteractiveBranches,Yt=e.store.ui.controls.disabledControls$,ui=e.store.ui.touched,xo=e.store.ui.overlayContainer$,pn=e.store.ui.autoplayNextEnabled$,wo=e.store.state.loadedMetadata$,io=e.store.actions.internal.closeSettingsMenu,jo=e.store.callbacks?.onDisabledPlayPrevChapterClick,No=e.store.callbacks?.onDisabledSeekToInteractiveClick,qi=e.store.actions.internal.setQuality,oo=K(void 0),Tr=K(void 0),nr=K(void 0),Hn=K(void 0),Fn,Un,fn,Gr=h(()=>(r()==="video"&&s()||r()==="ads"&&a()==="inactive")&&!l()),mn=K(void 0),{closeNotification:gi,notificationsToShow$:vn}=Y,Bo=h(()=>!!d().slow_video),Oo=()=>gi("slow_video"),gn=te(!1),hn,So=K(!1),kr=h(()=>u()!==nx.PLAYING),_n=K(!1),zn=h(()=>m()||g()||!n(So)&&(c()&&!!un||n(kr)&&$())),wi=K(!0),no=h(()=>e.uiConfig.features.thumbTimer&&gt()&&r()==="video"&&!w()&&!l()&&!pt&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),nt=K(!1),ai=h(()=>(ge()||e.showAutoplayNext&&S())&&!!je()&&!!lt()&&(e.showAds&&C()||!e.showAds)&&c()&&!l()&&!n(nt)),rr=K(!1);vt?.setContext(cl());let bn=_t=>{clearTimeout(Un),_t&&(G.set(!0),to.set(!0),Un=setTimeout(()=>{to.set(!1)},e.uiConfig.controls.collapseMobileUnmute),pt||hi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:bn});let Yo=()=>{clearTimeout(Fn),N(So,!1),g()&&Bi.set(!1)},hi=_t=>{Yo(),N(So,!0),Fn=setTimeout(()=>N(So,!1),_t);let Vt=_t-100;hn=setTimeout(()=>{P()&&gn.set(!1)},Vt>0?Vt:_t)},$n=$o.subscribe(_t=>{si.set(_t),_t&&(clearTimeout(fn),fn=setTimeout(()=>si.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ro=async(_t=ys())=>{if(_t&&!Cd.device.isIOS){let Vt=Bl(),To=Wn(),Ho=Cd.browser.isSamsungBrowser&&Vt===zt();_t=Vt===To||Ho}if(_t){hi(e.uiConfig.controls.hideTimeoutFullscreen);try{await vt?.remove()}catch(Vt){Ve({message:String(Vt)})}try{let Vt=M()?.width&&M()?.height?M():I();await rh(Vt)}catch(Vt){Ve({message:String(Vt)})}}He.set(_t),e.store.getAdmanWrapper().setFullscreen(_t),k()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},yn=_t=>{let Vt=_t;mi.set({width:Vt.target.width,height:Vt.target.height})};It(()=>(Pc(ro),e.uiConfig.features.annotationsInside&&Tt?.init(n(oo)),Zs(vt)&&(vt?.assignPlayerContainer(n(oo)),vt?.registryExternalEventHandlers({resize:yn})),N(wi,!Cd.device.isIphoneOrOldIpad),e.interactiveContainer&&j().parentElement?.insertBefore(e.interactiveContainer,j().nextSibling),()=>{clearTimeout(Fn),clearTimeout(hn),clearTimeout(Un),clearTimeout(fn),$n(),vt?.dispose().catch(_t=>{Ve({message:String(_t)})}),Ac(ro)}));let so=K(!0),xn=K(!0),wn=_t=>{let Vt=V()+(_t==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Vt<0?(N(so,!1),Vt=0):Vt>=q()&&(N(xn,!1),Vt=q()),N(_n,!0),e.seekTime(Vt)},Wn=()=>{let _t=Cd.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Qe()?n(oo):Qe(),Vt=_t.getRootNode(),To=Vt instanceof ShadowRoot?Vt.host:Vt,Ho=Se()instanceof HTMLElement&&Se().contains(To);return e.uiConfig.allowChangingFullscreenTarget&&Se()&&Ho?Se():_t},sr=async()=>{try{if(ys())await Ic(document),Ve({message:"exit fullscreen"});else{if(Ve({message:"request fullscreen"}),Cd.device.isIOS&&!z())return;await Ec(Wn())}}catch(_t){Ve({message:String(_t)})}},qn=()=>{io()},Co=_t=>{if(_t.preventDefault(),ie()){qn();return}if(!Pt()){e.firstStart(),hi(e.uiConfig.controls.hideTimeoutCursor);return}N(_n,!1),w()?Yo():hi(e.uiConfig.controls.hideTimeoutMobile)},Er=()=>{ui.set(!0)},Kn=()=>{pt||(gn.set(!0),hi(e.uiConfig.controls.hideTimeoutCursor))},ar=_t=>{jo&&(jo(_t),hi(e.uiConfig.controls.hideTimeoutMobile))},Do=_t=>{No&&(No(_t),hi(e.uiConfig.controls.hideTimeoutMobile))};De(()=>{xo.set(n(mn))}),De(()=>{jt.set((n(kr)||ie()||oe()||ve()||Q()||!n(ai)&&(c()||n(So)&&!n(_n)))&&!n(zn)&&r()==="video"&&!l()&&me())}),De(()=>{!oe()&&n(rr)&&!J()&&hi(e.uiConfig.controls.hideTimeoutMobile),N(rr,oe(),!0)}),De(()=>{N(so,V()>0),N(xn,!Pe()&&V()<q(),!0)}),De(()=>{zl(n(Hn),ie(),Me(),!0)});let Ot=F("aria_label_video_player"),Ki=F("video360");f1({fullScreenChangeHandler:ro,getFullscreenTarget:Wn}),m1({store:e.store,getFullscreenTarget:Wn});var ao=fx();bt("blur",Os,qn);var Qn=_(ao);va(Qn,{onClick:Co,get videoContainer(){return j()},set videoContainer(_t){j(_t)}});var lr=E(Qn,2);qs(lr,()=>"slot",!1,(_t,Vt)=>{we(_t,()=>({name:ma}))});var pi=E(lr,2);Ws(pi,Ie,_t=>{var Vt=px(),To=ce(Vt);let Ho=h(()=>r()!=="thumb"||l()||pt&&e.autoplay);ua(To,{get hidden(){return n(Ho)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var dr=E(To,2);{var cr=ze=>{var ae=ax(),xt=ce(ae);{var ii=$t=>{let Dt=h(()=>e.uiConfig.controls.seekStepMobile/1e3);su($t,{side:"left",get seekStep(){return n(Dt)},handleSingleFirstClick:Co,handleSecondClick:()=>wn("backward")})};L(xt,$t=>{n(so)&&$t(ii)})}var ri=E(xt,2);{var Ge=$t=>{let Dt=h(()=>e.uiConfig.controls.seekStepMobile/1e3);su($t,{side:"right",get seekStep(){return n(Dt)},handleSingleFirstClick:Co,handleSecondClick:()=>wn("forward")})};L(ri,$t=>{n(xn)&&$t(Ge)})}b(ze,ae)};L(dr,ze=>{e.canRewindLive&&ti&&!_e().has("TIMELINE")&&ze(cr)})}var ko=E(dr,2);{var Ir=ze=>{let ae=h(()=>e.live?.startTime);$d(ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(ae)}})};L(ko,ze=>{r()==="LiveWaitingStart"&&ze(Ir)})}var Pr=E(ko,2);{var Yr=ze=>{pa(ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Pr,ze=>{r()==="LiveWaitingRecover"&&ze(Yr)})}var rt=E(Pr,2);{var Et=ze=>{pa(ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(rt,ze=>{r()==="LiveWaitingRecord"&&ze(Et)})}var qt=E(rt,2);{var Ai=ze=>{var ae=lx();let xt;var ii=_(ae);Ol(ii,{get adsSlotId(){return Ue()},get adsParams(){return tt()},get adsPreviewParam(){return de()},get adsAutoplayParam(){return ee()},get duration(){return Be()}}),v(ae),B(ri=>xt=Z(ae,1,"ads-container svelte-7yl31d",null,xt,ri),[()=>({hidden:r()!=="ads"})]),b(ze,ae)};L(qt,ze=>{e.showAds&&Pt()&&ze(Ai)})}var Si=E(qt,2);{var Qi=ze=>{let ae=h(()=>!ge()&&e.showAutoplayNext&&S());Im(ze,{get title(){return je()},get thumb(){return lt()},get isHide(){return n(ae)},clickCloseIcon:()=>N(nt,!0)})};L(Si,ze=>{n(ai)&&je()&&lt()&&ze(Qi)})}var lo=E(Si,2);{var Zo=ze=>{hd(ze,{})};L(lo,ze=>{Re()&&ze(Zo)})}var Di=E(lo,2);{var _i=ze=>{var ae=dx(),xt=_(ae);Nl(xt,{get"aria-label"(){return Ki}}),v(ae),b(ze,ae)};L(Di,ze=>{re()&&ze(_i)})}var Ci=E(Di,2);{var Eo=ze=>{_d(ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return R()}})};L(Ci,ze=>{Q()&&ze(Eo)})}var Hi=E(Ci,2);{var co=ze=>{ca(ze,{get shifted(){return w()},get captions(){return ue()},get position(){return V()},get playerSize(){return I()},isMobile:!0})};L(Hi,ze=>{Ze().value!=="off"&&ze(co)})}var ur=E(Hi,2);{var Sn=ze=>{var ae=cx();ae.__click=[sx,ie,ho,qn];var xt=_(ae);bd(xt,{}),v(ae),b(ze,ae)};L(ur,ze=>{l()&&ze(Sn)})}var pr=E(ur,2);{var Ar=ze=>{let ae=h(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),xt=h(()=>r()==="ads"),ii=h(()=>e.canRewindLive&&Fe()!==0);gd(ze,{get bottomHidden(){return n(ae)},get showControls(){return w()},get bottomNoSmooth(){return P()},get isAds(){return n(xt)},get canRewindLive(){return n(ii)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Xe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return dt()},get nextButtonActive(){return at()},get prevButtonActive(){return Mt()},get isOneVideoPlaylist(){return Bt()},get customFullscreenSupported(){return n(wi)},get endScreenShown(){return n(ai)},toggleFullscreen:sr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:ar,onDisabledSeekToInteractiveClick:Do,get playerControlsWrapperRef(){return n(Tr)},set playerControlsWrapperRef(ri){N(Tr,ri,!0)},get playerControlsRef(){return n(nr)},set playerControlsRef(ri){N(nr,ri,!0)}})};L(pr,ze=>{Pt()&&ze(Ar)})}var Mr=E(pr,2);{var Cn=ze=>{var ae=ux(),xt=_(ae);wd(xt,{get supportLink(){return e.supportLink},get returnFocus(){return rx},get ref(){return n(Hn)},set ref(ii){N(Hn,ii,!0)}}),v(ae),b(ze,ae)};L(Mr,ze=>{ie()&&ze(Cn)})}var Tn=E(Mr,2);let Xo=h(()=>!n(no));Fl(Tn,{get isLive(){return le()},get isHidden(){return n(Xo)},get isPlaying(){return ne()},get position(){return V()},get duration(){return q()}});var Mi=E(Tn,2);{var kn=ze=>{ia(ze,{})};L(Mi,ze=>{n(Gr)&&ze(kn)})}var Gn=E(Mi,2);{var jn=ze=>{Kl(ze,{})};L(Gn,ze=>{Ee()&&ze(jn)})}var fr=E(Gn,2);{var Lr=ze=>{Sd(ze,{onClose:Oo,onSelectAutoQuality:()=>{qi("auto"),Oo()}})};L(fr,ze=>{n(Bo)&&ze(Lr)})}b(_t,Vt)});var jr=E(pi,2);Je(jr,_t=>N(mn,_t),()=>n(mn)),v(ao),Je(ao,_t=>N(oo,_t),()=>n(oo)),B(()=>Ae(ao,"aria-label",Ot)),bt("click",ao,Er,!0),bt("focusin",ao,Kn,!0),b(t,ao),H(),o()}st(["click"]);function lu(t){let e="";return Ii(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Ii(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Ii(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Ii(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Ii(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Ii(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Ii(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Ii(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Ii(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Ii(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Ii(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Ii(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Ii(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Ii(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Ii(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Ii(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Ii(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Ii(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Ii(t.font)&&(e+=`--font:${t.font};`),Ii(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Ii(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Ii(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as vx}from"@vkontakte/videoplayer-shared/evergreen";var gx=A('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),hx={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 Am(t,e){D(e,!0),U(t,hx);let[i,o]=Le(),r=()=>y(ve,"$playerSize",i),s=()=>y(k,"$isPlaying$",i),a=()=>y(M,"$duration$",i),l=()=>y(z,"$positionWithScrubbing$",i),d=()=>y(C,"$playerPhase",i),u=()=>y(P,"$crashed$",i),m=()=>y(V,"$currentSubtitle$",i),g=()=>y(q,"$currentSubtitleCaptions$",i),c=()=>y(I,"$positionExact$",i),$=()=>y(ie,"$isLive$",i),w=()=>y(oe,"$isRewindableLive$",i),x=f(e,"outsideDuration",3,0),S=f(e,"videoContainer",15),{playerPhase:C,state:{crashed$:P,duration$:M,positionExact$:I,isPlaying$:k,currentSubtitle$:V,currentSubtitleCaptions$:q,positionWithScrubbing$:z,isLive$:ie,isRewindableLive$:oe},ui:{playerSize:ve,controls:Q},actions:{internal:{getVideoElement:me}}}=xe(),J=8,Pe=K(!1),Me=Qt({}),Ie=()=>{N(Pe,!0)},_e=()=>{N(Pe,!1)},Re=vx(Ga,260);De(()=>{r(),Re(me(),Q,Me,n(Pe))});let re=h(()=>s()?qo(a()-l()):qo(isFinite(a())?a():x()));var R=gx(),Ze=_(R);va(Ze,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Be){S(Be)}});var ue=E(Ze,2);qs(ue,()=>"slot",!1,(Be,Xe)=>{we(Be,()=>({name:ma}))});var Fe=E(ue,2);let le=h(()=>d()!=="thumb"||u());ua(Fe,{get hidden(){return n(le)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ne=E(Fe,2);{var Ee=Be=>{ca(Be,{shifted:!1,get captions(){return g()},get position(){return c()},get playerSize(){return r()}})};L(ne,Be=>{m().value!=="off"&&Be(Ee)})}var j=E(ne,2),Ue=_(j);Hl(Ue,{get isLive(){return $()},get isPlaying(){return s()},get time(){return n(re)}}),v(j);var tt=E(j,2);let de;var ee=_(tt);ra(ee,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:J,tooltipRightOffset:J,get ref(){return Me.timeline},set ref(Be){Me.timeline=Be}}),v(tt),v(R),B(Be=>de=Z(tt,1,"timeline svelte-1qfjf44",null,de,Be),[()=>({visible:n(Pe)})]),bt("mouseenter",R,Ie),bt("mouseleave",R,_e),b(t,R),H(),o()}var xx=A("<div><!></div>"),wx={hash:"svelte-oba660",code:`.root.svelte-oba660 {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
358
358
 
359
359
  /* USER DEFINED COLORS */
360
360
 
@@ -387,5 +387,5 @@ Try switching the\xA0quality to\xA0Auto.`},Xg=U0;var rs=new Map;rs.set(eh.EN,Xg)
387
387
  /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}*.focus-hidden:focus-visible {box-shadow:none;}
388
388
  /* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
389
389
 
390
- /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Lm(t,e){D(e,!0),U(t,xx);let[i,o]=Re(),r=()=>y(Nt,"$isLive$",i),s=f(e,"sources",7),a=f(e,"store",7),l=f(e,"microStoresRoot",7),d=f(e,"videoConfig",7),u=f(e,"uiConfig",7),m=f(e,"title",7),g=f(e,"thumbUrl",7),c=f(e,"interactiveContainer",7),$=f(e,"interactiveController",7),w=f(e,"subtitles",7),x=f(e,"live",7),S=f(e,"preload",7),C=f(e,"autoplay",7),A=f(e,"volume",7,void 0),M=f(e,"muted",7,void 0),I=f(e,"fromTime",7),k=f(e,"canRewindLive",7),V=f(e,"showAds",7),q=f(e,"adsSlotId",7,void 0),z=f(e,"adsParams",7,void 0),ie=f(e,"adsPreviewParam",7,void 0),oe=f(e,"adsAutoplayParam",7,void 0),me=f(e,"duration",7,void 0),Q=f(e,"logoClickable",7),fe=f(e,"logoHidden",7),J=f(e,"isMobile",7),Pe=f(e,"showNextPrevButtons",7,!1),Le=f(e,"nextButtonActive",7,!1),Ae=f(e,"prevButtonActive",7,!1),he=f(e,"endScreenVideoTitle",7,void 0),Ve=f(e,"endScreenVideoThumb",7,void 0),re=f(e,"isOneVideoPlaylist",7,!1),R=f(e,"supportLink",7),Ye=f(e,"shadowRootContainer",7),de=f(e,"outerContainerRef",7),Fe=f(e,"fullScreenTarget",7,void 0),ae=f(e,"failoverHosts",7,void 0),ne=f(e,"showMiniTimer",7,!1),Ie=f(e,"saveRate",7),G=f(e,"seekToInteractive",7,v1),ze=f(e,"playPrevChapter",7,v1),et=f(e,"volumeMultiplier",7),ce=f(e,"showAutoplayNext",7),ee=f(e,"showEndScreen",7,!0),Ne=f(e,"keyboardControls",15,void 0),{subscribers:je,stores:dt}=l();bg(u());let at=Rt(),Tt=u().logoLink,Ze=a().ui.debugPanelVisible,lt=a().ui.playerSize,Nt=a().state.isLive$,qe=a().state.isInteractive&&Mm.device.isAndroid,vt=K(void 0),ke=null,St=K(!1);a().getAdmanWrapper().init({switchFromAdsToVideo:a().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:a().actions.internal.switchFromVideoToAds,setMuted:a().actions.external.setMuted},a().ads,{isMobile:a().ui.isMobile,mobileUnmuteButtonVisible:a().ui.mobileUnmuteButtonVisible,vsid:a().vsid}),Ig(a(),dt),Oe(()=>{a().ui.isMobile.set(J()),d().callbacks?.onDomReady?.()});let ve=(j=!1)=>{N(St,!0),j?a().actions.external.firstStart(V()):a().actions.internal.firstStart(V())},Y=()=>{if(at.features.qualityDetailsSubMenuEnabled){let j=jg(a().videoId);if(j)switch(j.type){case"high_quality":a().actions.internal.setHighQualityEnabled(!0,j.appliesTo);break;case"traffic_saving":a().actions.internal.setTrafficSavingEnabled(!0,j.appliesTo);break;case"exact_quality":a().actions.internal.setQuality(j.quality);break}}else{Yg(a().videoId),kp()&&a().actions.internal.setTrafficSavingEnabled(!0);let Qt=wp(a().videoId);Qt&&a().actions.internal.setQuality(Qt)}};function se(j){let Qt=s()||j;Qt&&a().initVideo({container:n(vt),sources:Qt,failoverHosts:ae(),subtitles:w(),volumeMultiplier:et()});let ei=_x.get(Pl)==="true";Ze.set(ei),I()>0&&a().actions.external.seekTime(I());let Oi=J()?at.volumeDefault:A()??$c()??at.volumeDefault,ii=M()??zg();if(a().actions.external.setVolume(Oi),a().actions.external.setMuted(ii),a().getAdmanWrapper().setInitialVolume(ii?0:Oi),Y(),at.features.saveRate&&Ie()){let Gt=Kg();Gt&&!r()&&a().actions.internal.setPlaybackRate(Gt)}if(ce()){let Gt=Gg();Gt&&a().actions.internal.setAutoplayNextEnabled(Gt)}a().ui.isAutoplay.set(C()),C()?ve():S()&&at.features.preload&&a().actions.internal.preload()}let De=j=>{if(window.ResizeObserver){let Qt,ei;ke=new ResizeObserver(bx(Oi=>{let ii=Oi[0];if(ii.contentBoxSize){let Gt=Array.isArray(ii.contentBoxSize)?ii.contentBoxSize[0]:ii.contentBoxSize;Qt=Gt.inlineSize,ei=Gt.blockSize}else ii.contentRect&&(Qt=ii.contentRect.width,ei=ii.contentRect.height);lt.set({width:Qt,height:ei})},300)),ke.observe(j)}lt.set({width:j.clientWidth,height:j.clientHeight})},Se=()=>{document.hidden&&a().actions.external.stop()};Et(()=>{qe&&document.addEventListener("visibilitychange",Se),at.debugLog&&a().actions.internal.startLogging(),De(n(vt));let j=je.map(ei=>ei.init({store:a(),microStores:dt,config:d(),interactiveController:$(),uiConfig:u()})),Qt=()=>{qe&&document.removeEventListener("visibilitychange",Se),ke?.disconnect(),j.forEach(ei=>ei.unsubscribe()),a().destroy()};return x()?.status==="upcoming"?(a().actions.internal.setLiveWaitingStart(!0),Qt):x()?.status==="waiting"?(a().actions.internal.setLiveWaitingRecover(!0),Qt):(x()?.status==="finished"||x()?.status==="postlive")&&!Object.keys(s()||[]).length?(a().actions.internal.setLiveWaitingRecord(!0),Qt):(se(),Qt)});function xe(){n(St)?a().actions.external.play():ve(!0)}function Je(){a().actions.external.pause()}function ht(j){a().actions.external.setMuted(j)}function Mt(){a().actions.external.toggleSubtitle()}function Ge(){a().webApi.slotsApi?.haveSlots()&&a().actions.external.hideControls()}function He(){a().webApi.slotsApi?.haveSlots()&&a().actions.external.showControls()}function Yt(j){J()||j>=0&&j<=1&&a().actions.external.setVolume(j)}function Ai(j){a().actions.internal.seekTime(j,$x.UNKNOWN)}function Qi(j){a().actions.external.seekEpisodeStartTime(j)}function Lo(){a().actions.external.returnFocusToEpisodes()}function Wo(j){a().actions.external.setPlaybackRate(j)}function pn(j){a().actions.external.setAutoQualityLimits(j)}let qo=lu(at.view),Ro=d().playerView==="preview";var Gi=yx();let zt;var Ko=_(Gi);{var ro=j=>{Am(j,{get store(){return a()},get uiConfig(){return at},get thumbUrl(){return g()},get interactiveContainer(){return c()},get live(){return x()},get autoplay(){return C()},get canRewindLive(){return k()},get showAds(){return V()},get adsSlotId(){return q()},get adsParams(){return z()},get adsPreviewParam(){return ie()},get adsAutoplayParam(){return oe()},get duration(){return me()},get logoClickable(){return Q()},get logoHidden(){return fe()},get logoTargetUrl(){return Tt},get nextButtonActive(){return Le()},get prevButtonActive(){return Ae()},get endScreenVideoTitle(){return he()},get endScreenVideoThumb(){return Ve()},get isOneVideoPlaylist(){return re()},get supportLink(){return R()},get shadowRootContainer(){return Ye()},get outerContainerRef(){return de()},get fullScreenTarget(){return Fe()},get showMiniTimer(){return ne()},get playerStarted(){return n(St)},get seekToInteractive(){return G()},get playPrevChapter(){return ze()},firstStart:ve,seekTime:Ai,get showEndScreen(){return ee()},get showAutoplayNext(){return ce()},get showNextPrevButtons(){return Pe()},get videoContainer(){return n(vt)},set videoContainer(Qt){N(vt,Qt,!0)}})},so=j=>{var Qt=Be(),ei=le(Qt);{var Oi=Gt=>{Pm(Gt,{get thumbUrl(){return g()},get outsideDuration(){return me()},get canRewindLive(){return k()},get videoContainer(){return n(vt)},set videoContainer(xt){N(vt,xt,!0)}})},ii=Gt=>{Em(Gt,{get store(){return a()},get uiConfig(){return at},get title(){return m()},get thumbUrl(){return g()},get interactiveContainer(){return c()},get live(){return x()},get autoplay(){return C()},get canRewindLive(){return k()},get showAds(){return V()},get adsSlotId(){return q()},get adsParams(){return z()},get adsPreviewParam(){return ie()},get adsAutoplayParam(){return oe()},get duration(){return me()},get logoClickable(){return Q()},get logoHidden(){return fe()},get logoTargetUrl(){return Tt},get nextButtonActive(){return Le()},get prevButtonActive(){return Ae()},get endScreenVideoTitle(){return he()},get endScreenVideoThumb(){return Ve()},get isOneVideoPlaylist(){return re()},get supportLink(){return R()},get shadowRootContainer(){return Ye()},get outerContainerRef(){return de()},get fullScreenTarget(){return Fe()},get showMiniTimer(){return ne()},get playerStarted(){return n(St)},get seekToInteractive(){return G()},get playPrevChapter(){return ze()},firstStart:ve,get showEndScreen(){return ee()},get showAutoplayNext(){return ce()},get showNextPrevButtons(){return Pe()},get videoContainer(){return n(vt)},set videoContainer(xt){N(vt,xt,!0)},get keyboardControls(){return Ne()},set keyboardControls(xt){Ne(xt)}})};L(ei,Gt=>{Ro?Gt(Oi):Gt(ii,!1)})}b(j,Qt)};L(Ko,j=>{J()?j(ro):j(so,!1)})}v(Gi),B(j=>{zt=Z(Gi,1,"root svelte-oba660",null,zt,j),it(Gi,qo)},[()=>({"root--miui-browser":Mm.device.isMobile&&Mm.browser.isMiuiBrowser,"visible-outside":Ro})]),b(t,Gi);var $o=H({initVideo:se,play:xe,pause:Je,setMuted:ht,toggleSubtitle:Mt,hideControls:Ge,showControls:He,setVolume:Yt,seekTime:Ai,seekEpisodeStartTime:Qi,returnFocusToEpisodes:Lo,setPlaybackRate:Wo,setAutoQualityLimits:pn,get sources(){return s()},set sources(j){s(j)},get store(){return a()},set store(j){a(j)},get microStoresRoot(){return l()},set microStoresRoot(j){l(j)},get videoConfig(){return d()},set videoConfig(j){d(j)},get uiConfig(){return u()},set uiConfig(j){u(j)},get title(){return m()},set title(j){m(j)},get thumbUrl(){return g()},set thumbUrl(j){g(j)},get interactiveContainer(){return c()},set interactiveContainer(j){c(j)},get interactiveController(){return $()},set interactiveController(j){$(j)},get subtitles(){return w()},set subtitles(j){w(j)},get live(){return x()},set live(j){x(j)},get preload(){return S()},set preload(j){S(j)},get autoplay(){return C()},set autoplay(j){C(j)},get volume(){return A()},set volume(j){A(j)},get muted(){return M()},set muted(j){M(j)},get fromTime(){return I()},set fromTime(j){I(j)},get canRewindLive(){return k()},set canRewindLive(j){k(j)},get showAds(){return V()},set showAds(j){V(j)},get adsSlotId(){return q()},set adsSlotId(j){q(j)},get adsParams(){return z()},set adsParams(j){z(j)},get adsPreviewParam(){return ie()},set adsPreviewParam(j){ie(j)},get adsAutoplayParam(){return oe()},set adsAutoplayParam(j){oe(j)},get duration(){return me()},set duration(j){me(j)},get logoClickable(){return Q()},set logoClickable(j){Q(j)},get logoHidden(){return fe()},set logoHidden(j){fe(j)},get isMobile(){return J()},set isMobile(j){J(j)},get showNextPrevButtons(){return Pe()},set showNextPrevButtons(j){Pe(j)},get nextButtonActive(){return Le()},set nextButtonActive(j){Le(j)},get prevButtonActive(){return Ae()},set prevButtonActive(j){Ae(j)},get endScreenVideoTitle(){return he()},set endScreenVideoTitle(j){he(j)},get endScreenVideoThumb(){return Ve()},set endScreenVideoThumb(j){Ve(j)},get isOneVideoPlaylist(){return re()},set isOneVideoPlaylist(j){re(j)},get supportLink(){return R()},set supportLink(j){R(j)},get shadowRootContainer(){return Ye()},set shadowRootContainer(j){Ye(j)},get outerContainerRef(){return de()},set outerContainerRef(j){de(j)},get fullScreenTarget(){return Fe()},set fullScreenTarget(j){Fe(j)},get failoverHosts(){return ae()},set failoverHosts(j){ae(j)},get showMiniTimer(){return ne()},set showMiniTimer(j){ne(j)},get saveRate(){return Ie()},set saveRate(j){Ie(j)},get showAutoplayNext(){return ce()},set showAutoplayNext(j){ce(j)},get seekToInteractive(){return G()},set seekToInteractive(j){G(j)},get playPrevChapter(){return ze()},set playPrevChapter(j){ze(j)},get volumeMultiplier(){return et()},set volumeMultiplier(j){et(j)},get showEndScreen(){return ee()},set showEndScreen(j){ee(j)},get keyboardControls(){return Ne()},set keyboardControls(j){Ne(j)}});return o(),$o}var wx=$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 Rm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=wx();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}function Vm(t,e){let i=f(e,"isWhite",3,!1),o=h(()=>i()?"color: #fff;":"color: #909499;");Rm(t,{get style(){return n(o)}})}var Sx=P('<div class="title svelte-1y9fytq"> </div>'),Cx=P('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Tx={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function Nm(t,e){U(t,Tx);var i=Cx(),o=_(i);{var r=l=>{var d=Sx(),u=_(d,!0);v(d),B(()=>ue(u,e.title)),b(l,d)};L(o,l=>{e.title&&l(r)})}var s=E(o,2);{var a=l=>{let d=h(()=>!!e.thumbUrl);Vm(l,{get isWhite(){return n(d)}})};L(s,l=>{(!e.title||!e.thumbUrl)&&l(a)})}v(i),B(()=>it(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}import{now as Gx}from"@vkontakte/videoplayer-shared/evergreen";import{cloneDeepWith as jx,InterfaceLanguage as Yx,isNonNullable as Um,Logger as Zx,Observable as Xx,Subscription as w1,once as Jx,InternalsExposure as e5,skip as t5}from"@vkontakte/videoplayer-shared/evergreen";import{clientChecker as S1,isMobile as i5}from"@vkontakte/videoplayer-core/evergreen";import{OneStat as o5,ThinOneStat as n5}from"@vkontakte/videoplayer-statistics/evergreen";import{Logger as kx,Subscription as Ex}from"@vkontakte/videoplayer-shared/evergreen";var du=class{constructor(){this.subscription=new Ex,this.logger=new kx,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=ge(e.state.currentPlaybackRate$),r=ge(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{navigator.mediaSession.setPositionState?.({position:i,playbackRate:o,duration:r})}catch{this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Dm,detectEmbed as Mx}from"@vkontakte/videoplayer-shared/evergreen";var Ix=$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=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ix();Ce(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i}));var r=_(o);pe(r,()=>e.children??X),be(),v(o),b(t,o)}var Ax=P('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Px={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function Om(t,e){D(e,!0),U(t,Px);let[i,o]=Re(),r=()=>y(u,"$interfaceLanguage$",i),s=()=>y(m,"$isMobile$",i),a=we(),l=Rt(),d=!!a.webApi.pictureInPictureApi,u=a.interfaceLanguage$,m=a.ui.isMobile,g=a.ui.t,c=h(()=>r()&&g("pip_dummy_title")),$=lu(l.view);var w=Ax();let x;var S=_(w);let C;var A=_(S);Bm(A,{}),v(S);var M=E(S,2),I=_(M,!0);v(M),v(w),B((k,V)=>{x=Z(w,1,"player-pip-dummy svelte-1pbsod4",null,x,k),it(w,$),C=Z(S,1,"dummy-image svelte-1pbsod4",null,C,V),ue(I,n(c))},[()=>({"is-pip-api":d}),()=>({desktop:!s()})]),b(t,w),H(),o()}var Lx=460,Rx=280,Td=class{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new Dm(!1),isEnabled$:new Dm(!1),type:1};constructor({enabled:e=!0}={enabled:!0}){this.info.isEnabled$=new Dm(e)}isSupported(){let{isEmbed:e}=Mx();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Lx,height:Rx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(l=>l.cssText).join(" ")).filter(Boolean).join(`
391
- `),i=document.createElement("style");i.textContent=e;let o=this.createStretchedContainer(),r=o.attachShadow({mode:"open"});r.append(i),r.append(this.playerDomElement);let s={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=os(Om,s),this.pipWindow?.document.body.append(o),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(zs(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async remove(){return new Promise(e=>{this.pipWindow&&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 g1(t){return t instanceof Td}var cu=class{static getLatestSupportedVersion(e){let i=new Ys(e),o=new Td(e);if(o.isSupported())return o;if(i.isSupported())return i}};function kd(t,e){let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let r of i)o[r]=e[r]??t[r]??void 0;return o}var h1="Inner error. Unexpectedly root annotation container null reference exception",_1="Annotation with such name already exists",b1="Annotation with such name does not exist";var Xa=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Vx,Subscription as Nx,throttleFn as Bx}from"@vkontakte/videoplayer-shared/evergreen";var Ox="1",Dx=100,uu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Nx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Bx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Dx);this.subscriptions.add(Vx(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},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 Xa(h1);if(this.annotations.has(e))throw new Xa(_1);i.style.zIndex=i.style.zIndex??Ox,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 Xa(b1);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 r=e.offsetTop,s=e.offsetLeft,a=e.offsetWidth,l=e.offsetHeight;return r<0||s<0||s+a>i||r+l>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as pu,Subscription as Hx}from"@vkontakte/videoplayer-shared/evergreen";var Mo=class{init({store:e,microStores:i,interactiveController:o,config:r}){return pu(e),pu(i),pu(r),r.interactiveData&&pu(o),this.subscription=new Hx,this.subscription}};var Ed=class extends Mo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...te(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var Id=class extends Mo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...te(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:s}=i,{fakeIsPlaying$:a}=r,{isInteractiveExpectation$:l,isPlaying$:d}=s.state,{controlsVisible:u,isMobile:m}=s.ui,g=ge(m),c=()=>g&&ge(u);return o.add(u.subscribe($=>{if(!g)return;let w=ge(a);ge(d)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(d.subscribe($=>{this.state$.set(!$||c())})),o.add(a.subscribe($=>{if($===null)return;let w=ge(l);if(c()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var Ad=class extends Mo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=te("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(a=>a.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as Fx}from"@vkontakte/videoplayer-shared/evergreen";var Hm=te(!1),fu=null,Pd=class extends Mo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Hm,set:(i,o=!1)=>{i!==ge(Hm)&&(this.clearTimeout(),Hm.set(i),!i&&fu&&(fu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:a,isPlaying$:l}=r.state,d=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(d.subscribe(g=>{ge(a)&&g&&this.state$.set(!1)}));let m=s?.interactiveData||{tooltipHelpHintActive:!1};return o.add(Fx({isPlaying$:l,isInteractiveTime$:a,interactiveTimeIndicator:u}).subscribe(({isPlaying$:g,isInteractiveTime$:c,interactiveTimeIndicator:$})=>{if(!(!g||!$?.isDisplayed)){if(!c)return this.state$.set(!1);m.tooltipHelpHintActive&&fu===null&&(fu=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),r.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as Ux,noop as zx}from"@vkontakte/videoplayer-shared/evergreen";var Md=class extends Mo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...te(null),toggle:zx};this.checkIfShouldHide=i=>ks(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,a=r.ui.currentGridType$,l=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(ge(a)))return;let d=ge(this.state$),{isEnded$:u,playbackState$:m}=r.state,{disabledControls$:g}=r.ui.controls,c=ge(u),$=ge(m);if(d)try{await s?.toggleGraphView(!1),this.state$.set(!1),g.remove(gp),!c&&this.graphMadePause&&r.actions.internal.play()}catch{l({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await s?.toggleGraphView(!0),this.state$.set(!0),g.add(gp),!c&&this.graphMadePause&&r.actions.internal.pause()}catch{l({message:"Cant show graph"})}}},o.add(Ux({graphIsOpened:this.state$,currentGridType:a}).subscribe(async({graphIsOpened:d,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&d)try{await s?.toggleGraphView(!1),this.state$.set(!1)}catch{l({message:"Cant hide graph"})}})),o}};import{ValueSubject as $1}from"@vkontakte/videoplayer-shared/evergreen";var Ld=class extends Mo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:te(!1),isEnabled$:te(!1),type$:te(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:s,isEnabled$:a,type:l}}=r.webApi.pictureInPictureApi||{info:{isActive$:new $1(!1),isEnabled$:new $1(!1)}};return o.add(s.subscribe(d=>{this.state$.isActive$.set(d)})),o.add(a.subscribe(d=>{this.state$.isEnabled$.set(d)})),this.state$.type$.set(l),o}};import{filter as Kx,filterChanged as Qx}from"@vkontakte/videoplayer-shared/evergreen";import{safeStorage as Fm}from"@vkontakte/videoplayer-shared/evergreen";var y1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Wx({maxCount:t}):void 0,e!==0?qx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},Wx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{e[i]=(e[i]??0)+1,Fm.set("videoplayer_notifications_manager_count",JSON.stringify(e[i]??0))},canShowNotification:i=>(e[i]??0)<t}},qx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Fm.get(e)||"{}")}catch{return{}}},o=s=>Fm.set(e,JSON.stringify(s)),r=s=>{let a=i();delete a[s],o(a)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let a=i()[s];if(a){let l=Date.now()-a.launchTime>t;return l&&r(s),l}else return!0}}};var Rd=class extends Mo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:te({}),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:r,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:a,showSlowVideoNotification:l,forceAutoQualityWhenSevereStallHappens:d}}}=i;this.notificationManager=y1({maxShowCount:s,timeout:a});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe(Qx(),Kx(m=>m)).subscribe(()=>{l&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(d&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var x1=()=>[Ed,Id,Ad,Pd,Md,Ld,Rd].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 Vd}from"@vkontakte/videoplayer-shared/evergreen";var mu=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{this.lastFocusedNode?.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var r5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Yx.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:i5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},un=K(void 0),vu=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;focusManager;prevIsid=void 0;isInited=!1;internalsExposure=null;shadowDOMCallbacksDisabled=!1;constructor(){super(),Vd.create("ui"),this.logger=new Zx,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new w1,this.interactiveSubscription=new w1,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=Kt({title:e,thumbUrl:i}),r={target:this.playerContainer,props:o};this.svelteStubComponent=os(Nm,r)}disconnectedCallback(){this.shadowDOMCallbacksDisabled||(this.annotationsApi?.destroy(),this.slotsApi?.destroy(),this.focusManager?.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(),Vd.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={})=>{if(!this.videoConfig)return;let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,statVKAppId:l,refreshStatAuthToken:d,autoplay:u,isMobile:m,isTouch:g,refDomain:c,deviceId:$,interactiveData:w}=kd(this.videoConfig,i),x=w?.projectInfo?.pid,S=this.interactiveController?.state.isReplay$.getValue()??!1;S&&(this.prevIsid=void 0);let{unitedVideoId:C,isClip:A=!1}=e;if(this.uiConfig.features.statistics&&C)try{return new o5({movieId:C,albumId:o,place:r,trackCode:a,vkAppId:l,autoplay:(u&&!this.interactiveController)??!1,mobile:g??m,clip:A,refDomain:c,deviceId:$,...x&&(!this.isInited||S)&&{projectId:Number(x)}},{refreshAuthToken:d,userSalt:s,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(I){console.error(I),this.log({message:I.message})}};createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:s}=kd(this.videoConfig,i),{unitedVideoId:a}=e;if(this.uiConfig.features.thinStatistics&&a)return new n5.ThinOneStat({deviceId:o,movieId:a,preload:r},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:l,autoplay:d,volume:u,muted:m,fromTime:g,canRewindLive:c,supportLink:$,showAds:w,adsSlotId:x,adsParams:S={},adsPreviewParam:C,adsAutoplayParam:A,interfaceLanguage:M,isCyrillicRelatedInterface:I,logoClickable:k,logoHidden:V,isMobile:q,isTouch:z,isAudioDisabled:ie,isLiveCatchUpMode:oe,fullScreenTarget:me,failoverHosts:Q,canDownload:fe,callbacks:J,interactiveData:Pe,showThumbTimer:Le,additionalButtons:Ae=[],additionalSettingsMenuItems:he=[],additionalContextMenuItems:Ve=[],repeat:re,saveRate:R,volumeMultiplier:Ye,showEndScreen:de,showAutoplayNext:Fe}=kd(this.videoConfig,i),{sources:ae,title:ne,thumbUrl:Ie,unitedVideoId:G,isClip:ze=!1,duration:et,adsParams:ce={},videoEpisodes:ee,previewThumbsData:Ne,subtitles:je,live:dt}=e,at={...S,...ce},Tt=this.getNextVideoInfo(),Ze={sources:ae,title:ne,thumbUrl:Ie,subtitles:je,unitedVideoId:G,isClip:ze,live:dt,albumId:r,statPlace:s,autoplay:d,muted:m,volume:u,fromTime:g,canRewindLive:c,showAds:w,adsSlotId:x,adsParams:at,adsPreviewParam:C,adsAutoplayParam:A,duration:et,logoClickable:k,logoHidden:V,isTouch:z??q,repeat:re,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Tt.nextVideoTitle,endScreenVideoThumb:Tt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},lt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Ze)}`});let Nt=this.interactiveController?.state.statistics$.getValue(),Ut=Nt?.oneStat||this.createOneStat(e,i),qe=this.createThinOneStat(e,i);(Ut||qe)&&(this.statistics=new Kc(Ut,qe,Nt?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new js(this.uiConfig.sentry,{version:Da,env:hc},{movieId:G,albumId:r,place:s,autoplay:(d&&!this.interactiveController)??!1,mobile:z??q,clip:ze}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat?.isid$.getValue()),this.sentry={...this.sentry,...js.getInstance()};let ke=!!Pe,St=[],ve="tooltip_interactive_go_back_disabled_first";if(ke&&this.interactiveController){let Se=this.interactiveController.state.isInitialChapter$.getValue(),xe=this.interactiveController.getHistoryState();Se&&St.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||St.push("SEEK_TO_INTERACTIVE_BUTTON"),xe.hasPrevChapter$.getValue()||(St.push("PLAY_PREV_CHAPTER_BUTTON"),Se||(xe.isGoBackLimited$.getValue()?ve="tooltip_interactive_go_back_disabled_limit":ve="tooltip_interactive_go_back_disabled"))}let Y=()=>{this.isInited=!1,this.prevIsid=void 0;let Se=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();J.onReplayInteractiveVideo&&!Se?J.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Bh({player:o,interfaceLanguage:M,isCyrillicRelatedInterface:I,videoId:G,isClip:ze,isLiveCatchUpMode:oe,isAudioDisabled:ie,statAuthToken:a,callbacks:J,webApi:lt,videoEpisodes:ee,previewThumbsData:Ne,canDownload:fe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:St,isInteractive:ke,saveRate:R,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Y,playPrevChapterDisabledTooltip:ve,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?Ae:[],additionalSettingsMenuItems:he??[],additionalContextMenuItems:Ve??[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:re&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:se}=this.microStoresRoot=x1(),De=()=>{if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(xe=>J?.onCurrentFormatChanged?.(xe))),this.subscription.add(se.interactiveControlsOpacity$.subscribe(xe=>{xe!==null&&this?.interactiveController?.setDisabledControls(xe)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(xe=>J?.onThroughputEstimationChanged?.(xe))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(xe=>J?.onTrafficSavingEnabledChanged?.(xe))),this.subscription.add(new Xx(xe=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Je=>xe.next(Je)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?t5(1):xe=>xe).subscribe(xe=>J?.onCurrentPlaybackRateChanged?.(xe))),this.subscription.add(this.store.state.volume$.subscribe(xe=>J?.onVolumeChange?.(xe))),this.subscription.add(this.store.state.muted$.subscribe(xe=>{if(xe)J?.onMute?.();else{let Je=(this.store?.state.volume$&&ge(this.store.state.volume$))??0;J?.onUnmute?.(Je)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(xe=>J?.onVideoBitrateChanged?.(xe))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(xe=>{let Je=this.store?.ui.controls.disabledControls$;Je&&(xe&&!Je.includes(Ml)&&Je.add(Ml),xe||Je.remove(Ml))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async xe=>{if(!S1.browser.isSamsungBrowser||!xe||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(xe=>J?.onVSIDChanged?.(xe))),this.initMediaSession(),N(un,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ae,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ne,thumbUrl:Ie,subtitles:je,live:dt,preload:l,autoplay:d,muted:m,volume:u,fromTime:g,canRewindLive:c,supportLink:$,showAds:w,adsSlotId:x,adsParams:at,adsPreviewParam:C,adsAutoplayParam:A,duration:et,logoClickable:k,logoHidden:V,isMobile:z??q,failoverHosts:Q,fullScreenTarget:me,saveRate:R,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Le,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Tt.nextVideoTitle,endScreenVideoThumb:Tt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ye,showEndScreen:de,showAutoplayNext:Fe},!0);let Se={target:this.playerContainer,props:n(un)};this.svelteRootComponent=os(Lm,Se),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?Vd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Vd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?S1.isInited$.subscribe(Se=>{Se&&(console.log("UI SDK async start"),De())}):De()}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(s=>o.onPlayerPhaseChanged?.(s))).add(e.state.playbackState$.subscribe(s=>s&&o.onPlaybackStateChanged?.(s))).add(e.state.isLive$.subscribe(s=>o.onIsLiveChanged?.(s))).add(e.state.isActiveLive$.subscribe(s=>o.onIsActiveLiveChanged?.(s))).add(e.state.isAudioAvailable$.subscribe(s=>o.onIsAudioAvailableChanged?.(s))).add(e.state.currentQuality$.subscribe(s=>o.onCurrentQualityChanged?.(s))).add(e.state.availableQualities$.subscribe(s=>o.onAvailableQualitiesChanged?.(s.map(({value:a})=>a).filter(a=>a!=="auto")))).add(e.state.availableAudioStreams$.subscribe(s=>{s.length>1&&o.onAudioLanguagesAvailable&&o.onAudioLanguagesAvailable()})).add(i.pictureInPicture$.isActive$.subscribe(s=>s?o.onPiPEnter?.():o.onPiPExit?.()));let r=o?.uiInfo;r&&this.subscription.add(e.ui.controlsVisible.subscribe(s=>r.onControlsVisibleChanged?.(s))).add(e.ui.isMobile.subscribe(s=>r.onIsMobileChanged?.(s))).add(e.ui.playerSize.subscribe(s=>r.onPlayerSizeChanged?.(s))).add(e.ui.controls.prevButton.subscribe(s=>r.onPrevButtonChanged?.(s))).add(e.ui.controls.playButton.subscribe(s=>r.onPlayButtonChanged?.(s))).add(e.ui.controls.replayButton.subscribe(s=>r.onReplayButtonChanged?.(s))).add(e.ui.controls.nextButton.subscribe(s=>r.onNextButtonChanged?.(s))).add(e.ui.controls.playPrevChapterButton.subscribe(s=>r.onPlayPrevChapterChanged?.(s))).add(e.ui.controls.seekToInteractiveButton.subscribe(s=>r.onSeekToInteractiveButtonChanged?.(s))).add(e.ui.controls.interactiveGraphButton.subscribe(s=>r.onGraphButtonChanged?.(s))).add(e.ui.controls.liveButton.subscribe(s=>r.onLiveButtonChanged?.(s))).add(e.ui.controls.time.subscribe(s=>r.onTimeUpdateChanged?.(s))).add(e.ui.controls.episodes.subscribe(s=>r.onEpisodesChanged?.(s))).add(e.ui.controls.subtitles.subscribe(s=>r.onSubtitlesChanged?.(s))).add(e.ui.controlBlocks.topLeft.subscribe(s=>r.onTopLeftControlBlockChanged?.(s))).add(e.ui.controlBlocks.topRight.subscribe(s=>r.onTopRightControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottomLeft.subscribe(s=>r.onBottomLeftControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottomRight.subscribe(s=>r.onBottomRightControlBlockChanged?.(s))).add(e.ui.controlBlocks.middle.subscribe(s=>r.onMiddleControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottom.subscribe(s=>r.onBottomControlBlockChanged?.(s))).add(e.ui.videoTitleInfo.subscribe(s=>r.onTitleChanged?.(s))).add(e.ui.controls.settings.subscribe(s=>r.onSettingsChanged?.(s))).add(e.ui.controls.fullscreen.subscribe(s=>r.onFullscreenChanged?.(s))).add(e.ui.controls.chromecast.subscribe(s=>r.onChromecastChanged?.(s))).add(e.ui.controls.pip.subscribe(s=>r.onPipChanged?.(s))).add(e.ui.controls.vkLogo.subscribe(s=>r.onVkLogoChanged?.(s))).add(e.ui.controls.interactiveTimeIndicator.subscribe(s=>r.onInteractiveTimeIndicatorChanged?.(s))).add(e.ui.controls.timeline.subscribe(s=>r.onTimelineChanged?.(s)))}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&&Um(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/evergreen");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let i=this.store?.interfaceLanguage$,o=i?ge(i):this.videoConfig.interfaceLanguage,{projectInfo:r,initChapterId:s,historyApi:a,videoLoader:l}=this.videoConfig.interactiveData;this.interactiveController=new e({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:o,graph:this.uiConfig.features.interactiveGraph,projectInfo:r,initChapterId:s,historyApi:a,vkVideoLoader:l,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$:d,isSeekable$:u}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(u.subscribe(g=>{if(!this.isInited)return;let c=this.store;g?c.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):c.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(d.subscribe(g=>{this.store&&this.store.state.isInteractiveExpectation$.set(g)}));let m=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(g=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...g.config,title:r?.title||g.config.title};let c=m?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(g.player,c),m&&(m=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:g,actionType:c})=>{if(!this.store||!this.microStoresRoot)return;let $=d.getValue();if(g==="action-choice"&&c==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Ll)),g==="action-choice-canceled"){let w=ge(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:g,removeAllOpenURI:c})=>{this.store&&g==="container-fake-removed"&&c&&this.store.ui.controls.disabledControls$.remove(Ll)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let g=this.interactiveController.getHistoryState();this.subscription.add(g.history$.subscribe(c=>{c.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(c)}))}this.videoConfig?.callbacks?.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(g=>{this.videoConfig?.callbacks.onInteractiveChapterChanged?.(g.chapter,g.manifestVideo)})),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(g=>{this.log({message:g.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=kd(r5,jx(e,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=_g(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 e5("UI")),Vd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+this.videoConfig?.showAds],numbers:[Gx()]}),Um(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),Um(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=cu.getLatestSupportedVersion(o):this.pictureInPictureApi=new Ys(o)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new du:void 0,this.slotsApi=this.uiConfig.features.slots?new ru:void 0,this.annotationsApi=this.uiConfig.features.annotations?new uu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),g1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),this.slotsApi?.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new mu(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(un)&&(n(un).showNextPrevButtons=this.needToShowNextPrevButtons(),n(un).nextButtonActive=this.isNextButtonActive(),n(un).prevButtonActive=this.isPrevButtonActive(),n(un).endScreenVideoTitle=o.nextVideoTitle,n(un).endScreenVideoThumb=o.nextVideoThumb,n(un).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",r=>this.seekTime(r.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,n(un)&&(n(un).needToRepeatPlaylist=this.needToRepeatPlaylist,n(un).showNextPrevButtons=this.needToShowNextPrevButtons(),n(un).nextButtonActive=this.isNextButtonActive(),n(un).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=ge(this.store.state.positionExact$),r=ge(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe(Jx()).subscribe(()=>{r&&i>=r.time?this.seekTime(r.time):this.seekTime(i),e?.()});let s=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:s?.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&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){this.store?.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){this.store?.actions.internal.togglePictureInPicture()}focus(){this.svelteRootComponent?.keyboardControls?.focus?.()}restoreFocus(){this.focusManager?.restoreFocus()}handleExternalKeyboardEvent(e){return!!this.svelteRootComponent?.keyboardControls?.handleExternalKeyboardEvent(e)}setAutoplayNext(e){this.store?.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&zs(e)}};import{InterfaceLanguage as HX,VKNumericLanguage as FX,loadVKLangPack as UX}from"@vkontakte/videoplayer-shared/evergreen";import{VideoQuality as WX,VideoFormat as qX}from"@vkontakte/videoplayer-core/evergreen";var MX=()=>{window.customElements.define("vk-video-player",vu)};export{Qc as ControlButtonType,qr as GridTypes,HX as InterfaceLanguage,Wl as MenuItemType,ss as PlayerPhase,Da as VERSION,FX as VKNumericLanguage,qX as VideoFormat,WX as VideoQuality,UX as loadVKLangPack,MX as registerPlayerWebComponent};
390
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Lm(t,e){D(e,!0),U(t,wx);let[i,o]=Le(),r=()=>y(Bt,"$isLive$",i),s=f(e,"sources",7),a=f(e,"store",7),l=f(e,"microStoresRoot",7),d=f(e,"videoConfig",7),u=f(e,"uiConfig",7),m=f(e,"title",7),g=f(e,"thumbUrl",7),c=f(e,"interactiveContainer",7),$=f(e,"interactiveController",7),w=f(e,"subtitles",7),x=f(e,"live",7),S=f(e,"preload",7),C=f(e,"autoplay",7),P=f(e,"volume",7,void 0),M=f(e,"muted",7,void 0),I=f(e,"fromTime",7),k=f(e,"canRewindLive",7),V=f(e,"showAds",7),q=f(e,"adsSlotId",7,void 0),z=f(e,"adsParams",7,void 0),ie=f(e,"adsPreviewParam",7,void 0),oe=f(e,"adsAutoplayParam",7,void 0),ve=f(e,"duration",7,void 0),Q=f(e,"logoClickable",7),me=f(e,"logoHidden",7),J=f(e,"isMobile",7),Pe=f(e,"showNextPrevButtons",7,!1),Me=f(e,"nextButtonActive",7,!1),Ie=f(e,"prevButtonActive",7,!1),_e=f(e,"endScreenVideoTitle",7,void 0),Re=f(e,"endScreenVideoThumb",7,void 0),re=f(e,"isOneVideoPlaylist",7,!1),R=f(e,"supportLink",7),Ze=f(e,"shadowRootContainer",7,void 0),ue=f(e,"outerContainerRef",7,void 0),Fe=f(e,"fullScreenTarget",7,void 0),le=f(e,"failoverHosts",7,void 0),ne=f(e,"showMiniTimer",7,!1),Ee=f(e,"saveRate",7),j=f(e,"seekToInteractive",7,v1),Ue=f(e,"playPrevChapter",7,v1),tt=f(e,"volumeMultiplier",7),de=f(e,"showAutoplayNext",7),ee=f(e,"showEndScreen",7,!0),Be=f(e,"keyboardControls",15,void 0),{subscribers:Xe,stores:dt}=l();bg(u());let at=Lt(),Mt=u().logoLink,je=a().ui.debugPanelVisible,lt=a().ui.playerSize,Bt=a().state.isLive$,Qe=a().state.isInteractive&&Mm.device.isAndroid,gt=K(void 0),Se=null,Pt=K(!1);a().getAdmanWrapper().init({switchFromAdsToVideo:a().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:a().actions.internal.switchFromVideoToAds,setMuted:a().actions.external.setMuted},a().ads,{isMobile:a().ui.isMobile,mobileUnmuteButtonVisible:a().ui.mobileUnmuteButtonVisible,vsid:a().vsid}),Ig(a(),dt),De(()=>{a().ui.isMobile.set(J()),d().callbacks?.onDomReady?.()});let ge=(G=!1)=>{N(Pt,!0),G?a().actions.external.firstStart(V()):a().actions.internal.firstStart(V())},Y=()=>{if(at.features.qualityDetailsSubMenuEnabled){let G=jg(a().videoId);if(G)switch(G.type){case"high_quality":a().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":a().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":a().actions.internal.setQuality(G.quality);break}}else{Yg(a().videoId),kp()&&a().actions.internal.setTrafficSavingEnabled(!0);let Gt=wp(a().videoId);Gt&&a().actions.internal.setQuality(Gt)}};function se(G){let Gt=s()||G;Gt&&a().initVideo({container:n(gt),sources:Gt,failoverHosts:le(),subtitles:w(),volumeMultiplier:tt()});let Xt=bx.get(Al)==="true";je.set(Xt),I()>0&&a().actions.external.seekTime(I());let Oi=J()?at.volumeDefault:P()??$c()??at.volumeDefault,ti=M()??zg();if(a().actions.external.setVolume(Oi),a().actions.external.setMuted(ti),a().getAdmanWrapper().setInitialVolume(ti?0:Oi),Y(),at.features.saveRate&&Ee()){let Jt=Kg();Jt&&!r()&&a().actions.internal.setPlaybackRate(Jt)}if(de()){let Jt=Gg();Jt&&a().actions.internal.setAutoplayNextEnabled(Jt)}a().ui.isAutoplay.set(C()),C()?ge():S()&&at.features.preload&&a().actions.internal.preload()}let Ve=G=>{if(window.ResizeObserver){let Gt,Xt;Se=new ResizeObserver($x(Oi=>{let ti=Oi[0];if(ti.contentBoxSize){let Jt=Array.isArray(ti.contentBoxSize)?ti.contentBoxSize[0]:ti.contentBoxSize;Gt=Jt.inlineSize,Xt=Jt.blockSize}else ti.contentRect&&(Gt=ti.contentRect.width,Xt=ti.contentRect.height);lt.set({width:Gt,height:Xt})},300)),Se.observe(G)}lt.set({width:G.clientWidth,height:G.clientHeight})},ke=()=>{document.hidden&&a().actions.external.stop()};It(()=>{Qe&&document.addEventListener("visibilitychange",ke),at.debugLog&&a().actions.internal.startLogging(),Ve(n(gt));let G=Xe.map(Xt=>Xt.init({store:a(),microStores:dt,config:d(),interactiveController:$(),uiConfig:u()})),Gt=()=>{Qe&&document.removeEventListener("visibilitychange",ke),Se?.disconnect(),G.forEach(Xt=>Xt.unsubscribe()),a().destroy()};return x()?.status==="upcoming"?(a().actions.internal.setLiveWaitingStart(!0),Gt):x()?.status==="waiting"?(a().actions.internal.setLiveWaitingRecover(!0),Gt):(x()?.status==="finished"||x()?.status==="postlive")&&!(s()&&_x(s(),{useManagedMediaSource:e.coreConfig.useManagedMediaSource!==!1,useOldMSEDetection:e.coreConfig.useOldMSEDetection===!0}))?(a().actions.internal.setLiveWaitingRecord(!0),Gt):(se(),Gt)});function qe(){n(Pt)?a().actions.external.play():ge(!0)}function it(){a().actions.external.pause()}function Ne(G){a().actions.external.setMuted(G)}function ht(){a().actions.external.toggleSubtitle()}function Ye(){a().webApi.slotsApi?.haveSlots()&&a().actions.external.hideControls()}function He(){a().webApi.slotsApi?.haveSlots()&&a().actions.external.showControls()}function jt(G){J()||G>=0&&G<=1&&a().actions.external.setVolume(G)}function Ni(G){a().actions.internal.seekTime(G,yx.UNKNOWN)}function Bi(G){a().actions.external.seekEpisodeStartTime(G)}function ho(){a().actions.external.returnFocusToEpisodes()}function Ko(G){a().actions.external.setPlaybackRate(G)}function cn(G){a().actions.external.setAutoQualityLimits(G)}let Qo=lu(at.view),Vo=d().playerView==="preview";var Wi=xx();let Wt;var Go=_(Wi);{var _o=G=>{Pm(G,{get store(){return a()},get uiConfig(){return at},get thumbUrl(){return g()},get interactiveContainer(){return c()},get live(){return x()},get autoplay(){return C()},get canRewindLive(){return k()},get showAds(){return V()},get adsSlotId(){return q()},get adsParams(){return z()},get adsPreviewParam(){return ie()},get adsAutoplayParam(){return oe()},get duration(){return ve()},get logoClickable(){return Q()},get logoHidden(){return me()},get logoTargetUrl(){return Mt},get nextButtonActive(){return Me()},get prevButtonActive(){return Ie()},get endScreenVideoTitle(){return _e()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return re()},get supportLink(){return R()},get shadowRootContainer(){return Ze()},get outerContainerRef(){return ue()},get fullScreenTarget(){return Fe()},get showMiniTimer(){return ne()},get playerStarted(){return n(Pt)},get seekToInteractive(){return j()},get playPrevChapter(){return Ue()},firstStart:ge,seekTime:Ni,get showEndScreen(){return ee()},get showAutoplayNext(){return de()},get showNextPrevButtons(){return Pe()},get videoContainer(){return n(gt)},set videoContainer(Gt){N(gt,Gt,!0)}})},eo=G=>{var Gt=Oe(),Xt=ce(Gt);{var Oi=Jt=>{Am(Jt,{get thumbUrl(){return g()},get outsideDuration(){return ve()},get canRewindLive(){return k()},get videoContainer(){return n(gt)},set videoContainer(Tt){N(gt,Tt,!0)}})},ti=Jt=>{Em(Jt,{get store(){return a()},get uiConfig(){return at},get title(){return m()},get thumbUrl(){return g()},get interactiveContainer(){return c()},get live(){return x()},get autoplay(){return C()},get canRewindLive(){return k()},get showAds(){return V()},get adsSlotId(){return q()},get adsParams(){return z()},get adsPreviewParam(){return ie()},get adsAutoplayParam(){return oe()},get duration(){return ve()},get logoClickable(){return Q()},get logoHidden(){return me()},get logoTargetUrl(){return Mt},get nextButtonActive(){return Me()},get prevButtonActive(){return Ie()},get endScreenVideoTitle(){return _e()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return re()},get supportLink(){return R()},get shadowRootContainer(){return Ze()},get outerContainerRef(){return ue()},get fullScreenTarget(){return Fe()},get showMiniTimer(){return ne()},get playerStarted(){return n(Pt)},get seekToInteractive(){return j()},get playPrevChapter(){return Ue()},firstStart:ge,get showEndScreen(){return ee()},get showAutoplayNext(){return de()},get showNextPrevButtons(){return Pe()},get videoContainer(){return n(gt)},set videoContainer(Tt){N(gt,Tt,!0)},get keyboardControls(){return Be()},set keyboardControls(Tt){Be(Tt)}})};L(Xt,Jt=>{Vo?Jt(Oi):Jt(ti,!1)})}b(G,Gt)};L(Go,G=>{J()?G(_o):G(eo,!1)})}v(Wi),B(G=>{Wt=Z(Wi,1,"root svelte-oba660",null,Wt,G),ot(Wi,Qo)},[()=>({"root--miui-browser":Mm.device.isMobile&&Mm.browser.isMiuiBrowser,"visible-outside":Vo})]),b(t,Wi);var to=H({initVideo:se,play:qe,pause:it,setMuted:Ne,toggleSubtitle:ht,hideControls:Ye,showControls:He,setVolume:jt,seekTime:Ni,seekEpisodeStartTime:Bi,returnFocusToEpisodes:ho,setPlaybackRate:Ko,setAutoQualityLimits:cn,get sources(){return s()},set sources(G){s(G)},get store(){return a()},set store(G){a(G)},get microStoresRoot(){return l()},set microStoresRoot(G){l(G)},get videoConfig(){return d()},set videoConfig(G){d(G)},get uiConfig(){return u()},set uiConfig(G){u(G)},get title(){return m()},set title(G){m(G)},get thumbUrl(){return g()},set thumbUrl(G){g(G)},get interactiveContainer(){return c()},set interactiveContainer(G){c(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 S()},set preload(G){S(G)},get autoplay(){return C()},set autoplay(G){C(G)},get volume(){return P()},set volume(G){P(G)},get muted(){return M()},set muted(G){M(G)},get fromTime(){return I()},set fromTime(G){I(G)},get canRewindLive(){return k()},set canRewindLive(G){k(G)},get showAds(){return V()},set showAds(G){V(G)},get adsSlotId(){return q()},set adsSlotId(G){q(G)},get adsParams(){return z()},set adsParams(G){z(G)},get adsPreviewParam(){return ie()},set adsPreviewParam(G){ie(G)},get adsAutoplayParam(){return oe()},set adsAutoplayParam(G){oe(G)},get duration(){return ve()},set duration(G){ve(G)},get logoClickable(){return Q()},set logoClickable(G){Q(G)},get logoHidden(){return me()},set logoHidden(G){me(G)},get isMobile(){return J()},set isMobile(G){J(G)},get showNextPrevButtons(){return Pe()},set showNextPrevButtons(G){Pe(G)},get nextButtonActive(){return Me()},set nextButtonActive(G){Me(G)},get prevButtonActive(){return Ie()},set prevButtonActive(G){Ie(G)},get endScreenVideoTitle(){return _e()},set endScreenVideoTitle(G){_e(G)},get endScreenVideoThumb(){return Re()},set endScreenVideoThumb(G){Re(G)},get isOneVideoPlaylist(){return re()},set isOneVideoPlaylist(G){re(G)},get supportLink(){return R()},set supportLink(G){R(G)},get shadowRootContainer(){return Ze()},set shadowRootContainer(G){Ze(G)},get outerContainerRef(){return ue()},set outerContainerRef(G){ue(G)},get fullScreenTarget(){return Fe()},set fullScreenTarget(G){Fe(G)},get failoverHosts(){return le()},set failoverHosts(G){le(G)},get showMiniTimer(){return ne()},set showMiniTimer(G){ne(G)},get saveRate(){return Ee()},set saveRate(G){Ee(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 tt()},set volumeMultiplier(G){tt(G)},get showEndScreen(){return ee()},set showEndScreen(G){ee(G)},get keyboardControls(){return Be()},set keyboardControls(G){Be(G)}});return o(),to}var Sx=ye('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Rm(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Sx();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}function Vm(t,e){let i=f(e,"isWhite",3,!1),o=h(()=>i()?"color: #fff;":"color: #909499;");Rm(t,{get style(){return n(o)}})}var Cx=A('<div class="title svelte-1y9fytq"> </div>'),Tx=A('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),kx={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function Nm(t,e){U(t,kx);var i=Tx(),o=_(i);{var r=l=>{var d=Cx(),u=_(d,!0);v(d),B(()=>pe(u,e.title)),b(l,d)};L(o,l=>{e.title&&l(r)})}var s=E(o,2);{var a=l=>{let d=h(()=>!!e.thumbUrl);Vm(l,{get isWhite(){return n(d)}})};L(s,l=>{(!e.title||!e.thumbUrl)&&l(a)})}v(i),B(()=>ot(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}import{now as jx}from"@vkontakte/videoplayer-shared/evergreen";import{cloneDeepWith as Yx,InterfaceLanguage as Zx,isNonNullable as Um,Logger as Xx,Observable as Jx,Subscription as w1,once as e5,InternalsExposure as t5,skip as i5}from"@vkontakte/videoplayer-shared/evergreen";import{clientChecker as S1,isMobile as o5}from"@vkontakte/videoplayer-core/evergreen";import{OneStat as n5,ThinOneStat as r5,MediascopePixel as s5}from"@vkontakte/videoplayer-statistics/evergreen";import{Logger as Ex,Subscription as Ix}from"@vkontakte/videoplayer-shared/evergreen";var du=class{constructor(){this.subscription=new Ix,this.logger=new Ex,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=he(e.state.currentPlaybackRate$),r=he(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{navigator.mediaSession.setPositionState?.({position:i,playbackRate:o,duration:r})}catch{this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Dm,detectEmbed as Lx}from"@vkontakte/videoplayer-shared/evergreen";var Px=ye('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function Bm(t,e){let i=Te(e,["$$slots","$$events","$$legacy","children"]);var o=Px();we(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??X),$e(),v(o),b(t,o)}var Ax=A('<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 Om(t,e){D(e,!0),U(t,Mx);let[i,o]=Le(),r=()=>y(u,"$interfaceLanguage$",i),s=()=>y(m,"$isMobile$",i),a=xe(),l=Lt(),d=!!a.webApi.pictureInPictureApi,u=a.interfaceLanguage$,m=a.ui.isMobile,g=a.ui.t,c=h(()=>r()&&g("pip_dummy_title")),$=lu(l.view);var w=Ax();let x;var S=_(w);let C;var P=_(S);Bm(P,{}),v(S);var M=E(S,2),I=_(M,!0);v(M),v(w),B((k,V)=>{x=Z(w,1,"player-pip-dummy svelte-1pbsod4",null,x,k),ot(w,$),C=Z(S,1,"dummy-image svelte-1pbsod4",null,C,V),pe(I,n(c))},[()=>({"is-pip-api":d}),()=>({desktop:!s()})]),b(t,w),H(),o()}var Rx=460,Vx=280,Td=class{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new Dm(!1),isEnabled$:new Dm(!1),type:1};constructor({enabled:e=!0}={enabled:!0}){this.info.isEnabled$=new Dm(e)}isSupported(){let{isEmbed:e}=Lx();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Rx,height:Vx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(l=>l.cssText).join(" ")).filter(Boolean).join(`
391
+ `),i=document.createElement("style");i.textContent=e;let o=this.createStretchedContainer(),r=o.attachShadow({mode:"open"});r.append(i),r.append(this.playerDomElement);let s={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=os(Om,s),this.pipWindow?.document.body.append(o),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(zs(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async remove(){return new Promise(e=>{this.pipWindow&&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 g1(t){return t instanceof Td}var cu=class{static getLatestSupportedVersion(e){let i=new Ys(e),o=new Td(e);if(o.isSupported())return o;if(i.isSupported())return i}};function kd(t,e){let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let r of i)o[r]=e[r]??t[r]??void 0;return o}var h1="Inner error. Unexpectedly root annotation container null reference exception",_1="Annotation with such name already exists",b1="Annotation with such name does not exist";var Xa=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Nx,Subscription as Bx,throttleFn as Ox}from"@vkontakte/videoplayer-shared/evergreen";var Dx="1",Hx=100,uu=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=Ox(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Hx);this.subscriptions.add(Nx(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},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 Xa(h1);if(this.annotations.has(e))throw new Xa(_1);i.style.zIndex=i.style.zIndex??Dx,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 Xa(b1);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 r=e.offsetTop,s=e.offsetLeft,a=e.offsetWidth,l=e.offsetHeight;return r<0||s<0||s+a>i||r+l>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as pu,Subscription as Fx}from"@vkontakte/videoplayer-shared/evergreen";var Ro=class{init({store:e,microStores:i,interactiveController:o,config:r}){return pu(e),pu(i),pu(r),r.interactiveData&&pu(o),this.subscription=new Fx,this.subscription}};var Ed=class extends Ro{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...te(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var Id=class extends Ro{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...te(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:s}=i,{fakeIsPlaying$:a}=r,{isInteractiveExpectation$:l,isPlaying$:d}=s.state,{controlsVisible:u,isMobile:m}=s.ui,g=he(m),c=()=>g&&he(u);return o.add(u.subscribe($=>{if(!g)return;let w=he(a);he(d)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(d.subscribe($=>{this.state$.set(!$||c())})),o.add(a.subscribe($=>{if($===null)return;let w=he(l);if(c()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var Pd=class extends Ro{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=te("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(a=>a.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as Ux}from"@vkontakte/videoplayer-shared/evergreen";var Hm=te(!1),fu=null,Ad=class extends Ro{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Hm,set:(i,o=!1)=>{i!==he(Hm)&&(this.clearTimeout(),Hm.set(i),!i&&fu&&(fu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:a,isPlaying$:l}=r.state,d=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(d.subscribe(g=>{he(a)&&g&&this.state$.set(!1)}));let m=s?.interactiveData||{tooltipHelpHintActive:!1};return o.add(Ux({isPlaying$:l,isInteractiveTime$:a,interactiveTimeIndicator:u}).subscribe(({isPlaying$:g,isInteractiveTime$:c,interactiveTimeIndicator:$})=>{if(!(!g||!$?.isDisplayed)){if(!c)return this.state$.set(!1);m.tooltipHelpHintActive&&fu===null&&(fu=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),r.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as zx,noop as Wx}from"@vkontakte/videoplayer-shared/evergreen";var Md=class extends Ro{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...te(null),toggle:Wx};this.checkIfShouldHide=i=>ks(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,a=r.ui.currentGridType$,l=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(he(a)))return;let d=he(this.state$),{isEnded$:u,playbackState$:m}=r.state,{disabledControls$:g}=r.ui.controls,c=he(u),$=he(m);if(d)try{await s?.toggleGraphView(!1),this.state$.set(!1),g.remove(gp),!c&&this.graphMadePause&&r.actions.internal.play()}catch{l({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await s?.toggleGraphView(!0),this.state$.set(!0),g.add(gp),!c&&this.graphMadePause&&r.actions.internal.pause()}catch{l({message:"Cant show graph"})}}},o.add(zx({graphIsOpened:this.state$,currentGridType:a}).subscribe(async({graphIsOpened:d,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&d)try{await s?.toggleGraphView(!1),this.state$.set(!1)}catch{l({message:"Cant hide graph"})}})),o}};import{ValueSubject as $1}from"@vkontakte/videoplayer-shared/evergreen";var Ld=class extends Ro{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:te(!1),isEnabled$:te(!1),type$:te(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:s,isEnabled$:a,type:l}}=r.webApi.pictureInPictureApi||{info:{isActive$:new $1(!1),isEnabled$:new $1(!1)}};return o.add(s.subscribe(d=>{this.state$.isActive$.set(d)})),o.add(a.subscribe(d=>{this.state$.isEnabled$.set(d)})),this.state$.type$.set(l),o}};import{filter as Qx,filterChanged as Gx}from"@vkontakte/videoplayer-shared/evergreen";import{safeStorage as Fm}from"@vkontakte/videoplayer-shared/evergreen";var y1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?qx({maxCount:t}):void 0,e!==0?Kx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},qx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{e[i]=(e[i]??0)+1,Fm.set("videoplayer_notifications_manager_count",JSON.stringify(e[i]??0))},canShowNotification:i=>(e[i]??0)<t}},Kx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Fm.get(e)||"{}")}catch{return{}}},o=s=>Fm.set(e,JSON.stringify(s)),r=s=>{let a=i();delete a[s],o(a)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let a=i()[s];if(a){let l=Date.now()-a.launchTime>t;return l&&r(s),l}else return!0}}};var Rd=class extends Ro{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:te({}),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:r,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:a,showSlowVideoNotification:l,forceAutoQualityWhenSevereStallHappens:d}}}=i;this.notificationManager=y1({maxShowCount:s,timeout:a});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe(Gx(),Qx(m=>m)).subscribe(()=>{l&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(d&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var x1=()=>[Ed,Id,Pd,Ad,Md,Ld,Rd].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 Vd}from"@vkontakte/videoplayer-shared/evergreen";var mu=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{this.lastFocusedNode?.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var a5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Zx.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:o5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},dn=K(void 0),vu=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;focusManager;prevIsid=void 0;isInited=!1;internalsExposure=null;shadowDOMCallbacksDisabled=!1;constructor(){super(),Vd.create("ui"),this.logger=new Xx,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new w1,this.interactiveSubscription=new w1,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=Qt({title:e,thumbUrl:i}),r={target:this.playerContainer,props:o};this.svelteStubComponent=os(Nm,r)}disconnectedCallback(){this.shadowDOMCallbacksDisabled||(this.annotationsApi?.destroy(),this.slotsApi?.destroy(),this.focusManager?.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(),Vd.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={})=>{if(!this.videoConfig)return;let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,statVKAppId:l,refreshStatAuthToken:d,autoplay:u,isMobile:m,isTouch:g,refDomain:c,deviceId:$,interactiveData:w}=kd(this.videoConfig,i),x=w?.projectInfo?.pid,S=this.interactiveController?.state.isReplay$.getValue()??!1;S&&(this.prevIsid=void 0);let{unitedVideoId:C,isClip:P=!1}=e;if(this.uiConfig.features.statistics&&C)try{return new n5({movieId:C,albumId:o,place:r,trackCode:a,vkAppId:l,autoplay:(u&&!this.interactiveController)??!1,mobile:g??m,clip:P,refDomain:c,deviceId:$,...x&&(!this.isInited||S)&&{projectId:Number(x)}},{refreshAuthToken:d,userSalt:s,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(I){console.error(I),this.log({message:I.message})}};createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:s}=kd(this.videoConfig,i),{unitedVideoId:a}=e;if(this.uiConfig.features.thinStatistics&&a)return new r5.ThinOneStat({deviceId:o,movieId:a,preload:r},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:l,autoplay:d,volume:u,muted:m,fromTime:g,canRewindLive:c,supportLink:$,showAds:w,adsSlotId:x,adsParams:S={},adsPreviewParam:C,adsAutoplayParam:P,interfaceLanguage:M,isCyrillicRelatedInterface:I,logoClickable:k,logoHidden:V,isMobile:q,isTouch:z,isAudioDisabled:ie,isLiveCatchUpMode:oe,fullScreenTarget:ve,failoverHosts:Q,canDownload:me,callbacks:J,interactiveData:Pe,showThumbTimer:Me,additionalButtons:Ie=[],additionalSettingsMenuItems:_e=[],additionalContextMenuItems:Re=[],repeat:re,saveRate:R,volumeMultiplier:Ze,showEndScreen:ue,showAutoplayNext:Fe,mediascopePixels:le}=kd(this.videoConfig,i),{sources:ne,title:Ee,thumbUrl:j,unitedVideoId:Ue,isClip:tt=!1,duration:de,adsParams:ee={},videoEpisodes:Be,previewThumbsData:Xe,subtitles:dt,live:at}=e,Mt={...S,...ee},je=this.getNextVideoInfo(),lt={sources:ne,title:Ee,thumbUrl:j,subtitles:dt,unitedVideoId:Ue,isClip:tt,live:at,albumId:r,statPlace:s,autoplay:d,muted:m,volume:u,fromTime:g,canRewindLive:c,showAds:w,adsSlotId:x,adsParams:Mt,adsPreviewParam:C,adsAutoplayParam:P,duration:de,logoClickable:k,logoHidden:V,isTouch:z??q,repeat:re,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:je.nextVideoTitle,endScreenVideoThumb:je.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Bt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(lt)}`});let zt=this.interactiveController?.state.statistics$.getValue(),Qe=zt?.oneStat||this.createOneStat(e,i),gt=this.createThinOneStat(e,i),Se;le&&(Se=new s5({pixels:le})),(Qe||gt)&&(this.statistics=new Kc(Qe,gt,Se,zt?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new js(this.uiConfig.sentry,{version:Da,env:hc},{movieId:Ue,albumId:r,place:s,autoplay:(d&&!this.interactiveController)??!1,mobile:z??q,clip:tt}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat?.isid$.getValue()),this.sentry={...this.sentry,...js.getInstance()};let ge=!!Pe,Y=[],se="tooltip_interactive_go_back_disabled_first";if(ge&&this.interactiveController){let it=this.interactiveController.state.isInitialChapter$.getValue(),Ne=this.interactiveController.getHistoryState();it&&Y.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Y.push("SEEK_TO_INTERACTIVE_BUTTON"),Ne.hasPrevChapter$.getValue()||(Y.push("PLAY_PREV_CHAPTER_BUTTON"),it||(Ne.isGoBackLimited$.getValue()?se="tooltip_interactive_go_back_disabled_limit":se="tooltip_interactive_go_back_disabled"))}let Ve=()=>{this.isInited=!1,this.prevIsid=void 0;let it=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();J.onReplayInteractiveVideo&&!it?J.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Bh({player:o,interfaceLanguage:M,isCyrillicRelatedInterface:I,videoId:Ue,isClip:tt,isLiveCatchUpMode:oe,isAudioDisabled:ie,statAuthToken:a,callbacks:J,webApi:Bt,videoEpisodes:Be,previewThumbsData:Xe,canDownload:me,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Y,isInteractive:ge,saveRate:R,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Ve,playPrevChapterDisabledTooltip:se,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?Ie:[],additionalSettingsMenuItems:_e??[],additionalContextMenuItems:Re??[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:re&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:ke}=this.microStoresRoot=x1(),qe=()=>{if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Ne=>J?.onCurrentFormatChanged?.(Ne))),this.subscription.add(ke.interactiveControlsOpacity$.subscribe(Ne=>{Ne!==null&&this?.interactiveController?.setDisabledControls(Ne)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ne=>J?.onThroughputEstimationChanged?.(Ne))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ne=>J?.onTrafficSavingEnabledChanged?.(Ne))),this.subscription.add(new Jx(Ne=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ht=>Ne.next(ht)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?i5(1):Ne=>Ne).subscribe(Ne=>J?.onCurrentPlaybackRateChanged?.(Ne))),this.subscription.add(this.store.state.volume$.subscribe(Ne=>J?.onVolumeChange?.(Ne))),this.subscription.add(this.store.state.muted$.subscribe(Ne=>{if(Ne)J?.onMute?.();else{let ht=(this.store?.state.volume$&&he(this.store.state.volume$))??0;J?.onUnmute?.(ht)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ne=>J?.onVideoBitrateChanged?.(Ne))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ne=>{let ht=this.store?.ui.controls.disabledControls$;ht&&(Ne&&!ht.includes(Ml)&&ht.add(Ml),Ne||ht.remove(Ml))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Ne=>{if(!S1.browser.isSamsungBrowser||!Ne||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Ne=>J?.onVSIDChanged?.(Ne))),this.initMediaSession(),N(dn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ne,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,coreConfig:this.coreConfig,title:Ee,thumbUrl:j,subtitles:dt,live:at,preload:l,autoplay:d,muted:m,volume:u,fromTime:g,canRewindLive:c,supportLink:$,showAds:w,adsSlotId:x,adsParams:Mt,adsPreviewParam:C,adsAutoplayParam:P,duration:de,logoClickable:k,logoHidden:V,isMobile:z??q,failoverHosts:Q,fullScreenTarget:ve,saveRate:R,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Me,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:je.nextVideoTitle,endScreenVideoThumb:je.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ze,showEndScreen:ue,showAutoplayNext:Fe},!0);let it={target:this.playerContainer,props:n(dn)};this.svelteRootComponent=os(Lm,it),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?Vd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Vd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?S1.isInited$.subscribe(it=>{it&&(console.log("UI SDK async start"),qe())}):qe()}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(s=>o.onPlayerPhaseChanged?.(s))).add(e.state.playbackState$.subscribe(s=>s&&o.onPlaybackStateChanged?.(s))).add(e.state.isLive$.subscribe(s=>o.onIsLiveChanged?.(s))).add(e.state.isActiveLive$.subscribe(s=>o.onIsActiveLiveChanged?.(s))).add(e.state.isAudioAvailable$.subscribe(s=>o.onIsAudioAvailableChanged?.(s))).add(e.state.currentQuality$.subscribe(s=>o.onCurrentQualityChanged?.(s))).add(e.state.availableQualities$.subscribe(s=>o.onAvailableQualitiesChanged?.(s.map(({value:a})=>a).filter(a=>a!=="auto")))).add(e.state.availableAudioStreams$.subscribe(s=>{s.length>1&&o.onAudioLanguagesAvailable&&o.onAudioLanguagesAvailable()})).add(i.pictureInPicture$.isActive$.subscribe(s=>s?o.onPiPEnter?.():o.onPiPExit?.()));let r=o?.uiInfo;r&&this.subscription.add(e.ui.controlsVisible.subscribe(s=>r.onControlsVisibleChanged?.(s))).add(e.ui.isMobile.subscribe(s=>r.onIsMobileChanged?.(s))).add(e.ui.playerSize.subscribe(s=>r.onPlayerSizeChanged?.(s))).add(e.ui.controls.prevButton.subscribe(s=>r.onPrevButtonChanged?.(s))).add(e.ui.controls.playButton.subscribe(s=>r.onPlayButtonChanged?.(s))).add(e.ui.controls.replayButton.subscribe(s=>r.onReplayButtonChanged?.(s))).add(e.ui.controls.nextButton.subscribe(s=>r.onNextButtonChanged?.(s))).add(e.ui.controls.playPrevChapterButton.subscribe(s=>r.onPlayPrevChapterChanged?.(s))).add(e.ui.controls.seekToInteractiveButton.subscribe(s=>r.onSeekToInteractiveButtonChanged?.(s))).add(e.ui.controls.interactiveGraphButton.subscribe(s=>r.onGraphButtonChanged?.(s))).add(e.ui.controls.liveButton.subscribe(s=>r.onLiveButtonChanged?.(s))).add(e.ui.controls.time.subscribe(s=>r.onTimeUpdateChanged?.(s))).add(e.ui.controls.episodes.subscribe(s=>r.onEpisodesChanged?.(s))).add(e.ui.controls.subtitles.subscribe(s=>r.onSubtitlesChanged?.(s))).add(e.ui.controlBlocks.topLeft.subscribe(s=>r.onTopLeftControlBlockChanged?.(s))).add(e.ui.controlBlocks.topRight.subscribe(s=>r.onTopRightControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottomLeft.subscribe(s=>r.onBottomLeftControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottomRight.subscribe(s=>r.onBottomRightControlBlockChanged?.(s))).add(e.ui.controlBlocks.middle.subscribe(s=>r.onMiddleControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottom.subscribe(s=>r.onBottomControlBlockChanged?.(s))).add(e.ui.videoTitleInfo.subscribe(s=>r.onTitleChanged?.(s))).add(e.ui.controls.settings.subscribe(s=>r.onSettingsChanged?.(s))).add(e.ui.controls.fullscreen.subscribe(s=>r.onFullscreenChanged?.(s))).add(e.ui.controls.chromecast.subscribe(s=>r.onChromecastChanged?.(s))).add(e.ui.controls.pip.subscribe(s=>r.onPipChanged?.(s))).add(e.ui.controls.vkLogo.subscribe(s=>r.onVkLogoChanged?.(s))).add(e.ui.controls.interactiveTimeIndicator.subscribe(s=>r.onInteractiveTimeIndicatorChanged?.(s))).add(e.ui.controls.timeline.subscribe(s=>r.onTimelineChanged?.(s)))}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&&Um(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/evergreen");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let i=this.store?.interfaceLanguage$,o=i?he(i):this.videoConfig.interfaceLanguage,{projectInfo:r,initChapterId:s,historyApi:a,videoLoader:l}=this.videoConfig.interactiveData;this.interactiveController=new e({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:o,graph:this.uiConfig.features.interactiveGraph,projectInfo:r,initChapterId:s,historyApi:a,vkVideoLoader:l,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$:d,isSeekable$:u}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(u.subscribe(g=>{if(!this.isInited)return;let c=this.store;g?c.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):c.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(d.subscribe(g=>{this.store&&this.store.state.isInteractiveExpectation$.set(g)}));let m=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(g=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...g.config,title:r?.title||g.config.title};let c=m?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(g.player,c),m&&(m=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:g,actionType:c})=>{if(!this.store||!this.microStoresRoot)return;let $=d.getValue();if(g==="action-choice"&&c==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Ll)),g==="action-choice-canceled"){let w=he(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:g,removeAllOpenURI:c})=>{this.store&&g==="container-fake-removed"&&c&&this.store.ui.controls.disabledControls$.remove(Ll)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let g=this.interactiveController.getHistoryState();this.subscription.add(g.history$.subscribe(c=>{c.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(c)}))}this.videoConfig?.callbacks?.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(g=>{this.videoConfig?.callbacks.onInteractiveChapterChanged?.(g.chapter,g.manifestVideo)})),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(g=>{this.log({message:g.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=kd(a5,Yx(e,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=_g(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 t5("UI")),Vd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+this.videoConfig?.showAds],numbers:[jx()]}),Um(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),Um(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=cu.getLatestSupportedVersion(o):this.pictureInPictureApi=new Ys(o)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new du:void 0,this.slotsApi=this.uiConfig.features.slots?new ru:void 0,this.annotationsApi=this.uiConfig.features.annotations?new uu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),g1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),this.slotsApi?.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new mu(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(dn)&&(n(dn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(dn).nextButtonActive=this.isNextButtonActive(),n(dn).prevButtonActive=this.isPrevButtonActive(),n(dn).endScreenVideoTitle=o.nextVideoTitle,n(dn).endScreenVideoThumb=o.nextVideoThumb,n(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",r=>this.seekTime(r.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,n(dn)&&(n(dn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(dn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(dn).nextButtonActive=this.isNextButtonActive(),n(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)}isLiveTailPlaying(){let e=this.store?.getPlayer();if(!e)return!1;let{info:i}=e;return i.canPlayLiveTailBuffer$.getValue()&&!i.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){let i=this.isLiveTailPlaying(),o=e||!i;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${i}`});let r=()=>{this.store?.actions.internal.setLiveWaitingRecover(!0)};o&&r(),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{o||r(),this.store?.destroy()})}setLiveWaitingRecord(){let e=this.isLiveTailPlaying(),i=!e;this.log({message:`live waiting record: liveTailPlaying = ${e}`});let o=()=>{this.store?.actions.internal.setLiveWaitingRecord(!0)};i&&o(),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{i||o(),this.store?.destroy()})}setLiveEnd(e){let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live ended: liveTailPlaying = ${i}`});let r=()=>{this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(o){r();return}this.store?.callbacks&&(this.store.callbacks.onLiveEnded=r)}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=he(this.store.state.positionExact$),r=he(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe(e5()).subscribe(()=>{r&&i>=r.time?this.seekTime(r.time):this.seekTime(i),e?.()});let s=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:s?.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&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){this.store?.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){this.store?.actions.internal.togglePictureInPicture()}focus(){this.svelteRootComponent?.keyboardControls?.focus?.()}restoreFocus(){this.focusManager?.restoreFocus()}handleExternalKeyboardEvent(e){return!!this.svelteRootComponent?.keyboardControls?.handleExternalKeyboardEvent(e)}setAutoplayNext(e){this.store?.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&zs(e)}};import{InterfaceLanguage as UX,VKNumericLanguage as zX,loadVKLangPack as WX}from"@vkontakte/videoplayer-shared/evergreen";import{VideoQuality as KX,VideoFormat as QX}from"@vkontakte/videoplayer-core/evergreen";var RX=()=>{window.customElements.define("vk-video-player",vu)};export{Qc as ControlButtonType,qr as GridTypes,UX as InterfaceLanguage,Wl as MenuItemType,ss as PlayerPhase,Da as VERSION,zX as VKNumericLanguage,QX as VideoFormat,KX as VideoQuality,WX as loadVKLangPack,RX as registerPlayerWebComponent};